]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add a new recycle test
[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         --enable-batch-insert       enable the DB batch insert code disabled
1453   --disable-largefile     omit support for large files
1454
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1459   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1460   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1461   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1462   --without-libintl-prefix     don't search for libintl in includedir and libdir
1463   --with-included-gettext use the GNU gettext library included here
1464  --with-readline[=DIR]         specify readline library directory
1465
1466   --with-python[=DIR]   Include Python support.  DIR is the Python base
1467                           install directory, default is to search through
1468                           a number of common places for the Python files.
1469   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1470   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1471   --with-working-dir=PATH        specify path of Bacula working directory
1472   --with-scriptdir=PATH    specify path of Bacula scripts directory
1473   --with-dump-email=EMAIL        dump email address
1474   --with-job-email=EMAIL         job output email address
1475   --with-smtp-host=HOST          SMTP mail host address
1476   --with-pid-dir=PATH            specify location of Bacula pid files
1477   --with-subsys-dir=PATH         specify location of Bacula subsys file
1478   --with-baseport=PORT           specify base port address for daemons
1479   --with-dir-password=PASSWORD   specify Director's password
1480   --with-fd-password=PASSWORD    specify Client's password
1481   --with-sd-password=PASSWORD    specify Storage daemon's password
1482   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1483   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1484   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1485   --with-db-name=DBNAME        specify database name (default bacula)
1486   --with-db-user=UNAME         specify database user (default bacula)
1487   --with-dir-user=USER           specify user for Director daemon
1488   --with-dir-group=GROUP                 specify group for Director daemon
1489   --with-sd-user=USER            specify user for Storage daemon
1490   --with-sd-group=GROUP          specify group for Storage daemon
1491   --with-fd-user=USER            specify user for File daemon
1492   --with-fd-group=GROUP          specify group for File daemon
1493   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1494   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1495                           base install directory, defaults to /usr/local/pgsql
1496
1497   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1498                           install directory, default is to search through
1499                           a number of common places for the MySQL files.
1500
1501   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1502                           install directory, default is to search through
1503                           a number of common places for the MySQL files.
1504
1505   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1506                           install directory, default is to search through
1507                           a number of common places for the SQLite3 files.
1508
1509   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1510                           install directory, default is to search through
1511                           a number of common places for the SQLite files.
1512   --with-x                use the X Window System
1513
1514 Some influential environment variables:
1515   CC          C compiler command
1516   CFLAGS      C compiler flags
1517   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518               nonstandard directory <lib dir>
1519   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520               you have headers in a nonstandard directory <include dir>
1521   CXX         C++ compiler command
1522   CXXFLAGS    C++ compiler flags
1523   CPP         C preprocessor
1524   WXCONFIG    wx-config command. On some systems, you must set it to
1525               wx-config-2.6 to use wxWidgets 2.6.
1526   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1527   XMKMF       Path to xmkmf, Makefile generator for X Window System
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537   # If there are subdirs, report their specific --help.
1538   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539     test -d "$ac_dir" || continue
1540     ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546   # A ".." for each directory in $ac_dir_suffix.
1547   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548   case $ac_top_builddir_sub in
1549   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551   esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559   .)  # We are building in place.
1560     ac_srcdir=.
1561     ac_top_srcdir=$ac_top_builddir_sub
1562     ac_abs_top_srcdir=$ac_pwd ;;
1563   [\\/]* | ?:[\\/]* )  # Absolute name.
1564     ac_srcdir=$srcdir$ac_dir_suffix;
1565     ac_top_srcdir=$srcdir
1566     ac_abs_top_srcdir=$srcdir ;;
1567   *) # Relative name.
1568     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569     ac_top_srcdir=$ac_top_build_prefix$srcdir
1570     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574     cd "$ac_dir" || { ac_status=$?; continue; }
1575     # Check for guested configure.
1576     if test -f "$ac_srcdir/configure.gnu"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579     elif test -f "$ac_srcdir/configure"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure" --help=recursive
1582     else
1583       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584     fi || ac_status=$?
1585     cd "$ac_pwd" || { ac_status=$?; break; }
1586   done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591   cat <<\_ACEOF
1592 configure
1593 generated by GNU Autoconf 2.60
1594
1595 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600   exit
1601 fi
1602 cat >config.log <<_ACEOF
1603 This file contains any messages produced by compilers while
1604 running configure, to aid debugging if configure makes a mistake.
1605
1606 It was created by $as_me, which was
1607 generated by GNU Autoconf 2.60.  Invocation command line was
1608
1609   $ $0 $@
1610
1611 _ACEOF
1612 exec 5>>config.log
1613 {
1614 cat <<_ASUNAME
1615 ## --------- ##
1616 ## Platform. ##
1617 ## --------- ##
1618
1619 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624
1625 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1627
1628 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1629 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1630 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1632 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1633 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1634 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1635
1636 _ASUNAME
1637
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   echo "PATH: $as_dir"
1644 done
1645 IFS=$as_save_IFS
1646
1647 } >&5
1648
1649 cat >&5 <<_ACEOF
1650
1651
1652 ## ----------- ##
1653 ## Core tests. ##
1654 ## ----------- ##
1655
1656 _ACEOF
1657
1658
1659 # Keep a trace of the command line.
1660 # Strip out --no-create and --no-recursion so they do not pile up.
1661 # Strip out --silent because we don't want to record it for future runs.
1662 # Also quote any args containing shell meta-characters.
1663 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_configure_args=
1665 ac_configure_args0=
1666 ac_configure_args1=
1667 ac_must_keep_next=false
1668 for ac_pass in 1 2
1669 do
1670   for ac_arg
1671   do
1672     case $ac_arg in
1673     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675     | -silent | --silent | --silen | --sile | --sil)
1676       continue ;;
1677     *\'*)
1678       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679     esac
1680     case $ac_pass in
1681     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682     2)
1683       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684       if test $ac_must_keep_next = true; then
1685         ac_must_keep_next=false # Got value, back to normal.
1686       else
1687         case $ac_arg in
1688           *=* | --config-cache | -C | -disable-* | --disable-* \
1689           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691           | -with-* | --with-* | -without-* | --without-* | --x)
1692             case "$ac_configure_args0 " in
1693               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694             esac
1695             ;;
1696           -* ) ac_must_keep_next=true ;;
1697         esac
1698       fi
1699       ac_configure_args="$ac_configure_args '$ac_arg'"
1700       ;;
1701     esac
1702   done
1703 done
1704 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706
1707 # When interrupted or exit'd, cleanup temporary files, and complete
1708 # config.log.  We remove comments because anyway the quotes in there
1709 # would cause problems or look ugly.
1710 # WARNING: Use '\'' to represent an apostrophe within the trap.
1711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712 trap 'exit_status=$?
1713   # Save into config.log some information that might help in debugging.
1714   {
1715     echo
1716
1717     cat <<\_ASBOX
1718 ## ---------------- ##
1719 ## Cache variables. ##
1720 ## ---------------- ##
1721 _ASBOX
1722     echo
1723     # The following way of writing the cache mishandles newlines in values,
1724 (
1725   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726     eval ac_val=\$$ac_var
1727     case $ac_val in #(
1728     *${as_nl}*)
1729       case $ac_var in #(
1730       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732       esac
1733       case $ac_var in #(
1734       _ | IFS | as_nl) ;; #(
1735       *) $as_unset $ac_var ;;
1736       esac ;;
1737     esac
1738   done
1739   (set) 2>&1 |
1740     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741     *${as_nl}ac_space=\ *)
1742       sed -n \
1743         "s/'\''/'\''\\\\'\'''\''/g;
1744           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745       ;; #(
1746     *)
1747       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748       ;;
1749     esac |
1750     sort
1751 )
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759     echo
1760     for ac_var in $ac_subst_vars
1761     do
1762       eval ac_val=\$$ac_var
1763       case $ac_val in
1764       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765       esac
1766       echo "$ac_var='\''$ac_val'\''"
1767     done | sort
1768     echo
1769
1770     if test -n "$ac_subst_files"; then
1771       cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776       echo
1777       for ac_var in $ac_subst_files
1778       do
1779         eval ac_val=\$$ac_var
1780         case $ac_val in
1781         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782         esac
1783         echo "$ac_var='\''$ac_val'\''"
1784       done | sort
1785       echo
1786     fi
1787
1788     if test -s confdefs.h; then
1789       cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794       echo
1795       cat confdefs.h
1796       echo
1797     fi
1798     test "$ac_signal" != 0 &&
1799       echo "$as_me: caught signal $ac_signal"
1800     echo "$as_me: exit $exit_status"
1801   } >&5
1802   rm -f core *.core core.conftest.* &&
1803     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804     exit $exit_status
1805 ' 0
1806 for ac_signal in 1 2 13 15; do
1807   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1810
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1813
1814 # Predefined preprocessor variables.
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1839
1840
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844   set x "$CONFIG_SITE"
1845 elif test "x$prefix" != xNONE; then
1846   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847 else
1848   set x "$ac_default_prefix/share/config.site" \
1849         "$ac_default_prefix/etc/config.site"
1850 fi
1851 shift
1852 for ac_site_file
1853 do
1854   if test -r "$ac_site_file"; then
1855     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856 echo "$as_me: loading site script $ac_site_file" >&6;}
1857     sed 's/^/| /' "$ac_site_file" >&5
1858     . "$ac_site_file"
1859   fi
1860 done
1861
1862 if test -r "$cache_file"; then
1863   # Some versions of bash will fail to source /dev/null (special
1864   # files actually), so we avoid doing that.
1865   if test -f "$cache_file"; then
1866     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867 echo "$as_me: loading cache $cache_file" >&6;}
1868     case $cache_file in
1869       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870       *)                      . "./$cache_file";;
1871     esac
1872   fi
1873 else
1874   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875 echo "$as_me: creating cache $cache_file" >&6;}
1876   >$cache_file
1877 fi
1878
1879 # Check that the precious variables saved in the cache have kept the same
1880 # value.
1881 ac_cache_corrupted=false
1882 for ac_var in $ac_precious_vars; do
1883   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884   eval ac_new_set=\$ac_env_${ac_var}_set
1885   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886   eval ac_new_val=\$ac_env_${ac_var}_value
1887   case $ac_old_set,$ac_new_set in
1888     set,)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,set)
1893       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895       ac_cache_corrupted=: ;;
1896     ,);;
1897     *)
1898       if test "x$ac_old_val" != "x$ac_new_val"; then
1899         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1902 echo "$as_me:   former value:  $ac_old_val" >&2;}
1903         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1904 echo "$as_me:   current value: $ac_new_val" >&2;}
1905         ac_cache_corrupted=:
1906       fi;;
1907   esac
1908   # Pass precious variables to config.status.
1909   if test "$ac_new_set" = set; then
1910     case $ac_new_val in
1911     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912     *) ac_arg=$ac_var=$ac_new_val ;;
1913     esac
1914     case " $ac_configure_args " in
1915       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1916       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917     esac
1918   fi
1919 done
1920 if $ac_cache_corrupted; then
1921   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925    { (exit 1); exit 1; }; }
1926 fi
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951 BUILD_DIR=`pwd`
1952 cd ..
1953 TOP_DIR=`pwd`
1954 cd ${BUILD_DIR}
1955
1956
1957 ac_aux_dir=
1958 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1959   if test -f "$ac_dir/install-sh"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/install-sh -c"
1962     break
1963   elif test -f "$ac_dir/install.sh"; then
1964     ac_aux_dir=$ac_dir
1965     ac_install_sh="$ac_aux_dir/install.sh -c"
1966     break
1967   elif test -f "$ac_dir/shtool"; then
1968     ac_aux_dir=$ac_dir
1969     ac_install_sh="$ac_aux_dir/shtool install -c"
1970     break
1971   fi
1972 done
1973 if test -z "$ac_aux_dir"; then
1974   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1986
1987
1988 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1989
1990
1991
1992
1993
1994 for ac_prog in true
1995 do
1996   # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   case $TRUEPRG in
2004   [\\/]* | ?:[\\/]*)
2005   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2006   ;;
2007   *)
2008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2015     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021 IFS=$as_save_IFS
2022
2023   ;;
2024 esac
2025 fi
2026 TRUEPRG=$ac_cv_path_TRUEPRG
2027 if test -n "$TRUEPRG"; then
2028   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2029 echo "${ECHO_T}$TRUEPRG" >&6; }
2030 else
2031   { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2033 fi
2034
2035
2036   test -n "$TRUEPRG" && break
2037 done
2038 test -n "$TRUEPRG" || TRUEPRG=":"
2039
2040 for ac_prog in false
2041 do
2042   # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   case $FALSEPRG in
2050   [\\/]* | ?:[\\/]*)
2051   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2052   ;;
2053   *)
2054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067 IFS=$as_save_IFS
2068
2069   ;;
2070 esac
2071 fi
2072 FALSEPRG=$ac_cv_path_FALSEPRG
2073 if test -n "$FALSEPRG"; then
2074   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2075 echo "${ECHO_T}$FALSEPRG" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$FALSEPRG" && break
2083 done
2084 test -n "$FALSEPRG" || FALSEPRG=":"
2085
2086
2087 #AC_CANONICAL_HOST
2088
2089 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2090 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2091 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2092 echo "configuring for bacula $VERSION ($DATE)"
2093
2094
2095
2096 ac_ext=c
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test -n "$CC"; then
2110   ac_cv_prog_CC="$CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115   IFS=$as_save_IFS
2116   test -z "$as_dir" && as_dir=.
2117   for ac_exec_ext in '' $ac_executable_extensions; do
2118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2119     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121     break 2
2122   fi
2123 done
2124 done
2125 IFS=$as_save_IFS
2126
2127 fi
2128 fi
2129 CC=$ac_cv_prog_CC
2130 if test -n "$CC"; then
2131   { echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6; }
2133 else
2134   { echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6; }
2136 fi
2137
2138
2139 fi
2140 if test -z "$ac_cv_prog_CC"; then
2141   ac_ct_CC=$CC
2142   # Extract the first word of "gcc", so it can be a program name with args.
2143 set dummy gcc; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$ac_ct_CC"; then
2150   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2159     ac_cv_prog_ac_ct_CC="gcc"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165 IFS=$as_save_IFS
2166
2167 fi
2168 fi
2169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2170 if test -n "$ac_ct_CC"; then
2171   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2172 echo "${ECHO_T}$ac_ct_CC" >&6; }
2173 else
2174   { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2176 fi
2177
2178   if test "x$ac_ct_CC" = x; then
2179     CC=""
2180   else
2181     case $cross_compiling:$ac_tool_warned in
2182 yes:)
2183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2184 whose name does not start with the host triplet.  If you think this
2185 configuration is useful to you, please write to autoconf@gnu.org." >&5
2186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2187 whose name does not start with the host triplet.  If you think this
2188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2189 ac_tool_warned=yes ;;
2190 esac
2191     CC=$ac_ct_CC
2192   fi
2193 else
2194   CC="$ac_cv_prog_CC"
2195 fi
2196
2197 if test -z "$CC"; then
2198           if test -n "$ac_tool_prefix"; then
2199     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200 set dummy ${ac_tool_prefix}cc; ac_word=$2
2201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   if test -n "$CC"; then
2207   ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212   IFS=$as_save_IFS
2213   test -z "$as_dir" && as_dir=.
2214   for ac_exec_ext in '' $ac_executable_extensions; do
2215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2216     ac_cv_prog_CC="${ac_tool_prefix}cc"
2217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218     break 2
2219   fi
2220 done
2221 done
2222 IFS=$as_save_IFS
2223
2224 fi
2225 fi
2226 CC=$ac_cv_prog_CC
2227 if test -n "$CC"; then
2228   { echo "$as_me:$LINENO: result: $CC" >&5
2229 echo "${ECHO_T}$CC" >&6; }
2230 else
2231   { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2233 fi
2234
2235
2236   fi
2237 fi
2238 if test -z "$CC"; then
2239   # Extract the first word of "cc", so it can be a program name with args.
2240 set dummy cc; ac_word=$2
2241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244   echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246   if test -n "$CC"; then
2247   ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249   ac_prog_rejected=no
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2257     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2258        ac_prog_rejected=yes
2259        continue
2260      fi
2261     ac_cv_prog_CC="cc"
2262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263     break 2
2264   fi
2265 done
2266 done
2267 IFS=$as_save_IFS
2268
2269 if test $ac_prog_rejected = yes; then
2270   # We found a bogon in the path, so make sure we never use it.
2271   set dummy $ac_cv_prog_CC
2272   shift
2273   if test $# != 0; then
2274     # We chose a different compiler from the bogus one.
2275     # However, it has the same basename, so the bogon will be chosen
2276     # first if we set CC to just the basename; use the full file name.
2277     shift
2278     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2279   fi
2280 fi
2281 fi
2282 fi
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285   { echo "$as_me:$LINENO: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6; }
2287 else
2288   { echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6; }
2290 fi
2291
2292
2293 fi
2294 if test -z "$CC"; then
2295   if test -n "$ac_tool_prefix"; then
2296   for ac_prog in cl.exe
2297   do
2298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -n "$CC"; then
2306   ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2315     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321 IFS=$as_save_IFS
2322
2323 fi
2324 fi
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327   { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2329 else
2330   { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2332 fi
2333
2334
2335     test -n "$CC" && break
2336   done
2337 fi
2338 if test -z "$CC"; then
2339   ac_ct_CC=$CC
2340   for ac_prog in cl.exe
2341 do
2342   # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   if test -n "$ac_ct_CC"; then
2350   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355   IFS=$as_save_IFS
2356   test -z "$as_dir" && as_dir=.
2357   for ac_exec_ext in '' $ac_executable_extensions; do
2358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2359     ac_cv_prog_ac_ct_CC="$ac_prog"
2360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361     break 2
2362   fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368 fi
2369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2370 if test -n "$ac_ct_CC"; then
2371   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2372 echo "${ECHO_T}$ac_ct_CC" >&6; }
2373 else
2374   { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2376 fi
2377
2378
2379   test -n "$ac_ct_CC" && break
2380 done
2381
2382   if test "x$ac_ct_CC" = x; then
2383     CC=""
2384   else
2385     case $cross_compiling:$ac_tool_warned in
2386 yes:)
2387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet.  If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&5
2390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet.  If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2393 ac_tool_warned=yes ;;
2394 esac
2395     CC=$ac_ct_CC
2396   fi
2397 fi
2398
2399 fi
2400
2401
2402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: no acceptable C compiler found in \$PATH
2405 See \`config.log' for more details." >&2;}
2406    { (exit 1); exit 1; }; }
2407
2408 # Provide some information about the compiler.
2409 echo "$as_me:$LINENO: checking for C compiler version" >&5
2410 ac_compiler=`set X $ac_compile; echo $2`
2411 { (ac_try="$ac_compiler --version >&5"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_compiler --version >&5") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }
2421 { (ac_try="$ac_compiler -v >&5"
2422 case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_compiler -v >&5") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }
2431 { (ac_try="$ac_compiler -V >&5"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437   (eval "$ac_compiler -V >&5") 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }
2441
2442 cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 ac_clean_files_save=$ac_clean_files
2458 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2459 # Try to create an executable without -o first, disregard a.out.
2460 # It will help us diagnose broken compilers, and finding out an intuition
2461 # of exeext.
2462 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2463 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2464 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2465 #
2466 # List of possible output files, starting from the most likely.
2467 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2468 # only as a last resort.  b.out is created by i960 compilers.
2469 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2470 #
2471 # The IRIX 6 linker writes into existing files which may not be
2472 # executable, retaining their permissions.  Remove them first so a
2473 # subsequent execution test works.
2474 ac_rmfiles=
2475 for ac_file in $ac_files
2476 do
2477   case $ac_file in
2478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2479     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2480   esac
2481 done
2482 rm -f $ac_rmfiles
2483
2484 if { (ac_try="$ac_link_default"
2485 case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490   (eval "$ac_link_default") 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; then
2494   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2496 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2497 # so that the user can short-circuit this test for compilers unknown to
2498 # Autoconf.
2499 for ac_file in $ac_files
2500 do
2501   test -f "$ac_file" || continue
2502   case $ac_file in
2503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2504         ;;
2505     [ab].out )
2506         # We found the default executable, but exeext='' is most
2507         # certainly right.
2508         break;;
2509     *.* )
2510         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2511         then :; else
2512            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513         fi
2514         # We set ac_cv_exeext here because the later test for it is not
2515         # safe: cross compilers may not add the suffix if given an `-o'
2516         # argument, so we may need to know it at that point already.
2517         # Even if this section looks crufty: it has the advantage of
2518         # actually working.
2519         break;;
2520     * )
2521         break;;
2522   esac
2523 done
2524 test "$ac_cv_exeext" = no && ac_cv_exeext=
2525
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: C compiler cannot create executables
2533 See \`config.log' for more details." >&2;}
2534    { (exit 77); exit 77; }; }
2535 fi
2536
2537 ac_exeext=$ac_cv_exeext
2538 { echo "$as_me:$LINENO: result: $ac_file" >&5
2539 echo "${ECHO_T}$ac_file" >&6; }
2540
2541 # Check that the compiler produces executables we can run.  If not, either
2542 # the compiler is broken, or we cross compile.
2543 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2544 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2545 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2546 # If not cross compiling, check that we can run a simple program.
2547 if test "$cross_compiling" != yes; then
2548   if { ac_try='./$ac_file'
2549   { (case "(($ac_try" in
2550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551   *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554   (eval "$ac_try") 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558     cross_compiling=no
2559   else
2560     if test "$cross_compiling" = maybe; then
2561         cross_compiling=yes
2562     else
2563         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&2;}
2569    { (exit 1); exit 1; }; }
2570     fi
2571   fi
2572 fi
2573 { echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6; }
2575
2576 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2577 ac_clean_files=$ac_clean_files_save
2578 # Check that the compiler produces executables we can run.  If not, either
2579 # the compiler is broken, or we cross compile.
2580 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2582 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583 echo "${ECHO_T}$cross_compiling" >&6; }
2584
2585 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2587 if { (ac_try="$ac_link"
2588 case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_link") 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; then
2597   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2599 # work properly (i.e., refer to `conftest.exe'), while it won't with
2600 # `rm'.
2601 for ac_file in conftest.exe conftest conftest.*; do
2602   test -f "$ac_file" || continue
2603   case $ac_file in
2604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2605     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606           break;;
2607     * ) break;;
2608   esac
2609 done
2610 else
2611   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }
2616 fi
2617
2618 rm -f conftest$ac_cv_exeext
2619 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2621
2622 rm -f conftest.$ac_ext
2623 EXEEXT=$ac_cv_exeext
2624 ac_exeext=$EXEEXT
2625 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2627 if test "${ac_cv_objext+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636
2637 int
2638 main ()
2639 {
2640
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.o conftest.obj
2646 if { (ac_try="$ac_compile"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652   (eval "$ac_compile") 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; then
2656   for ac_file in conftest.o conftest.obj conftest.*; do
2657   test -f "$ac_file" || continue;
2658   case $ac_file in
2659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2660     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2661        break;;
2662   esac
2663 done
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2671 See \`config.log' for more details." >&2;}
2672    { (exit 1); exit 1; }; }
2673 fi
2674
2675 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 fi
2677 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2678 echo "${ECHO_T}$ac_cv_objext" >&6; }
2679 OBJEXT=$ac_cv_objext
2680 ac_objext=$OBJEXT
2681 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2682 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2683 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692
2693 int
2694 main ()
2695 {
2696 #ifndef __GNUC__
2697        choke me
2698 #endif
2699
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_try") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_compiler_gnu=yes
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743         ac_compiler_gnu=no
2744 fi
2745
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2748
2749 fi
2750 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2751 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2752 GCC=`test $ac_compiler_gnu = yes && echo yes`
2753 ac_test_CFLAGS=${CFLAGS+set}
2754 ac_save_CFLAGS=$CFLAGS
2755 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2756 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_cc_g+set}" = set; then
2758   echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760   ac_save_c_werror_flag=$ac_c_werror_flag
2761    ac_c_werror_flag=yes
2762    ac_cv_prog_cc_g=no
2763    CFLAGS="-g"
2764    cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_compile") 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794   { (case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_try") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_try") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813   ac_cv_prog_cc_g=yes
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818         CFLAGS=""
2819       cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825
2826 int
2827 main ()
2828 {
2829
2830   ;
2831   return 0;
2832 }
2833 _ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (ac_try="$ac_compile"
2836 case "(($ac_try" in
2837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838   *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841   (eval "$ac_compile") 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } &&
2848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2849   { (case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854   (eval "$ac_try") 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864   (eval "$ac_try") 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868   :
2869 else
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873         ac_c_werror_flag=$ac_save_c_werror_flag
2874          CFLAGS="-g"
2875          cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h.  */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h.  */
2881
2882 int
2883 main ()
2884 {
2885
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compile") 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2905   { (case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_try") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920   (eval "$ac_try") 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }; }; then
2924   ac_cv_prog_cc_g=yes
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929
2930 fi
2931
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 fi
2934
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 fi
2937
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939    ac_c_werror_flag=$ac_save_c_werror_flag
2940 fi
2941 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2942 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2943 if test "$ac_test_CFLAGS" = set; then
2944   CFLAGS=$ac_save_CFLAGS
2945 elif test $ac_cv_prog_cc_g = yes; then
2946   if test "$GCC" = yes; then
2947     CFLAGS="-g -O2"
2948   else
2949     CFLAGS="-g"
2950   fi
2951 else
2952   if test "$GCC" = yes; then
2953     CFLAGS="-O2"
2954   else
2955     CFLAGS=
2956   fi
2957 fi
2958 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2959 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2960 if test "${ac_cv_prog_cc_c89+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   ac_cv_prog_cc_c89=no
2964 ac_save_CC=$CC
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h.  */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h.  */
2971 #include <stdarg.h>
2972 #include <stdio.h>
2973 #include <sys/types.h>
2974 #include <sys/stat.h>
2975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2976 struct buf { int x; };
2977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2978 static char *e (p, i)
2979      char **p;
2980      int i;
2981 {
2982   return p[i];
2983 }
2984 static char *f (char * (*g) (char **, int), char **p, ...)
2985 {
2986   char *s;
2987   va_list v;
2988   va_start (v,p);
2989   s = g (p, va_arg (v,int));
2990   va_end (v);
2991   return s;
2992 }
2993
2994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2995    function prototypes and stuff, but not '\xHH' hex character constants.
2996    These don't provoke an error unfortunately, instead are silently treated
2997    as 'x'.  The following induces an error, until -std is added to get
2998    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2999    array size at least.  It's necessary to write '\x00'==0 to get something
3000    that's true only with -std.  */
3001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3002
3003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3004    inside strings and character constants.  */
3005 #define FOO(x) 'x'
3006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3007
3008 int test (int i, double x);
3009 struct s1 {int (*f) (int a);};
3010 struct s2 {int (*f) (double a);};
3011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3012 int argc;
3013 char **argv;
3014 int
3015 main ()
3016 {
3017 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3023         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3024 do
3025   CC="$ac_save_CC $ac_arg"
3026   rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_compile") 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } &&
3040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3041   { (case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_try") 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; } &&
3050          { ac_try='test -s conftest.$ac_objext'
3051   { (case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056   (eval "$ac_try") 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; }; then
3060   ac_cv_prog_cc_c89=$ac_arg
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065
3066 fi
3067
3068 rm -f core conftest.err conftest.$ac_objext
3069   test "x$ac_cv_prog_cc_c89" != "xno" && break
3070 done
3071 rm -f conftest.$ac_ext
3072 CC=$ac_save_CC
3073
3074 fi
3075 # AC_CACHE_VAL
3076 case "x$ac_cv_prog_cc_c89" in
3077   x)
3078     { echo "$as_me:$LINENO: result: none needed" >&5
3079 echo "${ECHO_T}none needed" >&6; } ;;
3080   xno)
3081     { echo "$as_me:$LINENO: result: unsupported" >&5
3082 echo "${ECHO_T}unsupported" >&6; } ;;
3083   *)
3084     CC="$CC $ac_cv_prog_cc_c89"
3085     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3087 esac
3088
3089
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096 ac_ext=cpp
3097 ac_cpp='$CXXCPP $CPPFLAGS'
3098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3101 if test -z "$CXX"; then
3102   if test -n "$CCC"; then
3103     CXX=$CCC
3104   else
3105     if test -n "$ac_tool_prefix"; then
3106   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3107   do
3108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CXX+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   if test -n "$CXX"; then
3116   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121   IFS=$as_save_IFS
3122   test -z "$as_dir" && as_dir=.
3123   for ac_exec_ext in '' $ac_executable_extensions; do
3124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3125     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CXX=$ac_cv_prog_CXX
3136 if test -n "$CXX"; then
3137   { echo "$as_me:$LINENO: result: $CXX" >&5
3138 echo "${ECHO_T}$CXX" >&6; }
3139 else
3140   { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3142 fi
3143
3144
3145     test -n "$CXX" && break
3146   done
3147 fi
3148 if test -z "$CXX"; then
3149   ac_ct_CXX=$CXX
3150   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3151 do
3152   # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   if test -n "$ac_ct_CXX"; then
3160   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167   for ac_exec_ext in '' $ac_executable_extensions; do
3168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3169     ac_cv_prog_ac_ct_CXX="$ac_prog"
3170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3180 if test -n "$ac_ct_CXX"; then
3181   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3182 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3183 else
3184   { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3186 fi
3187
3188
3189   test -n "$ac_ct_CXX" && break
3190 done
3191
3192   if test "x$ac_ct_CXX" = x; then
3193     CXX="g++"
3194   else
3195     case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet.  If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet.  If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205     CXX=$ac_ct_CXX
3206   fi
3207 fi
3208
3209   fi
3210 fi
3211 # Provide some information about the compiler.
3212 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3213 ac_compiler=`set X $ac_compile; echo $2`
3214 { (ac_try="$ac_compiler --version >&5"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_compiler --version >&5") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }
3224 { (ac_try="$ac_compiler -v >&5"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_compiler -v >&5") 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }
3234 { (ac_try="$ac_compiler -V >&5"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_compiler -V >&5") 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }
3244
3245 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3246 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3247 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256
3257 int
3258 main ()
3259 {
3260 #ifndef __GNUC__
3261        choke me
3262 #endif
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_compile") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } &&
3282          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3283   { (case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288   (eval "$ac_try") 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); }; } &&
3292          { ac_try='test -s conftest.$ac_objext'
3293   { (case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_try") 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_compiler_gnu=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307         ac_compiler_gnu=no
3308 fi
3309
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3312
3313 fi
3314 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3316 GXX=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CXXFLAGS=${CXXFLAGS+set}
3318 ac_save_CXXFLAGS=$CXXFLAGS
3319 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3320 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3321 if test "${ac_cv_prog_cxx_g+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3325    ac_cxx_werror_flag=yes
3326    ac_cv_prog_cxx_g=no
3327    CXXFLAGS="-g"
3328    cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (ac_try="$ac_compile"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_compile") 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } &&
3357          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3358   { (case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_try") 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; } &&
3367          { ac_try='test -s conftest.$ac_objext'
3368   { (case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_try") 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }; }; then
3377   ac_cv_prog_cxx_g=yes
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382         CXXFLAGS=""
3383       cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (ac_try="$ac_compile"
3400 case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405   (eval "$ac_compile") 2>conftest.er1
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
3409   cat conftest.err >&5
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } &&
3412          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3413   { (case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_try") 2>&5
3419   ac_status=$?
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); }; } &&
3422          { ac_try='test -s conftest.$ac_objext'
3423   { (case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_try") 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   :
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3438          CXXFLAGS="-g"
3439          cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445
3446 int
3447 main ()
3448 {
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461   (eval "$ac_compile") 2>conftest.er1
3462   ac_status=$?
3463   grep -v '^ *+' conftest.er1 >conftest.err
3464   rm -f conftest.er1
3465   cat conftest.err >&5
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); } &&
3468          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3469   { (case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474   (eval "$ac_try") 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); }; } &&
3478          { ac_try='test -s conftest.$ac_objext'
3479   { (case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_try") 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   ac_cv_prog_cxx_g=yes
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493
3494 fi
3495
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3504 fi
3505 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3506 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3507 if test "$ac_test_CXXFLAGS" = set; then
3508   CXXFLAGS=$ac_save_CXXFLAGS
3509 elif test $ac_cv_prog_cxx_g = yes; then
3510   if test "$GXX" = yes; then
3511     CXXFLAGS="-g -O2"
3512   else
3513     CXXFLAGS="-g"
3514   fi
3515 else
3516   if test "$GXX" = yes; then
3517     CXXFLAGS="-O2"
3518   else
3519     CXXFLAGS=
3520   fi
3521 fi
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527
3528 if test "x$CC" != xcc; then
3529   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3530 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3531 else
3532   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3533 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3534 fi
3535 set dummy $CC; ac_cc=`echo $2 |
3536                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3537 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546
3547 int
3548 main ()
3549 {
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 # Make sure it works both with $CC and with simple cc.
3556 # We do the test twice because some compilers refuse to overwrite an
3557 # existing .o file with -o, though they will create one.
3558 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3559 rm -f conftest2.*
3560 if { (case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_try") 2>&5
3566   ac_status=$?
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } &&
3569    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574   (eval "$ac_try") 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); };
3578 then
3579   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3580   if test "x$CC" != xcc; then
3581     # Test first that cc exists at all.
3582     if { ac_try='cc -c conftest.$ac_ext >&5'
3583   { (case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588   (eval "$ac_try") 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); }; }; then
3592       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3593       rm -f conftest2.*
3594       if { (case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599   (eval "$ac_try") 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } &&
3603          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_try") 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); };
3612       then
3613         # cc works too.
3614         :
3615       else
3616         # cc exists but doesn't like -o.
3617         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3618       fi
3619     fi
3620   fi
3621 else
3622   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3623 fi
3624 rm -f core conftest*
3625
3626 fi
3627 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3628   { echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6; }
3630 else
3631   { echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6; }
3633
3634 cat >>confdefs.h <<\_ACEOF
3635 #define NO_MINUS_C_MINUS_O 1
3636 _ACEOF
3637
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3649   CPP=
3650 fi
3651 if test -z "$CPP"; then
3652   if test "${ac_cv_prog_CPP+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655       # Double quotes because CPP needs to be expanded
3656     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3657     do
3658       ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3660 do
3661   # Use a header file that comes with gcc, so configuring glibc
3662   # with a fresh cross-compiler works.
3663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664   # <limits.h> exists even on freestanding compilers.
3665   # On the NeXT, cc -E runs the code through the compiler's parser,
3666   # not just through cpp. "Syntax error" is here to catch this case.
3667   cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h.  */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h.  */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678                      Syntax error
3679 _ACEOF
3680 if { (ac_try="$ac_cpp conftest.$ac_ext"
3681 case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } >/dev/null; then
3693   if test -s conftest.err; then
3694     ac_cpp_err=$ac_c_preproc_warn_flag
3695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3696   else
3697     ac_cpp_err=
3698   fi
3699 else
3700   ac_cpp_err=yes
3701 fi
3702 if test -z "$ac_cpp_err"; then
3703   :
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708   # Broken: fails on valid input.
3709 continue
3710 fi
3711
3712 rm -f conftest.err conftest.$ac_ext
3713
3714   # OK, works on sane cases.  Now check whether nonexistent headers
3715   # can be detected and how.
3716   cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731   ac_status=$?
3732   grep -v '^ *+' conftest.er1 >conftest.err
3733   rm -f conftest.er1
3734   cat conftest.err >&5
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } >/dev/null; then
3737   if test -s conftest.err; then
3738     ac_cpp_err=$ac_c_preproc_warn_flag
3739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3740   else
3741     ac_cpp_err=
3742   fi
3743 else
3744   ac_cpp_err=yes
3745 fi
3746 if test -z "$ac_cpp_err"; then
3747   # Broken: success on invalid input.
3748 continue
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753   # Passes both tests.
3754 ac_preproc_ok=:
3755 break
3756 fi
3757
3758 rm -f conftest.err conftest.$ac_ext
3759
3760 done
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then
3764   break
3765 fi
3766
3767     done
3768     ac_cv_prog_CPP=$CPP
3769
3770 fi
3771   CPP=$ac_cv_prog_CPP
3772 else
3773   ac_cv_prog_CPP=$CPP
3774 fi
3775 { echo "$as_me:$LINENO: result: $CPP" >&5
3776 echo "${ECHO_T}$CPP" >&6; }
3777 ac_preproc_ok=false
3778 for ac_c_preproc_warn_flag in '' yes
3779 do
3780   # Use a header file that comes with gcc, so configuring glibc
3781   # with a fresh cross-compiler works.
3782   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783   # <limits.h> exists even on freestanding compilers.
3784   # On the NeXT, cc -E runs the code through the compiler's parser,
3785   # not just through cpp. "Syntax error" is here to catch this case.
3786   cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792 #ifdef __STDC__
3793 # include <limits.h>
3794 #else
3795 # include <assert.h>
3796 #endif
3797                      Syntax error
3798 _ACEOF
3799 if { (ac_try="$ac_cpp conftest.$ac_ext"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3806   ac_status=$?
3807   grep -v '^ *+' conftest.er1 >conftest.err
3808   rm -f conftest.er1
3809   cat conftest.err >&5
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); } >/dev/null; then
3812   if test -s conftest.err; then
3813     ac_cpp_err=$ac_c_preproc_warn_flag
3814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3815   else
3816     ac_cpp_err=
3817   fi
3818 else
3819   ac_cpp_err=yes
3820 fi
3821 if test -z "$ac_cpp_err"; then
3822   :
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827   # Broken: fails on valid input.
3828 continue
3829 fi
3830
3831 rm -f conftest.err conftest.$ac_ext
3832
3833   # OK, works on sane cases.  Now check whether nonexistent headers
3834   # can be detected and how.
3835   cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h.  */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h.  */
3841 #include <ac_nonexistent.h>
3842 _ACEOF
3843 if { (ac_try="$ac_cpp conftest.$ac_ext"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } >/dev/null; then
3856   if test -s conftest.err; then
3857     ac_cpp_err=$ac_c_preproc_warn_flag
3858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3859   else
3860     ac_cpp_err=
3861   fi
3862 else
3863   ac_cpp_err=yes
3864 fi
3865 if test -z "$ac_cpp_err"; then
3866   # Broken: success on invalid input.
3867 continue
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872   # Passes both tests.
3873 ac_preproc_ok=:
3874 break
3875 fi
3876
3877 rm -f conftest.err conftest.$ac_ext
3878
3879 done
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok; then
3883   :
3884 else
3885   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3888 See \`config.log' for more details." >&2;}
3889    { (exit 1); exit 1; }; }
3890 fi
3891
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898
3899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3901 if test "${ac_cv_path_GREP+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   # Extract the first word of "grep ggrep" to use in msg output
3905 if test -z "$GREP"; then
3906 set dummy grep ggrep; ac_prog_name=$2
3907 if test "${ac_cv_path_GREP+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   ac_path_GREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_prog in grep ggrep; do
3918   for ac_exec_ext in '' $ac_executable_extensions; do
3919     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3920     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3921     # Check for GNU ac_path_GREP and select it if it is found.
3922   # Check for GNU $ac_path_GREP
3923 case `"$ac_path_GREP" --version 2>&1` in
3924 *GNU*)
3925   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3926 *)
3927   ac_count=0
3928   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3929   while :
3930   do
3931     cat "conftest.in" "conftest.in" >"conftest.tmp"
3932     mv "conftest.tmp" "conftest.in"
3933     cp "conftest.in" "conftest.nl"
3934     echo 'GREP' >> "conftest.nl"
3935     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937     ac_count=`expr $ac_count + 1`
3938     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939       # Best one so far, save it but keep looking for a better one
3940       ac_cv_path_GREP="$ac_path_GREP"
3941       ac_path_GREP_max=$ac_count
3942     fi
3943     # 10*(2^10) chars as input seems more than enough
3944     test $ac_count -gt 10 && break
3945   done
3946   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947 esac
3948
3949
3950     $ac_path_GREP_found && break 3
3951   done
3952 done
3953
3954 done
3955 IFS=$as_save_IFS
3956
3957
3958 fi
3959
3960 GREP="$ac_cv_path_GREP"
3961 if test -z "$GREP"; then
3962   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3964    { (exit 1); exit 1; }; }
3965 fi
3966
3967 else
3968   ac_cv_path_GREP=$GREP
3969 fi
3970
3971
3972 fi
3973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3975  GREP="$ac_cv_path_GREP"
3976
3977
3978 { echo "$as_me:$LINENO: checking for egrep" >&5
3979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3980 if test "${ac_cv_path_EGREP+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3984    then ac_cv_path_EGREP="$GREP -E"
3985    else
3986      # Extract the first word of "egrep" to use in msg output
3987 if test -z "$EGREP"; then
3988 set dummy egrep; ac_prog_name=$2
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   ac_path_EGREP_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 do
3997   IFS=$as_save_IFS
3998   test -z "$as_dir" && as_dir=.
3999   for ac_prog in egrep; do
4000   for ac_exec_ext in '' $ac_executable_extensions; do
4001     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4002     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4003     # Check for GNU ac_path_EGREP and select it if it is found.
4004   # Check for GNU $ac_path_EGREP
4005 case `"$ac_path_EGREP" --version 2>&1` in
4006 *GNU*)
4007   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4008 *)
4009   ac_count=0
4010   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4011   while :
4012   do
4013     cat "conftest.in" "conftest.in" >"conftest.tmp"
4014     mv "conftest.tmp" "conftest.in"
4015     cp "conftest.in" "conftest.nl"
4016     echo 'EGREP' >> "conftest.nl"
4017     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019     ac_count=`expr $ac_count + 1`
4020     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4021       # Best one so far, save it but keep looking for a better one
4022       ac_cv_path_EGREP="$ac_path_EGREP"
4023       ac_path_EGREP_max=$ac_count
4024     fi
4025     # 10*(2^10) chars as input seems more than enough
4026     test $ac_count -gt 10 && break
4027   done
4028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 esac
4030
4031
4032     $ac_path_EGREP_found && break 3
4033   done
4034 done
4035
4036 done
4037 IFS=$as_save_IFS
4038
4039
4040 fi
4041
4042 EGREP="$ac_cv_path_EGREP"
4043 if test -z "$EGREP"; then
4044   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4046    { (exit 1); exit 1; }; }
4047 fi
4048
4049 else
4050   ac_cv_path_EGREP=$EGREP
4051 fi
4052
4053
4054    fi
4055 fi
4056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4058  EGREP="$ac_cv_path_EGREP"
4059
4060
4061 if test $ac_cv_c_compiler_gnu = yes; then
4062     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4063 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4064 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067     ac_pattern="Autoconf.*'x'"
4068   cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #include <sgtty.h>
4075 Autoconf TIOCGETP
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4079   ac_cv_prog_gcc_traditional=yes
4080 else
4081   ac_cv_prog_gcc_traditional=no
4082 fi
4083 rm -f conftest*
4084
4085
4086   if test $ac_cv_prog_gcc_traditional = no; then
4087     cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093 #include <termio.h>
4094 Autoconf TCGETA
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4098   ac_cv_prog_gcc_traditional=yes
4099 fi
4100 rm -f conftest*
4101
4102   fi
4103 fi
4104 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4105 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4106   if test $ac_cv_prog_gcc_traditional = yes; then
4107     CC="$CC -traditional"
4108   fi
4109 fi
4110
4111 BASECC=`basename $CC`
4112 have_gcc=no
4113 if test "x$BASECC" = xgcc; then
4114    cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_GCC 1
4116 _ACEOF
4117
4118    have_gcc=yes
4119 fi
4120 # Extract the first word of "$CXX", so it can be a program name with args.
4121 set dummy $CXX; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_CXX+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   case $CXX in
4128   [\\/]* | ?:[\\/]*)
4129   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4130   ;;
4131   *)
4132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4139     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4148   ;;
4149 esac
4150 fi
4151 CXX=$ac_cv_path_CXX
4152 if test -n "$CXX"; then
4153   { echo "$as_me:$LINENO: result: $CXX" >&5
4154 echo "${ECHO_T}$CXX" >&6; }
4155 else
4156   { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4158 fi
4159
4160
4161 if test ! -e $CXX; then
4162    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4163 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4164    { (exit 1); exit 1; }; }
4165 fi
4166
4167 # Find a good install program.  We prefer a C program (faster),
4168 # so one script is as good as another.  But avoid the broken or
4169 # incompatible versions:
4170 # SysV /etc/install, /usr/sbin/install
4171 # SunOS /usr/etc/install
4172 # IRIX /sbin/install
4173 # AIX /bin/install
4174 # AmigaOS /C/install, which installs bootblocks on floppy discs
4175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4178 # OS/2's system install, which has a completely different semantic
4179 # ./install, which can be erroneously created by make from ./install.sh.
4180 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4181 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4182 if test -z "$INSTALL"; then
4183 if test "${ac_cv_path_install+set}" = set; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   # Account for people who put trailing slashes in PATH elements.
4192 case $as_dir/ in
4193   ./ | .// | /cC/* | \
4194   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4195   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4196   /usr/ucb/* ) ;;
4197   *)
4198     # OSF1 and SCO ODT 3.0 have their own names for install.
4199     # Don't use installbsd from OSF since it installs stuff as root
4200     # by default.
4201     for ac_prog in ginstall scoinst install; do
4202       for ac_exec_ext in '' $ac_executable_extensions; do
4203         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4204           if test $ac_prog = install &&
4205             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4206             # AIX install.  It has an incompatible calling convention.
4207             :
4208           elif test $ac_prog = install &&
4209             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4210             # program-specific install script used by HP pwplus--don't use.
4211             :
4212           else
4213             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4214             break 3
4215           fi
4216         fi
4217       done
4218     done
4219     ;;
4220 esac
4221 done
4222 IFS=$as_save_IFS
4223
4224
4225 fi
4226   if test "${ac_cv_path_install+set}" = set; then
4227     INSTALL=$ac_cv_path_install
4228   else
4229     # As a last resort, use the slow shell script.  Don't cache a
4230     # value for INSTALL within a source directory, because that will
4231     # break other packages using the cache if that directory is
4232     # removed, or if the value is a relative name.
4233     INSTALL=$ac_install_sh
4234   fi
4235 fi
4236 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4237 echo "${ECHO_T}$INSTALL" >&6; }
4238
4239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4240 # It thinks the first close brace ends the variable substitution.
4241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4242
4243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4244
4245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4246
4247 if test -n "$ac_tool_prefix"; then
4248   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252 if test "${ac_cv_prog_RANLIB+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   if test -n "$RANLIB"; then
4256   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_exec_ext in '' $ac_executable_extensions; do
4264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4265     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270 done
4271 IFS=$as_save_IFS
4272
4273 fi
4274 fi
4275 RANLIB=$ac_cv_prog_RANLIB
4276 if test -n "$RANLIB"; then
4277   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4278 echo "${ECHO_T}$RANLIB" >&6; }
4279 else
4280   { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4282 fi
4283
4284
4285 fi
4286 if test -z "$ac_cv_prog_RANLIB"; then
4287   ac_ct_RANLIB=$RANLIB
4288   # Extract the first word of "ranlib", so it can be a program name with args.
4289 set dummy ranlib; ac_word=$2
4290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   if test -n "$ac_ct_RANLIB"; then
4296   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4305     ac_cv_prog_ac_ct_RANLIB="ranlib"
4306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4316 if test -n "$ac_ct_RANLIB"; then
4317   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4318 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4319 else
4320   { echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6; }
4322 fi
4323
4324   if test "x$ac_ct_RANLIB" = x; then
4325     RANLIB=":"
4326   else
4327     case $cross_compiling:$ac_tool_warned in
4328 yes:)
4329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4330 whose name does not start with the host triplet.  If you think this
4331 configuration is useful to you, please write to autoconf@gnu.org." >&5
4332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4333 whose name does not start with the host triplet.  If you think this
4334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4335 ac_tool_warned=yes ;;
4336 esac
4337     RANLIB=$ac_ct_RANLIB
4338   fi
4339 else
4340   RANLIB="$ac_cv_prog_RANLIB"
4341 fi
4342
4343 # Extract the first word of "mv", so it can be a program name with args.
4344 set dummy mv; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_path_MV+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   case $MV in
4351   [\\/]* | ?:[\\/]*)
4352   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4353   ;;
4354   *)
4355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360   for ac_exec_ext in '' $ac_executable_extensions; do
4361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4362     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4371   ;;
4372 esac
4373 fi
4374 MV=$ac_cv_path_MV
4375 if test -n "$MV"; then
4376   { echo "$as_me:$LINENO: result: $MV" >&5
4377 echo "${ECHO_T}$MV" >&6; }
4378 else
4379   { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4381 fi
4382
4383
4384 # Extract the first word of "rm", so it can be a program name with args.
4385 set dummy rm; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_path_RM+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   case $RM in
4392   [\\/]* | ?:[\\/]*)
4393   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4394   ;;
4395   *)
4396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401   for ac_exec_ext in '' $ac_executable_extensions; do
4402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4403     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405     break 2
4406   fi
4407 done
4408 done
4409 IFS=$as_save_IFS
4410
4411   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4412   ;;
4413 esac
4414 fi
4415 RM=$ac_cv_path_RM
4416 if test -n "$RM"; then
4417   { echo "$as_me:$LINENO: result: $RM" >&5
4418 echo "${ECHO_T}$RM" >&6; }
4419 else
4420   { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4422 fi
4423
4424
4425 # Extract the first word of "cp", so it can be a program name with args.
4426 set dummy cp; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_path_CP+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   case $CP in
4433   [\\/]* | ?:[\\/]*)
4434   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4435   ;;
4436   *)
4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4453   ;;
4454 esac
4455 fi
4456 CP=$ac_cv_path_CP
4457 if test -n "$CP"; then
4458   { echo "$as_me:$LINENO: result: $CP" >&5
4459 echo "${ECHO_T}$CP" >&6; }
4460 else
4461   { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4463 fi
4464
4465
4466 # Extract the first word of "sed", so it can be a program name with args.
4467 set dummy sed; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_path_SED+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   case $SED in
4474   [\\/]* | ?:[\\/]*)
4475   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4476   ;;
4477   *)
4478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4494   ;;
4495 esac
4496 fi
4497 SED=$ac_cv_path_SED
4498 if test -n "$SED"; then
4499   { echo "$as_me:$LINENO: result: $SED" >&5
4500 echo "${ECHO_T}$SED" >&6; }
4501 else
4502   { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4504 fi
4505
4506
4507 # Extract the first word of "echo", so it can be a program name with args.
4508 set dummy echo; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_path_ECHO+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   case $ECHO in
4515   [\\/]* | ?:[\\/]*)
4516   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4517   ;;
4518   *)
4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4535   ;;
4536 esac
4537 fi
4538 ECHO=$ac_cv_path_ECHO
4539 if test -n "$ECHO"; then
4540   { echo "$as_me:$LINENO: result: $ECHO" >&5
4541 echo "${ECHO_T}$ECHO" >&6; }
4542 else
4543   { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4545 fi
4546
4547
4548 # Extract the first word of "cmp", so it can be a program name with args.
4549 set dummy cmp; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_path_CMP+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   case $CMP in
4556   [\\/]* | ?:[\\/]*)
4557   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4558   ;;
4559   *)
4560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4576   ;;
4577 esac
4578 fi
4579 CMP=$ac_cv_path_CMP
4580 if test -n "$CMP"; then
4581   { echo "$as_me:$LINENO: result: $CMP" >&5
4582 echo "${ECHO_T}$CMP" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589 # Extract the first word of "tbl", so it can be a program name with args.
4590 set dummy tbl; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_path_TBL+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   case $TBL in
4597   [\\/]* | ?:[\\/]*)
4598   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4599   ;;
4600   *)
4601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606   for ac_exec_ext in '' $ac_executable_extensions; do
4607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4608     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4617   ;;
4618 esac
4619 fi
4620 TBL=$ac_cv_path_TBL
4621 if test -n "$TBL"; then
4622   { echo "$as_me:$LINENO: result: $TBL" >&5
4623 echo "${ECHO_T}$TBL" >&6; }
4624 else
4625   { echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6; }
4627 fi
4628
4629
4630 # Extract the first word of "ar", so it can be a program name with args.
4631 set dummy ar; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_path_AR+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   case $AR in
4638   [\\/]* | ?:[\\/]*)
4639   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4640   ;;
4641   *)
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647   for ac_exec_ext in '' $ac_executable_extensions; do
4648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4649     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4658   ;;
4659 esac
4660 fi
4661 AR=$ac_cv_path_AR
4662 if test -n "$AR"; then
4663   { echo "$as_me:$LINENO: result: $AR" >&5
4664 echo "${ECHO_T}$AR" >&6; }
4665 else
4666   { echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6; }
4668 fi
4669
4670
4671 # Extract the first word of "openssl", so it can be a program name with args.
4672 set dummy openssl; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_path_OPENSSL+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   case $OPENSSL in
4679   [\\/]* | ?:[\\/]*)
4680   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4681   ;;
4682   *)
4683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4699   ;;
4700 esac
4701 fi
4702 OPENSSL=$ac_cv_path_OPENSSL
4703 if test -n "$OPENSSL"; then
4704   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4705 echo "${ECHO_T}$OPENSSL" >&6; }
4706 else
4707   { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4709 fi
4710
4711
4712 # Extract the first word of "mtx", so it can be a program name with args.
4713 set dummy mtx; ac_word=$2
4714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4716 if test "${ac_cv_path_MTX+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   case $MTX in
4720   [\\/]* | ?:[\\/]*)
4721   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4722   ;;
4723   *)
4724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729   for ac_exec_ext in '' $ac_executable_extensions; do
4730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4731     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733     break 2
4734   fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4740   ;;
4741 esac
4742 fi
4743 MTX=$ac_cv_path_MTX
4744 if test -n "$MTX"; then
4745   { echo "$as_me:$LINENO: result: $MTX" >&5
4746 echo "${ECHO_T}$MTX" >&6; }
4747 else
4748   { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4750 fi
4751
4752
4753 # Extract the first word of "dd", so it can be a program name with args.
4754 set dummy dd; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_path_DD+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   case $DD in
4761   [\\/]* | ?:[\\/]*)
4762   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4763   ;;
4764   *)
4765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770   for ac_exec_ext in '' $ac_executable_extensions; do
4771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4772     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777 done
4778 IFS=$as_save_IFS
4779
4780   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4781   ;;
4782 esac
4783 fi
4784 DD=$ac_cv_path_DD
4785 if test -n "$DD"; then
4786   { echo "$as_me:$LINENO: result: $DD" >&5
4787 echo "${ECHO_T}$DD" >&6; }
4788 else
4789   { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4791 fi
4792
4793
4794 # Extract the first word of "mkisofs", so it can be a program name with args.
4795 set dummy mkisofs; ac_word=$2
4796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4798 if test "${ac_cv_path_MKISOFS+set}" = set; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   case $MKISOFS in
4802   [\\/]* | ?:[\\/]*)
4803   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4804   ;;
4805   *)
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811   for ac_exec_ext in '' $ac_executable_extensions; do
4812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4813     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818 done
4819 IFS=$as_save_IFS
4820
4821   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4822   ;;
4823 esac
4824 fi
4825 MKISOFS=$ac_cv_path_MKISOFS
4826 if test -n "$MKISOFS"; then
4827   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4828 echo "${ECHO_T}$MKISOFS" >&6; }
4829 else
4830   { echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6; }
4832 fi
4833
4834
4835 # Extract the first word of "python", so it can be a program name with args.
4836 set dummy python; ac_word=$2
4837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839 if test "${ac_cv_path_PYTHON+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   case $PYTHON in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4854     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860 IFS=$as_save_IFS
4861
4862   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4863   ;;
4864 esac
4865 fi
4866 PYTHON=$ac_cv_path_PYTHON
4867 if test -n "$PYTHON"; then
4868   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4869 echo "${ECHO_T}$PYTHON" >&6; }
4870 else
4871   { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4873 fi
4874
4875
4876 # Extract the first word of "growisofs", so it can be a program name with args.
4877 set dummy growisofs; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   case $GROWISOFS in
4884   [\\/]* | ?:[\\/]*)
4885   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4886   ;;
4887   *)
4888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4904   ;;
4905 esac
4906 fi
4907 GROWISOFS=$ac_cv_path_GROWISOFS
4908 if test -n "$GROWISOFS"; then
4909   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4910 echo "${ECHO_T}$GROWISOFS" >&6; }
4911 else
4912   { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4914 fi
4915
4916
4917 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4918 set dummy dvd+rw-mediainfo; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   case $DVDRWMEDIAINFO in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4945   ;;
4946 esac
4947 fi
4948 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4949 if test -n "$DVDRWMEDIAINFO"; then
4950   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4951 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4952 else
4953   { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4955 fi
4956
4957
4958 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4959 set dummy dvd+rw-format; ac_word=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   case $DVDRWFORMAT in
4966   [\\/]* | ?:[\\/]*)
4967   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4968   ;;
4969   *)
4970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975   for ac_exec_ext in '' $ac_executable_extensions; do
4976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4977     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4986   ;;
4987 esac
4988 fi
4989 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4990 if test -n "$DVDRWFORMAT"; then
4991   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4992 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4993 else
4994   { echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6; }
4996 fi
4997
4998
4999 # Extract the first word of "pkg-config", so it can be a program name with args.
5000 set dummy pkg-config; ac_word=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   case $PKGCONFIG in
5007   [\\/]* | ?:[\\/]*)
5008   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5009   ;;
5010   *)
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016   for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5027   ;;
5028 esac
5029 fi
5030 PKGCONFIG=$ac_cv_path_PKGCONFIG
5031 if test -n "$PKGCONFIG"; then
5032   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5033 echo "${ECHO_T}$PKGCONFIG" >&6; }
5034 else
5035   { echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6; }
5037 fi
5038
5039
5040
5041 if test "x$WXCONFIG" = x; then
5042   WXCONFIG=wx-config
5043 fi
5044 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5045 set dummy ${WXCONFIG}; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   case $WXCONFIG in
5052   [\\/]* | ?:[\\/]*)
5053   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5054   ;;
5055   *)
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5072   ;;
5073 esac
5074 fi
5075 WXCONFIG=$ac_cv_path_WXCONFIG
5076 if test -n "$WXCONFIG"; then
5077   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5078 echo "${ECHO_T}$WXCONFIG" >&6; }
5079 else
5080   { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5082 fi
5083
5084
5085
5086 # Extract the first word of "cdrecord", so it can be a program name with args.
5087 set dummy cdrecord; ac_word=$2
5088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090 if test "${ac_cv_path_CDRECORD+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   case $CDRECORD in
5094   [\\/]* | ?:[\\/]*)
5095   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5096   ;;
5097   *)
5098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103   for ac_exec_ext in '' $ac_executable_extensions; do
5104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5105     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110 done
5111 IFS=$as_save_IFS
5112
5113   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5114   ;;
5115 esac
5116 fi
5117 CDRECORD=$ac_cv_path_CDRECORD
5118 if test -n "$CDRECORD"; then
5119   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5120 echo "${ECHO_T}$CDRECORD" >&6; }
5121 else
5122   { echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6; }
5124 fi
5125
5126
5127 # Extract the first word of "pidof", so it can be a program name with args.
5128 set dummy pidof; ac_word=$2
5129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5131 if test "${ac_cv_path_PIDOF+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   case $PIDOF in
5135   [\\/]* | ?:[\\/]*)
5136   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5137   ;;
5138   *)
5139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144   for ac_exec_ext in '' $ac_executable_extensions; do
5145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5146     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5155   ;;
5156 esac
5157 fi
5158 PIDOF=$ac_cv_path_PIDOF
5159 if test -n "$PIDOF"; then
5160   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5161 echo "${ECHO_T}$PIDOF" >&6; }
5162 else
5163   { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5165 fi
5166
5167
5168 for ac_prog in gawk mawk nawk awk
5169 do
5170   # Extract the first word of "$ac_prog", so it can be a program name with args.
5171 set dummy $ac_prog; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_AWK+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test -n "$AWK"; then
5178   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_prog_AWK="$ac_prog"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 AWK=$ac_cv_prog_AWK
5198 if test -n "$AWK"; then
5199   { echo "$as_me:$LINENO: result: $AWK" >&5
5200 echo "${ECHO_T}$AWK" >&6; }
5201 else
5202   { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5204 fi
5205
5206
5207   test -n "$AWK" && break
5208 done
5209
5210 # Some AWK programs fail, so test it and warn the user
5211 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5212       { if ((prog == $2) || (("(" prog ")") == $2) ||
5213            (("" prog "") == $2) ||
5214            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5215 else
5216   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5217    The regex engine of $AWK is too broken to be used you
5218    might want to install GNU AWK.
5219    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5220 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5221    The regex engine of $AWK is too broken to be used you
5222    might want to install GNU AWK.
5223    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5224    { (exit 1); exit 1; }; }
5225 fi
5226 THE_AWK=$AWK
5227 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5228 set dummy $THE_AWK; ac_word=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_AWK+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   case $AWK in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244   for ac_exec_ext in '' $ac_executable_extensions; do
5245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5246     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5255   ;;
5256 esac
5257 fi
5258 AWK=$ac_cv_path_AWK
5259 if test -n "$AWK"; then
5260   { echo "$as_me:$LINENO: result: $AWK" >&5
5261 echo "${ECHO_T}$AWK" >&6; }
5262 else
5263   { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5265 fi
5266
5267
5268
5269 test -n "$ARFLAG" || ARFLAGS="cr"
5270
5271
5272 MAKE_SHELL=/bin/sh
5273
5274
5275
5276
5277
5278
5279
5280 # Make sure we can run config.sub.
5281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5282   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5284    { (exit 1); exit 1; }; }
5285
5286 { echo "$as_me:$LINENO: checking build system type" >&5
5287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5288 if test "${ac_cv_build+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   ac_build_alias=$build_alias
5292 test "x$ac_build_alias" = x &&
5293   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5294 test "x$ac_build_alias" = x &&
5295   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5297    { (exit 1); exit 1; }; }
5298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5299   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5301    { (exit 1); exit 1; }; }
5302
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5305 echo "${ECHO_T}$ac_cv_build" >&6; }
5306 case $ac_cv_build in
5307 *-*-*) ;;
5308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5309 echo "$as_me: error: invalid value of canonical build" >&2;}
5310    { (exit 1); exit 1; }; };;
5311 esac
5312 build=$ac_cv_build
5313 ac_save_IFS=$IFS; IFS='-'
5314 set x $ac_cv_build
5315 shift
5316 build_cpu=$1
5317 build_vendor=$2
5318 shift; shift
5319 # Remember, the first character of IFS is used to create $*,
5320 # except with old shells:
5321 build_os=$*
5322 IFS=$ac_save_IFS
5323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5324
5325
5326
5327 { echo "$as_me:$LINENO: checking host system type" >&5
5328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5329 if test "${ac_cv_host+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test "x$host_alias" = x; then
5333   ac_cv_host=$ac_cv_build
5334 else
5335   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5336     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5338    { (exit 1); exit 1; }; }
5339 fi
5340
5341 fi
5342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5343 echo "${ECHO_T}$ac_cv_host" >&6; }
5344 case $ac_cv_host in
5345 *-*-*) ;;
5346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5347 echo "$as_me: error: invalid value of canonical host" >&2;}
5348    { (exit 1); exit 1; }; };;
5349 esac
5350 host=$ac_cv_host
5351 ac_save_IFS=$IFS; IFS='-'
5352 set x $ac_cv_host
5353 shift
5354 host_cpu=$1
5355 host_vendor=$2
5356 shift; shift
5357 # Remember, the first character of IFS is used to create $*,
5358 # except with old shells:
5359 host_os=$*
5360 IFS=$ac_save_IFS
5361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5362
5363
5364 case $host_os in
5365   *cygwin* ) CYGWIN=yes;;
5366          * ) CYGWIN=no;;
5367 esac
5368
5369 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5370 then
5371
5372
5373 if $TRUEPRG; then
5374   HAVE_SUN_OS_TRUE=
5375   HAVE_SUN_OS_FALSE='#'
5376 else
5377   HAVE_SUN_OS_TRUE='#'
5378   HAVE_SUN_OS_FALSE=
5379 fi
5380         cat >>confdefs.h <<\_ACEOF
5381 #define HAVE_SUN_OS 1
5382 _ACEOF
5383
5384 else
5385
5386
5387 if $FALSEPRG; then
5388   HAVE_SUN_OS_TRUE=
5389   HAVE_SUN_OS_FALSE='#'
5390 else
5391   HAVE_SUN_OS_TRUE='#'
5392   HAVE_SUN_OS_FALSE=
5393 fi
5394 fi
5395
5396 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5397 then
5398
5399
5400 if $TRUEPRG; then
5401   HAVE_OSF1_OS_TRUE=
5402   HAVE_OSF1_OS_FALSE='#'
5403 else
5404   HAVE_OSF1_OS_TRUE='#'
5405   HAVE_OSF1_OS_FALSE=
5406 fi
5407         cat >>confdefs.h <<\_ACEOF
5408 #define HAVE_OSF1_OS 1
5409 _ACEOF
5410
5411 else
5412
5413
5414 if $FALSEPRG; then
5415   HAVE_OSF1_OS_TRUE=
5416   HAVE_OSF1_OS_FALSE='#'
5417 else
5418   HAVE_OSF1_OS_TRUE='#'
5419   HAVE_OSF1_OS_FALSE=
5420 fi
5421 fi
5422
5423 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5424 then
5425
5426
5427 if $TRUEPRG; then
5428   HAVE_AIX_OS_TRUE=
5429   HAVE_AIX_OS_FALSE='#'
5430 else
5431   HAVE_AIX_OS_TRUE='#'
5432   HAVE_AIX_OS_FALSE=
5433 fi
5434         cat >>confdefs.h <<\_ACEOF
5435 #define HAVE_AIX_OS 1
5436 _ACEOF
5437
5438 else
5439
5440
5441 if $FALSEPRG; then
5442   HAVE_AIX_OS_TRUE=
5443   HAVE_AIX_OS_FALSE='#'
5444 else
5445   HAVE_AIX_OS_TRUE='#'
5446   HAVE_AIX_OS_FALSE=
5447 fi
5448 fi
5449
5450 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5451 then
5452
5453
5454 if $TRUEPRG; then
5455   HAVE_HPUX_OS_TRUE=
5456   HAVE_HPUX_OS_FALSE='#'
5457 else
5458   HAVE_HPUX_OS_TRUE='#'
5459   HAVE_HPUX_OS_FALSE=
5460 fi
5461         cat >>confdefs.h <<\_ACEOF
5462 #define HAVE_HPUX_OS 1
5463 _ACEOF
5464
5465 else
5466
5467
5468 if $FALSEPRG; then
5469   HAVE_HPUX_OS_TRUE=
5470   HAVE_HPUX_OS_FALSE='#'
5471 else
5472   HAVE_HPUX_OS_TRUE='#'
5473   HAVE_HPUX_OS_FALSE=
5474 fi
5475 fi
5476
5477 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5478 then
5479
5480
5481 if $TRUEPRG; then
5482   HAVE_LINUX_OS_TRUE=
5483   HAVE_LINUX_OS_FALSE='#'
5484 else
5485   HAVE_LINUX_OS_TRUE='#'
5486   HAVE_LINUX_OS_FALSE=
5487 fi
5488         cat >>confdefs.h <<\_ACEOF
5489 #define HAVE_LINUX_OS 1
5490 _ACEOF
5491
5492 else
5493
5494
5495 if $FALSEPRG; then
5496   HAVE_LINUX_OS_TRUE=
5497   HAVE_LINUX_OS_FALSE='#'
5498 else
5499   HAVE_LINUX_OS_TRUE='#'
5500   HAVE_LINUX_OS_FALSE=
5501 fi
5502 fi
5503
5504 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5505 then
5506
5507
5508 if $TRUEPRG; then
5509   HAVE_FREEBSD_OS_TRUE=
5510   HAVE_FREEBSD_OS_FALSE='#'
5511 else
5512   HAVE_FREEBSD_OS_TRUE='#'
5513   HAVE_FREEBSD_OS_FALSE=
5514 fi
5515         cat >>confdefs.h <<\_ACEOF
5516 #define HAVE_FREEBSD_OS 1
5517 _ACEOF
5518
5519 else
5520
5521
5522 if $FALSEPRG; then
5523   HAVE_FREEBSD_OS_TRUE=
5524   HAVE_FREEBSD_OS_FALSE='#'
5525 else
5526   HAVE_FREEBSD_OS_TRUE='#'
5527   HAVE_FREEBSD_OS_FALSE=
5528 fi
5529 fi
5530
5531 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5532 then
5533
5534
5535 if $TRUEPRG; then
5536   HAVE_NETBSD_OS_TRUE=
5537   HAVE_NETBSD_OS_FALSE='#'
5538 else
5539   HAVE_NETBSD_OS_TRUE='#'
5540   HAVE_NETBSD_OS_FALSE=
5541 fi
5542         cat >>confdefs.h <<\_ACEOF
5543 #define HAVE_NETBSD_OS 1
5544 _ACEOF
5545
5546 else
5547
5548
5549 if $FALSEPRG; then
5550   HAVE_NETBSD_OS_TRUE=
5551   HAVE_NETBSD_OS_FALSE='#'
5552 else
5553   HAVE_NETBSD_OS_TRUE='#'
5554   HAVE_NETBSD_OS_FALSE=
5555 fi
5556 fi
5557
5558 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5559 then
5560
5561
5562 if $TRUEPRG; then
5563   HAVE_OPENBSD_OS_TRUE=
5564   HAVE_OPENBSD_OS_FALSE='#'
5565 else
5566   HAVE_OPENBSD_OS_TRUE='#'
5567   HAVE_OPENBSD_OS_FALSE=
5568 fi
5569         cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_OPENBSD_OS 1
5571 _ACEOF
5572
5573 else
5574
5575
5576 if $FALSEPRG; then
5577   HAVE_OPENBSD_OS_TRUE=
5578   HAVE_OPENBSD_OS_FALSE='#'
5579 else
5580   HAVE_OPENBSD_OS_TRUE='#'
5581   HAVE_OPENBSD_OS_FALSE=
5582 fi
5583 fi
5584
5585 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5586 then
5587
5588
5589 if $TRUEPRG; then
5590   HAVE_BSDI_OS_TRUE=
5591   HAVE_BSDI_OS_FALSE='#'
5592 else
5593   HAVE_BSDI_OS_TRUE='#'
5594   HAVE_BSDI_OS_FALSE=
5595 fi
5596         cat >>confdefs.h <<\_ACEOF
5597 #define HAVE_BSDI_OS 1
5598 _ACEOF
5599
5600 else
5601
5602
5603 if $FALSEPRG; then
5604   HAVE_BSDI_OS_TRUE=
5605   HAVE_BSDI_OS_FALSE='#'
5606 else
5607   HAVE_BSDI_OS_TRUE='#'
5608   HAVE_BSDI_OS_FALSE=
5609 fi
5610 fi
5611
5612 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5613 then
5614
5615
5616 if $TRUEPRG; then
5617   HAVE_SGI_OS_TRUE=
5618   HAVE_SGI_OS_FALSE='#'
5619 else
5620   HAVE_SGI_OS_TRUE='#'
5621   HAVE_SGI_OS_FALSE=
5622 fi
5623         cat >>confdefs.h <<\_ACEOF
5624 #define HAVE_SGI_OS 1
5625 _ACEOF
5626
5627 else
5628
5629
5630 if $FALSEPRG; then
5631   HAVE_SGI_OS_TRUE=
5632   HAVE_SGI_OS_FALSE='#'
5633 else
5634   HAVE_SGI_OS_TRUE='#'
5635   HAVE_SGI_OS_FALSE=
5636 fi
5637 fi
5638
5639 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5640 then
5641
5642
5643 if $TRUEPRG; then
5644   HAVE_IRIX_OS_TRUE=
5645   HAVE_IRIX_OS_FALSE='#'
5646 else
5647   HAVE_IRIX_OS_TRUE='#'
5648   HAVE_IRIX_OS_FALSE=
5649 fi
5650         cat >>confdefs.h <<\_ACEOF
5651 #define HAVE_IRIX_OS 1
5652 _ACEOF
5653
5654 else
5655
5656
5657 if $FALSEPRG; then
5658   HAVE_IRIX_OS_TRUE=
5659   HAVE_IRIX_OS_FALSE='#'
5660 else
5661   HAVE_IRIX_OS_TRUE='#'
5662   HAVE_IRIX_OS_FALSE=
5663 fi
5664 fi
5665
5666 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5667 then
5668
5669
5670 if $TRUEPRG; then
5671   HAVE_DARWIN_OS_TRUE=
5672   HAVE_DARWIN_OS_FALSE='#'
5673 else
5674   HAVE_DARWIN_OS_TRUE='#'
5675   HAVE_DARWIN_OS_FALSE=
5676 fi
5677     cat >>confdefs.h <<\_ACEOF
5678 #define HAVE_DARWIN_OS 1
5679 _ACEOF
5680
5681 else
5682
5683
5684 if $FALSEPRG; then
5685   HAVE_DARWIN_OS_TRUE=
5686   HAVE_DARWIN_OS_FALSE='#'
5687 else
5688   HAVE_DARWIN_OS_TRUE='#'
5689   HAVE_DARWIN_OS_FALSE=
5690 fi
5691 fi
5692
5693
5694 # -----------------------------------------------------------
5695 # ----------------------------------------------------------
5696 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5697 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5698 if test "x$DISTNAME" != "x"
5699 then
5700         echo "distname set to $DISTNAME"
5701 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5702 then
5703         DISTNAME=alpha
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5705 then
5706         DISTNAME=aix
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5708 then
5709         DISTNAME=hpux
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5711 then
5712         DISTNAME=solaris
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5714 then
5715         DISTNAME=freebsd
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5717 then
5718         DISTNAME=netbsd
5719 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5720 then
5721         DISTNAME=openbsd
5722 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5723 then
5724         DISTNAME=irix
5725 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5726 then
5727         DISTNAME=bsdi
5728 elif test -f /etc/SuSE-release
5729 then
5730         DISTNAME=suse
5731 elif test -d /etc/SuSEconfig
5732 then
5733         DISTNAME=suse5
5734 elif test -f /etc/mandrake-release
5735 then
5736         DISTNAME=mandrake
5737 elif test -f /etc/whitebox-release
5738 then
5739        DISTNAME=redhat
5740 elif test -f /etc/redhat-release
5741 then
5742         DISTNAME=redhat
5743 elif test -f /etc/gentoo-release
5744 then
5745         DISTNAME=gentoo
5746 elif test -f /etc/debian_version
5747 then
5748         DISTNAME=debian
5749 elif test -f /etc/slackware-version
5750 then
5751         DISTNAME=slackware
5752 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5753 then
5754     DISTNAME=darwin
5755 elif test -f /etc/engarde-version
5756 then
5757         DISTNAME=engarde
5758 elif test "$CYGWIN" = yes
5759 then
5760         DISTNAME=cygwin
5761         cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_CYGWIN 1
5763 _ACEOF
5764
5765 else
5766         DISTNAME=unknown
5767 fi
5768 { echo "$as_me:$LINENO: result: done" >&5
5769 echo "${ECHO_T}done" >&6; }
5770
5771
5772 # --------------------------------------------------
5773 # Suppport for gettext (translations)
5774 # By default, $datadir is ${prefix}/share
5775 # --------------------------------------------------
5776 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5777 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5778 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5779 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   cat >conftest.make <<\_ACEOF
5783 SHELL = /bin/sh
5784 all:
5785         @echo '@@@%%%=$(MAKE)=@@@%%%'
5786 _ACEOF
5787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5789   *@@@%%%=?*=@@@%%%*)
5790     eval ac_cv_prog_make_${ac_make}_set=yes;;
5791   *)
5792     eval ac_cv_prog_make_${ac_make}_set=no;;
5793 esac
5794 rm -f conftest.make
5795 fi
5796 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5797   { echo "$as_me:$LINENO: result: yes" >&5
5798 echo "${ECHO_T}yes" >&6; }
5799   SET_MAKE=
5800 else
5801   { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5803   SET_MAKE="MAKE=${MAKE-make}"
5804 fi
5805
5806
5807
5808         MKINSTALLDIRS=
5809   if test -n "$ac_aux_dir"; then
5810     case "$ac_aux_dir" in
5811       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5812       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5813     esac
5814   fi
5815   if test -z "$MKINSTALLDIRS"; then
5816     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5817   fi
5818
5819
5820
5821   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5822 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5823     # Check whether --enable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825   enableval=$enable_nls; USE_NLS=$enableval
5826 else
5827   USE_NLS=yes
5828 fi
5829
5830   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5831 echo "${ECHO_T}$USE_NLS" >&6; }
5832
5833
5834
5835
5836
5837
5838 # Prepare PATH_SEPARATOR.
5839 # The user is always right.
5840 if test "${PATH_SEPARATOR+set}" != set; then
5841   echo "#! /bin/sh" >conf$$.sh
5842   echo  "exit 0"   >>conf$$.sh
5843   chmod +x conf$$.sh
5844   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5845     PATH_SEPARATOR=';'
5846   else
5847     PATH_SEPARATOR=:
5848   fi
5849   rm -f conf$$.sh
5850 fi
5851
5852 # Find out how to test for executable files. Don't use a zero-byte file,
5853 # as systems may use methods other than mode bits to determine executability.
5854 cat >conf$$.file <<_ASEOF
5855 #! /bin/sh
5856 exit 0
5857 _ASEOF
5858 chmod +x conf$$.file
5859 if test -x conf$$.file >/dev/null 2>&1; then
5860   ac_executable_p="test -x"
5861 else
5862   ac_executable_p="test -f"
5863 fi
5864 rm -f conf$$.file
5865
5866 # Extract the first word of "msgfmt", so it can be a program name with args.
5867 set dummy msgfmt; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_path_MSGFMT+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   case "$MSGFMT" in
5874   [\\/]* | ?:[\\/]*)
5875     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5876     ;;
5877   *)
5878     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5879     for ac_dir in $PATH; do
5880       IFS="$ac_save_IFS"
5881       test -z "$ac_dir" && ac_dir=.
5882       for ac_exec_ext in '' $ac_executable_extensions; do
5883         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5884           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5885           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5886      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5887             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5888             break 2
5889           fi
5890         fi
5891       done
5892     done
5893     IFS="$ac_save_IFS"
5894   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5895     ;;
5896 esac
5897 fi
5898 MSGFMT="$ac_cv_path_MSGFMT"
5899 if test "$MSGFMT" != ":"; then
5900   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5901 echo "${ECHO_T}$MSGFMT" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5908 set dummy gmsgfmt; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   case $GMSGFMT in
5915   [\\/]* | ?:[\\/]*)
5916   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5917   ;;
5918   *)
5919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924   for ac_exec_ext in '' $ac_executable_extensions; do
5925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5926     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931 done
5932 IFS=$as_save_IFS
5933
5934   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5935   ;;
5936 esac
5937 fi
5938 GMSGFMT=$ac_cv_path_GMSGFMT
5939 if test -n "$GMSGFMT"; then
5940   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5941 echo "${ECHO_T}$GMSGFMT" >&6; }
5942 else
5943   { echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6; }
5945 fi
5946
5947
5948
5949
5950 # Prepare PATH_SEPARATOR.
5951 # The user is always right.
5952 if test "${PATH_SEPARATOR+set}" != set; then
5953   echo "#! /bin/sh" >conf$$.sh
5954   echo  "exit 0"   >>conf$$.sh
5955   chmod +x conf$$.sh
5956   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5957     PATH_SEPARATOR=';'
5958   else
5959     PATH_SEPARATOR=:
5960   fi
5961   rm -f conf$$.sh
5962 fi
5963
5964 # Find out how to test for executable files. Don't use a zero-byte file,
5965 # as systems may use methods other than mode bits to determine executability.
5966 cat >conf$$.file <<_ASEOF
5967 #! /bin/sh
5968 exit 0
5969 _ASEOF
5970 chmod +x conf$$.file
5971 if test -x conf$$.file >/dev/null 2>&1; then
5972   ac_executable_p="test -x"
5973 else
5974   ac_executable_p="test -f"
5975 fi
5976 rm -f conf$$.file
5977
5978 # Extract the first word of "xgettext", so it can be a program name with args.
5979 set dummy xgettext; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   case "$XGETTEXT" in
5986   [\\/]* | ?:[\\/]*)
5987     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5988     ;;
5989   *)
5990     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5991     for ac_dir in $PATH; do
5992       IFS="$ac_save_IFS"
5993       test -z "$ac_dir" && ac_dir=.
5994       for ac_exec_ext in '' $ac_executable_extensions; do
5995         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5996           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5997           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5998      (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
5999             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6000             break 2
6001           fi
6002         fi
6003       done
6004     done
6005     IFS="$ac_save_IFS"
6006   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6007     ;;
6008 esac
6009 fi
6010 XGETTEXT="$ac_cv_path_XGETTEXT"
6011 if test "$XGETTEXT" != ":"; then
6012   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6013 echo "${ECHO_T}$XGETTEXT" >&6; }
6014 else
6015   { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017 fi
6018
6019     rm -f messages.po
6020
6021
6022 # Prepare PATH_SEPARATOR.
6023 # The user is always right.
6024 if test "${PATH_SEPARATOR+set}" != set; then
6025   echo "#! /bin/sh" >conf$$.sh
6026   echo  "exit 0"   >>conf$$.sh
6027   chmod +x conf$$.sh
6028   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6029     PATH_SEPARATOR=';'
6030   else
6031     PATH_SEPARATOR=:
6032   fi
6033   rm -f conf$$.sh
6034 fi
6035
6036 # Find out how to test for executable files. Don't use a zero-byte file,
6037 # as systems may use methods other than mode bits to determine executability.
6038 cat >conf$$.file <<_ASEOF
6039 #! /bin/sh
6040 exit 0
6041 _ASEOF
6042 chmod +x conf$$.file
6043 if test -x conf$$.file >/dev/null 2>&1; then
6044   ac_executable_p="test -x"
6045 else
6046   ac_executable_p="test -f"
6047 fi
6048 rm -f conf$$.file
6049
6050 # Extract the first word of "msgmerge", so it can be a program name with args.
6051 set dummy msgmerge; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   case "$MSGMERGE" in
6058   [\\/]* | ?:[\\/]*)
6059     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6060     ;;
6061   *)
6062     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6063     for ac_dir in $PATH; do
6064       IFS="$ac_save_IFS"
6065       test -z "$ac_dir" && ac_dir=.
6066       for ac_exec_ext in '' $ac_executable_extensions; do
6067         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6068           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6069           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6070             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6071             break 2
6072           fi
6073         fi
6074       done
6075     done
6076     IFS="$ac_save_IFS"
6077   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6078     ;;
6079 esac
6080 fi
6081 MSGMERGE="$ac_cv_path_MSGMERGE"
6082 if test "$MSGMERGE" != ":"; then
6083   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6084 echo "${ECHO_T}$MSGMERGE" >&6; }
6085 else
6086   { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6088 fi
6089
6090
6091       if test "$GMSGFMT" != ":"; then
6092             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6093        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6094       : ;
6095     else
6096       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6097       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6098 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6099       GMSGFMT=":"
6100     fi
6101   fi
6102
6103       if test "$XGETTEXT" != ":"; then
6104             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6105        (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
6106       : ;
6107     else
6108       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6109 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6110       XGETTEXT=":"
6111     fi
6112         rm -f messages.po
6113   fi
6114
6115   ac_config_commands="$ac_config_commands default-1"
6116
6117
6118
6119       if test "X$prefix" = "XNONE"; then
6120     acl_final_prefix="$ac_default_prefix"
6121   else
6122     acl_final_prefix="$prefix"
6123   fi
6124   if test "X$exec_prefix" = "XNONE"; then
6125     acl_final_exec_prefix='${prefix}'
6126   else
6127     acl_final_exec_prefix="$exec_prefix"
6128   fi
6129   acl_save_prefix="$prefix"
6130   prefix="$acl_final_prefix"
6131   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6132   prefix="$acl_save_prefix"
6133
6134
6135 # Check whether --with-gnu-ld was given.
6136 if test "${with_gnu_ld+set}" = set; then
6137   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6138 else
6139   with_gnu_ld=no
6140 fi
6141
6142 # Prepare PATH_SEPARATOR.
6143 # The user is always right.
6144 if test "${PATH_SEPARATOR+set}" != set; then
6145   echo "#! /bin/sh" >conf$$.sh
6146   echo  "exit 0"   >>conf$$.sh
6147   chmod +x conf$$.sh
6148   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6149     PATH_SEPARATOR=';'
6150   else
6151     PATH_SEPARATOR=:
6152   fi
6153   rm -f conf$$.sh
6154 fi
6155 ac_prog=ld
6156 if test "$GCC" = yes; then
6157   # Check if gcc -print-prog-name=ld gives a path.
6158   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6159 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6160   case $host in
6161   *-*-mingw*)
6162     # gcc leaves a trailing carriage return which upsets mingw
6163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6164   *)
6165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6166   esac
6167   case $ac_prog in
6168     # Accept absolute paths.
6169     [\\/]* | [A-Za-z]:[\\/]*)
6170       re_direlt='/[^/][^/]*/\.\./'
6171       # Canonicalize the path of ld
6172       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6173       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6174         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6175       done
6176       test -z "$LD" && LD="$ac_prog"
6177       ;;
6178   "")
6179     # If it fails, then pretend we aren't using GCC.
6180     ac_prog=ld
6181     ;;
6182   *)
6183     # If it is relative, then search for the first ld in PATH.
6184     with_gnu_ld=unknown
6185     ;;
6186   esac
6187 elif test "$with_gnu_ld" = yes; then
6188   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6189 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6190 else
6191   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6192 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6193 fi
6194 if test "${acl_cv_path_LD+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -z "$LD"; then
6198   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6199   for ac_dir in $PATH; do
6200     test -z "$ac_dir" && ac_dir=.
6201     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6202       acl_cv_path_LD="$ac_dir/$ac_prog"
6203       # Check to see if the program is GNU ld.  I'd rather use --version,
6204       # but apparently some GNU ld's only accept -v.
6205       # Break only if it was the GNU/non-GNU ld that we prefer.
6206       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6207       *GNU* | *'with BFD'*)
6208         test "$with_gnu_ld" != no && break ;;
6209       *)
6210         test "$with_gnu_ld" != yes && break ;;
6211       esac
6212     fi
6213   done
6214   IFS="$ac_save_ifs"
6215 else
6216   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6217 fi
6218 fi
6219
6220 LD="$acl_cv_path_LD"
6221 if test -n "$LD"; then
6222   { echo "$as_me:$LINENO: result: $LD" >&5
6223 echo "${ECHO_T}$LD" >&6; }
6224 else
6225   { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6228 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6229 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6230    { (exit 1); exit 1; }; }
6231 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6232 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6233 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6237 case `$LD -v 2>&1 </dev/null` in
6238 *GNU* | *'with BFD'*)
6239   acl_cv_prog_gnu_ld=yes ;;
6240 *)
6241   acl_cv_prog_gnu_ld=no ;;
6242 esac
6243 fi
6244 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6245 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6246 with_gnu_ld=$acl_cv_prog_gnu_ld
6247
6248
6249
6250
6251                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6252 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6253 if test "${acl_cv_rpath+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256
6257     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6258     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6259     . ./conftest.sh
6260     rm -f ./conftest.sh
6261     acl_cv_rpath=done
6262
6263 fi
6264 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6265 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6266   wl="$acl_cv_wl"
6267   libext="$acl_cv_libext"
6268   shlibext="$acl_cv_shlibext"
6269   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6270   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6271   hardcode_direct="$acl_cv_hardcode_direct"
6272   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6273     # Check whether --enable-rpath was given.
6274 if test "${enable_rpath+set}" = set; then
6275   enableval=$enable_rpath; :
6276 else
6277   enable_rpath=yes
6278 fi
6279
6280
6281
6282
6283
6284
6285
6286
6287     use_additional=yes
6288
6289   acl_save_prefix="$prefix"
6290   prefix="$acl_final_prefix"
6291   acl_save_exec_prefix="$exec_prefix"
6292   exec_prefix="$acl_final_exec_prefix"
6293
6294     eval additional_includedir=\"$includedir\"
6295     eval additional_libdir=\"$libdir\"
6296
6297   exec_prefix="$acl_save_exec_prefix"
6298   prefix="$acl_save_prefix"
6299
6300
6301 # Check whether --with-libiconv-prefix was given.
6302 if test "${with_libiconv_prefix+set}" = set; then
6303   withval=$with_libiconv_prefix;
6304     if test "X$withval" = "Xno"; then
6305       use_additional=no
6306     else
6307       if test "X$withval" = "X"; then
6308
6309   acl_save_prefix="$prefix"
6310   prefix="$acl_final_prefix"
6311   acl_save_exec_prefix="$exec_prefix"
6312   exec_prefix="$acl_final_exec_prefix"
6313
6314           eval additional_includedir=\"$includedir\"
6315           eval additional_libdir=\"$libdir\"
6316
6317   exec_prefix="$acl_save_exec_prefix"
6318   prefix="$acl_save_prefix"
6319
6320       else
6321         additional_includedir="$withval/include"
6322         additional_libdir="$withval/lib"
6323       fi
6324     fi
6325
6326 fi
6327
6328       LIBICONV=
6329   LTLIBICONV=
6330   INCICONV=
6331   rpathdirs=
6332   ltrpathdirs=
6333   names_already_handled=
6334   names_next_round='iconv '
6335   while test -n "$names_next_round"; do
6336     names_this_round="$names_next_round"
6337     names_next_round=
6338     for name in $names_this_round; do
6339       already_handled=
6340       for n in $names_already_handled; do
6341         if test "$n" = "$name"; then
6342           already_handled=yes
6343           break
6344         fi
6345       done
6346       if test -z "$already_handled"; then
6347         names_already_handled="$names_already_handled $name"
6348                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6349         eval value=\"\$HAVE_LIB$uppername\"
6350         if test -n "$value"; then
6351           if test "$value" = yes; then
6352             eval value=\"\$LIB$uppername\"
6353             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6354             eval value=\"\$LTLIB$uppername\"
6355             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6356           else
6357                                     :
6358           fi
6359         else
6360                               found_dir=
6361           found_la=
6362           found_so=
6363           found_a=
6364           if test $use_additional = yes; then
6365             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6366               found_dir="$additional_libdir"
6367               found_so="$additional_libdir/lib$name.$shlibext"
6368               if test -f "$additional_libdir/lib$name.la"; then
6369                 found_la="$additional_libdir/lib$name.la"
6370               fi
6371             else
6372               if test -f "$additional_libdir/lib$name.$libext"; then
6373                 found_dir="$additional_libdir"
6374                 found_a="$additional_libdir/lib$name.$libext"
6375                 if test -f "$additional_libdir/lib$name.la"; then
6376                   found_la="$additional_libdir/lib$name.la"
6377                 fi
6378               fi
6379             fi
6380           fi
6381           if test "X$found_dir" = "X"; then
6382             for x in $LDFLAGS $LTLIBICONV; do
6383
6384   acl_save_prefix="$prefix"
6385   prefix="$acl_final_prefix"
6386   acl_save_exec_prefix="$exec_prefix"
6387   exec_prefix="$acl_final_exec_prefix"
6388   eval x=\"$x\"
6389   exec_prefix="$acl_save_exec_prefix"
6390   prefix="$acl_save_prefix"
6391
6392               case "$x" in
6393                 -L*)
6394                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6395                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6396                     found_dir="$dir"
6397                     found_so="$dir/lib$name.$shlibext"
6398                     if test -f "$dir/lib$name.la"; then
6399                       found_la="$dir/lib$name.la"
6400                     fi
6401                   else
6402                     if test -f "$dir/lib$name.$libext"; then
6403                       found_dir="$dir"
6404                       found_a="$dir/lib$name.$libext"
6405                       if test -f "$dir/lib$name.la"; then
6406                         found_la="$dir/lib$name.la"
6407                       fi
6408                     fi
6409                   fi
6410                   ;;
6411               esac
6412               if test "X$found_dir" != "X"; then
6413                 break
6414               fi
6415             done
6416           fi
6417           if test "X$found_dir" != "X"; then
6418                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6419             if test "X$found_so" != "X"; then
6420                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6421                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6422               else
6423                                                                                 haveit=
6424                 for x in $ltrpathdirs; do
6425                   if test "X$x" = "X$found_dir"; then
6426                     haveit=yes
6427                     break
6428                   fi
6429                 done
6430                 if test -z "$haveit"; then
6431                   ltrpathdirs="$ltrpathdirs $found_dir"
6432                 fi
6433                                 if test "$hardcode_direct" = yes; then
6434                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6435                 else
6436                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6437                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6438                                                             haveit=
6439                     for x in $rpathdirs; do
6440                       if test "X$x" = "X$found_dir"; then
6441                         haveit=yes
6442                         break
6443                       fi
6444                     done
6445                     if test -z "$haveit"; then
6446                       rpathdirs="$rpathdirs $found_dir"
6447                     fi
6448                   else
6449                                                                                 haveit=
6450                     for x in $LDFLAGS $LIBICONV; do
6451
6452   acl_save_prefix="$prefix"
6453   prefix="$acl_final_prefix"
6454   acl_save_exec_prefix="$exec_prefix"
6455   exec_prefix="$acl_final_exec_prefix"
6456   eval x=\"$x\"
6457   exec_prefix="$acl_save_exec_prefix"
6458   prefix="$acl_save_prefix"
6459
6460                       if test "X$x" = "X-L$found_dir"; then
6461                         haveit=yes
6462                         break
6463                       fi
6464                     done
6465                     if test -z "$haveit"; then
6466                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6467                     fi
6468                     if test "$hardcode_minus_L" != no; then
6469                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6470                     else
6471                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6472                     fi
6473                   fi
6474                 fi
6475               fi
6476             else
6477               if test "X$found_a" != "X"; then
6478                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6479               else
6480                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6481               fi
6482             fi
6483                         additional_includedir=
6484             case "$found_dir" in
6485               */lib | */lib/)
6486                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6487                 additional_includedir="$basedir/include"
6488                 ;;
6489             esac
6490             if test "X$additional_includedir" != "X"; then
6491                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6492                 haveit=
6493                 if test "X$additional_includedir" = "X/usr/local/include"; then
6494                   if test -n "$GCC"; then
6495                     case $host_os in
6496                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6497                     esac
6498                   fi
6499                 fi
6500                 if test -z "$haveit"; then
6501                   for x in $CPPFLAGS $INCICONV; do
6502
6503   acl_save_prefix="$prefix"
6504   prefix="$acl_final_prefix"
6505   acl_save_exec_prefix="$exec_prefix"
6506   exec_prefix="$acl_final_exec_prefix"
6507   eval x=\"$x\"
6508   exec_prefix="$acl_save_exec_prefix"
6509   prefix="$acl_save_prefix"
6510
6511                     if test "X$x" = "X-I$additional_includedir"; then
6512                       haveit=yes
6513                       break
6514                     fi
6515                   done
6516                   if test -z "$haveit"; then
6517                     if test -d "$additional_includedir"; then
6518                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6519                     fi
6520                   fi
6521                 fi
6522               fi
6523             fi
6524                         if test -n "$found_la"; then
6525                                                         save_libdir="$libdir"
6526               case "$found_la" in
6527                 */* | *\\*) . "$found_la" ;;
6528                 *) . "./$found_la" ;;
6529               esac
6530               libdir="$save_libdir"
6531                             for dep in $dependency_libs; do
6532                 case "$dep" in
6533                   -L*)
6534                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6535                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6536                       haveit=
6537                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6538                         if test -n "$GCC"; then
6539                           case $host_os in
6540                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6541                           esac
6542                         fi
6543                       fi
6544                       if test -z "$haveit"; then
6545                         haveit=
6546                         for x in $LDFLAGS $LIBICONV; do
6547
6548   acl_save_prefix="$prefix"
6549   prefix="$acl_final_prefix"
6550   acl_save_exec_prefix="$exec_prefix"
6551   exec_prefix="$acl_final_exec_prefix"
6552   eval x=\"$x\"
6553   exec_prefix="$acl_save_exec_prefix"
6554   prefix="$acl_save_prefix"
6555
6556                           if test "X$x" = "X-L$additional_libdir"; then
6557                             haveit=yes
6558                             break
6559                           fi
6560                         done
6561                         if test -z "$haveit"; then
6562                           if test -d "$additional_libdir"; then
6563                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6564                           fi
6565                         fi
6566                         haveit=
6567                         for x in $LDFLAGS $LTLIBICONV; do
6568
6569   acl_save_prefix="$prefix"
6570   prefix="$acl_final_prefix"
6571   acl_save_exec_prefix="$exec_prefix"
6572   exec_prefix="$acl_final_exec_prefix"
6573   eval x=\"$x\"
6574   exec_prefix="$acl_save_exec_prefix"
6575   prefix="$acl_save_prefix"
6576
6577                           if test "X$x" = "X-L$additional_libdir"; then
6578                             haveit=yes
6579                             break
6580                           fi
6581                         done
6582                         if test -z "$haveit"; then
6583                           if test -d "$additional_libdir"; then
6584                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6585                           fi
6586                         fi
6587                       fi
6588                     fi
6589                     ;;
6590                   -R*)
6591                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6592                     if test "$enable_rpath" != no; then
6593                                                                   haveit=
6594                       for x in $rpathdirs; do
6595                         if test "X$x" = "X$dir"; then
6596                           haveit=yes
6597                           break
6598                         fi
6599                       done
6600                       if test -z "$haveit"; then
6601                         rpathdirs="$rpathdirs $dir"
6602                       fi
6603                                                                   haveit=
6604                       for x in $ltrpathdirs; do
6605                         if test "X$x" = "X$dir"; then
6606                           haveit=yes
6607                           break
6608                         fi
6609                       done
6610                       if test -z "$haveit"; then
6611                         ltrpathdirs="$ltrpathdirs $dir"
6612                       fi
6613                     fi
6614                     ;;
6615                   -l*)
6616                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6617                     ;;
6618                   *.la)
6619                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6620                     ;;
6621                   *)
6622                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6623                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6624                     ;;
6625                 esac
6626               done
6627             fi
6628           else
6629                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6630             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6631           fi
6632         fi
6633       fi
6634     done
6635   done
6636   if test "X$rpathdirs" != "X"; then
6637     if test -n "$hardcode_libdir_separator"; then
6638                         alldirs=
6639       for found_dir in $rpathdirs; do
6640         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6641       done
6642             acl_save_libdir="$libdir"
6643       libdir="$alldirs"
6644       eval flag=\"$hardcode_libdir_flag_spec\"
6645       libdir="$acl_save_libdir"
6646       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6647     else
6648             for found_dir in $rpathdirs; do
6649         acl_save_libdir="$libdir"
6650         libdir="$found_dir"
6651         eval flag=\"$hardcode_libdir_flag_spec\"
6652         libdir="$acl_save_libdir"
6653         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6654       done
6655     fi
6656   fi
6657   if test "X$ltrpathdirs" != "X"; then
6658             for found_dir in $ltrpathdirs; do
6659       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6660     done
6661   fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6681 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6682 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   gt_save_CPPFLAGS="$CPPFLAGS"
6686      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6687      gt_save_LIBS="$LIBS"
6688      LIBS="$LIBS -framework CoreFoundation"
6689      cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695 #include <CFPreferences.h>
6696 int
6697 main ()
6698 {
6699 CFPreferencesCopyAppValue(NULL, NULL)
6700   ;
6701   return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6706 case "(($ac_try" in
6707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708   *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711   (eval "$ac_link") 2>conftest.er1
6712   ac_status=$?
6713   grep -v '^ *+' conftest.er1 >conftest.err
6714   rm -f conftest.er1
6715   cat conftest.err >&5
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } &&
6718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6719   { (case "(($ac_try" in
6720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721   *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724   (eval "$ac_try") 2>&5
6725   ac_status=$?
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); }; } &&
6728          { ac_try='test -s conftest$ac_exeext'
6729   { (case "(($ac_try" in
6730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731   *) ac_try_echo=$ac_try;;
6732 esac
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734   (eval "$ac_try") 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; }; then
6738   gt_cv_func_CFPreferencesCopyAppValue=yes
6739 else
6740   echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743         gt_cv_func_CFPreferencesCopyAppValue=no
6744 fi
6745
6746 rm -f core conftest.err conftest.$ac_objext \
6747       conftest$ac_exeext conftest.$ac_ext
6748      CPPFLAGS="$gt_save_CPPFLAGS"
6749      LIBS="$gt_save_LIBS"
6750 fi
6751 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6752 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6753   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6754
6755 cat >>confdefs.h <<\_ACEOF
6756 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6757 _ACEOF
6758
6759   fi
6760     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6761 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6762 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   gt_save_CPPFLAGS="$CPPFLAGS"
6766      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6767      gt_save_LIBS="$LIBS"
6768      LIBS="$LIBS -framework CoreFoundation"
6769      cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775 #include <CFLocale.h>
6776 int
6777 main ()
6778 {
6779 CFLocaleCopyCurrent();
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (ac_try="$ac_link"
6786 case "(($ac_try" in
6787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788   *) ac_try_echo=$ac_try;;
6789 esac
6790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6791   (eval "$ac_link") 2>conftest.er1
6792   ac_status=$?
6793   grep -v '^ *+' conftest.er1 >conftest.err
6794   rm -f conftest.er1
6795   cat conftest.err >&5
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } &&
6798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6799   { (case "(($ac_try" in
6800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801   *) ac_try_echo=$ac_try;;
6802 esac
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804   (eval "$ac_try") 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; } &&
6808          { ac_try='test -s conftest$ac_exeext'
6809   { (case "(($ac_try" in
6810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811   *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814   (eval "$ac_try") 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; }; then
6818   gt_cv_func_CFLocaleCopyCurrent=yes
6819 else
6820   echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6822
6823         gt_cv_func_CFLocaleCopyCurrent=no
6824 fi
6825
6826 rm -f core conftest.err conftest.$ac_objext \
6827       conftest$ac_exeext conftest.$ac_ext
6828      CPPFLAGS="$gt_save_CPPFLAGS"
6829      LIBS="$gt_save_LIBS"
6830 fi
6831 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6832 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6833   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6834
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_CFLOCALECOPYCURRENT 1
6837 _ACEOF
6838
6839   fi
6840   INTL_MACOSX_LIBS=
6841   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6842     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6843   fi
6844
6845
6846
6847
6848   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6850     # Check whether --enable-nls was given.
6851 if test "${enable_nls+set}" = set; then
6852   enableval=$enable_nls; USE_NLS=$enableval
6853 else
6854   USE_NLS=yes
6855 fi
6856
6857   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6858 echo "${ECHO_T}$USE_NLS" >&6; }
6859
6860
6861
6862
6863   LIBINTL=
6864   LTLIBINTL=
6865   POSUB=
6866
6867     if test "$USE_NLS" = "yes"; then
6868     gt_use_preinstalled_gnugettext=no
6869
6870
6871
6872
6873
6874
6875         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6876 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6877 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 #include <libintl.h>
6887 extern int _nl_msg_cat_cntr;
6888 extern int *_nl_domain_bindings;
6889 int
6890 main ()
6891 {
6892 bindtextdomain ("", "");
6893 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6894   ;
6895   return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6900 case "(($ac_try" in
6901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902   *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905   (eval "$ac_link") 2>conftest.er1
6906   ac_status=$?
6907   grep -v '^ *+' conftest.er1 >conftest.err
6908   rm -f conftest.er1
6909   cat conftest.err >&5
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } &&
6912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6913   { (case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918   (eval "$ac_try") 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; } &&
6922          { ac_try='test -s conftest$ac_exeext'
6923   { (case "(($ac_try" in
6924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925   *) ac_try_echo=$ac_try;;
6926 esac
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928   (eval "$ac_try") 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932   gt_cv_func_gnugettext1_libc=yes
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937         gt_cv_func_gnugettext1_libc=no
6938 fi
6939
6940 rm -f core conftest.err conftest.$ac_objext \
6941       conftest$ac_exeext conftest.$ac_ext
6942 fi
6943 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6944 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6945
6946         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6947
6948
6949
6950
6951
6952           am_save_CPPFLAGS="$CPPFLAGS"
6953
6954   for element in $INCICONV; do
6955     haveit=
6956     for x in $CPPFLAGS; do
6957
6958   acl_save_prefix="$prefix"
6959   prefix="$acl_final_prefix"
6960   acl_save_exec_prefix="$exec_prefix"
6961   exec_prefix="$acl_final_exec_prefix"
6962   eval x=\"$x\"
6963   exec_prefix="$acl_save_exec_prefix"
6964   prefix="$acl_save_prefix"
6965
6966       if test "X$x" = "X$element"; then
6967         haveit=yes
6968         break
6969       fi
6970     done
6971     if test -z "$haveit"; then
6972       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6973     fi
6974   done
6975
6976
6977   { echo "$as_me:$LINENO: checking for iconv" >&5
6978 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6979 if test "${am_cv_func_iconv+set}" = set; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982
6983     am_cv_func_iconv="no, consider installing GNU libiconv"
6984     am_cv_lib_iconv=no
6985     cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 #include <stdlib.h>
6992 #include <iconv.h>
6993 int
6994 main ()
6995 {
6996 iconv_t cd = iconv_open("","");
6997        iconv(cd,NULL,NULL,NULL,NULL);
6998        iconv_close(cd);
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (ac_try="$ac_link"
7005 case "(($ac_try" in
7006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007   *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010   (eval "$ac_link") 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } &&
7017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7018   { (case "(($ac_try" in
7019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020   *) ac_try_echo=$ac_try;;
7021 esac
7022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023   (eval "$ac_try") 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; } &&
7027          { ac_try='test -s conftest$ac_exeext'
7028   { (case "(($ac_try" in
7029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030   *) ac_try_echo=$ac_try;;
7031 esac
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033   (eval "$ac_try") 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); }; }; then
7037   am_cv_func_iconv=yes
7038 else
7039   echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042
7043 fi
7044
7045 rm -f core conftest.err conftest.$ac_objext \
7046       conftest$ac_exeext conftest.$ac_ext
7047     if test "$am_cv_func_iconv" != yes; then
7048       am_save_LIBS="$LIBS"
7049       LIBS="$LIBS $LIBICONV"
7050       cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 #include <stdlib.h>
7057 #include <iconv.h>
7058 int
7059 main ()
7060 {
7061 iconv_t cd = iconv_open("","");
7062          iconv(cd,NULL,NULL,NULL,NULL);
7063          iconv_close(cd);
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (ac_try="$ac_link"
7070 case "(($ac_try" in
7071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072   *) ac_try_echo=$ac_try;;
7073 esac
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075   (eval "$ac_link") 2>conftest.er1
7076   ac_status=$?
7077   grep -v '^ *+' conftest.er1 >conftest.err
7078   rm -f conftest.er1
7079   cat conftest.err >&5
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } &&
7082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7083   { (case "(($ac_try" in
7084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085   *) ac_try_echo=$ac_try;;
7086 esac
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088   (eval "$ac_try") 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest$ac_exeext'
7093   { (case "(($ac_try" in
7094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095   *) ac_try_echo=$ac_try;;
7096 esac
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098   (eval "$ac_try") 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   am_cv_lib_iconv=yes
7103         am_cv_func_iconv=yes
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108
7109 fi
7110
7111 rm -f core conftest.err conftest.$ac_objext \
7112       conftest$ac_exeext conftest.$ac_ext
7113       LIBS="$am_save_LIBS"
7114     fi
7115
7116 fi
7117 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7118 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7119   if test "$am_cv_func_iconv" = yes; then
7120
7121 cat >>confdefs.h <<\_ACEOF
7122 #define HAVE_ICONV 1
7123 _ACEOF
7124
7125   fi
7126   if test "$am_cv_lib_iconv" = yes; then
7127     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7128 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7129     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7130 echo "${ECHO_T}$LIBICONV" >&6; }
7131   else
7132             CPPFLAGS="$am_save_CPPFLAGS"
7133     LIBICONV=
7134     LTLIBICONV=
7135   fi
7136
7137
7138
7139
7140
7141
7142     use_additional=yes
7143
7144   acl_save_prefix="$prefix"
7145   prefix="$acl_final_prefix"
7146   acl_save_exec_prefix="$exec_prefix"
7147   exec_prefix="$acl_final_exec_prefix"
7148
7149     eval additional_includedir=\"$includedir\"
7150     eval additional_libdir=\"$libdir\"
7151
7152   exec_prefix="$acl_save_exec_prefix"
7153   prefix="$acl_save_prefix"
7154
7155
7156 # Check whether --with-libintl-prefix was given.
7157 if test "${with_libintl_prefix+set}" = set; then
7158   withval=$with_libintl_prefix;
7159     if test "X$withval" = "Xno"; then
7160       use_additional=no
7161     else
7162       if test "X$withval" = "X"; then
7163
7164   acl_save_prefix="$prefix"
7165   prefix="$acl_final_prefix"
7166   acl_save_exec_prefix="$exec_prefix"
7167   exec_prefix="$acl_final_exec_prefix"
7168
7169           eval additional_includedir=\"$includedir\"
7170           eval additional_libdir=\"$libdir\"
7171
7172   exec_prefix="$acl_save_exec_prefix"
7173   prefix="$acl_save_prefix"
7174
7175       else
7176         additional_includedir="$withval/include"
7177         additional_libdir="$withval/lib"
7178       fi
7179     fi
7180
7181 fi
7182
7183       LIBINTL=
7184   LTLIBINTL=
7185   INCINTL=
7186   rpathdirs=
7187   ltrpathdirs=
7188   names_already_handled=
7189   names_next_round='intl '
7190   while test -n "$names_next_round"; do
7191     names_this_round="$names_next_round"
7192     names_next_round=
7193     for name in $names_this_round; do
7194       already_handled=
7195       for n in $names_already_handled; do
7196         if test "$n" = "$name"; then
7197           already_handled=yes
7198           break
7199         fi
7200       done
7201       if test -z "$already_handled"; then
7202         names_already_handled="$names_already_handled $name"
7203                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7204         eval value=\"\$HAVE_LIB$uppername\"
7205         if test -n "$value"; then
7206           if test "$value" = yes; then
7207             eval value=\"\$LIB$uppername\"
7208             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7209             eval value=\"\$LTLIB$uppername\"
7210             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7211           else
7212                                     :
7213           fi
7214         else
7215                               found_dir=
7216           found_la=
7217           found_so=
7218           found_a=
7219           if test $use_additional = yes; then
7220             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7221               found_dir="$additional_libdir"
7222               found_so="$additional_libdir/lib$name.$shlibext"
7223               if test -f "$additional_libdir/lib$name.la"; then
7224                 found_la="$additional_libdir/lib$name.la"
7225               fi
7226             else
7227               if test -f "$additional_libdir/lib$name.$libext"; then
7228                 found_dir="$additional_libdir"
7229                 found_a="$additional_libdir/lib$name.$libext"
7230                 if test -f "$additional_libdir/lib$name.la"; then
7231                   found_la="$additional_libdir/lib$name.la"
7232                 fi
7233               fi
7234             fi
7235           fi
7236           if test "X$found_dir" = "X"; then
7237             for x in $LDFLAGS $LTLIBINTL; do
7238
7239   acl_save_prefix="$prefix"
7240   prefix="$acl_final_prefix"
7241   acl_save_exec_prefix="$exec_prefix"
7242   exec_prefix="$acl_final_exec_prefix"
7243   eval x=\"$x\"
7244   exec_prefix="$acl_save_exec_prefix"
7245   prefix="$acl_save_prefix"
7246
7247               case "$x" in
7248                 -L*)
7249                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7250                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7251                     found_dir="$dir"
7252                     found_so="$dir/lib$name.$shlibext"
7253                     if test -f "$dir/lib$name.la"; then
7254                       found_la="$dir/lib$name.la"
7255                     fi
7256                   else
7257                     if test -f "$dir/lib$name.$libext"; then
7258                       found_dir="$dir"
7259                       found_a="$dir/lib$name.$libext"
7260                       if test -f "$dir/lib$name.la"; then
7261                         found_la="$dir/lib$name.la"
7262                       fi
7263                     fi
7264                   fi
7265                   ;;
7266               esac
7267               if test "X$found_dir" != "X"; then
7268                 break
7269               fi
7270             done
7271           fi
7272           if test "X$found_dir" != "X"; then
7273                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7274             if test "X$found_so" != "X"; then
7275                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7276                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7277               else
7278                                                                                 haveit=
7279                 for x in $ltrpathdirs; do
7280                   if test "X$x" = "X$found_dir"; then
7281                     haveit=yes
7282                     break
7283                   fi
7284                 done
7285                 if test -z "$haveit"; then
7286                   ltrpathdirs="$ltrpathdirs $found_dir"
7287                 fi
7288                                 if test "$hardcode_direct" = yes; then
7289                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7290                 else
7291                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7292                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7293                                                             haveit=
7294                     for x in $rpathdirs; do
7295                       if test "X$x" = "X$found_dir"; then
7296                         haveit=yes
7297                         break
7298                       fi
7299                     done
7300                     if test -z "$haveit"; then
7301                       rpathdirs="$rpathdirs $found_dir"
7302                     fi
7303                   else
7304                                                                                 haveit=
7305                     for x in $LDFLAGS $LIBINTL; do
7306
7307   acl_save_prefix="$prefix"
7308   prefix="$acl_final_prefix"
7309   acl_save_exec_prefix="$exec_prefix"
7310   exec_prefix="$acl_final_exec_prefix"
7311   eval x=\"$x\"
7312   exec_prefix="$acl_save_exec_prefix"
7313   prefix="$acl_save_prefix"
7314
7315                       if test "X$x" = "X-L$found_dir"; then
7316                         haveit=yes
7317                         break
7318                       fi
7319                     done
7320                     if test -z "$haveit"; then
7321                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7322                     fi
7323                     if test "$hardcode_minus_L" != no; then
7324                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7325                     else
7326                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7327                     fi
7328                   fi
7329                 fi
7330               fi
7331             else
7332               if test "X$found_a" != "X"; then
7333                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7334               else
7335                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7336               fi
7337             fi
7338                         additional_includedir=
7339             case "$found_dir" in
7340               */lib | */lib/)
7341                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7342                 additional_includedir="$basedir/include"
7343                 ;;
7344             esac
7345             if test "X$additional_includedir" != "X"; then
7346                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7347                 haveit=
7348                 if test "X$additional_includedir" = "X/usr/local/include"; then
7349                   if test -n "$GCC"; then
7350                     case $host_os in
7351                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7352                     esac
7353                   fi
7354                 fi
7355                 if test -z "$haveit"; then
7356                   for x in $CPPFLAGS $INCINTL; do
7357
7358   acl_save_prefix="$prefix"
7359   prefix="$acl_final_prefix"
7360   acl_save_exec_prefix="$exec_prefix"
7361   exec_prefix="$acl_final_exec_prefix"
7362   eval x=\"$x\"
7363   exec_prefix="$acl_save_exec_prefix"
7364   prefix="$acl_save_prefix"
7365
7366                     if test "X$x" = "X-I$additional_includedir"; then
7367                       haveit=yes
7368                       break
7369                     fi
7370                   done
7371                   if test -z "$haveit"; then
7372                     if test -d "$additional_includedir"; then
7373                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7374                     fi
7375                   fi
7376                 fi
7377               fi
7378             fi
7379                         if test -n "$found_la"; then
7380                                                         save_libdir="$libdir"
7381               case "$found_la" in
7382                 */* | *\\*) . "$found_la" ;;
7383                 *) . "./$found_la" ;;
7384               esac
7385               libdir="$save_libdir"
7386                             for dep in $dependency_libs; do
7387                 case "$dep" in
7388                   -L*)
7389                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7390                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7391                       haveit=
7392                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7393                         if test -n "$GCC"; then
7394                           case $host_os in
7395                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7396                           esac
7397                         fi
7398                       fi
7399                       if test -z "$haveit"; then
7400                         haveit=
7401                         for x in $LDFLAGS $LIBINTL; do
7402
7403   acl_save_prefix="$prefix"
7404   prefix="$acl_final_prefix"
7405   acl_save_exec_prefix="$exec_prefix"
7406   exec_prefix="$acl_final_exec_prefix"
7407   eval x=\"$x\"
7408   exec_prefix="$acl_save_exec_prefix"
7409   prefix="$acl_save_prefix"
7410
7411                           if test "X$x" = "X-L$additional_libdir"; then
7412                             haveit=yes
7413                             break
7414                           fi
7415                         done
7416                         if test -z "$haveit"; then
7417                           if test -d "$additional_libdir"; then
7418                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7419                           fi
7420                         fi
7421                         haveit=
7422                         for x in $LDFLAGS $LTLIBINTL; do
7423
7424   acl_save_prefix="$prefix"
7425   prefix="$acl_final_prefix"
7426   acl_save_exec_prefix="$exec_prefix"
7427   exec_prefix="$acl_final_exec_prefix"
7428   eval x=\"$x\"
7429   exec_prefix="$acl_save_exec_prefix"
7430   prefix="$acl_save_prefix"
7431
7432                           if test "X$x" = "X-L$additional_libdir"; then
7433                             haveit=yes
7434                             break
7435                           fi
7436                         done
7437                         if test -z "$haveit"; then
7438                           if test -d "$additional_libdir"; then
7439                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7440                           fi
7441                         fi
7442                       fi
7443                     fi
7444                     ;;
7445                   -R*)
7446                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7447                     if test "$enable_rpath" != no; then
7448                                                                   haveit=
7449                       for x in $rpathdirs; do
7450                         if test "X$x" = "X$dir"; then
7451                           haveit=yes
7452                           break
7453                         fi
7454                       done
7455                       if test -z "$haveit"; then
7456                         rpathdirs="$rpathdirs $dir"
7457                       fi
7458                                                                   haveit=
7459                       for x in $ltrpathdirs; do
7460                         if test "X$x" = "X$dir"; then
7461                           haveit=yes
7462                           break
7463                         fi
7464                       done
7465                       if test -z "$haveit"; then
7466                         ltrpathdirs="$ltrpathdirs $dir"
7467                       fi
7468                     fi
7469                     ;;
7470                   -l*)
7471                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7472                     ;;
7473                   *.la)
7474                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7475                     ;;
7476                   *)
7477                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7478                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7479                     ;;
7480                 esac
7481               done
7482             fi
7483           else
7484                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7485             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7486           fi
7487         fi
7488       fi
7489     done
7490   done
7491   if test "X$rpathdirs" != "X"; then
7492     if test -n "$hardcode_libdir_separator"; then
7493                         alldirs=
7494       for found_dir in $rpathdirs; do
7495         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7496       done
7497             acl_save_libdir="$libdir"
7498       libdir="$alldirs"
7499       eval flag=\"$hardcode_libdir_flag_spec\"
7500       libdir="$acl_save_libdir"
7501       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7502     else
7503             for found_dir in $rpathdirs; do
7504         acl_save_libdir="$libdir"
7505         libdir="$found_dir"
7506         eval flag=\"$hardcode_libdir_flag_spec\"
7507         libdir="$acl_save_libdir"
7508         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7509       done
7510     fi
7511   fi
7512   if test "X$ltrpathdirs" != "X"; then
7513             for found_dir in $ltrpathdirs; do
7514       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7515     done
7516   fi
7517
7518           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7519 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7520 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   gt_save_CPPFLAGS="$CPPFLAGS"
7524             CPPFLAGS="$CPPFLAGS $INCINTL"
7525             gt_save_LIBS="$LIBS"
7526             LIBS="$LIBS $LIBINTL"
7527                         cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h.  */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h.  */
7533 #include <libintl.h>
7534 extern int _nl_msg_cat_cntr;
7535 extern
7536 #ifdef __cplusplus
7537 "C"
7538 #endif
7539 const char *_nl_expand_alias (const char *);
7540 int
7541 main ()
7542 {
7543 bindtextdomain ("", "");
7544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (ac_try="$ac_link"
7551 case "(($ac_try" in
7552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553   *) ac_try_echo=$ac_try;;
7554 esac
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556   (eval "$ac_link") 2>conftest.er1
7557   ac_status=$?
7558   grep -v '^ *+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } &&
7563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564   { (case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569   (eval "$ac_try") 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest$ac_exeext'
7574   { (case "(($ac_try" in
7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576   *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579   (eval "$ac_try") 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   gt_cv_func_gnugettext1_libintl=yes
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588         gt_cv_func_gnugettext1_libintl=no
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext \
7592       conftest$ac_exeext conftest.$ac_ext
7593                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7594               LIBS="$LIBS $LIBICONV"
7595               cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h.  */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h.  */
7601 #include <libintl.h>
7602 extern int _nl_msg_cat_cntr;
7603 extern
7604 #ifdef __cplusplus
7605 "C"
7606 #endif
7607 const char *_nl_expand_alias (const char *);
7608 int
7609 main ()
7610 {
7611 bindtextdomain ("", "");
7612 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (ac_try="$ac_link"
7619 case "(($ac_try" in
7620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621   *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624   (eval "$ac_link") 2>conftest.er1
7625   ac_status=$?
7626   grep -v '^ *+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7632   { (case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637   (eval "$ac_try") 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }; } &&
7641          { ac_try='test -s conftest$ac_exeext'
7642   { (case "(($ac_try" in
7643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644   *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647   (eval "$ac_try") 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; }; then
7651   LIBINTL="$LIBINTL $LIBICONV"
7652                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7653                 gt_cv_func_gnugettext1_libintl=yes
7654
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659
7660 fi
7661
7662 rm -f core conftest.err conftest.$ac_objext \
7663       conftest$ac_exeext conftest.$ac_ext
7664             fi
7665             CPPFLAGS="$gt_save_CPPFLAGS"
7666             LIBS="$gt_save_LIBS"
7667 fi
7668 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7669 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7670         fi
7671
7672                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7673            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7674                 && test "$PACKAGE" != gettext-runtime \
7675                 && test "$PACKAGE" != gettext-tools; }; then
7676           gt_use_preinstalled_gnugettext=yes
7677         else
7678                     LIBINTL=
7679           LTLIBINTL=
7680           INCINTL=
7681         fi
7682
7683
7684
7685     if test -n "$INTL_MACOSX_LIBS"; then
7686       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7687          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7688                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7689         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7690       fi
7691     fi
7692
7693     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7694        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7695
7696 cat >>confdefs.h <<\_ACEOF
7697 #define ENABLE_NLS 1
7698 _ACEOF
7699
7700     else
7701       USE_NLS=no
7702     fi
7703   fi
7704
7705   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7706 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7707   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7708 echo "${ECHO_T}$USE_NLS" >&6; }
7709   if test "$USE_NLS" = "yes"; then
7710     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7711 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7712     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7713       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7714         gt_source="external libintl"
7715       else
7716         gt_source="libc"
7717       fi
7718     else
7719       gt_source="included intl directory"
7720     fi
7721     { echo "$as_me:$LINENO: result: $gt_source" >&5
7722 echo "${ECHO_T}$gt_source" >&6; }
7723   fi
7724
7725   if test "$USE_NLS" = "yes"; then
7726
7727     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7728       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7729         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7730 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7731         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7732 echo "${ECHO_T}$LIBINTL" >&6; }
7733
7734   for element in $INCINTL; do
7735     haveit=
7736     for x in $CPPFLAGS; do
7737
7738   acl_save_prefix="$prefix"
7739   prefix="$acl_final_prefix"
7740   acl_save_exec_prefix="$exec_prefix"
7741   exec_prefix="$acl_final_exec_prefix"
7742   eval x=\"$x\"
7743   exec_prefix="$acl_save_exec_prefix"
7744   prefix="$acl_save_prefix"
7745
7746       if test "X$x" = "X$element"; then
7747         haveit=yes
7748         break
7749       fi
7750     done
7751     if test -z "$haveit"; then
7752       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7753     fi
7754   done
7755
7756       fi
7757
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_GETTEXT 1
7761 _ACEOF
7762
7763
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_DCGETTEXT 1
7766 _ACEOF
7767
7768     fi
7769
7770         POSUB=po
7771   fi
7772
7773
7774
7775     INTLLIBS="$LIBINTL"
7776
7777
7778
7779
7780
7781
7782 if test x${prefix} = xNONE ; then
7783    if test `eval echo ${datadir}` = NONE/share ; then
7784       datadir=/usr/share
7785    fi
7786 fi
7787
7788 # ------------------------------------------------------------------
7789 #  If the user has not set --prefix, we set our default to nothing.
7790 #  In this case, if the user has not set --sysconfdir, we set it
7791 #  to the package default of /etc/bacula.  If either --prefix or
7792 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7793 # ------------------------------------------------------------------
7794 if test x${prefix} = xNONE ; then
7795     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7796         sysconfdir=/etc/bacula
7797     fi
7798     prefix=
7799 fi
7800 sysconfdir=`eval echo ${sysconfdir}`
7801 datadir=`eval echo ${datadir}`
7802 localedir=`eval echo ${datadir}/locale`
7803 cat >>confdefs.h <<_ACEOF
7804 #define LOCALEDIR "$localedir"
7805 _ACEOF
7806
7807 cat >>confdefs.h <<_ACEOF
7808 #define SYSCONFDIR "$sysconfdir"
7809 _ACEOF
7810
7811
7812 # -------------------------------------------------------------------------
7813 #  If the user has not set --exec-prefix, we default to ${prefix}
7814 # -------------------------------------------------------------------------
7815 if test x${exec_prefix} = xNONE ; then
7816     exec_prefix=${prefix}
7817 fi
7818
7819 # ------------------------------------------------------------------
7820 # If the user has not set --sbindir, we set our default as /sbin
7821 # ------------------------------------------------------------------
7822 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7823     sbindir=${exec_prefix}/sbin
7824 fi
7825 sbindir=`eval echo ${sbindir}`
7826
7827 # -------------------------------------------------------------------------
7828 #  If the user has not set --mandir, we default to /usr/share/man
7829 # -------------------------------------------------------------------------
7830 if test x$mandir = x'${prefix}/man' ; then
7831    mandir=/usr/share/man
7832 fi
7833
7834
7835 # ------------------------------------------------------------------
7836 # All list of languages for which a translation exist. Each
7837 #  language is separated by a space.
7838 # ------------------------------------------------------------------
7839 ALL_LINGUAS=""
7840
7841 for ac_prog in msgfmt
7842 do
7843   # Extract the first word of "$ac_prog", so it can be a program name with args.
7844 set dummy $ac_prog; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_path_MSGFMT+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   case $MSGFMT in
7851   [\\/]* | ?:[\\/]*)
7852   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7853   ;;
7854   *)
7855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860   for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870   ;;
7871 esac
7872 fi
7873 MSGFMT=$ac_cv_path_MSGFMT
7874 if test -n "$MSGFMT"; then
7875   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7876 echo "${ECHO_T}$MSGFMT" >&6; }
7877 else
7878   { echo "$as_me:$LINENO: result: no" >&5
7879 echo "${ECHO_T}no" >&6; }
7880 fi
7881
7882
7883   test -n "$MSGFMT" && break
7884 done
7885 test -n "$MSGFMT" || MSGFMT="no"
7886
7887 if test "$MSGFMT" = "no"
7888 then
7889    echo 'msgfmt program not found, disabling NLS !'
7890    USE_NLS=no
7891    USE_INCLUDED_LIBINTL=no
7892 #else
7893
7894     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7895 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7896 if test "${ac_cv_gnu_library_2+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905
7906 #include <features.h>
7907 #ifdef __GNU_LIBRARY__
7908  #if (__GLIBC__ >= 2)
7909   Lucky GNU user
7910  #endif
7911 #endif
7912
7913 _ACEOF
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7916   ac_cv_gnu_library_2=yes
7917 else
7918   ac_cv_gnu_library_2=no
7919 fi
7920 rm -f conftest*
7921
7922
7923
7924 fi
7925 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7926 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7927
7928     GLIBC2="$ac_cv_gnu_library_2"
7929
7930
7931
7932         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7933 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7934 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937   ac_check_lib_save_LIBS=$LIBS
7938 LIBS="-lcposix  $LIBS"
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 /* Override any GCC internal prototype to avoid an error.
7947    Use char because int might match the return type of a GCC
7948    builtin and then its argument prototype would still apply.  */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 char strerror ();
7953 int
7954 main ()
7955 {
7956 return strerror ();
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968   (eval "$ac_link") 2>conftest.er1
7969   ac_status=$?
7970   grep -v '^ *+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976   { (case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_try") 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest$ac_exeext'
7986   { (case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_try") 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   ac_cv_lib_cposix_strerror=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000         ac_cv_lib_cposix_strerror=no
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext \
8004       conftest$ac_exeext conftest.$ac_ext
8005 LIBS=$ac_check_lib_save_LIBS
8006 fi
8007 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8008 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8009 if test $ac_cv_lib_cposix_strerror = yes; then
8010   LIBS="$LIBS -lcposix"
8011 fi
8012
8013
8014
8015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8017 if test "${ac_cv_header_stdc+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 #include <stdlib.h>
8027 #include <stdarg.h>
8028 #include <string.h>
8029 #include <float.h>
8030
8031 int
8032 main ()
8033 {
8034
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8041 case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046   (eval "$ac_compile") 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8054   { (case "(($ac_try" in
8055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056   *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059   (eval "$ac_try") 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; } &&
8063          { ac_try='test -s conftest.$ac_objext'
8064   { (case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_try") 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   ac_cv_header_stdc=yes
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078         ac_cv_header_stdc=no
8079 fi
8080
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082
8083 if test $ac_cv_header_stdc = yes; then
8084   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8085   cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <string.h>
8092
8093 _ACEOF
8094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095   $EGREP "memchr" >/dev/null 2>&1; then
8096   :
8097 else
8098   ac_cv_header_stdc=no
8099 fi
8100 rm -f conftest*
8101
8102 fi
8103
8104 if test $ac_cv_header_stdc = yes; then
8105   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8106   cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 #include <stdlib.h>
8113
8114 _ACEOF
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116   $EGREP "free" >/dev/null 2>&1; then
8117   :
8118 else
8119   ac_cv_header_stdc=no
8120 fi
8121 rm -f conftest*
8122
8123 fi
8124
8125 if test $ac_cv_header_stdc = yes; then
8126   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8127   if test "$cross_compiling" = yes; then
8128   :
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include <ctype.h>
8137 #include <stdlib.h>
8138 #if ((' ' & 0x0FF) == 0x020)
8139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141 #else
8142 # define ISLOWER(c) \
8143                    (('a' <= (c) && (c) <= 'i') \
8144                      || ('j' <= (c) && (c) <= 'r') \
8145                      || ('s' <= (c) && (c) <= 'z'))
8146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8147 #endif
8148
8149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8150 int
8151 main ()
8152 {
8153   int i;
8154   for (i = 0; i < 256; i++)
8155     if (XOR (islower (i), ISLOWER (i))
8156         || toupper (i) != TOUPPER (i))
8157       return 2;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest$ac_exeext
8162 if { (ac_try="$ac_link"
8163 case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_link") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8172   { (case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_try") 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; }; then
8181   :
8182 else
8183   echo "$as_me: program exited with status $ac_status" >&5
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ( exit $ac_status )
8188 ac_cv_header_stdc=no
8189 fi
8190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8191 fi
8192
8193
8194 fi
8195 fi
8196 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8197 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8198 if test $ac_cv_header_stdc = yes; then
8199
8200 cat >>confdefs.h <<\_ACEOF
8201 #define STDC_HEADERS 1
8202 _ACEOF
8203
8204 fi
8205
8206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8208 if test "${ac_cv_c_const+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 int
8219 main ()
8220 {
8221 /* FIXME: Include the comments suggested by Paul. */
8222 #ifndef __cplusplus
8223   /* Ultrix mips cc rejects this.  */
8224   typedef int charset[2];
8225   const charset x;
8226   /* SunOS 4.1.1 cc rejects this.  */
8227   char const *const *ccp;
8228   char **p;
8229   /* NEC SVR4.0.2 mips cc rejects this.  */
8230   struct point {int x, y;};
8231   static struct point const zero = {0,0};
8232   /* AIX XL C 1.02.0.0 rejects this.
8233      It does not let you subtract one const X* pointer from another in
8234      an arm of an if-expression whose if-part is not a constant
8235      expression */
8236   const char *g = "string";
8237   ccp = &g + (g ? g-g : 0);
8238   /* HPUX 7.0 cc rejects these. */
8239   ++ccp;
8240   p = (char**) ccp;
8241   ccp = (char const *const *) p;
8242   { /* SCO 3.2v4 cc rejects this.  */
8243     char *t;
8244     char const *s = 0 ? (char *) 0 : (char const *) 0;
8245
8246     *t++ = 0;
8247     if (s) return 0;
8248   }
8249   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8250     int x[] = {25, 17};
8251     const int *foo = &x[0];
8252     ++foo;
8253   }
8254   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8255     typedef const int *iptr;
8256     iptr p = 0;
8257     ++p;
8258   }
8259   { /* AIX XL C 1.02.0.0 rejects this saying
8260        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8261     struct s { int j; const int *ap[3]; };
8262     struct s *b; b->j = 5;
8263   }
8264   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8265     const int foo = 10;
8266     if (!foo) return 0;
8267   }
8268   return !x[0] && !zero.x;
8269 #endif
8270
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_compile") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290   { (case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_try") 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest.$ac_objext'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   ac_cv_c_const=yes
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314         ac_cv_c_const=no
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8320 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8321 if test $ac_cv_c_const = no; then
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define const
8325 _ACEOF
8326
8327 fi
8328
8329
8330   { echo "$as_me:$LINENO: checking for signed" >&5
8331 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8332 if test "${bh_cv_c_signed+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341
8342 int
8343 main ()
8344 {
8345 signed char x;
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354   *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357   (eval "$ac_compile") 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365   { (case "(($ac_try" in
8366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367   *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370   (eval "$ac_try") 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; } &&
8374          { ac_try='test -s conftest.$ac_objext'
8375   { (case "(($ac_try" in
8376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377   *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380   (eval "$ac_try") 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; }; then
8384   bh_cv_c_signed=yes
8385 else
8386   echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389         bh_cv_c_signed=no
8390 fi
8391
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8395 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8396   if test $bh_cv_c_signed = no; then
8397
8398 cat >>confdefs.h <<\_ACEOF
8399 #define signed
8400 _ACEOF
8401
8402   fi
8403
8404 { echo "$as_me:$LINENO: checking for inline" >&5
8405 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8406 if test "${ac_cv_c_inline+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   ac_cv_c_inline=no
8410 for ac_kw in inline __inline__ __inline; do
8411   cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h.  */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h.  */
8417 #ifndef __cplusplus
8418 typedef int foo_t;
8419 static $ac_kw foo_t static_foo () {return 0; }
8420 $ac_kw foo_t foo () {return 0; }
8421 #endif
8422
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8426 case "(($ac_try" in
8427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428   *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431   (eval "$ac_compile") 2>conftest.er1
8432   ac_status=$?
8433   grep -v '^ *+' conftest.er1 >conftest.err
8434   rm -f conftest.er1
8435   cat conftest.err >&5
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } &&
8438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439   { (case "(($ac_try" in
8440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441   *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444   (eval "$ac_try") 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; } &&
8448          { ac_try='test -s conftest.$ac_objext'
8449   { (case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_try") 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_cv_c_inline=$ac_kw
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467   test "$ac_cv_c_inline" != no && break
8468 done
8469
8470 fi
8471 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8472 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8473
8474
8475 case $ac_cv_c_inline in
8476   inline | yes) ;;
8477   *)
8478     case $ac_cv_c_inline in
8479       no) ac_val=;;
8480       *) ac_val=$ac_cv_c_inline;;
8481     esac
8482     cat >>confdefs.h <<_ACEOF
8483 #ifndef __cplusplus
8484 #define inline $ac_val
8485 #endif
8486 _ACEOF
8487     ;;
8488 esac
8489
8490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8501                   inttypes.h stdint.h unistd.h
8502 do
8503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 $ac_includes_default
8516
8517 #include <$ac_header>
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526   (eval "$ac_compile") 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest.$ac_objext'
8544   { (case "(($ac_try" in
8545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546   *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549   (eval "$ac_try") 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   eval "$as_ac_Header=yes"
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558         eval "$as_ac_Header=no"
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 fi
8563 ac_res=`eval echo '${'$as_ac_Header'}'`
8564                { echo "$as_me:$LINENO: result: $ac_res" >&5
8565 echo "${ECHO_T}$ac_res" >&6; }
8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567   cat >>confdefs.h <<_ACEOF
8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8569 _ACEOF
8570
8571 fi
8572
8573 done
8574
8575
8576 { echo "$as_me:$LINENO: checking for off_t" >&5
8577 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8578 if test "${ac_cv_type_off_t+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587 $ac_includes_default
8588 typedef off_t ac__type_new_;
8589 int
8590 main ()
8591 {
8592 if ((ac__type_new_ *) 0)
8593   return 0;
8594 if (sizeof (ac__type_new_))
8595   return 0;
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8602 case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_compile") 2>conftest.er1
8608   ac_status=$?
8609   grep -v '^ *+' conftest.er1 >conftest.err
8610   rm -f conftest.er1
8611   cat conftest.err >&5
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); } &&
8614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8615   { (case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_try") 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; } &&
8624          { ac_try='test -s conftest.$ac_objext'
8625   { (case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_try") 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   ac_cv_type_off_t=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639         ac_cv_type_off_t=no
8640 fi
8641
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 fi
8644 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8645 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8646 if test $ac_cv_type_off_t = yes; then
8647   :
8648 else
8649
8650 cat >>confdefs.h <<_ACEOF
8651 #define off_t long int
8652 _ACEOF
8653
8654 fi
8655
8656 { echo "$as_me:$LINENO: checking for size_t" >&5
8657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8658 if test "${ac_cv_type_size_t+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 $ac_includes_default
8668 typedef size_t ac__type_new_;
8669 int
8670 main ()
8671 {
8672 if ((ac__type_new_ *) 0)
8673   return 0;
8674 if (sizeof (ac__type_new_))
8675   return 0;
8676   ;
8677   return 0;
8678 }
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8682 case "(($ac_try" in
8683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684   *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687   (eval "$ac_compile") 2>conftest.er1
8688   ac_status=$?
8689   grep -v '^ *+' conftest.er1 >conftest.err
8690   rm -f conftest.er1
8691   cat conftest.err >&5
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } &&
8694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695   { (case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_try") 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; } &&
8704          { ac_try='test -s conftest.$ac_objext'
8705   { (case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710   (eval "$ac_try") 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   ac_cv_type_size_t=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719         ac_cv_type_size_t=no
8720 fi
8721
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8725 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8726 if test $ac_cv_type_size_t = yes; then
8727   :
8728 else
8729
8730 cat >>confdefs.h <<_ACEOF
8731 #define size_t unsigned int
8732 _ACEOF
8733
8734 fi
8735
8736
8737   { echo "$as_me:$LINENO: checking for long long" >&5
8738 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8739 if test "${ac_cv_type_long_long+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748 long long ll = 1LL; int i = 63;
8749 int
8750 main ()
8751 {
8752 long long llmax = (long long) -1;
8753      return ll << i | ll >> i | llmax / ll | llmax % ll;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765   (eval "$ac_link") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } &&
8772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773   { (case "(($ac_try" in
8774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775   *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778   (eval "$ac_try") 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; } &&
8782          { ac_try='test -s conftest$ac_exeext'
8783   { (case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_try") 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; }; then
8792   ac_cv_type_long_long=yes
8793 else
8794   echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797         ac_cv_type_long_long=no
8798 fi
8799
8800 rm -f core conftest.err conftest.$ac_objext \
8801       conftest$ac_exeext conftest.$ac_ext
8802 fi
8803 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8804 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8805   if test $ac_cv_type_long_long = yes; then
8806
8807 cat >>confdefs.h <<\_ACEOF
8808 #define HAVE_LONG_LONG 1
8809 _ACEOF
8810
8811   fi
8812
8813
8814   { echo "$as_me:$LINENO: checking for long double" >&5
8815 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8816 if test "${gt_cv_c_long_double+set}" = set; then
8817   echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819   if test "$GCC" = yes; then
8820        gt_cv_c_long_double=yes
8821      else
8822        cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828
8829          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8830          long double foo = 0.0;
8831          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8832          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8833
8834 int
8835 main ()
8836 {
8837
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8844 case "(($ac_try" in
8845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846   *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849   (eval "$ac_compile") 2>conftest.er1
8850   ac_status=$?
8851   grep -v '^ *+' conftest.er1 >conftest.err
8852   rm -f conftest.er1
8853   cat conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857   { (case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_try") 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872   (eval "$ac_try") 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; }; then
8876   gt_cv_c_long_double=yes
8877 else
8878   echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881         gt_cv_c_long_double=no
8882 fi
8883
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885      fi
8886 fi
8887 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8888 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8889   if test $gt_cv_c_long_double = yes; then
8890
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_LONG_DOUBLE 1
8893 _ACEOF
8894
8895   fi
8896
8897
8898   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8899 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8900 if test "${gt_cv_c_wchar_t+set}" = set; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903   cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909 #include <stddef.h>
8910        wchar_t foo = (wchar_t)'\0';
8911 int
8912 main ()
8913 {
8914
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (ac_try="$ac_compile"
8921 case "(($ac_try" in
8922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923   *) ac_try_echo=$ac_try;;
8924 esac
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926   (eval "$ac_compile") 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } &&
8933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8934   { (case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939   (eval "$ac_try") 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; } &&
8943          { ac_try='test -s conftest.$ac_objext'
8944   { (case "(($ac_try" in
8945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946   *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949   (eval "$ac_try") 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; }; then
8953   gt_cv_c_wchar_t=yes
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958         gt_cv_c_wchar_t=no
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8964 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8965   if test $gt_cv_c_wchar_t = yes; then
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_WCHAR_T 1
8969 _ACEOF
8970
8971   fi
8972
8973
8974   { echo "$as_me:$LINENO: checking for wint_t" >&5
8975 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8976 if test "${gt_cv_c_wint_t+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h.  */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h.  */
8985 #include <wchar.h>
8986        wint_t foo = (wchar_t)'\0';
8987 int
8988 main ()
8989 {
8990
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext
8996 if { (ac_try="$ac_compile"
8997 case "(($ac_try" in
8998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999   *) ac_try_echo=$ac_try;;
9000 esac
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002   (eval "$ac_compile") 2>conftest.er1
9003   ac_status=$?
9004   grep -v '^ *+' conftest.er1 >conftest.err
9005   rm -f conftest.er1
9006   cat conftest.err >&5
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); } &&
9009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9010   { (case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015   (eval "$ac_try") 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; } &&
9019          { ac_try='test -s conftest.$ac_objext'
9020   { (case "(($ac_try" in
9021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022   *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025   (eval "$ac_try") 2>&5
9026   ac_status=$?
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); }; }; then
9029   gt_cv_c_wint_t=yes
9030 else
9031   echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034         gt_cv_c_wint_t=no
9035 fi
9036
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 fi
9039 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9040 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9041   if test $gt_cv_c_wint_t = yes; then
9042
9043 cat >>confdefs.h <<\_ACEOF
9044 #define HAVE_WINT_T 1
9045 _ACEOF
9046
9047   fi
9048
9049
9050   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9051 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9052 if test "${gl_cv_header_inttypes_h+set}" = set; then
9053   echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055   cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h.  */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h.  */
9061 #include <sys/types.h>
9062 #include <inttypes.h>
9063 int
9064 main ()
9065 {
9066 uintmax_t i = (uintmax_t) -1;
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9073 case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078   (eval "$ac_compile") 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } &&
9085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086   { (case "(($ac_try" in
9087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088   *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091   (eval "$ac_try") 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); }; } &&
9095          { ac_try='test -s conftest.$ac_objext'
9096   { (case "(($ac_try" in
9097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098   *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101   (eval "$ac_try") 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); }; }; then
9105   gl_cv_header_inttypes_h=yes
9106 else
9107   echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110         gl_cv_header_inttypes_h=no
9111 fi
9112
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 fi
9115 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9116 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9117   if test $gl_cv_header_inttypes_h = yes; then
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9121 _ACEOF
9122
9123   fi
9124
9125
9126   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9127 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9128 if test "${gl_cv_header_stdint_h+set}" = set; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131   cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 #include <sys/types.h>
9138 #include <stdint.h>
9139 int
9140 main ()
9141 {
9142 uintmax_t i = (uintmax_t) -1;
9143   ;
9144   return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (ac_try="$ac_compile"
9149 case "(($ac_try" in
9150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151   *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154   (eval "$ac_compile") 2>conftest.er1
9155   ac_status=$?
9156   grep -v '^ *+' conftest.er1 >conftest.err
9157   rm -f conftest.er1
9158   cat conftest.err >&5
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } &&
9161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162   { (case "(($ac_try" in
9163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164   *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167   (eval "$ac_try") 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; } &&
9171          { ac_try='test -s conftest.$ac_objext'
9172   { (case "(($ac_try" in
9173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174   *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177   (eval "$ac_try") 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); }; }; then
9181   gl_cv_header_stdint_h=yes
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186         gl_cv_header_stdint_h=no
9187 fi
9188
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9192 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9193   if test $gl_cv_header_stdint_h = yes; then
9194
9195 cat >>confdefs.h <<_ACEOF
9196 #define HAVE_STDINT_H_WITH_UINTMAX 1
9197 _ACEOF
9198
9199   fi
9200
9201
9202
9203
9204   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9205 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9206 if test "${gt_cv_c_intmax_t+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215
9216 #include <stddef.h>
9217 #include <stdlib.h>
9218 #if HAVE_STDINT_H_WITH_UINTMAX
9219 #include <stdint.h>
9220 #endif
9221 #if HAVE_INTTYPES_H_WITH_UINTMAX
9222 #include <inttypes.h>
9223 #endif
9224
9225 int
9226 main ()
9227 {
9228 intmax_t x = -1;
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9235 case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240   (eval "$ac_compile") 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9248   { (case "(($ac_try" in
9249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250   *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253   (eval "$ac_try") 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); }; } &&
9257          { ac_try='test -s conftest.$ac_objext'
9258   { (case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263   (eval "$ac_try") 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; }; then
9267   gt_cv_c_intmax_t=yes
9268 else
9269   echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272         gt_cv_c_intmax_t=no
9273 fi
9274
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9278 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9279   if test $gt_cv_c_intmax_t = yes; then
9280
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_INTMAX_T 1
9283 _ACEOF
9284
9285   fi
9286
9287
9288
9289   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9290 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9291 if test "${gt_cv_func_printf_posix+set}" = set; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294
9295       if test "$cross_compiling" = yes; then
9296
9297         cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h.  */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h.  */
9303
9304 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9305   notposix
9306 #endif
9307
9308 _ACEOF
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310   $EGREP "notposix" >/dev/null 2>&1; then
9311   gt_cv_func_printf_posix="guessing no"
9312 else
9313   gt_cv_func_printf_posix="guessing yes"
9314 fi
9315 rm -f conftest*
9316
9317
9318 else
9319   cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325
9326 #include <stdio.h>
9327 #include <string.h>
9328 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9329    dollar expansion (possibly an autoconf bug).  */
9330 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9331 static char buf[100];
9332 int main ()
9333 {
9334   sprintf (buf, format, 33, 55);
9335   return (strcmp (buf, "55 33") != 0);
9336 }
9337 _ACEOF
9338 rm -f conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_link") 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9349   { (case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354   (eval "$ac_try") 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; }; then
9358   gt_cv_func_printf_posix=yes
9359 else
9360   echo "$as_me: program exited with status $ac_status" >&5
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ( exit $ac_status )
9365 gt_cv_func_printf_posix=no
9366 fi
9367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9368 fi
9369
9370
9371
9372 fi
9373 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9374 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9375   case $gt_cv_func_printf_posix in
9376     *yes)
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_POSIX_PRINTF 1
9380 _ACEOF
9381
9382       ;;
9383   esac
9384
9385 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9386 # for constant arguments.  Useless!
9387 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9388 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9389 if test "${ac_cv_working_alloca_h+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398 #include <alloca.h>
9399 int
9400 main ()
9401 {
9402 char *p = (char *) alloca (2 * sizeof (int));
9403                           if (p) return 0;
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9410 case "(($ac_try" in
9411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412   *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415   (eval "$ac_link") 2>conftest.er1
9416   ac_status=$?
9417   grep -v '^ *+' conftest.er1 >conftest.err
9418   rm -f conftest.er1
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } &&
9422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9423   { (case "(($ac_try" in
9424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425   *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428   (eval "$ac_try") 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (case "(($ac_try" in
9434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435   *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438   (eval "$ac_try") 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); }; }; then
9442   ac_cv_working_alloca_h=yes
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447         ac_cv_working_alloca_h=no
9448 fi
9449
9450 rm -f core conftest.err conftest.$ac_objext \
9451       conftest$ac_exeext conftest.$ac_ext
9452 fi
9453 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9454 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9455 if test $ac_cv_working_alloca_h = yes; then
9456
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_ALLOCA_H 1
9459 _ACEOF
9460
9461 fi
9462
9463 { echo "$as_me:$LINENO: checking for alloca" >&5
9464 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9465 if test "${ac_cv_func_alloca_works+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 #ifdef __GNUC__
9475 # define alloca __builtin_alloca
9476 #else
9477 # ifdef _MSC_VER
9478 #  include <malloc.h>
9479 #  define alloca _alloca
9480 # else
9481 #  if HAVE_ALLOCA_H
9482 #   include <alloca.h>
9483 #  else
9484 #   ifdef _AIX
9485  #pragma alloca
9486 #   else
9487 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9488 char *alloca ();
9489 #    endif
9490 #   endif
9491 #  endif
9492 # endif
9493 #endif
9494
9495 int
9496 main ()
9497 {
9498 char *p = (char *) alloca (1);
9499                                     if (p) return 0;
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519   { (case "(($ac_try" in
9520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521   *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524   (eval "$ac_try") 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; } &&
9528          { ac_try='test -s conftest$ac_exeext'
9529   { (case "(($ac_try" in
9530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531   *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534   (eval "$ac_try") 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; }; then
9538   ac_cv_func_alloca_works=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543         ac_cv_func_alloca_works=no
9544 fi
9545
9546 rm -f core conftest.err conftest.$ac_objext \
9547       conftest$ac_exeext conftest.$ac_ext
9548 fi
9549 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9550 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9551
9552 if test $ac_cv_func_alloca_works = yes; then
9553
9554 cat >>confdefs.h <<\_ACEOF
9555 #define HAVE_ALLOCA 1
9556 _ACEOF
9557
9558 else
9559   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9560 # that cause trouble.  Some versions do not even contain alloca or
9561 # contain a buggy version.  If you still want to use their alloca,
9562 # use ar to extract alloca.o from them instead of compiling alloca.c.
9563
9564 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9565
9566 cat >>confdefs.h <<\_ACEOF
9567 #define C_ALLOCA 1
9568 _ACEOF
9569
9570
9571 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9572 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9573 if test "${ac_cv_os_cray+set}" = set; then
9574   echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576   cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h.  */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h.  */
9582 #if defined CRAY && ! defined CRAY2
9583 webecray
9584 #else
9585 wenotbecray
9586 #endif
9587
9588 _ACEOF
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590   $EGREP "webecray" >/dev/null 2>&1; then
9591   ac_cv_os_cray=yes
9592 else
9593   ac_cv_os_cray=no
9594 fi
9595 rm -f conftest*
9596
9597 fi
9598 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9599 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9600 if test $ac_cv_os_cray = yes; then
9601   for ac_func in _getb67 GETB67 getb67; do
9602     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9616 #define $ac_func innocuous_$ac_func
9617
9618 /* System header to define __stub macros and hopefully few prototypes,
9619     which can conflict with char $ac_func (); below.
9620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621     <limits.h> exists even on freestanding compilers.  */
9622
9623 #ifdef __STDC__
9624 # include <limits.h>
9625 #else
9626 # include <assert.h>
9627 #endif
9628
9629 #undef $ac_func
9630
9631 /* Override any GCC internal prototype to avoid an error.
9632    Use char because int might match the return type of a GCC
9633    builtin and then its argument prototype would still apply.  */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char $ac_func ();
9638 /* The GNU C library defines this for functions which it implements
9639     to always fail with ENOSYS.  Some functions are actually named
9640     something starting with __ and the normal name is an alias.  */
9641 #if defined __stub_$ac_func || defined __stub___$ac_func
9642 choke me
9643 #endif
9644
9645 int
9646 main ()
9647 {
9648 return $ac_func ();
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_link") 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } &&
9667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9668   { (case "(($ac_try" in
9669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670   *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673   (eval "$ac_try") 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; } &&
9677          { ac_try='test -s conftest$ac_exeext'
9678   { (case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_try") 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; }; then
9687   eval "$as_ac_var=yes"
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692         eval "$as_ac_var=no"
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext \
9696       conftest$ac_exeext conftest.$ac_ext
9697 fi
9698 ac_res=`eval echo '${'$as_ac_var'}'`
9699                { echo "$as_me:$LINENO: result: $ac_res" >&5
9700 echo "${ECHO_T}$ac_res" >&6; }
9701 if test `eval echo '${'$as_ac_var'}'` = yes; then
9702
9703 cat >>confdefs.h <<_ACEOF
9704 #define CRAY_STACKSEG_END $ac_func
9705 _ACEOF
9706
9707     break
9708 fi
9709
9710   done
9711 fi
9712
9713 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9714 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9715 if test "${ac_cv_c_stack_direction+set}" = set; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   if test "$cross_compiling" = yes; then
9719   ac_cv_c_stack_direction=0
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 $ac_includes_default
9728 int
9729 find_stack_direction ()
9730 {
9731   static char *addr = 0;
9732   auto char dummy;
9733   if (addr == 0)
9734     {
9735       addr = &dummy;
9736       return find_stack_direction ();
9737     }
9738   else
9739     return (&dummy > addr) ? 1 : -1;
9740 }
9741
9742 int
9743 main ()
9744 {
9745   return find_stack_direction () < 0;
9746 }
9747 _ACEOF
9748 rm -f conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9750 case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_link") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9759   { (case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_try") 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_c_stack_direction=1
9769 else
9770   echo "$as_me: program exited with status $ac_status" >&5
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 ( exit $ac_status )
9775 ac_cv_c_stack_direction=-1
9776 fi
9777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9778 fi
9779
9780
9781 fi
9782 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9783 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9784
9785 cat >>confdefs.h <<_ACEOF
9786 #define STACK_DIRECTION $ac_cv_c_stack_direction
9787 _ACEOF
9788
9789
9790 fi
9791
9792
9793
9794 for ac_header in stdlib.h unistd.h
9795 do
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9798   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 fi
9803 ac_res=`eval echo '${'$as_ac_Header'}'`
9804                { echo "$as_me:$LINENO: result: $ac_res" >&5
9805 echo "${ECHO_T}$ac_res" >&6; }
9806 else
9807   # Is the header compilable?
9808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816 $ac_includes_default
9817 #include <$ac_header>
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (ac_try="$ac_compile"
9821 case "(($ac_try" in
9822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823   *) ac_try_echo=$ac_try;;
9824 esac
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826   (eval "$ac_compile") 2>conftest.er1
9827   ac_status=$?
9828   grep -v '^ *+' conftest.er1 >conftest.err
9829   rm -f conftest.er1
9830   cat conftest.err >&5
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } &&
9833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; } &&
9843          { ac_try='test -s conftest.$ac_objext'
9844   { (case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849   (eval "$ac_try") 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; }; then
9853   ac_header_compiler=yes
9854 else
9855   echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858         ac_header_compiler=no
9859 fi
9860
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 echo "${ECHO_T}$ac_header_compiler" >&6; }
9864
9865 # Is the header present?
9866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 #include <$ac_header>
9875 _ACEOF
9876 if { (ac_try="$ac_cpp conftest.$ac_ext"
9877 case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } >/dev/null; then
9889   if test -s conftest.err; then
9890     ac_cpp_err=$ac_c_preproc_warn_flag
9891     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9892   else
9893     ac_cpp_err=
9894   fi
9895 else
9896   ac_cpp_err=yes
9897 fi
9898 if test -z "$ac_cpp_err"; then
9899   ac_header_preproc=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904   ac_header_preproc=no
9905 fi
9906
9907 rm -f conftest.err conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909 echo "${ECHO_T}$ac_header_preproc" >&6; }
9910
9911 # So?  What about this header?
9912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9913   yes:no: )
9914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9918     ac_header_preproc=yes
9919     ;;
9920   no:yes:* )
9921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9933
9934     ;;
9935 esac
9936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9939   echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941   eval "$as_ac_Header=\$ac_header_preproc"
9942 fi
9943 ac_res=`eval echo '${'$as_ac_Header'}'`
9944                { echo "$as_me:$LINENO: result: $ac_res" >&5
9945 echo "${ECHO_T}$ac_res" >&6; }
9946
9947 fi
9948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9949   cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9951 _ACEOF
9952
9953 fi
9954
9955 done
9956
9957
9958 for ac_func in getpagesize
9959 do
9960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9974 #define $ac_func innocuous_$ac_func
9975
9976 /* System header to define __stub macros and hopefully few prototypes,
9977     which can conflict with char $ac_func (); below.
9978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979     <limits.h> exists even on freestanding compilers.  */
9980
9981 #ifdef __STDC__
9982 # include <limits.h>
9983 #else
9984 # include <assert.h>
9985 #endif
9986
9987 #undef $ac_func
9988
9989 /* Override any GCC internal prototype to avoid an error.
9990    Use char because int might match the return type of a GCC
9991    builtin and then its argument prototype would still apply.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 char $ac_func ();
9996 /* The GNU C library defines this for functions which it implements
9997     to always fail with ENOSYS.  Some functions are actually named
9998     something starting with __ and the normal name is an alias.  */
9999 #if defined __stub_$ac_func || defined __stub___$ac_func
10000 choke me
10001 #endif
10002
10003 int
10004 main ()
10005 {
10006 return $ac_func ();
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (ac_try="$ac_link"
10013 case "(($ac_try" in
10014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015   *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018   (eval "$ac_link") 2>conftest.er1
10019   ac_status=$?
10020   grep -v '^ *+' conftest.er1 >conftest.err
10021   rm -f conftest.er1
10022   cat conftest.err >&5
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026   { (case "(($ac_try" in
10027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028   *) ac_try_echo=$ac_try;;
10029 esac
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031   (eval "$ac_try") 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); }; } &&
10035          { ac_try='test -s conftest$ac_exeext'
10036   { (case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_try") 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   eval "$as_ac_var=yes"
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050         eval "$as_ac_var=no"
10051 fi
10052
10053 rm -f core conftest.err conftest.$ac_objext \
10054       conftest$ac_exeext conftest.$ac_ext
10055 fi
10056 ac_res=`eval echo '${'$as_ac_var'}'`
10057                { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10059 if test `eval echo '${'$as_ac_var'}'` = yes; then
10060   cat >>confdefs.h <<_ACEOF
10061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10062 _ACEOF
10063
10064 fi
10065 done
10066
10067 { echo "$as_me:$LINENO: checking for working mmap" >&5
10068 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10069 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   if test "$cross_compiling" = yes; then
10073   ac_cv_func_mmap_fixed_mapped=no
10074 else
10075   cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081 $ac_includes_default
10082 /* malloc might have been renamed as rpl_malloc. */
10083 #undef malloc
10084
10085 /* Thanks to Mike Haertel and Jim Avera for this test.
10086    Here is a matrix of mmap possibilities:
10087         mmap private not fixed
10088         mmap private fixed at somewhere currently unmapped
10089         mmap private fixed at somewhere already mapped
10090         mmap shared not fixed
10091         mmap shared fixed at somewhere currently unmapped
10092         mmap shared fixed at somewhere already mapped
10093    For private mappings, we should verify that changes cannot be read()
10094    back from the file, nor mmap's back from the file at a different
10095    address.  (There have been systems where private was not correctly
10096    implemented like the infamous i386 svr4.0, and systems where the
10097    VM page cache was not coherent with the file system buffer cache
10098    like early versions of FreeBSD and possibly contemporary NetBSD.)
10099    For shared mappings, we should conversely verify that changes get
10100    propagated back to all the places they're supposed to be.
10101
10102    Grep wants private fixed already mapped.
10103    The main things grep needs to know about mmap are:
10104    * does it exist and is it safe to write into the mmap'd area
10105    * how to use it (BSD variants)  */
10106
10107 #include <fcntl.h>
10108 #include <sys/mman.h>
10109
10110 #if !STDC_HEADERS && !HAVE_STDLIB_H
10111 char *malloc ();
10112 #endif
10113
10114 /* This mess was copied from the GNU getpagesize.h.  */
10115 #if !HAVE_GETPAGESIZE
10116 /* Assume that all systems that can run configure have sys/param.h.  */
10117 # if !HAVE_SYS_PARAM_H
10118 #  define HAVE_SYS_PARAM_H 1
10119 # endif
10120
10121 # ifdef _SC_PAGESIZE
10122 #  define getpagesize() sysconf(_SC_PAGESIZE)
10123 # else /* no _SC_PAGESIZE */
10124 #  if HAVE_SYS_PARAM_H
10125 #   include <sys/param.h>
10126 #   ifdef EXEC_PAGESIZE
10127 #    define getpagesize() EXEC_PAGESIZE
10128 #   else /* no EXEC_PAGESIZE */
10129 #    ifdef NBPG
10130 #     define getpagesize() NBPG * CLSIZE
10131 #     ifndef CLSIZE
10132 #      define CLSIZE 1
10133 #     endif /* no CLSIZE */
10134 #    else /* no NBPG */
10135 #     ifdef NBPC
10136 #      define getpagesize() NBPC
10137 #     else /* no NBPC */
10138 #      ifdef PAGESIZE
10139 #       define getpagesize() PAGESIZE
10140 #      endif /* PAGESIZE */
10141 #     endif /* no NBPC */
10142 #    endif /* no NBPG */
10143 #   endif /* no EXEC_PAGESIZE */
10144 #  else /* no HAVE_SYS_PARAM_H */
10145 #   define getpagesize() 8192   /* punt totally */
10146 #  endif /* no HAVE_SYS_PARAM_H */
10147 # endif /* no _SC_PAGESIZE */
10148
10149 #endif /* no HAVE_GETPAGESIZE */
10150
10151 int
10152 main ()
10153 {
10154   char *data, *data2, *data3;
10155   int i, pagesize;
10156   int fd;
10157
10158   pagesize = getpagesize ();
10159
10160   /* First, make a file with some known garbage in it. */
10161   data = (char *) malloc (pagesize);
10162   if (!data)
10163     return 1;
10164   for (i = 0; i < pagesize; ++i)
10165     *(data + i) = rand ();
10166   umask (0);
10167   fd = creat ("conftest.mmap", 0600);
10168   if (fd < 0)
10169     return 1;
10170   if (write (fd, data, pagesize) != pagesize)
10171     return 1;
10172   close (fd);
10173
10174   /* Next, try to mmap the file at a fixed address which already has
10175      something else allocated at it.  If we can, also make sure that
10176      we see the same garbage.  */
10177   fd = open ("conftest.mmap", O_RDWR);
10178   if (fd < 0)
10179     return 1;
10180   data2 = (char *) malloc (2 * pagesize);
10181   if (!data2)
10182     return 1;
10183   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10184   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10185                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10186     return 1;
10187   for (i = 0; i < pagesize; ++i)
10188     if (*(data + i) != *(data2 + i))
10189       return 1;
10190
10191   /* Finally, make sure that changes to the mapped area do not
10192      percolate back to the file as seen by read().  (This is a bug on
10193      some variants of i386 svr4.0.)  */
10194   for (i = 0; i < pagesize; ++i)
10195     *(data2 + i) = *(data2 + i) + 1;
10196   data3 = (char *) malloc (pagesize);
10197   if (!data3)
10198     return 1;
10199   if (read (fd, data3, pagesize) != pagesize)
10200     return 1;
10201   for (i = 0; i < pagesize; ++i)
10202     if (*(data + i) != *(data3 + i))
10203       return 1;
10204   close (fd);
10205   return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215   (eval "$ac_link") 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10219   { (case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_try") 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_cv_func_mmap_fixed_mapped=yes
10229 else
10230   echo "$as_me: program exited with status $ac_status" >&5
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 ( exit $ac_status )
10235 ac_cv_func_mmap_fixed_mapped=no
10236 fi
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10238 fi
10239
10240
10241 fi
10242 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10243 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10244 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10245
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_MMAP 1
10248 _ACEOF
10249
10250 fi
10251 rm -f conftest.mmap
10252
10253
10254     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10255 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10256 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265
10266 #include <features.h>
10267 #ifdef __GNU_LIBRARY__
10268  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10269   Lucky GNU user
10270  #endif
10271 #endif
10272
10273 _ACEOF
10274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10275   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10276   ac_cv_gnu_library_2_1=yes
10277 else
10278   ac_cv_gnu_library_2_1=no
10279 fi
10280 rm -f conftest*
10281
10282
10283
10284 fi
10285 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10286 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10287
10288     GLIBC21="$ac_cv_gnu_library_2_1"
10289
10290
10291
10292
10293   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10294 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10295 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298
10299       if test "$cross_compiling" = yes; then
10300
10301           # Guess based on the CPU.
10302           case "$host_cpu" in
10303             alpha* | i3456786 | m68k | s390*)
10304               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10305             *)
10306               gt_cv_int_divbyzero_sigfpe="guessing no";;
10307           esac
10308
10309 else
10310   cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316
10317 #include <stdlib.h>
10318 #include <signal.h>
10319
10320 static void
10321 #ifdef __cplusplus
10322 sigfpe_handler (int sig)
10323 #else
10324 sigfpe_handler (sig) int sig;
10325 #endif
10326 {
10327   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10328   exit (sig != SIGFPE);
10329 }
10330
10331 int x = 1;
10332 int y = 0;
10333 int z;
10334 int nan;
10335
10336 int main ()
10337 {
10338   signal (SIGFPE, sigfpe_handler);
10339 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10340 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10341   signal (SIGTRAP, sigfpe_handler);
10342 #endif
10343 /* Linux/SPARC yields signal SIGILL.  */
10344 #if defined (__sparc__) && defined (__linux__)
10345   signal (SIGILL, sigfpe_handler);
10346 #endif
10347
10348   z = x / y;
10349   nan = y / y;
10350   exit (1);
10351 }
10352
10353 _ACEOF
10354 rm -f conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361   (eval "$ac_link") 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10365   { (case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_try") 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   gt_cv_int_divbyzero_sigfpe=yes
10375 else
10376   echo "$as_me: program exited with status $ac_status" >&5
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ( exit $ac_status )
10381 gt_cv_int_divbyzero_sigfpe=no
10382 fi
10383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10384 fi
10385
10386
10387
10388 fi
10389 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10390 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10391   case "$gt_cv_int_divbyzero_sigfpe" in
10392     *yes) value=1;;
10393     *) value=0;;
10394   esac
10395
10396 cat >>confdefs.h <<_ACEOF
10397 #define INTDIV0_RAISES_SIGFPE $value
10398 _ACEOF
10399
10400
10401
10402   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10403 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10404 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 unsigned long long ull = 1ULL; int i = 63;
10414 int
10415 main ()
10416 {
10417 unsigned long long ullmax = (unsigned long long) -1;
10418      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_link") 2>conftest.er1
10431   ac_status=$?
10432   grep -v '^ *+' conftest.er1 >conftest.err
10433   rm -f conftest.er1
10434   cat conftest.err >&5
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); } &&
10437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438   { (case "(($ac_try" in
10439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440   *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443   (eval "$ac_try") 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; } &&
10447          { ac_try='test -s conftest$ac_exeext'
10448   { (case "(($ac_try" in
10449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450   *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453   (eval "$ac_try") 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; }; then
10457   ac_cv_type_unsigned_long_long=yes
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10461
10462         ac_cv_type_unsigned_long_long=no
10463 fi
10464
10465 rm -f core conftest.err conftest.$ac_objext \
10466       conftest$ac_exeext conftest.$ac_ext
10467 fi
10468 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10469 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10470   if test $ac_cv_type_unsigned_long_long = yes; then
10471
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_UNSIGNED_LONG_LONG 1
10474 _ACEOF
10475
10476   fi
10477
10478
10479
10480
10481   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10482
10483     test $ac_cv_type_unsigned_long_long = yes \
10484       && ac_type='unsigned long long' \
10485       || ac_type='unsigned long'
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define uintmax_t $ac_type
10489 _ACEOF
10490
10491   else
10492
10493 cat >>confdefs.h <<\_ACEOF
10494 #define HAVE_UINTMAX_T 1
10495 _ACEOF
10496
10497   fi
10498
10499
10500   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10501 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10502 if test "${gt_cv_header_inttypes_h+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505
10506     cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512 #include <sys/types.h>
10513 #include <inttypes.h>
10514 int
10515 main ()
10516 {
10517
10518   ;
10519   return 0;
10520 }
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_compile") 2>conftest.er1
10530   ac_status=$?
10531   grep -v '^ *+' conftest.er1 >conftest.err
10532   rm -f conftest.er1
10533   cat conftest.err >&5
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } &&
10536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537   { (case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_try") 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; } &&
10546          { ac_try='test -s conftest.$ac_objext'
10547   { (case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_try") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   gt_cv_header_inttypes_h=yes
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561         gt_cv_header_inttypes_h=no
10562 fi
10563
10564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565
10566 fi
10567 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10568 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10569   if test $gt_cv_header_inttypes_h = yes; then
10570
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_INTTYPES_H 1
10573 _ACEOF
10574
10575   fi
10576
10577
10578
10579   if test $gt_cv_header_inttypes_h = yes; then
10580     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10581 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10582 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10583   echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585
10586         cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592 #include <inttypes.h>
10593 #ifdef PRId32
10594 char *p = PRId32;
10595 #endif
10596
10597 int
10598 main ()
10599 {
10600
10601   ;
10602   return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612   (eval "$ac_compile") 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } &&
10619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620   { (case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_try") 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); }; } &&
10629          { ac_try='test -s conftest.$ac_objext'
10630   { (case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_try") 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); }; }; then
10639   gt_cv_inttypes_pri_broken=no
10640 else
10641   echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644         gt_cv_inttypes_pri_broken=yes
10645 fi
10646
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648
10649 fi
10650 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10651 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10652   fi
10653   if test "$gt_cv_inttypes_pri_broken" = yes; then
10654
10655 cat >>confdefs.h <<_ACEOF
10656 #define PRI_MACROS_BROKEN 1
10657 _ACEOF
10658
10659   fi
10660
10661
10662
10663 for ac_header in stdint.h
10664 do
10665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 fi
10672 ac_res=`eval echo '${'$as_ac_Header'}'`
10673                { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675 else
10676   # Is the header compilable?
10677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h.  */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h.  */
10685 $ac_includes_default
10686 #include <$ac_header>
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_compile") 2>conftest.er1
10696   ac_status=$?
10697   grep -v '^ *+' conftest.er1 >conftest.err
10698   rm -f conftest.er1
10699   cat conftest.err >&5
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } &&
10702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703   { (case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_try") 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; } &&
10712          { ac_try='test -s conftest.$ac_objext'
10713   { (case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_try") 2>&5
10719   ac_status=$?
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); }; }; then
10722   ac_header_compiler=yes
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727         ac_header_compiler=no
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 echo "${ECHO_T}$ac_header_compiler" >&6; }
10733
10734 # Is the header present?
10735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 #include <$ac_header>
10744 _ACEOF
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10752   ac_status=$?
10753   grep -v '^ *+' conftest.er1 >conftest.err
10754   rm -f conftest.er1
10755   cat conftest.err >&5
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); } >/dev/null; then
10758   if test -s conftest.err; then
10759     ac_cpp_err=$ac_c_preproc_warn_flag
10760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10761   else
10762     ac_cpp_err=
10763   fi
10764 else
10765   ac_cpp_err=yes
10766 fi
10767 if test -z "$ac_cpp_err"; then
10768   ac_header_preproc=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773   ac_header_preproc=no
10774 fi
10775
10776 rm -f conftest.err conftest.$ac_ext
10777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10778 echo "${ECHO_T}$ac_header_preproc" >&6; }
10779
10780 # So?  What about this header?
10781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10782   yes:no: )
10783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10787     ac_header_preproc=yes
10788     ;;
10789   no:yes:* )
10790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10802
10803     ;;
10804 esac
10805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808   echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810   eval "$as_ac_Header=\$ac_header_preproc"
10811 fi
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813                { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10815
10816 fi
10817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10818   cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10820 _ACEOF
10821
10822 fi
10823
10824 done
10825
10826     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10827 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10828   result=
10829   cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835
10836 #include <limits.h>
10837 #if HAVE_STDINT_H
10838 #include <stdint.h>
10839 #endif
10840 #ifdef SIZE_MAX
10841 Found it
10842 #endif
10843
10844 _ACEOF
10845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10846   $EGREP "Found it" >/dev/null 2>&1; then
10847   result=yes
10848 fi
10849 rm -f conftest*
10850
10851   if test -z "$result"; then
10852                     if test "$cross_compiling" = yes; then
10853   # Depending upon the size, compute the lo and hi bounds.
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860 #include <stddef.h>
10861 int
10862 main ()
10863 {
10864 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10865 test_array [0] = 0
10866
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_compile") 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } &&
10885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886   { (case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_try") 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; } &&
10895          { ac_try='test -s conftest.$ac_objext'
10896   { (case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_try") 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905   ac_lo=0 ac_mid=0
10906   while :; do
10907     cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <stddef.h>
10914 int
10915 main ()
10916 {
10917 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10918 test_array [0] = 0
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_compile") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } &&
10938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10939   { (case "(($ac_try" in
10940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941   *) ac_try_echo=$ac_try;;
10942 esac
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944   (eval "$ac_try") 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest.$ac_objext'
10949   { (case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_try") 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   ac_hi=$ac_mid; break
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963         ac_lo=`expr $ac_mid + 1`
10964                         if test $ac_lo -le $ac_mid; then
10965                           ac_lo= ac_hi=
10966                           break
10967                         fi
10968                         ac_mid=`expr 2 '*' $ac_mid + 1`
10969 fi
10970
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972   done
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977         cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #include <stddef.h>
10984 int
10985 main ()
10986 {
10987 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10988 test_array [0] = 0
10989
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (ac_try="$ac_compile"
10996 case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001   (eval "$ac_compile") 2>conftest.er1
11002   ac_status=$?
11003   grep -v '^ *+' conftest.er1 >conftest.err
11004   rm -f conftest.er1
11005   cat conftest.err >&5
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } &&
11008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11009   { (case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_try") 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }; } &&
11018          { ac_try='test -s conftest.$ac_objext'
11019   { (case "(($ac_try" in
11020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021   *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024   (eval "$ac_try") 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   ac_hi=-1 ac_mid=-1
11029   while :; do
11030     cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 #include <stddef.h>
11037 int
11038 main ()
11039 {
11040 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11041 test_array [0] = 0
11042
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext
11048 if { (ac_try="$ac_compile"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_compile") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } &&
11061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062   { (case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_try") 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest.$ac_objext'
11072   { (case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_try") 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   ac_lo=$ac_mid; break
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086         ac_hi=`expr '(' $ac_mid ')' - 1`
11087                         if test $ac_mid -le $ac_hi; then
11088                           ac_lo= ac_hi=
11089                           break
11090                         fi
11091                         ac_mid=`expr 2 '*' $ac_mid`
11092 fi
11093
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095   done
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100         ac_lo= ac_hi=
11101 fi
11102
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104 fi
11105
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 # Binary search between lo and hi bounds.
11108 while test "x$ac_lo" != "x$ac_hi"; do
11109   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11110   cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <stddef.h>
11117 int
11118 main ()
11119 {
11120 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11121 test_array [0] = 0
11122
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 rm -f conftest.$ac_objext
11128 if { (ac_try="$ac_compile"
11129 case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_compile") 2>conftest.er1
11135   ac_status=$?
11136   grep -v '^ *+' conftest.er1 >conftest.err
11137   rm -f conftest.er1
11138   cat conftest.err >&5
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); } &&
11141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142   { (case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_try") 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; } &&
11151          { ac_try='test -s conftest.$ac_objext'
11152   { (case "(($ac_try" in
11153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154   *) ac_try_echo=$ac_try;;
11155 esac
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157   (eval "$ac_try") 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; }; then
11161   ac_hi=$ac_mid
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166         ac_lo=`expr '(' $ac_mid ')' + 1`
11167 fi
11168
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 done
11171 case $ac_lo in
11172 ?*) res_hi=$ac_lo;;
11173 '') result=? ;;
11174 esac
11175 else
11176   cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 #include <stddef.h>
11183 static long int longval () { return ~(size_t)0 / 10; }
11184 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11185 #include <stdio.h>
11186 #include <stdlib.h>
11187 int
11188 main ()
11189 {
11190
11191   FILE *f = fopen ("conftest.val", "w");
11192   if (! f)
11193     return 1;
11194   if ((~(size_t)0 / 10) < 0)
11195     {
11196       long int i = longval ();
11197       if (i != (~(size_t)0 / 10))
11198         return 1;
11199       fprintf (f, "%ld\n", i);
11200     }
11201   else
11202     {
11203       unsigned long int i = ulongval ();
11204       if (i != (~(size_t)0 / 10))
11205         return 1;
11206       fprintf (f, "%lu\n", i);
11207     }
11208   return ferror (f) || fclose (f) != 0;
11209
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest$ac_exeext
11215 if { (ac_try="$ac_link"
11216 case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_link") 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11225   { (case "(($ac_try" in
11226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227   *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230   (eval "$ac_try") 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; }; then
11234   res_hi=`cat conftest.val`
11235 else
11236   echo "$as_me: program exited with status $ac_status" >&5
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 ( exit $ac_status )
11241 result=?
11242 fi
11243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11244 fi
11245 rm -f conftest.val
11246     if test "$cross_compiling" = yes; then
11247   # Depending upon the size, compute the lo and hi bounds.
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h.  */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h.  */
11254 #include <stddef.h>
11255 int
11256 main ()
11257 {
11258 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11259 test_array [0] = 0
11260
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext
11266 if { (ac_try="$ac_compile"
11267 case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_compile") 2>conftest.er1
11273   ac_status=$?
11274   grep -v '^ *+' conftest.er1 >conftest.err
11275   rm -f conftest.er1
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } &&
11279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11280   { (case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_try") 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; } &&
11289          { ac_try='test -s conftest.$ac_objext'
11290   { (case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295   (eval "$ac_try") 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; }; then
11299   ac_lo=0 ac_mid=0
11300   while :; do
11301     cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 #include <stddef.h>
11308 int
11309 main ()
11310 {
11311 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11312 test_array [0] = 0
11313
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (ac_try="$ac_compile"
11320 case "(($ac_try" in
11321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322   *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325   (eval "$ac_compile") 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } &&
11332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11333   { (case "(($ac_try" in
11334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335   *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338   (eval "$ac_try") 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; } &&
11342          { ac_try='test -s conftest.$ac_objext'
11343   { (case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_try") 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   ac_hi=$ac_mid; break
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357         ac_lo=`expr $ac_mid + 1`
11358                         if test $ac_lo -le $ac_mid; then
11359                           ac_lo= ac_hi=
11360                           break
11361                         fi
11362                         ac_mid=`expr 2 '*' $ac_mid + 1`
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366   done
11367 else
11368   echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371         cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h.  */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h.  */
11377 #include <stddef.h>
11378 int
11379 main ()
11380 {
11381 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11382 test_array [0] = 0
11383
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (ac_try="$ac_compile"
11390 case "(($ac_try" in
11391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392   *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395   (eval "$ac_compile") 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } &&
11402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11403   { (case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_try") 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; } &&
11412          { ac_try='test -s conftest.$ac_objext'
11413   { (case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_try") 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   ac_hi=-1 ac_mid=-1
11423   while :; do
11424     cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 #include <stddef.h>
11431 int
11432 main ()
11433 {
11434 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11435 test_array [0] = 0
11436
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext
11442 if { (ac_try="$ac_compile"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_compile") 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456   { (case "(($ac_try" in
11457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458   *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461   (eval "$ac_try") 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; } &&
11465          { ac_try='test -s conftest.$ac_objext'
11466   { (case "(($ac_try" in
11467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468   *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471   (eval "$ac_try") 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; }; then
11475   ac_lo=$ac_mid; break
11476 else
11477   echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480         ac_hi=`expr '(' $ac_mid ')' - 1`
11481                         if test $ac_mid -le $ac_hi; then
11482                           ac_lo= ac_hi=
11483                           break
11484                         fi
11485                         ac_mid=`expr 2 '*' $ac_mid`
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489   done
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494         ac_lo= ac_hi=
11495 fi
11496
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 # Binary search between lo and hi bounds.
11502 while test "x$ac_lo" != "x$ac_hi"; do
11503   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11504   cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h.  */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h.  */
11510 #include <stddef.h>
11511 int
11512 main ()
11513 {
11514 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11515 test_array [0] = 0
11516
11517   ;
11518   return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525   *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528   (eval "$ac_compile") 2>conftest.er1
11529   ac_status=$?
11530   grep -v '^ *+' conftest.er1 >conftest.err
11531   rm -f conftest.er1
11532   cat conftest.err >&5
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } &&
11535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536   { (case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_try") 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; } &&
11545          { ac_try='test -s conftest.$ac_objext'
11546   { (case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_try") 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_hi=$ac_mid
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560         ac_lo=`expr '(' $ac_mid ')' + 1`
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 done
11565 case $ac_lo in
11566 ?*) res_lo=$ac_lo;;
11567 '') result=? ;;
11568 esac
11569 else
11570   cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 #include <stddef.h>
11577 static long int longval () { return ~(size_t)0 % 10; }
11578 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11579 #include <stdio.h>
11580 #include <stdlib.h>
11581 int
11582 main ()
11583 {
11584
11585   FILE *f = fopen ("conftest.val", "w");
11586   if (! f)
11587     return 1;
11588   if ((~(size_t)0 % 10) < 0)
11589     {
11590       long int i = longval ();
11591       if (i != (~(size_t)0 % 10))
11592         return 1;
11593       fprintf (f, "%ld\n", i);
11594     }
11595   else
11596     {
11597       unsigned long int i = ulongval ();
11598       if (i != (~(size_t)0 % 10))
11599         return 1;
11600       fprintf (f, "%lu\n", i);
11601     }
11602   return ferror (f) || fclose (f) != 0;
11603
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 rm -f conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612   *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615   (eval "$ac_link") 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11619   { (case "(($ac_try" in
11620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621   *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624   (eval "$ac_try") 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   res_lo=`cat conftest.val`
11629 else
11630   echo "$as_me: program exited with status $ac_status" >&5
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 ( exit $ac_status )
11635 result=?
11636 fi
11637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11638 fi
11639 rm -f conftest.val
11640     if test "$cross_compiling" = yes; then
11641   # Depending upon the size, compute the lo and hi bounds.
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 #include <stddef.h>
11649 int
11650 main ()
11651 {
11652 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11653 test_array [0] = 0
11654
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext
11660 if { (ac_try="$ac_compile"
11661 case "(($ac_try" in
11662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663   *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666   (eval "$ac_compile") 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674   { (case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_try") 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; } &&
11683          { ac_try='test -s conftest.$ac_objext'
11684   { (case "(($ac_try" in
11685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686   *) ac_try_echo=$ac_try;;
11687 esac
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689   (eval "$ac_try") 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); }; }; then
11693   ac_lo=0 ac_mid=0
11694   while :; do
11695     cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 #include <stddef.h>
11702 int
11703 main ()
11704 {
11705 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11706 test_array [0] = 0
11707
11708   ;
11709   return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext
11713 if { (ac_try="$ac_compile"
11714 case "(($ac_try" in
11715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716   *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719   (eval "$ac_compile") 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } &&
11726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727   { (case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_try") 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; } &&
11736          { ac_try='test -s conftest.$ac_objext'
11737   { (case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_try") 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); }; }; then
11746   ac_hi=$ac_mid; break
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751         ac_lo=`expr $ac_mid + 1`
11752                         if test $ac_lo -le $ac_mid; then
11753                           ac_lo= ac_hi=
11754                           break
11755                         fi
11756                         ac_mid=`expr 2 '*' $ac_mid + 1`
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760   done
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765         cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 #include <stddef.h>
11772 int
11773 main ()
11774 {
11775 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11776 test_array [0] = 0
11777
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_compile") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797   { (case "(($ac_try" in
11798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799   *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802   (eval "$ac_try") 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; } &&
11806          { ac_try='test -s conftest.$ac_objext'
11807   { (case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_try") 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816   ac_hi=-1 ac_mid=-1
11817   while :; do
11818     cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <stddef.h>
11825 int
11826 main ()
11827 {
11828 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11829 test_array [0] = 0
11830
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839   *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842   (eval "$ac_compile") 2>conftest.er1
11843   ac_status=$?
11844   grep -v '^ *+' conftest.er1 >conftest.err
11845   rm -f conftest.er1
11846   cat conftest.err >&5
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } &&
11849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11850   { (case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_try") 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; } &&
11859          { ac_try='test -s conftest.$ac_objext'
11860   { (case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_try") 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   ac_lo=$ac_mid; break
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874         ac_hi=`expr '(' $ac_mid ')' - 1`
11875                         if test $ac_mid -le $ac_hi; then
11876                           ac_lo= ac_hi=
11877                           break
11878                         fi
11879                         ac_mid=`expr 2 '*' $ac_mid`
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883   done
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888         ac_lo= ac_hi=
11889 fi
11890
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 # Binary search between lo and hi bounds.
11896 while test "x$ac_lo" != "x$ac_hi"; do
11897   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11898   cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904 #include <stddef.h>
11905 int
11906 main ()
11907 {
11908 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11909 test_array [0] = 0
11910
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext
11916 if { (ac_try="$ac_compile"
11917 case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_compile") 2>conftest.er1
11923   ac_status=$?
11924   grep -v '^ *+' conftest.er1 >conftest.err
11925   rm -f conftest.er1
11926   cat conftest.err >&5
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11930   { (case "(($ac_try" in
11931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932   *) ac_try_echo=$ac_try;;
11933 esac
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935   (eval "$ac_try") 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; } &&
11939          { ac_try='test -s conftest.$ac_objext'
11940   { (case "(($ac_try" in
11941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942   *) ac_try_echo=$ac_try;;
11943 esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945   (eval "$ac_try") 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }; then
11949   ac_hi=$ac_mid
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954         ac_lo=`expr '(' $ac_mid ')' + 1`
11955 fi
11956
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 done
11959 case $ac_lo in
11960 ?*) fits_in_uint=$ac_lo;;
11961 '') result=? ;;
11962 esac
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 #include <stddef.h>
11971 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11972 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11973 #include <stdio.h>
11974 #include <stdlib.h>
11975 int
11976 main ()
11977 {
11978
11979   FILE *f = fopen ("conftest.val", "w");
11980   if (! f)
11981     return 1;
11982   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11983     {
11984       long int i = longval ();
11985       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11986         return 1;
11987       fprintf (f, "%ld\n", i);
11988     }
11989   else
11990     {
11991       unsigned long int i = ulongval ();
11992       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11993         return 1;
11994       fprintf (f, "%lu\n", i);
11995     }
11996   return ferror (f) || fclose (f) != 0;
11997
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009   (eval "$ac_link") 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12013   { (case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_try") 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; }; then
12022   fits_in_uint=`cat conftest.val`
12023 else
12024   echo "$as_me: program exited with status $ac_status" >&5
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 ( exit $ac_status )
12029 result=?
12030 fi
12031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12032 fi
12033 rm -f conftest.val
12034     if test "$fits_in_uint" = 1; then
12035                   cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <stddef.h>
12042         extern size_t foo;
12043         extern unsigned long foo;
12044
12045 int
12046 main ()
12047 {
12048
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_compile") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068   { (case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_try") 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest.$ac_objext'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; }; then
12087   fits_in_uint=0
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092
12093 fi
12094
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096     fi
12097     if test -z "$result"; then
12098       if test "$fits_in_uint" = 1; then
12099         result="$res_hi$res_lo"U
12100       else
12101         result="$res_hi$res_lo"UL
12102       fi
12103     else
12104             result='~(size_t)0'
12105     fi
12106   fi
12107   { echo "$as_me:$LINENO: result: $result" >&5
12108 echo "${ECHO_T}$result" >&6; }
12109   if test "$result" != yes; then
12110
12111 cat >>confdefs.h <<_ACEOF
12112 #define SIZE_MAX $result
12113 _ACEOF
12114
12115   fi
12116
12117
12118
12119
12120
12121 for ac_header in stdint.h
12122 do
12123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 fi
12130 ac_res=`eval echo '${'$as_ac_Header'}'`
12131                { echo "$as_me:$LINENO: result: $ac_res" >&5
12132 echo "${ECHO_T}$ac_res" >&6; }
12133 else
12134   # Is the header compilable?
12135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 $ac_includes_default
12144 #include <$ac_header>
12145 _ACEOF
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_compile") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161   { (case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_try") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; } &&
12170          { ac_try='test -s conftest.$ac_objext'
12171   { (case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_try") 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   ac_header_compiler=yes
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185         ac_header_compiler=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12190 echo "${ECHO_T}$ac_header_compiler" >&6; }
12191
12192 # Is the header present?
12193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201 #include <$ac_header>
12202 _ACEOF
12203 if { (ac_try="$ac_cpp conftest.$ac_ext"
12204 case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } >/dev/null; then
12216   if test -s conftest.err; then
12217     ac_cpp_err=$ac_c_preproc_warn_flag
12218     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12219   else
12220     ac_cpp_err=
12221   fi
12222 else
12223   ac_cpp_err=yes
12224 fi
12225 if test -z "$ac_cpp_err"; then
12226   ac_header_preproc=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231   ac_header_preproc=no
12232 fi
12233
12234 rm -f conftest.err conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12236 echo "${ECHO_T}$ac_header_preproc" >&6; }
12237
12238 # So?  What about this header?
12239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12240   yes:no: )
12241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12245     ac_header_preproc=yes
12246     ;;
12247   no:yes:* )
12248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12260
12261     ;;
12262 esac
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   eval "$as_ac_Header=\$ac_header_preproc"
12269 fi
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271                { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12273
12274 fi
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276   cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12279
12280 fi
12281
12282 done
12283
12284
12285
12286
12287
12288
12289
12290
12291   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12292 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12293 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h.  */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h.  */
12302 $ac_includes_default
12303 typedef ptrdiff_t ac__type_new_;
12304 int
12305 main ()
12306 {
12307 if ((ac__type_new_ *) 0)
12308   return 0;
12309 if (sizeof (ac__type_new_))
12310   return 0;
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (ac_try="$ac_compile"
12317 case "(($ac_try" in
12318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319   *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322   (eval "$ac_compile") 2>conftest.er1
12323   ac_status=$?
12324   grep -v '^ *+' conftest.er1 >conftest.err
12325   rm -f conftest.er1
12326   cat conftest.err >&5
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } &&
12329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12330   { (case "(($ac_try" in
12331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332   *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335   (eval "$ac_try") 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; } &&
12339          { ac_try='test -s conftest.$ac_objext'
12340   { (case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345   (eval "$ac_try") 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; }; then
12349   ac_cv_type_ptrdiff_t=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354         ac_cv_type_ptrdiff_t=no
12355 fi
12356
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 fi
12359 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12360 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12361 if test $ac_cv_type_ptrdiff_t = yes; then
12362   :
12363 else
12364
12365 cat >>confdefs.h <<\_ACEOF
12366 #define ptrdiff_t long
12367 _ACEOF
12368
12369
12370 fi
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12383 stdlib.h string.h unistd.h sys/param.h
12384 do
12385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 fi
12392 ac_res=`eval echo '${'$as_ac_Header'}'`
12393                { echo "$as_me:$LINENO: result: $ac_res" >&5
12394 echo "${ECHO_T}$ac_res" >&6; }
12395 else
12396   # Is the header compilable?
12397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 $ac_includes_default
12406 #include <$ac_header>
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (ac_try="$ac_compile"
12410 case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_compile") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423   { (case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_try") 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; } &&
12432          { ac_try='test -s conftest.$ac_objext'
12433   { (case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_try") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_header_compiler=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447         ac_header_compiler=no
12448 fi
12449
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12452 echo "${ECHO_T}$ac_header_compiler" >&6; }
12453
12454 # Is the header present?
12455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 #include <$ac_header>
12464 _ACEOF
12465 if { (ac_try="$ac_cpp conftest.$ac_ext"
12466 case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } >/dev/null; then
12478   if test -s conftest.err; then
12479     ac_cpp_err=$ac_c_preproc_warn_flag
12480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12481   else
12482     ac_cpp_err=
12483   fi
12484 else
12485   ac_cpp_err=yes
12486 fi
12487 if test -z "$ac_cpp_err"; then
12488   ac_header_preproc=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493   ac_header_preproc=no
12494 fi
12495
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12499
12500 # So?  What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12502   yes:no: )
12503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507     ac_header_preproc=yes
12508     ;;
12509   no:yes:* )
12510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12522
12523     ;;
12524 esac
12525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528   echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530   eval "$as_ac_Header=\$ac_header_preproc"
12531 fi
12532 ac_res=`eval echo '${'$as_ac_Header'}'`
12533                { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12535
12536 fi
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538   cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 _ACEOF
12541
12542 fi
12543
12544 done
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12570 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12571 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12572 __fsetlocking
12573 do
12574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h.  */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h.  */
12586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12588 #define $ac_func innocuous_$ac_func
12589
12590 /* System header to define __stub macros and hopefully few prototypes,
12591     which can conflict with char $ac_func (); below.
12592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593     <limits.h> exists even on freestanding compilers.  */
12594
12595 #ifdef __STDC__
12596 # include <limits.h>
12597 #else
12598 # include <assert.h>
12599 #endif
12600
12601 #undef $ac_func
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604    Use char because int might match the return type of a GCC
12605    builtin and then its argument prototype would still apply.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char $ac_func ();
12610 /* The GNU C library defines this for functions which it implements
12611     to always fail with ENOSYS.  Some functions are actually named
12612     something starting with __ and the normal name is an alias.  */
12613 #if defined __stub_$ac_func || defined __stub___$ac_func
12614 choke me
12615 #endif
12616
12617 int
12618 main ()
12619 {
12620 return $ac_func ();
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_link") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest$ac_exeext'
12650   { (case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   eval "$as_ac_var=yes"
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664         eval "$as_ac_var=no"
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext conftest.$ac_ext
12669 fi
12670 ac_res=`eval echo '${'$as_ac_var'}'`
12671                { echo "$as_me:$LINENO: result: $ac_res" >&5
12672 echo "${ECHO_T}$ac_res" >&6; }
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674   cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 _ACEOF
12677
12678 fi
12679 done
12680
12681
12682
12683   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12684 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12685 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694 #include <stdio.h>
12695 int
12696 main ()
12697 {
12698
12699 #ifndef _snprintf
12700   char *p = (char *) _snprintf;
12701 #endif
12702
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (ac_try="$ac_compile"
12709 case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714   (eval "$ac_compile") 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12722   { (case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727   (eval "$ac_try") 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); }; } &&
12731          { ac_try='test -s conftest.$ac_objext'
12732   { (case "(($ac_try" in
12733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734   *) ac_try_echo=$ac_try;;
12735 esac
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737   (eval "$ac_try") 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }; }; then
12741   ac_cv_have_decl__snprintf=yes
12742 else
12743   echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746         ac_cv_have_decl__snprintf=no
12747 fi
12748
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12752 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12753   if test $ac_cv_have_decl__snprintf = yes; then
12754     gt_value=1
12755   else
12756     gt_value=0
12757   fi
12758
12759 cat >>confdefs.h <<_ACEOF
12760 #define HAVE_DECL__SNPRINTF $gt_value
12761 _ACEOF
12762
12763
12764
12765   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12766 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12767 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770   cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #include <stdio.h>
12777 int
12778 main ()
12779 {
12780
12781 #ifndef _snwprintf
12782   char *p = (char *) _snwprintf;
12783 #endif
12784
12785   ;
12786   return 0;
12787 }
12788 _ACEOF
12789 rm -f conftest.$ac_objext
12790 if { (ac_try="$ac_compile"
12791 case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796   (eval "$ac_compile") 2>conftest.er1
12797   ac_status=$?
12798   grep -v '^ *+' conftest.er1 >conftest.err
12799   rm -f conftest.er1
12800   cat conftest.err >&5
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); } &&
12803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804   { (case "(($ac_try" in
12805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806   *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809   (eval "$ac_try") 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; } &&
12813          { ac_try='test -s conftest.$ac_objext'
12814   { (case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819   (eval "$ac_try") 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823   ac_cv_have_decl__snwprintf=yes
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828         ac_cv_have_decl__snwprintf=no
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12834 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12835   if test $ac_cv_have_decl__snwprintf = yes; then
12836     gt_value=1
12837   else
12838     gt_value=0
12839   fi
12840
12841 cat >>confdefs.h <<_ACEOF
12842 #define HAVE_DECL__SNWPRINTF $gt_value
12843 _ACEOF
12844
12845
12846
12847
12848   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12849 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12850 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12851   echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853   cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h.  */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h.  */
12859 #include <stdio.h>
12860 int
12861 main ()
12862 {
12863
12864 #ifndef feof_unlocked
12865   char *p = (char *) feof_unlocked;
12866 #endif
12867
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext
12873 if { (ac_try="$ac_compile"
12874 case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_compile") 2>conftest.er1
12880   ac_status=$?
12881   grep -v '^ *+' conftest.er1 >conftest.err
12882   rm -f conftest.er1
12883   cat conftest.err >&5
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); } &&
12886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887   { (case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892   (eval "$ac_try") 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; } &&
12896          { ac_try='test -s conftest.$ac_objext'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_cv_have_decl_feof_unlocked=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911         ac_cv_have_decl_feof_unlocked=no
12912 fi
12913
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 fi
12916 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12917 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12918   if test $ac_cv_have_decl_feof_unlocked = yes; then
12919     gt_value=1
12920   else
12921     gt_value=0
12922   fi
12923
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12926 _ACEOF
12927
12928
12929
12930   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12931 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12932 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   cat >conftest.$ac_ext <<_ACEOF
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941 #include <stdio.h>
12942 int
12943 main ()
12944 {
12945
12946 #ifndef fgets_unlocked
12947   char *p = (char *) fgets_unlocked;
12948 #endif
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958   *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961   (eval "$ac_compile") 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12969   { (case "(($ac_try" in
12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971   *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974   (eval "$ac_try") 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; } &&
12978          { ac_try='test -s conftest.$ac_objext'
12979   { (case "(($ac_try" in
12980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981   *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984   (eval "$ac_try") 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; }; then
12988   ac_cv_have_decl_fgets_unlocked=yes
12989 else
12990   echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993         ac_cv_have_decl_fgets_unlocked=no
12994 fi
12995
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 fi
12998 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12999 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
13000   if test $ac_cv_have_decl_fgets_unlocked = yes; then
13001     gt_value=1
13002   else
13003     gt_value=0
13004   fi
13005
13006 cat >>confdefs.h <<_ACEOF
13007 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13008 _ACEOF
13009
13010
13011
13012   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13013 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13014 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h.  */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h.  */
13023 #include <stdio.h>
13024 int
13025 main ()
13026 {
13027
13028 #ifndef getc_unlocked
13029   char *p = (char *) getc_unlocked;
13030 #endif
13031
13032   ;
13033   return 0;
13034 }
13035 _ACEOF
13036 rm -f conftest.$ac_objext
13037 if { (ac_try="$ac_compile"
13038 case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_compile") 2>conftest.er1
13044   ac_status=$?
13045   grep -v '^ *+' conftest.er1 >conftest.err
13046   rm -f conftest.er1
13047   cat conftest.err >&5
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } &&
13050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13051   { (case "(($ac_try" in
13052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053   *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056   (eval "$ac_try") 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; } &&
13060          { ac_try='test -s conftest.$ac_objext'
13061   { (case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_try") 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; }; then
13070   ac_cv_have_decl_getc_unlocked=yes
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075         ac_cv_have_decl_getc_unlocked=no
13076 fi
13077
13078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 fi
13080 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13081 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13082   if test $ac_cv_have_decl_getc_unlocked = yes; then
13083     gt_value=1
13084   else
13085     gt_value=0
13086   fi
13087
13088 cat >>confdefs.h <<_ACEOF
13089 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13090 _ACEOF
13091
13092
13093
13094   case $gt_cv_func_printf_posix in
13095     *yes) HAVE_POSIX_PRINTF=1 ;;
13096     *) HAVE_POSIX_PRINTF=0 ;;
13097   esac
13098
13099   if test "$ac_cv_func_asprintf" = yes; then
13100     HAVE_ASPRINTF=1
13101   else
13102     HAVE_ASPRINTF=0
13103   fi
13104
13105   if test "$ac_cv_func_snprintf" = yes; then
13106     HAVE_SNPRINTF=1
13107   else
13108     HAVE_SNPRINTF=0
13109   fi
13110
13111   if test "$ac_cv_func_wprintf" = yes; then
13112     HAVE_WPRINTF=1
13113   else
13114     HAVE_WPRINTF=0
13115   fi
13116
13117
13118
13119
13120
13121
13122
13123           am_save_CPPFLAGS="$CPPFLAGS"
13124
13125   for element in $INCICONV; do
13126     haveit=
13127     for x in $CPPFLAGS; do
13128
13129   acl_save_prefix="$prefix"
13130   prefix="$acl_final_prefix"
13131   acl_save_exec_prefix="$exec_prefix"
13132   exec_prefix="$acl_final_exec_prefix"
13133   eval x=\"$x\"
13134   exec_prefix="$acl_save_exec_prefix"
13135   prefix="$acl_save_prefix"
13136
13137       if test "X$x" = "X$element"; then
13138         haveit=yes
13139         break
13140       fi
13141     done
13142     if test -z "$haveit"; then
13143       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13144     fi
13145   done
13146
13147
13148   { echo "$as_me:$LINENO: checking for iconv" >&5
13149 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13150 if test "${am_cv_func_iconv+set}" = set; then
13151   echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153
13154     am_cv_func_iconv="no, consider installing GNU libiconv"
13155     am_cv_lib_iconv=no
13156     cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162 #include <stdlib.h>
13163 #include <iconv.h>
13164 int
13165 main ()
13166 {
13167 iconv_t cd = iconv_open("","");
13168        iconv(cd,NULL,NULL,NULL,NULL);
13169        iconv_close(cd);
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_link") 2>conftest.er1
13182   ac_status=$?
13183   grep -v '^ *+' conftest.er1 >conftest.err
13184   rm -f conftest.er1
13185   cat conftest.err >&5
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189   { (case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194   (eval "$ac_try") 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; } &&
13198          { ac_try='test -s conftest$ac_exeext'
13199   { (case "(($ac_try" in
13200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201   *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204   (eval "$ac_try") 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   am_cv_func_iconv=yes
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213
13214 fi
13215
13216 rm -f core conftest.err conftest.$ac_objext \
13217       conftest$ac_exeext conftest.$ac_ext
13218     if test "$am_cv_func_iconv" != yes; then
13219       am_save_LIBS="$LIBS"
13220       LIBS="$LIBS $LIBICONV"
13221       cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 #include <stdlib.h>
13228 #include <iconv.h>
13229 int
13230 main ()
13231 {
13232 iconv_t cd = iconv_open("","");
13233          iconv(cd,NULL,NULL,NULL,NULL);
13234          iconv_close(cd);
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243   *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246   (eval "$ac_link") 2>conftest.er1
13247   ac_status=$?
13248   grep -v '^ *+' conftest.er1 >conftest.err
13249   rm -f conftest.er1
13250   cat conftest.err >&5
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); } &&
13253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13254   { (case "(($ac_try" in
13255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256   *) ac_try_echo=$ac_try;;
13257 esac
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259   (eval "$ac_try") 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); }; } &&
13263          { ac_try='test -s conftest$ac_exeext'
13264   { (case "(($ac_try" in
13265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266   *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269   (eval "$ac_try") 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; }; then
13273   am_cv_lib_iconv=yes
13274         am_cv_func_iconv=yes
13275 else
13276   echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279
13280 fi
13281
13282 rm -f core conftest.err conftest.$ac_objext \
13283       conftest$ac_exeext conftest.$ac_ext
13284       LIBS="$am_save_LIBS"
13285     fi
13286
13287 fi
13288 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13289 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13290   if test "$am_cv_func_iconv" = yes; then
13291
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_ICONV 1
13294 _ACEOF
13295
13296   fi
13297   if test "$am_cv_lib_iconv" = yes; then
13298     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13299 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13300     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13301 echo "${ECHO_T}$LIBICONV" >&6; }
13302   else
13303             CPPFLAGS="$am_save_CPPFLAGS"
13304     LIBICONV=
13305     LTLIBICONV=
13306   fi
13307
13308
13309
13310   if test "$am_cv_func_iconv" = yes; then
13311     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13312 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13313     if test "${am_cv_proto_iconv+set}" = set; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316
13317       cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323
13324 #include <stdlib.h>
13325 #include <iconv.h>
13326 extern
13327 #ifdef __cplusplus
13328 "C"
13329 #endif
13330 #if defined(__STDC__) || defined(__cplusplus)
13331 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13332 #else
13333 size_t iconv();
13334 #endif
13335
13336 int
13337 main ()
13338 {
13339
13340   ;
13341   return 0;
13342 }
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348   *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351   (eval "$ac_compile") 2>conftest.er1
13352   ac_status=$?
13353   grep -v '^ *+' conftest.er1 >conftest.err
13354   rm -f conftest.er1
13355   cat conftest.err >&5
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } &&
13358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359   { (case "(($ac_try" in
13360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361   *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364   (eval "$ac_try") 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; } &&
13368          { ac_try='test -s conftest.$ac_objext'
13369   { (case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374   (eval "$ac_try") 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   am_cv_proto_iconv_arg1=""
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383         am_cv_proto_iconv_arg1="const"
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387       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);"
13388 fi
13389
13390     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13391     { echo "$as_me:$LINENO: result: ${ac_t:-
13392          }$am_cv_proto_iconv" >&5
13393 echo "${ECHO_T}${ac_t:-
13394          }$am_cv_proto_iconv" >&6; }
13395
13396 cat >>confdefs.h <<_ACEOF
13397 #define ICONV_CONST $am_cv_proto_iconv_arg1
13398 _ACEOF
13399
13400   fi
13401
13402
13403   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13404 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13405 if test "${am_cv_langinfo_codeset+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h.  */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h.  */
13414 #include <langinfo.h>
13415 int
13416 main ()
13417 {
13418 char* cs = nl_langinfo(CODESET);
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (ac_try="$ac_link"
13425 case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_link") 2>conftest.er1
13431   ac_status=$?
13432   grep -v '^ *+' conftest.er1 >conftest.err
13433   rm -f conftest.er1
13434   cat conftest.err >&5
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13438   { (case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_try") 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; } &&
13447          { ac_try='test -s conftest$ac_exeext'
13448   { (case "(($ac_try" in
13449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450   *) ac_try_echo=$ac_try;;
13451 esac
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453   (eval "$ac_try") 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; }; then
13457   am_cv_langinfo_codeset=yes
13458 else
13459   echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462         am_cv_langinfo_codeset=no
13463 fi
13464
13465 rm -f core conftest.err conftest.$ac_objext \
13466       conftest$ac_exeext conftest.$ac_ext
13467
13468 fi
13469 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13470 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13471   if test $am_cv_langinfo_codeset = yes; then
13472
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_LANGINFO_CODESET 1
13475 _ACEOF
13476
13477   fi
13478
13479   if test $ac_cv_header_locale_h = yes; then
13480
13481   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13482 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13483 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492 #include <locale.h>
13493 int
13494 main ()
13495 {
13496 return LC_MESSAGES
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (ac_try="$ac_link"
13503 case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_link") 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516   { (case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_try") 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest$ac_exeext'
13526   { (case "(($ac_try" in
13527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528   *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531   (eval "$ac_try") 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   gt_cv_val_LC_MESSAGES=yes
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540         gt_cv_val_LC_MESSAGES=no
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext \
13544       conftest$ac_exeext conftest.$ac_ext
13545 fi
13546 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13547 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13548   if test $gt_cv_val_LC_MESSAGES = yes; then
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_LC_MESSAGES 1
13552 _ACEOF
13553
13554   fi
13555
13556   fi
13557
13558   if test -n "$INTL_MACOSX_LIBS"; then
13559     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13560   fi
13561
13562                       for ac_prog in bison
13563 do
13564   # Extract the first word of "$ac_prog", so it can be a program name with args.
13565 set dummy $ac_prog; ac_word=$2
13566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13568 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571   if test -n "$INTLBISON"; then
13572   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13573 else
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577   IFS=$as_save_IFS
13578   test -z "$as_dir" && as_dir=.
13579   for ac_exec_ext in '' $ac_executable_extensions; do
13580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13581     ac_cv_prog_INTLBISON="$ac_prog"
13582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13583     break 2
13584   fi
13585 done
13586 done
13587 IFS=$as_save_IFS
13588
13589 fi
13590 fi
13591 INTLBISON=$ac_cv_prog_INTLBISON
13592 if test -n "$INTLBISON"; then
13593   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13594 echo "${ECHO_T}$INTLBISON" >&6; }
13595 else
13596   { echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6; }
13598 fi
13599
13600
13601   test -n "$INTLBISON" && break
13602 done
13603
13604   if test -z "$INTLBISON"; then
13605     ac_verc_fail=yes
13606   else
13607         { echo "$as_me:$LINENO: checking version of bison" >&5
13608 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13609     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13610     case $ac_prog_version in
13611       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13612       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13613          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13614       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13615     esac
13616     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13617 echo "${ECHO_T}$ac_prog_version" >&6; }
13618   fi
13619   if test $ac_verc_fail = yes; then
13620     INTLBISON=:
13621   fi
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13639 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13640 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   gt_save_CPPFLAGS="$CPPFLAGS"
13644      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13645      gt_save_LIBS="$LIBS"
13646      LIBS="$LIBS -framework CoreFoundation"
13647      cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 #include <CFPreferences.h>
13654 int
13655 main ()
13656 {
13657 CFPreferencesCopyAppValue(NULL, NULL)
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (ac_try="$ac_link"
13664 case "(($ac_try" in
13665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666   *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669   (eval "$ac_link") 2>conftest.er1
13670   ac_status=$?
13671   grep -v '^ *+' conftest.er1 >conftest.err
13672   rm -f conftest.er1
13673   cat conftest.err >&5
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); } &&
13676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13677   { (case "(($ac_try" in
13678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679   *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682   (eval "$ac_try") 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; } &&
13686          { ac_try='test -s conftest$ac_exeext'
13687   { (case "(($ac_try" in
13688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689   *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692   (eval "$ac_try") 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; }; then
13696   gt_cv_func_CFPreferencesCopyAppValue=yes
13697 else
13698   echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701         gt_cv_func_CFPreferencesCopyAppValue=no
13702 fi
13703
13704 rm -f core conftest.err conftest.$ac_objext \
13705       conftest$ac_exeext conftest.$ac_ext
13706      CPPFLAGS="$gt_save_CPPFLAGS"
13707      LIBS="$gt_save_LIBS"
13708 fi
13709 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13710 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13711   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13712
13713 cat >>confdefs.h <<\_ACEOF
13714 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13715 _ACEOF
13716
13717   fi
13718     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13719 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13720 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13721   echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723   gt_save_CPPFLAGS="$CPPFLAGS"
13724      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13725      gt_save_LIBS="$LIBS"
13726      LIBS="$LIBS -framework CoreFoundation"
13727      cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <CFLocale.h>
13734 int
13735 main ()
13736 {
13737 CFLocaleCopyCurrent();
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (ac_try="$ac_link"
13744 case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_link") 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } &&
13756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757   { (case "(($ac_try" in
13758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759   *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762   (eval "$ac_try") 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; } &&
13766          { ac_try='test -s conftest$ac_exeext'
13767   { (case "(($ac_try" in
13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769   *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772   (eval "$ac_try") 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; }; then
13776   gt_cv_func_CFLocaleCopyCurrent=yes
13777 else
13778   echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781         gt_cv_func_CFLocaleCopyCurrent=no
13782 fi
13783
13784 rm -f core conftest.err conftest.$ac_objext \
13785       conftest$ac_exeext conftest.$ac_ext
13786      CPPFLAGS="$gt_save_CPPFLAGS"
13787      LIBS="$gt_save_LIBS"
13788 fi
13789 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13790 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13791   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13792
13793 cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_CFLOCALECOPYCURRENT 1
13795 _ACEOF
13796
13797   fi
13798   INTL_MACOSX_LIBS=
13799   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13800     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13801   fi
13802
13803
13804
13805
13806   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13807 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13808     # Check whether --enable-nls was given.
13809 if test "${enable_nls+set}" = set; then
13810   enableval=$enable_nls; USE_NLS=$enableval
13811 else
13812   USE_NLS=yes
13813 fi
13814
13815   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13816 echo "${ECHO_T}$USE_NLS" >&6; }
13817
13818
13819
13820
13821     BUILD_INCLUDED_LIBINTL=no
13822     USE_INCLUDED_LIBINTL=no
13823
13824   LIBINTL=
13825   LTLIBINTL=
13826   POSUB=
13827
13828     if test "$USE_NLS" = "yes"; then
13829     gt_use_preinstalled_gnugettext=no
13830
13831       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13832 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13833
13834 # Check whether --with-included-gettext was given.
13835 if test "${with_included_gettext+set}" = set; then
13836   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13837 else
13838   nls_cv_force_use_gnu_gettext=no
13839 fi
13840
13841       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13842 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13843
13844       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13845       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13846
13847
13848
13849
13850
13851
13852         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13853 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13854 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13855   echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857   cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h.  */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h.  */
13863 #include <libintl.h>
13864 extern int _nl_msg_cat_cntr;
13865 extern int *_nl_domain_bindings;
13866 int
13867 main ()
13868 {
13869 bindtextdomain ("", "");
13870 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879   *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882   (eval "$ac_link") 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13890   { (case "(($ac_try" in
13891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892   *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895   (eval "$ac_try") 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; } &&
13899          { ac_try='test -s conftest$ac_exeext'
13900   { (case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_try") 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   gt_cv_func_gnugettext1_libc=yes
13910 else
13911   echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914         gt_cv_func_gnugettext1_libc=no
13915 fi
13916
13917 rm -f core conftest.err conftest.$ac_objext \
13918       conftest$ac_exeext conftest.$ac_ext
13919 fi
13920 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13921 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13922
13923         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13924
13925
13926
13927     use_additional=yes
13928
13929   acl_save_prefix="$prefix"
13930   prefix="$acl_final_prefix"
13931   acl_save_exec_prefix="$exec_prefix"
13932   exec_prefix="$acl_final_exec_prefix"
13933
13934     eval additional_includedir=\"$includedir\"
13935     eval additional_libdir=\"$libdir\"
13936
13937   exec_prefix="$acl_save_exec_prefix"
13938   prefix="$acl_save_prefix"
13939
13940
13941 # Check whether --with-libintl-prefix was given.
13942 if test "${with_libintl_prefix+set}" = set; then
13943   withval=$with_libintl_prefix;
13944     if test "X$withval" = "Xno"; then
13945       use_additional=no
13946     else
13947       if test "X$withval" = "X"; then
13948
13949   acl_save_prefix="$prefix"
13950   prefix="$acl_final_prefix"
13951   acl_save_exec_prefix="$exec_prefix"
13952   exec_prefix="$acl_final_exec_prefix"
13953
13954           eval additional_includedir=\"$includedir\"
13955           eval additional_libdir=\"$libdir\"
13956
13957   exec_prefix="$acl_save_exec_prefix"
13958   prefix="$acl_save_prefix"
13959
13960       else
13961         additional_includedir="$withval/include"
13962         additional_libdir="$withval/lib"
13963       fi
13964     fi
13965
13966 fi
13967
13968       LIBINTL=
13969   LTLIBINTL=
13970   INCINTL=
13971   rpathdirs=
13972   ltrpathdirs=
13973   names_already_handled=
13974   names_next_round='intl '
13975   while test -n "$names_next_round"; do
13976     names_this_round="$names_next_round"
13977     names_next_round=
13978     for name in $names_this_round; do
13979       already_handled=
13980       for n in $names_already_handled; do
13981         if test "$n" = "$name"; then
13982           already_handled=yes
13983           break
13984         fi
13985       done
13986       if test -z "$already_handled"; then
13987         names_already_handled="$names_already_handled $name"
13988                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13989         eval value=\"\$HAVE_LIB$uppername\"
13990         if test -n "$value"; then
13991           if test "$value" = yes; then
13992             eval value=\"\$LIB$uppername\"
13993             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13994             eval value=\"\$LTLIB$uppername\"
13995             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13996           else
13997                                     :
13998           fi
13999         else
14000                               found_dir=
14001           found_la=
14002           found_so=
14003           found_a=
14004           if test $use_additional = yes; then
14005             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14006               found_dir="$additional_libdir"
14007               found_so="$additional_libdir/lib$name.$shlibext"
14008               if test -f "$additional_libdir/lib$name.la"; then
14009                 found_la="$additional_libdir/lib$name.la"
14010               fi
14011             else
14012               if test -f "$additional_libdir/lib$name.$libext"; then
14013                 found_dir="$additional_libdir"
14014                 found_a="$additional_libdir/lib$name.$libext"
14015                 if test -f "$additional_libdir/lib$name.la"; then
14016                   found_la="$additional_libdir/lib$name.la"
14017                 fi
14018               fi
14019             fi
14020           fi
14021           if test "X$found_dir" = "X"; then
14022             for x in $LDFLAGS $LTLIBINTL; do
14023
14024   acl_save_prefix="$prefix"
14025   prefix="$acl_final_prefix"
14026   acl_save_exec_prefix="$exec_prefix"
14027   exec_prefix="$acl_final_exec_prefix"
14028   eval x=\"$x\"
14029   exec_prefix="$acl_save_exec_prefix"
14030   prefix="$acl_save_prefix"
14031
14032               case "$x" in
14033                 -L*)
14034                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14035                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14036                     found_dir="$dir"
14037                     found_so="$dir/lib$name.$shlibext"
14038                     if test -f "$dir/lib$name.la"; then
14039                       found_la="$dir/lib$name.la"
14040                     fi
14041                   else
14042                     if test -f "$dir/lib$name.$libext"; then
14043                       found_dir="$dir"
14044                       found_a="$dir/lib$name.$libext"
14045                       if test -f "$dir/lib$name.la"; then
14046                         found_la="$dir/lib$name.la"
14047                       fi
14048                     fi
14049                   fi
14050                   ;;
14051               esac
14052               if test "X$found_dir" != "X"; then
14053                 break
14054               fi
14055             done
14056           fi
14057           if test "X$found_dir" != "X"; then
14058                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14059             if test "X$found_so" != "X"; then
14060                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14061                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14062               else
14063                                                                                 haveit=
14064                 for x in $ltrpathdirs; do
14065                   if test "X$x" = "X$found_dir"; then
14066                     haveit=yes
14067                     break
14068                   fi
14069                 done
14070                 if test -z "$haveit"; then
14071                   ltrpathdirs="$ltrpathdirs $found_dir"
14072                 fi
14073                                 if test "$hardcode_direct" = yes; then
14074                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14075                 else
14076                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14077                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14078                                                             haveit=
14079                     for x in $rpathdirs; do
14080                       if test "X$x" = "X$found_dir"; then
14081                         haveit=yes
14082                         break
14083                       fi
14084                     done
14085                     if test -z "$haveit"; then
14086                       rpathdirs="$rpathdirs $found_dir"
14087                     fi
14088                   else
14089                                                                                 haveit=
14090                     for x in $LDFLAGS $LIBINTL; do
14091
14092   acl_save_prefix="$prefix"
14093   prefix="$acl_final_prefix"
14094   acl_save_exec_prefix="$exec_prefix"
14095   exec_prefix="$acl_final_exec_prefix"
14096   eval x=\"$x\"
14097   exec_prefix="$acl_save_exec_prefix"
14098   prefix="$acl_save_prefix"
14099
14100                       if test "X$x" = "X-L$found_dir"; then
14101                         haveit=yes
14102                         break
14103                       fi
14104                     done
14105                     if test -z "$haveit"; then
14106                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14107                     fi
14108                     if test "$hardcode_minus_L" != no; then
14109                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14110                     else
14111                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14112                     fi
14113                   fi
14114                 fi
14115               fi
14116             else
14117               if test "X$found_a" != "X"; then
14118                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14119               else
14120                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14121               fi
14122             fi
14123                         additional_includedir=
14124             case "$found_dir" in
14125               */lib | */lib/)
14126                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14127                 additional_includedir="$basedir/include"
14128                 ;;
14129             esac
14130             if test "X$additional_includedir" != "X"; then
14131                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14132                 haveit=
14133                 if test "X$additional_includedir" = "X/usr/local/include"; then
14134                   if test -n "$GCC"; then
14135                     case $host_os in
14136                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14137                     esac
14138                   fi
14139                 fi
14140                 if test -z "$haveit"; then
14141                   for x in $CPPFLAGS $INCINTL; do
14142
14143   acl_save_prefix="$prefix"
14144   prefix="$acl_final_prefix"
14145   acl_save_exec_prefix="$exec_prefix"
14146   exec_prefix="$acl_final_exec_prefix"
14147   eval x=\"$x\"
14148   exec_prefix="$acl_save_exec_prefix"
14149   prefix="$acl_save_prefix"
14150
14151                     if test "X$x" = "X-I$additional_includedir"; then
14152                       haveit=yes
14153                       break
14154                     fi
14155                   done
14156                   if test -z "$haveit"; then
14157                     if test -d "$additional_includedir"; then
14158                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14159                     fi
14160                   fi
14161                 fi
14162               fi
14163             fi
14164                         if test -n "$found_la"; then
14165                                                         save_libdir="$libdir"
14166               case "$found_la" in
14167                 */* | *\\*) . "$found_la" ;;
14168                 *) . "./$found_la" ;;
14169               esac
14170               libdir="$save_libdir"
14171                             for dep in $dependency_libs; do
14172                 case "$dep" in
14173                   -L*)
14174                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14175                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14176                       haveit=
14177                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14178                         if test -n "$GCC"; then
14179                           case $host_os in
14180                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14181                           esac
14182                         fi
14183                       fi
14184                       if test -z "$haveit"; then
14185                         haveit=
14186                         for x in $LDFLAGS $LIBINTL; do
14187
14188   acl_save_prefix="$prefix"
14189   prefix="$acl_final_prefix"
14190   acl_save_exec_prefix="$exec_prefix"
14191   exec_prefix="$acl_final_exec_prefix"
14192   eval x=\"$x\"
14193   exec_prefix="$acl_save_exec_prefix"
14194   prefix="$acl_save_prefix"
14195
14196                           if test "X$x" = "X-L$additional_libdir"; then
14197                             haveit=yes
14198                             break
14199                           fi
14200                         done
14201                         if test -z "$haveit"; then
14202                           if test -d "$additional_libdir"; then
14203                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14204                           fi
14205                         fi
14206                         haveit=
14207                         for x in $LDFLAGS $LTLIBINTL; do
14208
14209   acl_save_prefix="$prefix"
14210   prefix="$acl_final_prefix"
14211   acl_save_exec_prefix="$exec_prefix"
14212   exec_prefix="$acl_final_exec_prefix"
14213   eval x=\"$x\"
14214   exec_prefix="$acl_save_exec_prefix"
14215   prefix="$acl_save_prefix"
14216
14217                           if test "X$x" = "X-L$additional_libdir"; then
14218                             haveit=yes
14219                             break
14220                           fi
14221                         done
14222                         if test -z "$haveit"; then
14223                           if test -d "$additional_libdir"; then
14224                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14225                           fi
14226                         fi
14227                       fi
14228                     fi
14229                     ;;
14230                   -R*)
14231                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14232                     if test "$enable_rpath" != no; then
14233                                                                   haveit=
14234                       for x in $rpathdirs; do
14235                         if test "X$x" = "X$dir"; then
14236                           haveit=yes
14237                           break
14238                         fi
14239                       done
14240                       if test -z "$haveit"; then
14241                         rpathdirs="$rpathdirs $dir"
14242                       fi
14243                                                                   haveit=
14244                       for x in $ltrpathdirs; do
14245                         if test "X$x" = "X$dir"; then
14246                           haveit=yes
14247                           break
14248                         fi
14249                       done
14250                       if test -z "$haveit"; then
14251                         ltrpathdirs="$ltrpathdirs $dir"
14252                       fi
14253                     fi
14254                     ;;
14255                   -l*)
14256                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14257                     ;;
14258                   *.la)
14259                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14260                     ;;
14261                   *)
14262                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14263                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14264                     ;;
14265                 esac
14266               done
14267             fi
14268           else
14269                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14270             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14271           fi
14272         fi
14273       fi
14274     done
14275   done
14276   if test "X$rpathdirs" != "X"; then
14277     if test -n "$hardcode_libdir_separator"; then
14278                         alldirs=
14279       for found_dir in $rpathdirs; do
14280         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14281       done
14282             acl_save_libdir="$libdir"
14283       libdir="$alldirs"
14284       eval flag=\"$hardcode_libdir_flag_spec\"
14285       libdir="$acl_save_libdir"
14286       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14287     else
14288             for found_dir in $rpathdirs; do
14289         acl_save_libdir="$libdir"
14290         libdir="$found_dir"
14291         eval flag=\"$hardcode_libdir_flag_spec\"
14292         libdir="$acl_save_libdir"
14293         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14294       done
14295     fi
14296   fi
14297   if test "X$ltrpathdirs" != "X"; then
14298             for found_dir in $ltrpathdirs; do
14299       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14300     done
14301   fi
14302
14303           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14304 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14305 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   gt_save_CPPFLAGS="$CPPFLAGS"
14309             CPPFLAGS="$CPPFLAGS $INCINTL"
14310             gt_save_LIBS="$LIBS"
14311             LIBS="$LIBS $LIBINTL"
14312                         cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 #include <libintl.h>
14319 extern int _nl_msg_cat_cntr;
14320 extern
14321 #ifdef __cplusplus
14322 "C"
14323 #endif
14324 const char *_nl_expand_alias (const char *);
14325 int
14326 main ()
14327 {
14328 bindtextdomain ("", "");
14329 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (ac_try="$ac_link"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_link") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349   { (case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_try") 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; } &&
14358          { ac_try='test -s conftest$ac_exeext'
14359   { (case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_try") 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   gt_cv_func_gnugettext1_libintl=yes
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373         gt_cv_func_gnugettext1_libintl=no
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext \
14377       conftest$ac_exeext conftest.$ac_ext
14378                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14379               LIBS="$LIBS $LIBICONV"
14380               cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386 #include <libintl.h>
14387 extern int _nl_msg_cat_cntr;
14388 extern
14389 #ifdef __cplusplus
14390 "C"
14391 #endif
14392 const char *_nl_expand_alias (const char *);
14393 int
14394 main ()
14395 {
14396 bindtextdomain ("", "");
14397 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14398   ;
14399   return 0;
14400 }
14401 _ACEOF
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (ac_try="$ac_link"
14404 case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_link") 2>conftest.er1
14410   ac_status=$?
14411   grep -v '^ *+' conftest.er1 >conftest.err
14412   rm -f conftest.er1
14413   cat conftest.err >&5
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } &&
14416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14417   { (case "(($ac_try" in
14418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419   *) ac_try_echo=$ac_try;;
14420 esac
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422   (eval "$ac_try") 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } &&
14426          { ac_try='test -s conftest$ac_exeext'
14427   { (case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_try") 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   LIBINTL="$LIBINTL $LIBICONV"
14437                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14438                 gt_cv_func_gnugettext1_libintl=yes
14439
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444
14445 fi
14446
14447 rm -f core conftest.err conftest.$ac_objext \
14448       conftest$ac_exeext conftest.$ac_ext
14449             fi
14450             CPPFLAGS="$gt_save_CPPFLAGS"
14451             LIBS="$gt_save_LIBS"
14452 fi
14453 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14454 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14455         fi
14456
14457                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14458            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14459                 && test "$PACKAGE" != gettext-runtime \
14460                 && test "$PACKAGE" != gettext-tools; }; then
14461           gt_use_preinstalled_gnugettext=yes
14462         else
14463                     LIBINTL=
14464           LTLIBINTL=
14465           INCINTL=
14466         fi
14467
14468
14469         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14470                               nls_cv_use_gnu_gettext=yes
14471         fi
14472       fi
14473
14474       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14475                 BUILD_INCLUDED_LIBINTL=yes
14476         USE_INCLUDED_LIBINTL=yes
14477         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14478         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14479         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14480       fi
14481
14482       CATOBJEXT=
14483       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14484          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14485                 CATOBJEXT=.gmo
14486       fi
14487
14488
14489     if test -n "$INTL_MACOSX_LIBS"; then
14490       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14491          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14492                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14493         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14494       fi
14495     fi
14496
14497     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14498        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14499
14500 cat >>confdefs.h <<\_ACEOF
14501 #define ENABLE_NLS 1
14502 _ACEOF
14503
14504     else
14505       USE_NLS=no
14506     fi
14507   fi
14508
14509   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14510 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14511   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14512 echo "${ECHO_T}$USE_NLS" >&6; }
14513   if test "$USE_NLS" = "yes"; then
14514     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14515 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14516     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14517       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14518         gt_source="external libintl"
14519       else
14520         gt_source="libc"
14521       fi
14522     else
14523       gt_source="included intl directory"
14524     fi
14525     { echo "$as_me:$LINENO: result: $gt_source" >&5
14526 echo "${ECHO_T}$gt_source" >&6; }
14527   fi
14528
14529   if test "$USE_NLS" = "yes"; then
14530
14531     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14532       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14533         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14534 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14535         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14536 echo "${ECHO_T}$LIBINTL" >&6; }
14537
14538   for element in $INCINTL; do
14539     haveit=
14540     for x in $CPPFLAGS; do
14541
14542   acl_save_prefix="$prefix"
14543   prefix="$acl_final_prefix"
14544   acl_save_exec_prefix="$exec_prefix"
14545   exec_prefix="$acl_final_exec_prefix"
14546   eval x=\"$x\"
14547   exec_prefix="$acl_save_exec_prefix"
14548   prefix="$acl_save_prefix"
14549
14550       if test "X$x" = "X$element"; then
14551         haveit=yes
14552         break
14553       fi
14554     done
14555     if test -z "$haveit"; then
14556       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14557     fi
14558   done
14559
14560       fi
14561
14562
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_GETTEXT 1
14565 _ACEOF
14566
14567
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE_DCGETTEXT 1
14570 _ACEOF
14571
14572     fi
14573
14574         POSUB=po
14575   fi
14576
14577
14578             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14579       BUILD_INCLUDED_LIBINTL=yes
14580     fi
14581
14582
14583
14584
14585
14586         nls_cv_header_intl=
14587     nls_cv_header_libgt=
14588
14589         DATADIRNAME=share
14590
14591
14592         INSTOBJEXT=.mo
14593
14594
14595         GENCAT=gencat
14596
14597
14598         INTLOBJS=
14599     if test "$USE_INCLUDED_LIBINTL" = yes; then
14600       INTLOBJS="\$(GETTOBJS)"
14601     fi
14602
14603
14604         INTL_LIBTOOL_SUFFIX_PREFIX=
14605
14606
14607
14608     INTLLIBS="$LIBINTL"
14609
14610
14611
14612
14613
14614
14615 fi
14616
14617
14618 support_mysql=no
14619 support_sqlite=no
14620 support_sqlite3=no
14621 support_postgresql=no
14622 support_smartalloc=yes
14623 support_readline=yes
14624 support_conio=yes
14625 support_gnome=no
14626 support_bat=no
14627 support_wx_console=no
14628 support_tls=no
14629 support_crypto=no
14630 gnome_version=
14631 wx_version=
14632 support_static_tools=no
14633 support_static_fd=no
14634 support_static_sd=no
14635 support_static_dir=no
14636 support_static_cons=no
14637 support_python=no
14638 build_client_only=no
14639 build_dird=yes
14640 build_stored=yes
14641 cats=
14642 db_type=Internal
14643 DB_TYPE=bdb
14644
14645
14646 # -------------------------------------------
14647 # gnome (default off)
14648 # -------------------------------------------
14649 # Check whether --enable-gnome was given.
14650 if test "${enable_gnome+set}" = set; then
14651   enableval=$enable_gnome; if test x$enableval = xyes; then
14652     support_gnome=yes
14653   fi
14654 fi
14655
14656
14657 GNOME_DIR=
14658 if test x$support_gnome = xyes; then
14659   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14660   pkg=$?
14661   if test $pkg = 0; then
14662      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14663      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14664      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14665      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14666
14667
14668
14669
14670      GNOME_DIR=src/gnome2-console
14671      gnome_version="Version 2.x"
14672   else
14673      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14674 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14675    { (exit 1); exit 1; }; }
14676   fi
14677 fi
14678
14679
14680 # -------------------------------------------
14681 # bat (default off)
14682 # -------------------------------------------
14683 # Check whether --enable-bat was given.
14684 if test "${enable_bat+set}" = set; then
14685   enableval=$enable_bat; if test x$enableval = xyes; then
14686
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_BAT 1
14689 _ACEOF
14690
14691     support_bat=yes
14692   fi
14693 fi
14694
14695
14696 BAT_DIR=
14697 if test x$support_bat = xyes; then
14698   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14699   pkg=$?
14700   if test $pkg = 0; then
14701      BAT_DIR=src/qt-console
14702   else
14703      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14704 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14705    { (exit 1); exit 1; }; }
14706   fi
14707 fi
14708
14709
14710
14711 # -------------------------------------------
14712 # bwx-console (default off)
14713 # -------------------------------------------
14714 # Check whether --enable-bwx-console was given.
14715 if test "${enable_bwx_console+set}" = set; then
14716   enableval=$enable_bwx_console; if test x$enableval = xyes; then
14717     support_wx_console=yes
14718   fi
14719 fi
14720
14721
14722 WX_DIR=
14723 if test x$support_wx_console = xyes; then
14724   abc=`$WXCONFIG $WXFLAGS --cppflags`
14725   pkg=$?
14726   if test $pkg = 0; then
14727      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14728      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14729      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14730
14731
14732
14733      WX_DIR=src/wx-console
14734   else
14735      echo " "
14736      echo "wx-config program not found. bwx-console disabled."
14737      echo " "
14738      support_wx_console=no
14739   fi
14740 fi
14741
14742
14743
14744 # -------------------------------------------
14745 # tray-monitor (default off)
14746 # -------------------------------------------
14747 # Check whether --enable-tray-monitor was given.
14748 if test "${enable_tray_monitor+set}" = set; then
14749   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14750     support_tray_monitor=yes
14751   fi
14752 fi
14753
14754
14755 TRAY_MONITOR_DIR=
14756 if test x$support_tray_monitor = xyes; then
14757   abc=`$PKGCONFIG --exists gtk+-2.0`
14758   pkg=$?
14759   if test $pkg = 0; then
14760      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14761      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14762
14763
14764      TRAY_MONITOR_DIR=src/tray-monitor
14765      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14766      pkg=$?
14767      if test $pkg = 0; then
14768      cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_GTK_2_4 1
14770 _ACEOF
14771
14772      fi
14773   fi
14774 fi
14775
14776
14777 # -------------------------------------------
14778 # smartalloc (default off)
14779 # -------------------------------------------
14780 # Check whether --enable-smartalloc was given.
14781 if test "${enable_smartalloc+set}" = set; then
14782   enableval=$enable_smartalloc; if test x$enableval = xno; then
14783     support_smartalloc=no
14784   fi
14785 fi
14786
14787
14788 if test x$support_smartalloc = xyes; then
14789    cat >>confdefs.h <<\_ACEOF
14790 #define SMARTALLOC 1
14791 _ACEOF
14792
14793 fi
14794
14795 # -------------------------------------------
14796 # static-tools (default off)
14797 # -------------------------------------------
14798 # Check whether --enable-static-tools was given.
14799 if test "${enable_static_tools+set}" = set; then
14800   enableval=$enable_static_tools; if test x$enableval = xyes; then
14801      support_static_tools=yes
14802    fi
14803 fi
14804
14805
14806 TTOOL_LDFLAGS=
14807 if test x$support_static_tools = xyes; then
14808    TTOOL_LDFLAGS="-static"
14809 fi
14810
14811
14812 # -------------------------------------------
14813 # static-fd    (default off)
14814 # -------------------------------------------
14815 # Check whether --enable-static-fd was given.
14816 if test "${enable_static_fd+set}" = set; then
14817   enableval=$enable_static_fd; if test x$enableval = xyes; then
14818      support_static_fd=yes
14819    fi
14820 fi
14821
14822
14823 STATIC_FD=
14824 if test x$support_static_fd = xyes; then
14825    STATIC_FD="static-bacula-fd"
14826 fi
14827
14828
14829 # -------------------------------------------
14830 # static-sd    (default off)
14831 # -------------------------------------------
14832 # Check whether --enable-static-sd was given.
14833 if test "${enable_static_sd+set}" = set; then
14834   enableval=$enable_static_sd; if test x$enableval = xyes; then
14835      support_static_sd=yes
14836    fi
14837 fi
14838
14839
14840 STATIC_SD=
14841 if test x$support_static_sd = xyes; then
14842    STATIC_SD="static-bacula-sd"
14843 fi
14844
14845
14846 # -------------------------------------------
14847 # static-dir   (default off)
14848 # -------------------------------------------
14849 # Check whether --enable-static-dir was given.
14850 if test "${enable_static_dir+set}" = set; then
14851   enableval=$enable_static_dir; if test x$enableval = xyes; then
14852      support_static_dir=yes
14853    fi
14854 fi
14855
14856
14857 STATIC_DIR=
14858 if test x$support_static_dir = xyes; then
14859    STATIC_DIR="static-bacula-dir"
14860 fi
14861
14862
14863 # -------------------------------------------
14864 # static-cons  (default off)
14865 # -------------------------------------------
14866 # Check whether --enable-static-cons was given.
14867 if test "${enable_static_cons+set}" = set; then
14868   enableval=$enable_static_cons; if test x$enableval = xyes; then
14869      support_static_cons=yes
14870    fi
14871 fi
14872
14873
14874 STATIC_CONS=
14875 STATIC_GNOME_CONS=
14876 STATIC_WX_CONS=
14877 if test x$support_static_cons = xyes; then
14878    STATIC_CONS="static-bconsole"
14879    STATIC_GNOME_CONS="static-bgnome-console"
14880    STATIC_WX_CONS="static-bwx-console"
14881 fi
14882
14883
14884
14885
14886 # -------------------------------------------
14887 # client_only  (default off)
14888 # -------------------------------------------
14889 # Check whether --enable-client-only was given.
14890 if test "${enable_client_only+set}" = set; then
14891   enableval=$enable_client_only; if test x$enableval = xyes; then
14892       build_client_only=yes
14893       db_type=None
14894       DB_TYPE=none
14895    fi
14896 fi
14897
14898 if test x$build_client_only = xno; then
14899    ALL_DIRS="subdirs"
14900 else
14901    ALL_DIRS=""
14902 fi
14903
14904
14905 # -------------------------------------------
14906 # director  (default on)
14907 # -------------------------------------------
14908 # Check whether --enable-build-dird was given.
14909 if test "${enable_build_dird+set}" = set; then
14910   enableval=$enable_build_dird; if test x$enableval = xno; then
14911       build_dird=no
14912    fi
14913 fi
14914
14915 if test x$build_dird = xyes; then
14916    DIRD_DIR="src/dird"
14917    DIR_TOOLS="DIRTOOLS"
14918 else
14919    DIRD_DIR=""
14920    DIR_TOOLS="NODIRTOOLS"
14921 fi
14922
14923
14924
14925 # -------------------------------------------
14926 # stored  (default on)
14927 # -------------------------------------------
14928 # Check whether --enable-build-stored was given.
14929 if test "${enable_build_stored+set}" = set; then
14930   enableval=$enable_build_stored; if test x$enableval = xno; then
14931       build_stored=no
14932    fi
14933 fi
14934
14935 if test x$build_stored = xyes; then
14936    STORED_DIR="src/stored"
14937 else
14938    STORED_DIR=""
14939 fi
14940
14941
14942 # ---------------------------------------------------
14943 # Check for conio (Bacula readline substitute)(
14944 # ---------------------------------------------------
14945 # this allows you to turn it completely off
14946 # Check whether --enable-conio was given.
14947 if test "${enable_conio+set}" = set; then
14948   enableval=$enable_conio; if test x$enableval = xno; then
14949      support_conio=no
14950   fi
14951
14952 fi
14953
14954
14955
14956 # ---------------------------------------------------
14957 # Check for IPv6 support
14958 # ---------------------------------------------------
14959 # this allows you to turn it completely off
14960 support_ipv6=yes
14961 # Check whether --enable-ipv6 was given.
14962 if test "${enable_ipv6+set}" = set; then
14963   enableval=$enable_ipv6; if test x$enableval = xno; then
14964      support_ipv6=no
14965   fi
14966
14967 fi
14968
14969
14970 if test x$support_ipv6 = xyes; then
14971     cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h.  */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h.  */
14977  #include <sys/types.h>
14978 #include <sys/socket.h>
14979 #include <netinet/in.h>
14980 int
14981 main ()
14982 {
14983 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14984   ;
14985   return 0;
14986 }
14987 _ACEOF
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (ac_try="$ac_link"
14990 case "(($ac_try" in
14991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992   *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995   (eval "$ac_link") 2>conftest.er1
14996   ac_status=$?
14997   grep -v '^ *+' conftest.er1 >conftest.err
14998   rm -f conftest.er1
14999   cat conftest.err >&5
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003   { (case "(($ac_try" in
15004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005   *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008   (eval "$ac_try") 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; } &&
15012          { ac_try='test -s conftest$ac_exeext'
15013   { (case "(($ac_try" in
15014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015   *) ac_try_echo=$ac_try;;
15016 esac
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018   (eval "$ac_try") 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   support_ipv6=yes
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027         support_ipv6=no
15028 fi
15029
15030 rm -f core conftest.err conftest.$ac_objext \
15031       conftest$ac_exeext conftest.$ac_ext
15032 fi
15033
15034 if test x$support_ipv6 = xyes; then
15035
15036 cat >>confdefs.h <<\_ACEOF
15037 #define HAVE_IPV6 1
15038 _ACEOF
15039
15040 fi
15041
15042
15043
15044 got_conio="no"
15045 if test x$support_conio = xyes; then
15046    if test "${ac_cv_header_termcap_h+set}" = set; then
15047   { echo "$as_me:$LINENO: checking for termcap.h" >&5
15048 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15049 if test "${ac_cv_header_termcap_h+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 fi
15052 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15053 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15054 else
15055   # Is the header compilable?
15056 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15057 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 $ac_includes_default
15065 #include <termcap.h>
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_compile") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
15078   cat conftest.err >&5
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } &&
15081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082   { (case "(($ac_try" in
15083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084   *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087   (eval "$ac_try") 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; } &&
15091          { ac_try='test -s conftest.$ac_objext'
15092   { (case "(($ac_try" in
15093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094   *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097   (eval "$ac_try") 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; }; then
15101   ac_header_compiler=yes
15102 else
15103   echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106         ac_header_compiler=no
15107 fi
15108
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15111 echo "${ECHO_T}$ac_header_compiler" >&6; }
15112
15113 # Is the header present?
15114 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15115 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122 #include <termcap.h>
15123 _ACEOF
15124 if { (ac_try="$ac_cpp conftest.$ac_ext"
15125 case "(($ac_try" in
15126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127   *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } >/dev/null; then
15137   if test -s conftest.err; then
15138     ac_cpp_err=$ac_c_preproc_warn_flag
15139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15140   else
15141     ac_cpp_err=
15142   fi
15143 else
15144   ac_cpp_err=yes
15145 fi
15146 if test -z "$ac_cpp_err"; then
15147   ac_header_preproc=yes
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152   ac_header_preproc=no
15153 fi
15154
15155 rm -f conftest.err conftest.$ac_ext
15156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15157 echo "${ECHO_T}$ac_header_preproc" >&6; }
15158
15159 # So?  What about this header?
15160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15161   yes:no: )
15162     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15163 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15164     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15165 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15166     ac_header_preproc=yes
15167     ;;
15168   no:yes:* )
15169     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15170 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15171     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15172 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15173     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15174 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15175     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15176 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15177     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15178 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15179     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15180 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15181
15182     ;;
15183 esac
15184 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15185 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15186 if test "${ac_cv_header_termcap_h+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   ac_cv_header_termcap_h=$ac_header_preproc
15190 fi
15191 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15192 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15193
15194 fi
15195 if test $ac_cv_header_termcap_h = yes; then
15196    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15197 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15198 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   ac_check_lib_save_LIBS=$LIBS
15202 LIBS="-ltermcap  $LIBS"
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209
15210 /* Override any GCC internal prototype to avoid an error.
15211    Use char because int might match the return type of a GCC
15212    builtin and then its argument prototype would still apply.  */
15213 #ifdef __cplusplus
15214 extern "C"
15215 #endif
15216 char tgetent ();
15217 int
15218 main ()
15219 {
15220 return tgetent ();
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (ac_try="$ac_link"
15227 case "(($ac_try" in
15228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229   *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232   (eval "$ac_link") 2>conftest.er1
15233   ac_status=$?
15234   grep -v '^ *+' conftest.er1 >conftest.err
15235   rm -f conftest.er1
15236   cat conftest.err >&5
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240   { (case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245   (eval "$ac_try") 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; } &&
15249          { ac_try='test -s conftest$ac_exeext'
15250   { (case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_try") 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_cv_lib_termcap_tgetent=yes
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264         ac_cv_lib_termcap_tgetent=no
15265 fi
15266
15267 rm -f core conftest.err conftest.$ac_objext \
15268       conftest$ac_exeext conftest.$ac_ext
15269 LIBS=$ac_check_lib_save_LIBS
15270 fi
15271 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15272 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15273 if test $ac_cv_lib_termcap_tgetent = yes; then
15274    CONS_LIBS="-ltermcap"
15275          CONS_OBJ="conio.o"
15276          CONS_SRC="conio.c"
15277          got_conio="yes"
15278          support_readline=no
15279
15280 cat >>confdefs.h <<\_ACEOF
15281 #define HAVE_CONIO 1
15282 _ACEOF
15283
15284
15285 else
15286    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15287 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15288 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   ac_check_lib_save_LIBS=$LIBS
15292 LIBS="-lncurses  $LIBS"
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299
15300 /* Override any GCC internal prototype to avoid an error.
15301    Use char because int might match the return type of a GCC
15302    builtin and then its argument prototype would still apply.  */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 char tgetent ();
15307 int
15308 main ()
15309 {
15310 return tgetent ();
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_try") 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   ac_cv_lib_ncurses_tgetent=yes
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354         ac_cv_lib_ncurses_tgetent=no
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext \
15358       conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15360 fi
15361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15362 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15363 if test $ac_cv_lib_ncurses_tgetent = yes; then
15364    CONS_LIBS="-lncurses"
15365            CONS_OBJ="conio.o"
15366            CONS_SRC="conio.c"
15367            got_conio="yes"
15368            support_readline=no
15369
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_CONIO 1
15372 _ACEOF
15373
15374
15375 fi
15376
15377
15378 fi
15379
15380
15381 else
15382
15383
15384 for ac_header in curses.h
15385 do
15386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 fi
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394                { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 else
15397   # Is the header compilable?
15398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 $ac_includes_default
15407 #include <$ac_header>
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_compile") 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424   { (case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429   (eval "$ac_try") 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_try") 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   ac_header_compiler=yes
15444 else
15445   echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448         ac_header_compiler=no
15449 fi
15450
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6; }
15454
15455 # Is the header present?
15456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h.  */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h.  */
15464 #include <$ac_header>
15465 _ACEOF
15466 if { (ac_try="$ac_cpp conftest.$ac_ext"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } >/dev/null; then
15479   if test -s conftest.err; then
15480     ac_cpp_err=$ac_c_preproc_warn_flag
15481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15482   else
15483     ac_cpp_err=
15484   fi
15485 else
15486   ac_cpp_err=yes
15487 fi
15488 if test -z "$ac_cpp_err"; then
15489   ac_header_preproc=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494   ac_header_preproc=no
15495 fi
15496
15497 rm -f conftest.err conftest.$ac_ext
15498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499 echo "${ECHO_T}$ac_header_preproc" >&6; }
15500
15501 # So?  What about this header?
15502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503   yes:no: )
15504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15508     ac_header_preproc=yes
15509     ;;
15510   no:yes:* )
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15523
15524     ;;
15525 esac
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   eval "$as_ac_Header=\$ac_header_preproc"
15532 fi
15533 ac_res=`eval echo '${'$as_ac_Header'}'`
15534                { echo "$as_me:$LINENO: result: $ac_res" >&5
15535 echo "${ECHO_T}$ac_res" >&6; }
15536
15537 fi
15538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15539   cat >>confdefs.h <<_ACEOF
15540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15541 _ACEOF
15542
15543 fi
15544
15545 done
15546
15547          { echo "$as_me:$LINENO: checking for term.h" >&5
15548 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15549 if test "${ac_cv_header_term_h+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h.  */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h.  */
15558 #if HAVE_CURSES_H
15559 #include <curses.h>
15560 #endif
15561
15562
15563 #include <term.h>
15564 _ACEOF
15565 rm -f conftest.$ac_objext
15566 if { (ac_try="$ac_compile"
15567 case "(($ac_try" in
15568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569   *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572   (eval "$ac_compile") 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } &&
15579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; } &&
15589          { ac_try='test -s conftest.$ac_objext'
15590   { (case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_try") 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599   ac_cv_header_term_h=yes
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604         ac_cv_header_term_h=no
15605 fi
15606
15607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 fi
15609 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15610 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15611 if test $ac_cv_header_term_h = yes; then
15612    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15613 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15614 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617   ac_check_lib_save_LIBS=$LIBS
15618 LIBS="-lcurses  $LIBS"
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625
15626 /* Override any GCC internal prototype to avoid an error.
15627    Use char because int might match the return type of a GCC
15628    builtin and then its argument prototype would still apply.  */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 char tgetent ();
15633 int
15634 main ()
15635 {
15636 return tgetent ();
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_link") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656   { (case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_try") 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest$ac_exeext'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_cv_lib_curses_tgetent=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680         ac_cv_lib_curses_tgetent=no
15681 fi
15682
15683 rm -f core conftest.err conftest.$ac_objext \
15684       conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_check_lib_save_LIBS
15686 fi
15687 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15688 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15689 if test $ac_cv_lib_curses_tgetent = yes; then
15690    CONS_LIBS="-lcurses"
15691                    CONS_OBJ="conio.o"
15692                    CONS_SRC="conio.c"
15693                    got_conio="yes"
15694                    support_readline=no
15695
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_CONIO 1
15698 _ACEOF
15699
15700
15701 fi
15702
15703
15704 else
15705    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15706 fi
15707
15708
15709
15710 fi
15711
15712
15713 fi
15714
15715
15716 # ---------------------------------------------------
15717 # Check for readline support/directory (default off)
15718 # ---------------------------------------------------
15719 # this allows you to turn it completely off
15720 # Check whether --enable-readline was given.
15721 if test "${enable_readline+set}" = set; then
15722   enableval=$enable_readline; if test x$enableval = xno; then
15723     support_readline=no
15724   fi
15725 fi
15726
15727
15728 got_readline="no"
15729 READLINE_SRC=
15730 if test x$support_readline = xyes; then
15731
15732 # Check whether --with-readline was given.
15733 if test "${with_readline+set}" = set; then
15734   withval=$with_readline;
15735         case "$with_readline" in
15736         no) : ;;
15737         yes|*)
15738           if test -f ${with_readline}/readline.h; then
15739              CONS_INC="-I${with_readline}"
15740              CONS_LDFLAGS="-L$with_readline"
15741           elif test -f ${with_readline}/include/readline/readline.h; then
15742              CONS_INC="-I${with_readline}/include/readline"
15743              CONS_LDFLAGS="-L${with_readline}/lib"
15744              with_readline="${with_readline}/include/readline"
15745           else
15746              with_readline="/usr/include/readline"
15747           fi
15748           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15750   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15751 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 fi
15755 ac_res=`eval echo '${'$as_ac_Header'}'`
15756                { echo "$as_me:$LINENO: result: $ac_res" >&5
15757 echo "${ECHO_T}$ac_res" >&6; }
15758 else
15759   # Is the header compilable?
15760 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15761 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15762 cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 $ac_includes_default
15769 #include <${with_readline}/readline.h>
15770 _ACEOF
15771 rm -f conftest.$ac_objext
15772 if { (ac_try="$ac_compile"
15773 case "(($ac_try" in
15774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775   *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778   (eval "$ac_compile") 2>conftest.er1
15779   ac_status=$?
15780   grep -v '^ *+' conftest.er1 >conftest.err
15781   rm -f conftest.er1
15782   cat conftest.err >&5
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } &&
15785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15786   { (case "(($ac_try" in
15787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788   *) ac_try_echo=$ac_try;;
15789 esac
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791   (eval "$ac_try") 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; } &&
15795          { ac_try='test -s conftest.$ac_objext'
15796   { (case "(($ac_try" in
15797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798   *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801   (eval "$ac_try") 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805   ac_header_compiler=yes
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810         ac_header_compiler=no
15811 fi
15812
15813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15815 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816
15817 # Is the header present?
15818 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15819 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15820 cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h.  */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h.  */
15826 #include <${with_readline}/readline.h>
15827 _ACEOF
15828 if { (ac_try="$ac_cpp conftest.$ac_ext"
15829 case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15835   ac_status=$?
15836   grep -v '^ *+' conftest.er1 >conftest.err
15837   rm -f conftest.er1
15838   cat conftest.err >&5
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } >/dev/null; then
15841   if test -s conftest.err; then
15842     ac_cpp_err=$ac_c_preproc_warn_flag
15843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15844   else
15845     ac_cpp_err=
15846   fi
15847 else
15848   ac_cpp_err=yes
15849 fi
15850 if test -z "$ac_cpp_err"; then
15851   ac_header_preproc=yes
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856   ac_header_preproc=no
15857 fi
15858
15859 rm -f conftest.err conftest.$ac_ext
15860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15861 echo "${ECHO_T}$ac_header_preproc" >&6; }
15862
15863 # So?  What about this header?
15864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15865   yes:no: )
15866     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15867 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15868     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15869 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15870     ac_header_preproc=yes
15871     ;;
15872   no:yes:* )
15873     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15874 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15875     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15876 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15877     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15878 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15879     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15880 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15881     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15882 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15883     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15884 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15885
15886     ;;
15887 esac
15888 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15889 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891   echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893   eval "$as_ac_Header=\$ac_header_preproc"
15894 fi
15895 ac_res=`eval echo '${'$as_ac_Header'}'`
15896                { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15898
15899 fi
15900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15901    cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_READLINE 1
15903 _ACEOF
15904
15905                CONS_LIBS="-lreadline -lhistory -ltermcap"
15906                got_readline="yes"
15907
15908 else
15909    echo " "
15910                echo "readline.h not found. readline turned off ..."
15911                echo " "
15912
15913
15914 fi
15915
15916
15917           ;;
15918         esac
15919
15920 else
15921
15922        # check for standard readline library
15923        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15924   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15925 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15926 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 fi
15929 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15930 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15931 else
15932   # Is the header compilable?
15933 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15934 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 $ac_includes_default
15942 #include </usr/include/readline/readline.h>
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948   *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951   (eval "$ac_compile") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959   { (case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_try") 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; } &&
15968          { ac_try='test -s conftest.$ac_objext'
15969   { (case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_try") 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978   ac_header_compiler=yes
15979 else
15980   echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983         ac_header_compiler=no
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15988 echo "${ECHO_T}$ac_header_compiler" >&6; }
15989
15990 # Is the header present?
15991 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15992 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h.  */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h.  */
15999 #include </usr/include/readline/readline.h>
16000 _ACEOF
16001 if { (ac_try="$ac_cpp conftest.$ac_ext"
16002 case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16008   ac_status=$?
16009   grep -v '^ *+' conftest.er1 >conftest.err
16010   rm -f conftest.er1
16011   cat conftest.err >&5
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); } >/dev/null; then
16014   if test -s conftest.err; then
16015     ac_cpp_err=$ac_c_preproc_warn_flag
16016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16017   else
16018     ac_cpp_err=
16019   fi
16020 else
16021   ac_cpp_err=yes
16022 fi
16023 if test -z "$ac_cpp_err"; then
16024   ac_header_preproc=yes
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029   ac_header_preproc=no
16030 fi
16031
16032 rm -f conftest.err conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16034 echo "${ECHO_T}$ac_header_preproc" >&6; }
16035
16036 # So?  What about this header?
16037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16038   yes:no: )
16039     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16040 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16042 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16043     ac_header_preproc=yes
16044     ;;
16045   no:yes:* )
16046     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16047 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16048     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
16049 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16050     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16051 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16052     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16053 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16054     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16055 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16056     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16057 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16058
16059     ;;
16060 esac
16061 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16062 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16063 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16067 fi
16068 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16069 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16070
16071 fi
16072 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16073    cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_READLINE 1
16075 _ACEOF
16076
16077            got_readline="yes"
16078            CONS_INC="-I/usr/include/readline"
16079            CONS_LIBS="-lreadline -ltermcap"
16080
16081 else
16082
16083            # Did not find standard library, so try Bacula's default
16084             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16087 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 fi
16091 ac_res=`eval echo '${'$as_ac_Header'}'`
16092                { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 else
16095   # Is the header compilable?
16096 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16097 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 $ac_includes_default
16105 #include <${TOP_DIR}/depkgs/readline/readline.h>
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_compile") 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122   { (case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_try") 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest.$ac_objext'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; }; then
16141   ac_header_compiler=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146         ac_header_compiler=no
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16155 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #include <${TOP_DIR}/depkgs/readline/readline.h>
16163 _ACEOF
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } >/dev/null; then
16177   if test -s conftest.err; then
16178     ac_cpp_err=$ac_c_preproc_warn_flag
16179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180   else
16181     ac_cpp_err=
16182   fi
16183 else
16184   ac_cpp_err=yes
16185 fi
16186 if test -z "$ac_cpp_err"; then
16187   ac_header_preproc=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192   ac_header_preproc=no
16193 fi
16194
16195 rm -f conftest.err conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197 echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199 # So?  What about this header?
16200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201   yes:no: )
16202     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16203 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16205 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16206     ac_header_preproc=yes
16207     ;;
16208   no:yes:* )
16209     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16210 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16211     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16212 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16213     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16214 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16215     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16216 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16217     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16218 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16219     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16220 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16221
16222     ;;
16223 esac
16224 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16225 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229   eval "$as_ac_Header=\$ac_header_preproc"
16230 fi
16231 ac_res=`eval echo '${'$as_ac_Header'}'`
16232                { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234
16235 fi
16236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16237    cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_READLINE 1
16239 _ACEOF
16240
16241                  got_readline="yes"
16242                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16243                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16244                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16245                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16246
16247 else
16248    echo " "
16249                 echo "readline.h not found. readline turned off ..."
16250                 echo " "
16251
16252
16253 fi
16254
16255
16256
16257
16258 fi
16259
16260
16261
16262
16263 fi
16264
16265 fi
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276 # Minimal stuff for readline Makefile configuration
16277 MAKE_SHELL=/bin/sh
16278
16279 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16280 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16281 if test "${ac_cv_header_stat_broken+set}" = set; then
16282   echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16284   cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h.  */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h.  */
16290 #include <sys/types.h>
16291 #include <sys/stat.h>
16292
16293 #if defined S_ISBLK && defined S_IFDIR
16294 # if S_ISBLK (S_IFDIR)
16295 You lose.
16296 # endif
16297 #endif
16298
16299 #if defined S_ISBLK && defined S_IFCHR
16300 # if S_ISBLK (S_IFCHR)
16301 You lose.
16302 # endif
16303 #endif
16304
16305 #if defined S_ISLNK && defined S_IFREG
16306 # if S_ISLNK (S_IFREG)
16307 You lose.
16308 # endif
16309 #endif
16310
16311 #if defined S_ISSOCK && defined S_IFREG
16312 # if S_ISSOCK (S_IFREG)
16313 You lose.
16314 # endif
16315 #endif
16316
16317 _ACEOF
16318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16319   $EGREP "You lose" >/dev/null 2>&1; then
16320   ac_cv_header_stat_broken=yes
16321 else
16322   ac_cv_header_stat_broken=no
16323 fi
16324 rm -f conftest*
16325
16326 fi
16327 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16328 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16329 if test $ac_cv_header_stat_broken = yes; then
16330
16331 cat >>confdefs.h <<\_ACEOF
16332 #define STAT_MACROS_BROKEN 1
16333 _ACEOF
16334
16335 fi
16336
16337
16338
16339
16340
16341
16342 ac_header_dirent=no
16343 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16344   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16345 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16346 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348   echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350   cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 #include <sys/types.h>
16357 #include <$ac_hdr>
16358
16359 int
16360 main ()
16361 {
16362 if ((DIR *) 0)
16363 return 0;
16364   ;
16365   return 0;
16366 }
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_compile") 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383   { (case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_try") 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   eval "$as_ac_Header=yes"
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407         eval "$as_ac_Header=no"
16408 fi
16409
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 ac_res=`eval echo '${'$as_ac_Header'}'`
16413                { echo "$as_me:$LINENO: result: $ac_res" >&5
16414 echo "${ECHO_T}$ac_res" >&6; }
16415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16416   cat >>confdefs.h <<_ACEOF
16417 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16418 _ACEOF
16419
16420 ac_header_dirent=$ac_hdr; break
16421 fi
16422
16423 done
16424 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16425 if test $ac_header_dirent = dirent.h; then
16426   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16427 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16428 if test "${ac_cv_search_opendir+set}" = set; then
16429   echo $ECHO_N "(cached) $ECHO_C" >&6
16430 else
16431   ac_func_search_save_LIBS=$LIBS
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438
16439 /* Override any GCC internal prototype to avoid an error.
16440    Use char because int might match the return type of a GCC
16441    builtin and then its argument prototype would still apply.  */
16442 #ifdef __cplusplus
16443 extern "C"
16444 #endif
16445 char opendir ();
16446 int
16447 main ()
16448 {
16449 return opendir ();
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 for ac_lib in '' dir; do
16455   if test -z "$ac_lib"; then
16456     ac_res="none required"
16457   else
16458     ac_res=-l$ac_lib
16459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16460   fi
16461   rm -f conftest.$ac_objext conftest$ac_exeext
16462 if { (ac_try="$ac_link"
16463 case "(($ac_try" in
16464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465   *) ac_try_echo=$ac_try;;
16466 esac
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468   (eval "$ac_link") 2>conftest.er1
16469   ac_status=$?
16470   grep -v '^ *+' conftest.er1 >conftest.err
16471   rm -f conftest.er1
16472   cat conftest.err >&5
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } &&
16475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476   { (case "(($ac_try" in
16477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478   *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481   (eval "$ac_try") 2>&5
16482   ac_status=$?
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); }; } &&
16485          { ac_try='test -s conftest$ac_exeext'
16486   { (case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_try") 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }; then
16495   ac_cv_search_opendir=$ac_res
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500
16501 fi
16502
16503 rm -f core conftest.err conftest.$ac_objext \
16504       conftest$ac_exeext
16505   if test "${ac_cv_search_opendir+set}" = set; then
16506   break
16507 fi
16508 done
16509 if test "${ac_cv_search_opendir+set}" = set; then
16510   :
16511 else
16512   ac_cv_search_opendir=no
16513 fi
16514 rm conftest.$ac_ext
16515 LIBS=$ac_func_search_save_LIBS
16516 fi
16517 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16518 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16519 ac_res=$ac_cv_search_opendir
16520 if test "$ac_res" != no; then
16521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16522
16523 fi
16524
16525 else
16526   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16528 if test "${ac_cv_search_opendir+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   ac_func_search_save_LIBS=$LIBS
16532 cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538
16539 /* Override any GCC internal prototype to avoid an error.
16540    Use char because int might match the return type of a GCC
16541    builtin and then its argument prototype would still apply.  */
16542 #ifdef __cplusplus
16543 extern "C"
16544 #endif
16545 char opendir ();
16546 int
16547 main ()
16548 {
16549 return opendir ();
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 for ac_lib in '' x; do
16555   if test -z "$ac_lib"; then
16556     ac_res="none required"
16557   else
16558     ac_res=-l$ac_lib
16559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16560   fi
16561   rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568   (eval "$ac_link") 2>conftest.er1
16569   ac_status=$?
16570   grep -v '^ *+' conftest.er1 >conftest.err
16571   rm -f conftest.er1
16572   cat conftest.err >&5
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); } &&
16575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576   { (case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_try") 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; } &&
16585          { ac_try='test -s conftest$ac_exeext'
16586   { (case "(($ac_try" in
16587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588   *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591   (eval "$ac_try") 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; }; then
16595   ac_cv_search_opendir=$ac_res
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600
16601 fi
16602
16603 rm -f core conftest.err conftest.$ac_objext \
16604       conftest$ac_exeext
16605   if test "${ac_cv_search_opendir+set}" = set; then
16606   break
16607 fi
16608 done
16609 if test "${ac_cv_search_opendir+set}" = set; then
16610   :
16611 else
16612   ac_cv_search_opendir=no
16613 fi
16614 rm conftest.$ac_ext
16615 LIBS=$ac_func_search_save_LIBS
16616 fi
16617 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16618 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16619 ac_res=$ac_cv_search_opendir
16620 if test "$ac_res" != no; then
16621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16622
16623 fi
16624
16625 fi
16626
16627
16628
16629
16630
16631
16632
16633
16634 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16635 do
16636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16650 #define $ac_func innocuous_$ac_func
16651
16652 /* System header to define __stub macros and hopefully few prototypes,
16653     which can conflict with char $ac_func (); below.
16654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655     <limits.h> exists even on freestanding compilers.  */
16656
16657 #ifdef __STDC__
16658 # include <limits.h>
16659 #else
16660 # include <assert.h>
16661 #endif
16662
16663 #undef $ac_func
16664
16665 /* Override any GCC internal prototype to avoid an error.
16666    Use char because int might match the return type of a GCC
16667    builtin and then its argument prototype would still apply.  */
16668 #ifdef __cplusplus
16669 extern "C"
16670 #endif
16671 char $ac_func ();
16672 /* The GNU C library defines this for functions which it implements
16673     to always fail with ENOSYS.  Some functions are actually named
16674     something starting with __ and the normal name is an alias.  */
16675 #if defined __stub_$ac_func || defined __stub___$ac_func
16676 choke me
16677 #endif
16678
16679 int
16680 main ()
16681 {
16682 return $ac_func ();
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (ac_try="$ac_link"
16689 case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_link") 2>conftest.er1
16695   ac_status=$?
16696   grep -v '^ *+' conftest.er1 >conftest.err
16697   rm -f conftest.er1
16698   cat conftest.err >&5
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); } &&
16701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16702   { (case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_try") 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; } &&
16711          { ac_try='test -s conftest$ac_exeext'
16712   { (case "(($ac_try" in
16713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714   *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717   (eval "$ac_try") 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721   eval "$as_ac_var=yes"
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726         eval "$as_ac_var=no"
16727 fi
16728
16729 rm -f core conftest.err conftest.$ac_objext \
16730       conftest$ac_exeext conftest.$ac_ext
16731 fi
16732 ac_res=`eval echo '${'$as_ac_var'}'`
16733                { echo "$as_me:$LINENO: result: $ac_res" >&5
16734 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736   cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 _ACEOF
16739
16740 fi
16741 done
16742
16743
16744
16745 for ac_func in nanosleep nl_langinfo
16746 do
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16761 #define $ac_func innocuous_$ac_func
16762
16763 /* System header to define __stub macros and hopefully few prototypes,
16764     which can conflict with char $ac_func (); below.
16765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766     <limits.h> exists even on freestanding compilers.  */
16767
16768 #ifdef __STDC__
16769 # include <limits.h>
16770 #else
16771 # include <assert.h>
16772 #endif
16773
16774 #undef $ac_func
16775
16776 /* Override any GCC internal prototype to avoid an error.
16777    Use char because int might match the return type of a GCC
16778    builtin and then its argument prototype would still apply.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 #endif
16782 char $ac_func ();
16783 /* The GNU C library defines this for functions which it implements
16784     to always fail with ENOSYS.  Some functions are actually named
16785     something starting with __ and the normal name is an alias.  */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16787 choke me
16788 #endif
16789
16790 int
16791 main ()
16792 {
16793 return $ac_func ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_link") 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } &&
16812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813   { (case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_try") 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; } &&
16822          { ac_try='test -s conftest$ac_exeext'
16823   { (case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_try") 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; }; then
16832   eval "$as_ac_var=yes"
16833 else
16834   echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837         eval "$as_ac_var=no"
16838 fi
16839
16840 rm -f core conftest.err conftest.$ac_objext \
16841       conftest$ac_exeext conftest.$ac_ext
16842 fi
16843 ac_res=`eval echo '${'$as_ac_var'}'`
16844                { echo "$as_me:$LINENO: result: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16846 if test `eval echo '${'$as_ac_var'}'` = yes; then
16847   cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16849 _ACEOF
16850
16851 fi
16852 done
16853
16854
16855 for ac_header in varargs.h
16856 do
16857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 fi
16864 ac_res=`eval echo '${'$as_ac_Header'}'`
16865                { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 else
16868   # Is the header compilable?
16869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h.  */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h.  */
16877 $ac_includes_default
16878 #include <$ac_header>
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887   (eval "$ac_compile") 2>conftest.er1
16888   ac_status=$?
16889   grep -v '^ *+' conftest.er1 >conftest.err
16890   rm -f conftest.er1
16891   cat conftest.err >&5
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); } &&
16894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895   { (case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_try") 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; } &&
16904          { ac_try='test -s conftest.$ac_objext'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; }; then
16914   ac_header_compiler=yes
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919         ac_header_compiler=no
16920 fi
16921
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16924 echo "${ECHO_T}$ac_header_compiler" >&6; }
16925
16926 # Is the header present?
16927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h.  */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h.  */
16935 #include <$ac_header>
16936 _ACEOF
16937 if { (ac_try="$ac_cpp conftest.$ac_ext"
16938 case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16944   ac_status=$?
16945   grep -v '^ *+' conftest.er1 >conftest.err
16946   rm -f conftest.er1
16947   cat conftest.err >&5
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); } >/dev/null; then
16950   if test -s conftest.err; then
16951     ac_cpp_err=$ac_c_preproc_warn_flag
16952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16953   else
16954     ac_cpp_err=
16955   fi
16956 else
16957   ac_cpp_err=yes
16958 fi
16959 if test -z "$ac_cpp_err"; then
16960   ac_header_preproc=yes
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965   ac_header_preproc=no
16966 fi
16967
16968 rm -f conftest.err conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16970 echo "${ECHO_T}$ac_header_preproc" >&6; }
16971
16972 # So?  What about this header?
16973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16974   yes:no: )
16975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16979     ac_header_preproc=yes
16980     ;;
16981   no:yes:* )
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16994
16995     ;;
16996 esac
16997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002   eval "$as_ac_Header=\$ac_header_preproc"
17003 fi
17004 ac_res=`eval echo '${'$as_ac_Header'}'`
17005                { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17007
17008 fi
17009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17010   cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17012 _ACEOF
17013
17014 fi
17015
17016 done
17017
17018
17019 # End of readline/conio stuff
17020 # -----------------------------------------------------------------------
17021
17022 # -----------------------------------------------------------------------
17023 #  Check for Python support
17024 #
17025 { echo "$as_me:$LINENO: checking for Python support" >&5
17026 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17027
17028 # Check whether --with-python was given.
17029 if test "${with_python+set}" = set; then
17030   withval=$with_python;
17031   PYTHON_INCDIR=
17032   PYTHON_LIBS=
17033   if test "$withval" != "no"; then
17034      if test "$withval" = "yes"; then
17035         for python_root in /usr /usr/local /usr/sfw; do
17036           for ver in python2.2 python2.3 python2.4 python2.5; do
17037              if test -f $python_root/include/${ver}/Python.h; then
17038                 PYTHON_INCDIR=-I$python_root/include/${ver}
17039                 if test -d $python_root/lib64/${ver}/config; then
17040                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17041                 else
17042                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17043                 fi
17044                 break
17045              fi
17046           done
17047         done
17048         if test x$PYTHON_INCDIR = x; then
17049           if test -f $prefix/include/Python.h; then
17050              PYTHON_INCDIR=-I$prefix/include
17051              if test -d $prefix/lib64/config; then
17052                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17053              else
17054                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17055              fi
17056           else
17057            { echo "$as_me:$LINENO: result: no" >&5
17058 echo "${ECHO_T}no" >&6; }
17059            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17060 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17061    { (exit 1); exit 1; }; }
17062           fi
17063         fi
17064      else
17065         if test -f $withval/Python.h; then
17066            PYTHON_INCDIR=-I$withval
17067            PYTHON_LIBS="-L$withval/config -lpython"
17068         elif test -f $withval/include/Python.h; then
17069            PYTHON_INCDIR=-I$withval/include
17070            if test -d $withval/lib64/config; then
17071               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17072            else
17073               PYTHON_LIBS="-L$withval/lib/config -lpython"
17074            fi
17075         elif test -f $withval/include/python/Python.h; then
17076            PYTHON_INCDIR=-I$withval/include/python
17077            if test -d $withval/lib64/python/config; then
17078               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17079            else
17080               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17081            fi
17082         else
17083            { echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6; }
17085            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17086 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17087    { (exit 1); exit 1; }; }
17088         fi
17089      fi
17090      cat >>confdefs.h <<\_ACEOF
17091 #define HAVE_PYTHON 1
17092 _ACEOF
17093
17094      { echo "$as_me:$LINENO: result: yes" >&5
17095 echo "${ECHO_T}yes" >&6; }
17096      support_python=yes
17097      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17098 echo "$as_me: checking for more Python libs" >&6;}
17099      saved_LIBS="$LIBS"; LIBS=
17100      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17101 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17102 if test "${ac_cv_search_shm_open+set}" = set; then
17103   echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105   ac_func_search_save_LIBS=$LIBS
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h.  */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h.  */
17112
17113 /* Override any GCC internal prototype to avoid an error.
17114    Use char because int might match the return type of a GCC
17115    builtin and then its argument prototype would still apply.  */
17116 #ifdef __cplusplus
17117 extern "C"
17118 #endif
17119 char shm_open ();
17120 int
17121 main ()
17122 {
17123 return shm_open ();
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 for ac_lib in '' rt; do
17129   if test -z "$ac_lib"; then
17130     ac_res="none required"
17131   else
17132     ac_res=-l$ac_lib
17133     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17134   fi
17135   rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_link") 2>conftest.er1
17143   ac_status=$?
17144   grep -v '^ *+' conftest.er1 >conftest.err
17145   rm -f conftest.er1
17146   cat conftest.err >&5
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); } &&
17149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150   { (case "(($ac_try" in
17151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152   *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155   (eval "$ac_try") 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; } &&
17159          { ac_try='test -s conftest$ac_exeext'
17160   { (case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_try") 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   ac_cv_search_shm_open=$ac_res
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174
17175 fi
17176
17177 rm -f core conftest.err conftest.$ac_objext \
17178       conftest$ac_exeext
17179   if test "${ac_cv_search_shm_open+set}" = set; then
17180   break
17181 fi
17182 done
17183 if test "${ac_cv_search_shm_open+set}" = set; then
17184   :
17185 else
17186   ac_cv_search_shm_open=no
17187 fi
17188 rm conftest.$ac_ext
17189 LIBS=$ac_func_search_save_LIBS
17190 fi
17191 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17192 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17193 ac_res=$ac_cv_search_shm_open
17194 if test "$ac_res" != no; then
17195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17196
17197 fi
17198
17199
17200 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17201 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17202 if test "${ac_cv_lib_util_openpty+set}" = set; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   ac_check_lib_save_LIBS=$LIBS
17206 LIBS="-lutil  $LIBS"
17207 cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213
17214 /* Override any GCC internal prototype to avoid an error.
17215    Use char because int might match the return type of a GCC
17216    builtin and then its argument prototype would still apply.  */
17217 #ifdef __cplusplus
17218 extern "C"
17219 #endif
17220 char openpty ();
17221 int
17222 main ()
17223 {
17224 return openpty ();
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_link") 2>conftest.er1
17237   ac_status=$?
17238   grep -v '^ *+' conftest.er1 >conftest.err
17239   rm -f conftest.er1
17240   cat conftest.err >&5
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); } &&
17243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244   { (case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_try") 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); }; } &&
17253          { ac_try='test -s conftest$ac_exeext'
17254   { (case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_try") 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; }; then
17263   ac_cv_lib_util_openpty=yes
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268         ac_cv_lib_util_openpty=no
17269 fi
17270
17271 rm -f core conftest.err conftest.$ac_objext \
17272       conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17274 fi
17275 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17276 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17277 if test $ac_cv_lib_util_openpty = yes; then
17278   cat >>confdefs.h <<_ACEOF
17279 #define HAVE_LIBUTIL 1
17280 _ACEOF
17281
17282   LIBS="-lutil $LIBS"
17283
17284 fi
17285
17286      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17287      LIBS="$saved_LIBS"
17288   else
17289      { echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6; }
17291   fi
17292
17293 else
17294
17295   { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17297
17298 fi
17299
17300
17301
17302
17303 #
17304 # Find where sockets are (especially for Solaris)
17305 # Do this before the TCP Wrappers test since tcp wrappers
17306 # uses the socket library and some linkers are stupid.
17307 #
17308 { echo "$as_me:$LINENO: checking for socket" >&5
17309 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17310 if test "${ac_cv_func_socket+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313   cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17321 #define socket innocuous_socket
17322
17323 /* System header to define __stub macros and hopefully few prototypes,
17324     which can conflict with char socket (); below.
17325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17326     <limits.h> exists even on freestanding compilers.  */
17327
17328 #ifdef __STDC__
17329 # include <limits.h>
17330 #else
17331 # include <assert.h>
17332 #endif
17333
17334 #undef socket
17335
17336 /* Override any GCC internal prototype to avoid an error.
17337    Use char because int might match the return type of a GCC
17338    builtin and then its argument prototype would still apply.  */
17339 #ifdef __cplusplus
17340 extern "C"
17341 #endif
17342 char socket ();
17343 /* The GNU C library defines this for functions which it implements
17344     to always fail with ENOSYS.  Some functions are actually named
17345     something starting with __ and the normal name is an alias.  */
17346 #if defined __stub_socket || defined __stub___socket
17347 choke me
17348 #endif
17349
17350 int
17351 main ()
17352 {
17353 return socket ();
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362   *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365   (eval "$ac_link") 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } &&
17372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17373   { (case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_try") 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); }; } &&
17382          { ac_try='test -s conftest$ac_exeext'
17383   { (case "(($ac_try" in
17384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385   *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388   (eval "$ac_try") 2>&5
17389   ac_status=$?
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); }; }; then
17392   ac_cv_func_socket=yes
17393 else
17394   echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397         ac_cv_func_socket=no
17398 fi
17399
17400 rm -f core conftest.err conftest.$ac_objext \
17401       conftest$ac_exeext conftest.$ac_ext
17402 fi
17403 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17404 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17405 if test $ac_cv_func_socket = yes; then
17406   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17407 echo "${ECHO_T}using libc's socket" >&6; }
17408 else
17409
17410 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17411 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17412 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   ac_check_lib_save_LIBS=$LIBS
17416 LIBS="-lxnet  $LIBS"
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h.  */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h.  */
17423
17424 /* Override any GCC internal prototype to avoid an error.
17425    Use char because int might match the return type of a GCC
17426    builtin and then its argument prototype would still apply.  */
17427 #ifdef __cplusplus
17428 extern "C"
17429 #endif
17430 char socket ();
17431 int
17432 main ()
17433 {
17434 return socket ();
17435   ;
17436   return 0;
17437 }
17438 _ACEOF
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (ac_try="$ac_link"
17441 case "(($ac_try" in
17442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443   *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446   (eval "$ac_link") 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17454   { (case "(($ac_try" in
17455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456   *) ac_try_echo=$ac_try;;
17457 esac
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459   (eval "$ac_try") 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; } &&
17463          { ac_try='test -s conftest$ac_exeext'
17464   { (case "(($ac_try" in
17465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466   *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469   (eval "$ac_try") 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; }; then
17473   ac_cv_lib_xnet_socket=yes
17474 else
17475   echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478         ac_cv_lib_xnet_socket=no
17479 fi
17480
17481 rm -f core conftest.err conftest.$ac_objext \
17482       conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17484 fi
17485 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17486 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17487 if test $ac_cv_lib_xnet_socket = yes; then
17488   cat >>confdefs.h <<_ACEOF
17489 #define HAVE_LIBXNET 1
17490 _ACEOF
17491
17492   LIBS="-lxnet $LIBS"
17493
17494 fi
17495
17496
17497 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17498 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17499 if test "${ac_cv_lib_socket_socket+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   ac_check_lib_save_LIBS=$LIBS
17503 LIBS="-lsocket  $LIBS"
17504 cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510
17511 /* Override any GCC internal prototype to avoid an error.
17512    Use char because int might match the return type of a GCC
17513    builtin and then its argument prototype would still apply.  */
17514 #ifdef __cplusplus
17515 extern "C"
17516 #endif
17517 char socket ();
17518 int
17519 main ()
17520 {
17521 return socket ();
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533   (eval "$ac_link") 2>conftest.er1
17534   ac_status=$?
17535   grep -v '^ *+' conftest.er1 >conftest.err
17536   rm -f conftest.er1
17537   cat conftest.err >&5
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } &&
17540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17541   { (case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_try") 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; } &&
17550          { ac_try='test -s conftest$ac_exeext'
17551   { (case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_try") 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); }; }; then
17560   ac_cv_lib_socket_socket=yes
17561 else
17562   echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565         ac_cv_lib_socket_socket=no
17566 fi
17567
17568 rm -f core conftest.err conftest.$ac_objext \
17569       conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17571 fi
17572 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17573 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17574 if test $ac_cv_lib_socket_socket = yes; then
17575   cat >>confdefs.h <<_ACEOF
17576 #define HAVE_LIBSOCKET 1
17577 _ACEOF
17578
17579   LIBS="-lsocket $LIBS"
17580
17581 fi
17582
17583
17584 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17585 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17586 if test "${ac_cv_lib_inet_socket+set}" = set; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589   ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-linet  $LIBS"
17591 cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598 /* Override any GCC internal prototype to avoid an error.
17599    Use char because int might match the return type of a GCC
17600    builtin and then its argument prototype would still apply.  */
17601 #ifdef __cplusplus
17602 extern "C"
17603 #endif
17604 char socket ();
17605 int
17606 main ()
17607 {
17608 return socket ();
17609   ;
17610   return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617   *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620   (eval "$ac_link") 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628   { (case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_try") 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); }; } &&
17637          { ac_try='test -s conftest$ac_exeext'
17638   { (case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_try") 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; }; then
17647   ac_cv_lib_inet_socket=yes
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         ac_cv_lib_inet_socket=no
17653 fi
17654
17655 rm -f core conftest.err conftest.$ac_objext \
17656       conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17658 fi
17659 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17660 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17661 if test $ac_cv_lib_inet_socket = yes; then
17662   cat >>confdefs.h <<_ACEOF
17663 #define HAVE_LIBINET 1
17664 _ACEOF
17665
17666   LIBS="-linet $LIBS"
17667
17668 fi
17669
17670 fi
17671
17672
17673
17674 # -----------------------------------------------------------
17675 # Check whether user wants TCP wrappers support (default off)
17676 # -----------------------------------------------------------
17677 TCPW_MSG="no"
17678 WRAPLIBS=""
17679
17680 # Check whether --with-tcp-wrappers was given.
17681 if test "${with_tcp_wrappers+set}" = set; then
17682   withval=$with_tcp_wrappers;
17683     if test "x$withval" != "xno" ; then
17684        saved_LIBS="$LIBS"
17685        LIBS="$saved_LIBS -lwrap"
17686        { echo "$as_me:$LINENO: checking for libwrap" >&5
17687 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17688        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17689 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17690 if test "${ac_cv_search_nanosleep+set}" = set; then
17691   echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693   ac_func_search_save_LIBS=$LIBS
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17700
17701 /* Override any GCC internal prototype to avoid an error.
17702    Use char because int might match the return type of a GCC
17703    builtin and then its argument prototype would still apply.  */
17704 #ifdef __cplusplus
17705 extern "C"
17706 #endif
17707 char nanosleep ();
17708 int
17709 main ()
17710 {
17711 return nanosleep ();
17712   ;
17713   return 0;
17714 }
17715 _ACEOF
17716 for ac_lib in '' rt; do
17717   if test -z "$ac_lib"; then
17718     ac_res="none required"
17719   else
17720     ac_res=-l$ac_lib
17721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17722   fi
17723   rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (ac_try="$ac_link"
17725 case "(($ac_try" in
17726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727   *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730   (eval "$ac_link") 2>conftest.er1
17731   ac_status=$?
17732   grep -v '^ *+' conftest.er1 >conftest.err
17733   rm -f conftest.er1
17734   cat conftest.err >&5
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738   { (case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_try") 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; } &&
17747          { ac_try='test -s conftest$ac_exeext'
17748   { (case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_try") 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; }; then
17757   ac_cv_search_nanosleep=$ac_res
17758 else
17759   echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762
17763 fi
17764
17765 rm -f core conftest.err conftest.$ac_objext \
17766       conftest$ac_exeext
17767   if test "${ac_cv_search_nanosleep+set}" = set; then
17768   break
17769 fi
17770 done
17771 if test "${ac_cv_search_nanosleep+set}" = set; then
17772   :
17773 else
17774   ac_cv_search_nanosleep=no
17775 fi
17776 rm conftest.$ac_ext
17777 LIBS=$ac_func_search_save_LIBS
17778 fi
17779 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17780 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17781 ac_res=$ac_cv_search_nanosleep
17782 if test "$ac_res" != no; then
17783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17784
17785 fi
17786
17787        cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h.  */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h.  */
17793  #include <sys/types.h>
17794             #include <tcpd.h>
17795              int deny_severity = 0;
17796              int allow_severity = 0;
17797              struct request_info *req;
17798 int
17799 main ()
17800 {
17801  hosts_access(req);
17802   ;
17803   return 0;
17804 }
17805 _ACEOF
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_link") 2>conftest.er1
17814   ac_status=$?
17815   grep -v '^ *+' conftest.er1 >conftest.err
17816   rm -f conftest.er1
17817   cat conftest.err >&5
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); } &&
17820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821   { (case "(($ac_try" in
17822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823   *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826   (eval "$ac_try") 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest$ac_exeext'
17831   { (case "(($ac_try" in
17832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833   *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836   (eval "$ac_try") 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); }; }; then
17840
17841             { echo "$as_me:$LINENO: result: yes" >&5
17842 echo "${ECHO_T}yes" >&6; }
17843             cat >>confdefs.h <<\_ACEOF
17844 #define HAVE_LIBWRAP 1
17845 _ACEOF
17846
17847             TCPW_MSG="yes"
17848             LIBS="$saved_LIBS"
17849             WRAPLIBS="-lwrap"
17850
17851 else
17852   echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855
17856             LIBS="$saved_LIBS -lwrap -lnsl"
17857             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17858             cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h.  */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h.  */
17864  #include <sys/types.h>
17865                  #include <tcpd.h>
17866                  int deny_severity = 0;
17867                  int allow_severity = 0;
17868                  struct request_info *req;
17869 int
17870 main ()
17871 {
17872  hosts_access(req);
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (ac_try="$ac_link"
17879 case "(($ac_try" in
17880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881   *) ac_try_echo=$ac_try;;
17882 esac
17883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884   (eval "$ac_link") 2>conftest.er1
17885   ac_status=$?
17886   grep -v '^ *+' conftest.er1 >conftest.err
17887   rm -f conftest.er1
17888   cat conftest.err >&5
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); } &&
17891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17892   { (case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897   (eval "$ac_try") 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; } &&
17901          { ac_try='test -s conftest$ac_exeext'
17902   { (case "(($ac_try" in
17903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904   *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907   (eval "$ac_try") 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; }; then
17911
17912                  { echo "$as_me:$LINENO: result: yes" >&5
17913 echo "${ECHO_T}yes" >&6; }
17914                  cat >>confdefs.h <<\_ACEOF
17915 #define HAVE_LIBWRAP 1
17916 _ACEOF
17917
17918                  TCPW_MSG="yes"
17919                  LIBS="$saved_LIBS"
17920                  WRAPLIBS="-lwrap"
17921
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17927 echo "$as_me: error: *** libwrap missing" >&2;}
17928    { (exit 1); exit 1; }; }
17929
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext \
17933       conftest$ac_exeext conftest.$ac_ext
17934
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939     fi
17940
17941
17942 fi
17943
17944
17945 # -----------------------------------------------------------
17946 # Check whether OpenSSL is available
17947 # -----------------------------------------------------------
17948 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17949 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17950
17951 # Check whether --with-openssl was given.
17952 if test "${with_openssl+set}" = set; then
17953   withval=$with_openssl; with_openssl_directory=${withval}
17954 fi
17955
17956
17957 if test "x$with_openssl_directory" != "x"; then
17958         OPENSSL_LIBS="-lssl -lcrypto"
17959         OPENSSL_INC=""
17960
17961         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17962                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17963                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17964         fi
17965
17966         saved_LIBS="${LIBS}"
17967         saved_CFLAGS="${CFLAGS}"
17968         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17969         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17970
17971         cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977  #include <openssl/ssl.h>
17978 int
17979 main ()
17980 {
17981  CRYPTO_set_id_callback(NULL);
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990   *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993   (eval "$ac_link") 2>conftest.er1
17994   ac_status=$?
17995   grep -v '^ *+' conftest.er1 >conftest.err
17996   rm -f conftest.er1
17997   cat conftest.err >&5
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } &&
18000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001   { (case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_try") 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; } &&
18010          { ac_try='test -s conftest$ac_exeext'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; }; then
18020
18021                         support_tls="yes"
18022                         support_crypto="yes"
18023
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028          support_tls="no"
18029
18030 fi
18031
18032 rm -f core conftest.err conftest.$ac_objext \
18033       conftest$ac_exeext conftest.$ac_ext
18034
18035         cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h.  */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h.  */
18041  #include <openssl/evp.h>
18042 int
18043 main ()
18044 {
18045  EVP_sha512();
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (ac_try="$ac_link"
18052 case "(($ac_try" in
18053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054   *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057   (eval "$ac_link") 2>conftest.er1
18058   ac_status=$?
18059   grep -v '^ *+' conftest.er1 >conftest.err
18060   rm -f conftest.er1
18061   cat conftest.err >&5
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); } &&
18064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18065   { (case "(($ac_try" in
18066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067   *) ac_try_echo=$ac_try;;
18068 esac
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070   (eval "$ac_try") 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; } &&
18074          { ac_try='test -s conftest$ac_exeext'
18075   { (case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_try") 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; }; then
18084    ac_cv_openssl_sha2="yes"
18085 else
18086   echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18088
18089          ac_cv_openssl_sha2="no"
18090
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext \
18094       conftest$ac_exeext conftest.$ac_ext
18095
18096         # Solaris disables greater than 128+ bit encryption in their OpenSSL
18097         # implementation, presumably for export reasons. If 192bit AES
18098         # is available, we assume that we're running with a 'non-export'
18099         # openssl library.
18100         cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106  #include <openssl/evp.h>
18107 int
18108 main ()
18109 {
18110  EVP_aes_192_cbc();
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_link") 2>conftest.er1
18123   ac_status=$?
18124   grep -v '^ *+' conftest.er1 >conftest.err
18125   rm -f conftest.er1
18126   cat conftest.err >&5
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } &&
18129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130   { (case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_try") 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; } &&
18139          { ac_try='test -s conftest$ac_exeext'
18140   { (case "(($ac_try" in
18141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142   *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145   (eval "$ac_try") 2>&5
18146   ac_status=$?
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); }; }; then
18149    ac_cv_openssl_export="no"
18150 else
18151   echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154          ac_cv_openssl_export="yes"
18155
18156 fi
18157
18158 rm -f core conftest.err conftest.$ac_objext \
18159       conftest$ac_exeext conftest.$ac_ext
18160
18161         LIBS="${saved_LIBS}"
18162         CFLAGS="${saved_CFLAGS}"
18163
18164         if test "$support_tls" = "yes"; then
18165
18166 cat >>confdefs.h <<\_ACEOF
18167 #define HAVE_OPENSSL 1
18168 _ACEOF
18169
18170
18171 cat >>confdefs.h <<\_ACEOF
18172 #define HAVE_TLS 1
18173 _ACEOF
18174
18175
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_CRYPTO 1
18178 _ACEOF
18179
18180         fi
18181
18182         if test "$ac_cv_openssl_sha2" = "yes"; then
18183
18184 cat >>confdefs.h <<\_ACEOF
18185 #define HAVE_SHA2 1
18186 _ACEOF
18187
18188         fi
18189
18190         if test "$ac_cv_openssl_export" = "yes"; then
18191
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18194 _ACEOF
18195
18196         fi
18197 else
18198         support_tls="no"
18199         support_crypto="no"
18200         OPENSSL_LIBS=""
18201         OPENSSL_INC=""
18202 fi
18203
18204 { echo "$as_me:$LINENO: result: $support_tls" >&5
18205 echo "${ECHO_T}$support_tls" >&6; }
18206
18207
18208
18209
18210 # -----------------------------------------------------------
18211 # Python and OpenSSL are using dlopen
18212 # -----------------------------------------------------------
18213
18214 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18215    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18216 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18217 if test "${ac_cv_search_dlopen+set}" = set; then
18218   echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220   ac_func_search_save_LIBS=$LIBS
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227
18228 /* Override any GCC internal prototype to avoid an error.
18229    Use char because int might match the return type of a GCC
18230    builtin and then its argument prototype would still apply.  */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char dlopen ();
18235 int
18236 main ()
18237 {
18238 return dlopen ();
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 for ac_lib in '' dl; do
18244   if test -z "$ac_lib"; then
18245     ac_res="none required"
18246   else
18247     ac_res=-l$ac_lib
18248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18249   fi
18250   rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_link") 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } &&
18264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265   { (case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_try") 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; } &&
18274          { ac_try='test -s conftest$ac_exeext'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; }; then
18284   ac_cv_search_dlopen=$ac_res
18285 else
18286   echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext \
18293       conftest$ac_exeext
18294   if test "${ac_cv_search_dlopen+set}" = set; then
18295   break
18296 fi
18297 done
18298 if test "${ac_cv_search_dlopen+set}" = set; then
18299   :
18300 else
18301   ac_cv_search_dlopen=no
18302 fi
18303 rm conftest.$ac_ext
18304 LIBS=$ac_func_search_save_LIBS
18305 fi
18306 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18307 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18308 ac_res=$ac_cv_search_dlopen
18309 if test "$ac_res" != no; then
18310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18311
18312 fi
18313
18314 fi
18315
18316 # ------------------------------------------
18317 # Where to place working dir
18318 # ------------------------------------------
18319 working_dir=`eval echo ${prefix}/var/bacula/working`
18320
18321 # Check whether --with-working-dir was given.
18322 if test "${with_working_dir+set}" = set; then
18323   withval=$with_working_dir;
18324        if test "x$withval" != "xno" ; then
18325               working_dir=$withval
18326        fi
18327
18328
18329 fi
18330
18331
18332
18333
18334
18335 # ------------------------------------------
18336 # Where to place scriptdir (script files)
18337 # ------------------------------------------
18338 scriptdir=`eval echo ${sysconfdir}`
18339
18340 # Check whether --with-scriptdir was given.
18341 if test "${with_scriptdir+set}" = set; then
18342   withval=$with_scriptdir;
18343        if test "x$withval" != "xno" ; then
18344               scriptdir=$withval
18345        fi
18346
18347
18348 fi
18349
18350
18351
18352
18353
18354 # ------------------------------------------
18355 # Where to send dump email
18356 # ------------------------------------------
18357 dump_email=root@localhost
18358
18359 # Check whether --with-dump-email was given.
18360 if test "${with_dump_email+set}" = set; then
18361   withval=$with_dump_email;
18362        if test "x$withval" != "xno" ; then
18363               dump_email=$withval
18364        fi
18365
18366
18367 fi
18368
18369
18370
18371
18372 # ------------------------------------------
18373 # Where to send job email
18374 # ------------------------------------------
18375 job_email=root@localhost
18376
18377 # Check whether --with-job-email was given.
18378 if test "${with_job_email+set}" = set; then
18379   withval=$with_job_email;
18380        if test "x$withval" != "xno" ; then
18381               job_email=$withval
18382        fi
18383
18384
18385 fi
18386
18387
18388
18389
18390 # ------------------------------------------
18391 # Where to find smtp host
18392 # ------------------------------------------
18393 smtp_host=localhost
18394
18395 # Check whether --with-smtp_host was given.
18396 if test "${with_smtp_host+set}" = set; then
18397   withval=$with_smtp_host;
18398        if test "x$withval" != "xno" ; then
18399               smtp_host=$withval
18400        fi
18401
18402
18403 fi
18404
18405
18406
18407
18408
18409 # ------------------------------------
18410 # Where to place pid files
18411 # ------------------------------------
18412 piddir=/var/run
18413
18414 # Check whether --with-pid-dir was given.
18415 if test "${with_pid_dir+set}" = set; then
18416   withval=$with_pid_dir;
18417         if test "x$withval" != "xno" ; then
18418             piddir=$withval
18419         fi
18420
18421
18422 fi
18423
18424
18425 cat >>confdefs.h <<_ACEOF
18426 #define _PATH_BACULA_PIDDIR "$piddir"
18427 _ACEOF
18428
18429
18430
18431
18432 # ------------------------------------
18433 # Where to place subsys "lock file"
18434 # ------------------------------------
18435 ubsysdir=/var/run/subsys
18436 if test -d /var/run/subsys; then
18437    subsysdir=/var/run/subsys
18438 elif test -d /var/lock/subsys; then
18439    subsysdir=/var/lock/subsys
18440 else
18441    subsysdir=/var/run/subsys
18442 fi
18443
18444 # Check whether --with-subsys-dir was given.
18445 if test "${with_subsys_dir+set}" = set; then
18446   withval=$with_subsys_dir;
18447         if test "x$withval" != "xno" ; then
18448             subsysdir=$withval
18449         fi
18450
18451
18452 fi
18453
18454
18455
18456
18457
18458
18459 # ------------------------------------
18460 # Where to start assigning ports
18461 # ------------------------------------
18462 baseport=9101
18463
18464 # Check whether --with-baseport was given.
18465 if test "${with_baseport+set}" = set; then
18466   withval=$with_baseport;
18467         if test "x$withval" != "xno" ; then
18468              baseport=$withval
18469         fi
18470
18471
18472 fi
18473
18474
18475
18476 dir_port=`expr $baseport`
18477 fd_port=`expr $baseport + 1`
18478 sd_port=`expr $fd_port + 1`
18479
18480
18481
18482
18483
18484
18485 # ------------------------------------------
18486 # Generate passwords
18487 # ------------------------------------------
18488 dir_password=
18489
18490 # Check whether --with-dir-password was given.
18491 if test "${with_dir_password+set}" = set; then
18492   withval=$with_dir_password;
18493        if test "x$withval" != "xno" ; then
18494            dir_password=$withval
18495        fi
18496
18497
18498 fi
18499
18500
18501 if test "x$dir_password" = "x" ; then
18502    if test "x$OPENSSL" = "xnone" ; then
18503       key=`autoconf/randpass 33`
18504    else
18505       key=`openssl rand -base64 33`
18506    fi
18507    dir_password=$key
18508 fi
18509
18510 fd_password=
18511
18512 # Check whether --with-fd-password was given.
18513 if test "${with_fd_password+set}" = set; then
18514   withval=$with_fd_password;
18515        if test "x$withval" != "xno" ; then
18516            fd_password=$withval
18517        fi
18518
18519
18520 fi
18521
18522
18523 if test "x$fd_password" = "x" ; then
18524    if test "x$OPENSSL" = "xnone" ; then
18525       key=`autoconf/randpass 37`
18526    else
18527       key=`openssl rand -base64 33`
18528    fi
18529    fd_password=$key
18530 fi
18531
18532 sd_password=
18533
18534 # Check whether --with-sd-password was given.
18535 if test "${with_sd_password+set}" = set; then
18536   withval=$with_sd_password;
18537        if test "x$withval" != "xno" ; then
18538            sd_password=$withval
18539        fi
18540
18541
18542 fi
18543
18544
18545 if test "x$sd_password" = "x" ; then
18546    if test "x$OPENSSL" = "xnone" ; then
18547       key=`autoconf/randpass 41`
18548    else
18549       key=`openssl rand -base64 33`
18550    fi
18551    sd_password=$key
18552 fi
18553
18554 mon_dir_password=
18555
18556 # Check whether --with-mon-dir-password was given.
18557 if test "${with_mon_dir_password+set}" = set; then
18558   withval=$with_mon_dir_password;
18559        if test "x$withval" != "xno" ; then
18560            mon_dir_password=$withval
18561        fi
18562
18563
18564 fi
18565
18566
18567 if test "x$mon_dir_password" = "x" ; then
18568    if test "x$OPENSSL" = "xnone" ; then
18569       key=`autoconf/randpass 33`
18570    else
18571       key=`openssl rand -base64 33`
18572    fi
18573    mon_dir_password=$key
18574 fi
18575
18576 mon_fd_password=
18577
18578 # Check whether --with-mon-fd-password was given.
18579 if test "${with_mon_fd_password+set}" = set; then
18580   withval=$with_mon_fd_password;
18581        if test "x$withval" != "xno" ; then
18582            mon_fd_password=$withval
18583        fi
18584
18585
18586 fi
18587
18588
18589 if test "x$mon_fd_password" = "x" ; then
18590    if test "x$OPENSSL" = "xnone" ; then
18591       key=`autoconf/randpass 37`
18592    else
18593       key=`openssl rand -base64 33`
18594    fi
18595    mon_fd_password=$key
18596 fi
18597
18598 mon_sd_password=
18599
18600 # Check whether --with-mon-sd-password was given.
18601 if test "${with_mon_sd_password+set}" = set; then
18602   withval=$with_mon_sd_password;
18603        if test "x$withval" != "xno" ; then
18604            mon_sd_password=$withval
18605        fi
18606
18607
18608 fi
18609
18610
18611 if test "x$mon_sd_password" = "x" ; then
18612    if test "x$OPENSSL" = "xnone" ; then
18613       key=`autoconf/randpass 41`
18614    else
18615       key=`openssl rand -base64 33`
18616    fi
18617    mon_sd_password=$key
18618 fi
18619
18620
18621
18622
18623
18624
18625
18626
18627 #
18628 # Pickup any database name
18629 #
18630 db_name=bacula
18631
18632 # Check whether --with-db_name was given.
18633 if test "${with_db_name+set}" = set; then
18634   withval=$with_db_name;
18635         if test "x$withval" != "x" ; then
18636              db_name=$withval
18637         fi
18638
18639
18640 fi
18641
18642
18643
18644 db_user=bacula
18645
18646 # Check whether --with-db_user was given.
18647 if test "${with_db_user+set}" = set; then
18648   withval=$with_db_user;
18649         if test "x$withval" != "x" ; then
18650              db_user=$withval
18651         fi
18652
18653
18654 fi
18655
18656
18657
18658
18659 #
18660 # Handle users and groups for each daemon
18661 #
18662 dir_user=
18663
18664 # Check whether --with-dir_user was given.
18665 if test "${with_dir_user+set}" = set; then
18666   withval=$with_dir_user;
18667         if test "x$withval" != "x" ; then
18668              dir_user=$withval
18669         fi
18670
18671
18672 fi
18673
18674
18675 dir_group=
18676
18677 # Check whether --with-dir_group was given.
18678 if test "${with_dir_group+set}" = set; then
18679   withval=$with_dir_group;
18680         if test "x$withval" != "x" ; then
18681              dir_group=$withval
18682         fi
18683
18684
18685 fi
18686
18687
18688 sd_user=
18689
18690 # Check whether --with-sd_user was given.
18691 if test "${with_sd_user+set}" = set; then
18692   withval=$with_sd_user;
18693         if test "x$withval" != "x" ; then
18694              sd_user=$withval
18695         fi
18696
18697
18698 fi
18699
18700
18701 sd_group=
18702
18703 # Check whether --with-sd_group was given.
18704 if test "${with_sd_group+set}" = set; then
18705   withval=$with_sd_group;
18706         if test "x$withval" != "x" ; then
18707              sd_group=$withval
18708         fi
18709
18710
18711 fi
18712
18713
18714 fd_user=
18715
18716 # Check whether --with-fd_user was given.
18717 if test "${with_fd_user+set}" = set; then
18718   withval=$with_fd_user;
18719         if test "x$withval" != "x" ; then
18720              fd_user=$withval
18721         fi
18722
18723
18724 fi
18725
18726
18727 fd_group=
18728
18729 # Check whether --with-fd_group was given.
18730 if test "${with_fd_group+set}" = set; then
18731   withval=$with_fd_group;
18732         if test "x$withval" != "x" ; then
18733              fd_group=$withval
18734         fi
18735
18736
18737 fi
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747 #
18748 # allow setting default executable permissions
18749 #
18750 SBINPERM=0754
18751
18752 # Check whether --with-sbin-perm was given.
18753 if test "${with_sbin_perm+set}" = set; then
18754   withval=$with_sbin_perm;
18755         if test "x$withval" != "x" ; then
18756             SBINPERM=$withval
18757         fi
18758
18759
18760 fi
18761
18762
18763
18764
18765 # ------------------------------------------------
18766 # Bacula check for various SQL database engines
18767 # ------------------------------------------------
18768 SQL_LIB=
18769
18770 db_found=no
18771 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18772 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18773
18774 # Check whether --with-postgresql was given.
18775 if test "${with_postgresql+set}" = set; then
18776   withval=$with_postgresql;
18777   if test "$withval" != "no"; then
18778       if test "$db_found" = "yes"; then
18779           { echo "$as_me:$LINENO: result: error" >&5
18780 echo "${ECHO_T}error" >&6; }
18781           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18782 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18783    { (exit 1); exit 1; }; };
18784       fi
18785       if test "$withval" = "yes"; then
18786           PG_CONFIG=`which pg_config`
18787           if test -n "$PG_CONFIG";then
18788               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18789               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18790               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18791           elif test -f /usr/local/include/libpq-fe.h; then
18792               POSTGRESQL_INCDIR=/usr/local/include
18793               if test -d /usr/local/lib64; then
18794                  POSTGRESQL_LIBDIR=/usr/local/lib64
18795               else
18796                  POSTGRESQL_LIBDIR=/usr/local/lib
18797               fi
18798               POSTGRESQL_BINDIR=/usr/local/bin
18799           elif test -f /usr/include/libpq-fe.h; then
18800               POSTGRESQL_INCDIR=/usr/include
18801               if test -d /usr/lib64; then
18802                  POSTGRESQL_LIBDIR=/usr/lib64
18803               else
18804                  POSTGRESQL_LIBDIR=/usr/lib
18805               fi
18806               POSTGRESQL_BINDIR=/usr/bin
18807           elif test -f /usr/include/pgsql/libpq-fe.h; then
18808               POSTGRESQL_INCDIR=/usr/include/pgsql
18809               if test -d /usr/lib64/pgsql; then
18810                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18811               else
18812                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18813               fi
18814               POSTGRESQL_BINDIR=/usr/bin
18815           elif test -f /usr/include/postgresql/libpq-fe.h; then
18816               POSTGRESQL_INCDIR=/usr/include/postgresql
18817               if test -d /usr/lib64/postgresql; then
18818                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18819               else
18820                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18821               fi
18822               POSTGRESQL_BINDIR=/usr/bin
18823           else
18824               { echo "$as_me:$LINENO: result: no" >&5
18825 echo "${ECHO_T}no" >&6; }
18826               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18827 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18828    { (exit 1); exit 1; }; }
18829           fi
18830       elif test -f $withval/include/libpq-fe.h; then
18831           POSTGRESQL_INCDIR=$withval/include
18832           POSTGRESQL_LIBDIR=$withval/lib
18833           POSTGRESQL_BINDIR=$withval/bin
18834       elif test -f $withval/include/postgresql/libpq-fe.h; then
18835           POSTGRESQL_INCDIR=$withval/include/postgresql
18836      if test -d $withval/lib64; then
18837          POSTGRESQL_LIBDIR=$withval/lib64
18838      else
18839          POSTGRESQL_LIBDIR=$withval/lib
18840      fi
18841           POSTGRESQL_BINDIR=$withval/bin
18842       else
18843           { echo "$as_me:$LINENO: result: no" >&5
18844 echo "${ECHO_T}no" >&6; }
18845           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18846 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18847    { (exit 1); exit 1; }; }
18848       fi
18849       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18850       { echo "$as_me:$LINENO: checking for crypt" >&5
18851 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18852 if test "${ac_cv_func_crypt+set}" = set; then
18853   echo $ECHO_N "(cached) $ECHO_C" >&6
18854 else
18855   cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18863 #define crypt innocuous_crypt
18864
18865 /* System header to define __stub macros and hopefully few prototypes,
18866     which can conflict with char crypt (); below.
18867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868     <limits.h> exists even on freestanding compilers.  */
18869
18870 #ifdef __STDC__
18871 # include <limits.h>
18872 #else
18873 # include <assert.h>
18874 #endif
18875
18876 #undef crypt
18877
18878 /* Override any GCC internal prototype to avoid an error.
18879    Use char because int might match the return type of a GCC
18880    builtin and then its argument prototype would still apply.  */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char crypt ();
18885 /* The GNU C library defines this for functions which it implements
18886     to always fail with ENOSYS.  Some functions are actually named
18887     something starting with __ and the normal name is an alias.  */
18888 #if defined __stub_crypt || defined __stub___crypt
18889 choke me
18890 #endif
18891
18892 int
18893 main ()
18894 {
18895 return crypt ();
18896   ;
18897   return 0;
18898 }
18899 _ACEOF
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_link") 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } &&
18914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915   { (case "(($ac_try" in
18916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917   *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920   (eval "$ac_try") 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; } &&
18924          { ac_try='test -s conftest$ac_exeext'
18925   { (case "(($ac_try" in
18926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927   *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930   (eval "$ac_try") 2>&5
18931   ac_status=$?
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); }; }; then
18934   ac_cv_func_crypt=yes
18935 else
18936   echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18938
18939         ac_cv_func_crypt=no
18940 fi
18941
18942 rm -f core conftest.err conftest.$ac_objext \
18943       conftest$ac_exeext conftest.$ac_ext
18944 fi
18945 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18946 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18947 if test $ac_cv_func_crypt = yes; then
18948   :
18949 else
18950   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18951 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18952 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   ac_check_lib_save_LIBS=$LIBS
18956 LIBS="-lcrypt  $LIBS"
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h.  */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h.  */
18963
18964 /* Override any GCC internal prototype to avoid an error.
18965    Use char because int might match the return type of a GCC
18966    builtin and then its argument prototype would still apply.  */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 char crypt ();
18971 int
18972 main ()
18973 {
18974 return crypt ();
18975   ;
18976   return 0;
18977 }
18978 _ACEOF
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983   *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986   (eval "$ac_link") 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } &&
18993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18994   { (case "(($ac_try" in
18995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996   *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999   (eval "$ac_try") 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; } &&
19003          { ac_try='test -s conftest$ac_exeext'
19004   { (case "(($ac_try" in
19005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006   *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009   (eval "$ac_try") 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); }; }; then
19013   ac_cv_lib_crypt_crypt=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018         ac_cv_lib_crypt_crypt=no
19019 fi
19020
19021 rm -f core conftest.err conftest.$ac_objext \
19022       conftest$ac_exeext conftest.$ac_ext
19023 LIBS=$ac_check_lib_save_LIBS
19024 fi
19025 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19026 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19027 if test $ac_cv_lib_crypt_crypt = yes; then
19028   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19029 fi
19030
19031 fi
19032
19033       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19034       SQL_LFLAGS=$POSTGRESQL_LFLAGS
19035       SQL_BINDIR=$POSTGRESQL_BINDIR
19036       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
19037
19038       cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_POSTGRESQL 1
19040 _ACEOF
19041
19042       { echo "$as_me:$LINENO: result: yes" >&5
19043 echo "${ECHO_T}yes" >&6; }
19044       db_found=yes
19045       support_postgresql=yes
19046       db_type=PostgreSQL
19047       DB_TYPE=postgresql
19048   else
19049       { echo "$as_me:$LINENO: result: no" >&5
19050 echo "${ECHO_T}no" >&6; }
19051   fi
19052
19053 else
19054
19055   { echo "$as_me:$LINENO: result: no" >&5
19056 echo "${ECHO_T}no" >&6; }
19057
19058 fi
19059
19060
19061
19062
19063
19064
19065
19066
19067 db_found=no
19068 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19069 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19070
19071 # Check whether --with-mysql was given.
19072 if test "${with_mysql+set}" = set; then
19073   withval=$with_mysql;
19074   if test "$withval" != "no"; then
19075         if test "$withval" = "yes"; then
19076            if test -f /usr/local/mysql/include/mysql/mysql.h; then
19077                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
19078                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19079                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19080                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19081                    else
19082                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19083                    fi
19084                    MYSQL_BINDIR=/usr/local/mysql/bin
19085            elif test -f /usr/include/mysql/mysql.h; then
19086                    MYSQL_INCDIR=/usr/include/mysql
19087                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19088                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19089                            MYSQL_LIBDIR=/usr/lib64/mysql
19090                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19091                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19092                            MYSQL_LIBDIR=/usr/lib/mysql
19093                    else
19094                            MYSQL_LIBDIR=/usr/lib
19095                    fi
19096                    MYSQL_BINDIR=/usr/bin
19097            elif test -f /usr/include/mysql.h; then
19098                    MYSQL_INCDIR=/usr/include
19099                    if test -f /usr/lib64/libmysqlclient_r.a \
19100                         -o -f /usr/lib64/libmysqlclient_r.so; then
19101                            MYSQL_LIBDIR=/usr/lib64
19102                    else
19103                            MYSQL_LIBDIR=/usr/lib
19104                    fi
19105                    MYSQL_BINDIR=/usr/bin
19106            elif test -f /usr/local/include/mysql/mysql.h; then
19107                    MYSQL_INCDIR=/usr/local/include/mysql
19108                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19109                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19110                            MYSQL_LIBDIR=/usr/local/lib64/mysql
19111                    else
19112                            MYSQL_LIBDIR=/usr/local/lib/mysql
19113                    fi
19114                    MYSQL_BINDIR=/usr/local/bin
19115            elif test -f /usr/local/include/mysql.h; then
19116                    MYSQL_INCDIR=/usr/local/include
19117                    if test -f /usr/local/lib64/libmysqlclient_r.a \
19118                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
19119                            MYSQL_LIBDIR=/usr/local/lib64
19120                    else
19121                            MYSQL_LIBDIR=/usr/local/lib
19122                    fi
19123                    MYSQL_BINDIR=/usr/local/bin
19124            else
19125               { echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6; }
19127               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19128 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19129    { (exit 1); exit 1; }; }
19130            fi
19131         else
19132            if test -f $withval/include/mysql/mysql.h; then
19133               MYSQL_INCDIR=$withval/include/mysql
19134               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19135                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19136                  MYSQL_LIBDIR=$withval/lib64/mysql
19137               else
19138                  MYSQL_LIBDIR=$withval/lib/mysql
19139                  # Solaris ...
19140                  if test -f $withval/lib/libmysqlclient_r.so; then
19141                     MYSQL_LIBDIR=$withval/lib
19142                  fi
19143               fi
19144               MYSQL_BINDIR=$withval/bin
19145            elif test -f $withval/include/mysql.h; then
19146               MYSQL_INCDIR=$withval/include
19147               if test -f $withval/lib64/libmysqlclient_r.a \
19148                    -o -f $withval/lib64/libmysqlclient_r.so; then
19149                  MYSQL_LIBDIR=$withval/lib64
19150               else
19151                  MYSQL_LIBDIR=$withval/lib
19152               fi
19153               MYSQL_BINDIR=$withval/bin
19154            else
19155               { echo "$as_me:$LINENO: result: no" >&5
19156 echo "${ECHO_T}no" >&6; }
19157               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19158 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19159    { (exit 1); exit 1; }; }
19160            fi
19161         fi
19162     SQL_INCLUDE=-I$MYSQL_INCDIR
19163     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19164          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19165        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19166        cat >>confdefs.h <<\_ACEOF
19167 #define HAVE_THREAD_SAFE_MYSQL 1
19168 _ACEOF
19169
19170     fi
19171     SQL_BINDIR=$MYSQL_BINDIR
19172     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
19173
19174     cat >>confdefs.h <<\_ACEOF
19175 #define HAVE_MYSQL 1
19176 _ACEOF
19177
19178     { echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6; }
19180     db_found=yes
19181     support_mysql=yes
19182     db_type=MySQL
19183     DB_TYPE=mysql
19184
19185   else
19186         { echo "$as_me:$LINENO: result: no" >&5
19187 echo "${ECHO_T}no" >&6; }
19188   fi
19189
19190
19191 fi
19192
19193
19194
19195 # Check whether --with-embedded-mysql was given.
19196 if test "${with_embedded_mysql+set}" = set; then
19197   withval=$with_embedded_mysql;
19198   if test "$withval" != "no"; then
19199         if test "$withval" = "yes"; then
19200                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19201                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19202                         if test -d /usr/local/mysql/lib64/mysql; then
19203                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19204                         else
19205                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19206                         fi
19207                         MYSQL_BINDIR=/usr/local/mysql/bin
19208                 elif test -f /usr/include/mysql/mysql.h; then
19209                         MYSQL_INCDIR=/usr/include/mysql
19210                         if test -d /usr/lib64/mysql; then
19211                                 MYSQL_LIBDIR=/usr/lib64/mysql
19212                         else
19213                                 MYSQL_LIBDIR=/usr/lib/mysql
19214                         fi
19215                         MYSQL_BINDIR=/usr/bin
19216                 elif test -f /usr/include/mysql.h; then
19217                         MYSQL_INCDIR=/usr/include
19218                         if test -d /usr/lib64; then
19219                                 MYSQL_LIBDIR=/usr/lib64
19220                         else
19221                                 MYSQL_LIBDIR=/usr/lib
19222                         fi
19223                         MYSQL_BINDIR=/usr/bin
19224                 elif test -f /usr/local/include/mysql/mysql.h; then
19225                         MYSQL_INCDIR=/usr/local/include/mysql
19226                         if test -d /usr/local/lib64/mysql; then
19227                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19228                         else
19229                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19230                         fi
19231                         MYSQL_BINDIR=/usr/local/bin
19232                 elif test -f /usr/local/include/mysql.h; then
19233                         MYSQL_INCDIR=/usr/local/include
19234                         if test -d /usr/local/lib64; then
19235                                 MYSQL_LIBDIR=/usr/local/lib64
19236                         else
19237                                 MYSQL_LIBDIR=/usr/local/lib
19238                         fi
19239                         MYSQL_BINDIR=/usr/local/bin
19240                 else
19241                    { echo "$as_me:$LINENO: result: no" >&5
19242 echo "${ECHO_T}no" >&6; }
19243                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19244 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19245    { (exit 1); exit 1; }; }
19246                 fi
19247         else
19248                 if test -f $withval/include/mysql/mysql.h; then
19249                         MYSQL_INCDIR=$withval/include/mysql
19250                         if test -d $withval/lib64/mysql; then
19251                                 MYSQL_LIBDIR=$withval/lib64/mysql
19252                         else
19253                                 MYSQL_LIBDIR=$withval/lib/mysql
19254                         fi
19255                         MYSQL_BINDIR=$withval/bin
19256                 elif test -f $withval/include/mysql.h; then
19257                         MYSQL_INCDIR=$withval/include
19258                         if test -d $withval/lib64; then
19259                                 MYSQL_LIBDIR=$withval/lib64
19260                         else
19261                                 MYSQL_LIBDIR=$withval/lib
19262                         fi
19263                         MYSQL_BINDIR=$withval/bin
19264                 else
19265                    { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19267                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19268 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19269    { (exit 1); exit 1; }; }
19270                 fi
19271         fi
19272     SQL_INCLUDE=-I$MYSQL_INCDIR
19273     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19274     SQL_BINDIR=$MYSQL_BINDIR
19275     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
19276
19277     cat >>confdefs.h <<\_ACEOF
19278 #define HAVE_MYSQL 1
19279 _ACEOF
19280
19281     cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_EMBEDDED_MYSQL 1
19283 _ACEOF
19284
19285     { echo "$as_me:$LINENO: result: yes" >&5
19286 echo "${ECHO_T}yes" >&6; }
19287     db_found=yes
19288     support_mysql=yes
19289     db_type=MySQL
19290     DB_TYPE=mysql
19291
19292   else
19293         { echo "$as_me:$LINENO: result: no" >&5
19294 echo "${ECHO_T}no" >&6; }
19295   fi
19296
19297
19298 fi
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309 db_found=no
19310 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19311 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19312
19313 # Check whether --with-sqlite3 was given.
19314 if test "${with_sqlite3+set}" = set; then
19315   withval=$with_sqlite3;
19316   if test "$withval" != "no"; then
19317      if test "$withval" = "yes"; then
19318         if test -f /usr/local/include/sqlite3.h; then
19319            SQLITE_INCDIR=/usr/local/include
19320            if test -d /usr/local/lib64; then
19321               SQLITE_LIBDIR=/usr/local/lib64
19322            else
19323               SQLITE_LIBDIR=/usr/local/lib
19324            fi
19325            SQLITE_BINDIR=/usr/local/bin
19326         elif test -f /usr/include/sqlite3.h; then
19327            SQLITE_INCDIR=/usr/include
19328            if test -d /usr/lib64; then
19329               SQLITE_LIBDIR=/usr/lib64
19330            else
19331               SQLITE_LIBDIR=/usr/lib
19332            fi
19333            SQLITE_BINDIR=/usr/bin
19334         elif test -f $prefix/include/sqlite3.h; then
19335            SQLITE_INCDIR=$prefix/include
19336            if test -d $prefix/lib64; then
19337               SQLITE_LIBDIR=$prefix/lib64
19338            else
19339               SQLITE_LIBDIR=$prefix/lib
19340            fi
19341            SQLITE_BINDIR=$prefix/bin
19342         else
19343            { echo "$as_me:$LINENO: result: no" >&5
19344 echo "${ECHO_T}no" >&6; }
19345            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19346 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19347    { (exit 1); exit 1; }; }
19348         fi
19349      else
19350         if test -f $withval/sqlite3.h; then
19351            SQLITE_INCDIR=$withval
19352            SQLITE_LIBDIR=$withval
19353            SQLITE_BINDIR=$withval
19354         elif test -f $withval/include/sqlite3.h; then
19355            SQLITE_INCDIR=$withval/include
19356            if test -d $withval/lib64; then
19357               SQLITE_LIBDIR=$withval/lib64
19358            else
19359               SQLITE_LIBDIR=$withval/lib
19360            fi
19361            SQLITE_BINDIR=$withval/bin
19362         else
19363            { echo "$as_me:$LINENO: result: no" >&5
19364 echo "${ECHO_T}no" >&6; }
19365            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19366 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19367    { (exit 1); exit 1; }; }
19368         fi
19369      fi
19370      SQL_INCLUDE=-I$SQLITE_INCDIR
19371      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19372      SQL_BINDIR=$SQLITE_BINDIR
19373      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
19374
19375      cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_SQLITE3 1
19377 _ACEOF
19378
19379      { echo "$as_me:$LINENO: result: yes" >&5
19380 echo "${ECHO_T}yes" >&6; }
19381      db_found=yes
19382      support_sqlite3=yes
19383      db_type=SQLite3
19384      DB_TYPE=sqlite3
19385
19386   else
19387      { echo "$as_me:$LINENO: result: no" >&5
19388 echo "${ECHO_T}no" >&6; }
19389   fi
19390
19391 else
19392
19393   { echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6; }
19395
19396 fi
19397
19398
19399
19400
19401
19402
19403
19404
19405 db_found=no
19406 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19407 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19408
19409 # Check whether --with-sqlite was given.
19410 if test "${with_sqlite+set}" = set; then
19411   withval=$with_sqlite;
19412   if test "$withval" != "no"; then
19413      if test "$withval" = "yes"; then
19414         if test -f /usr/local/include/sqlite.h; then
19415            SQLITE_INCDIR=/usr/local/include
19416            if test -d /usr/local/lib64; then
19417               SQLITE_LIBDIR=/usr/local/lib64
19418            else
19419               SQLITE_LIBDIR=/usr/local/lib
19420            fi
19421            SQLITE_BINDIR=/usr/local/bin
19422         elif test -f /usr/include/sqlite.h; then
19423            SQLITE_INCDIR=/usr/include
19424            if test -d /usr/lib64; then
19425               SQLITE_LIBDIR=/usr/lib64
19426            else
19427               SQLITE_LIBDIR=/usr/lib
19428            fi
19429            SQLITE_BINDIR=/usr/bin
19430         elif test -f $prefix/include/sqlite.h; then
19431            SQLITE_INCDIR=$prefix/include
19432            if test -d $prefix/lib64; then
19433               SQLITE_LIBDIR=$prefix/lib64
19434            else
19435               SQLITE_LIBDIR=$prefix/lib
19436            fi
19437            SQLITE_BINDIR=$prefix/bin
19438         else
19439            { echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6; }
19441            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19442 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19443    { (exit 1); exit 1; }; }
19444         fi
19445      else
19446         if test -f $withval/sqlite.h; then
19447            SQLITE_INCDIR=$withval
19448            SQLITE_LIBDIR=$withval
19449            SQLITE_BINDIR=$withval
19450         elif test -f $withval/include/sqlite.h; then
19451            SQLITE_INCDIR=$withval/include
19452            if test -d $withval/lib64; then
19453               SQLITE_LIBDIR=$withval/lib64
19454            else
19455               SQLITE_LIBDIR=$withval/lib
19456            fi
19457            SQLITE_BINDIR=$withval/bin
19458         else
19459            { echo "$as_me:$LINENO: result: no" >&5
19460 echo "${ECHO_T}no" >&6; }
19461            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19462 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19463    { (exit 1); exit 1; }; }
19464         fi
19465      fi
19466      SQL_INCLUDE=-I$SQLITE_INCDIR
19467      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19468      SQL_BINDIR=$SQLITE_BINDIR
19469      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
19470
19471      cat >>confdefs.h <<\_ACEOF
19472 #define HAVE_SQLITE 1
19473 _ACEOF
19474
19475      { echo "$as_me:$LINENO: result: yes" >&5
19476 echo "${ECHO_T}yes" >&6; }
19477      db_found=yes
19478      support_sqlite=yes
19479      db_type=SQLite
19480      DB_TYPE=sqlite
19481
19482   else
19483      { echo "$as_me:$LINENO: result: no" >&5
19484 echo "${ECHO_T}no" >&6; }
19485   fi
19486
19487 else
19488
19489   { echo "$as_me:$LINENO: result: no" >&5
19490 echo "${ECHO_T}no" >&6; }
19491
19492 fi
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503 # -------------------------------------------
19504 # enable batch attribute DB insert (default on)
19505 # -------------------------------------------
19506 support_batch_insert=no
19507 A=`nm $SQL_LIB | grep pthread_mutex_lock`
19508 pkg=$?
19509 if test $pkg = 0; then
19510    support_batch_insert=yes
19511    # Check whether --enable-batch-insert was given.
19512 if test "${enable_batch_insert+set}" = set; then
19513   enableval=$enable_batch_insert; if test x$enableval = xno; then
19514        support_batch_insert=no
19515       else
19516        support_batch_insert=yes
19517      fi
19518 fi
19519
19520 fi
19521
19522 if test $support_batch_insert = yes ; then
19523
19524 cat >>confdefs.h <<\_ACEOF
19525 #define HAVE_BATCH_FILE_INSERT 1
19526 _ACEOF
19527
19528 fi
19529
19530
19531 cat >>confdefs.h <<\_ACEOF
19532 #define PROTOTYPES 1
19533 _ACEOF
19534
19535
19536 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19537     if test -z "$CCOPTS"; then
19538         CCOPTS='-g -O2 -Wall'
19539     fi
19540     CFLAGS="$CCOPTS"
19541 fi
19542
19543
19544
19545
19546 largefile_support="no"
19547
19548    # Check whether --enable-largefile was given.
19549 if test "${enable_largefile+set}" = set; then
19550   enableval=$enable_largefile;
19551 fi
19552
19553    if test "$enable_largefile" != no; then
19554      if test -n "$ac_tool_prefix"; then
19555   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19556 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19559 if test "${ac_cv_prog_GETCONF+set}" = set; then
19560   echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562   if test -n "$GETCONF"; then
19563   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19564 else
19565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19566 for as_dir in $PATH
19567 do
19568   IFS=$as_save_IFS
19569   test -z "$as_dir" && as_dir=.
19570   for ac_exec_ext in '' $ac_executable_extensions; do
19571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19572     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19574     break 2
19575   fi
19576 done
19577 done
19578 IFS=$as_save_IFS
19579
19580 fi
19581 fi
19582 GETCONF=$ac_cv_prog_GETCONF
19583 if test -n "$GETCONF"; then
19584   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19585 echo "${ECHO_T}$GETCONF" >&6; }
19586 else
19587   { echo "$as_me:$LINENO: result: no" >&5
19588 echo "${ECHO_T}no" >&6; }
19589 fi
19590
19591
19592 fi
19593 if test -z "$ac_cv_prog_GETCONF"; then
19594   ac_ct_GETCONF=$GETCONF
19595   # Extract the first word of "getconf", so it can be a program name with args.
19596 set dummy getconf; ac_word=$2
19597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19599 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   if test -n "$ac_ct_GETCONF"; then
19603   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19604 else
19605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19606 for as_dir in $PATH
19607 do
19608   IFS=$as_save_IFS
19609   test -z "$as_dir" && as_dir=.
19610   for ac_exec_ext in '' $ac_executable_extensions; do
19611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19612     ac_cv_prog_ac_ct_GETCONF="getconf"
19613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19614     break 2
19615   fi
19616 done
19617 done
19618 IFS=$as_save_IFS
19619
19620 fi
19621 fi
19622 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19623 if test -n "$ac_ct_GETCONF"; then
19624   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19625 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19626 else
19627   { echo "$as_me:$LINENO: result: no" >&5
19628 echo "${ECHO_T}no" >&6; }
19629 fi
19630
19631   if test "x$ac_ct_GETCONF" = x; then
19632     GETCONF=""
19633   else
19634     case $cross_compiling:$ac_tool_warned in
19635 yes:)
19636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19637 whose name does not start with the host triplet.  If you think this
19638 configuration is useful to you, please write to autoconf@gnu.org." >&5
19639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19640 whose name does not start with the host triplet.  If you think this
19641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19642 ac_tool_warned=yes ;;
19643 esac
19644     GETCONF=$ac_ct_GETCONF
19645   fi
19646 else
19647   GETCONF="$ac_cv_prog_GETCONF"
19648 fi
19649
19650      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19651 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19652 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19656         ac_cv_sys_largefile_CFLAGS=no
19657         case "$host_os" in
19658            # IRIX 6.2 and later require cc -n32.
19659            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19660              if test "$GCC" != yes; then
19661                ac_cv_sys_largefile_CFLAGS=-n32
19662              fi
19663              ac_save_CC="$CC"
19664              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19665              cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671
19672 int
19673 main ()
19674 {
19675
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (ac_try="$ac_link"
19682 case "(($ac_try" in
19683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684   *) ac_try_echo=$ac_try;;
19685 esac
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687   (eval "$ac_link") 2>conftest.er1
19688   ac_status=$?
19689   grep -v '^ *+' conftest.er1 >conftest.err
19690   rm -f conftest.er1
19691   cat conftest.err >&5
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); } &&
19694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19695   { (case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_try") 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; } &&
19704          { ac_try='test -s conftest$ac_exeext'
19705   { (case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_try") 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; }; then
19714   :
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719         ac_cv_sys_largefile_CFLAGS=no
19720 fi
19721
19722 rm -f core conftest.err conftest.$ac_objext \
19723       conftest$ac_exeext conftest.$ac_ext
19724              CC="$ac_save_CC"
19725            esac
19726       }
19727 fi
19728 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19729 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19730      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19731 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19732 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19736         ac_cv_sys_largefile_LDFLAGS=no
19737
19738       }
19739 fi
19740 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19741 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19742      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19743 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19744 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19748         ac_cv_sys_largefile_LIBS=no
19749
19750       }
19751 fi
19752 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19753 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19754
19755      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19756        case "$ac_flag" in
19757        no) ;;
19758        -D_FILE_OFFSET_BITS=*) ;;
19759        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19760        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19761        -D?* | -I?*)
19762          case "$ac_flag" in
19763    no) ;;
19764    ?*)
19765      case "$CPPFLAGS" in
19766      '') CPPFLAGS="$ac_flag" ;;
19767      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19768      esac ;;
19769    esac ;;
19770        *)
19771          case "$ac_flag" in
19772    no) ;;
19773    ?*)
19774      case "$CFLAGS" in
19775      '') CFLAGS="$ac_flag" ;;
19776      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19777      esac ;;
19778    esac ;;
19779        esac
19780      done
19781      case "$ac_cv_sys_largefile_LDFLAGS" in
19782    no) ;;
19783    ?*)
19784      case "$LDFLAGS" in
19785      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19786      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19787      esac ;;
19788    esac
19789      case "$ac_cv_sys_largefile_LIBS" in
19790    no) ;;
19791    ?*)
19792      case "$LIBS" in
19793      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19794      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19795      esac ;;
19796    esac
19797      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19798 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19799 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19800   echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802   ac_cv_sys_file_offset_bits=no
19803       ac_cv_sys_file_offset_bits=64
19804       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19805         case "$ac_flag" in
19806         -D_FILE_OFFSET_BITS)
19807           ac_cv_sys_file_offset_bits=1 ;;
19808         -D_FILE_OFFSET_BITS=*)
19809           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19810         esac
19811       done
19812
19813 fi
19814 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19815 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19816    if test "$ac_cv_sys_file_offset_bits" != no; then
19817
19818 cat >>confdefs.h <<_ACEOF
19819 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19820 _ACEOF
19821
19822    fi
19823      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19824 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19825 if test "${ac_cv_sys_largefile_source+set}" = set; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828   ac_cv_sys_largefile_source=no
19829       ac_cv_sys_largefile_source=1
19830       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19831         case "$ac_flag" in
19832         -D_LARGEFILE_SOURCE)
19833           ac_cv_sys_largefile_source=1 ;;
19834         -D_LARGEFILE_SOURCE=*)
19835           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19836         esac
19837       done
19838
19839 fi
19840 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19841 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19842    if test "$ac_cv_sys_largefile_source" != no; then
19843
19844 cat >>confdefs.h <<_ACEOF
19845 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19846 _ACEOF
19847
19848    fi
19849      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19850 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19851 if test "${ac_cv_sys_large_files+set}" = set; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854   ac_cv_sys_large_files=no
19855       ac_cv_sys_large_files=1
19856       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19857         case "$ac_flag" in
19858         -D_LARGE_FILES)
19859           ac_cv_sys_large_files=1 ;;
19860         -D_LARGE_FILES=*)
19861           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19862         esac
19863       done
19864
19865 fi
19866 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19867 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19868    if test "$ac_cv_sys_large_files" != no; then
19869
19870 cat >>confdefs.h <<_ACEOF
19871 #define _LARGE_FILES $ac_cv_sys_large_files
19872 _ACEOF
19873
19874    fi
19875    fi
19876
19877
19878
19879 { echo "$as_me:$LINENO: checking for X" >&5
19880 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19881
19882
19883 # Check whether --with-x was given.
19884 if test "${with_x+set}" = set; then
19885   withval=$with_x;
19886 fi
19887
19888 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19889 if test "x$with_x" = xno; then
19890   # The user explicitly disabled X.
19891   have_x=disabled
19892 else
19893   case $x_includes,$x_libraries in #(
19894     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19895 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19896    { (exit 1); exit 1; }; };; #(
19897     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900   # One or both of the vars are not set, and there is no cached value.
19901 ac_x_includes=no ac_x_libraries=no
19902 rm -f -r conftest.dir
19903 if mkdir conftest.dir; then
19904   cd conftest.dir
19905   cat >Imakefile <<'_ACEOF'
19906 incroot:
19907         @echo incroot='${INCROOT}'
19908 usrlibdir:
19909         @echo usrlibdir='${USRLIBDIR}'
19910 libdir:
19911         @echo libdir='${LIBDIR}'
19912 _ACEOF
19913   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19914     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19915     for ac_var in incroot usrlibdir libdir; do
19916       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19917     done
19918     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19919     for ac_extension in a so sl; do
19920       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19921          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19922         ac_im_usrlibdir=$ac_im_libdir; break
19923       fi
19924     done
19925     # Screen out bogus values from the imake configuration.  They are
19926     # bogus both because they are the default anyway, and because
19927     # using them would break gcc on systems where it needs fixed includes.
19928     case $ac_im_incroot in
19929         /usr/include) ac_x_includes= ;;
19930         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19931     esac
19932     case $ac_im_usrlibdir in
19933         /usr/lib | /lib) ;;
19934         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19935     esac
19936   fi
19937   cd ..
19938   rm -f -r conftest.dir
19939 fi
19940
19941 # Standard set of common directories for X headers.
19942 # Check X11 before X11Rn because it is often a symlink to the current release.
19943 ac_x_header_dirs='
19944 /usr/X11/include
19945 /usr/X11R6/include
19946 /usr/X11R5/include
19947 /usr/X11R4/include
19948
19949 /usr/include/X11
19950 /usr/include/X11R6
19951 /usr/include/X11R5
19952 /usr/include/X11R4
19953
19954 /usr/local/X11/include
19955 /usr/local/X11R6/include
19956 /usr/local/X11R5/include
19957 /usr/local/X11R4/include
19958
19959 /usr/local/include/X11
19960 /usr/local/include/X11R6
19961 /usr/local/include/X11R5
19962 /usr/local/include/X11R4
19963
19964 /usr/X386/include
19965 /usr/x386/include
19966 /usr/XFree86/include/X11
19967
19968 /usr/include
19969 /usr/local/include
19970 /usr/unsupported/include
19971 /usr/athena/include
19972 /usr/local/x11r5/include
19973 /usr/lpp/Xamples/include
19974
19975 /usr/openwin/include
19976 /usr/openwin/share/include'
19977
19978 if test "$ac_x_includes" = no; then
19979   # Guess where to find include files, by looking for Xlib.h.
19980   # First, try using that file with no special directory specified.
19981   cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987 #include <X11/Xlib.h>
19988 _ACEOF
19989 if { (ac_try="$ac_cpp conftest.$ac_ext"
19990 case "(($ac_try" in
19991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992   *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19996   ac_status=$?
19997   grep -v '^ *+' conftest.er1 >conftest.err
19998   rm -f conftest.er1
19999   cat conftest.err >&5
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); } >/dev/null; then
20002   if test -s conftest.err; then
20003     ac_cpp_err=$ac_c_preproc_warn_flag
20004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20005   else
20006     ac_cpp_err=
20007   fi
20008 else
20009   ac_cpp_err=yes
20010 fi
20011 if test -z "$ac_cpp_err"; then
20012   # We can compile using X headers with no special include directory.
20013 ac_x_includes=
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018   for ac_dir in $ac_x_header_dirs; do
20019   if test -r "$ac_dir/X11/Xlib.h"; then
20020     ac_x_includes=$ac_dir
20021     break
20022   fi
20023 done
20024 fi
20025
20026 rm -f conftest.err conftest.$ac_ext
20027 fi # $ac_x_includes = no
20028
20029 if test "$ac_x_libraries" = no; then
20030   # Check for the libraries.
20031   # See if we find them without any special options.
20032   # Don't add to $LIBS permanently.
20033   ac_save_LIBS=$LIBS
20034   LIBS="-lXt $LIBS"
20035   cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 #include <X11/Xlib.h>
20042 int
20043 main ()
20044 {
20045 XrmInitialize ()
20046   ;
20047   return 0;
20048 }
20049 _ACEOF
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (ac_try="$ac_link"
20052 case "(($ac_try" in
20053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054   *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057   (eval "$ac_link") 2>conftest.er1
20058   ac_status=$?
20059   grep -v '^ *+' conftest.er1 >conftest.err
20060   rm -f conftest.er1
20061   cat conftest.err >&5
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); } &&
20064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20065   { (case "(($ac_try" in
20066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067   *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070   (eval "$ac_try") 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; } &&
20074          { ac_try='test -s conftest$ac_exeext'
20075   { (case "(($ac_try" in
20076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077   *) ac_try_echo=$ac_try;;
20078 esac
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080   (eval "$ac_try") 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; }; then
20084   LIBS=$ac_save_LIBS
20085 # We can link X programs with no special library path.
20086 ac_x_libraries=
20087 else
20088   echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091         LIBS=$ac_save_LIBS
20092 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20093 do
20094   # Don't even attempt the hair of trying to link an X program!
20095   for ac_extension in a so sl; do
20096     if test -r "$ac_dir/libXt.$ac_extension"; then
20097       ac_x_libraries=$ac_dir
20098       break 2
20099     fi
20100   done
20101 done
20102 fi
20103
20104 rm -f core conftest.err conftest.$ac_objext \
20105       conftest$ac_exeext conftest.$ac_ext
20106 fi # $ac_x_libraries = no
20107
20108 case $ac_x_includes,$ac_x_libraries in #(
20109   no,* | *,no | *\'*)
20110     # Didn't find X, or a directory has "'" in its name.
20111     ac_cv_have_x="have_x=no";; #(
20112   *)
20113     # Record where we found X for the cache.
20114     ac_cv_have_x="have_x=yes\
20115         ac_x_includes='$ac_x_includes'\
20116         ac_x_libraries='$ac_x_libraries'"
20117 esac
20118 fi
20119 ;; #(
20120     *) have_x=yes;;
20121   esac
20122   eval "$ac_cv_have_x"
20123 fi # $with_x != no
20124
20125 if test "$have_x" != yes; then
20126   { echo "$as_me:$LINENO: result: $have_x" >&5
20127 echo "${ECHO_T}$have_x" >&6; }
20128   no_x=yes
20129 else
20130   # If each of the values was on the command line, it overrides each guess.
20131   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20132   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20133   # Update the cache value to reflect the command line values.
20134   ac_cv_have_x="have_x=yes\
20135         ac_x_includes='$x_includes'\
20136         ac_x_libraries='$x_libraries'"
20137   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20138 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20139 fi
20140
20141 if test "$no_x" = yes; then
20142   # Not all programs may use this symbol, but it does not hurt to define it.
20143
20144 cat >>confdefs.h <<\_ACEOF
20145 #define X_DISPLAY_MISSING 1
20146 _ACEOF
20147
20148   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20149 else
20150   if test -n "$x_includes"; then
20151     X_CFLAGS="$X_CFLAGS -I$x_includes"
20152   fi
20153
20154   # It would also be nice to do this for all -L options, not just this one.
20155   if test -n "$x_libraries"; then
20156     X_LIBS="$X_LIBS -L$x_libraries"
20157     # For Solaris; some versions of Sun CC require a space after -R and
20158     # others require no space.  Words are not sufficient . . . .
20159     case `(uname -sr) 2>/dev/null` in
20160     "SunOS 5"*)
20161       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20162 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20163       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20164       cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 int
20172 main ()
20173 {
20174
20175   ;
20176   return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183   *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186   (eval "$ac_link") 2>conftest.er1
20187   ac_status=$?
20188   grep -v '^ *+' conftest.er1 >conftest.err
20189   rm -f conftest.er1
20190   cat conftest.err >&5
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } &&
20193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194   { (case "(($ac_try" in
20195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196   *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199   (eval "$ac_try") 2>&5
20200   ac_status=$?
20201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202   (exit $ac_status); }; } &&
20203          { ac_try='test -s conftest$ac_exeext'
20204   { (case "(($ac_try" in
20205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206   *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209   (eval "$ac_try") 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_R_nospace=yes
20214 else
20215   echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218         ac_R_nospace=no
20219 fi
20220
20221 rm -f core conftest.err conftest.$ac_objext \
20222       conftest$ac_exeext conftest.$ac_ext
20223       if test $ac_R_nospace = yes; then
20224         { echo "$as_me:$LINENO: result: no" >&5
20225 echo "${ECHO_T}no" >&6; }
20226         X_LIBS="$X_LIBS -R$x_libraries"
20227       else
20228         LIBS="$ac_xsave_LIBS -R $x_libraries"
20229         cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235
20236 int
20237 main ()
20238 {
20239
20240   ;
20241   return 0;
20242 }
20243 _ACEOF
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248   *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251   (eval "$ac_link") 2>conftest.er1
20252   ac_status=$?
20253   grep -v '^ *+' conftest.er1 >conftest.err
20254   rm -f conftest.er1
20255   cat conftest.err >&5
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); } &&
20258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20259   { (case "(($ac_try" in
20260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261   *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264   (eval "$ac_try") 2>&5
20265   ac_status=$?
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); }; } &&
20268          { ac_try='test -s conftest$ac_exeext'
20269   { (case "(($ac_try" in
20270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271   *) ac_try_echo=$ac_try;;
20272 esac
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274   (eval "$ac_try") 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; }; then
20278   ac_R_space=yes
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283         ac_R_space=no
20284 fi
20285
20286 rm -f core conftest.err conftest.$ac_objext \
20287       conftest$ac_exeext conftest.$ac_ext
20288         if test $ac_R_space = yes; then
20289           { echo "$as_me:$LINENO: result: yes" >&5
20290 echo "${ECHO_T}yes" >&6; }
20291           X_LIBS="$X_LIBS -R $x_libraries"
20292         else
20293           { echo "$as_me:$LINENO: result: neither works" >&5
20294 echo "${ECHO_T}neither works" >&6; }
20295         fi
20296       fi
20297       LIBS=$ac_xsave_LIBS
20298     esac
20299   fi
20300
20301   # Check for system-dependent libraries X programs must link with.
20302   # Do this before checking for the system-independent R6 libraries
20303   # (-lICE), since we may need -lsocket or whatever for X linking.
20304
20305   if test "$ISC" = yes; then
20306     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20307   else
20308     # Martyn Johnson says this is needed for Ultrix, if the X
20309     # libraries were built with DECnet support.  And Karl Berry says
20310     # the Alpha needs dnet_stub (dnet does not exist).
20311     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20312     cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 /* Override any GCC internal prototype to avoid an error.
20320    Use char because int might match the return type of a GCC
20321    builtin and then its argument prototype would still apply.  */
20322 #ifdef __cplusplus
20323 extern "C"
20324 #endif
20325 char XOpenDisplay ();
20326 int
20327 main ()
20328 {
20329 return XOpenDisplay ();
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (ac_try="$ac_link"
20336 case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_link") 2>conftest.er1
20342   ac_status=$?
20343   grep -v '^ *+' conftest.er1 >conftest.err
20344   rm -f conftest.er1
20345   cat conftest.err >&5
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); } &&
20348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20349   { (case "(($ac_try" in
20350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351   *) ac_try_echo=$ac_try;;
20352 esac
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354   (eval "$ac_try") 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; } &&
20358          { ac_try='test -s conftest$ac_exeext'
20359   { (case "(($ac_try" in
20360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361   *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364   (eval "$ac_try") 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); }; }; then
20368   :
20369 else
20370   echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20374 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20375 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20376   echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378   ac_check_lib_save_LIBS=$LIBS
20379 LIBS="-ldnet  $LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 /* Override any GCC internal prototype to avoid an error.
20388    Use char because int might match the return type of a GCC
20389    builtin and then its argument prototype would still apply.  */
20390 #ifdef __cplusplus
20391 extern "C"
20392 #endif
20393 char dnet_ntoa ();
20394 int
20395 main ()
20396 {
20397 return dnet_ntoa ();
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406   *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409   (eval "$ac_link") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } &&
20416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417   { (case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_try") 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); }; } &&
20426          { ac_try='test -s conftest$ac_exeext'
20427   { (case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_try") 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; }; then
20436   ac_cv_lib_dnet_dnet_ntoa=yes
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441         ac_cv_lib_dnet_dnet_ntoa=no
20442 fi
20443
20444 rm -f core conftest.err conftest.$ac_objext \
20445       conftest$ac_exeext conftest.$ac_ext
20446 LIBS=$ac_check_lib_save_LIBS
20447 fi
20448 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20449 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20450 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20451   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20452 fi
20453
20454     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20455       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20456 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20457 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20458   echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460   ac_check_lib_save_LIBS=$LIBS
20461 LIBS="-ldnet_stub  $LIBS"
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468
20469 /* Override any GCC internal prototype to avoid an error.
20470    Use char because int might match the return type of a GCC
20471    builtin and then its argument prototype would still apply.  */
20472 #ifdef __cplusplus
20473 extern "C"
20474 #endif
20475 char dnet_ntoa ();
20476 int
20477 main ()
20478 {
20479 return dnet_ntoa ();
20480   ;
20481   return 0;
20482 }
20483 _ACEOF
20484 rm -f conftest.$ac_objext conftest$ac_exeext
20485 if { (ac_try="$ac_link"
20486 case "(($ac_try" in
20487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488   *) ac_try_echo=$ac_try;;
20489 esac
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491   (eval "$ac_link") 2>conftest.er1
20492   ac_status=$?
20493   grep -v '^ *+' conftest.er1 >conftest.err
20494   rm -f conftest.er1
20495   cat conftest.err >&5
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); } &&
20498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20499   { (case "(($ac_try" in
20500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501   *) ac_try_echo=$ac_try;;
20502 esac
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504   (eval "$ac_try") 2>&5
20505   ac_status=$?
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); }; } &&
20508          { ac_try='test -s conftest$ac_exeext'
20509   { (case "(($ac_try" in
20510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511   *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514   (eval "$ac_try") 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); }; }; then
20518   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20519 else
20520   echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523         ac_cv_lib_dnet_stub_dnet_ntoa=no
20524 fi
20525
20526 rm -f core conftest.err conftest.$ac_objext \
20527       conftest$ac_exeext conftest.$ac_ext
20528 LIBS=$ac_check_lib_save_LIBS
20529 fi
20530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20531 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20532 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20533   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20534 fi
20535
20536     fi
20537 fi
20538
20539 rm -f core conftest.err conftest.$ac_objext \
20540       conftest$ac_exeext conftest.$ac_ext
20541     LIBS="$ac_xsave_LIBS"
20542
20543     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20544     # to get the SysV transport functions.
20545     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20546     # needs -lnsl.
20547     # The nsl library prevents programs from opening the X display
20548     # on Irix 5.2, according to T.E. Dickey.
20549     # The functions gethostbyname, getservbyname, and inet_addr are
20550     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20551     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20552 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20553 if test "${ac_cv_func_gethostbyname+set}" = set; then
20554   echo $ECHO_N "(cached) $ECHO_C" >&6
20555 else
20556   cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20564 #define gethostbyname innocuous_gethostbyname
20565
20566 /* System header to define __stub macros and hopefully few prototypes,
20567     which can conflict with char gethostbyname (); below.
20568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20569     <limits.h> exists even on freestanding compilers.  */
20570
20571 #ifdef __STDC__
20572 # include <limits.h>
20573 #else
20574 # include <assert.h>
20575 #endif
20576
20577 #undef gethostbyname
20578
20579 /* Override any GCC internal prototype to avoid an error.
20580    Use char because int might match the return type of a GCC
20581    builtin and then its argument prototype would still apply.  */
20582 #ifdef __cplusplus
20583 extern "C"
20584 #endif
20585 char gethostbyname ();
20586 /* The GNU C library defines this for functions which it implements
20587     to always fail with ENOSYS.  Some functions are actually named
20588     something starting with __ and the normal name is an alias.  */
20589 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20590 choke me
20591 #endif
20592
20593 int
20594 main ()
20595 {
20596 return gethostbyname ();
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (ac_try="$ac_link"
20603 case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_link") 2>conftest.er1
20609   ac_status=$?
20610   grep -v '^ *+' conftest.er1 >conftest.err
20611   rm -f conftest.er1
20612   cat conftest.err >&5
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } &&
20615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20616   { (case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_try") 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); }; } &&
20625          { ac_try='test -s conftest$ac_exeext'
20626   { (case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_try") 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_cv_func_gethostbyname=yes
20636 else
20637   echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640         ac_cv_func_gethostbyname=no
20641 fi
20642
20643 rm -f core conftest.err conftest.$ac_objext \
20644       conftest$ac_exeext conftest.$ac_ext
20645 fi
20646 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20647 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20648
20649     if test $ac_cv_func_gethostbyname = no; then
20650       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20651 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20652 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655   ac_check_lib_save_LIBS=$LIBS
20656 LIBS="-lnsl  $LIBS"
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663
20664 /* Override any GCC internal prototype to avoid an error.
20665    Use char because int might match the return type of a GCC
20666    builtin and then its argument prototype would still apply.  */
20667 #ifdef __cplusplus
20668 extern "C"
20669 #endif
20670 char gethostbyname ();
20671 int
20672 main ()
20673 {
20674 return gethostbyname ();
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_link") 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } &&
20693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20694   { (case "(($ac_try" in
20695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696   *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699   (eval "$ac_try") 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; } &&
20703          { ac_try='test -s conftest$ac_exeext'
20704   { (case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_try") 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   ac_cv_lib_nsl_gethostbyname=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718         ac_cv_lib_nsl_gethostbyname=no
20719 fi
20720
20721 rm -f core conftest.err conftest.$ac_objext \
20722       conftest$ac_exeext conftest.$ac_ext
20723 LIBS=$ac_check_lib_save_LIBS
20724 fi
20725 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20726 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20727 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20728   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20729 fi
20730
20731       if test $ac_cv_lib_nsl_gethostbyname = no; then
20732         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20733 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20734 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20735   echo $ECHO_N "(cached) $ECHO_C" >&6
20736 else
20737   ac_check_lib_save_LIBS=$LIBS
20738 LIBS="-lbsd  $LIBS"
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745
20746 /* Override any GCC internal prototype to avoid an error.
20747    Use char because int might match the return type of a GCC
20748    builtin and then its argument prototype would still apply.  */
20749 #ifdef __cplusplus
20750 extern "C"
20751 #endif
20752 char gethostbyname ();
20753 int
20754 main ()
20755 {
20756 return gethostbyname ();
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (ac_try="$ac_link"
20763 case "(($ac_try" in
20764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765   *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768   (eval "$ac_link") 2>conftest.er1
20769   ac_status=$?
20770   grep -v '^ *+' conftest.er1 >conftest.err
20771   rm -f conftest.er1
20772   cat conftest.err >&5
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } &&
20775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20776   { (case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_try") 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; } &&
20785          { ac_try='test -s conftest$ac_exeext'
20786   { (case "(($ac_try" in
20787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788   *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791   (eval "$ac_try") 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; }; then
20795   ac_cv_lib_bsd_gethostbyname=yes
20796 else
20797   echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20799
20800         ac_cv_lib_bsd_gethostbyname=no
20801 fi
20802
20803 rm -f core conftest.err conftest.$ac_objext \
20804       conftest$ac_exeext conftest.$ac_ext
20805 LIBS=$ac_check_lib_save_LIBS
20806 fi
20807 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20808 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20809 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20810   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20811 fi
20812
20813       fi
20814     fi
20815
20816     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20817     # socket/setsockopt and other routines are undefined under SCO ODT
20818     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20819     # on later versions), says Simon Leinen: it contains gethostby*
20820     # variants that don't use the name server (or something).  -lsocket
20821     # must be given before -lnsl if both are needed.  We assume that
20822     # if connect needs -lnsl, so does gethostbyname.
20823     { echo "$as_me:$LINENO: checking for connect" >&5
20824 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20825 if test "${ac_cv_func_connect+set}" = set; then
20826   echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828   cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h.  */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h.  */
20834 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20836 #define connect innocuous_connect
20837
20838 /* System header to define __stub macros and hopefully few prototypes,
20839     which can conflict with char connect (); below.
20840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20841     <limits.h> exists even on freestanding compilers.  */
20842
20843 #ifdef __STDC__
20844 # include <limits.h>
20845 #else
20846 # include <assert.h>
20847 #endif
20848
20849 #undef connect
20850
20851 /* Override any GCC internal prototype to avoid an error.
20852    Use char because int might match the return type of a GCC
20853    builtin and then its argument prototype would still apply.  */
20854 #ifdef __cplusplus
20855 extern "C"
20856 #endif
20857 char connect ();
20858 /* The GNU C library defines this for functions which it implements
20859     to always fail with ENOSYS.  Some functions are actually named
20860     something starting with __ and the normal name is an alias.  */
20861 #if defined __stub_connect || defined __stub___connect
20862 choke me
20863 #endif
20864
20865 int
20866 main ()
20867 {
20868 return connect ();
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (ac_try="$ac_link"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_link") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } &&
20887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20888   { (case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_try") 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); }; } &&
20897          { ac_try='test -s conftest$ac_exeext'
20898   { (case "(($ac_try" in
20899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900   *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903   (eval "$ac_try") 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; }; then
20907   ac_cv_func_connect=yes
20908 else
20909   echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912         ac_cv_func_connect=no
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext \
20916       conftest$ac_exeext conftest.$ac_ext
20917 fi
20918 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20919 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20920
20921     if test $ac_cv_func_connect = no; then
20922       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20923 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20924 if test "${ac_cv_lib_socket_connect+set}" = set; then
20925   echo $ECHO_N "(cached) $ECHO_C" >&6
20926 else
20927   ac_check_lib_save_LIBS=$LIBS
20928 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h.  */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h.  */
20935
20936 /* Override any GCC internal prototype to avoid an error.
20937    Use char because int might match the return type of a GCC
20938    builtin and then its argument prototype would still apply.  */
20939 #ifdef __cplusplus
20940 extern "C"
20941 #endif
20942 char connect ();
20943 int
20944 main ()
20945 {
20946 return connect ();
20947   ;
20948   return 0;
20949 }
20950 _ACEOF
20951 rm -f conftest.$ac_objext conftest$ac_exeext
20952 if { (ac_try="$ac_link"
20953 case "(($ac_try" in
20954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955   *) ac_try_echo=$ac_try;;
20956 esac
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958   (eval "$ac_link") 2>conftest.er1
20959   ac_status=$?
20960   grep -v '^ *+' conftest.er1 >conftest.err
20961   rm -f conftest.er1
20962   cat conftest.err >&5
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); } &&
20965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20966   { (case "(($ac_try" in
20967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968   *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971   (eval "$ac_try") 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); }; } &&
20975          { ac_try='test -s conftest$ac_exeext'
20976   { (case "(($ac_try" in
20977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978   *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981   (eval "$ac_try") 2>&5
20982   ac_status=$?
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); }; }; then
20985   ac_cv_lib_socket_connect=yes
20986 else
20987   echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990         ac_cv_lib_socket_connect=no
20991 fi
20992
20993 rm -f core conftest.err conftest.$ac_objext \
20994       conftest$ac_exeext conftest.$ac_ext
20995 LIBS=$ac_check_lib_save_LIBS
20996 fi
20997 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20998 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20999 if test $ac_cv_lib_socket_connect = yes; then
21000   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21001 fi
21002
21003     fi
21004
21005     # Guillermo Gomez says -lposix is necessary on A/UX.
21006     { echo "$as_me:$LINENO: checking for remove" >&5
21007 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21008 if test "${ac_cv_func_remove+set}" = set; then
21009   echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011   cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21019 #define remove innocuous_remove
21020
21021 /* System header to define __stub macros and hopefully few prototypes,
21022     which can conflict with char remove (); below.
21023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024     <limits.h> exists even on freestanding compilers.  */
21025
21026 #ifdef __STDC__
21027 # include <limits.h>
21028 #else
21029 # include <assert.h>
21030 #endif
21031
21032 #undef remove
21033
21034 /* Override any GCC internal prototype to avoid an error.
21035    Use char because int might match the return type of a GCC
21036    builtin and then its argument prototype would still apply.  */
21037 #ifdef __cplusplus
21038 extern "C"
21039 #endif
21040 char remove ();
21041 /* The GNU C library defines this for functions which it implements
21042     to always fail with ENOSYS.  Some functions are actually named
21043     something starting with __ and the normal name is an alias.  */
21044 #if defined __stub_remove || defined __stub___remove
21045 choke me
21046 #endif
21047
21048 int
21049 main ()
21050 {
21051 return remove ();
21052   ;
21053   return 0;
21054 }
21055 _ACEOF
21056 rm -f conftest.$ac_objext conftest$ac_exeext
21057 if { (ac_try="$ac_link"
21058 case "(($ac_try" in
21059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060   *) ac_try_echo=$ac_try;;
21061 esac
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063   (eval "$ac_link") 2>conftest.er1
21064   ac_status=$?
21065   grep -v '^ *+' conftest.er1 >conftest.err
21066   rm -f conftest.er1
21067   cat conftest.err >&5
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); } &&
21070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21071   { (case "(($ac_try" in
21072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073   *) ac_try_echo=$ac_try;;
21074 esac
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076   (eval "$ac_try") 2>&5
21077   ac_status=$?
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); }; } &&
21080          { ac_try='test -s conftest$ac_exeext'
21081   { (case "(($ac_try" in
21082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083   *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086   (eval "$ac_try") 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; }; then
21090   ac_cv_func_remove=yes
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095         ac_cv_func_remove=no
21096 fi
21097
21098 rm -f core conftest.err conftest.$ac_objext \
21099       conftest$ac_exeext conftest.$ac_ext
21100 fi
21101 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21102 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21103
21104     if test $ac_cv_func_remove = no; then
21105       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21106 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21107 if test "${ac_cv_lib_posix_remove+set}" = set; then
21108   echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110   ac_check_lib_save_LIBS=$LIBS
21111 LIBS="-lposix  $LIBS"
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118
21119 /* Override any GCC internal prototype to avoid an error.
21120    Use char because int might match the return type of a GCC
21121    builtin and then its argument prototype would still apply.  */
21122 #ifdef __cplusplus
21123 extern "C"
21124 #endif
21125 char remove ();
21126 int
21127 main ()
21128 {
21129 return remove ();
21130   ;
21131   return 0;
21132 }
21133 _ACEOF
21134 rm -f conftest.$ac_objext conftest$ac_exeext
21135 if { (ac_try="$ac_link"
21136 case "(($ac_try" in
21137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138   *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141   (eval "$ac_link") 2>conftest.er1
21142   ac_status=$?
21143   grep -v '^ *+' conftest.er1 >conftest.err
21144   rm -f conftest.er1
21145   cat conftest.err >&5
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } &&
21148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21149   { (case "(($ac_try" in
21150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151   *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154   (eval "$ac_try") 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); }; } &&
21158          { ac_try='test -s conftest$ac_exeext'
21159   { (case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164   (eval "$ac_try") 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; }; then
21168   ac_cv_lib_posix_remove=yes
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173         ac_cv_lib_posix_remove=no
21174 fi
21175
21176 rm -f core conftest.err conftest.$ac_objext \
21177       conftest$ac_exeext conftest.$ac_ext
21178 LIBS=$ac_check_lib_save_LIBS
21179 fi
21180 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21181 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21182 if test $ac_cv_lib_posix_remove = yes; then
21183   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21184 fi
21185
21186     fi
21187
21188     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21189     { echo "$as_me:$LINENO: checking for shmat" >&5
21190 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21191 if test "${ac_cv_func_shmat+set}" = set; then
21192   echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194   cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21202 #define shmat innocuous_shmat
21203
21204 /* System header to define __stub macros and hopefully few prototypes,
21205     which can conflict with char shmat (); below.
21206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21207     <limits.h> exists even on freestanding compilers.  */
21208
21209 #ifdef __STDC__
21210 # include <limits.h>
21211 #else
21212 # include <assert.h>
21213 #endif
21214
21215 #undef shmat
21216
21217 /* Override any GCC internal prototype to avoid an error.
21218    Use char because int might match the return type of a GCC
21219    builtin and then its argument prototype would still apply.  */
21220 #ifdef __cplusplus
21221 extern "C"
21222 #endif
21223 char shmat ();
21224 /* The GNU C library defines this for functions which it implements
21225     to always fail with ENOSYS.  Some functions are actually named
21226     something starting with __ and the normal name is an alias.  */
21227 #if defined __stub_shmat || defined __stub___shmat
21228 choke me
21229 #endif
21230
21231 int
21232 main ()
21233 {
21234 return shmat ();
21235   ;
21236   return 0;
21237 }
21238 _ACEOF
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (ac_try="$ac_link"
21241 case "(($ac_try" in
21242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243   *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246   (eval "$ac_link") 2>conftest.er1
21247   ac_status=$?
21248   grep -v '^ *+' conftest.er1 >conftest.err
21249   rm -f conftest.er1
21250   cat conftest.err >&5
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } &&
21253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21254   { (case "(($ac_try" in
21255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256   *) ac_try_echo=$ac_try;;
21257 esac
21258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259   (eval "$ac_try") 2>&5
21260   ac_status=$?
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); }; } &&
21263          { ac_try='test -s conftest$ac_exeext'
21264   { (case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269   (eval "$ac_try") 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); }; }; then
21273   ac_cv_func_shmat=yes
21274 else
21275   echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21277
21278         ac_cv_func_shmat=no
21279 fi
21280
21281 rm -f core conftest.err conftest.$ac_objext \
21282       conftest$ac_exeext conftest.$ac_ext
21283 fi
21284 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21285 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21286
21287     if test $ac_cv_func_shmat = no; then
21288       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21289 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21290 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21291   echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293   ac_check_lib_save_LIBS=$LIBS
21294 LIBS="-lipc  $LIBS"
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301
21302 /* Override any GCC internal prototype to avoid an error.
21303    Use char because int might match the return type of a GCC
21304    builtin and then its argument prototype would still apply.  */
21305 #ifdef __cplusplus
21306 extern "C"
21307 #endif
21308 char shmat ();
21309 int
21310 main ()
21311 {
21312 return shmat ();
21313   ;
21314   return 0;
21315 }
21316 _ACEOF
21317 rm -f conftest.$ac_objext conftest$ac_exeext
21318 if { (ac_try="$ac_link"
21319 case "(($ac_try" in
21320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321   *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324   (eval "$ac_link") 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } &&
21331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21332   { (case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337   (eval "$ac_try") 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; } &&
21341          { ac_try='test -s conftest$ac_exeext'
21342   { (case "(($ac_try" in
21343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344   *) ac_try_echo=$ac_try;;
21345 esac
21346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347   (eval "$ac_try") 2>&5
21348   ac_status=$?
21349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350   (exit $ac_status); }; }; then
21351   ac_cv_lib_ipc_shmat=yes
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         ac_cv_lib_ipc_shmat=no
21357 fi
21358
21359 rm -f core conftest.err conftest.$ac_objext \
21360       conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21362 fi
21363 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21364 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21365 if test $ac_cv_lib_ipc_shmat = yes; then
21366   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21367 fi
21368
21369     fi
21370   fi
21371
21372   # Check for libraries that X11R6 Xt/Xaw programs need.
21373   ac_save_LDFLAGS=$LDFLAGS
21374   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21375   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21376   # check for ICE first), but we must link in the order -lSM -lICE or
21377   # we get undefined symbols.  So assume we have SM if we have ICE.
21378   # These have to be linked with before -lX11, unlike the other
21379   # libraries we check for below, so use a different variable.
21380   # John Interrante, Karl Berry
21381   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21382 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21383 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21384   echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386   ac_check_lib_save_LIBS=$LIBS
21387 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21388 cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394
21395 /* Override any GCC internal prototype to avoid an error.
21396    Use char because int might match the return type of a GCC
21397    builtin and then its argument prototype would still apply.  */
21398 #ifdef __cplusplus
21399 extern "C"
21400 #endif
21401 char IceConnectionNumber ();
21402 int
21403 main ()
21404 {
21405 return IceConnectionNumber ();
21406   ;
21407   return 0;
21408 }
21409 _ACEOF
21410 rm -f conftest.$ac_objext conftest$ac_exeext
21411 if { (ac_try="$ac_link"
21412 case "(($ac_try" in
21413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414   *) ac_try_echo=$ac_try;;
21415 esac
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417   (eval "$ac_link") 2>conftest.er1
21418   ac_status=$?
21419   grep -v '^ *+' conftest.er1 >conftest.err
21420   rm -f conftest.er1
21421   cat conftest.err >&5
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); } &&
21424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21425   { (case "(($ac_try" in
21426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427   *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430   (eval "$ac_try") 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); }; } &&
21434          { ac_try='test -s conftest$ac_exeext'
21435   { (case "(($ac_try" in
21436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437   *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440   (eval "$ac_try") 2>&5
21441   ac_status=$?
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); }; }; then
21444   ac_cv_lib_ICE_IceConnectionNumber=yes
21445 else
21446   echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449         ac_cv_lib_ICE_IceConnectionNumber=no
21450 fi
21451
21452 rm -f core conftest.err conftest.$ac_objext \
21453       conftest$ac_exeext conftest.$ac_ext
21454 LIBS=$ac_check_lib_save_LIBS
21455 fi
21456 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21457 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21458 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21459   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21460 fi
21461
21462   LDFLAGS=$ac_save_LDFLAGS
21463
21464 fi
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494 for ac_header in \
21495         assert.h \
21496         fcntl.h \
21497         grp.h \
21498         pwd.h \
21499         libc.h \
21500         limits.h \
21501         stdarg.h \
21502         stdlib.h \
21503         stdint.h \
21504         string.h \
21505         termios.h \
21506         termcap.h \
21507         term.h \
21508         unistd.h \
21509         sys/bitypes.h \
21510         sys/byteorder.h \
21511         sys/ioctl.h \
21512         sys/select.h \
21513         sys/sockio.h \
21514         sys/time.h \
21515         sys/socket.h \
21516         arpa/nameser.h \
21517         resolv.h \
21518         mtio.h \
21519         sys/mtio.h \
21520         sys/tape.h \
21521         regex.h \
21522
21523 do
21524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21526   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21529   echo $ECHO_N "(cached) $ECHO_C" >&6
21530 fi
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532                { echo "$as_me:$LINENO: result: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21534 else
21535   # Is the header compilable?
21536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 $ac_includes_default
21545 #include <$ac_header>
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551   *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554   (eval "$ac_compile") 2>conftest.er1
21555   ac_status=$?
21556   grep -v '^ *+' conftest.er1 >conftest.err
21557   rm -f conftest.er1
21558   cat conftest.err >&5
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); } &&
21561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21562   { (case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_try") 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; } &&
21571          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); }; }; then
21581   ac_header_compiler=yes
21582 else
21583   echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21585
21586         ac_header_compiler=no
21587 fi
21588
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21591 echo "${ECHO_T}$ac_header_compiler" >&6; }
21592
21593 # Is the header present?
21594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21596 cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 #include <$ac_header>
21603 _ACEOF
21604 if { (ac_try="$ac_cpp conftest.$ac_ext"
21605 case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21611   ac_status=$?
21612   grep -v '^ *+' conftest.er1 >conftest.err
21613   rm -f conftest.er1
21614   cat conftest.err >&5
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); } >/dev/null; then
21617   if test -s conftest.err; then
21618     ac_cpp_err=$ac_c_preproc_warn_flag
21619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21620   else
21621     ac_cpp_err=
21622   fi
21623 else
21624   ac_cpp_err=yes
21625 fi
21626 if test -z "$ac_cpp_err"; then
21627   ac_header_preproc=yes
21628 else
21629   echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21631
21632   ac_header_preproc=no
21633 fi
21634
21635 rm -f conftest.err conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21637 echo "${ECHO_T}$ac_header_preproc" >&6; }
21638
21639 # So?  What about this header?
21640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21641   yes:no: )
21642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21646     ac_header_preproc=yes
21647     ;;
21648   no:yes:* )
21649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21661
21662     ;;
21663 esac
21664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21667   echo $ECHO_N "(cached) $ECHO_C" >&6
21668 else
21669   eval "$as_ac_Header=\$ac_header_preproc"
21670 fi
21671 ac_res=`eval echo '${'$as_ac_Header'}'`
21672                { echo "$as_me:$LINENO: result: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21674
21675 fi
21676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21677   cat >>confdefs.h <<_ACEOF
21678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21679 _ACEOF
21680
21681 fi
21682
21683 done
21684
21685 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21687 if test "${ac_cv_header_stdc+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 #include <stdlib.h>
21697 #include <stdarg.h>
21698 #include <string.h>
21699 #include <float.h>
21700
21701 int
21702 main ()
21703 {
21704
21705   ;
21706   return 0;
21707 }
21708 _ACEOF
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713   *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716   (eval "$ac_compile") 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } &&
21723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21724   { (case "(($ac_try" in
21725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726   *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729   (eval "$ac_try") 2>&5
21730   ac_status=$?
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); }; } &&
21733          { ac_try='test -s conftest.$ac_objext'
21734   { (case "(($ac_try" in
21735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736   *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739   (eval "$ac_try") 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; }; then
21743   ac_cv_header_stdc=yes
21744 else
21745   echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21747
21748         ac_cv_header_stdc=no
21749 fi
21750
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752
21753 if test $ac_cv_header_stdc = yes; then
21754   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21755   cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761 #include <string.h>
21762
21763 _ACEOF
21764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21765   $EGREP "memchr" >/dev/null 2>&1; then
21766   :
21767 else
21768   ac_cv_header_stdc=no
21769 fi
21770 rm -f conftest*
21771
21772 fi
21773
21774 if test $ac_cv_header_stdc = yes; then
21775   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21776   cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h.  */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h.  */
21782 #include <stdlib.h>
21783
21784 _ACEOF
21785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21786   $EGREP "free" >/dev/null 2>&1; then
21787   :
21788 else
21789   ac_cv_header_stdc=no
21790 fi
21791 rm -f conftest*
21792
21793 fi
21794
21795 if test $ac_cv_header_stdc = yes; then
21796   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21797   if test "$cross_compiling" = yes; then
21798   :
21799 else
21800   cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806 #include <ctype.h>
21807 #include <stdlib.h>
21808 #if ((' ' & 0x0FF) == 0x020)
21809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21811 #else
21812 # define ISLOWER(c) \
21813                    (('a' <= (c) && (c) <= 'i') \
21814                      || ('j' <= (c) && (c) <= 'r') \
21815                      || ('s' <= (c) && (c) <= 'z'))
21816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21817 #endif
21818
21819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21820 int
21821 main ()
21822 {
21823   int i;
21824   for (i = 0; i < 256; i++)
21825     if (XOR (islower (i), ISLOWER (i))
21826         || toupper (i) != TOUPPER (i))
21827       return 2;
21828   return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835   *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838   (eval "$ac_link") 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842   { (case "(($ac_try" in
21843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844   *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847   (eval "$ac_try") 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   :
21852 else
21853   echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 ( exit $ac_status )
21858 ac_cv_header_stdc=no
21859 fi
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21861 fi
21862
21863
21864 fi
21865 fi
21866 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21867 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21868 if test $ac_cv_header_stdc = yes; then
21869
21870 cat >>confdefs.h <<\_ACEOF
21871 #define STDC_HEADERS 1
21872 _ACEOF
21873
21874 fi
21875
21876 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21877 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21878 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21879   echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881   cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h.  */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h.  */
21887 #include <sys/types.h>
21888 int
21889 main ()
21890 {
21891 return makedev(0, 0);
21892   ;
21893   return 0;
21894 }
21895 _ACEOF
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (ac_try="$ac_link"
21898 case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_link") 2>conftest.er1
21904   ac_status=$?
21905   grep -v '^ *+' conftest.er1 >conftest.err
21906   rm -f conftest.er1
21907   cat conftest.err >&5
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); } &&
21910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21911   { (case "(($ac_try" in
21912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913   *) ac_try_echo=$ac_try;;
21914 esac
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916   (eval "$ac_try") 2>&5
21917   ac_status=$?
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); }; } &&
21920          { ac_try='test -s conftest$ac_exeext'
21921   { (case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926   (eval "$ac_try") 2>&5
21927   ac_status=$?
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); }; }; then
21930   ac_cv_header_sys_types_h_makedev=yes
21931 else
21932   echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935         ac_cv_header_sys_types_h_makedev=no
21936 fi
21937
21938 rm -f core conftest.err conftest.$ac_objext \
21939       conftest$ac_exeext conftest.$ac_ext
21940
21941 fi
21942 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21943 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21944
21945 if test $ac_cv_header_sys_types_h_makedev = no; then
21946 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21947   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21948 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21949 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21950   echo $ECHO_N "(cached) $ECHO_C" >&6
21951 fi
21952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21953 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21954 else
21955   # Is the header compilable?
21956 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21957 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h.  */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h.  */
21964 $ac_includes_default
21965 #include <sys/mkdev.h>
21966 _ACEOF
21967 rm -f conftest.$ac_objext
21968 if { (ac_try="$ac_compile"
21969 case "(($ac_try" in
21970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971   *) ac_try_echo=$ac_try;;
21972 esac
21973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974   (eval "$ac_compile") 2>conftest.er1
21975   ac_status=$?
21976   grep -v '^ *+' conftest.er1 >conftest.err
21977   rm -f conftest.er1
21978   cat conftest.err >&5
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); } &&
21981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21982   { (case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_try") 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); }; } &&
21991          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); }; }; then
22001   ac_header_compiler=yes
22002 else
22003   echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006         ac_header_compiler=no
22007 fi
22008
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22011 echo "${ECHO_T}$ac_header_compiler" >&6; }
22012
22013 # Is the header present?
22014 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22015 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22016 cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h.  */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h.  */
22022 #include <sys/mkdev.h>
22023 _ACEOF
22024 if { (ac_try="$ac_cpp conftest.$ac_ext"
22025 case "(($ac_try" in
22026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027   *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22031   ac_status=$?
22032   grep -v '^ *+' conftest.er1 >conftest.err
22033   rm -f conftest.er1
22034   cat conftest.err >&5
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); } >/dev/null; then
22037   if test -s conftest.err; then
22038     ac_cpp_err=$ac_c_preproc_warn_flag
22039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22040   else
22041     ac_cpp_err=
22042   fi
22043 else
22044   ac_cpp_err=yes
22045 fi
22046 if test -z "$ac_cpp_err"; then
22047   ac_header_preproc=yes
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052   ac_header_preproc=no
22053 fi
22054
22055 rm -f conftest.err conftest.$ac_ext
22056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22057 echo "${ECHO_T}$ac_header_preproc" >&6; }
22058
22059 # So?  What about this header?
22060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22061   yes:no: )
22062     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22063 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22064     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22065 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22066     ac_header_preproc=yes
22067     ;;
22068   no:yes:* )
22069     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22070 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22071     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
22072 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
22073     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22074 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22075     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
22076 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22077     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22078 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22079     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22080 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22081
22082     ;;
22083 esac
22084 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22085 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22086 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22087   echo $ECHO_N "(cached) $ECHO_C" >&6
22088 else
22089   ac_cv_header_sys_mkdev_h=$ac_header_preproc
22090 fi
22091 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22092 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22093
22094 fi
22095 if test $ac_cv_header_sys_mkdev_h = yes; then
22096
22097 cat >>confdefs.h <<\_ACEOF
22098 #define MAJOR_IN_MKDEV 1
22099 _ACEOF
22100
22101 fi
22102
22103
22104
22105   if test $ac_cv_header_sys_mkdev_h = no; then
22106     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22107   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22108 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22109 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 fi
22112 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22113 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22114 else
22115   # Is the header compilable?
22116 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22117 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22118 cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124 $ac_includes_default
22125 #include <sys/sysmacros.h>
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131   *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134   (eval "$ac_compile") 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } &&
22141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22142   { (case "(($ac_try" in
22143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144   *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147   (eval "$ac_try") 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; } &&
22151          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; }; then
22161   ac_header_compiler=yes
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166         ac_header_compiler=no
22167 fi
22168
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22171 echo "${ECHO_T}$ac_header_compiler" >&6; }
22172
22173 # Is the header present?
22174 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22175 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h.  */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h.  */
22182 #include <sys/sysmacros.h>
22183 _ACEOF
22184 if { (ac_try="$ac_cpp conftest.$ac_ext"
22185 case "(($ac_try" in
22186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187   *) ac_try_echo=$ac_try;;
22188 esac
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22191   ac_status=$?
22192   grep -v '^ *+' conftest.er1 >conftest.err
22193   rm -f conftest.er1
22194   cat conftest.err >&5
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); } >/dev/null; then
22197   if test -s conftest.err; then
22198     ac_cpp_err=$ac_c_preproc_warn_flag
22199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22200   else
22201     ac_cpp_err=
22202   fi
22203 else
22204   ac_cpp_err=yes
22205 fi
22206 if test -z "$ac_cpp_err"; then
22207   ac_header_preproc=yes
22208 else
22209   echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212   ac_header_preproc=no
22213 fi
22214
22215 rm -f conftest.err conftest.$ac_ext
22216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22217 echo "${ECHO_T}$ac_header_preproc" >&6; }
22218
22219 # So?  What about this header?
22220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221   yes:no: )
22222     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22223 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22224     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22225 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22226     ac_header_preproc=yes
22227     ;;
22228   no:yes:* )
22229     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22230 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22231     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22232 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22233     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22234 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22235     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22236 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22237     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22238 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22239     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22240 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22241
22242     ;;
22243 esac
22244 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22245 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22246 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22247   echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22250 fi
22251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22252 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22253
22254 fi
22255 if test $ac_cv_header_sys_sysmacros_h = yes; then
22256
22257 cat >>confdefs.h <<\_ACEOF
22258 #define MAJOR_IN_SYSMACROS 1
22259 _ACEOF
22260
22261 fi
22262
22263
22264   fi
22265 fi
22266
22267
22268
22269
22270
22271
22272 ac_header_dirent=no
22273 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22274   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22275 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22276 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22278   echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280   cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 #include <sys/types.h>
22287 #include <$ac_hdr>
22288
22289 int
22290 main ()
22291 {
22292 if ((DIR *) 0)
22293 return 0;
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 rm -f conftest.$ac_objext
22299 if { (ac_try="$ac_compile"
22300 case "(($ac_try" in
22301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302   *) ac_try_echo=$ac_try;;
22303 esac
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305   (eval "$ac_compile") 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } &&
22312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22313   { (case "(($ac_try" in
22314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315   *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318   (eval "$ac_try") 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; } &&
22322          { ac_try='test -s conftest.$ac_objext'
22323   { (case "(($ac_try" in
22324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325   *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328   (eval "$ac_try") 2>&5
22329   ac_status=$?
22330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); }; }; then
22332   eval "$as_ac_Header=yes"
22333 else
22334   echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22336
22337         eval "$as_ac_Header=no"
22338 fi
22339
22340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22341 fi
22342 ac_res=`eval echo '${'$as_ac_Header'}'`
22343                { echo "$as_me:$LINENO: result: $ac_res" >&5
22344 echo "${ECHO_T}$ac_res" >&6; }
22345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22346   cat >>confdefs.h <<_ACEOF
22347 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22348 _ACEOF
22349
22350 ac_header_dirent=$ac_hdr; break
22351 fi
22352
22353 done
22354 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22355 if test $ac_header_dirent = dirent.h; then
22356   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22357 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22358 if test "${ac_cv_search_opendir+set}" = set; then
22359   echo $ECHO_N "(cached) $ECHO_C" >&6
22360 else
22361   ac_func_search_save_LIBS=$LIBS
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h.  */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h.  */
22368
22369 /* Override any GCC internal prototype to avoid an error.
22370    Use char because int might match the return type of a GCC
22371    builtin and then its argument prototype would still apply.  */
22372 #ifdef __cplusplus
22373 extern "C"
22374 #endif
22375 char opendir ();
22376 int
22377 main ()
22378 {
22379 return opendir ();
22380   ;
22381   return 0;
22382 }
22383 _ACEOF
22384 for ac_lib in '' dir; do
22385   if test -z "$ac_lib"; then
22386     ac_res="none required"
22387   else
22388     ac_res=-l$ac_lib
22389     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22390   fi
22391   rm -f conftest.$ac_objext conftest$ac_exeext
22392 if { (ac_try="$ac_link"
22393 case "(($ac_try" in
22394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395   *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398   (eval "$ac_link") 2>conftest.er1
22399   ac_status=$?
22400   grep -v '^ *+' conftest.er1 >conftest.err
22401   rm -f conftest.er1
22402   cat conftest.err >&5
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } &&
22405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22406   { (case "(($ac_try" in
22407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408   *) ac_try_echo=$ac_try;;
22409 esac
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411   (eval "$ac_try") 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; } &&
22415          { ac_try='test -s conftest$ac_exeext'
22416   { (case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421   (eval "$ac_try") 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); }; }; then
22425   ac_cv_search_opendir=$ac_res
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430
22431 fi
22432
22433 rm -f core conftest.err conftest.$ac_objext \
22434       conftest$ac_exeext
22435   if test "${ac_cv_search_opendir+set}" = set; then
22436   break
22437 fi
22438 done
22439 if test "${ac_cv_search_opendir+set}" = set; then
22440   :
22441 else
22442   ac_cv_search_opendir=no
22443 fi
22444 rm conftest.$ac_ext
22445 LIBS=$ac_func_search_save_LIBS
22446 fi
22447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22449 ac_res=$ac_cv_search_opendir
22450 if test "$ac_res" != no; then
22451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22452
22453 fi
22454
22455 else
22456   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22457 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22458 if test "${ac_cv_search_opendir+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   ac_func_search_save_LIBS=$LIBS
22462 cat >conftest.$ac_ext <<_ACEOF
22463 /* confdefs.h.  */
22464 _ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h.  */
22468
22469 /* Override any GCC internal prototype to avoid an error.
22470    Use char because int might match the return type of a GCC
22471    builtin and then its argument prototype would still apply.  */
22472 #ifdef __cplusplus
22473 extern "C"
22474 #endif
22475 char opendir ();
22476 int
22477 main ()
22478 {
22479 return opendir ();
22480   ;
22481   return 0;
22482 }
22483 _ACEOF
22484 for ac_lib in '' x; do
22485   if test -z "$ac_lib"; then
22486     ac_res="none required"
22487   else
22488     ac_res=-l$ac_lib
22489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22490   fi
22491   rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495   *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498   (eval "$ac_link") 2>conftest.er1
22499   ac_status=$?
22500   grep -v '^ *+' conftest.er1 >conftest.err
22501   rm -f conftest.er1
22502   cat conftest.err >&5
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); } &&
22505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22506   { (case "(($ac_try" in
22507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508   *) ac_try_echo=$ac_try;;
22509 esac
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511   (eval "$ac_try") 2>&5
22512   ac_status=$?
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); }; } &&
22515          { ac_try='test -s conftest$ac_exeext'
22516   { (case "(($ac_try" in
22517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518   *) ac_try_echo=$ac_try;;
22519 esac
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521   (eval "$ac_try") 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   ac_cv_search_opendir=$ac_res
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530
22531 fi
22532
22533 rm -f core conftest.err conftest.$ac_objext \
22534       conftest$ac_exeext
22535   if test "${ac_cv_search_opendir+set}" = set; then
22536   break
22537 fi
22538 done
22539 if test "${ac_cv_search_opendir+set}" = set; then
22540   :
22541 else
22542   ac_cv_search_opendir=no
22543 fi
22544 rm conftest.$ac_ext
22545 LIBS=$ac_func_search_save_LIBS
22546 fi
22547 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22548 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22549 ac_res=$ac_cv_search_opendir
22550 if test "$ac_res" != no; then
22551   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22552
22553 fi
22554
22555 fi
22556
22557 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22558 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22559 if test "${ac_cv_header_stat_broken+set}" = set; then
22560   echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562   cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568 #include <sys/types.h>
22569 #include <sys/stat.h>
22570
22571 #if defined S_ISBLK && defined S_IFDIR
22572 # if S_ISBLK (S_IFDIR)
22573 You lose.
22574 # endif
22575 #endif
22576
22577 #if defined S_ISBLK && defined S_IFCHR
22578 # if S_ISBLK (S_IFCHR)
22579 You lose.
22580 # endif
22581 #endif
22582
22583 #if defined S_ISLNK && defined S_IFREG
22584 # if S_ISLNK (S_IFREG)
22585 You lose.
22586 # endif
22587 #endif
22588
22589 #if defined S_ISSOCK && defined S_IFREG
22590 # if S_ISSOCK (S_IFREG)
22591 You lose.
22592 # endif
22593 #endif
22594
22595 _ACEOF
22596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22597   $EGREP "You lose" >/dev/null 2>&1; then
22598   ac_cv_header_stat_broken=yes
22599 else
22600   ac_cv_header_stat_broken=no
22601 fi
22602 rm -f conftest*
22603
22604 fi
22605 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22606 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22607 if test $ac_cv_header_stat_broken = yes; then
22608
22609 cat >>confdefs.h <<\_ACEOF
22610 #define STAT_MACROS_BROKEN 1
22611 _ACEOF
22612
22613 fi
22614
22615 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22616 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22617 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22618   echo $ECHO_N "(cached) $ECHO_C" >&6
22619 else
22620   cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h.  */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h.  */
22626 #include <sys/types.h>
22627 #include <sys/wait.h>
22628 #ifndef WEXITSTATUS
22629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22630 #endif
22631 #ifndef WIFEXITED
22632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22633 #endif
22634
22635 int
22636 main ()
22637 {
22638   int s;
22639   wait (&s);
22640   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22641   ;
22642   return 0;
22643 }
22644 _ACEOF
22645 rm -f conftest.$ac_objext
22646 if { (ac_try="$ac_compile"
22647 case "(($ac_try" in
22648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649   *) ac_try_echo=$ac_try;;
22650 esac
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652   (eval "$ac_compile") 2>conftest.er1
22653   ac_status=$?
22654   grep -v '^ *+' conftest.er1 >conftest.err
22655   rm -f conftest.er1
22656   cat conftest.err >&5
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); } &&
22659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22660   { (case "(($ac_try" in
22661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662   *) ac_try_echo=$ac_try;;
22663 esac
22664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22665   (eval "$ac_try") 2>&5
22666   ac_status=$?
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); }; } &&
22669          { ac_try='test -s conftest.$ac_objext'
22670   { (case "(($ac_try" in
22671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672   *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675   (eval "$ac_try") 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; }; then
22679   ac_cv_header_sys_wait_h=yes
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684         ac_cv_header_sys_wait_h=no
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 fi
22689 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22690 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22691 if test $ac_cv_header_sys_wait_h = yes; then
22692
22693 cat >>confdefs.h <<\_ACEOF
22694 #define HAVE_SYS_WAIT_H 1
22695 _ACEOF
22696
22697 fi
22698
22699 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22701 if test "${ac_cv_header_time+set}" = set; then
22702   echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704   cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h.  */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h.  */
22710 #include <sys/types.h>
22711 #include <sys/time.h>
22712 #include <time.h>
22713
22714 int
22715 main ()
22716 {
22717 if ((struct tm *) 0)
22718 return 0;
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest.$ac_objext
22724 if { (ac_try="$ac_compile"
22725 case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730   (eval "$ac_compile") 2>conftest.er1
22731   ac_status=$?
22732   grep -v '^ *+' conftest.er1 >conftest.err
22733   rm -f conftest.er1
22734   cat conftest.err >&5
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } &&
22737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22738   { (case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743   (eval "$ac_try") 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; } &&
22747          { ac_try='test -s conftest.$ac_objext'
22748   { (case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_try") 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); }; }; then
22757   ac_cv_header_time=yes
22758 else
22759   echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762         ac_cv_header_time=no
22763 fi
22764
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 fi
22767 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22768 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22769 if test $ac_cv_header_time = yes; then
22770
22771 cat >>confdefs.h <<\_ACEOF
22772 #define TIME_WITH_SYS_TIME 1
22773 _ACEOF
22774
22775 fi
22776
22777 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22778 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22779 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22780   echo $ECHO_N "(cached) $ECHO_C" >&6
22781 else
22782   cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788 $ac_includes_default
22789 int
22790 main ()
22791 {
22792 static struct stat ac_aggr;
22793 if (ac_aggr.st_blksize)
22794 return 0;
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_compile") 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } &&
22813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22814   { (case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_try") 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); }; } &&
22823          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22830   ac_status=$?
22831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832   (exit $ac_status); }; }; then
22833   ac_cv_member_struct_stat_st_blksize=yes
22834 else
22835   echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22837
22838         cat >conftest.$ac_ext <<_ACEOF
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844 $ac_includes_default
22845 int
22846 main ()
22847 {
22848 static struct stat ac_aggr;
22849 if (sizeof ac_aggr.st_blksize)
22850 return 0;
22851   ;
22852   return 0;
22853 }
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_compile") 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } &&
22869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22870   { (case "(($ac_try" in
22871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872   *) ac_try_echo=$ac_try;;
22873 esac
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875   (eval "$ac_try") 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); }; } &&
22879          { ac_try='test -s conftest.$ac_objext'
22880   { (case "(($ac_try" in
22881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882   *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885   (eval "$ac_try") 2>&5
22886   ac_status=$?
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); }; }; then
22889   ac_cv_member_struct_stat_st_blksize=yes
22890 else
22891   echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894         ac_cv_member_struct_stat_st_blksize=no
22895 fi
22896
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 fi
22902 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22903 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22904 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22905
22906 cat >>confdefs.h <<_ACEOF
22907 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22908 _ACEOF
22909
22910
22911 cat >>confdefs.h <<\_ACEOF
22912 #define HAVE_ST_BLKSIZE 1
22913 _ACEOF
22914
22915 fi
22916
22917
22918 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22919 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22920 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22921   echo $ECHO_N "(cached) $ECHO_C" >&6
22922 else
22923   cat >conftest.$ac_ext <<_ACEOF
22924 /* confdefs.h.  */
22925 _ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h.  */
22929 $ac_includes_default
22930 int
22931 main ()
22932 {
22933 static struct stat ac_aggr;
22934 if (ac_aggr.st_blocks)
22935 return 0;
22936   ;
22937   return 0;
22938 }
22939 _ACEOF
22940 rm -f conftest.$ac_objext
22941 if { (ac_try="$ac_compile"
22942 case "(($ac_try" in
22943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944   *) ac_try_echo=$ac_try;;
22945 esac
22946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22947   (eval "$ac_compile") 2>conftest.er1
22948   ac_status=$?
22949   grep -v '^ *+' conftest.er1 >conftest.err
22950   rm -f conftest.er1
22951   cat conftest.err >&5
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); } &&
22954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22955   { (case "(($ac_try" in
22956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957   *) ac_try_echo=$ac_try;;
22958 esac
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960   (eval "$ac_try") 2>&5
22961   ac_status=$?
22962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963   (exit $ac_status); }; } &&
22964          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22971   ac_status=$?
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); }; }; then
22974   ac_cv_member_struct_stat_st_blocks=yes
22975 else
22976   echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22978
22979         cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h.  */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h.  */
22985 $ac_includes_default
22986 int
22987 main ()
22988 {
22989 static struct stat ac_aggr;
22990 if (sizeof ac_aggr.st_blocks)
22991 return 0;
22992   ;
22993   return 0;
22994 }
22995 _ACEOF
22996 rm -f conftest.$ac_objext
22997 if { (ac_try="$ac_compile"
22998 case "(($ac_try" in
22999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000   *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003   (eval "$ac_compile") 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } &&
23010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23011   { (case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016   (eval "$ac_try") 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); }; } &&
23020          { ac_try='test -s conftest.$ac_objext'
23021   { (case "(($ac_try" in
23022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023   *) ac_try_echo=$ac_try;;
23024 esac
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026   (eval "$ac_try") 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; }; then
23030   ac_cv_member_struct_stat_st_blocks=yes
23031 else
23032   echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035         ac_cv_member_struct_stat_st_blocks=no
23036 fi
23037
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039 fi
23040
23041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23042 fi
23043 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23044 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23045 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23046
23047 cat >>confdefs.h <<_ACEOF
23048 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23049 _ACEOF
23050
23051
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE_ST_BLOCKS 1
23054 _ACEOF
23055
23056 else
23057   case " $LIBOBJS " in
23058   *" fileblocks.$ac_objext "* ) ;;
23059   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23060  ;;
23061 esac
23062
23063 fi
23064
23065
23066 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23067 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23068 if test "${ac_cv_struct_tm+set}" = set; then
23069   echo $ECHO_N "(cached) $ECHO_C" >&6
23070 else
23071   cat >conftest.$ac_ext <<_ACEOF
23072 /* confdefs.h.  */
23073 _ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h.  */
23077 #include <sys/types.h>
23078 #include <time.h>
23079
23080 int
23081 main ()
23082 {
23083 struct tm *tp; tp->tm_sec;
23084   ;
23085   return 0;
23086 }
23087 _ACEOF
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092   *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095   (eval "$ac_compile") 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } &&
23102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23103   { (case "(($ac_try" in
23104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105   *) ac_try_echo=$ac_try;;
23106 esac
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108   (eval "$ac_try") 2>&5
23109   ac_status=$?
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); }; } &&
23112          { ac_try='test -s conftest.$ac_objext'
23113   { (case "(($ac_try" in
23114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115   *) ac_try_echo=$ac_try;;
23116 esac
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118   (eval "$ac_try") 2>&5
23119   ac_status=$?
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); }; }; then
23122   ac_cv_struct_tm=time.h
23123 else
23124   echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127         ac_cv_struct_tm=sys/time.h
23128 fi
23129
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 fi
23132 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23133 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23134 if test $ac_cv_struct_tm = sys/time.h; then
23135
23136 cat >>confdefs.h <<\_ACEOF
23137 #define TM_IN_SYS_TIME 1
23138 _ACEOF
23139
23140 fi
23141
23142 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23143 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23144 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23145   echo $ECHO_N "(cached) $ECHO_C" >&6
23146 else
23147   cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153 #include <sys/types.h>
23154 #include <$ac_cv_struct_tm>
23155
23156
23157 int
23158 main ()
23159 {
23160 static struct tm ac_aggr;
23161 if (ac_aggr.tm_zone)
23162 return 0;
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest.$ac_objext
23168 if { (ac_try="$ac_compile"
23169 case "(($ac_try" in
23170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171   *) ac_try_echo=$ac_try;;
23172 esac
23173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23174   (eval "$ac_compile") 2>conftest.er1
23175   ac_status=$?
23176   grep -v '^ *+' conftest.er1 >conftest.err
23177   rm -f conftest.er1
23178   cat conftest.err >&5
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } &&
23181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23182   { (case "(($ac_try" in
23183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184   *) ac_try_echo=$ac_try;;
23185 esac
23186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23187   (eval "$ac_try") 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; } &&
23191          { ac_try='test -s conftest.$ac_objext'
23192   { (case "(($ac_try" in
23193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194   *) ac_try_echo=$ac_try;;
23195 esac
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197   (eval "$ac_try") 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); }; }; then
23201   ac_cv_member_struct_tm_tm_zone=yes
23202 else
23203   echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23205
23206         cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h.  */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h.  */
23212 #include <sys/types.h>
23213 #include <$ac_cv_struct_tm>
23214
23215
23216 int
23217 main ()
23218 {
23219 static struct tm ac_aggr;
23220 if (sizeof ac_aggr.tm_zone)
23221 return 0;
23222   ;
23223   return 0;
23224 }
23225 _ACEOF
23226 rm -f conftest.$ac_objext
23227 if { (ac_try="$ac_compile"
23228 case "(($ac_try" in
23229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230   *) ac_try_echo=$ac_try;;
23231 esac
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233   (eval "$ac_compile") 2>conftest.er1
23234   ac_status=$?
23235   grep -v '^ *+' conftest.er1 >conftest.err
23236   rm -f conftest.er1
23237   cat conftest.err >&5
23238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239   (exit $ac_status); } &&
23240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23241   { (case "(($ac_try" in
23242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23243   *) ac_try_echo=$ac_try;;
23244 esac
23245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23246   (eval "$ac_try") 2>&5
23247   ac_status=$?
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); }; } &&
23250          { ac_try='test -s conftest.$ac_objext'
23251   { (case "(($ac_try" in
23252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253   *) ac_try_echo=$ac_try;;
23254 esac
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256   (eval "$ac_try") 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; }; then
23260   ac_cv_member_struct_tm_tm_zone=yes
23261 else
23262   echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265         ac_cv_member_struct_tm_tm_zone=no
23266 fi
23267
23268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23269 fi
23270
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 fi
23273 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23274 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23275 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23276
23277 cat >>confdefs.h <<_ACEOF
23278 #define HAVE_STRUCT_TM_TM_ZONE 1
23279 _ACEOF
23280
23281
23282 fi
23283
23284 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23285
23286 cat >>confdefs.h <<\_ACEOF
23287 #define HAVE_TM_ZONE 1
23288 _ACEOF
23289
23290 else
23291   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23292 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23293 if test "${ac_cv_have_decl_tzname+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 #include <time.h>
23303
23304 int
23305 main ()
23306 {
23307 #ifndef tzname
23308   char *p = (char *) tzname;
23309   return !p;
23310 #endif
23311
23312   ;
23313   return 0;
23314 }
23315 _ACEOF
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320   *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323   (eval "$ac_compile") 2>conftest.er1
23324   ac_status=$?
23325   grep -v '^ *+' conftest.er1 >conftest.err
23326   rm -f conftest.er1
23327   cat conftest.err >&5
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); } &&
23330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23331   { (case "(($ac_try" in
23332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333   *) ac_try_echo=$ac_try;;
23334 esac
23335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23336   (eval "$ac_try") 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; } &&
23340          { ac_try='test -s conftest.$ac_objext'
23341   { (case "(($ac_try" in
23342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343   *) ac_try_echo=$ac_try;;
23344 esac
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346   (eval "$ac_try") 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; }; then
23350   ac_cv_have_decl_tzname=yes
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355         ac_cv_have_decl_tzname=no
23356 fi
23357
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 fi
23360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23361 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23362 if test $ac_cv_have_decl_tzname = yes; then
23363
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_DECL_TZNAME 1
23366 _ACEOF
23367
23368
23369 else
23370   cat >>confdefs.h <<_ACEOF
23371 #define HAVE_DECL_TZNAME 0
23372 _ACEOF
23373
23374
23375 fi
23376
23377
23378   { echo "$as_me:$LINENO: checking for tzname" >&5
23379 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23380 if test "${ac_cv_var_tzname+set}" = set; then
23381   echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383   cat >conftest.$ac_ext <<_ACEOF
23384 /* confdefs.h.  */
23385 _ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h.  */
23389 #include <time.h>
23390 #if !HAVE_DECL_TZNAME
23391 extern char *tzname[];
23392 #endif
23393
23394 int
23395 main ()
23396 {
23397 return tzname[0][0];
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (ac_try="$ac_link"
23404 case "(($ac_try" in
23405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406   *) ac_try_echo=$ac_try;;
23407 esac
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409   (eval "$ac_link") 2>conftest.er1
23410   ac_status=$?
23411   grep -v '^ *+' conftest.er1 >conftest.err
23412   rm -f conftest.er1
23413   cat conftest.err >&5
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } &&
23416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23417   { (case "(($ac_try" in
23418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419   *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422   (eval "$ac_try") 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); }; } &&
23426          { ac_try='test -s conftest$ac_exeext'
23427   { (case "(($ac_try" in
23428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429   *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432   (eval "$ac_try") 2>&5
23433   ac_status=$?
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); }; }; then
23436   ac_cv_var_tzname=yes
23437 else
23438   echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23440
23441         ac_cv_var_tzname=no
23442 fi
23443
23444 rm -f core conftest.err conftest.$ac_objext \
23445       conftest$ac_exeext conftest.$ac_ext
23446 fi
23447 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23448 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23449   if test $ac_cv_var_tzname = yes; then
23450
23451 cat >>confdefs.h <<\_ACEOF
23452 #define HAVE_TZNAME 1
23453 _ACEOF
23454
23455   fi
23456 fi
23457
23458
23459 { echo "$as_me:$LINENO: checking for utime.h" >&5
23460 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23461 if test "${ba_cv_header_utime_h+set}" = set; then
23462   echo $ECHO_N "(cached) $ECHO_C" >&6
23463 else
23464   cat >conftest.$ac_ext <<_ACEOF
23465 /* confdefs.h.  */
23466 _ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h.  */
23470
23471 #include <sys/types.h>
23472 #include <utime.h>
23473 int
23474 main ()
23475 {
23476 struct utimbuf foo
23477   ;
23478   return 0;
23479 }
23480 _ACEOF
23481 rm -f conftest.$ac_objext
23482 if { (ac_try="$ac_compile"
23483 case "(($ac_try" in
23484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485   *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488   (eval "$ac_compile") 2>conftest.er1
23489   ac_status=$?
23490   grep -v '^ *+' conftest.er1 >conftest.err
23491   rm -f conftest.er1
23492   cat conftest.err >&5
23493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494   (exit $ac_status); } &&
23495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23496   { (case "(($ac_try" in
23497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498   *) ac_try_echo=$ac_try;;
23499 esac
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501   (eval "$ac_try") 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; } &&
23505          { ac_try='test -s conftest.$ac_objext'
23506   { (case "(($ac_try" in
23507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508   *) ac_try_echo=$ac_try;;
23509 esac
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511   (eval "$ac_try") 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; }; then
23515   ba_cv_header_utime_h=yes
23516 else
23517   echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23519
23520         ba_cv_header_utime_h=no
23521 fi
23522
23523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 fi
23525 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23526 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23527 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23528 #define HAVE_UTIME_H 1
23529 _ACEOF
23530
23531
23532 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23533 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23534 if test "${ba_cv_header_socklen_t+set}" = set; then
23535   echo $ECHO_N "(cached) $ECHO_C" >&6
23536 else
23537   cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543
23544 #include <sys/types.h>
23545 #include <sys/socket.h>
23546 int
23547 main ()
23548 {
23549 socklen_t x
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext
23555 if { (ac_try="$ac_compile"
23556 case "(($ac_try" in
23557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558   *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561   (eval "$ac_compile") 2>conftest.er1
23562   ac_status=$?
23563   grep -v '^ *+' conftest.er1 >conftest.err
23564   rm -f conftest.er1
23565   cat conftest.err >&5
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } &&
23568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23569   { (case "(($ac_try" in
23570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571   *) ac_try_echo=$ac_try;;
23572 esac
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574   (eval "$ac_try") 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; } &&
23578          { ac_try='test -s conftest.$ac_objext'
23579   { (case "(($ac_try" in
23580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581   *) ac_try_echo=$ac_try;;
23582 esac
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584   (eval "$ac_try") 2>&5
23585   ac_status=$?
23586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587   (exit $ac_status); }; }; then
23588   ba_cv_header_socklen_t=yes
23589 else
23590   echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23592
23593         ba_cv_header_socklen_t=no
23594 fi
23595
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 fi
23598 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23599 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23600 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23601 #define HAVE_SOCKLEN_T 1
23602 _ACEOF
23603
23604
23605 { echo "$as_me:$LINENO: checking for bigendian" >&5
23606 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23607 if test "${ba_cv_bigendian+set}" = set; then
23608   echo $ECHO_N "(cached) $ECHO_C" >&6
23609 else
23610   if test "$cross_compiling" = yes; then
23611   ba_cv_bigendian=no
23612 else
23613   cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23620 _ACEOF
23621 rm -f conftest$ac_exeext
23622 if { (ac_try="$ac_link"
23623 case "(($ac_try" in
23624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625   *) ac_try_echo=$ac_try;;
23626 esac
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628   (eval "$ac_link") 2>&5
23629   ac_status=$?
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23632   { (case "(($ac_try" in
23633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634   *) ac_try_echo=$ac_try;;
23635 esac
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637   (eval "$ac_try") 2>&5
23638   ac_status=$?
23639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); }; }; then
23641   ba_cv_bigendian=yes
23642 else
23643   echo "$as_me: program exited with status $ac_status" >&5
23644 echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647 ( exit $ac_status )
23648 ba_cv_bigendian=no
23649 fi
23650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23651 fi
23652
23653
23654 fi
23655 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23656 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23657 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23658 #define HAVE_BIGENDIAN 1
23659 _ACEOF
23660
23661
23662 ac_ext=cpp
23663 ac_cpp='$CXXCPP $CPPFLAGS'
23664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23667
23668
23669 { echo "$as_me:$LINENO: checking for typeof" >&5
23670 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23671 if test "${ba_cv_have_typeof+set}" = set; then
23672   echo $ECHO_N "(cached) $ECHO_C" >&6
23673 else
23674   if test "$cross_compiling" = yes; then
23675   ba_cv_have_typeof=no
23676 else
23677   cat >conftest.$ac_ext <<_ACEOF
23678 /* confdefs.h.  */
23679 _ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h.  */
23683 main(){char *a = 0; a = (typeof a)a;}
23684 _ACEOF
23685 rm -f conftest$ac_exeext
23686 if { (ac_try="$ac_link"
23687 case "(($ac_try" in
23688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689   *) ac_try_echo=$ac_try;;
23690 esac
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692   (eval "$ac_link") 2>&5
23693   ac_status=$?
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23696   { (case "(($ac_try" in
23697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698   *) ac_try_echo=$ac_try;;
23699 esac
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701   (eval "$ac_try") 2>&5
23702   ac_status=$?
23703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704   (exit $ac_status); }; }; then
23705   ba_cv_have_typeof=yes
23706 else
23707   echo "$as_me: program exited with status $ac_status" >&5
23708 echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23710
23711 ( exit $ac_status )
23712 ba_cv_have_typeof=no
23713 fi
23714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23715 fi
23716
23717
23718 fi
23719 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23720 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23721 test $ba_cv_have_typeof = yes &&
23722 cat >>confdefs.h <<\_ACEOF
23723 #define HAVE_TYPEOF 1
23724 _ACEOF
23725
23726 ac_ext=c
23727 ac_cpp='$CPP $CPPFLAGS'
23728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23731
23732
23733 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23734 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23735 if test "${ac_cv_c_const+set}" = set; then
23736   echo $ECHO_N "(cached) $ECHO_C" >&6
23737 else
23738   cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744
23745 int
23746 main ()
23747 {
23748 /* FIXME: Include the comments suggested by Paul. */
23749 #ifndef __cplusplus
23750   /* Ultrix mips cc rejects this.  */
23751   typedef int charset[2];
23752   const charset x;
23753   /* SunOS 4.1.1 cc rejects this.  */
23754   char const *const *ccp;
23755   char **p;
23756   /* NEC SVR4.0.2 mips cc rejects this.  */
23757   struct point {int x, y;};
23758   static struct point const zero = {0,0};
23759   /* AIX XL C 1.02.0.0 rejects this.
23760      It does not let you subtract one const X* pointer from another in
23761      an arm of an if-expression whose if-part is not a constant
23762      expression */
23763   const char *g = "string";
23764   ccp = &g + (g ? g-g : 0);
23765   /* HPUX 7.0 cc rejects these. */
23766   ++ccp;
23767   p = (char**) ccp;
23768   ccp = (char const *const *) p;
23769   { /* SCO 3.2v4 cc rejects this.  */
23770     char *t;
23771     char const *s = 0 ? (char *) 0 : (char const *) 0;
23772
23773     *t++ = 0;
23774     if (s) return 0;
23775   }
23776   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23777     int x[] = {25, 17};
23778     const int *foo = &x[0];
23779     ++foo;
23780   }
23781   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23782     typedef const int *iptr;
23783     iptr p = 0;
23784     ++p;
23785   }
23786   { /* AIX XL C 1.02.0.0 rejects this saying
23787        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23788     struct s { int j; const int *ap[3]; };
23789     struct s *b; b->j = 5;
23790   }
23791   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23792     const int foo = 10;
23793     if (!foo) return 0;
23794   }
23795   return !x[0] && !zero.x;
23796 #endif
23797
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806   *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809   (eval "$ac_compile") 2>conftest.er1
23810   ac_status=$?
23811   grep -v '^ *+' conftest.er1 >conftest.err
23812   rm -f conftest.er1
23813   cat conftest.err >&5
23814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815   (exit $ac_status); } &&
23816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23817   { (case "(($ac_try" in
23818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23819   *) ac_try_echo=$ac_try;;
23820 esac
23821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23822   (eval "$ac_try") 2>&5
23823   ac_status=$?
23824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825   (exit $ac_status); }; } &&
23826          { ac_try='test -s conftest.$ac_objext'
23827   { (case "(($ac_try" in
23828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829   *) ac_try_echo=$ac_try;;
23830 esac
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832   (eval "$ac_try") 2>&5
23833   ac_status=$?
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); }; }; then
23836   ac_cv_c_const=yes
23837 else
23838   echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841         ac_cv_c_const=no
23842 fi
23843
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23845 fi
23846 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23847 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23848 if test $ac_cv_c_const = no; then
23849
23850 cat >>confdefs.h <<\_ACEOF
23851 #define const
23852 _ACEOF
23853
23854 fi
23855
23856
23857
23858 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23859 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23860 fstype=no
23861 # The order of these tests is important.
23862 cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h.  */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h.  */
23868 #include <sys/statvfs.h>
23869 #include <sys/fstyp.h>
23870 _ACEOF
23871 if { (ac_try="$ac_cpp conftest.$ac_ext"
23872 case "(($ac_try" in
23873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874   *) ac_try_echo=$ac_try;;
23875 esac
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23878   ac_status=$?
23879   grep -v '^ *+' conftest.er1 >conftest.err
23880   rm -f conftest.er1
23881   cat conftest.err >&5
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); } >/dev/null; then
23884   if test -s conftest.err; then
23885     ac_cpp_err=$ac_c_preproc_warn_flag
23886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23887   else
23888     ac_cpp_err=
23889   fi
23890 else
23891   ac_cpp_err=yes
23892 fi
23893 if test -z "$ac_cpp_err"; then
23894   cat >>confdefs.h <<\_ACEOF
23895 #define FSTYPE_STATVFS 1
23896 _ACEOF
23897  fstype=SVR4
23898 else
23899   echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23901
23902
23903 fi
23904
23905 rm -f conftest.err conftest.$ac_ext
23906 if test $fstype = no; then
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 #include <sys/statfs.h>
23914 #include <sys/fstyp.h>
23915 _ACEOF
23916 if { (ac_try="$ac_cpp conftest.$ac_ext"
23917 case "(($ac_try" in
23918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919   *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } >/dev/null; then
23929   if test -s conftest.err; then
23930     ac_cpp_err=$ac_c_preproc_warn_flag
23931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23932   else
23933     ac_cpp_err=
23934   fi
23935 else
23936   ac_cpp_err=yes
23937 fi
23938 if test -z "$ac_cpp_err"; then
23939   cat >>confdefs.h <<\_ACEOF
23940 #define FSTYPE_USG_STATFS 1
23941 _ACEOF
23942  fstype=SVR3
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947
23948 fi
23949
23950 rm -f conftest.err conftest.$ac_ext
23951 fi
23952 if test $fstype = no; then
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959 #include <sys/statfs.h>
23960 #include <sys/vmount.h>
23961 _ACEOF
23962 if { (ac_try="$ac_cpp conftest.$ac_ext"
23963 case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23969   ac_status=$?
23970   grep -v '^ *+' conftest.er1 >conftest.err
23971   rm -f conftest.er1
23972   cat conftest.err >&5
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } >/dev/null; then
23975   if test -s conftest.err; then
23976     ac_cpp_err=$ac_c_preproc_warn_flag
23977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23978   else
23979     ac_cpp_err=
23980   fi
23981 else
23982   ac_cpp_err=yes
23983 fi
23984 if test -z "$ac_cpp_err"; then
23985   cat >>confdefs.h <<\_ACEOF
23986 #define FSTYPE_AIX_STATFS 1
23987 _ACEOF
23988  fstype=AIX
23989 else
23990   echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23992
23993
23994 fi
23995
23996 rm -f conftest.err conftest.$ac_ext
23997 fi
23998 if test $fstype = no; then
23999 cat >conftest.$ac_ext <<_ACEOF
24000 /* confdefs.h.  */
24001 _ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h.  */
24005 #include <mntent.h>
24006 _ACEOF
24007 if { (ac_try="$ac_cpp conftest.$ac_ext"
24008 case "(($ac_try" in
24009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010   *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24014   ac_status=$?
24015   grep -v '^ *+' conftest.er1 >conftest.err
24016   rm -f conftest.er1
24017   cat conftest.err >&5
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); } >/dev/null; then
24020   if test -s conftest.err; then
24021     ac_cpp_err=$ac_c_preproc_warn_flag
24022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24023   else
24024     ac_cpp_err=
24025   fi
24026 else
24027   ac_cpp_err=yes
24028 fi
24029 if test -z "$ac_cpp_err"; then
24030   cat >>confdefs.h <<\_ACEOF
24031 #define FSTYPE_MNTENT 1
24032 _ACEOF
24033  fstype=4.3BSD
24034 else
24035   echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038
24039 fi
24040
24041 rm -f conftest.err conftest.$ac_ext
24042 fi
24043 if test $fstype = no; then
24044 cat >conftest.$ac_ext <<_ACEOF
24045 /* confdefs.h.  */
24046 _ACEOF
24047 cat confdefs.h >>conftest.$ac_ext
24048 cat >>conftest.$ac_ext <<_ACEOF
24049 /* end confdefs.h.  */
24050 #include <sys/mount.h>
24051
24052 _ACEOF
24053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24054   $EGREP "f_type;" >/dev/null 2>&1; then
24055   cat >>confdefs.h <<\_ACEOF
24056 #define FSTYPE_STATFS 1
24057 _ACEOF
24058  fstype=4.4BSD/OSF1
24059 fi
24060 rm -f conftest*
24061
24062 fi
24063 if test $fstype = no; then
24064 cat >conftest.$ac_ext <<_ACEOF
24065 /* confdefs.h.  */
24066 _ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h.  */
24070 #include <sys/mount.h>
24071 #include <sys/fs_types.h>
24072 _ACEOF
24073 if { (ac_try="$ac_cpp conftest.$ac_ext"
24074 case "(($ac_try" in
24075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076   *) ac_try_echo=$ac_try;;
24077 esac
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24080   ac_status=$?
24081   grep -v '^ *+' conftest.er1 >conftest.err
24082   rm -f conftest.er1
24083   cat conftest.err >&5
24084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085   (exit $ac_status); } >/dev/null; then
24086   if test -s conftest.err; then
24087     ac_cpp_err=$ac_c_preproc_warn_flag
24088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24089   else
24090     ac_cpp_err=
24091   fi
24092 else
24093   ac_cpp_err=yes
24094 fi
24095 if test -z "$ac_cpp_err"; then
24096   cat >>confdefs.h <<\_ACEOF
24097 #define FSTYPE_GETMNT 1
24098 _ACEOF
24099  fstype=Ultrix
24100 else
24101   echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24103
24104
24105 fi
24106
24107 rm -f conftest.err conftest.$ac_ext
24108 fi
24109 { echo "$as_me:$LINENO: result: $fstype" >&5
24110 echo "${ECHO_T}$fstype" >&6; }
24111
24112 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24113   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24114 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24115 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 fi
24118 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24119 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24120 else
24121   # Is the header compilable?
24122 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24123 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24124 cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h.  */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h.  */
24130 $ac_includes_default
24131 #include <sys/statvfs.h>
24132 _ACEOF
24133 rm -f conftest.$ac_objext
24134 if { (ac_try="$ac_compile"
24135 case "(($ac_try" in
24136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137   *) ac_try_echo=$ac_try;;
24138 esac
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140   (eval "$ac_compile") 2>conftest.er1
24141   ac_status=$?
24142   grep -v '^ *+' conftest.er1 >conftest.err
24143   rm -f conftest.er1
24144   cat conftest.err >&5
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } &&
24147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24148   { (case "(($ac_try" in
24149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150   *) ac_try_echo=$ac_try;;
24151 esac
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153   (eval "$ac_try") 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; } &&
24157          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
24164   ac_status=$?
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); }; }; then
24167   ac_header_compiler=yes
24168 else
24169   echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24171
24172         ac_header_compiler=no
24173 fi
24174
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24177 echo "${ECHO_T}$ac_header_compiler" >&6; }
24178
24179 # Is the header present?
24180 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24181 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h.  */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h.  */
24188 #include <sys/statvfs.h>
24189 _ACEOF
24190 if { (ac_try="$ac_cpp conftest.$ac_ext"
24191 case "(($ac_try" in
24192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193   *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24197   ac_status=$?
24198   grep -v '^ *+' conftest.er1 >conftest.err
24199   rm -f conftest.er1
24200   cat conftest.err >&5
24201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202   (exit $ac_status); } >/dev/null; then
24203   if test -s conftest.err; then
24204     ac_cpp_err=$ac_c_preproc_warn_flag
24205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24206   else
24207     ac_cpp_err=
24208   fi
24209 else
24210   ac_cpp_err=yes
24211 fi
24212 if test -z "$ac_cpp_err"; then
24213   ac_header_preproc=yes
24214 else
24215   echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24217
24218   ac_header_preproc=no
24219 fi
24220
24221 rm -f conftest.err conftest.$ac_ext
24222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24223 echo "${ECHO_T}$ac_header_preproc" >&6; }
24224
24225 # So?  What about this header?
24226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24227   yes:no: )
24228     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24229 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24230     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24231 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24232     ac_header_preproc=yes
24233     ;;
24234   no:yes:* )
24235     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24236 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24237     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24238 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24239     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24240 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24241     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24242 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24243     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24244 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24245     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24246 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24247
24248     ;;
24249 esac
24250 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24251 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24252 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24253   echo $ECHO_N "(cached) $ECHO_C" >&6
24254 else
24255   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24256 fi
24257 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24258 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24259
24260 fi
24261 if test $ac_cv_header_sys_statvfs_h = yes; then
24262
24263 cat >>confdefs.h <<\_ACEOF
24264 #define HAVE_SYS_STATVFS_H 1
24265 _ACEOF
24266
24267 fi
24268
24269
24270
24271 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24272 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24273 if test "${ac_cv_type_signal+set}" = set; then
24274   echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276   cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282 #include <sys/types.h>
24283 #include <signal.h>
24284
24285 int
24286 main ()
24287 {
24288 return *(signal (0, 0)) (0) == 1;
24289   ;
24290   return 0;
24291 }
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297   *) ac_try_echo=$ac_try;;
24298 esac
24299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24300   (eval "$ac_compile") 2>conftest.er1
24301   ac_status=$?
24302   grep -v '^ *+' conftest.er1 >conftest.err
24303   rm -f conftest.er1
24304   cat conftest.err >&5
24305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306   (exit $ac_status); } &&
24307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24308   { (case "(($ac_try" in
24309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310   *) ac_try_echo=$ac_try;;
24311 esac
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313   (eval "$ac_try") 2>&5
24314   ac_status=$?
24315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316   (exit $ac_status); }; } &&
24317          { ac_try='test -s conftest.$ac_objext'
24318   { (case "(($ac_try" in
24319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320   *) ac_try_echo=$ac_try;;
24321 esac
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323   (eval "$ac_try") 2>&5
24324   ac_status=$?
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); }; }; then
24327   ac_cv_type_signal=int
24328 else
24329   echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24331
24332         ac_cv_type_signal=void
24333 fi
24334
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24336 fi
24337 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24338 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24339
24340 cat >>confdefs.h <<_ACEOF
24341 #define RETSIGTYPE $ac_cv_type_signal
24342 _ACEOF
24343
24344
24345
24346   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24347 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24348   if test "${bash_cv_signal_vintage+set}" = set; then
24349   echo $ECHO_N "(cached) $ECHO_C" >&6
24350 else
24351
24352     cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358 #include <signal.h>
24359 int
24360 main ()
24361 {
24362
24363       sigset_t ss;
24364       struct sigaction sa;
24365       sigemptyset(&ss); sigsuspend(&ss);
24366       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24367       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24368
24369   ;
24370   return 0;
24371 }
24372 _ACEOF
24373 rm -f conftest.$ac_objext conftest$ac_exeext
24374 if { (ac_try="$ac_link"
24375 case "(($ac_try" in
24376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377   *) ac_try_echo=$ac_try;;
24378 esac
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380   (eval "$ac_link") 2>conftest.er1
24381   ac_status=$?
24382   grep -v '^ *+' conftest.er1 >conftest.err
24383   rm -f conftest.er1
24384   cat conftest.err >&5
24385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); } &&
24387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24388   { (case "(($ac_try" in
24389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390   *) ac_try_echo=$ac_try;;
24391 esac
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393   (eval "$ac_try") 2>&5
24394   ac_status=$?
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); }; } &&
24397          { ac_try='test -s conftest$ac_exeext'
24398   { (case "(($ac_try" in
24399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400   *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403   (eval "$ac_try") 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); }; }; then
24407   bash_cv_signal_vintage="posix"
24408 else
24409   echo "$as_me: failed program was:" >&5
24410 sed 's/^/| /' conftest.$ac_ext >&5
24411
24412
24413       cat >conftest.$ac_ext <<_ACEOF
24414 /* confdefs.h.  */
24415 _ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h.  */
24419 #include <signal.h>
24420 int
24421 main ()
24422 {
24423
24424           int mask = sigmask(SIGINT);
24425           sigsetmask(mask); sigblock(mask); sigpause(mask);
24426
24427   ;
24428   return 0;
24429 }
24430 _ACEOF
24431 rm -f conftest.$ac_objext conftest$ac_exeext
24432 if { (ac_try="$ac_link"
24433 case "(($ac_try" in
24434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435   *) ac_try_echo=$ac_try;;
24436 esac
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438   (eval "$ac_link") 2>conftest.er1
24439   ac_status=$?
24440   grep -v '^ *+' conftest.er1 >conftest.err
24441   rm -f conftest.er1
24442   cat conftest.err >&5
24443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444   (exit $ac_status); } &&
24445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24446   { (case "(($ac_try" in
24447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448   *) ac_try_echo=$ac_try;;
24449 esac
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451   (eval "$ac_try") 2>&5
24452   ac_status=$?
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); }; } &&
24455          { ac_try='test -s conftest$ac_exeext'
24456   { (case "(($ac_try" in
24457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458   *) ac_try_echo=$ac_try;;
24459 esac
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461   (eval "$ac_try") 2>&5
24462   ac_status=$?
24463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464   (exit $ac_status); }; }; then
24465   bash_cv_signal_vintage="4.2bsd"
24466 else
24467   echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24469
24470
24471         cat >conftest.$ac_ext <<_ACEOF
24472 /* confdefs.h.  */
24473 _ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h.  */
24477
24478           #include <signal.h>
24479           RETSIGTYPE foo() { }
24480 int
24481 main ()
24482 {
24483
24484                   int mask = sigmask(SIGINT);
24485                   sigset(SIGINT, foo); sigrelse(SIGINT);
24486                   sighold(SIGINT); sigpause(SIGINT);
24487
24488   ;
24489   return 0;
24490 }
24491 _ACEOF
24492 rm -f conftest.$ac_objext conftest$ac_exeext
24493 if { (ac_try="$ac_link"
24494 case "(($ac_try" in
24495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496   *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499   (eval "$ac_link") 2>conftest.er1
24500   ac_status=$?
24501   grep -v '^ *+' conftest.er1 >conftest.err
24502   rm -f conftest.er1
24503   cat conftest.err >&5
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); } &&
24506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24507   { (case "(($ac_try" in
24508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509   *) ac_try_echo=$ac_try;;
24510 esac
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512   (eval "$ac_try") 2>&5
24513   ac_status=$?
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); }; } &&
24516          { ac_try='test -s conftest$ac_exeext'
24517   { (case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_try") 2>&5
24523   ac_status=$?
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); }; }; then
24526   bash_cv_signal_vintage="svr3"
24527 else
24528   echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24530
24531         bash_cv_signal_vintage="v7"
24532
24533 fi
24534
24535 rm -f core conftest.err conftest.$ac_objext \
24536       conftest$ac_exeext conftest.$ac_ext
24537
24538 fi
24539
24540 rm -f core conftest.err conftest.$ac_objext \
24541       conftest$ac_exeext conftest.$ac_ext
24542
24543 fi
24544
24545 rm -f core conftest.err conftest.$ac_objext \
24546       conftest$ac_exeext conftest.$ac_ext
24547
24548 fi
24549
24550   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24551 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24552   if test "$bash_cv_signal_vintage" = "posix"; then
24553     cat >>confdefs.h <<\_ACEOF
24554 #define HAVE_POSIX_SIGNALS 1
24555 _ACEOF
24556
24557   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24558     cat >>confdefs.h <<\_ACEOF
24559 #define HAVE_BSD_SIGNALS 1
24560 _ACEOF
24561
24562   elif test "$bash_cv_signal_vintage" = "svr3"; then
24563     cat >>confdefs.h <<\_ACEOF
24564 #define HAVE_USG_SIGHOLD 1
24565 _ACEOF
24566
24567   fi
24568
24569 { echo "$as_me:$LINENO: checking for mode_t" >&5
24570 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24571 if test "${ac_cv_type_mode_t+set}" = set; then
24572   echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574   cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580 $ac_includes_default
24581 typedef mode_t ac__type_new_;
24582 int
24583 main ()
24584 {
24585 if ((ac__type_new_ *) 0)
24586   return 0;
24587 if (sizeof (ac__type_new_))
24588   return 0;
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext
24594 if { (ac_try="$ac_compile"
24595 case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600   (eval "$ac_compile") 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } &&
24607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24608   { (case "(($ac_try" in
24609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610   *) ac_try_echo=$ac_try;;
24611 esac
24612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613   (eval "$ac_try") 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; } &&
24617          { ac_try='test -s conftest.$ac_objext'
24618   { (case "(($ac_try" in
24619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620   *) ac_try_echo=$ac_try;;
24621 esac
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623   (eval "$ac_try") 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; }; then
24627   ac_cv_type_mode_t=yes
24628 else
24629   echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24631
24632         ac_cv_type_mode_t=no
24633 fi
24634
24635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636 fi
24637 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24638 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24639 if test $ac_cv_type_mode_t = yes; then
24640   :
24641 else
24642
24643 cat >>confdefs.h <<_ACEOF
24644 #define mode_t int
24645 _ACEOF
24646
24647 fi
24648
24649 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24650 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24651 if test "${ac_cv_type_uid_t+set}" = set; then
24652   echo $ECHO_N "(cached) $ECHO_C" >&6
24653 else
24654   cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660 #include <sys/types.h>
24661
24662 _ACEOF
24663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24664   $EGREP "uid_t" >/dev/null 2>&1; then
24665   ac_cv_type_uid_t=yes
24666 else
24667   ac_cv_type_uid_t=no
24668 fi
24669 rm -f conftest*
24670
24671 fi
24672 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24673 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24674 if test $ac_cv_type_uid_t = no; then
24675
24676 cat >>confdefs.h <<\_ACEOF
24677 #define uid_t int
24678 _ACEOF
24679
24680
24681 cat >>confdefs.h <<\_ACEOF
24682 #define gid_t int
24683 _ACEOF
24684
24685 fi
24686
24687 { echo "$as_me:$LINENO: checking for size_t" >&5
24688 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24689 if test "${ac_cv_type_size_t+set}" = set; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h.  */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h.  */
24698 $ac_includes_default
24699 typedef size_t ac__type_new_;
24700 int
24701 main ()
24702 {
24703 if ((ac__type_new_ *) 0)
24704   return 0;
24705 if (sizeof (ac__type_new_))
24706   return 0;
24707   ;
24708   return 0;
24709 }
24710 _ACEOF
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715   *) ac_try_echo=$ac_try;;
24716 esac
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718   (eval "$ac_compile") 2>conftest.er1
24719   ac_status=$?
24720   grep -v '^ *+' conftest.er1 >conftest.err
24721   rm -f conftest.er1
24722   cat conftest.err >&5
24723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724   (exit $ac_status); } &&
24725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24726   { (case "(($ac_try" in
24727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728   *) ac_try_echo=$ac_try;;
24729 esac
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731   (eval "$ac_try") 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; } &&
24735          { ac_try='test -s conftest.$ac_objext'
24736   { (case "(($ac_try" in
24737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738   *) ac_try_echo=$ac_try;;
24739 esac
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741   (eval "$ac_try") 2>&5
24742   ac_status=$?
24743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744   (exit $ac_status); }; }; then
24745   ac_cv_type_size_t=yes
24746 else
24747   echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750         ac_cv_type_size_t=no
24751 fi
24752
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24754 fi
24755 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24756 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24757 if test $ac_cv_type_size_t = yes; then
24758   :
24759 else
24760
24761 cat >>confdefs.h <<_ACEOF
24762 #define size_t unsigned int
24763 _ACEOF
24764
24765 fi
24766
24767 { echo "$as_me:$LINENO: checking for pid_t" >&5
24768 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24769 if test "${ac_cv_type_pid_t+set}" = set; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778 $ac_includes_default
24779 typedef pid_t ac__type_new_;
24780 int
24781 main ()
24782 {
24783 if ((ac__type_new_ *) 0)
24784   return 0;
24785 if (sizeof (ac__type_new_))
24786   return 0;
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext
24792 if { (ac_try="$ac_compile"
24793 case "(($ac_try" in
24794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795   *) ac_try_echo=$ac_try;;
24796 esac
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798   (eval "$ac_compile") 2>conftest.er1
24799   ac_status=$?
24800   grep -v '^ *+' conftest.er1 >conftest.err
24801   rm -f conftest.er1
24802   cat conftest.err >&5
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); } &&
24805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24806   { (case "(($ac_try" in
24807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808   *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811   (eval "$ac_try") 2>&5
24812   ac_status=$?
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); }; } &&
24815          { ac_try='test -s conftest.$ac_objext'
24816   { (case "(($ac_try" in
24817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24818   *) ac_try_echo=$ac_try;;
24819 esac
24820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24821   (eval "$ac_try") 2>&5
24822   ac_status=$?
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); }; }; then
24825   ac_cv_type_pid_t=yes
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830         ac_cv_type_pid_t=no
24831 fi
24832
24833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834 fi
24835 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24836 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24837 if test $ac_cv_type_pid_t = yes; then
24838   :
24839 else
24840
24841 cat >>confdefs.h <<_ACEOF
24842 #define pid_t int
24843 _ACEOF
24844
24845 fi
24846
24847 { echo "$as_me:$LINENO: checking for off_t" >&5
24848 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24849 if test "${ac_cv_type_off_t+set}" = set; then
24850   echo $ECHO_N "(cached) $ECHO_C" >&6
24851 else
24852   cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858 $ac_includes_default
24859 typedef off_t ac__type_new_;
24860 int
24861 main ()
24862 {
24863 if ((ac__type_new_ *) 0)
24864   return 0;
24865 if (sizeof (ac__type_new_))
24866   return 0;
24867   ;
24868   return 0;
24869 }
24870 _ACEOF
24871 rm -f conftest.$ac_objext
24872 if { (ac_try="$ac_compile"
24873 case "(($ac_try" in
24874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875   *) ac_try_echo=$ac_try;;
24876 esac
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878   (eval "$ac_compile") 2>conftest.er1
24879   ac_status=$?
24880   grep -v '^ *+' conftest.er1 >conftest.err
24881   rm -f conftest.er1
24882   cat conftest.err >&5
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); } &&
24885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24886   { (case "(($ac_try" in
24887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888   *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891   (eval "$ac_try") 2>&5
24892   ac_status=$?
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); }; } &&
24895          { ac_try='test -s conftest.$ac_objext'
24896   { (case "(($ac_try" in
24897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898   *) ac_try_echo=$ac_try;;
24899 esac
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901   (eval "$ac_try") 2>&5
24902   ac_status=$?
24903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); }; }; then
24905   ac_cv_type_off_t=yes
24906 else
24907   echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910         ac_cv_type_off_t=no
24911 fi
24912
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914 fi
24915 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24916 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24917 if test $ac_cv_type_off_t = yes; then
24918   :
24919 else
24920
24921 cat >>confdefs.h <<_ACEOF
24922 #define off_t long int
24923 _ACEOF
24924
24925 fi
24926
24927 { echo "$as_me:$LINENO: checking for ino_t" >&5
24928 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24929 if test "${ac_cv_type_ino_t+set}" = set; then
24930   echo $ECHO_N "(cached) $ECHO_C" >&6
24931 else
24932   cat >conftest.$ac_ext <<_ACEOF
24933 /* confdefs.h.  */
24934 _ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h.  */
24938 $ac_includes_default
24939 typedef ino_t ac__type_new_;
24940 int
24941 main ()
24942 {
24943 if ((ac__type_new_ *) 0)
24944   return 0;
24945 if (sizeof (ac__type_new_))
24946   return 0;
24947   ;
24948   return 0;
24949 }
24950 _ACEOF
24951 rm -f conftest.$ac_objext
24952 if { (ac_try="$ac_compile"
24953 case "(($ac_try" in
24954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955   *) ac_try_echo=$ac_try;;
24956 esac
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958   (eval "$ac_compile") 2>conftest.er1
24959   ac_status=$?
24960   grep -v '^ *+' conftest.er1 >conftest.err
24961   rm -f conftest.er1
24962   cat conftest.err >&5
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); } &&
24965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24966   { (case "(($ac_try" in
24967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968   *) ac_try_echo=$ac_try;;
24969 esac
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971   (eval "$ac_try") 2>&5
24972   ac_status=$?
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); }; } &&
24975          { ac_try='test -s conftest.$ac_objext'
24976   { (case "(($ac_try" in
24977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978   *) ac_try_echo=$ac_try;;
24979 esac
24980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981   (eval "$ac_try") 2>&5
24982   ac_status=$?
24983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984   (exit $ac_status); }; }; then
24985   ac_cv_type_ino_t=yes
24986 else
24987   echo "$as_me: failed program was:" >&5
24988 sed 's/^/| /' conftest.$ac_ext >&5
24989
24990         ac_cv_type_ino_t=no
24991 fi
24992
24993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24994 fi
24995 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24996 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24997 if test $ac_cv_type_ino_t = yes; then
24998   :
24999 else
25000
25001 cat >>confdefs.h <<_ACEOF
25002 #define ino_t unsigned long
25003 _ACEOF
25004
25005 fi
25006
25007 { echo "$as_me:$LINENO: checking for dev_t" >&5
25008 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25009 if test "${ac_cv_type_dev_t+set}" = set; then
25010   echo $ECHO_N "(cached) $ECHO_C" >&6
25011 else
25012   cat >conftest.$ac_ext <<_ACEOF
25013 /* confdefs.h.  */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h.  */
25018 $ac_includes_default
25019 typedef dev_t ac__type_new_;
25020 int
25021 main ()
25022 {
25023 if ((ac__type_new_ *) 0)
25024   return 0;
25025 if (sizeof (ac__type_new_))
25026   return 0;
25027   ;
25028   return 0;
25029 }
25030 _ACEOF
25031 rm -f conftest.$ac_objext
25032 if { (ac_try="$ac_compile"
25033 case "(($ac_try" in
25034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035   *) ac_try_echo=$ac_try;;
25036 esac
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038   (eval "$ac_compile") 2>conftest.er1
25039   ac_status=$?
25040   grep -v '^ *+' conftest.er1 >conftest.err
25041   rm -f conftest.er1
25042   cat conftest.err >&5
25043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044   (exit $ac_status); } &&
25045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25046   { (case "(($ac_try" in
25047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25048   *) ac_try_echo=$ac_try;;
25049 esac
25050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25051   (eval "$ac_try") 2>&5
25052   ac_status=$?
25053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054   (exit $ac_status); }; } &&
25055          { ac_try='test -s conftest.$ac_objext'
25056   { (case "(($ac_try" in
25057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25058   *) ac_try_echo=$ac_try;;
25059 esac
25060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25061   (eval "$ac_try") 2>&5
25062   ac_status=$?
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); }; }; then
25065   ac_cv_type_dev_t=yes
25066 else
25067   echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25069
25070         ac_cv_type_dev_t=no
25071 fi
25072
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 fi
25075 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25076 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25077 if test $ac_cv_type_dev_t = yes; then
25078   :
25079 else
25080
25081 cat >>confdefs.h <<_ACEOF
25082 #define dev_t unsigned long
25083 _ACEOF
25084
25085 fi
25086
25087 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25088 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25089 if test "${ac_cv_type_daddr_t+set}" = set; then
25090   echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092   cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h.  */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h.  */
25098 $ac_includes_default
25099 typedef daddr_t ac__type_new_;
25100 int
25101 main ()
25102 {
25103 if ((ac__type_new_ *) 0)
25104   return 0;
25105 if (sizeof (ac__type_new_))
25106   return 0;
25107   ;
25108   return 0;
25109 }
25110 _ACEOF
25111 rm -f conftest.$ac_objext
25112 if { (ac_try="$ac_compile"
25113 case "(($ac_try" in
25114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115   *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118   (eval "$ac_compile") 2>conftest.er1
25119   ac_status=$?
25120   grep -v '^ *+' conftest.er1 >conftest.err
25121   rm -f conftest.er1
25122   cat conftest.err >&5
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } &&
25125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25126   { (case "(($ac_try" in
25127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128   *) ac_try_echo=$ac_try;;
25129 esac
25130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25131   (eval "$ac_try") 2>&5
25132   ac_status=$?
25133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134   (exit $ac_status); }; } &&
25135          { ac_try='test -s conftest.$ac_objext'
25136   { (case "(($ac_try" in
25137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138   *) ac_try_echo=$ac_try;;
25139 esac
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141   (eval "$ac_try") 2>&5
25142   ac_status=$?
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); }; }; then
25145   ac_cv_type_daddr_t=yes
25146 else
25147   echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150         ac_cv_type_daddr_t=no
25151 fi
25152
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 fi
25155 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25156 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25157 if test $ac_cv_type_daddr_t = yes; then
25158   :
25159 else
25160
25161 cat >>confdefs.h <<_ACEOF
25162 #define daddr_t long
25163 _ACEOF
25164
25165 fi
25166
25167 { echo "$as_me:$LINENO: checking for major_t" >&5
25168 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25169 if test "${ac_cv_type_major_t+set}" = set; then
25170   echo $ECHO_N "(cached) $ECHO_C" >&6
25171 else
25172   cat >conftest.$ac_ext <<_ACEOF
25173 /* confdefs.h.  */
25174 _ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h.  */
25178 $ac_includes_default
25179 typedef major_t ac__type_new_;
25180 int
25181 main ()
25182 {
25183 if ((ac__type_new_ *) 0)
25184   return 0;
25185 if (sizeof (ac__type_new_))
25186   return 0;
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (ac_try="$ac_compile"
25193 case "(($ac_try" in
25194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195   *) ac_try_echo=$ac_try;;
25196 esac
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198   (eval "$ac_compile") 2>conftest.er1
25199   ac_status=$?
25200   grep -v '^ *+' conftest.er1 >conftest.err
25201   rm -f conftest.er1
25202   cat conftest.err >&5
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); } &&
25205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25206   { (case "(($ac_try" in
25207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208   *) ac_try_echo=$ac_try;;
25209 esac
25210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211   (eval "$ac_try") 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); }; } &&
25215          { ac_try='test -s conftest.$ac_objext'
25216   { (case "(($ac_try" in
25217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218   *) ac_try_echo=$ac_try;;
25219 esac
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221   (eval "$ac_try") 2>&5
25222   ac_status=$?
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); }; }; then
25225   ac_cv_type_major_t=yes
25226 else
25227   echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230         ac_cv_type_major_t=no
25231 fi
25232
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234 fi
25235 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25236 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25237 if test $ac_cv_type_major_t = yes; then
25238   :
25239 else
25240
25241 cat >>confdefs.h <<_ACEOF
25242 #define major_t int
25243 _ACEOF
25244
25245 fi
25246
25247 { echo "$as_me:$LINENO: checking for minor_t" >&5
25248 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25249 if test "${ac_cv_type_minor_t+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252   cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h.  */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h.  */
25258 $ac_includes_default
25259 typedef minor_t ac__type_new_;
25260 int
25261 main ()
25262 {
25263 if ((ac__type_new_ *) 0)
25264   return 0;
25265 if (sizeof (ac__type_new_))
25266   return 0;
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275   *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278   (eval "$ac_compile") 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } &&
25285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25286   { (case "(($ac_try" in
25287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288   *) ac_try_echo=$ac_try;;
25289 esac
25290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25291   (eval "$ac_try") 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); }; } &&
25295          { ac_try='test -s conftest.$ac_objext'
25296   { (case "(($ac_try" in
25297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298   *) ac_try_echo=$ac_try;;
25299 esac
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301   (eval "$ac_try") 2>&5
25302   ac_status=$?
25303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304   (exit $ac_status); }; }; then
25305   ac_cv_type_minor_t=yes
25306 else
25307   echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25309
25310         ac_cv_type_minor_t=no
25311 fi
25312
25313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25314 fi
25315 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25316 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25317 if test $ac_cv_type_minor_t = yes; then
25318   :
25319 else
25320
25321 cat >>confdefs.h <<_ACEOF
25322 #define minor_t int
25323 _ACEOF
25324
25325 fi
25326
25327 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25328 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25329 if test "${ac_cv_type_ssize_t+set}" = set; then
25330   echo $ECHO_N "(cached) $ECHO_C" >&6
25331 else
25332   cat >conftest.$ac_ext <<_ACEOF
25333 /* confdefs.h.  */
25334 _ACEOF
25335 cat confdefs.h >>conftest.$ac_ext
25336 cat >>conftest.$ac_ext <<_ACEOF
25337 /* end confdefs.h.  */
25338 $ac_includes_default
25339 typedef ssize_t ac__type_new_;
25340 int
25341 main ()
25342 {
25343 if ((ac__type_new_ *) 0)
25344   return 0;
25345 if (sizeof (ac__type_new_))
25346   return 0;
25347   ;
25348   return 0;
25349 }
25350 _ACEOF
25351 rm -f conftest.$ac_objext
25352 if { (ac_try="$ac_compile"
25353 case "(($ac_try" in
25354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355   *) ac_try_echo=$ac_try;;
25356 esac
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358   (eval "$ac_compile") 2>conftest.er1
25359   ac_status=$?
25360   grep -v '^ *+' conftest.er1 >conftest.err
25361   rm -f conftest.er1
25362   cat conftest.err >&5
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); } &&
25365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25366   { (case "(($ac_try" in
25367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368   *) ac_try_echo=$ac_try;;
25369 esac
25370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25371   (eval "$ac_try") 2>&5
25372   ac_status=$?
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); }; } &&
25375          { ac_try='test -s conftest.$ac_objext'
25376   { (case "(($ac_try" in
25377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25378   *) ac_try_echo=$ac_try;;
25379 esac
25380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25381   (eval "$ac_try") 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); }; }; then
25385   ac_cv_type_ssize_t=yes
25386 else
25387   echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25389
25390         ac_cv_type_ssize_t=no
25391 fi
25392
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 fi
25395 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25396 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25397 if test $ac_cv_type_ssize_t = yes; then
25398   :
25399 else
25400
25401 cat >>confdefs.h <<_ACEOF
25402 #define ssize_t int
25403 _ACEOF
25404
25405 fi
25406
25407 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25408 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25409 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25410   echo $ECHO_N "(cached) $ECHO_C" >&6
25411 else
25412   cat >conftest.$ac_ext <<_ACEOF
25413 /* confdefs.h.  */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h.  */
25418 $ac_includes_default
25419 int
25420 main ()
25421 {
25422 static struct stat ac_aggr;
25423 if (ac_aggr.st_blocks)
25424 return 0;
25425   ;
25426   return 0;
25427 }
25428 _ACEOF
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436   (eval "$ac_compile") 2>conftest.er1
25437   ac_status=$?
25438   grep -v '^ *+' conftest.er1 >conftest.err
25439   rm -f conftest.er1
25440   cat conftest.err >&5
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } &&
25443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25444   { (case "(($ac_try" in
25445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446   *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449   (eval "$ac_try") 2>&5
25450   ac_status=$?
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); }; } &&
25453          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
25460   ac_status=$?
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); }; }; then
25463   ac_cv_member_struct_stat_st_blocks=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468         cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474 $ac_includes_default
25475 int
25476 main ()
25477 {
25478 static struct stat ac_aggr;
25479 if (sizeof ac_aggr.st_blocks)
25480 return 0;
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest.$ac_objext
25486 if { (ac_try="$ac_compile"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_compile") 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } &&
25499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25500   { (case "(($ac_try" in
25501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502   *) ac_try_echo=$ac_try;;
25503 esac
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505   (eval "$ac_try") 2>&5
25506   ac_status=$?
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); }; } &&
25509          { ac_try='test -s conftest.$ac_objext'
25510   { (case "(($ac_try" in
25511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25512   *) ac_try_echo=$ac_try;;
25513 esac
25514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25515   (eval "$ac_try") 2>&5
25516   ac_status=$?
25517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518   (exit $ac_status); }; }; then
25519   ac_cv_member_struct_stat_st_blocks=yes
25520 else
25521   echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523
25524         ac_cv_member_struct_stat_st_blocks=no
25525 fi
25526
25527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528 fi
25529
25530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 fi
25532 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25533 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25534 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25535
25536 cat >>confdefs.h <<_ACEOF
25537 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25538 _ACEOF
25539
25540
25541 cat >>confdefs.h <<\_ACEOF
25542 #define HAVE_ST_BLOCKS 1
25543 _ACEOF
25544
25545 else
25546   case " $LIBOBJS " in
25547   *" fileblocks.$ac_objext "* ) ;;
25548   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25549  ;;
25550 esac
25551
25552 fi
25553
25554
25555 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25556 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25557 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25558   echo $ECHO_N "(cached) $ECHO_C" >&6
25559 else
25560   cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h.  */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h.  */
25566 $ac_includes_default
25567 int
25568 main ()
25569 {
25570 static struct stat ac_aggr;
25571 if (ac_aggr.st_rdev)
25572 return 0;
25573   ;
25574   return 0;
25575 }
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581   *) ac_try_echo=$ac_try;;
25582 esac
25583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25584   (eval "$ac_compile") 2>conftest.er1
25585   ac_status=$?
25586   grep -v '^ *+' conftest.er1 >conftest.err
25587   rm -f conftest.er1
25588   cat conftest.err >&5
25589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); } &&
25591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25592   { (case "(($ac_try" in
25593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25594   *) ac_try_echo=$ac_try;;
25595 esac
25596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25597   (eval "$ac_try") 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; } &&
25601          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
25608   ac_status=$?
25609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610   (exit $ac_status); }; }; then
25611   ac_cv_member_struct_stat_st_rdev=yes
25612 else
25613   echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25615
25616         cat >conftest.$ac_ext <<_ACEOF
25617 /* confdefs.h.  */
25618 _ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h.  */
25622 $ac_includes_default
25623 int
25624 main ()
25625 {
25626 static struct stat ac_aggr;
25627 if (sizeof ac_aggr.st_rdev)
25628 return 0;
25629   ;
25630   return 0;
25631 }
25632 _ACEOF
25633 rm -f conftest.$ac_objext
25634 if { (ac_try="$ac_compile"
25635 case "(($ac_try" in
25636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637   *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640   (eval "$ac_compile") 2>conftest.er1
25641   ac_status=$?
25642   grep -v '^ *+' conftest.er1 >conftest.err
25643   rm -f conftest.er1
25644   cat conftest.err >&5
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); } &&
25647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25648   { (case "(($ac_try" in
25649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650   *) ac_try_echo=$ac_try;;
25651 esac
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653   (eval "$ac_try") 2>&5
25654   ac_status=$?
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); }; } &&
25657          { ac_try='test -s conftest.$ac_objext'
25658   { (case "(($ac_try" in
25659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660   *) ac_try_echo=$ac_try;;
25661 esac
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663   (eval "$ac_try") 2>&5
25664   ac_status=$?
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); }; }; then
25667   ac_cv_member_struct_stat_st_rdev=yes
25668 else
25669   echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25671
25672         ac_cv_member_struct_stat_st_rdev=no
25673 fi
25674
25675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676 fi
25677
25678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679 fi
25680 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25681 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25682 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25683
25684 cat >>confdefs.h <<_ACEOF
25685 #define HAVE_STRUCT_STAT_ST_RDEV 1
25686 _ACEOF
25687
25688
25689 cat >>confdefs.h <<\_ACEOF
25690 #define HAVE_ST_RDEV 1
25691 _ACEOF
25692
25693 fi
25694
25695
25696 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25697 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25698 if test "${ac_cv_struct_tm+set}" = set; then
25699   echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701   cat >conftest.$ac_ext <<_ACEOF
25702 /* confdefs.h.  */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h.  */
25707 #include <sys/types.h>
25708 #include <time.h>
25709
25710 int
25711 main ()
25712 {
25713 struct tm *tp; tp->tm_sec;
25714   ;
25715   return 0;
25716 }
25717 _ACEOF
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722   *) ac_try_echo=$ac_try;;
25723 esac
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725   (eval "$ac_compile") 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } &&
25732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25733   { (case "(($ac_try" in
25734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735   *) ac_try_echo=$ac_try;;
25736 esac
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738   (eval "$ac_try") 2>&5
25739   ac_status=$?
25740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741   (exit $ac_status); }; } &&
25742          { ac_try='test -s conftest.$ac_objext'
25743   { (case "(($ac_try" in
25744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745   *) ac_try_echo=$ac_try;;
25746 esac
25747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748   (eval "$ac_try") 2>&5
25749   ac_status=$?
25750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751   (exit $ac_status); }; }; then
25752   ac_cv_struct_tm=time.h
25753 else
25754   echo "$as_me: failed program was:" >&5
25755 sed 's/^/| /' conftest.$ac_ext >&5
25756
25757         ac_cv_struct_tm=sys/time.h
25758 fi
25759
25760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25761 fi
25762 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25763 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25764 if test $ac_cv_struct_tm = sys/time.h; then
25765
25766 cat >>confdefs.h <<\_ACEOF
25767 #define TM_IN_SYS_TIME 1
25768 _ACEOF
25769
25770 fi
25771
25772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25774 if test "${ac_cv_c_const+set}" = set; then
25775   echo $ECHO_N "(cached) $ECHO_C" >&6
25776 else
25777   cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h.  */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h.  */
25783
25784 int
25785 main ()
25786 {
25787 /* FIXME: Include the comments suggested by Paul. */
25788 #ifndef __cplusplus
25789   /* Ultrix mips cc rejects this.  */
25790   typedef int charset[2];
25791   const charset x;
25792   /* SunOS 4.1.1 cc rejects this.  */
25793   char const *const *ccp;
25794   char **p;
25795   /* NEC SVR4.0.2 mips cc rejects this.  */
25796   struct point {int x, y;};
25797   static struct point const zero = {0,0};
25798   /* AIX XL C 1.02.0.0 rejects this.
25799      It does not let you subtract one const X* pointer from another in
25800      an arm of an if-expression whose if-part is not a constant
25801      expression */
25802   const char *g = "string";
25803   ccp = &g + (g ? g-g : 0);
25804   /* HPUX 7.0 cc rejects these. */
25805   ++ccp;
25806   p = (char**) ccp;
25807   ccp = (char const *const *) p;
25808   { /* SCO 3.2v4 cc rejects this.  */
25809     char *t;
25810     char const *s = 0 ? (char *) 0 : (char const *) 0;
25811
25812     *t++ = 0;
25813     if (s) return 0;
25814   }
25815   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25816     int x[] = {25, 17};
25817     const int *foo = &x[0];
25818     ++foo;
25819   }
25820   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25821     typedef const int *iptr;
25822     iptr p = 0;
25823     ++p;
25824   }
25825   { /* AIX XL C 1.02.0.0 rejects this saying
25826        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25827     struct s { int j; const int *ap[3]; };
25828     struct s *b; b->j = 5;
25829   }
25830   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25831     const int foo = 10;
25832     if (!foo) return 0;
25833   }
25834   return !x[0] && !zero.x;
25835 #endif
25836
25837   ;
25838   return 0;
25839 }
25840 _ACEOF
25841 rm -f conftest.$ac_objext
25842 if { (ac_try="$ac_compile"
25843 case "(($ac_try" in
25844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845   *) ac_try_echo=$ac_try;;
25846 esac
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848   (eval "$ac_compile") 2>conftest.er1
25849   ac_status=$?
25850   grep -v '^ *+' conftest.er1 >conftest.err
25851   rm -f conftest.er1
25852   cat conftest.err >&5
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } &&
25855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25856   { (case "(($ac_try" in
25857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858   *) ac_try_echo=$ac_try;;
25859 esac
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861   (eval "$ac_try") 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; } &&
25865          { ac_try='test -s conftest.$ac_objext'
25866   { (case "(($ac_try" in
25867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868   *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871   (eval "$ac_try") 2>&5
25872   ac_status=$?
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); }; }; then
25875   ac_cv_c_const=yes
25876 else
25877   echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25879
25880         ac_cv_c_const=no
25881 fi
25882
25883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 fi
25885 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25886 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25887 if test $ac_cv_c_const = no; then
25888
25889 cat >>confdefs.h <<\_ACEOF
25890 #define const
25891 _ACEOF
25892
25893 fi
25894
25895
25896
25897 { echo "$as_me:$LINENO: checking for char" >&5
25898 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25899 if test "${ac_cv_type_char+set}" = set; then
25900   echo $ECHO_N "(cached) $ECHO_C" >&6
25901 else
25902   cat >conftest.$ac_ext <<_ACEOF
25903 /* confdefs.h.  */
25904 _ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h.  */
25908 $ac_includes_default
25909 typedef char ac__type_new_;
25910 int
25911 main ()
25912 {
25913 if ((ac__type_new_ *) 0)
25914   return 0;
25915 if (sizeof (ac__type_new_))
25916   return 0;
25917   ;
25918   return 0;
25919 }
25920 _ACEOF
25921 rm -f conftest.$ac_objext
25922 if { (ac_try="$ac_compile"
25923 case "(($ac_try" in
25924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925   *) ac_try_echo=$ac_try;;
25926 esac
25927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25928   (eval "$ac_compile") 2>conftest.er1
25929   ac_status=$?
25930   grep -v '^ *+' conftest.er1 >conftest.err
25931   rm -f conftest.er1
25932   cat conftest.err >&5
25933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); } &&
25935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25936   { (case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_try") 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; } &&
25945          { ac_try='test -s conftest.$ac_objext'
25946   { (case "(($ac_try" in
25947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25948   *) ac_try_echo=$ac_try;;
25949 esac
25950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25951   (eval "$ac_try") 2>&5
25952   ac_status=$?
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); }; }; then
25955   ac_cv_type_char=yes
25956 else
25957   echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25959
25960         ac_cv_type_char=no
25961 fi
25962
25963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25964 fi
25965 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25966 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25967
25968 { echo "$as_me:$LINENO: checking size of char" >&5
25969 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25970 if test "${ac_cv_sizeof_char+set}" = set; then
25971   echo $ECHO_N "(cached) $ECHO_C" >&6
25972 else
25973   if test "$ac_cv_type_char" = yes; then
25974   # The cast to long int works around a bug in the HP C Compiler
25975   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25976   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25977   # This bug is HP SR number 8606223364.
25978   if test "$cross_compiling" = yes; then
25979   # Depending upon the size, compute the lo and hi bounds.
25980 cat >conftest.$ac_ext <<_ACEOF
25981 /* confdefs.h.  */
25982 _ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h.  */
25986 $ac_includes_default
25987                    typedef char ac__type_sizeof_;
25988 int
25989 main ()
25990 {
25991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25992 test_array [0] = 0
25993
25994   ;
25995   return 0;
25996 }
25997 _ACEOF
25998 rm -f conftest.$ac_objext
25999 if { (ac_try="$ac_compile"
26000 case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005   (eval "$ac_compile") 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } &&
26012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26013   { (case "(($ac_try" in
26014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015   *) ac_try_echo=$ac_try;;
26016 esac
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018   (eval "$ac_try") 2>&5
26019   ac_status=$?
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); }; } &&
26022          { ac_try='test -s conftest.$ac_objext'
26023   { (case "(($ac_try" in
26024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025   *) ac_try_echo=$ac_try;;
26026 esac
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028   (eval "$ac_try") 2>&5
26029   ac_status=$?
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); }; }; then
26032   ac_lo=0 ac_mid=0
26033   while :; do
26034     cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h.  */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h.  */
26040 $ac_includes_default
26041                    typedef char ac__type_sizeof_;
26042 int
26043 main ()
26044 {
26045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26046 test_array [0] = 0
26047
26048   ;
26049   return 0;
26050 }
26051 _ACEOF
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056   *) ac_try_echo=$ac_try;;
26057 esac
26058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26059   (eval "$ac_compile") 2>conftest.er1
26060   ac_status=$?
26061   grep -v '^ *+' conftest.er1 >conftest.err
26062   rm -f conftest.er1
26063   cat conftest.err >&5
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); } &&
26066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26067   { (case "(($ac_try" in
26068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069   *) ac_try_echo=$ac_try;;
26070 esac
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072   (eval "$ac_try") 2>&5
26073   ac_status=$?
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); }; } &&
26076          { ac_try='test -s conftest.$ac_objext'
26077   { (case "(($ac_try" in
26078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079   *) ac_try_echo=$ac_try;;
26080 esac
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082   (eval "$ac_try") 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; }; then
26086   ac_hi=$ac_mid; break
26087 else
26088   echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26090
26091         ac_lo=`expr $ac_mid + 1`
26092                         if test $ac_lo -le $ac_mid; then
26093                           ac_lo= ac_hi=
26094                           break
26095                         fi
26096                         ac_mid=`expr 2 '*' $ac_mid + 1`
26097 fi
26098
26099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26100   done
26101 else
26102   echo "$as_me: failed program was:" >&5
26103 sed 's/^/| /' conftest.$ac_ext >&5
26104
26105         cat >conftest.$ac_ext <<_ACEOF
26106 /* confdefs.h.  */
26107 _ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h.  */
26111 $ac_includes_default
26112                    typedef char ac__type_sizeof_;
26113 int
26114 main ()
26115 {
26116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26117 test_array [0] = 0
26118
26119   ;
26120   return 0;
26121 }
26122 _ACEOF
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127   *) ac_try_echo=$ac_try;;
26128 esac
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130   (eval "$ac_compile") 2>conftest.er1
26131   ac_status=$?
26132   grep -v '^ *+' conftest.er1 >conftest.err
26133   rm -f conftest.er1
26134   cat conftest.err >&5
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } &&
26137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26138   { (case "(($ac_try" in
26139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140   *) ac_try_echo=$ac_try;;
26141 esac
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143   (eval "$ac_try") 2>&5
26144   ac_status=$?
26145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146   (exit $ac_status); }; } &&
26147          { ac_try='test -s conftest.$ac_objext'
26148   { (case "(($ac_try" in
26149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26150   *) ac_try_echo=$ac_try;;
26151 esac
26152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26153   (eval "$ac_try") 2>&5
26154   ac_status=$?
26155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); }; }; then
26157   ac_hi=-1 ac_mid=-1
26158   while :; do
26159     cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 $ac_includes_default
26166                    typedef char ac__type_sizeof_;
26167 int
26168 main ()
26169 {
26170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26171 test_array [0] = 0
26172
26173   ;
26174   return 0;
26175 }
26176 _ACEOF
26177 rm -f conftest.$ac_objext
26178 if { (ac_try="$ac_compile"
26179 case "(($ac_try" in
26180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26181   *) ac_try_echo=$ac_try;;
26182 esac
26183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26184   (eval "$ac_compile") 2>conftest.er1
26185   ac_status=$?
26186   grep -v '^ *+' conftest.er1 >conftest.err
26187   rm -f conftest.er1
26188   cat conftest.err >&5
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); } &&
26191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26192   { (case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197   (eval "$ac_try") 2>&5
26198   ac_status=$?
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); }; } &&
26201          { ac_try='test -s conftest.$ac_objext'
26202   { (case "(($ac_try" in
26203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204   *) ac_try_echo=$ac_try;;
26205 esac
26206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207   (eval "$ac_try") 2>&5
26208   ac_status=$?
26209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210   (exit $ac_status); }; }; then
26211   ac_lo=$ac_mid; break
26212 else
26213   echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26215
26216         ac_hi=`expr '(' $ac_mid ')' - 1`
26217                         if test $ac_mid -le $ac_hi; then
26218                           ac_lo= ac_hi=
26219                           break
26220                         fi
26221                         ac_mid=`expr 2 '*' $ac_mid`
26222 fi
26223
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225   done
26226 else
26227   echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26229
26230         ac_lo= ac_hi=
26231 fi
26232
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234 fi
26235
26236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26237 # Binary search between lo and hi bounds.
26238 while test "x$ac_lo" != "x$ac_hi"; do
26239   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26240   cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246 $ac_includes_default
26247                    typedef char ac__type_sizeof_;
26248 int
26249 main ()
26250 {
26251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26252 test_array [0] = 0
26253
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262   *) ac_try_echo=$ac_try;;
26263 esac
26264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26265   (eval "$ac_compile") 2>conftest.er1
26266   ac_status=$?
26267   grep -v '^ *+' conftest.er1 >conftest.err
26268   rm -f conftest.er1
26269   cat conftest.err >&5
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); } &&
26272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26273   { (case "(($ac_try" in
26274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275   *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278   (eval "$ac_try") 2>&5
26279   ac_status=$?
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); }; } &&
26282          { ac_try='test -s conftest.$ac_objext'
26283   { (case "(($ac_try" in
26284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285   *) ac_try_echo=$ac_try;;
26286 esac
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288   (eval "$ac_try") 2>&5
26289   ac_status=$?
26290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291   (exit $ac_status); }; }; then
26292   ac_hi=$ac_mid
26293 else
26294   echo "$as_me: failed program was:" >&5
26295 sed 's/^/| /' conftest.$ac_ext >&5
26296
26297         ac_lo=`expr '(' $ac_mid ')' + 1`
26298 fi
26299
26300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301 done
26302 case $ac_lo in
26303 ?*) ac_cv_sizeof_char=$ac_lo;;
26304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26305 See \`config.log' for more details." >&5
26306 echo "$as_me: error: cannot compute sizeof (char)
26307 See \`config.log' for more details." >&2;}
26308    { (exit 77); exit 77; }; } ;;
26309 esac
26310 else
26311   cat >conftest.$ac_ext <<_ACEOF
26312 /* confdefs.h.  */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h.  */
26317 $ac_includes_default
26318                    typedef char ac__type_sizeof_;
26319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26321 #include <stdio.h>
26322 #include <stdlib.h>
26323 int
26324 main ()
26325 {
26326
26327   FILE *f = fopen ("conftest.val", "w");
26328   if (! f)
26329     return 1;
26330   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26331     {
26332       long int i = longval ();
26333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26334         return 1;
26335       fprintf (f, "%ld\n", i);
26336     }
26337   else
26338     {
26339       unsigned long int i = ulongval ();
26340       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26341         return 1;
26342       fprintf (f, "%lu\n", i);
26343     }
26344   return ferror (f) || fclose (f) != 0;
26345
26346   ;
26347   return 0;
26348 }
26349 _ACEOF
26350 rm -f conftest$ac_exeext
26351 if { (ac_try="$ac_link"
26352 case "(($ac_try" in
26353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26354   *) ac_try_echo=$ac_try;;
26355 esac
26356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26357   (eval "$ac_link") 2>&5
26358   ac_status=$?
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26361   { (case "(($ac_try" in
26362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363   *) ac_try_echo=$ac_try;;
26364 esac
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366   (eval "$ac_try") 2>&5
26367   ac_status=$?
26368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369   (exit $ac_status); }; }; then
26370   ac_cv_sizeof_char=`cat conftest.val`
26371 else
26372   echo "$as_me: program exited with status $ac_status" >&5
26373 echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26375
26376 ( exit $ac_status )
26377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26378 See \`config.log' for more details." >&5
26379 echo "$as_me: error: cannot compute sizeof (char)
26380 See \`config.log' for more details." >&2;}
26381    { (exit 77); exit 77; }; }
26382 fi
26383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26384 fi
26385 rm -f conftest.val
26386 else
26387   ac_cv_sizeof_char=0
26388 fi
26389 fi
26390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26391 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26392 cat >>confdefs.h <<_ACEOF
26393 #define SIZEOF_CHAR $ac_cv_sizeof_char
26394 _ACEOF
26395
26396
26397 { echo "$as_me:$LINENO: checking for short int" >&5
26398 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26399 if test "${ac_cv_type_short_int+set}" = set; then
26400   echo $ECHO_N "(cached) $ECHO_C" >&6
26401 else
26402   cat >conftest.$ac_ext <<_ACEOF
26403 /* confdefs.h.  */
26404 _ACEOF
26405 cat confdefs.h >>conftest.$ac_ext
26406 cat >>conftest.$ac_ext <<_ACEOF
26407 /* end confdefs.h.  */
26408 $ac_includes_default
26409 typedef short int ac__type_new_;
26410 int
26411 main ()
26412 {
26413 if ((ac__type_new_ *) 0)
26414   return 0;
26415 if (sizeof (ac__type_new_))
26416   return 0;
26417   ;
26418   return 0;
26419 }
26420 _ACEOF
26421 rm -f conftest.$ac_objext
26422 if { (ac_try="$ac_compile"
26423 case "(($ac_try" in
26424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425   *) ac_try_echo=$ac_try;;
26426 esac
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428   (eval "$ac_compile") 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } &&
26435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26436   { (case "(($ac_try" in
26437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438   *) ac_try_echo=$ac_try;;
26439 esac
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441   (eval "$ac_try") 2>&5
26442   ac_status=$?
26443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444   (exit $ac_status); }; } &&
26445          { ac_try='test -s conftest.$ac_objext'
26446   { (case "(($ac_try" in
26447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448   *) ac_try_echo=$ac_try;;
26449 esac
26450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26451   (eval "$ac_try") 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); }; }; then
26455   ac_cv_type_short_int=yes
26456 else
26457   echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460         ac_cv_type_short_int=no
26461 fi
26462
26463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26464 fi
26465 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26466 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26467
26468 { echo "$as_me:$LINENO: checking size of short int" >&5
26469 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26470 if test "${ac_cv_sizeof_short_int+set}" = set; then
26471   echo $ECHO_N "(cached) $ECHO_C" >&6
26472 else
26473   if test "$ac_cv_type_short_int" = yes; then
26474   # The cast to long int works around a bug in the HP C Compiler
26475   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26476   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26477   # This bug is HP SR number 8606223364.
26478   if test "$cross_compiling" = yes; then
26479   # Depending upon the size, compute the lo and hi bounds.
26480 cat >conftest.$ac_ext <<_ACEOF
26481 /* confdefs.h.  */
26482 _ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h.  */
26486 $ac_includes_default
26487                    typedef short int ac__type_sizeof_;
26488 int
26489 main ()
26490 {
26491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26492 test_array [0] = 0
26493
26494   ;
26495   return 0;
26496 }
26497 _ACEOF
26498 rm -f conftest.$ac_objext
26499 if { (ac_try="$ac_compile"
26500 case "(($ac_try" in
26501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502   *) ac_try_echo=$ac_try;;
26503 esac
26504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26505   (eval "$ac_compile") 2>conftest.er1
26506   ac_status=$?
26507   grep -v '^ *+' conftest.er1 >conftest.err
26508   rm -f conftest.er1
26509   cat conftest.err >&5
26510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511   (exit $ac_status); } &&
26512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26513   { (case "(($ac_try" in
26514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515   *) ac_try_echo=$ac_try;;
26516 esac
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518   (eval "$ac_try") 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; } &&
26522          { ac_try='test -s conftest.$ac_objext'
26523   { (case "(($ac_try" in
26524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26525   *) ac_try_echo=$ac_try;;
26526 esac
26527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26528   (eval "$ac_try") 2>&5
26529   ac_status=$?
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); }; }; then
26532   ac_lo=0 ac_mid=0
26533   while :; do
26534     cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540 $ac_includes_default
26541                    typedef short int ac__type_sizeof_;
26542 int
26543 main ()
26544 {
26545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26546 test_array [0] = 0
26547
26548   ;
26549   return 0;
26550 }
26551 _ACEOF
26552 rm -f conftest.$ac_objext
26553 if { (ac_try="$ac_compile"
26554 case "(($ac_try" in
26555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556   *) ac_try_echo=$ac_try;;
26557 esac
26558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26559   (eval "$ac_compile") 2>conftest.er1
26560   ac_status=$?
26561   grep -v '^ *+' conftest.er1 >conftest.err
26562   rm -f conftest.er1
26563   cat conftest.err >&5
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); } &&
26566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26567   { (case "(($ac_try" in
26568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569   *) ac_try_echo=$ac_try;;
26570 esac
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572   (eval "$ac_try") 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; } &&
26576          { ac_try='test -s conftest.$ac_objext'
26577   { (case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582   (eval "$ac_try") 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); }; }; then
26586   ac_hi=$ac_mid; break
26587 else
26588   echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591         ac_lo=`expr $ac_mid + 1`
26592                         if test $ac_lo -le $ac_mid; then
26593                           ac_lo= ac_hi=
26594                           break
26595                         fi
26596                         ac_mid=`expr 2 '*' $ac_mid + 1`
26597 fi
26598
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26600   done
26601 else
26602   echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605         cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611 $ac_includes_default
26612                    typedef short int ac__type_sizeof_;
26613 int
26614 main ()
26615 {
26616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26617 test_array [0] = 0
26618
26619   ;
26620   return 0;
26621 }
26622 _ACEOF
26623 rm -f conftest.$ac_objext
26624 if { (ac_try="$ac_compile"
26625 case "(($ac_try" in
26626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627   *) ac_try_echo=$ac_try;;
26628 esac
26629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26630   (eval "$ac_compile") 2>conftest.er1
26631   ac_status=$?
26632   grep -v '^ *+' conftest.er1 >conftest.err
26633   rm -f conftest.er1
26634   cat conftest.err >&5
26635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636   (exit $ac_status); } &&
26637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26638   { (case "(($ac_try" in
26639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640   *) ac_try_echo=$ac_try;;
26641 esac
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643   (eval "$ac_try") 2>&5
26644   ac_status=$?
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); }; } &&
26647          { ac_try='test -s conftest.$ac_objext'
26648   { (case "(($ac_try" in
26649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650   *) ac_try_echo=$ac_try;;
26651 esac
26652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26653   (eval "$ac_try") 2>&5
26654   ac_status=$?
26655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); }; }; then
26657   ac_hi=-1 ac_mid=-1
26658   while :; do
26659     cat >conftest.$ac_ext <<_ACEOF
26660 /* confdefs.h.  */
26661 _ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h.  */
26665 $ac_includes_default
26666                    typedef short int ac__type_sizeof_;
26667 int
26668 main ()
26669 {
26670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26671 test_array [0] = 0
26672
26673   ;
26674   return 0;
26675 }
26676 _ACEOF
26677 rm -f conftest.$ac_objext
26678 if { (ac_try="$ac_compile"
26679 case "(($ac_try" in
26680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681   *) ac_try_echo=$ac_try;;
26682 esac
26683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26684   (eval "$ac_compile") 2>conftest.er1
26685   ac_status=$?
26686   grep -v '^ *+' conftest.er1 >conftest.err
26687   rm -f conftest.er1
26688   cat conftest.err >&5
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); } &&
26691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26692   { (case "(($ac_try" in
26693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694   *) ac_try_echo=$ac_try;;
26695 esac
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697   (eval "$ac_try") 2>&5
26698   ac_status=$?
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); }; } &&
26701          { ac_try='test -s conftest.$ac_objext'
26702   { (case "(($ac_try" in
26703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26704   *) ac_try_echo=$ac_try;;
26705 esac
26706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26707   (eval "$ac_try") 2>&5
26708   ac_status=$?
26709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710   (exit $ac_status); }; }; then
26711   ac_lo=$ac_mid; break
26712 else
26713   echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26715
26716         ac_hi=`expr '(' $ac_mid ')' - 1`
26717                         if test $ac_mid -le $ac_hi; then
26718                           ac_lo= ac_hi=
26719                           break
26720                         fi
26721                         ac_mid=`expr 2 '*' $ac_mid`
26722 fi
26723
26724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26725   done
26726 else
26727   echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26729
26730         ac_lo= ac_hi=
26731 fi
26732
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26734 fi
26735
26736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26737 # Binary search between lo and hi bounds.
26738 while test "x$ac_lo" != "x$ac_hi"; do
26739   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26740   cat >conftest.$ac_ext <<_ACEOF
26741 /* confdefs.h.  */
26742 _ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h.  */
26746 $ac_includes_default
26747                    typedef short int ac__type_sizeof_;
26748 int
26749 main ()
26750 {
26751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26752 test_array [0] = 0
26753
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 rm -f conftest.$ac_objext
26759 if { (ac_try="$ac_compile"
26760 case "(($ac_try" in
26761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762   *) ac_try_echo=$ac_try;;
26763 esac
26764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765   (eval "$ac_compile") 2>conftest.er1
26766   ac_status=$?
26767   grep -v '^ *+' conftest.er1 >conftest.err
26768   rm -f conftest.er1
26769   cat conftest.err >&5
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); } &&
26772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26773   { (case "(($ac_try" in
26774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775   *) ac_try_echo=$ac_try;;
26776 esac
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778   (eval "$ac_try") 2>&5
26779   ac_status=$?
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); }; } &&
26782          { ac_try='test -s conftest.$ac_objext'
26783   { (case "(($ac_try" in
26784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785   *) ac_try_echo=$ac_try;;
26786 esac
26787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788   (eval "$ac_try") 2>&5
26789   ac_status=$?
26790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791   (exit $ac_status); }; }; then
26792   ac_hi=$ac_mid
26793 else
26794   echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26796
26797         ac_lo=`expr '(' $ac_mid ')' + 1`
26798 fi
26799
26800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26801 done
26802 case $ac_lo in
26803 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26804 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26805 See \`config.log' for more details." >&5
26806 echo "$as_me: error: cannot compute sizeof (short int)
26807 See \`config.log' for more details." >&2;}
26808    { (exit 77); exit 77; }; } ;;
26809 esac
26810 else
26811   cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 $ac_includes_default
26818                    typedef short int ac__type_sizeof_;
26819 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26820 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26821 #include <stdio.h>
26822 #include <stdlib.h>
26823 int
26824 main ()
26825 {
26826
26827   FILE *f = fopen ("conftest.val", "w");
26828   if (! f)
26829     return 1;
26830   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26831     {
26832       long int i = longval ();
26833       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26834         return 1;
26835       fprintf (f, "%ld\n", i);
26836     }
26837   else
26838     {
26839       unsigned long int i = ulongval ();
26840       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26841         return 1;
26842       fprintf (f, "%lu\n", i);
26843     }
26844   return ferror (f) || fclose (f) != 0;
26845
26846   ;
26847   return 0;
26848 }
26849 _ACEOF
26850 rm -f conftest$ac_exeext
26851 if { (ac_try="$ac_link"
26852 case "(($ac_try" in
26853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26854   *) ac_try_echo=$ac_try;;
26855 esac
26856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26857   (eval "$ac_link") 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26861   { (case "(($ac_try" in
26862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26863   *) ac_try_echo=$ac_try;;
26864 esac
26865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26866   (eval "$ac_try") 2>&5
26867   ac_status=$?
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); }; }; then
26870   ac_cv_sizeof_short_int=`cat conftest.val`
26871 else
26872   echo "$as_me: program exited with status $ac_status" >&5
26873 echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26875
26876 ( exit $ac_status )
26877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26878 See \`config.log' for more details." >&5
26879 echo "$as_me: error: cannot compute sizeof (short int)
26880 See \`config.log' for more details." >&2;}
26881    { (exit 77); exit 77; }; }
26882 fi
26883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26884 fi
26885 rm -f conftest.val
26886 else
26887   ac_cv_sizeof_short_int=0
26888 fi
26889 fi
26890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26891 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26892 cat >>confdefs.h <<_ACEOF
26893 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26894 _ACEOF
26895
26896
26897 { echo "$as_me:$LINENO: checking for int" >&5
26898 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26899 if test "${ac_cv_type_int+set}" = set; then
26900   echo $ECHO_N "(cached) $ECHO_C" >&6
26901 else
26902   cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h.  */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h.  */
26908 $ac_includes_default
26909 typedef int ac__type_new_;
26910 int
26911 main ()
26912 {
26913 if ((ac__type_new_ *) 0)
26914   return 0;
26915 if (sizeof (ac__type_new_))
26916   return 0;
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 rm -f conftest.$ac_objext
26922 if { (ac_try="$ac_compile"
26923 case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_compile") 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } &&
26935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936   { (case "(($ac_try" in
26937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938   *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941   (eval "$ac_try") 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); }; } &&
26945          { ac_try='test -s conftest.$ac_objext'
26946   { (case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951   (eval "$ac_try") 2>&5
26952   ac_status=$?
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); }; }; then
26955   ac_cv_type_int=yes
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960         ac_cv_type_int=no
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964 fi
26965 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26966 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26967
26968 { echo "$as_me:$LINENO: checking size of int" >&5
26969 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26970 if test "${ac_cv_sizeof_int+set}" = set; then
26971   echo $ECHO_N "(cached) $ECHO_C" >&6
26972 else
26973   if test "$ac_cv_type_int" = yes; then
26974   # The cast to long int works around a bug in the HP C Compiler
26975   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26976   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26977   # This bug is HP SR number 8606223364.
26978   if test "$cross_compiling" = yes; then
26979   # Depending upon the size, compute the lo and hi bounds.
26980 cat >conftest.$ac_ext <<_ACEOF
26981 /* confdefs.h.  */
26982 _ACEOF
26983 cat confdefs.h >>conftest.$ac_ext
26984 cat >>conftest.$ac_ext <<_ACEOF
26985 /* end confdefs.h.  */
26986 $ac_includes_default
26987                    typedef int ac__type_sizeof_;
26988 int
26989 main ()
26990 {
26991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26992 test_array [0] = 0
26993
26994   ;
26995   return 0;
26996 }
26997 _ACEOF
26998 rm -f conftest.$ac_objext
26999 if { (ac_try="$ac_compile"
27000 case "(($ac_try" in
27001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002   *) ac_try_echo=$ac_try;;
27003 esac
27004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27005   (eval "$ac_compile") 2>conftest.er1
27006   ac_status=$?
27007   grep -v '^ *+' conftest.er1 >conftest.err
27008   rm -f conftest.er1
27009   cat conftest.err >&5
27010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011   (exit $ac_status); } &&
27012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27013   { (case "(($ac_try" in
27014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27015   *) ac_try_echo=$ac_try;;
27016 esac
27017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27018   (eval "$ac_try") 2>&5
27019   ac_status=$?
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); }; } &&
27022          { ac_try='test -s conftest.$ac_objext'
27023   { (case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028   (eval "$ac_try") 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); }; }; then
27032   ac_lo=0 ac_mid=0
27033   while :; do
27034     cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h.  */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h.  */
27040 $ac_includes_default
27041                    typedef int ac__type_sizeof_;
27042 int
27043 main ()
27044 {
27045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27046 test_array [0] = 0
27047
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056   *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059   (eval "$ac_compile") 2>conftest.er1
27060   ac_status=$?
27061   grep -v '^ *+' conftest.er1 >conftest.err
27062   rm -f conftest.er1
27063   cat conftest.err >&5
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } &&
27066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27067   { (case "(($ac_try" in
27068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27069   *) ac_try_echo=$ac_try;;
27070 esac
27071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27072   (eval "$ac_try") 2>&5
27073   ac_status=$?
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); }; } &&
27076          { ac_try='test -s conftest.$ac_objext'
27077   { (case "(($ac_try" in
27078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27079   *) ac_try_echo=$ac_try;;
27080 esac
27081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27082   (eval "$ac_try") 2>&5
27083   ac_status=$?
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); }; }; then
27086   ac_hi=$ac_mid; break
27087 else
27088   echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27090
27091         ac_lo=`expr $ac_mid + 1`
27092                         if test $ac_lo -le $ac_mid; then
27093                           ac_lo= ac_hi=
27094                           break
27095                         fi
27096                         ac_mid=`expr 2 '*' $ac_mid + 1`
27097 fi
27098
27099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27100   done
27101 else
27102   echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27104
27105         cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h.  */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h.  */
27111 $ac_includes_default
27112                    typedef int ac__type_sizeof_;
27113 int
27114 main ()
27115 {
27116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27117 test_array [0] = 0
27118
27119   ;
27120   return 0;
27121 }
27122 _ACEOF
27123 rm -f conftest.$ac_objext
27124 if { (ac_try="$ac_compile"
27125 case "(($ac_try" in
27126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127   *) ac_try_echo=$ac_try;;
27128 esac
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130   (eval "$ac_compile") 2>conftest.er1
27131   ac_status=$?
27132   grep -v '^ *+' conftest.er1 >conftest.err
27133   rm -f conftest.er1
27134   cat conftest.err >&5
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); } &&
27137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27138   { (case "(($ac_try" in
27139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140   *) ac_try_echo=$ac_try;;
27141 esac
27142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143   (eval "$ac_try") 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; } &&
27147          { ac_try='test -s conftest.$ac_objext'
27148   { (case "(($ac_try" in
27149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27150   *) ac_try_echo=$ac_try;;
27151 esac
27152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27153   (eval "$ac_try") 2>&5
27154   ac_status=$?
27155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156   (exit $ac_status); }; }; then
27157   ac_hi=-1 ac_mid=-1
27158   while :; do
27159     cat >conftest.$ac_ext <<_ACEOF
27160 /* confdefs.h.  */
27161 _ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h.  */
27165 $ac_includes_default
27166                    typedef int ac__type_sizeof_;
27167 int
27168 main ()
27169 {
27170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27171 test_array [0] = 0
27172
27173   ;
27174   return 0;
27175 }
27176 _ACEOF
27177 rm -f conftest.$ac_objext
27178 if { (ac_try="$ac_compile"
27179 case "(($ac_try" in
27180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27181   *) ac_try_echo=$ac_try;;
27182 esac
27183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27184   (eval "$ac_compile") 2>conftest.er1
27185   ac_status=$?
27186   grep -v '^ *+' conftest.er1 >conftest.err
27187   rm -f conftest.er1
27188   cat conftest.err >&5
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); } &&
27191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27192   { (case "(($ac_try" in
27193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194   *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197   (eval "$ac_try") 2>&5
27198   ac_status=$?
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); }; } &&
27201          { ac_try='test -s conftest.$ac_objext'
27202   { (case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_try") 2>&5
27208   ac_status=$?
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); }; }; then
27211   ac_lo=$ac_mid; break
27212 else
27213   echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27215
27216         ac_hi=`expr '(' $ac_mid ')' - 1`
27217                         if test $ac_mid -le $ac_hi; then
27218                           ac_lo= ac_hi=
27219                           break
27220                         fi
27221                         ac_mid=`expr 2 '*' $ac_mid`
27222 fi
27223
27224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27225   done
27226 else
27227   echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27229
27230         ac_lo= ac_hi=
27231 fi
27232
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234 fi
27235
27236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27237 # Binary search between lo and hi bounds.
27238 while test "x$ac_lo" != "x$ac_hi"; do
27239   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27240   cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246 $ac_includes_default
27247                    typedef int ac__type_sizeof_;
27248 int
27249 main ()
27250 {
27251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27252 test_array [0] = 0
27253
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265   (eval "$ac_compile") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } &&
27272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27273   { (case "(($ac_try" in
27274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275   *) ac_try_echo=$ac_try;;
27276 esac
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278   (eval "$ac_try") 2>&5
27279   ac_status=$?
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); }; } &&
27282          { ac_try='test -s conftest.$ac_objext'
27283   { (case "(($ac_try" in
27284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285   *) ac_try_echo=$ac_try;;
27286 esac
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288   (eval "$ac_try") 2>&5
27289   ac_status=$?
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); }; }; then
27292   ac_hi=$ac_mid
27293 else
27294   echo "$as_me: failed program was:" >&5
27295 sed 's/^/| /' conftest.$ac_ext >&5
27296
27297         ac_lo=`expr '(' $ac_mid ')' + 1`
27298 fi
27299
27300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27301 done
27302 case $ac_lo in
27303 ?*) ac_cv_sizeof_int=$ac_lo;;
27304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27305 See \`config.log' for more details." >&5
27306 echo "$as_me: error: cannot compute sizeof (int)
27307 See \`config.log' for more details." >&2;}
27308    { (exit 77); exit 77; }; } ;;
27309 esac
27310 else
27311   cat >conftest.$ac_ext <<_ACEOF
27312 /* confdefs.h.  */
27313 _ACEOF
27314 cat confdefs.h >>conftest.$ac_ext
27315 cat >>conftest.$ac_ext <<_ACEOF
27316 /* end confdefs.h.  */
27317 $ac_includes_default
27318                    typedef int ac__type_sizeof_;
27319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27321 #include <stdio.h>
27322 #include <stdlib.h>
27323 int
27324 main ()
27325 {
27326
27327   FILE *f = fopen ("conftest.val", "w");
27328   if (! f)
27329     return 1;
27330   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27331     {
27332       long int i = longval ();
27333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27334         return 1;
27335       fprintf (f, "%ld\n", i);
27336     }
27337   else
27338     {
27339       unsigned long int i = ulongval ();
27340       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27341         return 1;
27342       fprintf (f, "%lu\n", i);
27343     }
27344   return ferror (f) || fclose (f) != 0;
27345
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 rm -f conftest$ac_exeext
27351 if { (ac_try="$ac_link"
27352 case "(($ac_try" in
27353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354   *) ac_try_echo=$ac_try;;
27355 esac
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357   (eval "$ac_link") 2>&5
27358   ac_status=$?
27359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27361   { (case "(($ac_try" in
27362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363   *) ac_try_echo=$ac_try;;
27364 esac
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366   (eval "$ac_try") 2>&5
27367   ac_status=$?
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); }; }; then
27370   ac_cv_sizeof_int=`cat conftest.val`
27371 else
27372   echo "$as_me: program exited with status $ac_status" >&5
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376 ( exit $ac_status )
27377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27378 See \`config.log' for more details." >&5
27379 echo "$as_me: error: cannot compute sizeof (int)
27380 See \`config.log' for more details." >&2;}
27381    { (exit 77); exit 77; }; }
27382 fi
27383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27384 fi
27385 rm -f conftest.val
27386 else
27387   ac_cv_sizeof_int=0
27388 fi
27389 fi
27390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27391 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27392 cat >>confdefs.h <<_ACEOF
27393 #define SIZEOF_INT $ac_cv_sizeof_int
27394 _ACEOF
27395
27396
27397 { echo "$as_me:$LINENO: checking for long int" >&5
27398 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27399 if test "${ac_cv_type_long_int+set}" = set; then
27400   echo $ECHO_N "(cached) $ECHO_C" >&6
27401 else
27402   cat >conftest.$ac_ext <<_ACEOF
27403 /* confdefs.h.  */
27404 _ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h.  */
27408 $ac_includes_default
27409 typedef long int ac__type_new_;
27410 int
27411 main ()
27412 {
27413 if ((ac__type_new_ *) 0)
27414   return 0;
27415 if (sizeof (ac__type_new_))
27416   return 0;
27417   ;
27418   return 0;
27419 }
27420 _ACEOF
27421 rm -f conftest.$ac_objext
27422 if { (ac_try="$ac_compile"
27423 case "(($ac_try" in
27424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425   *) ac_try_echo=$ac_try;;
27426 esac
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428   (eval "$ac_compile") 2>conftest.er1
27429   ac_status=$?
27430   grep -v '^ *+' conftest.er1 >conftest.err
27431   rm -f conftest.er1
27432   cat conftest.err >&5
27433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434   (exit $ac_status); } &&
27435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27436   { (case "(($ac_try" in
27437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438   *) ac_try_echo=$ac_try;;
27439 esac
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441   (eval "$ac_try") 2>&5
27442   ac_status=$?
27443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444   (exit $ac_status); }; } &&
27445          { ac_try='test -s conftest.$ac_objext'
27446   { (case "(($ac_try" in
27447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448   *) ac_try_echo=$ac_try;;
27449 esac
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451   (eval "$ac_try") 2>&5
27452   ac_status=$?
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); }; }; then
27455   ac_cv_type_long_int=yes
27456 else
27457   echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27459
27460         ac_cv_type_long_int=no
27461 fi
27462
27463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27464 fi
27465 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27466 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27467
27468 { echo "$as_me:$LINENO: checking size of long int" >&5
27469 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27470 if test "${ac_cv_sizeof_long_int+set}" = set; then
27471   echo $ECHO_N "(cached) $ECHO_C" >&6
27472 else
27473   if test "$ac_cv_type_long_int" = yes; then
27474   # The cast to long int works around a bug in the HP C Compiler
27475   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27476   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27477   # This bug is HP SR number 8606223364.
27478   if test "$cross_compiling" = yes; then
27479   # Depending upon the size, compute the lo and hi bounds.
27480 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h.  */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h.  */
27486 $ac_includes_default
27487                    typedef long int ac__type_sizeof_;
27488 int
27489 main ()
27490 {
27491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27492 test_array [0] = 0
27493
27494   ;
27495   return 0;
27496 }
27497 _ACEOF
27498 rm -f conftest.$ac_objext
27499 if { (ac_try="$ac_compile"
27500 case "(($ac_try" in
27501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502   *) ac_try_echo=$ac_try;;
27503 esac
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505   (eval "$ac_compile") 2>conftest.er1
27506   ac_status=$?
27507   grep -v '^ *+' conftest.er1 >conftest.err
27508   rm -f conftest.er1
27509   cat conftest.err >&5
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); } &&
27512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27513   { (case "(($ac_try" in
27514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515   *) ac_try_echo=$ac_try;;
27516 esac
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518   (eval "$ac_try") 2>&5
27519   ac_status=$?
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); }; } &&
27522          { ac_try='test -s conftest.$ac_objext'
27523   { (case "(($ac_try" in
27524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27525   *) ac_try_echo=$ac_try;;
27526 esac
27527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27528   (eval "$ac_try") 2>&5
27529   ac_status=$?
27530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531   (exit $ac_status); }; }; then
27532   ac_lo=0 ac_mid=0
27533   while :; do
27534     cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h.  */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h.  */
27540 $ac_includes_default
27541                    typedef long int ac__type_sizeof_;
27542 int
27543 main ()
27544 {
27545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27546 test_array [0] = 0
27547
27548   ;
27549   return 0;
27550 }
27551 _ACEOF
27552 rm -f conftest.$ac_objext
27553 if { (ac_try="$ac_compile"
27554 case "(($ac_try" in
27555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556   *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559   (eval "$ac_compile") 2>conftest.er1
27560   ac_status=$?
27561   grep -v '^ *+' conftest.er1 >conftest.err
27562   rm -f conftest.er1
27563   cat conftest.err >&5
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); } &&
27566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567   { (case "(($ac_try" in
27568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569   *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572   (eval "$ac_try") 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; } &&
27576          { ac_try='test -s conftest.$ac_objext'
27577   { (case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_try") 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   ac_hi=$ac_mid; break
27587 else
27588   echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591         ac_lo=`expr $ac_mid + 1`
27592                         if test $ac_lo -le $ac_mid; then
27593                           ac_lo= ac_hi=
27594                           break
27595                         fi
27596                         ac_mid=`expr 2 '*' $ac_mid + 1`
27597 fi
27598
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600   done
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605         cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h.  */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h.  */
27611 $ac_includes_default
27612                    typedef long int ac__type_sizeof_;
27613 int
27614 main ()
27615 {
27616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27617 test_array [0] = 0
27618
27619   ;
27620   return 0;
27621 }
27622 _ACEOF
27623 rm -f conftest.$ac_objext
27624 if { (ac_try="$ac_compile"
27625 case "(($ac_try" in
27626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27627   *) ac_try_echo=$ac_try;;
27628 esac
27629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27630   (eval "$ac_compile") 2>conftest.er1
27631   ac_status=$?
27632   grep -v '^ *+' conftest.er1 >conftest.err
27633   rm -f conftest.er1
27634   cat conftest.err >&5
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); } &&
27637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27638   { (case "(($ac_try" in
27639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640   *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643   (eval "$ac_try") 2>&5
27644   ac_status=$?
27645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646   (exit $ac_status); }; } &&
27647          { ac_try='test -s conftest.$ac_objext'
27648   { (case "(($ac_try" in
27649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650   *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653   (eval "$ac_try") 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); }; }; then
27657   ac_hi=-1 ac_mid=-1
27658   while :; do
27659     cat >conftest.$ac_ext <<_ACEOF
27660 /* confdefs.h.  */
27661 _ACEOF
27662 cat confdefs.h >>conftest.$ac_ext
27663 cat >>conftest.$ac_ext <<_ACEOF
27664 /* end confdefs.h.  */
27665 $ac_includes_default
27666                    typedef long int ac__type_sizeof_;
27667 int
27668 main ()
27669 {
27670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27671 test_array [0] = 0
27672
27673   ;
27674   return 0;
27675 }
27676 _ACEOF
27677 rm -f conftest.$ac_objext
27678 if { (ac_try="$ac_compile"
27679 case "(($ac_try" in
27680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681   *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684   (eval "$ac_compile") 2>conftest.er1
27685   ac_status=$?
27686   grep -v '^ *+' conftest.er1 >conftest.err
27687   rm -f conftest.er1
27688   cat conftest.err >&5
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); } &&
27691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27692   { (case "(($ac_try" in
27693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694   *) ac_try_echo=$ac_try;;
27695 esac
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697   (eval "$ac_try") 2>&5
27698   ac_status=$?
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); }; } &&
27701          { ac_try='test -s conftest.$ac_objext'
27702   { (case "(($ac_try" in
27703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704   *) ac_try_echo=$ac_try;;
27705 esac
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707   (eval "$ac_try") 2>&5
27708   ac_status=$?
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); }; }; then
27711   ac_lo=$ac_mid; break
27712 else
27713   echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27715
27716         ac_hi=`expr '(' $ac_mid ')' - 1`
27717                         if test $ac_mid -le $ac_hi; then
27718                           ac_lo= ac_hi=
27719                           break
27720                         fi
27721                         ac_mid=`expr 2 '*' $ac_mid`
27722 fi
27723
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725   done
27726 else
27727   echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27729
27730         ac_lo= ac_hi=
27731 fi
27732
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734 fi
27735
27736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27737 # Binary search between lo and hi bounds.
27738 while test "x$ac_lo" != "x$ac_hi"; do
27739   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27740   cat >conftest.$ac_ext <<_ACEOF
27741 /* confdefs.h.  */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h.  */
27746 $ac_includes_default
27747                    typedef long int ac__type_sizeof_;
27748 int
27749 main ()
27750 {
27751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27752 test_array [0] = 0
27753
27754   ;
27755   return 0;
27756 }
27757 _ACEOF
27758 rm -f conftest.$ac_objext
27759 if { (ac_try="$ac_compile"
27760 case "(($ac_try" in
27761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762   *) ac_try_echo=$ac_try;;
27763 esac
27764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765   (eval "$ac_compile") 2>conftest.er1
27766   ac_status=$?
27767   grep -v '^ *+' conftest.er1 >conftest.err
27768   rm -f conftest.er1
27769   cat conftest.err >&5
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); } &&
27772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773   { (case "(($ac_try" in
27774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775   *) ac_try_echo=$ac_try;;
27776 esac
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778   (eval "$ac_try") 2>&5
27779   ac_status=$?
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); }; } &&
27782          { ac_try='test -s conftest.$ac_objext'
27783   { (case "(($ac_try" in
27784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785   *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788   (eval "$ac_try") 2>&5
27789   ac_status=$?
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); }; }; then
27792   ac_hi=$ac_mid
27793 else
27794   echo "$as_me: failed program was:" >&5
27795 sed 's/^/| /' conftest.$ac_ext >&5
27796
27797         ac_lo=`expr '(' $ac_mid ')' + 1`
27798 fi
27799
27800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27801 done
27802 case $ac_lo in
27803 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27804 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27805 See \`config.log' for more details." >&5
27806 echo "$as_me: error: cannot compute sizeof (long int)
27807 See \`config.log' for more details." >&2;}
27808    { (exit 77); exit 77; }; } ;;
27809 esac
27810 else
27811   cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h.  */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h.  */
27817 $ac_includes_default
27818                    typedef long int ac__type_sizeof_;
27819 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27820 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27821 #include <stdio.h>
27822 #include <stdlib.h>
27823 int
27824 main ()
27825 {
27826
27827   FILE *f = fopen ("conftest.val", "w");
27828   if (! f)
27829     return 1;
27830   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27831     {
27832       long int i = longval ();
27833       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27834         return 1;
27835       fprintf (f, "%ld\n", i);
27836     }
27837   else
27838     {
27839       unsigned long int i = ulongval ();
27840       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27841         return 1;
27842       fprintf (f, "%lu\n", i);
27843     }
27844   return ferror (f) || fclose (f) != 0;
27845
27846   ;
27847   return 0;
27848 }
27849 _ACEOF
27850 rm -f conftest$ac_exeext
27851 if { (ac_try="$ac_link"
27852 case "(($ac_try" in
27853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27854   *) ac_try_echo=$ac_try;;
27855 esac
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857   (eval "$ac_link") 2>&5
27858   ac_status=$?
27859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27861   { (case "(($ac_try" in
27862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863   *) ac_try_echo=$ac_try;;
27864 esac
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866   (eval "$ac_try") 2>&5
27867   ac_status=$?
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); }; }; then
27870   ac_cv_sizeof_long_int=`cat conftest.val`
27871 else
27872   echo "$as_me: program exited with status $ac_status" >&5
27873 echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27875
27876 ( exit $ac_status )
27877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27878 See \`config.log' for more details." >&5
27879 echo "$as_me: error: cannot compute sizeof (long int)
27880 See \`config.log' for more details." >&2;}
27881    { (exit 77); exit 77; }; }
27882 fi
27883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27884 fi
27885 rm -f conftest.val
27886 else
27887   ac_cv_sizeof_long_int=0
27888 fi
27889 fi
27890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27891 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27892 cat >>confdefs.h <<_ACEOF
27893 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27894 _ACEOF
27895
27896
27897 { echo "$as_me:$LINENO: checking for long long int" >&5
27898 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27899 if test "${ac_cv_type_long_long_int+set}" = set; then
27900   echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27902   cat >conftest.$ac_ext <<_ACEOF
27903 /* confdefs.h.  */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h.  */
27908 $ac_includes_default
27909 typedef long long int ac__type_new_;
27910 int
27911 main ()
27912 {
27913 if ((ac__type_new_ *) 0)
27914   return 0;
27915 if (sizeof (ac__type_new_))
27916   return 0;
27917   ;
27918   return 0;
27919 }
27920 _ACEOF
27921 rm -f conftest.$ac_objext
27922 if { (ac_try="$ac_compile"
27923 case "(($ac_try" in
27924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925   *) ac_try_echo=$ac_try;;
27926 esac
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928   (eval "$ac_compile") 2>conftest.er1
27929   ac_status=$?
27930   grep -v '^ *+' conftest.er1 >conftest.err
27931   rm -f conftest.er1
27932   cat conftest.err >&5
27933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934   (exit $ac_status); } &&
27935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27936   { (case "(($ac_try" in
27937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938   *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941   (eval "$ac_try") 2>&5
27942   ac_status=$?
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); }; } &&
27945          { ac_try='test -s conftest.$ac_objext'
27946   { (case "(($ac_try" in
27947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948   *) ac_try_echo=$ac_try;;
27949 esac
27950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951   (eval "$ac_try") 2>&5
27952   ac_status=$?
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); }; }; then
27955   ac_cv_type_long_long_int=yes
27956 else
27957   echo "$as_me: failed program was:" >&5
27958 sed 's/^/| /' conftest.$ac_ext >&5
27959
27960         ac_cv_type_long_long_int=no
27961 fi
27962
27963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27964 fi
27965 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27966 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27967
27968 { echo "$as_me:$LINENO: checking size of long long int" >&5
27969 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27970 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27971   echo $ECHO_N "(cached) $ECHO_C" >&6
27972 else
27973   if test "$ac_cv_type_long_long_int" = yes; then
27974   # The cast to long int works around a bug in the HP C Compiler
27975   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27976   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27977   # This bug is HP SR number 8606223364.
27978   if test "$cross_compiling" = yes; then
27979   # Depending upon the size, compute the lo and hi bounds.
27980 cat >conftest.$ac_ext <<_ACEOF
27981 /* confdefs.h.  */
27982 _ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h.  */
27986 $ac_includes_default
27987                    typedef long long int ac__type_sizeof_;
27988 int
27989 main ()
27990 {
27991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27992 test_array [0] = 0
27993
27994   ;
27995   return 0;
27996 }
27997 _ACEOF
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002   *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005   (eval "$ac_compile") 2>conftest.er1
28006   ac_status=$?
28007   grep -v '^ *+' conftest.er1 >conftest.err
28008   rm -f conftest.er1
28009   cat conftest.err >&5
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); } &&
28012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28013   { (case "(($ac_try" in
28014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015   *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018   (eval "$ac_try") 2>&5
28019   ac_status=$?
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); }; } &&
28022          { ac_try='test -s conftest.$ac_objext'
28023   { (case "(($ac_try" in
28024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025   *) ac_try_echo=$ac_try;;
28026 esac
28027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028   (eval "$ac_try") 2>&5
28029   ac_status=$?
28030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031   (exit $ac_status); }; }; then
28032   ac_lo=0 ac_mid=0
28033   while :; do
28034     cat >conftest.$ac_ext <<_ACEOF
28035 /* confdefs.h.  */
28036 _ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h.  */
28040 $ac_includes_default
28041                    typedef long long int ac__type_sizeof_;
28042 int
28043 main ()
28044 {
28045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28046 test_array [0] = 0
28047
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext
28053 if { (ac_try="$ac_compile"
28054 case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059   (eval "$ac_compile") 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067   { (case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_try") 2>&5
28073   ac_status=$?
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); }; } &&
28076          { ac_try='test -s conftest.$ac_objext'
28077   { (case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_try") 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   ac_hi=$ac_mid; break
28087 else
28088   echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091         ac_lo=`expr $ac_mid + 1`
28092                         if test $ac_lo -le $ac_mid; then
28093                           ac_lo= ac_hi=
28094                           break
28095                         fi
28096                         ac_mid=`expr 2 '*' $ac_mid + 1`
28097 fi
28098
28099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28100   done
28101 else
28102   echo "$as_me: failed program was:" >&5
28103 sed 's/^/| /' conftest.$ac_ext >&5
28104
28105         cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h.  */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h.  */
28111 $ac_includes_default
28112                    typedef long long int ac__type_sizeof_;
28113 int
28114 main ()
28115 {
28116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28117 test_array [0] = 0
28118
28119   ;
28120   return 0;
28121 }
28122 _ACEOF
28123 rm -f conftest.$ac_objext
28124 if { (ac_try="$ac_compile"
28125 case "(($ac_try" in
28126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127   *) ac_try_echo=$ac_try;;
28128 esac
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130   (eval "$ac_compile") 2>conftest.er1
28131   ac_status=$?
28132   grep -v '^ *+' conftest.er1 >conftest.err
28133   rm -f conftest.er1
28134   cat conftest.err >&5
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); } &&
28137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28138   { (case "(($ac_try" in
28139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140   *) ac_try_echo=$ac_try;;
28141 esac
28142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143   (eval "$ac_try") 2>&5
28144   ac_status=$?
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); }; } &&
28147          { ac_try='test -s conftest.$ac_objext'
28148   { (case "(($ac_try" in
28149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150   *) ac_try_echo=$ac_try;;
28151 esac
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153   (eval "$ac_try") 2>&5
28154   ac_status=$?
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); }; }; then
28157   ac_hi=-1 ac_mid=-1
28158   while :; do
28159     cat >conftest.$ac_ext <<_ACEOF
28160 /* confdefs.h.  */
28161 _ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h.  */
28165 $ac_includes_default
28166                    typedef long long int ac__type_sizeof_;
28167 int
28168 main ()
28169 {
28170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28171 test_array [0] = 0
28172
28173   ;
28174   return 0;
28175 }
28176 _ACEOF
28177 rm -f conftest.$ac_objext
28178 if { (ac_try="$ac_compile"
28179 case "(($ac_try" in
28180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181   *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184   (eval "$ac_compile") 2>conftest.er1
28185   ac_status=$?
28186   grep -v '^ *+' conftest.er1 >conftest.err
28187   rm -f conftest.er1
28188   cat conftest.err >&5
28189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); } &&
28191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28192   { (case "(($ac_try" in
28193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194   *) ac_try_echo=$ac_try;;
28195 esac
28196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197   (eval "$ac_try") 2>&5
28198   ac_status=$?
28199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200   (exit $ac_status); }; } &&
28201          { ac_try='test -s conftest.$ac_objext'
28202   { (case "(($ac_try" in
28203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204   *) ac_try_echo=$ac_try;;
28205 esac
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207   (eval "$ac_try") 2>&5
28208   ac_status=$?
28209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210   (exit $ac_status); }; }; then
28211   ac_lo=$ac_mid; break
28212 else
28213   echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.$ac_ext >&5
28215
28216         ac_hi=`expr '(' $ac_mid ')' - 1`
28217                         if test $ac_mid -le $ac_hi; then
28218                           ac_lo= ac_hi=
28219                           break
28220                         fi
28221                         ac_mid=`expr 2 '*' $ac_mid`
28222 fi
28223
28224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225   done
28226 else
28227   echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28229
28230         ac_lo= ac_hi=
28231 fi
28232
28233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28234 fi
28235
28236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28237 # Binary search between lo and hi bounds.
28238 while test "x$ac_lo" != "x$ac_hi"; do
28239   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28240   cat >conftest.$ac_ext <<_ACEOF
28241 /* confdefs.h.  */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h.  */
28246 $ac_includes_default
28247                    typedef long long int ac__type_sizeof_;
28248 int
28249 main ()
28250 {
28251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28252 test_array [0] = 0
28253
28254   ;
28255   return 0;
28256 }
28257 _ACEOF
28258 rm -f conftest.$ac_objext
28259 if { (ac_try="$ac_compile"
28260 case "(($ac_try" in
28261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262   *) ac_try_echo=$ac_try;;
28263 esac
28264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265   (eval "$ac_compile") 2>conftest.er1
28266   ac_status=$?
28267   grep -v '^ *+' conftest.er1 >conftest.err
28268   rm -f conftest.er1
28269   cat conftest.err >&5
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); } &&
28272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273   { (case "(($ac_try" in
28274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275   *) ac_try_echo=$ac_try;;
28276 esac
28277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278   (eval "$ac_try") 2>&5
28279   ac_status=$?
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); }; } &&
28282          { ac_try='test -s conftest.$ac_objext'
28283   { (case "(($ac_try" in
28284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285   *) ac_try_echo=$ac_try;;
28286 esac
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288   (eval "$ac_try") 2>&5
28289   ac_status=$?
28290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291   (exit $ac_status); }; }; then
28292   ac_hi=$ac_mid
28293 else
28294   echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297         ac_lo=`expr '(' $ac_mid ')' + 1`
28298 fi
28299
28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301 done
28302 case $ac_lo in
28303 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28305 See \`config.log' for more details." >&5
28306 echo "$as_me: error: cannot compute sizeof (long long int)
28307 See \`config.log' for more details." >&2;}
28308    { (exit 77); exit 77; }; } ;;
28309 esac
28310 else
28311   cat >conftest.$ac_ext <<_ACEOF
28312 /* confdefs.h.  */
28313 _ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h.  */
28317 $ac_includes_default
28318                    typedef long long int ac__type_sizeof_;
28319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28321 #include <stdio.h>
28322 #include <stdlib.h>
28323 int
28324 main ()
28325 {
28326
28327   FILE *f = fopen ("conftest.val", "w");
28328   if (! f)
28329     return 1;
28330   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28331     {
28332       long int i = longval ();
28333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28334         return 1;
28335       fprintf (f, "%ld\n", i);
28336     }
28337   else
28338     {
28339       unsigned long int i = ulongval ();
28340       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28341         return 1;
28342       fprintf (f, "%lu\n", i);
28343     }
28344   return ferror (f) || fclose (f) != 0;
28345
28346   ;
28347   return 0;
28348 }
28349 _ACEOF
28350 rm -f conftest$ac_exeext
28351 if { (ac_try="$ac_link"
28352 case "(($ac_try" in
28353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354   *) ac_try_echo=$ac_try;;
28355 esac
28356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357   (eval "$ac_link") 2>&5
28358   ac_status=$?
28359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28361   { (case "(($ac_try" in
28362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363   *) ac_try_echo=$ac_try;;
28364 esac
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366   (eval "$ac_try") 2>&5
28367   ac_status=$?
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); }; }; then
28370   ac_cv_sizeof_long_long_int=`cat conftest.val`
28371 else
28372   echo "$as_me: program exited with status $ac_status" >&5
28373 echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28375
28376 ( exit $ac_status )
28377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28378 See \`config.log' for more details." >&5
28379 echo "$as_me: error: cannot compute sizeof (long long int)
28380 See \`config.log' for more details." >&2;}
28381    { (exit 77); exit 77; }; }
28382 fi
28383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28384 fi
28385 rm -f conftest.val
28386 else
28387   ac_cv_sizeof_long_long_int=0
28388 fi
28389 fi
28390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28391 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28392 cat >>confdefs.h <<_ACEOF
28393 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28394 _ACEOF
28395
28396
28397 { echo "$as_me:$LINENO: checking for int *" >&5
28398 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28399 if test "${ac_cv_type_int_p+set}" = set; then
28400   echo $ECHO_N "(cached) $ECHO_C" >&6
28401 else
28402   cat >conftest.$ac_ext <<_ACEOF
28403 /* confdefs.h.  */
28404 _ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h.  */
28408 $ac_includes_default
28409 typedef int * ac__type_new_;
28410 int
28411 main ()
28412 {
28413 if ((ac__type_new_ *) 0)
28414   return 0;
28415 if (sizeof (ac__type_new_))
28416   return 0;
28417   ;
28418   return 0;
28419 }
28420 _ACEOF
28421 rm -f conftest.$ac_objext
28422 if { (ac_try="$ac_compile"
28423 case "(($ac_try" in
28424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425   *) ac_try_echo=$ac_try;;
28426 esac
28427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428   (eval "$ac_compile") 2>conftest.er1
28429   ac_status=$?
28430   grep -v '^ *+' conftest.er1 >conftest.err
28431   rm -f conftest.er1
28432   cat conftest.err >&5
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); } &&
28435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28436   { (case "(($ac_try" in
28437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28438   *) ac_try_echo=$ac_try;;
28439 esac
28440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28441   (eval "$ac_try") 2>&5
28442   ac_status=$?
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); }; } &&
28445          { ac_try='test -s conftest.$ac_objext'
28446   { (case "(($ac_try" in
28447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448   *) ac_try_echo=$ac_try;;
28449 esac
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451   (eval "$ac_try") 2>&5
28452   ac_status=$?
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); }; }; then
28455   ac_cv_type_int_p=yes
28456 else
28457   echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28459
28460         ac_cv_type_int_p=no
28461 fi
28462
28463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28464 fi
28465 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28466 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28467
28468 { echo "$as_me:$LINENO: checking size of int *" >&5
28469 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28470 if test "${ac_cv_sizeof_int_p+set}" = set; then
28471   echo $ECHO_N "(cached) $ECHO_C" >&6
28472 else
28473   if test "$ac_cv_type_int_p" = yes; then
28474   # The cast to long int works around a bug in the HP C Compiler
28475   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28476   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28477   # This bug is HP SR number 8606223364.
28478   if test "$cross_compiling" = yes; then
28479   # Depending upon the size, compute the lo and hi bounds.
28480 cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486 $ac_includes_default
28487                    typedef int * ac__type_sizeof_;
28488 int
28489 main ()
28490 {
28491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28492 test_array [0] = 0
28493
28494   ;
28495   return 0;
28496 }
28497 _ACEOF
28498 rm -f conftest.$ac_objext
28499 if { (ac_try="$ac_compile"
28500 case "(($ac_try" in
28501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502   *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505   (eval "$ac_compile") 2>conftest.er1
28506   ac_status=$?
28507   grep -v '^ *+' conftest.er1 >conftest.err
28508   rm -f conftest.er1
28509   cat conftest.err >&5
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); } &&
28512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28513   { (case "(($ac_try" in
28514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515   *) ac_try_echo=$ac_try;;
28516 esac
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518   (eval "$ac_try") 2>&5
28519   ac_status=$?
28520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); }; } &&
28522          { ac_try='test -s conftest.$ac_objext'
28523   { (case "(($ac_try" in
28524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28525   *) ac_try_echo=$ac_try;;
28526 esac
28527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28528   (eval "$ac_try") 2>&5
28529   ac_status=$?
28530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531   (exit $ac_status); }; }; then
28532   ac_lo=0 ac_mid=0
28533   while :; do
28534     cat >conftest.$ac_ext <<_ACEOF
28535 /* confdefs.h.  */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h.  */
28540 $ac_includes_default
28541                    typedef int * ac__type_sizeof_;
28542 int
28543 main ()
28544 {
28545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28546 test_array [0] = 0
28547
28548   ;
28549   return 0;
28550 }
28551 _ACEOF
28552 rm -f conftest.$ac_objext
28553 if { (ac_try="$ac_compile"
28554 case "(($ac_try" in
28555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556   *) ac_try_echo=$ac_try;;
28557 esac
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559   (eval "$ac_compile") 2>conftest.er1
28560   ac_status=$?
28561   grep -v '^ *+' conftest.er1 >conftest.err
28562   rm -f conftest.er1
28563   cat conftest.err >&5
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } &&
28566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28567   { (case "(($ac_try" in
28568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569   *) ac_try_echo=$ac_try;;
28570 esac
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572   (eval "$ac_try") 2>&5
28573   ac_status=$?
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); }; } &&
28576          { ac_try='test -s conftest.$ac_objext'
28577   { (case "(($ac_try" in
28578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579   *) ac_try_echo=$ac_try;;
28580 esac
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582   (eval "$ac_try") 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; }; then
28586   ac_hi=$ac_mid; break
28587 else
28588   echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591         ac_lo=`expr $ac_mid + 1`
28592                         if test $ac_lo -le $ac_mid; then
28593                           ac_lo= ac_hi=
28594                           break
28595                         fi
28596                         ac_mid=`expr 2 '*' $ac_mid + 1`
28597 fi
28598
28599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28600   done
28601 else
28602   echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28604
28605         cat >conftest.$ac_ext <<_ACEOF
28606 /* confdefs.h.  */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h.  */
28611 $ac_includes_default
28612                    typedef int * ac__type_sizeof_;
28613 int
28614 main ()
28615 {
28616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28617 test_array [0] = 0
28618
28619   ;
28620   return 0;
28621 }
28622 _ACEOF
28623 rm -f conftest.$ac_objext
28624 if { (ac_try="$ac_compile"
28625 case "(($ac_try" in
28626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627   *) ac_try_echo=$ac_try;;
28628 esac
28629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630   (eval "$ac_compile") 2>conftest.er1
28631   ac_status=$?
28632   grep -v '^ *+' conftest.er1 >conftest.err
28633   rm -f conftest.er1
28634   cat conftest.err >&5
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); } &&
28637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28638   { (case "(($ac_try" in
28639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28640   *) ac_try_echo=$ac_try;;
28641 esac
28642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28643   (eval "$ac_try") 2>&5
28644   ac_status=$?
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); }; } &&
28647          { ac_try='test -s conftest.$ac_objext'
28648   { (case "(($ac_try" in
28649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650   *) ac_try_echo=$ac_try;;
28651 esac
28652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653   (eval "$ac_try") 2>&5
28654   ac_status=$?
28655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656   (exit $ac_status); }; }; then
28657   ac_hi=-1 ac_mid=-1
28658   while :; do
28659     cat >conftest.$ac_ext <<_ACEOF
28660 /* confdefs.h.  */
28661 _ACEOF
28662 cat confdefs.h >>conftest.$ac_ext
28663 cat >>conftest.$ac_ext <<_ACEOF
28664 /* end confdefs.h.  */
28665 $ac_includes_default
28666                    typedef int * ac__type_sizeof_;
28667 int
28668 main ()
28669 {
28670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28671 test_array [0] = 0
28672
28673   ;
28674   return 0;
28675 }
28676 _ACEOF
28677 rm -f conftest.$ac_objext
28678 if { (ac_try="$ac_compile"
28679 case "(($ac_try" in
28680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681   *) ac_try_echo=$ac_try;;
28682 esac
28683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28684   (eval "$ac_compile") 2>conftest.er1
28685   ac_status=$?
28686   grep -v '^ *+' conftest.er1 >conftest.err
28687   rm -f conftest.er1
28688   cat conftest.err >&5
28689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690   (exit $ac_status); } &&
28691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28692   { (case "(($ac_try" in
28693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694   *) ac_try_echo=$ac_try;;
28695 esac
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697   (eval "$ac_try") 2>&5
28698   ac_status=$?
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); }; } &&
28701          { ac_try='test -s conftest.$ac_objext'
28702   { (case "(($ac_try" in
28703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28704   *) ac_try_echo=$ac_try;;
28705 esac
28706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28707   (eval "$ac_try") 2>&5
28708   ac_status=$?
28709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710   (exit $ac_status); }; }; then
28711   ac_lo=$ac_mid; break
28712 else
28713   echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28715
28716         ac_hi=`expr '(' $ac_mid ')' - 1`
28717                         if test $ac_mid -le $ac_hi; then
28718                           ac_lo= ac_hi=
28719                           break
28720                         fi
28721                         ac_mid=`expr 2 '*' $ac_mid`
28722 fi
28723
28724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725   done
28726 else
28727   echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28729
28730         ac_lo= ac_hi=
28731 fi
28732
28733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28734 fi
28735
28736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28737 # Binary search between lo and hi bounds.
28738 while test "x$ac_lo" != "x$ac_hi"; do
28739   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28740   cat >conftest.$ac_ext <<_ACEOF
28741 /* confdefs.h.  */
28742 _ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h.  */
28746 $ac_includes_default
28747                    typedef int * ac__type_sizeof_;
28748 int
28749 main ()
28750 {
28751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28752 test_array [0] = 0
28753
28754   ;
28755   return 0;
28756 }
28757 _ACEOF
28758 rm -f conftest.$ac_objext
28759 if { (ac_try="$ac_compile"
28760 case "(($ac_try" in
28761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28762   *) ac_try_echo=$ac_try;;
28763 esac
28764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28765   (eval "$ac_compile") 2>conftest.er1
28766   ac_status=$?
28767   grep -v '^ *+' conftest.er1 >conftest.err
28768   rm -f conftest.er1
28769   cat conftest.err >&5
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); } &&
28772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28773   { (case "(($ac_try" in
28774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28775   *) ac_try_echo=$ac_try;;
28776 esac
28777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28778   (eval "$ac_try") 2>&5
28779   ac_status=$?
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); }; } &&
28782          { ac_try='test -s conftest.$ac_objext'
28783   { (case "(($ac_try" in
28784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785   *) ac_try_echo=$ac_try;;
28786 esac
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788   (eval "$ac_try") 2>&5
28789   ac_status=$?
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); }; }; then
28792   ac_hi=$ac_mid
28793 else
28794   echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28796
28797         ac_lo=`expr '(' $ac_mid ')' + 1`
28798 fi
28799
28800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28801 done
28802 case $ac_lo in
28803 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28804 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28805 See \`config.log' for more details." >&5
28806 echo "$as_me: error: cannot compute sizeof (int *)
28807 See \`config.log' for more details." >&2;}
28808    { (exit 77); exit 77; }; } ;;
28809 esac
28810 else
28811   cat >conftest.$ac_ext <<_ACEOF
28812 /* confdefs.h.  */
28813 _ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h.  */
28817 $ac_includes_default
28818                    typedef int * ac__type_sizeof_;
28819 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28820 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28821 #include <stdio.h>
28822 #include <stdlib.h>
28823 int
28824 main ()
28825 {
28826
28827   FILE *f = fopen ("conftest.val", "w");
28828   if (! f)
28829     return 1;
28830   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28831     {
28832       long int i = longval ();
28833       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28834         return 1;
28835       fprintf (f, "%ld\n", i);
28836     }
28837   else
28838     {
28839       unsigned long int i = ulongval ();
28840       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28841         return 1;
28842       fprintf (f, "%lu\n", i);
28843     }
28844   return ferror (f) || fclose (f) != 0;
28845
28846   ;
28847   return 0;
28848 }
28849 _ACEOF
28850 rm -f conftest$ac_exeext
28851 if { (ac_try="$ac_link"
28852 case "(($ac_try" in
28853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854   *) ac_try_echo=$ac_try;;
28855 esac
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857   (eval "$ac_link") 2>&5
28858   ac_status=$?
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28861   { (case "(($ac_try" in
28862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863   *) ac_try_echo=$ac_try;;
28864 esac
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866   (eval "$ac_try") 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; }; then
28870   ac_cv_sizeof_int_p=`cat conftest.val`
28871 else
28872   echo "$as_me: program exited with status $ac_status" >&5
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28875
28876 ( exit $ac_status )
28877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28878 See \`config.log' for more details." >&5
28879 echo "$as_me: error: cannot compute sizeof (int *)
28880 See \`config.log' for more details." >&2;}
28881    { (exit 77); exit 77; }; }
28882 fi
28883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28884 fi
28885 rm -f conftest.val
28886 else
28887   ac_cv_sizeof_int_p=0
28888 fi
28889 fi
28890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28891 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28892 cat >>confdefs.h <<_ACEOF
28893 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28894 _ACEOF
28895
28896
28897
28898 # Check for sys/types.h types
28899 { echo "$as_me:$LINENO: checking for u_int type" >&5
28900 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28901 if test "${ac_cv_have_u_int+set}" = set; then
28902   echo $ECHO_N "(cached) $ECHO_C" >&6
28903 else
28904
28905     cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911  #include <sys/types.h>
28912 int
28913 main ()
28914 {
28915  u_int a; a = 1;
28916   ;
28917   return 0;
28918 }
28919 _ACEOF
28920 rm -f conftest.$ac_objext
28921 if { (ac_try="$ac_compile"
28922 case "(($ac_try" in
28923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924   *) ac_try_echo=$ac_try;;
28925 esac
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927   (eval "$ac_compile") 2>conftest.er1
28928   ac_status=$?
28929   grep -v '^ *+' conftest.er1 >conftest.err
28930   rm -f conftest.er1
28931   cat conftest.err >&5
28932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933   (exit $ac_status); } &&
28934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28935   { (case "(($ac_try" in
28936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937   *) ac_try_echo=$ac_try;;
28938 esac
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940   (eval "$ac_try") 2>&5
28941   ac_status=$?
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); }; } &&
28944          { ac_try='test -s conftest.$ac_objext'
28945   { (case "(($ac_try" in
28946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947   *) ac_try_echo=$ac_try;;
28948 esac
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950   (eval "$ac_try") 2>&5
28951   ac_status=$?
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); }; }; then
28954    ac_cv_have_u_int="yes"
28955 else
28956   echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28958
28959          ac_cv_have_u_int="no"
28960
28961 fi
28962
28963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964
28965 fi
28966 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28967 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28968 if test "x$ac_cv_have_u_int" = "xyes" ; then
28969    cat >>confdefs.h <<\_ACEOF
28970 #define HAVE_U_INT 1
28971 _ACEOF
28972
28973    have_u_int=1
28974 fi
28975
28976 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28977 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28978 if test "${ac_cv_have_intmax_t+set}" = set; then
28979   echo $ECHO_N "(cached) $ECHO_C" >&6
28980 else
28981
28982    cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h.  */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h.  */
28988  #include <sys/types.h>
28989 int
28990 main ()
28991 {
28992  intmax_t a; a = 1;
28993   ;
28994   return 0;
28995 }
28996 _ACEOF
28997 rm -f conftest.$ac_objext
28998 if { (ac_try="$ac_compile"
28999 case "(($ac_try" in
29000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001   *) ac_try_echo=$ac_try;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004   (eval "$ac_compile") 2>conftest.er1
29005   ac_status=$?
29006   grep -v '^ *+' conftest.er1 >conftest.err
29007   rm -f conftest.er1
29008   cat conftest.err >&5
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); } &&
29011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29012   { (case "(($ac_try" in
29013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014   *) ac_try_echo=$ac_try;;
29015 esac
29016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017   (eval "$ac_try") 2>&5
29018   ac_status=$?
29019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); }; } &&
29021          { ac_try='test -s conftest.$ac_objext'
29022   { (case "(($ac_try" in
29023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024   *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027   (eval "$ac_try") 2>&5
29028   ac_status=$?
29029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); }; }; then
29031    ac_cv_have_intmax_t="yes"
29032 else
29033   echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29035
29036
29037          cat >conftest.$ac_ext <<_ACEOF
29038 /* confdefs.h.  */
29039 _ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h.  */
29043  #include <stdint.h>
29044 int
29045 main ()
29046 {
29047  intmax_t a; a = 1;
29048   ;
29049   return 0;
29050 }
29051 _ACEOF
29052 rm -f conftest.$ac_objext
29053 if { (ac_try="$ac_compile"
29054 case "(($ac_try" in
29055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056   *) ac_try_echo=$ac_try;;
29057 esac
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059   (eval "$ac_compile") 2>conftest.er1
29060   ac_status=$?
29061   grep -v '^ *+' conftest.er1 >conftest.err
29062   rm -f conftest.er1
29063   cat conftest.err >&5
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); } &&
29066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29067   { (case "(($ac_try" in
29068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29069   *) ac_try_echo=$ac_try;;
29070 esac
29071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29072   (eval "$ac_try") 2>&5
29073   ac_status=$?
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); }; } &&
29076          { ac_try='test -s conftest.$ac_objext'
29077   { (case "(($ac_try" in
29078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079   *) ac_try_echo=$ac_try;;
29080 esac
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082   (eval "$ac_try") 2>&5
29083   ac_status=$?
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); }; }; then
29086    ac_cv_have_intmax_t="yes"
29087 else
29088   echo "$as_me: failed program was:" >&5
29089 sed 's/^/| /' conftest.$ac_ext >&5
29090
29091          ac_cv_have_intmax_t="no"
29092
29093 fi
29094
29095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29096
29097
29098 fi
29099
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29101
29102
29103 fi
29104 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29105 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29106 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29107    cat >>confdefs.h <<\_ACEOF
29108 #define HAVE_INTMAX_T 1
29109 _ACEOF
29110
29111    have_intmax_t=1
29112 fi
29113
29114
29115 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29116 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29117 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29118   echo $ECHO_N "(cached) $ECHO_C" >&6
29119 else
29120
29121    cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127  #include <sys/types.h>
29128 int
29129 main ()
29130 {
29131  u_intmax_t a; a = 1;
29132   ;
29133   return 0;
29134 }
29135 _ACEOF
29136 rm -f conftest.$ac_objext
29137 if { (ac_try="$ac_compile"
29138 case "(($ac_try" in
29139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140   *) ac_try_echo=$ac_try;;
29141 esac
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143   (eval "$ac_compile") 2>conftest.er1
29144   ac_status=$?
29145   grep -v '^ *+' conftest.er1 >conftest.err
29146   rm -f conftest.er1
29147   cat conftest.err >&5
29148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149   (exit $ac_status); } &&
29150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29151   { (case "(($ac_try" in
29152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153   *) ac_try_echo=$ac_try;;
29154 esac
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156   (eval "$ac_try") 2>&5
29157   ac_status=$?
29158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159   (exit $ac_status); }; } &&
29160          { ac_try='test -s conftest.$ac_objext'
29161   { (case "(($ac_try" in
29162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163   *) ac_try_echo=$ac_try;;
29164 esac
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166   (eval "$ac_try") 2>&5
29167   ac_status=$?
29168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169   (exit $ac_status); }; }; then
29170    ac_cv_have_u_intmax_t="yes"
29171 else
29172   echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.$ac_ext >&5
29174
29175
29176          cat >conftest.$ac_ext <<_ACEOF
29177 /* confdefs.h.  */
29178 _ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h.  */
29182  #include <stdint.h>
29183 int
29184 main ()
29185 {
29186  u_intmax_t a; a = 1;
29187   ;
29188   return 0;
29189 }
29190 _ACEOF
29191 rm -f conftest.$ac_objext
29192 if { (ac_try="$ac_compile"
29193 case "(($ac_try" in
29194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195   *) ac_try_echo=$ac_try;;
29196 esac
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198   (eval "$ac_compile") 2>conftest.er1
29199   ac_status=$?
29200   grep -v '^ *+' conftest.er1 >conftest.err
29201   rm -f conftest.er1
29202   cat conftest.err >&5
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); } &&
29205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29206   { (case "(($ac_try" in
29207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208   *) ac_try_echo=$ac_try;;
29209 esac
29210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211   (eval "$ac_try") 2>&5
29212   ac_status=$?
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); }; } &&
29215          { ac_try='test -s conftest.$ac_objext'
29216   { (case "(($ac_try" in
29217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218   *) ac_try_echo=$ac_try;;
29219 esac
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221   (eval "$ac_try") 2>&5
29222   ac_status=$?
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); }; }; then
29225    ac_cv_have_u_intmax_t="yes"
29226 else
29227   echo "$as_me: failed program was:" >&5
29228 sed 's/^/| /' conftest.$ac_ext >&5
29229
29230          ac_cv_have_u_intmax_t="no"
29231
29232 fi
29233
29234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29235
29236
29237 fi
29238
29239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29240
29241 fi
29242 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29243 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29244 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29245    cat >>confdefs.h <<\_ACEOF
29246 #define HAVE_U_INTMAX_T 1
29247 _ACEOF
29248
29249    have_u_intmax_t=1
29250 fi
29251
29252
29253 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29254 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29255 if test "${ac_cv_have_intxx_t+set}" = set; then
29256   echo $ECHO_N "(cached) $ECHO_C" >&6
29257 else
29258
29259    cat >conftest.$ac_ext <<_ACEOF
29260 /* confdefs.h.  */
29261 _ACEOF
29262 cat confdefs.h >>conftest.$ac_ext
29263 cat >>conftest.$ac_ext <<_ACEOF
29264 /* end confdefs.h.  */
29265  #include <sys/types.h>
29266 int
29267 main ()
29268 {
29269  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29270   ;
29271   return 0;
29272 }
29273 _ACEOF
29274 rm -f conftest.$ac_objext
29275 if { (ac_try="$ac_compile"
29276 case "(($ac_try" in
29277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278   *) ac_try_echo=$ac_try;;
29279 esac
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281   (eval "$ac_compile") 2>conftest.er1
29282   ac_status=$?
29283   grep -v '^ *+' conftest.er1 >conftest.err
29284   rm -f conftest.er1
29285   cat conftest.err >&5
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); } &&
29288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289   { (case "(($ac_try" in
29290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291   *) ac_try_echo=$ac_try;;
29292 esac
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294   (eval "$ac_try") 2>&5
29295   ac_status=$?
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); }; } &&
29298          { ac_try='test -s conftest.$ac_objext'
29299   { (case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_try") 2>&5
29305   ac_status=$?
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); }; }; then
29308    ac_cv_have_intxx_t="yes"
29309 else
29310   echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29312
29313          ac_cv_have_intxx_t="no"
29314
29315 fi
29316
29317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29318
29319 fi
29320 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29321 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29322 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29323    cat >>confdefs.h <<\_ACEOF
29324 #define HAVE_INTXX_T 1
29325 _ACEOF
29326
29327    have_intxx_t=1
29328 fi
29329
29330 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29331 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29332 if test "${ac_cv_have_int64_t+set}" = set; then
29333   echo $ECHO_N "(cached) $ECHO_C" >&6
29334 else
29335
29336    cat >conftest.$ac_ext <<_ACEOF
29337 /* confdefs.h.  */
29338 _ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h.  */
29342  #include <sys/types.h>
29343 int
29344 main ()
29345 {
29346  int64_t a; a = 1;
29347   ;
29348   return 0;
29349 }
29350 _ACEOF
29351 rm -f conftest.$ac_objext
29352 if { (ac_try="$ac_compile"
29353 case "(($ac_try" in
29354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355   *) ac_try_echo=$ac_try;;
29356 esac
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358   (eval "$ac_compile") 2>conftest.er1
29359   ac_status=$?
29360   grep -v '^ *+' conftest.er1 >conftest.err
29361   rm -f conftest.er1
29362   cat conftest.err >&5
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } &&
29365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29366   { (case "(($ac_try" in
29367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368   *) ac_try_echo=$ac_try;;
29369 esac
29370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371   (eval "$ac_try") 2>&5
29372   ac_status=$?
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); }; } &&
29375          { ac_try='test -s conftest.$ac_objext'
29376   { (case "(($ac_try" in
29377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29378   *) ac_try_echo=$ac_try;;
29379 esac
29380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29381   (eval "$ac_try") 2>&5
29382   ac_status=$?
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; }; then
29385    ac_cv_have_int64_t="yes"
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390          ac_cv_have_int64_t="no"
29391
29392 fi
29393
29394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29395
29396 fi
29397 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29398 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29399 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29400    cat >>confdefs.h <<\_ACEOF
29401 #define HAVE_INT64_T 1
29402 _ACEOF
29403
29404    have_int64_t=1
29405 fi
29406
29407 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29408 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29409 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29410   echo $ECHO_N "(cached) $ECHO_C" >&6
29411 else
29412
29413    cat >conftest.$ac_ext <<_ACEOF
29414 /* confdefs.h.  */
29415 _ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h.  */
29419  #include <sys/types.h>
29420 int
29421 main ()
29422 {
29423  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29424   ;
29425   return 0;
29426 }
29427 _ACEOF
29428 rm -f conftest.$ac_objext
29429 if { (ac_try="$ac_compile"
29430 case "(($ac_try" in
29431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432   *) ac_try_echo=$ac_try;;
29433 esac
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435   (eval "$ac_compile") 2>conftest.er1
29436   ac_status=$?
29437   grep -v '^ *+' conftest.er1 >conftest.err
29438   rm -f conftest.er1
29439   cat conftest.err >&5
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); } &&
29442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29443   { (case "(($ac_try" in
29444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29445   *) ac_try_echo=$ac_try;;
29446 esac
29447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29448   (eval "$ac_try") 2>&5
29449   ac_status=$?
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); }; } &&
29452          { ac_try='test -s conftest.$ac_objext'
29453   { (case "(($ac_try" in
29454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455   *) ac_try_echo=$ac_try;;
29456 esac
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458   (eval "$ac_try") 2>&5
29459   ac_status=$?
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); }; }; then
29462    ac_cv_have_u_intxx_t="yes"
29463 else
29464   echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29466
29467          ac_cv_have_u_intxx_t="no"
29468
29469 fi
29470
29471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29472
29473 fi
29474 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29475 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29476 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29477    cat >>confdefs.h <<\_ACEOF
29478 #define HAVE_U_INTXX_T 1
29479 _ACEOF
29480
29481    have_u_intxx_t=1
29482 fi
29483
29484 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29485 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29486 if test "${ac_cv_have_u_int64_t+set}" = set; then
29487   echo $ECHO_N "(cached) $ECHO_C" >&6
29488 else
29489
29490    cat >conftest.$ac_ext <<_ACEOF
29491 /* confdefs.h.  */
29492 _ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h.  */
29496  #include <sys/types.h>
29497 int
29498 main ()
29499 {
29500  u_int64_t a; a = 1;
29501   ;
29502   return 0;
29503 }
29504 _ACEOF
29505 rm -f conftest.$ac_objext
29506 if { (ac_try="$ac_compile"
29507 case "(($ac_try" in
29508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509   *) ac_try_echo=$ac_try;;
29510 esac
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512   (eval "$ac_compile") 2>conftest.er1
29513   ac_status=$?
29514   grep -v '^ *+' conftest.er1 >conftest.err
29515   rm -f conftest.er1
29516   cat conftest.err >&5
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); } &&
29519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29520   { (case "(($ac_try" in
29521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522   *) ac_try_echo=$ac_try;;
29523 esac
29524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525   (eval "$ac_try") 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; } &&
29529          { ac_try='test -s conftest.$ac_objext'
29530   { (case "(($ac_try" in
29531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532   *) ac_try_echo=$ac_try;;
29533 esac
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535   (eval "$ac_try") 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; }; then
29539    ac_cv_have_u_int64_t="yes"
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544          ac_cv_have_u_int64_t="no"
29545
29546 fi
29547
29548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29549
29550 fi
29551 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29552 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29553 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29554    cat >>confdefs.h <<\_ACEOF
29555 #define HAVE_U_INT64_T 1
29556 _ACEOF
29557
29558    have_u_int64_t=1
29559 fi
29560
29561 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29562            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29563 then
29564    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29565 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29566    cat >conftest.$ac_ext <<_ACEOF
29567 /* confdefs.h.  */
29568 _ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h.  */
29572  #include <sys/bitypes.h>
29573 int
29574 main ()
29575 {
29576  int8_t a; int16_t b; int32_t c;
29577         u_int8_t e; u_int16_t f; u_int32_t g;
29578         a = b = c = e = f = g = 1;
29579   ;
29580   return 0;
29581 }
29582 _ACEOF
29583 rm -f conftest.$ac_objext
29584 if { (ac_try="$ac_compile"
29585 case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590   (eval "$ac_compile") 2>conftest.er1
29591   ac_status=$?
29592   grep -v '^ *+' conftest.er1 >conftest.err
29593   rm -f conftest.er1
29594   cat conftest.err >&5
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); } &&
29597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29598   { (case "(($ac_try" in
29599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600   *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603   (eval "$ac_try") 2>&5
29604   ac_status=$?
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); }; } &&
29607          { ac_try='test -s conftest.$ac_objext'
29608   { (case "(($ac_try" in
29609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610   *) ac_try_echo=$ac_try;;
29611 esac
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613   (eval "$ac_try") 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); }; }; then
29617    cat >>confdefs.h <<\_ACEOF
29618 #define HAVE_U_INTXX_T 1
29619 _ACEOF
29620
29621         cat >>confdefs.h <<\_ACEOF
29622 #define HAVE_INTXX_T 1
29623 _ACEOF
29624
29625         cat >>confdefs.h <<\_ACEOF
29626 #define HAVE_SYS_BITYPES_H 1
29627 _ACEOF
29628
29629         { echo "$as_me:$LINENO: result: yes" >&5
29630 echo "${ECHO_T}yes" >&6; }
29631 else
29632   echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29634
29635          { echo "$as_me:$LINENO: result: no" >&5
29636 echo "${ECHO_T}no" >&6; }
29637
29638 fi
29639
29640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29641 fi
29642
29643 if test -z "$have_u_intxx_t" ; then
29644    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29645 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29646 if test "${ac_cv_have_uintxx_t+set}" = set; then
29647   echo $ECHO_N "(cached) $ECHO_C" >&6
29648 else
29649
29650       cat >conftest.$ac_ext <<_ACEOF
29651 /* confdefs.h.  */
29652 _ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h.  */
29656  #include <sys/types.h>
29657 int
29658 main ()
29659 {
29660  uint8_t a; uint16_t b;
29661            uint32_t c; a = b = c = 1;
29662   ;
29663   return 0;
29664 }
29665 _ACEOF
29666 rm -f conftest.$ac_objext
29667 if { (ac_try="$ac_compile"
29668 case "(($ac_try" in
29669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670   *) ac_try_echo=$ac_try;;
29671 esac
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673   (eval "$ac_compile") 2>conftest.er1
29674   ac_status=$?
29675   grep -v '^ *+' conftest.er1 >conftest.err
29676   rm -f conftest.er1
29677   cat conftest.err >&5
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); } &&
29680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29681   { (case "(($ac_try" in
29682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683   *) ac_try_echo=$ac_try;;
29684 esac
29685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686   (eval "$ac_try") 2>&5
29687   ac_status=$?
29688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29689   (exit $ac_status); }; } &&
29690          { ac_try='test -s conftest.$ac_objext'
29691   { (case "(($ac_try" in
29692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693   *) ac_try_echo=$ac_try;;
29694 esac
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696   (eval "$ac_try") 2>&5
29697   ac_status=$?
29698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699   (exit $ac_status); }; }; then
29700    ac_cv_have_uintxx_t="yes"
29701 else
29702   echo "$as_me: failed program was:" >&5
29703 sed 's/^/| /' conftest.$ac_ext >&5
29704
29705          ac_cv_have_uintxx_t="no"
29706
29707 fi
29708
29709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29710
29711 fi
29712 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29713 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29714    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29715       cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_UINTXX_T 1
29717 _ACEOF
29718
29719    fi
29720 fi
29721
29722 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29723           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29724 then
29725    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29726 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29727    cat >conftest.$ac_ext <<_ACEOF
29728 /* confdefs.h.  */
29729 _ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h.  */
29733  #include <sys/bitypes.h>
29734 int
29735 main ()
29736 {
29737  int64_t a; u_int64_t b;
29738        a = b = 1;
29739   ;
29740   return 0;
29741 }
29742 _ACEOF
29743 rm -f conftest.$ac_objext
29744 if { (ac_try="$ac_compile"
29745 case "(($ac_try" in
29746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747   *) ac_try_echo=$ac_try;;
29748 esac
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750   (eval "$ac_compile") 2>conftest.er1
29751   ac_status=$?
29752   grep -v '^ *+' conftest.er1 >conftest.err
29753   rm -f conftest.er1
29754   cat conftest.err >&5
29755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756   (exit $ac_status); } &&
29757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29758   { (case "(($ac_try" in
29759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760   *) ac_try_echo=$ac_try;;
29761 esac
29762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763   (eval "$ac_try") 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; } &&
29767          { ac_try='test -s conftest.$ac_objext'
29768   { (case "(($ac_try" in
29769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770   *) ac_try_echo=$ac_try;;
29771 esac
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773   (eval "$ac_try") 2>&5
29774   ac_status=$?
29775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776   (exit $ac_status); }; }; then
29777    cat >>confdefs.h <<\_ACEOF
29778 #define HAVE_U_INT64_T 1
29779 _ACEOF
29780
29781        cat >>confdefs.h <<\_ACEOF
29782 #define HAVE_INT64_T 1
29783 _ACEOF
29784
29785        { echo "$as_me:$LINENO: result: yes" >&5
29786 echo "${ECHO_T}yes" >&6; }
29787 else
29788   echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29790
29791          { echo "$as_me:$LINENO: result: no" >&5
29792 echo "${ECHO_T}no" >&6; }
29793
29794 fi
29795
29796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29797 fi
29798
29799 if (test -z "$have_uintxx_t" && \
29800           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29801 then
29802    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29803 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29804    cat >conftest.$ac_ext <<_ACEOF
29805 /* confdefs.h.  */
29806 _ACEOF
29807 cat confdefs.h >>conftest.$ac_ext
29808 cat >>conftest.$ac_ext <<_ACEOF
29809 /* end confdefs.h.  */
29810  #include <sys/bitypes.h>
29811 int
29812 main ()
29813 {
29814  uint8_t a; uint16_t b;
29815           uint32_t c; a = b = c = 1;
29816   ;
29817   return 0;
29818 }
29819 _ACEOF
29820 rm -f conftest.$ac_objext
29821 if { (ac_try="$ac_compile"
29822 case "(($ac_try" in
29823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29824   *) ac_try_echo=$ac_try;;
29825 esac
29826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29827   (eval "$ac_compile") 2>conftest.er1
29828   ac_status=$?
29829   grep -v '^ *+' conftest.er1 >conftest.err
29830   rm -f conftest.er1
29831   cat conftest.err >&5
29832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } &&
29834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29835   { (case "(($ac_try" in
29836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837   *) ac_try_echo=$ac_try;;
29838 esac
29839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840   (eval "$ac_try") 2>&5
29841   ac_status=$?
29842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843   (exit $ac_status); }; } &&
29844          { ac_try='test -s conftest.$ac_objext'
29845   { (case "(($ac_try" in
29846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847   *) ac_try_echo=$ac_try;;
29848 esac
29849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850   (eval "$ac_try") 2>&5
29851   ac_status=$?
29852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853   (exit $ac_status); }; }; then
29854    cat >>confdefs.h <<\_ACEOF
29855 #define HAVE_UINTXX_T 1
29856 _ACEOF
29857
29858        { echo "$as_me:$LINENO: result: yes" >&5
29859 echo "${ECHO_T}yes" >&6; }
29860 else
29861   echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29863
29864          { echo "$as_me:$LINENO: result: no" >&5
29865 echo "${ECHO_T}no" >&6; }
29866
29867 fi
29868
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870
29871 fi
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889 for ac_func in \
29890         fork \
29891         getcwd \
29892         gethostname \
29893         getpid \
29894         gettimeofday \
29895         setpgid \
29896         setpgrp \
29897         setsid \
29898         signal \
29899         strerror \
29900         strncmp \
29901         strncpy \
29902         vfprintf \
29903
29904 do
29905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29909   echo $ECHO_N "(cached) $ECHO_C" >&6
29910 else
29911   cat >conftest.$ac_ext <<_ACEOF
29912 /* confdefs.h.  */
29913 _ACEOF
29914 cat confdefs.h >>conftest.$ac_ext
29915 cat >>conftest.$ac_ext <<_ACEOF
29916 /* end confdefs.h.  */
29917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29919 #define $ac_func innocuous_$ac_func
29920
29921 /* System header to define __stub macros and hopefully few prototypes,
29922     which can conflict with char $ac_func (); below.
29923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29924     <limits.h> exists even on freestanding compilers.  */
29925
29926 #ifdef __STDC__
29927 # include <limits.h>
29928 #else
29929 # include <assert.h>
29930 #endif
29931
29932 #undef $ac_func
29933
29934 /* Override any GCC internal prototype to avoid an error.
29935    Use char because int might match the return type of a GCC
29936    builtin and then its argument prototype would still apply.  */
29937 #ifdef __cplusplus
29938 extern "C"
29939 #endif
29940 char $ac_func ();
29941 /* The GNU C library defines this for functions which it implements
29942     to always fail with ENOSYS.  Some functions are actually named
29943     something starting with __ and the normal name is an alias.  */
29944 #if defined __stub_$ac_func || defined __stub___$ac_func
29945 choke me
29946 #endif
29947
29948 int
29949 main ()
29950 {
29951 return $ac_func ();
29952   ;
29953   return 0;
29954 }
29955 _ACEOF
29956 rm -f conftest.$ac_objext conftest$ac_exeext
29957 if { (ac_try="$ac_link"
29958 case "(($ac_try" in
29959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960   *) ac_try_echo=$ac_try;;
29961 esac
29962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963   (eval "$ac_link") 2>conftest.er1
29964   ac_status=$?
29965   grep -v '^ *+' conftest.er1 >conftest.err
29966   rm -f conftest.er1
29967   cat conftest.err >&5
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); } &&
29970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29971   { (case "(($ac_try" in
29972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29973   *) ac_try_echo=$ac_try;;
29974 esac
29975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29976   (eval "$ac_try") 2>&5
29977   ac_status=$?
29978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979   (exit $ac_status); }; } &&
29980          { ac_try='test -s conftest$ac_exeext'
29981   { (case "(($ac_try" in
29982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983   *) ac_try_echo=$ac_try;;
29984 esac
29985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986   (eval "$ac_try") 2>&5
29987   ac_status=$?
29988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989   (exit $ac_status); }; }; then
29990   eval "$as_ac_var=yes"
29991 else
29992   echo "$as_me: failed program was:" >&5
29993 sed 's/^/| /' conftest.$ac_ext >&5
29994
29995         eval "$as_ac_var=no"
29996 fi
29997
29998 rm -f core conftest.err conftest.$ac_objext \
29999       conftest$ac_exeext conftest.$ac_ext
30000 fi
30001 ac_res=`eval echo '${'$as_ac_var'}'`
30002                { echo "$as_me:$LINENO: result: $ac_res" >&5
30003 echo "${ECHO_T}$ac_res" >&6; }
30004 if test `eval echo '${'$as_ac_var'}'` = yes; then
30005   cat >>confdefs.h <<_ACEOF
30006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30007 _ACEOF
30008
30009 else
30010   echo 'configure: cannot find needed function.'; exit 1
30011
30012 fi
30013 done
30014
30015
30016
30017 for ac_func in fchdir
30018 do
30019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30023   echo $ECHO_N "(cached) $ECHO_C" >&6
30024 else
30025   cat >conftest.$ac_ext <<_ACEOF
30026 /* confdefs.h.  */
30027 _ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h.  */
30031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30033 #define $ac_func innocuous_$ac_func
30034
30035 /* System header to define __stub macros and hopefully few prototypes,
30036     which can conflict with char $ac_func (); below.
30037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30038     <limits.h> exists even on freestanding compilers.  */
30039
30040 #ifdef __STDC__
30041 # include <limits.h>
30042 #else
30043 # include <assert.h>
30044 #endif
30045
30046 #undef $ac_func
30047
30048 /* Override any GCC internal prototype to avoid an error.
30049    Use char because int might match the return type of a GCC
30050    builtin and then its argument prototype would still apply.  */
30051 #ifdef __cplusplus
30052 extern "C"
30053 #endif
30054 char $ac_func ();
30055 /* The GNU C library defines this for functions which it implements
30056     to always fail with ENOSYS.  Some functions are actually named
30057     something starting with __ and the normal name is an alias.  */
30058 #if defined __stub_$ac_func || defined __stub___$ac_func
30059 choke me
30060 #endif
30061
30062 int
30063 main ()
30064 {
30065 return $ac_func ();
30066   ;
30067   return 0;
30068 }
30069 _ACEOF
30070 rm -f conftest.$ac_objext conftest$ac_exeext
30071 if { (ac_try="$ac_link"
30072 case "(($ac_try" in
30073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074   *) ac_try_echo=$ac_try;;
30075 esac
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077   (eval "$ac_link") 2>conftest.er1
30078   ac_status=$?
30079   grep -v '^ *+' conftest.er1 >conftest.err
30080   rm -f conftest.er1
30081   cat conftest.err >&5
30082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083   (exit $ac_status); } &&
30084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30085   { (case "(($ac_try" in
30086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087   *) ac_try_echo=$ac_try;;
30088 esac
30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090   (eval "$ac_try") 2>&5
30091   ac_status=$?
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); }; } &&
30094          { ac_try='test -s conftest$ac_exeext'
30095   { (case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_try") 2>&5
30101   ac_status=$?
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); }; }; then
30104   eval "$as_ac_var=yes"
30105 else
30106   echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30108
30109         eval "$as_ac_var=no"
30110 fi
30111
30112 rm -f core conftest.err conftest.$ac_objext \
30113       conftest$ac_exeext conftest.$ac_ext
30114 fi
30115 ac_res=`eval echo '${'$as_ac_var'}'`
30116                { echo "$as_me:$LINENO: result: $ac_res" >&5
30117 echo "${ECHO_T}$ac_res" >&6; }
30118 if test `eval echo '${'$as_ac_var'}'` = yes; then
30119   cat >>confdefs.h <<_ACEOF
30120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30121 _ACEOF
30122  cat >>confdefs.h <<\_ACEOF
30123 #define HAVE_FCHDIR 1
30124 _ACEOF
30125
30126 fi
30127 done
30128
30129
30130 for ac_func in strtoll
30131 do
30132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30136   echo $ECHO_N "(cached) $ECHO_C" >&6
30137 else
30138   cat >conftest.$ac_ext <<_ACEOF
30139 /* confdefs.h.  */
30140 _ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h.  */
30144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30146 #define $ac_func innocuous_$ac_func
30147
30148 /* System header to define __stub macros and hopefully few prototypes,
30149     which can conflict with char $ac_func (); below.
30150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30151     <limits.h> exists even on freestanding compilers.  */
30152
30153 #ifdef __STDC__
30154 # include <limits.h>
30155 #else
30156 # include <assert.h>
30157 #endif
30158
30159 #undef $ac_func
30160
30161 /* Override any GCC internal prototype to avoid an error.
30162    Use char because int might match the return type of a GCC
30163    builtin and then its argument prototype would still apply.  */
30164 #ifdef __cplusplus
30165 extern "C"
30166 #endif
30167 char $ac_func ();
30168 /* The GNU C library defines this for functions which it implements
30169     to always fail with ENOSYS.  Some functions are actually named
30170     something starting with __ and the normal name is an alias.  */
30171 #if defined __stub_$ac_func || defined __stub___$ac_func
30172 choke me
30173 #endif
30174
30175 int
30176 main ()
30177 {
30178 return $ac_func ();
30179   ;
30180   return 0;
30181 }
30182 _ACEOF
30183 rm -f conftest.$ac_objext conftest$ac_exeext
30184 if { (ac_try="$ac_link"
30185 case "(($ac_try" in
30186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187   *) ac_try_echo=$ac_try;;
30188 esac
30189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190   (eval "$ac_link") 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198   { (case "(($ac_try" in
30199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200   *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203   (eval "$ac_try") 2>&5
30204   ac_status=$?
30205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206   (exit $ac_status); }; } &&
30207          { ac_try='test -s conftest$ac_exeext'
30208   { (case "(($ac_try" in
30209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210   *) ac_try_echo=$ac_try;;
30211 esac
30212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213   (eval "$ac_try") 2>&5
30214   ac_status=$?
30215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216   (exit $ac_status); }; }; then
30217   eval "$as_ac_var=yes"
30218 else
30219   echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30221
30222         eval "$as_ac_var=no"
30223 fi
30224
30225 rm -f core conftest.err conftest.$ac_objext \
30226       conftest$ac_exeext conftest.$ac_ext
30227 fi
30228 ac_res=`eval echo '${'$as_ac_var'}'`
30229                { echo "$as_me:$LINENO: result: $ac_res" >&5
30230 echo "${ECHO_T}$ac_res" >&6; }
30231 if test `eval echo '${'$as_ac_var'}'` = yes; then
30232   cat >>confdefs.h <<_ACEOF
30233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30234 _ACEOF
30235  cat >>confdefs.h <<\_ACEOF
30236 #define HAVE_STRTOLL 1
30237 _ACEOF
30238
30239 fi
30240 done
30241
30242
30243 for ac_func in posix_fadvise
30244 do
30245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30249   echo $ECHO_N "(cached) $ECHO_C" >&6
30250 else
30251   cat >conftest.$ac_ext <<_ACEOF
30252 /* confdefs.h.  */
30253 _ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h.  */
30257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30259 #define $ac_func innocuous_$ac_func
30260
30261 /* System header to define __stub macros and hopefully few prototypes,
30262     which can conflict with char $ac_func (); below.
30263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30264     <limits.h> exists even on freestanding compilers.  */
30265
30266 #ifdef __STDC__
30267 # include <limits.h>
30268 #else
30269 # include <assert.h>
30270 #endif
30271
30272 #undef $ac_func
30273
30274 /* Override any GCC internal prototype to avoid an error.
30275    Use char because int might match the return type of a GCC
30276    builtin and then its argument prototype would still apply.  */
30277 #ifdef __cplusplus
30278 extern "C"
30279 #endif
30280 char $ac_func ();
30281 /* The GNU C library defines this for functions which it implements
30282     to always fail with ENOSYS.  Some functions are actually named
30283     something starting with __ and the normal name is an alias.  */
30284 #if defined __stub_$ac_func || defined __stub___$ac_func
30285 choke me
30286 #endif
30287
30288 int
30289 main ()
30290 {
30291 return $ac_func ();
30292   ;
30293   return 0;
30294 }
30295 _ACEOF
30296 rm -f conftest.$ac_objext conftest$ac_exeext
30297 if { (ac_try="$ac_link"
30298 case "(($ac_try" in
30299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300   *) ac_try_echo=$ac_try;;
30301 esac
30302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303   (eval "$ac_link") 2>conftest.er1
30304   ac_status=$?
30305   grep -v '^ *+' conftest.er1 >conftest.err
30306   rm -f conftest.er1
30307   cat conftest.err >&5
30308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309   (exit $ac_status); } &&
30310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30311   { (case "(($ac_try" in
30312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313   *) ac_try_echo=$ac_try;;
30314 esac
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316   (eval "$ac_try") 2>&5
30317   ac_status=$?
30318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); }; } &&
30320          { ac_try='test -s conftest$ac_exeext'
30321   { (case "(($ac_try" in
30322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323   *) ac_try_echo=$ac_try;;
30324 esac
30325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326   (eval "$ac_try") 2>&5
30327   ac_status=$?
30328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329   (exit $ac_status); }; }; then
30330   eval "$as_ac_var=yes"
30331 else
30332   echo "$as_me: failed program was:" >&5
30333 sed 's/^/| /' conftest.$ac_ext >&5
30334
30335         eval "$as_ac_var=no"
30336 fi
30337
30338 rm -f core conftest.err conftest.$ac_objext \
30339       conftest$ac_exeext conftest.$ac_ext
30340 fi
30341 ac_res=`eval echo '${'$as_ac_var'}'`
30342                { echo "$as_me:$LINENO: result: $ac_res" >&5
30343 echo "${ECHO_T}$ac_res" >&6; }
30344 if test `eval echo '${'$as_ac_var'}'` = yes; then
30345   cat >>confdefs.h <<_ACEOF
30346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30347 _ACEOF
30348
30349 fi
30350 done
30351
30352
30353 for ac_func in fdatasync
30354 do
30355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30359   echo $ECHO_N "(cached) $ECHO_C" >&6
30360 else
30361   cat >conftest.$ac_ext <<_ACEOF
30362 /* confdefs.h.  */
30363 _ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h.  */
30367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30369 #define $ac_func innocuous_$ac_func
30370
30371 /* System header to define __stub macros and hopefully few prototypes,
30372     which can conflict with char $ac_func (); below.
30373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30374     <limits.h> exists even on freestanding compilers.  */
30375
30376 #ifdef __STDC__
30377 # include <limits.h>
30378 #else
30379 # include <assert.h>
30380 #endif
30381
30382 #undef $ac_func
30383
30384 /* Override any GCC internal prototype to avoid an error.
30385    Use char because int might match the return type of a GCC
30386    builtin and then its argument prototype would still apply.  */
30387 #ifdef __cplusplus
30388 extern "C"
30389 #endif
30390 char $ac_func ();
30391 /* The GNU C library defines this for functions which it implements
30392     to always fail with ENOSYS.  Some functions are actually named
30393     something starting with __ and the normal name is an alias.  */
30394 #if defined __stub_$ac_func || defined __stub___$ac_func
30395 choke me
30396 #endif
30397
30398 int
30399 main ()
30400 {
30401 return $ac_func ();
30402   ;
30403   return 0;
30404 }
30405 _ACEOF
30406 rm -f conftest.$ac_objext conftest$ac_exeext
30407 if { (ac_try="$ac_link"
30408 case "(($ac_try" in
30409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410   *) ac_try_echo=$ac_try;;
30411 esac
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413   (eval "$ac_link") 2>conftest.er1
30414   ac_status=$?
30415   grep -v '^ *+' conftest.er1 >conftest.err
30416   rm -f conftest.er1
30417   cat conftest.err >&5
30418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419   (exit $ac_status); } &&
30420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421   { (case "(($ac_try" in
30422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423   *) ac_try_echo=$ac_try;;
30424 esac
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426   (eval "$ac_try") 2>&5
30427   ac_status=$?
30428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429   (exit $ac_status); }; } &&
30430          { ac_try='test -s conftest$ac_exeext'
30431   { (case "(($ac_try" in
30432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433   *) ac_try_echo=$ac_try;;
30434 esac
30435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436   (eval "$ac_try") 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); }; }; then
30440   eval "$as_ac_var=yes"
30441 else
30442   echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30444
30445         eval "$as_ac_var=no"
30446 fi
30447
30448 rm -f core conftest.err conftest.$ac_objext \
30449       conftest$ac_exeext conftest.$ac_ext
30450 fi
30451 ac_res=`eval echo '${'$as_ac_var'}'`
30452                { echo "$as_me:$LINENO: result: $ac_res" >&5
30453 echo "${ECHO_T}$ac_res" >&6; }
30454 if test `eval echo '${'$as_ac_var'}'` = yes; then
30455   cat >>confdefs.h <<_ACEOF
30456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30457 _ACEOF
30458
30459 fi
30460 done
30461
30462
30463
30464 for ac_func in chflags
30465 do
30466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30470   echo $ECHO_N "(cached) $ECHO_C" >&6
30471 else
30472   cat >conftest.$ac_ext <<_ACEOF
30473 /* confdefs.h.  */
30474 _ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h.  */
30478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30480 #define $ac_func innocuous_$ac_func
30481
30482 /* System header to define __stub macros and hopefully few prototypes,
30483     which can conflict with char $ac_func (); below.
30484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30485     <limits.h> exists even on freestanding compilers.  */
30486
30487 #ifdef __STDC__
30488 # include <limits.h>
30489 #else
30490 # include <assert.h>
30491 #endif
30492
30493 #undef $ac_func
30494
30495 /* Override any GCC internal prototype to avoid an error.
30496    Use char because int might match the return type of a GCC
30497    builtin and then its argument prototype would still apply.  */
30498 #ifdef __cplusplus
30499 extern "C"
30500 #endif
30501 char $ac_func ();
30502 /* The GNU C library defines this for functions which it implements
30503     to always fail with ENOSYS.  Some functions are actually named
30504     something starting with __ and the normal name is an alias.  */
30505 #if defined __stub_$ac_func || defined __stub___$ac_func
30506 choke me
30507 #endif
30508
30509 int
30510 main ()
30511 {
30512 return $ac_func ();
30513   ;
30514   return 0;
30515 }
30516 _ACEOF
30517 rm -f conftest.$ac_objext conftest$ac_exeext
30518 if { (ac_try="$ac_link"
30519 case "(($ac_try" in
30520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521   *) ac_try_echo=$ac_try;;
30522 esac
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524   (eval "$ac_link") 2>conftest.er1
30525   ac_status=$?
30526   grep -v '^ *+' conftest.er1 >conftest.err
30527   rm -f conftest.er1
30528   cat conftest.err >&5
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); } &&
30531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30532   { (case "(($ac_try" in
30533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30534   *) ac_try_echo=$ac_try;;
30535 esac
30536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30537   (eval "$ac_try") 2>&5
30538   ac_status=$?
30539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540   (exit $ac_status); }; } &&
30541          { ac_try='test -s conftest$ac_exeext'
30542   { (case "(($ac_try" in
30543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544   *) ac_try_echo=$ac_try;;
30545 esac
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547   (eval "$ac_try") 2>&5
30548   ac_status=$?
30549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550   (exit $ac_status); }; }; then
30551   eval "$as_ac_var=yes"
30552 else
30553   echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30555
30556         eval "$as_ac_var=no"
30557 fi
30558
30559 rm -f core conftest.err conftest.$ac_objext \
30560       conftest$ac_exeext conftest.$ac_ext
30561 fi
30562 ac_res=`eval echo '${'$as_ac_var'}'`
30563                { echo "$as_me:$LINENO: result: $ac_res" >&5
30564 echo "${ECHO_T}$ac_res" >&6; }
30565 if test `eval echo '${'$as_ac_var'}'` = yes; then
30566   cat >>confdefs.h <<_ACEOF
30567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30568 _ACEOF
30569
30570 fi
30571 done
30572
30573
30574
30575
30576
30577
30578 for ac_func in snprintf vsnprintf gethostid fseeko
30579 do
30580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30584   echo $ECHO_N "(cached) $ECHO_C" >&6
30585 else
30586   cat >conftest.$ac_ext <<_ACEOF
30587 /* confdefs.h.  */
30588 _ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h.  */
30592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30594 #define $ac_func innocuous_$ac_func
30595
30596 /* System header to define __stub macros and hopefully few prototypes,
30597     which can conflict with char $ac_func (); below.
30598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30599     <limits.h> exists even on freestanding compilers.  */
30600
30601 #ifdef __STDC__
30602 # include <limits.h>
30603 #else
30604 # include <assert.h>
30605 #endif
30606
30607 #undef $ac_func
30608
30609 /* Override any GCC internal prototype to avoid an error.
30610    Use char because int might match the return type of a GCC
30611    builtin and then its argument prototype would still apply.  */
30612 #ifdef __cplusplus
30613 extern "C"
30614 #endif
30615 char $ac_func ();
30616 /* The GNU C library defines this for functions which it implements
30617     to always fail with ENOSYS.  Some functions are actually named
30618     something starting with __ and the normal name is an alias.  */
30619 #if defined __stub_$ac_func || defined __stub___$ac_func
30620 choke me
30621 #endif
30622
30623 int
30624 main ()
30625 {
30626 return $ac_func ();
30627   ;
30628   return 0;
30629 }
30630 _ACEOF
30631 rm -f conftest.$ac_objext conftest$ac_exeext
30632 if { (ac_try="$ac_link"
30633 case "(($ac_try" in
30634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635   *) ac_try_echo=$ac_try;;
30636 esac
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638   (eval "$ac_link") 2>conftest.er1
30639   ac_status=$?
30640   grep -v '^ *+' conftest.er1 >conftest.err
30641   rm -f conftest.er1
30642   cat conftest.err >&5
30643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644   (exit $ac_status); } &&
30645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30646   { (case "(($ac_try" in
30647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648   *) ac_try_echo=$ac_try;;
30649 esac
30650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30651   (eval "$ac_try") 2>&5
30652   ac_status=$?
30653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654   (exit $ac_status); }; } &&
30655          { ac_try='test -s conftest$ac_exeext'
30656   { (case "(($ac_try" in
30657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658   *) ac_try_echo=$ac_try;;
30659 esac
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661   (eval "$ac_try") 2>&5
30662   ac_status=$?
30663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664   (exit $ac_status); }; }; then
30665   eval "$as_ac_var=yes"
30666 else
30667   echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30669
30670         eval "$as_ac_var=no"
30671 fi
30672
30673 rm -f core conftest.err conftest.$ac_objext \
30674       conftest$ac_exeext conftest.$ac_ext
30675 fi
30676 ac_res=`eval echo '${'$as_ac_var'}'`
30677                { echo "$as_me:$LINENO: result: $ac_res" >&5
30678 echo "${ECHO_T}$ac_res" >&6; }
30679 if test `eval echo '${'$as_ac_var'}'` = yes; then
30680   cat >>confdefs.h <<_ACEOF
30681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30682 _ACEOF
30683
30684 fi
30685 done
30686
30687
30688
30689
30690
30691
30692 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30693 do
30694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30698   echo $ECHO_N "(cached) $ECHO_C" >&6
30699 else
30700   cat >conftest.$ac_ext <<_ACEOF
30701 /* confdefs.h.  */
30702 _ACEOF
30703 cat confdefs.h >>conftest.$ac_ext
30704 cat >>conftest.$ac_ext <<_ACEOF
30705 /* end confdefs.h.  */
30706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30708 #define $ac_func innocuous_$ac_func
30709
30710 /* System header to define __stub macros and hopefully few prototypes,
30711     which can conflict with char $ac_func (); below.
30712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30713     <limits.h> exists even on freestanding compilers.  */
30714
30715 #ifdef __STDC__
30716 # include <limits.h>
30717 #else
30718 # include <assert.h>
30719 #endif
30720
30721 #undef $ac_func
30722
30723 /* Override any GCC internal prototype to avoid an error.
30724    Use char because int might match the return type of a GCC
30725    builtin and then its argument prototype would still apply.  */
30726 #ifdef __cplusplus
30727 extern "C"
30728 #endif
30729 char $ac_func ();
30730 /* The GNU C library defines this for functions which it implements
30731     to always fail with ENOSYS.  Some functions are actually named
30732     something starting with __ and the normal name is an alias.  */
30733 #if defined __stub_$ac_func || defined __stub___$ac_func
30734 choke me
30735 #endif
30736
30737 int
30738 main ()
30739 {
30740 return $ac_func ();
30741   ;
30742   return 0;
30743 }
30744 _ACEOF
30745 rm -f conftest.$ac_objext conftest$ac_exeext
30746 if { (ac_try="$ac_link"
30747 case "(($ac_try" in
30748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749   *) ac_try_echo=$ac_try;;
30750 esac
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752   (eval "$ac_link") 2>conftest.er1
30753   ac_status=$?
30754   grep -v '^ *+' conftest.er1 >conftest.err
30755   rm -f conftest.er1
30756   cat conftest.err >&5
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); } &&
30759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30760   { (case "(($ac_try" in
30761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762   *) ac_try_echo=$ac_try;;
30763 esac
30764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765   (eval "$ac_try") 2>&5
30766   ac_status=$?
30767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768   (exit $ac_status); }; } &&
30769          { ac_try='test -s conftest$ac_exeext'
30770   { (case "(($ac_try" in
30771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772   *) ac_try_echo=$ac_try;;
30773 esac
30774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775   (eval "$ac_try") 2>&5
30776   ac_status=$?
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); }; }; then
30779   eval "$as_ac_var=yes"
30780 else
30781   echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30783
30784         eval "$as_ac_var=no"
30785 fi
30786
30787 rm -f core conftest.err conftest.$ac_objext \
30788       conftest$ac_exeext conftest.$ac_ext
30789 fi
30790 ac_res=`eval echo '${'$as_ac_var'}'`
30791                { echo "$as_me:$LINENO: result: $ac_res" >&5
30792 echo "${ECHO_T}$ac_res" >&6; }
30793 if test `eval echo '${'$as_ac_var'}'` = yes; then
30794   cat >>confdefs.h <<_ACEOF
30795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30796 _ACEOF
30797
30798 fi
30799 done
30800
30801
30802 # If resolver functions are not in libc check for -lnsl or -lresolv.
30803 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30804 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30805 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30806   echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808   cat >conftest.$ac_ext <<_ACEOF
30809 /* confdefs.h.  */
30810 _ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h.  */
30814 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30816 #define gethostbyname_r innocuous_gethostbyname_r
30817
30818 /* System header to define __stub macros and hopefully few prototypes,
30819     which can conflict with char gethostbyname_r (); below.
30820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30821     <limits.h> exists even on freestanding compilers.  */
30822
30823 #ifdef __STDC__
30824 # include <limits.h>
30825 #else
30826 # include <assert.h>
30827 #endif
30828
30829 #undef gethostbyname_r
30830
30831 /* Override any GCC internal prototype to avoid an error.
30832    Use char because int might match the return type of a GCC
30833    builtin and then its argument prototype would still apply.  */
30834 #ifdef __cplusplus
30835 extern "C"
30836 #endif
30837 char gethostbyname_r ();
30838 /* The GNU C library defines this for functions which it implements
30839     to always fail with ENOSYS.  Some functions are actually named
30840     something starting with __ and the normal name is an alias.  */
30841 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30842 choke me
30843 #endif
30844
30845 int
30846 main ()
30847 {
30848 return gethostbyname_r ();
30849   ;
30850   return 0;
30851 }
30852 _ACEOF
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (ac_try="$ac_link"
30855 case "(($ac_try" in
30856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857   *) ac_try_echo=$ac_try;;
30858 esac
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860   (eval "$ac_link") 2>conftest.er1
30861   ac_status=$?
30862   grep -v '^ *+' conftest.er1 >conftest.err
30863   rm -f conftest.er1
30864   cat conftest.err >&5
30865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866   (exit $ac_status); } &&
30867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30868   { (case "(($ac_try" in
30869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870   *) ac_try_echo=$ac_try;;
30871 esac
30872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30873   (eval "$ac_try") 2>&5
30874   ac_status=$?
30875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876   (exit $ac_status); }; } &&
30877          { ac_try='test -s conftest$ac_exeext'
30878   { (case "(($ac_try" in
30879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880   *) ac_try_echo=$ac_try;;
30881 esac
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883   (eval "$ac_try") 2>&5
30884   ac_status=$?
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); }; }; then
30887   ac_cv_func_gethostbyname_r=yes
30888 else
30889   echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30891
30892         ac_cv_func_gethostbyname_r=no
30893 fi
30894
30895 rm -f core conftest.err conftest.$ac_objext \
30896       conftest$ac_exeext conftest.$ac_ext
30897 fi
30898 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30899 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30900 if test $ac_cv_func_gethostbyname_r = yes; then
30901   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30902 echo "${ECHO_T}using libc's resolver" >&6; }
30903 else
30904
30905 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30906 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30907 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30908   echo $ECHO_N "(cached) $ECHO_C" >&6
30909 else
30910   ac_check_lib_save_LIBS=$LIBS
30911 LIBS="-lnsl  $LIBS"
30912 cat >conftest.$ac_ext <<_ACEOF
30913 /* confdefs.h.  */
30914 _ACEOF
30915 cat confdefs.h >>conftest.$ac_ext
30916 cat >>conftest.$ac_ext <<_ACEOF
30917 /* end confdefs.h.  */
30918
30919 /* Override any GCC internal prototype to avoid an error.
30920    Use char because int might match the return type of a GCC
30921    builtin and then its argument prototype would still apply.  */
30922 #ifdef __cplusplus
30923 extern "C"
30924 #endif
30925 char gethostbyname_r ();
30926 int
30927 main ()
30928 {
30929 return gethostbyname_r ();
30930   ;
30931   return 0;
30932 }
30933 _ACEOF
30934 rm -f conftest.$ac_objext conftest$ac_exeext
30935 if { (ac_try="$ac_link"
30936 case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941   (eval "$ac_link") 2>conftest.er1
30942   ac_status=$?
30943   grep -v '^ *+' conftest.er1 >conftest.err
30944   rm -f conftest.er1
30945   cat conftest.err >&5
30946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947   (exit $ac_status); } &&
30948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30949   { (case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954   (eval "$ac_try") 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; } &&
30958          { ac_try='test -s conftest$ac_exeext'
30959   { (case "(($ac_try" in
30960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961   *) ac_try_echo=$ac_try;;
30962 esac
30963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964   (eval "$ac_try") 2>&5
30965   ac_status=$?
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); }; }; then
30968   ac_cv_lib_nsl_gethostbyname_r=yes
30969 else
30970   echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30972
30973         ac_cv_lib_nsl_gethostbyname_r=no
30974 fi
30975
30976 rm -f core conftest.err conftest.$ac_objext \
30977       conftest$ac_exeext conftest.$ac_ext
30978 LIBS=$ac_check_lib_save_LIBS
30979 fi
30980 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30981 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30982 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30983   cat >>confdefs.h <<_ACEOF
30984 #define HAVE_LIBNSL 1
30985 _ACEOF
30986
30987   LIBS="-lnsl $LIBS"
30988
30989 fi
30990
30991
30992 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30993 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30994 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30995   echo $ECHO_N "(cached) $ECHO_C" >&6
30996 else
30997   ac_check_lib_save_LIBS=$LIBS
30998 LIBS="-lresolv  $LIBS"
30999 cat >conftest.$ac_ext <<_ACEOF
31000 /* confdefs.h.  */
31001 _ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h.  */
31005
31006 /* Override any GCC internal prototype to avoid an error.
31007    Use char because int might match the return type of a GCC
31008    builtin and then its argument prototype would still apply.  */
31009 #ifdef __cplusplus
31010 extern "C"
31011 #endif
31012 char gethostbyname_r ();
31013 int
31014 main ()
31015 {
31016 return gethostbyname_r ();
31017   ;
31018   return 0;
31019 }
31020 _ACEOF
31021 rm -f conftest.$ac_objext conftest$ac_exeext
31022 if { (ac_try="$ac_link"
31023 case "(($ac_try" in
31024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31025   *) ac_try_echo=$ac_try;;
31026 esac
31027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31028   (eval "$ac_link") 2>conftest.er1
31029   ac_status=$?
31030   grep -v '^ *+' conftest.er1 >conftest.err
31031   rm -f conftest.er1
31032   cat conftest.err >&5
31033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034   (exit $ac_status); } &&
31035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31036   { (case "(($ac_try" in
31037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038   *) ac_try_echo=$ac_try;;
31039 esac
31040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041   (eval "$ac_try") 2>&5
31042   ac_status=$?
31043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044   (exit $ac_status); }; } &&
31045          { ac_try='test -s conftest$ac_exeext'
31046   { (case "(($ac_try" in
31047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048   *) ac_try_echo=$ac_try;;
31049 esac
31050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051   (eval "$ac_try") 2>&5
31052   ac_status=$?
31053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054   (exit $ac_status); }; }; then
31055   ac_cv_lib_resolv_gethostbyname_r=yes
31056 else
31057   echo "$as_me: failed program was:" >&5
31058 sed 's/^/| /' conftest.$ac_ext >&5
31059
31060         ac_cv_lib_resolv_gethostbyname_r=no
31061 fi
31062
31063 rm -f core conftest.err conftest.$ac_objext \
31064       conftest$ac_exeext conftest.$ac_ext
31065 LIBS=$ac_check_lib_save_LIBS
31066 fi
31067 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31068 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31069 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31070   cat >>confdefs.h <<_ACEOF
31071 #define HAVE_LIBRESOLV 1
31072 _ACEOF
31073
31074   LIBS="-lresolv $LIBS"
31075
31076 fi
31077
31078 fi
31079
31080
31081
31082
31083
31084 for ac_func in inet_pton
31085 do
31086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31090   echo $ECHO_N "(cached) $ECHO_C" >&6
31091 else
31092   cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h.  */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h.  */
31098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31100 #define $ac_func innocuous_$ac_func
31101
31102 /* System header to define __stub macros and hopefully few prototypes,
31103     which can conflict with char $ac_func (); below.
31104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31105     <limits.h> exists even on freestanding compilers.  */
31106
31107 #ifdef __STDC__
31108 # include <limits.h>
31109 #else
31110 # include <assert.h>
31111 #endif
31112
31113 #undef $ac_func
31114
31115 /* Override any GCC internal prototype to avoid an error.
31116    Use char because int might match the return type of a GCC
31117    builtin and then its argument prototype would still apply.  */
31118 #ifdef __cplusplus
31119 extern "C"
31120 #endif
31121 char $ac_func ();
31122 /* The GNU C library defines this for functions which it implements
31123     to always fail with ENOSYS.  Some functions are actually named
31124     something starting with __ and the normal name is an alias.  */
31125 #if defined __stub_$ac_func || defined __stub___$ac_func
31126 choke me
31127 #endif
31128
31129 int
31130 main ()
31131 {
31132 return $ac_func ();
31133   ;
31134   return 0;
31135 }
31136 _ACEOF
31137 rm -f conftest.$ac_objext conftest$ac_exeext
31138 if { (ac_try="$ac_link"
31139 case "(($ac_try" in
31140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31141   *) ac_try_echo=$ac_try;;
31142 esac
31143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31144   (eval "$ac_link") 2>conftest.er1
31145   ac_status=$?
31146   grep -v '^ *+' conftest.er1 >conftest.err
31147   rm -f conftest.er1
31148   cat conftest.err >&5
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); } &&
31151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31152   { (case "(($ac_try" in
31153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154   *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157   (eval "$ac_try") 2>&5
31158   ac_status=$?
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); }; } &&
31161          { ac_try='test -s conftest$ac_exeext'
31162   { (case "(($ac_try" in
31163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164   *) ac_try_echo=$ac_try;;
31165 esac
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167   (eval "$ac_try") 2>&5
31168   ac_status=$?
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); }; }; then
31171   eval "$as_ac_var=yes"
31172 else
31173   echo "$as_me: failed program was:" >&5
31174 sed 's/^/| /' conftest.$ac_ext >&5
31175
31176         eval "$as_ac_var=no"
31177 fi
31178
31179 rm -f core conftest.err conftest.$ac_objext \
31180       conftest$ac_exeext conftest.$ac_ext
31181 fi
31182 ac_res=`eval echo '${'$as_ac_var'}'`
31183                { echo "$as_me:$LINENO: result: $ac_res" >&5
31184 echo "${ECHO_T}$ac_res" >&6; }
31185 if test `eval echo '${'$as_ac_var'}'` = yes; then
31186   cat >>confdefs.h <<_ACEOF
31187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31188 _ACEOF
31189  cat >>confdefs.h <<\_ACEOF
31190 #define HAVE_INET_PTON 1
31191 _ACEOF
31192
31193 fi
31194 done
31195
31196
31197 for ac_func in inet_ntop
31198 do
31199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31203   echo $ECHO_N "(cached) $ECHO_C" >&6
31204 else
31205   cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h.  */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h.  */
31211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31213 #define $ac_func innocuous_$ac_func
31214
31215 /* System header to define __stub macros and hopefully few prototypes,
31216     which can conflict with char $ac_func (); below.
31217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31218     <limits.h> exists even on freestanding compilers.  */
31219
31220 #ifdef __STDC__
31221 # include <limits.h>
31222 #else
31223 # include <assert.h>
31224 #endif
31225
31226 #undef $ac_func
31227
31228 /* Override any GCC internal prototype to avoid an error.
31229    Use char because int might match the return type of a GCC
31230    builtin and then its argument prototype would still apply.  */
31231 #ifdef __cplusplus
31232 extern "C"
31233 #endif
31234 char $ac_func ();
31235 /* The GNU C library defines this for functions which it implements
31236     to always fail with ENOSYS.  Some functions are actually named
31237     something starting with __ and the normal name is an alias.  */
31238 #if defined __stub_$ac_func || defined __stub___$ac_func
31239 choke me
31240 #endif
31241
31242 int
31243 main ()
31244 {
31245 return $ac_func ();
31246   ;
31247   return 0;
31248 }
31249 _ACEOF
31250 rm -f conftest.$ac_objext conftest$ac_exeext
31251 if { (ac_try="$ac_link"
31252 case "(($ac_try" in
31253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254   *) ac_try_echo=$ac_try;;
31255 esac
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257   (eval "$ac_link") 2>conftest.er1
31258   ac_status=$?
31259   grep -v '^ *+' conftest.er1 >conftest.err
31260   rm -f conftest.er1
31261   cat conftest.err >&5
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } &&
31264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31265   { (case "(($ac_try" in
31266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267   *) ac_try_echo=$ac_try;;
31268 esac
31269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270   (eval "$ac_try") 2>&5
31271   ac_status=$?
31272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); }; } &&
31274          { ac_try='test -s conftest$ac_exeext'
31275   { (case "(($ac_try" in
31276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277   *) ac_try_echo=$ac_try;;
31278 esac
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280   (eval "$ac_try") 2>&5
31281   ac_status=$?
31282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283   (exit $ac_status); }; }; then
31284   eval "$as_ac_var=yes"
31285 else
31286   echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.$ac_ext >&5
31288
31289         eval "$as_ac_var=no"
31290 fi
31291
31292 rm -f core conftest.err conftest.$ac_objext \
31293       conftest$ac_exeext conftest.$ac_ext
31294 fi
31295 ac_res=`eval echo '${'$as_ac_var'}'`
31296                { echo "$as_me:$LINENO: result: $ac_res" >&5
31297 echo "${ECHO_T}$ac_res" >&6; }
31298 if test `eval echo '${'$as_ac_var'}'` = yes; then
31299   cat >>confdefs.h <<_ACEOF
31300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31301 _ACEOF
31302  cat >>confdefs.h <<\_ACEOF
31303 #define HAVE_INET_NTOP 1
31304 _ACEOF
31305
31306 fi
31307 done
31308
31309
31310 for ac_func in gethostbyname2
31311 do
31312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31316   echo $ECHO_N "(cached) $ECHO_C" >&6
31317 else
31318   cat >conftest.$ac_ext <<_ACEOF
31319 /* confdefs.h.  */
31320 _ACEOF
31321 cat confdefs.h >>conftest.$ac_ext
31322 cat >>conftest.$ac_ext <<_ACEOF
31323 /* end confdefs.h.  */
31324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31326 #define $ac_func innocuous_$ac_func
31327
31328 /* System header to define __stub macros and hopefully few prototypes,
31329     which can conflict with char $ac_func (); below.
31330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31331     <limits.h> exists even on freestanding compilers.  */
31332
31333 #ifdef __STDC__
31334 # include <limits.h>
31335 #else
31336 # include <assert.h>
31337 #endif
31338
31339 #undef $ac_func
31340
31341 /* Override any GCC internal prototype to avoid an error.
31342    Use char because int might match the return type of a GCC
31343    builtin and then its argument prototype would still apply.  */
31344 #ifdef __cplusplus
31345 extern "C"
31346 #endif
31347 char $ac_func ();
31348 /* The GNU C library defines this for functions which it implements
31349     to always fail with ENOSYS.  Some functions are actually named
31350     something starting with __ and the normal name is an alias.  */
31351 #if defined __stub_$ac_func || defined __stub___$ac_func
31352 choke me
31353 #endif
31354
31355 int
31356 main ()
31357 {
31358 return $ac_func ();
31359   ;
31360   return 0;
31361 }
31362 _ACEOF
31363 rm -f conftest.$ac_objext conftest$ac_exeext
31364 if { (ac_try="$ac_link"
31365 case "(($ac_try" in
31366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367   *) ac_try_echo=$ac_try;;
31368 esac
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370   (eval "$ac_link") 2>conftest.er1
31371   ac_status=$?
31372   grep -v '^ *+' conftest.er1 >conftest.err
31373   rm -f conftest.er1
31374   cat conftest.err >&5
31375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376   (exit $ac_status); } &&
31377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31378   { (case "(($ac_try" in
31379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31380   *) ac_try_echo=$ac_try;;
31381 esac
31382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31383   (eval "$ac_try") 2>&5
31384   ac_status=$?
31385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386   (exit $ac_status); }; } &&
31387          { ac_try='test -s conftest$ac_exeext'
31388   { (case "(($ac_try" in
31389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390   *) ac_try_echo=$ac_try;;
31391 esac
31392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393   (eval "$ac_try") 2>&5
31394   ac_status=$?
31395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396   (exit $ac_status); }; }; then
31397   eval "$as_ac_var=yes"
31398 else
31399   echo "$as_me: failed program was:" >&5
31400 sed 's/^/| /' conftest.$ac_ext >&5
31401
31402         eval "$as_ac_var=no"
31403 fi
31404
31405 rm -f core conftest.err conftest.$ac_objext \
31406       conftest$ac_exeext conftest.$ac_ext
31407 fi
31408 ac_res=`eval echo '${'$as_ac_var'}'`
31409                { echo "$as_me:$LINENO: result: $ac_res" >&5
31410 echo "${ECHO_T}$ac_res" >&6; }
31411 if test `eval echo '${'$as_ac_var'}'` = yes; then
31412   cat >>confdefs.h <<_ACEOF
31413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31414 _ACEOF
31415  cat >>confdefs.h <<\_ACEOF
31416 #define HAVE_GETHOSTBYNAME2 1
31417 _ACEOF
31418
31419 fi
31420 done
31421
31422
31423 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31424 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31425 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31426   echo $ECHO_N "(cached) $ECHO_C" >&6
31427 else
31428   cat >conftest.$ac_ext <<_ACEOF
31429 /* confdefs.h.  */
31430 _ACEOF
31431 cat confdefs.h >>conftest.$ac_ext
31432 cat >>conftest.$ac_ext <<_ACEOF
31433 /* end confdefs.h.  */
31434 #include <sys/socket.h>
31435 int
31436 main ()
31437 {
31438 struct sockaddr s; s.sa_len;
31439   ;
31440   return 0;
31441 }
31442 _ACEOF
31443 rm -f conftest.$ac_objext
31444 if { (ac_try="$ac_compile"
31445 case "(($ac_try" in
31446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447   *) ac_try_echo=$ac_try;;
31448 esac
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450   (eval "$ac_compile") 2>conftest.er1
31451   ac_status=$?
31452   grep -v '^ *+' conftest.er1 >conftest.err
31453   rm -f conftest.er1
31454   cat conftest.err >&5
31455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456   (exit $ac_status); } &&
31457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31458   { (case "(($ac_try" in
31459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31460   *) ac_try_echo=$ac_try;;
31461 esac
31462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31463   (eval "$ac_try") 2>&5
31464   ac_status=$?
31465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466   (exit $ac_status); }; } &&
31467          { ac_try='test -s conftest.$ac_objext'
31468   { (case "(($ac_try" in
31469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31470   *) ac_try_echo=$ac_try;;
31471 esac
31472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31473   (eval "$ac_try") 2>&5
31474   ac_status=$?
31475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476   (exit $ac_status); }; }; then
31477   ac_cv_struct_sockaddr_sa_len=yes
31478 else
31479   echo "$as_me: failed program was:" >&5
31480 sed 's/^/| /' conftest.$ac_ext >&5
31481
31482         ac_cv_struct_sockaddr_sa_len=no
31483 fi
31484
31485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31486 fi
31487 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31488 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31489
31490  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31491
31492 cat >>confdefs.h <<\_ACEOF
31493 #define HAVE_SA_LEN 1
31494 _ACEOF
31495
31496  fi
31497
31498
31499
31500
31501
31502 for ac_func in strftime
31503 do
31504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31508   echo $ECHO_N "(cached) $ECHO_C" >&6
31509 else
31510   cat >conftest.$ac_ext <<_ACEOF
31511 /* confdefs.h.  */
31512 _ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h.  */
31516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31518 #define $ac_func innocuous_$ac_func
31519
31520 /* System header to define __stub macros and hopefully few prototypes,
31521     which can conflict with char $ac_func (); below.
31522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31523     <limits.h> exists even on freestanding compilers.  */
31524
31525 #ifdef __STDC__
31526 # include <limits.h>
31527 #else
31528 # include <assert.h>
31529 #endif
31530
31531 #undef $ac_func
31532
31533 /* Override any GCC internal prototype to avoid an error.
31534    Use char because int might match the return type of a GCC
31535    builtin and then its argument prototype would still apply.  */
31536 #ifdef __cplusplus
31537 extern "C"
31538 #endif
31539 char $ac_func ();
31540 /* The GNU C library defines this for functions which it implements
31541     to always fail with ENOSYS.  Some functions are actually named
31542     something starting with __ and the normal name is an alias.  */
31543 #if defined __stub_$ac_func || defined __stub___$ac_func
31544 choke me
31545 #endif
31546
31547 int
31548 main ()
31549 {
31550 return $ac_func ();
31551   ;
31552   return 0;
31553 }
31554 _ACEOF
31555 rm -f conftest.$ac_objext conftest$ac_exeext
31556 if { (ac_try="$ac_link"
31557 case "(($ac_try" in
31558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559   *) ac_try_echo=$ac_try;;
31560 esac
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562   (eval "$ac_link") 2>conftest.er1
31563   ac_status=$?
31564   grep -v '^ *+' conftest.er1 >conftest.err
31565   rm -f conftest.er1
31566   cat conftest.err >&5
31567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568   (exit $ac_status); } &&
31569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31570   { (case "(($ac_try" in
31571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572   *) ac_try_echo=$ac_try;;
31573 esac
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575   (eval "$ac_try") 2>&5
31576   ac_status=$?
31577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578   (exit $ac_status); }; } &&
31579          { ac_try='test -s conftest$ac_exeext'
31580   { (case "(($ac_try" in
31581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582   *) ac_try_echo=$ac_try;;
31583 esac
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585   (eval "$ac_try") 2>&5
31586   ac_status=$?
31587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); }; }; then
31589   eval "$as_ac_var=yes"
31590 else
31591   echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31593
31594         eval "$as_ac_var=no"
31595 fi
31596
31597 rm -f core conftest.err conftest.$ac_objext \
31598       conftest$ac_exeext conftest.$ac_ext
31599 fi
31600 ac_res=`eval echo '${'$as_ac_var'}'`
31601                { echo "$as_me:$LINENO: result: $ac_res" >&5
31602 echo "${ECHO_T}$ac_res" >&6; }
31603 if test `eval echo '${'$as_ac_var'}'` = yes; then
31604   cat >>confdefs.h <<_ACEOF
31605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31606 _ACEOF
31607
31608 else
31609   # strftime is in -lintl on SCO UNIX.
31610 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31611 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31612 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31613   echo $ECHO_N "(cached) $ECHO_C" >&6
31614 else
31615   ac_check_lib_save_LIBS=$LIBS
31616 LIBS="-lintl  $LIBS"
31617 cat >conftest.$ac_ext <<_ACEOF
31618 /* confdefs.h.  */
31619 _ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h.  */
31623
31624 /* Override any GCC internal prototype to avoid an error.
31625    Use char because int might match the return type of a GCC
31626    builtin and then its argument prototype would still apply.  */
31627 #ifdef __cplusplus
31628 extern "C"
31629 #endif
31630 char strftime ();
31631 int
31632 main ()
31633 {
31634 return strftime ();
31635   ;
31636   return 0;
31637 }
31638 _ACEOF
31639 rm -f conftest.$ac_objext conftest$ac_exeext
31640 if { (ac_try="$ac_link"
31641 case "(($ac_try" in
31642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31643   *) ac_try_echo=$ac_try;;
31644 esac
31645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31646   (eval "$ac_link") 2>conftest.er1
31647   ac_status=$?
31648   grep -v '^ *+' conftest.er1 >conftest.err
31649   rm -f conftest.er1
31650   cat conftest.err >&5
31651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652   (exit $ac_status); } &&
31653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31654   { (case "(($ac_try" in
31655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656   *) ac_try_echo=$ac_try;;
31657 esac
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659   (eval "$ac_try") 2>&5
31660   ac_status=$?
31661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662   (exit $ac_status); }; } &&
31663          { ac_try='test -s conftest$ac_exeext'
31664   { (case "(($ac_try" in
31665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31666   *) ac_try_echo=$ac_try;;
31667 esac
31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31669   (eval "$ac_try") 2>&5
31670   ac_status=$?
31671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672   (exit $ac_status); }; }; then
31673   ac_cv_lib_intl_strftime=yes
31674 else
31675   echo "$as_me: failed program was:" >&5
31676 sed 's/^/| /' conftest.$ac_ext >&5
31677
31678         ac_cv_lib_intl_strftime=no
31679 fi
31680
31681 rm -f core conftest.err conftest.$ac_objext \
31682       conftest$ac_exeext conftest.$ac_ext
31683 LIBS=$ac_check_lib_save_LIBS
31684 fi
31685 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31686 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31687 if test $ac_cv_lib_intl_strftime = yes; then
31688   cat >>confdefs.h <<\_ACEOF
31689 #define HAVE_STRFTIME 1
31690 _ACEOF
31691
31692 LIBS="-lintl $LIBS"
31693 fi
31694
31695 fi
31696 done
31697
31698
31699 for ac_func in vprintf
31700 do
31701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31705   echo $ECHO_N "(cached) $ECHO_C" >&6
31706 else
31707   cat >conftest.$ac_ext <<_ACEOF
31708 /* confdefs.h.  */
31709 _ACEOF
31710 cat confdefs.h >>conftest.$ac_ext
31711 cat >>conftest.$ac_ext <<_ACEOF
31712 /* end confdefs.h.  */
31713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31715 #define $ac_func innocuous_$ac_func
31716
31717 /* System header to define __stub macros and hopefully few prototypes,
31718     which can conflict with char $ac_func (); below.
31719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31720     <limits.h> exists even on freestanding compilers.  */
31721
31722 #ifdef __STDC__
31723 # include <limits.h>
31724 #else
31725 # include <assert.h>
31726 #endif
31727
31728 #undef $ac_func
31729
31730 /* Override any GCC internal prototype to avoid an error.
31731    Use char because int might match the return type of a GCC
31732    builtin and then its argument prototype would still apply.  */
31733 #ifdef __cplusplus
31734 extern "C"
31735 #endif
31736 char $ac_func ();
31737 /* The GNU C library defines this for functions which it implements
31738     to always fail with ENOSYS.  Some functions are actually named
31739     something starting with __ and the normal name is an alias.  */
31740 #if defined __stub_$ac_func || defined __stub___$ac_func
31741 choke me
31742 #endif
31743
31744 int
31745 main ()
31746 {
31747 return $ac_func ();
31748   ;
31749   return 0;
31750 }
31751 _ACEOF
31752 rm -f conftest.$ac_objext conftest$ac_exeext
31753 if { (ac_try="$ac_link"
31754 case "(($ac_try" in
31755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756   *) ac_try_echo=$ac_try;;
31757 esac
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759   (eval "$ac_link") 2>conftest.er1
31760   ac_status=$?
31761   grep -v '^ *+' conftest.er1 >conftest.err
31762   rm -f conftest.er1
31763   cat conftest.err >&5
31764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765   (exit $ac_status); } &&
31766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31767   { (case "(($ac_try" in
31768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769   *) ac_try_echo=$ac_try;;
31770 esac
31771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31772   (eval "$ac_try") 2>&5
31773   ac_status=$?
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); }; } &&
31776          { ac_try='test -s conftest$ac_exeext'
31777   { (case "(($ac_try" in
31778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779   *) ac_try_echo=$ac_try;;
31780 esac
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782   (eval "$ac_try") 2>&5
31783   ac_status=$?
31784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785   (exit $ac_status); }; }; then
31786   eval "$as_ac_var=yes"
31787 else
31788   echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.$ac_ext >&5
31790
31791         eval "$as_ac_var=no"
31792 fi
31793
31794 rm -f core conftest.err conftest.$ac_objext \
31795       conftest$ac_exeext conftest.$ac_ext
31796 fi
31797 ac_res=`eval echo '${'$as_ac_var'}'`
31798                { echo "$as_me:$LINENO: result: $ac_res" >&5
31799 echo "${ECHO_T}$ac_res" >&6; }
31800 if test `eval echo '${'$as_ac_var'}'` = yes; then
31801   cat >>confdefs.h <<_ACEOF
31802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31803 _ACEOF
31804
31805 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31806 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31807 if test "${ac_cv_func__doprnt+set}" = set; then
31808   echo $ECHO_N "(cached) $ECHO_C" >&6
31809 else
31810   cat >conftest.$ac_ext <<_ACEOF
31811 /* confdefs.h.  */
31812 _ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h.  */
31816 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31818 #define _doprnt innocuous__doprnt
31819
31820 /* System header to define __stub macros and hopefully few prototypes,
31821     which can conflict with char _doprnt (); below.
31822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31823     <limits.h> exists even on freestanding compilers.  */
31824
31825 #ifdef __STDC__
31826 # include <limits.h>
31827 #else
31828 # include <assert.h>
31829 #endif
31830
31831 #undef _doprnt
31832
31833 /* Override any GCC internal prototype to avoid an error.
31834    Use char because int might match the return type of a GCC
31835    builtin and then its argument prototype would still apply.  */
31836 #ifdef __cplusplus
31837 extern "C"
31838 #endif
31839 char _doprnt ();
31840 /* The GNU C library defines this for functions which it implements
31841     to always fail with ENOSYS.  Some functions are actually named
31842     something starting with __ and the normal name is an alias.  */
31843 #if defined __stub__doprnt || defined __stub____doprnt
31844 choke me
31845 #endif
31846
31847 int
31848 main ()
31849 {
31850 return _doprnt ();
31851   ;
31852   return 0;
31853 }
31854 _ACEOF
31855 rm -f conftest.$ac_objext conftest$ac_exeext
31856 if { (ac_try="$ac_link"
31857 case "(($ac_try" in
31858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859   *) ac_try_echo=$ac_try;;
31860 esac
31861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862   (eval "$ac_link") 2>conftest.er1
31863   ac_status=$?
31864   grep -v '^ *+' conftest.er1 >conftest.err
31865   rm -f conftest.er1
31866   cat conftest.err >&5
31867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868   (exit $ac_status); } &&
31869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31870   { (case "(($ac_try" in
31871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31872   *) ac_try_echo=$ac_try;;
31873 esac
31874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31875   (eval "$ac_try") 2>&5
31876   ac_status=$?
31877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878   (exit $ac_status); }; } &&
31879          { ac_try='test -s conftest$ac_exeext'
31880   { (case "(($ac_try" in
31881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31882   *) ac_try_echo=$ac_try;;
31883 esac
31884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31885   (eval "$ac_try") 2>&5
31886   ac_status=$?
31887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888   (exit $ac_status); }; }; then
31889   ac_cv_func__doprnt=yes
31890 else
31891   echo "$as_me: failed program was:" >&5
31892 sed 's/^/| /' conftest.$ac_ext >&5
31893
31894         ac_cv_func__doprnt=no
31895 fi
31896
31897 rm -f core conftest.err conftest.$ac_objext \
31898       conftest$ac_exeext conftest.$ac_ext
31899 fi
31900 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31901 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31902 if test $ac_cv_func__doprnt = yes; then
31903
31904 cat >>confdefs.h <<\_ACEOF
31905 #define HAVE_DOPRNT 1
31906 _ACEOF
31907
31908 fi
31909
31910 fi
31911 done
31912
31913
31914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31915 # for constant arguments.  Useless!
31916 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31917 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31918 if test "${ac_cv_working_alloca_h+set}" = set; then
31919   echo $ECHO_N "(cached) $ECHO_C" >&6
31920 else
31921   cat >conftest.$ac_ext <<_ACEOF
31922 /* confdefs.h.  */
31923 _ACEOF
31924 cat confdefs.h >>conftest.$ac_ext
31925 cat >>conftest.$ac_ext <<_ACEOF
31926 /* end confdefs.h.  */
31927 #include <alloca.h>
31928 int
31929 main ()
31930 {
31931 char *p = (char *) alloca (2 * sizeof (int));
31932                           if (p) return 0;
31933   ;
31934   return 0;
31935 }
31936 _ACEOF
31937 rm -f conftest.$ac_objext conftest$ac_exeext
31938 if { (ac_try="$ac_link"
31939 case "(($ac_try" in
31940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31941   *) ac_try_echo=$ac_try;;
31942 esac
31943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31944   (eval "$ac_link") 2>conftest.er1
31945   ac_status=$?
31946   grep -v '^ *+' conftest.er1 >conftest.err
31947   rm -f conftest.er1
31948   cat conftest.err >&5
31949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950   (exit $ac_status); } &&
31951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31952   { (case "(($ac_try" in
31953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954   *) ac_try_echo=$ac_try;;
31955 esac
31956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957   (eval "$ac_try") 2>&5
31958   ac_status=$?
31959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960   (exit $ac_status); }; } &&
31961          { ac_try='test -s conftest$ac_exeext'
31962   { (case "(($ac_try" in
31963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964   *) ac_try_echo=$ac_try;;
31965 esac
31966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967   (eval "$ac_try") 2>&5
31968   ac_status=$?
31969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970   (exit $ac_status); }; }; then
31971   ac_cv_working_alloca_h=yes
31972 else
31973   echo "$as_me: failed program was:" >&5
31974 sed 's/^/| /' conftest.$ac_ext >&5
31975
31976         ac_cv_working_alloca_h=no
31977 fi
31978
31979 rm -f core conftest.err conftest.$ac_objext \
31980       conftest$ac_exeext conftest.$ac_ext
31981 fi
31982 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31983 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31984 if test $ac_cv_working_alloca_h = yes; then
31985
31986 cat >>confdefs.h <<\_ACEOF
31987 #define HAVE_ALLOCA_H 1
31988 _ACEOF
31989
31990 fi
31991
31992 { echo "$as_me:$LINENO: checking for alloca" >&5
31993 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31994 if test "${ac_cv_func_alloca_works+set}" = set; then
31995   echo $ECHO_N "(cached) $ECHO_C" >&6
31996 else
31997   cat >conftest.$ac_ext <<_ACEOF
31998 /* confdefs.h.  */
31999 _ACEOF
32000 cat confdefs.h >>conftest.$ac_ext
32001 cat >>conftest.$ac_ext <<_ACEOF
32002 /* end confdefs.h.  */
32003 #ifdef __GNUC__
32004 # define alloca __builtin_alloca
32005 #else
32006 # ifdef _MSC_VER
32007 #  include <malloc.h>
32008 #  define alloca _alloca
32009 # else
32010 #  if HAVE_ALLOCA_H
32011 #   include <alloca.h>
32012 #  else
32013 #   ifdef _AIX
32014  #pragma alloca
32015 #   else
32016 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32017 char *alloca ();
32018 #    endif
32019 #   endif
32020 #  endif
32021 # endif
32022 #endif
32023
32024 int
32025 main ()
32026 {
32027 char *p = (char *) alloca (1);
32028                                     if (p) return 0;
32029   ;
32030   return 0;
32031 }
32032 _ACEOF
32033 rm -f conftest.$ac_objext conftest$ac_exeext
32034 if { (ac_try="$ac_link"
32035 case "(($ac_try" in
32036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037   *) ac_try_echo=$ac_try;;
32038 esac
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040   (eval "$ac_link") 2>conftest.er1
32041   ac_status=$?
32042   grep -v '^ *+' conftest.er1 >conftest.err
32043   rm -f conftest.er1
32044   cat conftest.err >&5
32045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046   (exit $ac_status); } &&
32047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32048   { (case "(($ac_try" in
32049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050   *) ac_try_echo=$ac_try;;
32051 esac
32052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32053   (eval "$ac_try") 2>&5
32054   ac_status=$?
32055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056   (exit $ac_status); }; } &&
32057          { ac_try='test -s conftest$ac_exeext'
32058   { (case "(($ac_try" in
32059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060   *) ac_try_echo=$ac_try;;
32061 esac
32062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063   (eval "$ac_try") 2>&5
32064   ac_status=$?
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); }; }; then
32067   ac_cv_func_alloca_works=yes
32068 else
32069   echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32071
32072         ac_cv_func_alloca_works=no
32073 fi
32074
32075 rm -f core conftest.err conftest.$ac_objext \
32076       conftest$ac_exeext conftest.$ac_ext
32077 fi
32078 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32079 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32080
32081 if test $ac_cv_func_alloca_works = yes; then
32082
32083 cat >>confdefs.h <<\_ACEOF
32084 #define HAVE_ALLOCA 1
32085 _ACEOF
32086
32087 else
32088   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32089 # that cause trouble.  Some versions do not even contain alloca or
32090 # contain a buggy version.  If you still want to use their alloca,
32091 # use ar to extract alloca.o from them instead of compiling alloca.c.
32092
32093 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32094
32095 cat >>confdefs.h <<\_ACEOF
32096 #define C_ALLOCA 1
32097 _ACEOF
32098
32099
32100 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32101 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32102 if test "${ac_cv_os_cray+set}" = set; then
32103   echo $ECHO_N "(cached) $ECHO_C" >&6
32104 else
32105   cat >conftest.$ac_ext <<_ACEOF
32106 /* confdefs.h.  */
32107 _ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h.  */
32111 #if defined CRAY && ! defined CRAY2
32112 webecray
32113 #else
32114 wenotbecray
32115 #endif
32116
32117 _ACEOF
32118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32119   $EGREP "webecray" >/dev/null 2>&1; then
32120   ac_cv_os_cray=yes
32121 else
32122   ac_cv_os_cray=no
32123 fi
32124 rm -f conftest*
32125
32126 fi
32127 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32128 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32129 if test $ac_cv_os_cray = yes; then
32130   for ac_func in _getb67 GETB67 getb67; do
32131     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32135   echo $ECHO_N "(cached) $ECHO_C" >&6
32136 else
32137   cat >conftest.$ac_ext <<_ACEOF
32138 /* confdefs.h.  */
32139 _ACEOF
32140 cat confdefs.h >>conftest.$ac_ext
32141 cat >>conftest.$ac_ext <<_ACEOF
32142 /* end confdefs.h.  */
32143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32145 #define $ac_func innocuous_$ac_func
32146
32147 /* System header to define __stub macros and hopefully few prototypes,
32148     which can conflict with char $ac_func (); below.
32149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32150     <limits.h> exists even on freestanding compilers.  */
32151
32152 #ifdef __STDC__
32153 # include <limits.h>
32154 #else
32155 # include <assert.h>
32156 #endif
32157
32158 #undef $ac_func
32159
32160 /* Override any GCC internal prototype to avoid an error.
32161    Use char because int might match the return type of a GCC
32162    builtin and then its argument prototype would still apply.  */
32163 #ifdef __cplusplus
32164 extern "C"
32165 #endif
32166 char $ac_func ();
32167 /* The GNU C library defines this for functions which it implements
32168     to always fail with ENOSYS.  Some functions are actually named
32169     something starting with __ and the normal name is an alias.  */
32170 #if defined __stub_$ac_func || defined __stub___$ac_func
32171 choke me
32172 #endif
32173
32174 int
32175 main ()
32176 {
32177 return $ac_func ();
32178   ;
32179   return 0;
32180 }
32181 _ACEOF
32182 rm -f conftest.$ac_objext conftest$ac_exeext
32183 if { (ac_try="$ac_link"
32184 case "(($ac_try" in
32185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186   *) ac_try_echo=$ac_try;;
32187 esac
32188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189   (eval "$ac_link") 2>conftest.er1
32190   ac_status=$?
32191   grep -v '^ *+' conftest.er1 >conftest.err
32192   rm -f conftest.er1
32193   cat conftest.err >&5
32194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195   (exit $ac_status); } &&
32196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32197   { (case "(($ac_try" in
32198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199   *) ac_try_echo=$ac_try;;
32200 esac
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202   (eval "$ac_try") 2>&5
32203   ac_status=$?
32204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205   (exit $ac_status); }; } &&
32206          { ac_try='test -s conftest$ac_exeext'
32207   { (case "(($ac_try" in
32208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209   *) ac_try_echo=$ac_try;;
32210 esac
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212   (eval "$ac_try") 2>&5
32213   ac_status=$?
32214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215   (exit $ac_status); }; }; then
32216   eval "$as_ac_var=yes"
32217 else
32218   echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32220
32221         eval "$as_ac_var=no"
32222 fi
32223
32224 rm -f core conftest.err conftest.$ac_objext \
32225       conftest$ac_exeext conftest.$ac_ext
32226 fi
32227 ac_res=`eval echo '${'$as_ac_var'}'`
32228                { echo "$as_me:$LINENO: result: $ac_res" >&5
32229 echo "${ECHO_T}$ac_res" >&6; }
32230 if test `eval echo '${'$as_ac_var'}'` = yes; then
32231
32232 cat >>confdefs.h <<_ACEOF
32233 #define CRAY_STACKSEG_END $ac_func
32234 _ACEOF
32235
32236     break
32237 fi
32238
32239   done
32240 fi
32241
32242 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32243 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32244 if test "${ac_cv_c_stack_direction+set}" = set; then
32245   echo $ECHO_N "(cached) $ECHO_C" >&6
32246 else
32247   if test "$cross_compiling" = yes; then
32248   ac_cv_c_stack_direction=0
32249 else
32250   cat >conftest.$ac_ext <<_ACEOF
32251 /* confdefs.h.  */
32252 _ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h.  */
32256 $ac_includes_default
32257 int
32258 find_stack_direction ()
32259 {
32260   static char *addr = 0;
32261   auto char dummy;
32262   if (addr == 0)
32263     {
32264       addr = &dummy;
32265       return find_stack_direction ();
32266     }
32267   else
32268     return (&dummy > addr) ? 1 : -1;
32269 }
32270
32271 int
32272 main ()
32273 {
32274   return find_stack_direction () < 0;
32275 }
32276 _ACEOF
32277 rm -f conftest$ac_exeext
32278 if { (ac_try="$ac_link"
32279 case "(($ac_try" in
32280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32281   *) ac_try_echo=$ac_try;;
32282 esac
32283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32284   (eval "$ac_link") 2>&5
32285   ac_status=$?
32286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32288   { (case "(($ac_try" in
32289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290   *) ac_try_echo=$ac_try;;
32291 esac
32292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293   (eval "$ac_try") 2>&5
32294   ac_status=$?
32295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296   (exit $ac_status); }; }; then
32297   ac_cv_c_stack_direction=1
32298 else
32299   echo "$as_me: program exited with status $ac_status" >&5
32300 echo "$as_me: failed program was:" >&5
32301 sed 's/^/| /' conftest.$ac_ext >&5
32302
32303 ( exit $ac_status )
32304 ac_cv_c_stack_direction=-1
32305 fi
32306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32307 fi
32308
32309
32310 fi
32311 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32312 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32313
32314 cat >>confdefs.h <<_ACEOF
32315 #define STACK_DIRECTION $ac_cv_c_stack_direction
32316 _ACEOF
32317
32318
32319 fi
32320
32321 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32322 # -lseq on Dynix/PTX, -lgen on Unixware.
32323 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32324 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32325 if test "${ac_cv_search_getmntent+set}" = set; then
32326   echo $ECHO_N "(cached) $ECHO_C" >&6
32327 else
32328   ac_func_search_save_LIBS=$LIBS
32329 cat >conftest.$ac_ext <<_ACEOF
32330 /* confdefs.h.  */
32331 _ACEOF
32332 cat confdefs.h >>conftest.$ac_ext
32333 cat >>conftest.$ac_ext <<_ACEOF
32334 /* end confdefs.h.  */
32335
32336 /* Override any GCC internal prototype to avoid an error.
32337    Use char because int might match the return type of a GCC
32338    builtin and then its argument prototype would still apply.  */
32339 #ifdef __cplusplus
32340 extern "C"
32341 #endif
32342 char getmntent ();
32343 int
32344 main ()
32345 {
32346 return getmntent ();
32347   ;
32348   return 0;
32349 }
32350 _ACEOF
32351 for ac_lib in '' sun seq gen; do
32352   if test -z "$ac_lib"; then
32353     ac_res="none required"
32354   else
32355     ac_res=-l$ac_lib
32356     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32357   fi
32358   rm -f conftest.$ac_objext conftest$ac_exeext
32359 if { (ac_try="$ac_link"
32360 case "(($ac_try" in
32361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362   *) ac_try_echo=$ac_try;;
32363 esac
32364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365   (eval "$ac_link") 2>conftest.er1
32366   ac_status=$?
32367   grep -v '^ *+' conftest.er1 >conftest.err
32368   rm -f conftest.er1
32369   cat conftest.err >&5
32370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371   (exit $ac_status); } &&
32372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32373   { (case "(($ac_try" in
32374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375   *) ac_try_echo=$ac_try;;
32376 esac
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378   (eval "$ac_try") 2>&5
32379   ac_status=$?
32380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381   (exit $ac_status); }; } &&
32382          { ac_try='test -s conftest$ac_exeext'
32383   { (case "(($ac_try" in
32384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385   *) ac_try_echo=$ac_try;;
32386 esac
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388   (eval "$ac_try") 2>&5
32389   ac_status=$?
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); }; }; then
32392   ac_cv_search_getmntent=$ac_res
32393 else
32394   echo "$as_me: failed program was:" >&5
32395 sed 's/^/| /' conftest.$ac_ext >&5
32396
32397
32398 fi
32399
32400 rm -f core conftest.err conftest.$ac_objext \
32401       conftest$ac_exeext
32402   if test "${ac_cv_search_getmntent+set}" = set; then
32403   break
32404 fi
32405 done
32406 if test "${ac_cv_search_getmntent+set}" = set; then
32407   :
32408 else
32409   ac_cv_search_getmntent=no
32410 fi
32411 rm conftest.$ac_ext
32412 LIBS=$ac_func_search_save_LIBS
32413 fi
32414 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32415 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32416 ac_res=$ac_cv_search_getmntent
32417 if test "$ac_res" != no; then
32418   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32419
32420 fi
32421
32422
32423 for ac_func in getmntent
32424 do
32425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32429   echo $ECHO_N "(cached) $ECHO_C" >&6
32430 else
32431   cat >conftest.$ac_ext <<_ACEOF
32432 /* confdefs.h.  */
32433 _ACEOF
32434 cat confdefs.h >>conftest.$ac_ext
32435 cat >>conftest.$ac_ext <<_ACEOF
32436 /* end confdefs.h.  */
32437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32439 #define $ac_func innocuous_$ac_func
32440
32441 /* System header to define __stub macros and hopefully few prototypes,
32442     which can conflict with char $ac_func (); below.
32443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32444     <limits.h> exists even on freestanding compilers.  */
32445
32446 #ifdef __STDC__
32447 # include <limits.h>
32448 #else
32449 # include <assert.h>
32450 #endif
32451
32452 #undef $ac_func
32453
32454 /* Override any GCC internal prototype to avoid an error.
32455    Use char because int might match the return type of a GCC
32456    builtin and then its argument prototype would still apply.  */
32457 #ifdef __cplusplus
32458 extern "C"
32459 #endif
32460 char $ac_func ();
32461 /* The GNU C library defines this for functions which it implements
32462     to always fail with ENOSYS.  Some functions are actually named
32463     something starting with __ and the normal name is an alias.  */
32464 #if defined __stub_$ac_func || defined __stub___$ac_func
32465 choke me
32466 #endif
32467
32468 int
32469 main ()
32470 {
32471 return $ac_func ();
32472   ;
32473   return 0;
32474 }
32475 _ACEOF
32476 rm -f conftest.$ac_objext conftest$ac_exeext
32477 if { (ac_try="$ac_link"
32478 case "(($ac_try" in
32479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480   *) ac_try_echo=$ac_try;;
32481 esac
32482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483   (eval "$ac_link") 2>conftest.er1
32484   ac_status=$?
32485   grep -v '^ *+' conftest.er1 >conftest.err
32486   rm -f conftest.er1
32487   cat conftest.err >&5
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); } &&
32490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32491   { (case "(($ac_try" in
32492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493   *) ac_try_echo=$ac_try;;
32494 esac
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496   (eval "$ac_try") 2>&5
32497   ac_status=$?
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); }; } &&
32500          { ac_try='test -s conftest$ac_exeext'
32501   { (case "(($ac_try" in
32502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503   *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506   (eval "$ac_try") 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; }; then
32510   eval "$as_ac_var=yes"
32511 else
32512   echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32514
32515         eval "$as_ac_var=no"
32516 fi
32517
32518 rm -f core conftest.err conftest.$ac_objext \
32519       conftest$ac_exeext conftest.$ac_ext
32520 fi
32521 ac_res=`eval echo '${'$as_ac_var'}'`
32522                { echo "$as_me:$LINENO: result: $ac_res" >&5
32523 echo "${ECHO_T}$ac_res" >&6; }
32524 if test `eval echo '${'$as_ac_var'}'` = yes; then
32525   cat >>confdefs.h <<_ACEOF
32526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32527 _ACEOF
32528
32529 fi
32530 done
32531
32532
32533 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32534 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32535 if test "${ac_cv_func_closedir_void+set}" = set; then
32536   echo $ECHO_N "(cached) $ECHO_C" >&6
32537 else
32538   if test "$cross_compiling" = yes; then
32539   ac_cv_func_closedir_void=yes
32540 else
32541   cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547 $ac_includes_default
32548 #include <$ac_header_dirent>
32549 #ifndef __cplusplus
32550 int closedir ();
32551 #endif
32552
32553 int
32554 main ()
32555 {
32556 return closedir (opendir (".")) != 0;
32557   ;
32558   return 0;
32559 }
32560 _ACEOF
32561 rm -f conftest$ac_exeext
32562 if { (ac_try="$ac_link"
32563 case "(($ac_try" in
32564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565   *) ac_try_echo=$ac_try;;
32566 esac
32567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568   (eval "$ac_link") 2>&5
32569   ac_status=$?
32570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32572   { (case "(($ac_try" in
32573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32574   *) ac_try_echo=$ac_try;;
32575 esac
32576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32577   (eval "$ac_try") 2>&5
32578   ac_status=$?
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); }; }; then
32581   ac_cv_func_closedir_void=no
32582 else
32583   echo "$as_me: program exited with status $ac_status" >&5
32584 echo "$as_me: failed program was:" >&5
32585 sed 's/^/| /' conftest.$ac_ext >&5
32586
32587 ( exit $ac_status )
32588 ac_cv_func_closedir_void=yes
32589 fi
32590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32591 fi
32592
32593
32594 fi
32595 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32596 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32597 if test $ac_cv_func_closedir_void = yes; then
32598
32599 cat >>confdefs.h <<\_ACEOF
32600 #define CLOSEDIR_VOID 1
32601 _ACEOF
32602
32603 fi
32604
32605 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32606 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32607 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32608   echo $ECHO_N "(cached) $ECHO_C" >&6
32609 else
32610   if test "$cross_compiling" = yes; then
32611   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32612 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32613    { (exit 1); exit 1; }; }
32614 else
32615   cat >conftest.$ac_ext <<_ACEOF
32616 /* confdefs.h.  */
32617 _ACEOF
32618 cat confdefs.h >>conftest.$ac_ext
32619 cat >>conftest.$ac_ext <<_ACEOF
32620 /* end confdefs.h.  */
32621 $ac_includes_default
32622 int
32623 main ()
32624 {
32625 /* If this system has a BSD-style setpgrp which takes arguments,
32626   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32627   exit successfully. */
32628   return setpgrp (1,1) != -1;
32629   ;
32630   return 0;
32631 }
32632 _ACEOF
32633 rm -f conftest$ac_exeext
32634 if { (ac_try="$ac_link"
32635 case "(($ac_try" in
32636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637   *) ac_try_echo=$ac_try;;
32638 esac
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640   (eval "$ac_link") 2>&5
32641   ac_status=$?
32642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32644   { (case "(($ac_try" in
32645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32646   *) ac_try_echo=$ac_try;;
32647 esac
32648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32649   (eval "$ac_try") 2>&5
32650   ac_status=$?
32651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652   (exit $ac_status); }; }; then
32653   ac_cv_func_setpgrp_void=no
32654 else
32655   echo "$as_me: program exited with status $ac_status" >&5
32656 echo "$as_me: failed program was:" >&5
32657 sed 's/^/| /' conftest.$ac_ext >&5
32658
32659 ( exit $ac_status )
32660 ac_cv_func_setpgrp_void=yes
32661 fi
32662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32663 fi
32664
32665
32666 fi
32667 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32668 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32669 if test $ac_cv_func_setpgrp_void = yes; then
32670
32671 cat >>confdefs.h <<\_ACEOF
32672 #define SETPGRP_VOID 1
32673 _ACEOF
32674
32675 fi
32676                       # AC_FUNC_FNMATCH    dnl use local version
32677
32678
32679 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32680 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32681 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32682   echo $ECHO_N "(cached) $ECHO_C" >&6
32683 else
32684   ac_check_lib_save_LIBS=$LIBS
32685 LIBS="-lintl  $LIBS"
32686 cat >conftest.$ac_ext <<_ACEOF
32687 /* confdefs.h.  */
32688 _ACEOF
32689 cat confdefs.h >>conftest.$ac_ext
32690 cat >>conftest.$ac_ext <<_ACEOF
32691 /* end confdefs.h.  */
32692
32693 /* Override any GCC internal prototype to avoid an error.
32694    Use char because int might match the return type of a GCC
32695    builtin and then its argument prototype would still apply.  */
32696 #ifdef __cplusplus
32697 extern "C"
32698 #endif
32699 char gettext ();
32700 int
32701 main ()
32702 {
32703 return gettext ();
32704   ;
32705   return 0;
32706 }
32707 _ACEOF
32708 rm -f conftest.$ac_objext conftest$ac_exeext
32709 if { (ac_try="$ac_link"
32710 case "(($ac_try" in
32711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712   *) ac_try_echo=$ac_try;;
32713 esac
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715   (eval "$ac_link") 2>conftest.er1
32716   ac_status=$?
32717   grep -v '^ *+' conftest.er1 >conftest.err
32718   rm -f conftest.er1
32719   cat conftest.err >&5
32720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721   (exit $ac_status); } &&
32722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32723   { (case "(($ac_try" in
32724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32725   *) ac_try_echo=$ac_try;;
32726 esac
32727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32728   (eval "$ac_try") 2>&5
32729   ac_status=$?
32730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731   (exit $ac_status); }; } &&
32732          { ac_try='test -s conftest$ac_exeext'
32733   { (case "(($ac_try" in
32734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735   *) ac_try_echo=$ac_try;;
32736 esac
32737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738   (eval "$ac_try") 2>&5
32739   ac_status=$?
32740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741   (exit $ac_status); }; }; then
32742   ac_cv_lib_intl_gettext=yes
32743 else
32744   echo "$as_me: failed program was:" >&5
32745 sed 's/^/| /' conftest.$ac_ext >&5
32746
32747         ac_cv_lib_intl_gettext=no
32748 fi
32749
32750 rm -f core conftest.err conftest.$ac_objext \
32751       conftest$ac_exeext conftest.$ac_ext
32752 LIBS=$ac_check_lib_save_LIBS
32753 fi
32754 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32755 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32756 if test $ac_cv_lib_intl_gettext = yes; then
32757   LIBS="$LIBS -lintl"
32758 fi
32759
32760
32761
32762
32763 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32764 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32765 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32766   echo $ECHO_N "(cached) $ECHO_C" >&6
32767 else
32768   ac_check_lib_save_LIBS=$LIBS
32769 LIBS="-lsun  $LIBS"
32770 cat >conftest.$ac_ext <<_ACEOF
32771 /* confdefs.h.  */
32772 _ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h.  */
32776
32777 /* Override any GCC internal prototype to avoid an error.
32778    Use char because int might match the return type of a GCC
32779    builtin and then its argument prototype would still apply.  */
32780 #ifdef __cplusplus
32781 extern "C"
32782 #endif
32783 char getpwnam ();
32784 int
32785 main ()
32786 {
32787 return getpwnam ();
32788   ;
32789   return 0;
32790 }
32791 _ACEOF
32792 rm -f conftest.$ac_objext conftest$ac_exeext
32793 if { (ac_try="$ac_link"
32794 case "(($ac_try" in
32795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796   *) ac_try_echo=$ac_try;;
32797 esac
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799   (eval "$ac_link") 2>conftest.er1
32800   ac_status=$?
32801   grep -v '^ *+' conftest.er1 >conftest.err
32802   rm -f conftest.er1
32803   cat conftest.err >&5
32804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805   (exit $ac_status); } &&
32806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32807   { (case "(($ac_try" in
32808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809   *) ac_try_echo=$ac_try;;
32810 esac
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812   (eval "$ac_try") 2>&5
32813   ac_status=$?
32814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815   (exit $ac_status); }; } &&
32816          { ac_try='test -s conftest$ac_exeext'
32817   { (case "(($ac_try" in
32818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819   *) ac_try_echo=$ac_try;;
32820 esac
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822   (eval "$ac_try") 2>&5
32823   ac_status=$?
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); }; }; then
32826   ac_cv_lib_sun_getpwnam=yes
32827 else
32828   echo "$as_me: failed program was:" >&5
32829 sed 's/^/| /' conftest.$ac_ext >&5
32830
32831         ac_cv_lib_sun_getpwnam=no
32832 fi
32833
32834 rm -f core conftest.err conftest.$ac_objext \
32835       conftest$ac_exeext conftest.$ac_ext
32836 LIBS=$ac_check_lib_save_LIBS
32837 fi
32838 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32839 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32840 if test $ac_cv_lib_sun_getpwnam = yes; then
32841   cat >>confdefs.h <<_ACEOF
32842 #define HAVE_LIBSUN 1
32843 _ACEOF
32844
32845   LIBS="-lsun $LIBS"
32846
32847 fi
32848
32849
32850
32851 for ac_header in zlib.h
32852 do
32853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32855   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32858   echo $ECHO_N "(cached) $ECHO_C" >&6
32859 fi
32860 ac_res=`eval echo '${'$as_ac_Header'}'`
32861                { echo "$as_me:$LINENO: result: $ac_res" >&5
32862 echo "${ECHO_T}$ac_res" >&6; }
32863 else
32864   # Is the header compilable?
32865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32867 cat >conftest.$ac_ext <<_ACEOF
32868 /* confdefs.h.  */
32869 _ACEOF
32870 cat confdefs.h >>conftest.$ac_ext
32871 cat >>conftest.$ac_ext <<_ACEOF
32872 /* end confdefs.h.  */
32873 $ac_includes_default
32874 #include <$ac_header>
32875 _ACEOF
32876 rm -f conftest.$ac_objext
32877 if { (ac_try="$ac_compile"
32878 case "(($ac_try" in
32879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880   *) ac_try_echo=$ac_try;;
32881 esac
32882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883   (eval "$ac_compile") 2>conftest.er1
32884   ac_status=$?
32885   grep -v '^ *+' conftest.er1 >conftest.err
32886   rm -f conftest.er1
32887   cat conftest.err >&5
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); } &&
32890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32891   { (case "(($ac_try" in
32892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893   *) ac_try_echo=$ac_try;;
32894 esac
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896   (eval "$ac_try") 2>&5
32897   ac_status=$?
32898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899   (exit $ac_status); }; } &&
32900          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); }; }; then
32910   ac_header_compiler=yes
32911 else
32912   echo "$as_me: failed program was:" >&5
32913 sed 's/^/| /' conftest.$ac_ext >&5
32914
32915         ac_header_compiler=no
32916 fi
32917
32918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32920 echo "${ECHO_T}$ac_header_compiler" >&6; }
32921
32922 # Is the header present?
32923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32925 cat >conftest.$ac_ext <<_ACEOF
32926 /* confdefs.h.  */
32927 _ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h.  */
32931 #include <$ac_header>
32932 _ACEOF
32933 if { (ac_try="$ac_cpp conftest.$ac_ext"
32934 case "(($ac_try" in
32935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936   *) ac_try_echo=$ac_try;;
32937 esac
32938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32940   ac_status=$?
32941   grep -v '^ *+' conftest.er1 >conftest.err
32942   rm -f conftest.er1
32943   cat conftest.err >&5
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); } >/dev/null; then
32946   if test -s conftest.err; then
32947     ac_cpp_err=$ac_c_preproc_warn_flag
32948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32949   else
32950     ac_cpp_err=
32951   fi
32952 else
32953   ac_cpp_err=yes
32954 fi
32955 if test -z "$ac_cpp_err"; then
32956   ac_header_preproc=yes
32957 else
32958   echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32960
32961   ac_header_preproc=no
32962 fi
32963
32964 rm -f conftest.err conftest.$ac_ext
32965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32966 echo "${ECHO_T}$ac_header_preproc" >&6; }
32967
32968 # So?  What about this header?
32969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32970   yes:no: )
32971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32975     ac_header_preproc=yes
32976     ;;
32977   no:yes:* )
32978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32980     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32981 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32982     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32984     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32985 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32988     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32990
32991     ;;
32992 esac
32993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32996   echo $ECHO_N "(cached) $ECHO_C" >&6
32997 else
32998   eval "$as_ac_Header=\$ac_header_preproc"
32999 fi
33000 ac_res=`eval echo '${'$as_ac_Header'}'`
33001                { echo "$as_me:$LINENO: result: $ac_res" >&5
33002 echo "${ECHO_T}$ac_res" >&6; }
33003
33004 fi
33005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33006   cat >>confdefs.h <<_ACEOF
33007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33008 _ACEOF
33009
33010 fi
33011
33012 done
33013
33014 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33015 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33016 if test "${ac_cv_lib_z_deflate+set}" = set; then
33017   echo $ECHO_N "(cached) $ECHO_C" >&6
33018 else
33019   ac_check_lib_save_LIBS=$LIBS
33020 LIBS="-lz  $LIBS"
33021 cat >conftest.$ac_ext <<_ACEOF
33022 /* confdefs.h.  */
33023 _ACEOF
33024 cat confdefs.h >>conftest.$ac_ext
33025 cat >>conftest.$ac_ext <<_ACEOF
33026 /* end confdefs.h.  */
33027
33028 /* Override any GCC internal prototype to avoid an error.
33029    Use char because int might match the return type of a GCC
33030    builtin and then its argument prototype would still apply.  */
33031 #ifdef __cplusplus
33032 extern "C"
33033 #endif
33034 char deflate ();
33035 int
33036 main ()
33037 {
33038 return deflate ();
33039   ;
33040   return 0;
33041 }
33042 _ACEOF
33043 rm -f conftest.$ac_objext conftest$ac_exeext
33044 if { (ac_try="$ac_link"
33045 case "(($ac_try" in
33046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047   *) ac_try_echo=$ac_try;;
33048 esac
33049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050   (eval "$ac_link") 2>conftest.er1
33051   ac_status=$?
33052   grep -v '^ *+' conftest.er1 >conftest.err
33053   rm -f conftest.er1
33054   cat conftest.err >&5
33055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056   (exit $ac_status); } &&
33057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33058   { (case "(($ac_try" in
33059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060   *) ac_try_echo=$ac_try;;
33061 esac
33062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063   (eval "$ac_try") 2>&5
33064   ac_status=$?
33065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066   (exit $ac_status); }; } &&
33067          { ac_try='test -s conftest$ac_exeext'
33068   { (case "(($ac_try" in
33069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070   *) ac_try_echo=$ac_try;;
33071 esac
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073   (eval "$ac_try") 2>&5
33074   ac_status=$?
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); }; }; then
33077   ac_cv_lib_z_deflate=yes
33078 else
33079   echo "$as_me: failed program was:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33081
33082         ac_cv_lib_z_deflate=no
33083 fi
33084
33085 rm -f core conftest.err conftest.$ac_objext \
33086       conftest$ac_exeext conftest.$ac_ext
33087 LIBS=$ac_check_lib_save_LIBS
33088 fi
33089 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33090 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33091 if test $ac_cv_lib_z_deflate = yes; then
33092   FDLIBS="-lz"
33093 fi
33094
33095 have_zlib=no
33096 if test x$FDLIBS = x-lz; then
33097   cat >>confdefs.h <<\_ACEOF
33098 #define HAVE_LIBZ 1
33099 _ACEOF
33100
33101   have_zlib=yes
33102 fi
33103
33104 #
33105 # Check for ACL libraries
33106 #
33107 have_acl=no
33108 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33109   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33110 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33111 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33112   echo $ECHO_N "(cached) $ECHO_C" >&6
33113 fi
33114 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33115 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33116 else
33117   # Is the header compilable?
33118 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33119 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33120 cat >conftest.$ac_ext <<_ACEOF
33121 /* confdefs.h.  */
33122 _ACEOF
33123 cat confdefs.h >>conftest.$ac_ext
33124 cat >>conftest.$ac_ext <<_ACEOF
33125 /* end confdefs.h.  */
33126 $ac_includes_default
33127 #include <sys/acl.h>
33128 _ACEOF
33129 rm -f conftest.$ac_objext
33130 if { (ac_try="$ac_compile"
33131 case "(($ac_try" in
33132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133   *) ac_try_echo=$ac_try;;
33134 esac
33135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136   (eval "$ac_compile") 2>conftest.er1
33137   ac_status=$?
33138   grep -v '^ *+' conftest.er1 >conftest.err
33139   rm -f conftest.er1
33140   cat conftest.err >&5
33141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); } &&
33143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33144   { (case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_try") 2>&5
33150   ac_status=$?
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); }; } &&
33153          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
33160   ac_status=$?
33161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162   (exit $ac_status); }; }; then
33163   ac_header_compiler=yes
33164 else
33165   echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33167
33168         ac_header_compiler=no
33169 fi
33170
33171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33173 echo "${ECHO_T}$ac_header_compiler" >&6; }
33174
33175 # Is the header present?
33176 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33177 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33178 cat >conftest.$ac_ext <<_ACEOF
33179 /* confdefs.h.  */
33180 _ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h.  */
33184 #include <sys/acl.h>
33185 _ACEOF
33186 if { (ac_try="$ac_cpp conftest.$ac_ext"
33187 case "(($ac_try" in
33188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189   *) ac_try_echo=$ac_try;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33193   ac_status=$?
33194   grep -v '^ *+' conftest.er1 >conftest.err
33195   rm -f conftest.er1
33196   cat conftest.err >&5
33197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198   (exit $ac_status); } >/dev/null; then
33199   if test -s conftest.err; then
33200     ac_cpp_err=$ac_c_preproc_warn_flag
33201     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33202   else
33203     ac_cpp_err=
33204   fi
33205 else
33206   ac_cpp_err=yes
33207 fi
33208 if test -z "$ac_cpp_err"; then
33209   ac_header_preproc=yes
33210 else
33211   echo "$as_me: failed program was:" >&5
33212 sed 's/^/| /' conftest.$ac_ext >&5
33213
33214   ac_header_preproc=no
33215 fi
33216
33217 rm -f conftest.err conftest.$ac_ext
33218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33219 echo "${ECHO_T}$ac_header_preproc" >&6; }
33220
33221 # So?  What about this header?
33222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33223   yes:no: )
33224     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33225 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33226     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33227 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33228     ac_header_preproc=yes
33229     ;;
33230   no:yes:* )
33231     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33232 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33233     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33234 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33235     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33236 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33237     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33238 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33239     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33240 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33241     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33242 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33243
33244     ;;
33245 esac
33246 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33247 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33248 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33249   echo $ECHO_N "(cached) $ECHO_C" >&6
33250 else
33251   ac_cv_header_sys_acl_h=$ac_header_preproc
33252 fi
33253 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33254 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33255
33256 fi
33257
33258
33259 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33260 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33261 if test "${ac_cv_func_acl_get_file+set}" = set; then
33262   echo $ECHO_N "(cached) $ECHO_C" >&6
33263 else
33264   cat >conftest.$ac_ext <<_ACEOF
33265 /* confdefs.h.  */
33266 _ACEOF
33267 cat confdefs.h >>conftest.$ac_ext
33268 cat >>conftest.$ac_ext <<_ACEOF
33269 /* end confdefs.h.  */
33270 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33272 #define acl_get_file innocuous_acl_get_file
33273
33274 /* System header to define __stub macros and hopefully few prototypes,
33275     which can conflict with char acl_get_file (); below.
33276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33277     <limits.h> exists even on freestanding compilers.  */
33278
33279 #ifdef __STDC__
33280 # include <limits.h>
33281 #else
33282 # include <assert.h>
33283 #endif
33284
33285 #undef acl_get_file
33286
33287 /* Override any GCC internal prototype to avoid an error.
33288    Use char because int might match the return type of a GCC
33289    builtin and then its argument prototype would still apply.  */
33290 #ifdef __cplusplus
33291 extern "C"
33292 #endif
33293 char acl_get_file ();
33294 /* The GNU C library defines this for functions which it implements
33295     to always fail with ENOSYS.  Some functions are actually named
33296     something starting with __ and the normal name is an alias.  */
33297 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33298 choke me
33299 #endif
33300
33301 int
33302 main ()
33303 {
33304 return acl_get_file ();
33305   ;
33306   return 0;
33307 }
33308 _ACEOF
33309 rm -f conftest.$ac_objext conftest$ac_exeext
33310 if { (ac_try="$ac_link"
33311 case "(($ac_try" in
33312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313   *) ac_try_echo=$ac_try;;
33314 esac
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316   (eval "$ac_link") 2>conftest.er1
33317   ac_status=$?
33318   grep -v '^ *+' conftest.er1 >conftest.err
33319   rm -f conftest.er1
33320   cat conftest.err >&5
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); } &&
33323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33324   { (case "(($ac_try" in
33325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33326   *) ac_try_echo=$ac_try;;
33327 esac
33328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33329   (eval "$ac_try") 2>&5
33330   ac_status=$?
33331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332   (exit $ac_status); }; } &&
33333          { ac_try='test -s conftest$ac_exeext'
33334   { (case "(($ac_try" in
33335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33336   *) ac_try_echo=$ac_try;;
33337 esac
33338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33339   (eval "$ac_try") 2>&5
33340   ac_status=$?
33341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33342   (exit $ac_status); }; }; then
33343   ac_cv_func_acl_get_file=yes
33344 else
33345   echo "$as_me: failed program was:" >&5
33346 sed 's/^/| /' conftest.$ac_ext >&5
33347
33348         ac_cv_func_acl_get_file=no
33349 fi
33350
33351 rm -f core conftest.err conftest.$ac_objext \
33352       conftest$ac_exeext conftest.$ac_ext
33353 fi
33354 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33355 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33356 if test $ac_cv_func_acl_get_file = yes; then
33357   have_acl=yes
33358 else
33359   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33360 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33361 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33362   echo $ECHO_N "(cached) $ECHO_C" >&6
33363 else
33364   ac_check_lib_save_LIBS=$LIBS
33365 LIBS="-lacl  $LIBS"
33366 cat >conftest.$ac_ext <<_ACEOF
33367 /* confdefs.h.  */
33368 _ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h.  */
33372
33373 /* Override any GCC internal prototype to avoid an error.
33374    Use char because int might match the return type of a GCC
33375    builtin and then its argument prototype would still apply.  */
33376 #ifdef __cplusplus
33377 extern "C"
33378 #endif
33379 char acl_get_file ();
33380 int
33381 main ()
33382 {
33383 return acl_get_file ();
33384   ;
33385   return 0;
33386 }
33387 _ACEOF
33388 rm -f conftest.$ac_objext conftest$ac_exeext
33389 if { (ac_try="$ac_link"
33390 case "(($ac_try" in
33391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392   *) ac_try_echo=$ac_try;;
33393 esac
33394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33395   (eval "$ac_link") 2>conftest.er1
33396   ac_status=$?
33397   grep -v '^ *+' conftest.er1 >conftest.err
33398   rm -f conftest.er1
33399   cat conftest.err >&5
33400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401   (exit $ac_status); } &&
33402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33403   { (case "(($ac_try" in
33404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33405   *) ac_try_echo=$ac_try;;
33406 esac
33407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33408   (eval "$ac_try") 2>&5
33409   ac_status=$?
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); }; } &&
33412          { ac_try='test -s conftest$ac_exeext'
33413   { (case "(($ac_try" in
33414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415   *) ac_try_echo=$ac_try;;
33416 esac
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418   (eval "$ac_try") 2>&5
33419   ac_status=$?
33420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421   (exit $ac_status); }; }; then
33422   ac_cv_lib_acl_acl_get_file=yes
33423 else
33424   echo "$as_me: failed program was:" >&5
33425 sed 's/^/| /' conftest.$ac_ext >&5
33426
33427         ac_cv_lib_acl_acl_get_file=no
33428 fi
33429
33430 rm -f core conftest.err conftest.$ac_objext \
33431       conftest$ac_exeext conftest.$ac_ext
33432 LIBS=$ac_check_lib_save_LIBS
33433 fi
33434 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33435 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33436 if test $ac_cv_lib_acl_acl_get_file = yes; then
33437   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33438 else
33439   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33440 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33441 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33442   echo $ECHO_N "(cached) $ECHO_C" >&6
33443 else
33444   ac_check_lib_save_LIBS=$LIBS
33445 LIBS="-lsec  $LIBS"
33446 cat >conftest.$ac_ext <<_ACEOF
33447 /* confdefs.h.  */
33448 _ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h.  */
33452
33453 /* Override any GCC internal prototype to avoid an error.
33454    Use char because int might match the return type of a GCC
33455    builtin and then its argument prototype would still apply.  */
33456 #ifdef __cplusplus
33457 extern "C"
33458 #endif
33459 char acltotext ();
33460 int
33461 main ()
33462 {
33463 return acltotext ();
33464   ;
33465   return 0;
33466 }
33467 _ACEOF
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (ac_try="$ac_link"
33470 case "(($ac_try" in
33471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33472   *) ac_try_echo=$ac_try;;
33473 esac
33474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33475   (eval "$ac_link") 2>conftest.er1
33476   ac_status=$?
33477   grep -v '^ *+' conftest.er1 >conftest.err
33478   rm -f conftest.er1
33479   cat conftest.err >&5
33480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481   (exit $ac_status); } &&
33482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33483   { (case "(($ac_try" in
33484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33485   *) ac_try_echo=$ac_try;;
33486 esac
33487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33488   (eval "$ac_try") 2>&5
33489   ac_status=$?
33490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491   (exit $ac_status); }; } &&
33492          { ac_try='test -s conftest$ac_exeext'
33493   { (case "(($ac_try" in
33494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33495   *) ac_try_echo=$ac_try;;
33496 esac
33497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33498   (eval "$ac_try") 2>&5
33499   ac_status=$?
33500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501   (exit $ac_status); }; }; then
33502   ac_cv_lib_sec_acltotext=yes
33503 else
33504   echo "$as_me: failed program was:" >&5
33505 sed 's/^/| /' conftest.$ac_ext >&5
33506
33507         ac_cv_lib_sec_acltotext=no
33508 fi
33509
33510 rm -f core conftest.err conftest.$ac_objext \
33511       conftest$ac_exeext conftest.$ac_ext
33512 LIBS=$ac_check_lib_save_LIBS
33513 fi
33514 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33515 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33516 if test $ac_cv_lib_sec_acltotext = yes; then
33517   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33518 fi
33519
33520
33521 fi
33522
33523
33524 fi
33525
33526 if test $have_acl = yes; then
33527    cat >>confdefs.h <<\_ACEOF
33528 #define HAVE_ACL 1
33529 _ACEOF
33530
33531 fi
33532
33533 PTHREAD_LIB=""
33534 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33535 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33536 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33537   echo $ECHO_N "(cached) $ECHO_C" >&6
33538 else
33539   ac_check_lib_save_LIBS=$LIBS
33540 LIBS="-lpthread  $LIBS"
33541 cat >conftest.$ac_ext <<_ACEOF
33542 /* confdefs.h.  */
33543 _ACEOF
33544 cat confdefs.h >>conftest.$ac_ext
33545 cat >>conftest.$ac_ext <<_ACEOF
33546 /* end confdefs.h.  */
33547
33548 /* Override any GCC internal prototype to avoid an error.
33549    Use char because int might match the return type of a GCC
33550    builtin and then its argument prototype would still apply.  */
33551 #ifdef __cplusplus
33552 extern "C"
33553 #endif
33554 char pthread_create ();
33555 int
33556 main ()
33557 {
33558 return pthread_create ();
33559   ;
33560   return 0;
33561 }
33562 _ACEOF
33563 rm -f conftest.$ac_objext conftest$ac_exeext
33564 if { (ac_try="$ac_link"
33565 case "(($ac_try" in
33566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33567   *) ac_try_echo=$ac_try;;
33568 esac
33569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33570   (eval "$ac_link") 2>conftest.er1
33571   ac_status=$?
33572   grep -v '^ *+' conftest.er1 >conftest.err
33573   rm -f conftest.er1
33574   cat conftest.err >&5
33575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33576   (exit $ac_status); } &&
33577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33578   { (case "(($ac_try" in
33579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33580   *) ac_try_echo=$ac_try;;
33581 esac
33582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33583   (eval "$ac_try") 2>&5
33584   ac_status=$?
33585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586   (exit $ac_status); }; } &&
33587          { ac_try='test -s conftest$ac_exeext'
33588   { (case "(($ac_try" in
33589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33590   *) ac_try_echo=$ac_try;;
33591 esac
33592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33593   (eval "$ac_try") 2>&5
33594   ac_status=$?
33595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596   (exit $ac_status); }; }; then
33597   ac_cv_lib_pthread_pthread_create=yes
33598 else
33599   echo "$as_me: failed program was:" >&5
33600 sed 's/^/| /' conftest.$ac_ext >&5
33601
33602         ac_cv_lib_pthread_pthread_create=no
33603 fi
33604
33605 rm -f core conftest.err conftest.$ac_objext \
33606       conftest$ac_exeext conftest.$ac_ext
33607 LIBS=$ac_check_lib_save_LIBS
33608 fi
33609 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33610 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33611 if test $ac_cv_lib_pthread_pthread_create = yes; then
33612   PTHREAD_LIB="-lpthread"
33613 else
33614   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33615 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33616 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33617   echo $ECHO_N "(cached) $ECHO_C" >&6
33618 else
33619   ac_check_lib_save_LIBS=$LIBS
33620 LIBS="-lpthreads  $LIBS"
33621 cat >conftest.$ac_ext <<_ACEOF
33622 /* confdefs.h.  */
33623 _ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h.  */
33627
33628 /* Override any GCC internal prototype to avoid an error.
33629    Use char because int might match the return type of a GCC
33630    builtin and then its argument prototype would still apply.  */
33631 #ifdef __cplusplus
33632 extern "C"
33633 #endif
33634 char pthread_create ();
33635 int
33636 main ()
33637 {
33638 return pthread_create ();
33639   ;
33640   return 0;
33641 }
33642 _ACEOF
33643 rm -f conftest.$ac_objext conftest$ac_exeext
33644 if { (ac_try="$ac_link"
33645 case "(($ac_try" in
33646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33647   *) ac_try_echo=$ac_try;;
33648 esac
33649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33650   (eval "$ac_link") 2>conftest.er1
33651   ac_status=$?
33652   grep -v '^ *+' conftest.er1 >conftest.err
33653   rm -f conftest.er1
33654   cat conftest.err >&5
33655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656   (exit $ac_status); } &&
33657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33658   { (case "(($ac_try" in
33659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660   *) ac_try_echo=$ac_try;;
33661 esac
33662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663   (eval "$ac_try") 2>&5
33664   ac_status=$?
33665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666   (exit $ac_status); }; } &&
33667          { ac_try='test -s conftest$ac_exeext'
33668   { (case "(($ac_try" in
33669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33670   *) ac_try_echo=$ac_try;;
33671 esac
33672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33673   (eval "$ac_try") 2>&5
33674   ac_status=$?
33675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676   (exit $ac_status); }; }; then
33677   ac_cv_lib_pthreads_pthread_create=yes
33678 else
33679   echo "$as_me: failed program was:" >&5
33680 sed 's/^/| /' conftest.$ac_ext >&5
33681
33682         ac_cv_lib_pthreads_pthread_create=no
33683 fi
33684
33685 rm -f core conftest.err conftest.$ac_objext \
33686       conftest$ac_exeext conftest.$ac_ext
33687 LIBS=$ac_check_lib_save_LIBS
33688 fi
33689 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33690 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33691 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33692   PTHREAD_LIB="-lpthreads"
33693 else
33694   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33695 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33696 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33697   echo $ECHO_N "(cached) $ECHO_C" >&6
33698 else
33699   ac_check_lib_save_LIBS=$LIBS
33700 LIBS="-lc_r  $LIBS"
33701 cat >conftest.$ac_ext <<_ACEOF
33702 /* confdefs.h.  */
33703 _ACEOF
33704 cat confdefs.h >>conftest.$ac_ext
33705 cat >>conftest.$ac_ext <<_ACEOF
33706 /* end confdefs.h.  */
33707
33708 /* Override any GCC internal prototype to avoid an error.
33709    Use char because int might match the return type of a GCC
33710    builtin and then its argument prototype would still apply.  */
33711 #ifdef __cplusplus
33712 extern "C"
33713 #endif
33714 char pthread_create ();
33715 int
33716 main ()
33717 {
33718 return pthread_create ();
33719   ;
33720   return 0;
33721 }
33722 _ACEOF
33723 rm -f conftest.$ac_objext conftest$ac_exeext
33724 if { (ac_try="$ac_link"
33725 case "(($ac_try" in
33726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33727   *) ac_try_echo=$ac_try;;
33728 esac
33729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33730   (eval "$ac_link") 2>conftest.er1
33731   ac_status=$?
33732   grep -v '^ *+' conftest.er1 >conftest.err
33733   rm -f conftest.er1
33734   cat conftest.err >&5
33735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736   (exit $ac_status); } &&
33737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33738   { (case "(($ac_try" in
33739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740   *) ac_try_echo=$ac_try;;
33741 esac
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743   (eval "$ac_try") 2>&5
33744   ac_status=$?
33745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746   (exit $ac_status); }; } &&
33747          { ac_try='test -s conftest$ac_exeext'
33748   { (case "(($ac_try" in
33749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33750   *) ac_try_echo=$ac_try;;
33751 esac
33752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33753   (eval "$ac_try") 2>&5
33754   ac_status=$?
33755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756   (exit $ac_status); }; }; then
33757   ac_cv_lib_c_r_pthread_create=yes
33758 else
33759   echo "$as_me: failed program was:" >&5
33760 sed 's/^/| /' conftest.$ac_ext >&5
33761
33762         ac_cv_lib_c_r_pthread_create=no
33763 fi
33764
33765 rm -f core conftest.err conftest.$ac_objext \
33766       conftest$ac_exeext conftest.$ac_ext
33767 LIBS=$ac_check_lib_save_LIBS
33768 fi
33769 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33770 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33771 if test $ac_cv_lib_c_r_pthread_create = yes; then
33772   PTHREAD_LIB="-lc_r"
33773 else
33774   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33775 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33776 if test "${ac_cv_func_pthread_create+set}" = set; then
33777   echo $ECHO_N "(cached) $ECHO_C" >&6
33778 else
33779   cat >conftest.$ac_ext <<_ACEOF
33780 /* confdefs.h.  */
33781 _ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h.  */
33785 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33787 #define pthread_create innocuous_pthread_create
33788
33789 /* System header to define __stub macros and hopefully few prototypes,
33790     which can conflict with char pthread_create (); below.
33791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33792     <limits.h> exists even on freestanding compilers.  */
33793
33794 #ifdef __STDC__
33795 # include <limits.h>
33796 #else
33797 # include <assert.h>
33798 #endif
33799
33800 #undef pthread_create
33801
33802 /* Override any GCC internal prototype to avoid an error.
33803    Use char because int might match the return type of a GCC
33804    builtin and then its argument prototype would still apply.  */
33805 #ifdef __cplusplus
33806 extern "C"
33807 #endif
33808 char pthread_create ();
33809 /* The GNU C library defines this for functions which it implements
33810     to always fail with ENOSYS.  Some functions are actually named
33811     something starting with __ and the normal name is an alias.  */
33812 #if defined __stub_pthread_create || defined __stub___pthread_create
33813 choke me
33814 #endif
33815
33816 int
33817 main ()
33818 {
33819 return pthread_create ();
33820   ;
33821   return 0;
33822 }
33823 _ACEOF
33824 rm -f conftest.$ac_objext conftest$ac_exeext
33825 if { (ac_try="$ac_link"
33826 case "(($ac_try" in
33827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828   *) ac_try_echo=$ac_try;;
33829 esac
33830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33831   (eval "$ac_link") 2>conftest.er1
33832   ac_status=$?
33833   grep -v '^ *+' conftest.er1 >conftest.err
33834   rm -f conftest.er1
33835   cat conftest.err >&5
33836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837   (exit $ac_status); } &&
33838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33839   { (case "(($ac_try" in
33840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841   *) ac_try_echo=$ac_try;;
33842 esac
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844   (eval "$ac_try") 2>&5
33845   ac_status=$?
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); }; } &&
33848          { ac_try='test -s conftest$ac_exeext'
33849   { (case "(($ac_try" in
33850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851   *) ac_try_echo=$ac_try;;
33852 esac
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854   (eval "$ac_try") 2>&5
33855   ac_status=$?
33856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857   (exit $ac_status); }; }; then
33858   ac_cv_func_pthread_create=yes
33859 else
33860   echo "$as_me: failed program was:" >&5
33861 sed 's/^/| /' conftest.$ac_ext >&5
33862
33863         ac_cv_func_pthread_create=no
33864 fi
33865
33866 rm -f core conftest.err conftest.$ac_objext \
33867       conftest$ac_exeext conftest.$ac_ext
33868 fi
33869 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33870 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33871
33872
33873 fi
33874
33875
33876 fi
33877
33878
33879 fi
33880
33881
33882
33883 cat >>confdefs.h <<\_ACEOF
33884 #define FDLIBS 1
33885 _ACEOF
33886
33887
33888
33889 CFLAGS=${CFLAGS--O}
33890
33891 if test x$have_gcc = xyes ; then
33892    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33893    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33894 fi
33895 LDFLAGS=${LDFLAGS--O}
33896 DB_LIBS="${SQL_LFLAGS}"
33897 CPPFLAGS="$CPPFLAGS"
33898 CFLAGS="$CFLAGS"
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915 OBJLIST=
33916
33917
33918 lld="lld"
33919 llu="llu"
33920
33921 WCFLAGS=
33922 WLDFLAGS=
33923
33924 #
33925 # Finally we set appropriate distribution specific
33926 #  variables and defaults
33927 #
33928 # PFILES are platform specific files
33929 PFILES="platforms/Makefile"
33930 PSCMD="ps -e"
33931 WIN32=
33932 MACOSX=
33933 hostname=`uname -n | cut -d '.' -f 1`
33934 if test x${hostname} = x ; then
33935   hostname="localhost"
33936 fi
33937 case "$DISTNAME" in
33938 aix)
33939         DISTVER=`uname -r`
33940         PSCMD="ps -e -o pid,comm"
33941         PFILES="${PFILES} \
33942            platforms/aix/Makefile"
33943         TAPEDRIVE="/dev/rmt0.1"
33944   ;;
33945 alpha)
33946         DISTVER=`uname -r`
33947         PTHREAD_LIB="-lpthread -lexc"
33948         if test "${CC}" = "gcc" ; then
33949            lld="lld"
33950            llu="llu"
33951         else
33952            lld="ld"
33953            llu="lu"
33954         fi
33955         TAPEDRIVE="/dev/nrmt0"
33956   ;;
33957 bsdi)
33958         DISTVER=`uname -a |awk '{print $3}'`
33959         TAPEDRIVE="/dev/nrmt0"
33960         PTHREAD_LIB="-pthread"
33961         CFLAGS="${CFLAGS} -pthread"
33962         PSCMD="ps -ax -o pid,command"
33963         lld="qd"
33964         llu="qu"
33965         PFILES="${PFILES} \
33966             platforms/bsdi/Makefile \
33967             platforms/bsdi/bacula-fd \
33968             platforms/bsdi/bacula-sd \
33969             platforms/bsdi/bacula-dir"
33970         largefile_support="yes"
33971   ;;
33972 cygwin)
33973         DISTVER=`uname -a |awk '{print $3}'`
33974         TAPEDRIVE="/dev/nrst0"
33975         WIN32=win32
33976         WCFLAGS="-mwindows"
33977         WLDFLAGS="-mwindows"
33978   ;;
33979 darwin)
33980         DISTVER=`uname -r`
33981         TAPEDRIVE="/dev/nst0"
33982         PSCMD="ps -e -o pid,command"
33983         MACOSX=macosx
33984         PFILES="${PFILES} \
33985            platforms/darwin/Makefile"
33986   ;;
33987 debian)
33988         DISTVER=`cat /etc/debian_version`
33989         TAPEDRIVE="/dev/nrst0"
33990         PSCMD="ps -e -o pid,command"
33991   ;;
33992 freebsd)
33993         DISTVER=`uname -a |awk '{print $3}'`
33994         VER=`echo $DISTVER | cut -c 1`
33995         if test x$VER = x4 ; then
33996            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33997            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33998         fi
33999         lld="qd"
34000         llu="qu"
34001         TAPEDRIVE="/dev/nrsa0"
34002         PSCMD="ps -ax -o pid,command"
34003         PFILES="${PFILES} \
34004             platforms/freebsd/Makefile \
34005             platforms/freebsd/bacula-fd \
34006             platforms/freebsd/bacula-sd \
34007             platforms/freebsd/bacula-dir"
34008         largefile_support="yes"
34009   ;;
34010 hpux)
34011         PSCMD="UNIX95=1 ps -e -o pid,comm"
34012         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34013         DISTVER=`uname -r`
34014         TAPEDRIVE="/dev/rmt/0hnb"
34015         PTHREAD_LIB="-lpthread"
34016         cat >>confdefs.h <<\_ACEOF
34017 #define _INCLUDE_LONGLONG 1
34018 _ACEOF
34019
34020   ;;
34021 irix)
34022         DISTVER=`uname -r`
34023         TAPEDRIVE="/dev/rmt/0cbn"
34024         PSCMD="ps -e -o pid,comm"
34025         PFILES="${PFILES} \
34026             platforms/irix/Makefile \
34027             platforms/irix/bacula-fd \
34028             platforms/irix/bacula-sd \
34029             platforms/irix/bacula-dir"
34030   ;;
34031 netbsd)
34032         DISTVER=`uname -a |awk '{print $3}'`
34033         lld="qd"
34034         llu="qu"
34035         TAPEDRIVE="/dev/nrst0"
34036         PSCMD="ps -ax -o pid,command"
34037         PTHREAD_LIB="-pthread"
34038         CFLAGS="${CFLAGS} -pthread"
34039   ;;
34040 openbsd)
34041         DISTVER=`uname -a |awk '{print $3}'`
34042         lld="qd"
34043         llu="qu"
34044         TAPEDRIVE="/dev/nrst0"
34045         PSCMD="ps -ax -o pid,command"
34046         PTHREAD_LIB="-pthread"
34047         CFLAGS="${CFLAGS} -pthread"
34048         PFILES="${PFILES} \
34049             platforms/openbsd/Makefile \
34050             platforms/openbsd/bacula-fd \
34051             platforms/openbsd/bacula-sd \
34052             platforms/openbsd/bacula-dir"
34053   ;;
34054 redhat)
34055         if test -f /etc/whitebox-release ; then
34056            f=/etc/whitebox-release
34057         else
34058            f=/etc/redhat-release
34059         fi
34060         if test `cat $f | grep release |\
34061                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34062            DISTVER="Enterprise "`cat $f | grep release |\
34063                     cut -f 6 -d ' '`
34064         else
34065             DISTVER=`cat /etc/redhat-release | grep release |\
34066                      cut -f 5 -d ' '`
34067         fi
34068         TAPEDRIVE="/dev/nst0"
34069         PSCMD="ps -e -o pid,command"
34070         PFILES="${PFILES} \
34071             platforms/redhat/Makefile \
34072             platforms/redhat/bacula-fd \
34073             platforms/redhat/bacula-sd \
34074             platforms/redhat/bacula-dir \
34075             platforms/redhat/bacula.spec \
34076             "
34077   ;;
34078 mandrake)
34079         DISTVER=`cat /etc/mandrake-release | grep release |\
34080            cut -f 5 -d ' '`
34081         TAPEDRIVE="/dev/nst0"
34082         PSCMD="ps -e -o pid,command"
34083         PFILES="${PFILES} \
34084             platforms/mandrake/Makefile \
34085             platforms/mandrake/bacula-fd \
34086             platforms/mandrake/bacula-sd \
34087             platforms/mandrake/bacula-dir \
34088             platforms/mandrake/bacula.spec \
34089             "
34090   ;;
34091 gentoo)
34092         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34093         TAPEDRIVE="/dev/nst0"
34094         PSCMD="ps -e -o pid,command"
34095         PFILES="${PFILES} \
34096             platforms/gentoo/Makefile \
34097          platforms/gentoo/bacula-init \
34098             platforms/gentoo/bacula-fd \
34099             platforms/gentoo/bacula-sd \
34100             platforms/gentoo/bacula-dir"
34101   ;;
34102 slackware)
34103         DISTVER=`cat /etc/slackware-version`
34104         TAPEDRIVE="/dev/nst0"
34105         PSCMD="ps -e -o pid,command"
34106         PFILES="${PFILES} \
34107             platforms/slackware/Makefile \
34108             platforms/slackware/rc.bacula-fd \
34109             platforms/slackware/rc.bacula-sd \
34110             platforms/slackware/rc.bacula-dir\
34111             platforms/slackware/functions.bacula"
34112   ;;
34113 solaris)
34114         DISTVER=`uname -r`
34115         TAPEDRIVE="/dev/rmt/0cbn"
34116         PSCMD="ps -e -o pid,comm"
34117         PFILES="${PFILES} \
34118             platforms/solaris/Makefile \
34119             platforms/solaris/bacula-fd \
34120             platforms/solaris/bacula-sd \
34121             platforms/solaris/bacula-dir"
34122         if test x$DISTVER = x5.6 ; then
34123             cat >>confdefs.h <<\_ACEOF
34124 #define HAVE_OLD_SOCKOPT 1
34125 _ACEOF
34126
34127         fi
34128         LIBS="$LIBS -lresolv"
34129   ;;
34130 suse)
34131         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34132             cut -f 3 -d ' '`
34133         TAPEDRIVE="/dev/nst0"
34134         PSCMD="ps -e -o pid,command"
34135         PFILES="${PFILES} \
34136             platforms/suse/Makefile \
34137             platforms/suse/bacula-fd \
34138             platforms/suse/bacula-sd \
34139             platforms/suse/bacula-dir \
34140             platforms/suse/bacula \
34141             platforms/suse/bacula.spec"
34142   ;;
34143 suse5)
34144         DISTNAME=suse
34145         DISTVER=5.x
34146         TAPEDRIVE="/dev/nst0"
34147         PSCMD="ps -e -o pid,command"
34148         PFILES="${PFILES} \
34149             platforms/suse/Makefile \
34150             platforms/suse/bacula-fd \
34151             platforms/suse/bacula-sd \
34152             platforms/suse/bacula-dir"
34153   ;;
34154 unknown)
34155         DISTVER=unknown
34156         TAPEDRIVE="/dev/nst0"
34157   ;;
34158 *)
34159   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34160   ;;
34161 esac
34162
34163
34164
34165 LIBS="$PTHREAD_LIB $LIBS"
34166
34167 cat >>confdefs.h <<_ACEOF
34168 #define lld "$lld"
34169 _ACEOF
34170
34171 cat >>confdefs.h <<_ACEOF
34172 #define llu "$llu"
34173 _ACEOF
34174
34175
34176
34177
34178
34179
34180
34181
34182 MCOMMON=./autoconf/Make.common
34183
34184
34185 if test "x${subsysdir}" = "x${sbindir}" ; then
34186    echo " "
34187    echo " "
34188    echo "You have set both --sbindir and --with-subsys-dir"
34189    echo "  equal to: ${subsysdir} "
34190    echo "This is not permitted. Please reconfigure."
34191    echo " "
34192    echo "Aborting configuration ..."
34193    echo " "
34194    echo " "
34195    exit 1
34196 fi
34197
34198 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"
34199
34200 ac_config_commands="$ac_config_commands default"
34201
34202 cat >confcache <<\_ACEOF
34203 # This file is a shell script that caches the results of configure
34204 # tests run on this system so they can be shared between configure
34205 # scripts and configure runs, see configure's option --config-cache.
34206 # It is not useful on other systems.  If it contains results you don't
34207 # want to keep, you may remove or edit it.
34208 #
34209 # config.status only pays attention to the cache file if you give it
34210 # the --recheck option to rerun configure.
34211 #
34212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34214 # following values.
34215
34216 _ACEOF
34217
34218 # The following way of writing the cache mishandles newlines in values,
34219 # but we know of no workaround that is simple, portable, and efficient.
34220 # So, we kill variables containing newlines.
34221 # Ultrix sh set writes to stderr and can't be redirected directly,
34222 # and sets the high bit in the cache file unless we assign to the vars.
34223 (
34224   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34225     eval ac_val=\$$ac_var
34226     case $ac_val in #(
34227     *${as_nl}*)
34228       case $ac_var in #(
34229       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34230 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34231       esac
34232       case $ac_var in #(
34233       _ | IFS | as_nl) ;; #(
34234       *) $as_unset $ac_var ;;
34235       esac ;;
34236     esac
34237   done
34238
34239   (set) 2>&1 |
34240     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34241     *${as_nl}ac_space=\ *)
34242       # `set' does not quote correctly, so add quotes (double-quote
34243       # substitution turns \\\\ into \\, and sed turns \\ into \).
34244       sed -n \
34245         "s/'/'\\\\''/g;
34246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34247       ;; #(
34248     *)
34249       # `set' quotes correctly as required by POSIX, so do not add quotes.
34250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34251       ;;
34252     esac |
34253     sort
34254 ) |
34255   sed '
34256      /^ac_cv_env_/b end
34257      t clear
34258      :clear
34259      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34260      t end
34261      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34262      :end' >>confcache
34263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34264   if test -w "$cache_file"; then
34265     test "x$cache_file" != "x/dev/null" &&
34266       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34267 echo "$as_me: updating cache $cache_file" >&6;}
34268     cat confcache >$cache_file
34269   else
34270     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34271 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34272   fi
34273 fi
34274 rm -f confcache
34275
34276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34277 # Let make expand exec_prefix.
34278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34279
34280 DEFS=-DHAVE_CONFIG_H
34281
34282 ac_libobjs=
34283 ac_ltlibobjs=
34284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34285   # 1. Remove the extension, and $U if already installed.
34286   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34287   ac_i=`echo "$ac_i" | sed "$ac_script"`
34288   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34289   #    will be set to the directory where LIBOBJS objects are built.
34290   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34291   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34292 done
34293 LIBOBJS=$ac_libobjs
34294
34295 LTLIBOBJS=$ac_ltlibobjs
34296
34297
34298
34299 : ${CONFIG_STATUS=./config.status}
34300 ac_clean_files_save=$ac_clean_files
34301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34302 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34303 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34304 cat >$CONFIG_STATUS <<_ACEOF
34305 #! $SHELL
34306 # Generated by $as_me.
34307 # Run this file to recreate the current configuration.
34308 # Compiler output produced by configure, useful for debugging
34309 # configure, is in config.log if it exists.
34310
34311 debug=false
34312 ac_cs_recheck=false
34313 ac_cs_silent=false
34314 SHELL=\${CONFIG_SHELL-$SHELL}
34315 _ACEOF
34316
34317 cat >>$CONFIG_STATUS <<\_ACEOF
34318 ## --------------------- ##
34319 ## M4sh Initialization.  ##
34320 ## --------------------- ##
34321
34322 # Be Bourne compatible
34323 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34324   emulate sh
34325   NULLCMD=:
34326   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34327   # is contrary to our usage.  Disable this feature.
34328   alias -g '${1+"$@"}'='"$@"'
34329   setopt NO_GLOB_SUBST
34330 else
34331   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34332 fi
34333 BIN_SH=xpg4; export BIN_SH # for Tru64
34334 DUALCASE=1; export DUALCASE # for MKS sh
34335
34336
34337 # PATH needs CR
34338 # Avoid depending upon Character Ranges.
34339 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34340 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34341 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34342 as_cr_digits='0123456789'
34343 as_cr_alnum=$as_cr_Letters$as_cr_digits
34344
34345 # The user is always right.
34346 if test "${PATH_SEPARATOR+set}" != set; then
34347   echo "#! /bin/sh" >conf$$.sh
34348   echo  "exit 0"   >>conf$$.sh
34349   chmod +x conf$$.sh
34350   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34351     PATH_SEPARATOR=';'
34352   else
34353     PATH_SEPARATOR=:
34354   fi
34355   rm -f conf$$.sh
34356 fi
34357
34358 # Support unset when possible.
34359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34360   as_unset=unset
34361 else
34362   as_unset=false
34363 fi
34364
34365
34366 # IFS
34367 # We need space, tab and new line, in precisely that order.  Quoting is
34368 # there to prevent editors from complaining about space-tab.
34369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34370 # splitting by setting IFS to empty value.)
34371 as_nl='
34372 '
34373 IFS=" ""        $as_nl"
34374
34375 # Find who we are.  Look in the path if we contain no directory separator.
34376 case $0 in
34377   *[\\/]* ) as_myself=$0 ;;
34378   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34379 for as_dir in $PATH
34380 do
34381   IFS=$as_save_IFS
34382   test -z "$as_dir" && as_dir=.
34383   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34384 done
34385 IFS=$as_save_IFS
34386
34387      ;;
34388 esac
34389 # We did not find ourselves, most probably we were run as `sh COMMAND'
34390 # in which case we are not to be found in the path.
34391 if test "x$as_myself" = x; then
34392   as_myself=$0
34393 fi
34394 if test ! -f "$as_myself"; then
34395   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34396   { (exit 1); exit 1; }
34397 fi
34398
34399 # Work around bugs in pre-3.0 UWIN ksh.
34400 for as_var in ENV MAIL MAILPATH
34401 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34402 done
34403 PS1='$ '
34404 PS2='> '
34405 PS4='+ '
34406
34407 # NLS nuisances.
34408 for as_var in \
34409   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34410   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34411   LC_TELEPHONE LC_TIME
34412 do
34413   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34414     eval $as_var=C; export $as_var
34415   else
34416     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34417   fi
34418 done
34419
34420 # Required to use basename.
34421 if expr a : '\(a\)' >/dev/null 2>&1 &&
34422    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34423   as_expr=expr
34424 else
34425   as_expr=false
34426 fi
34427
34428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34429   as_basename=basename
34430 else
34431   as_basename=false
34432 fi
34433
34434
34435 # Name of the executable.
34436 as_me=`$as_basename -- "$0" ||
34437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34438          X"$0" : 'X\(//\)$' \| \
34439          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34440 echo X/"$0" |
34441     sed '/^.*\/\([^/][^/]*\)\/*$/{
34442             s//\1/
34443             q
34444           }
34445           /^X\/\(\/\/\)$/{
34446             s//\1/
34447             q
34448           }
34449           /^X\/\(\/\).*/{
34450             s//\1/
34451             q
34452           }
34453           s/.*/./; q'`
34454
34455 # CDPATH.
34456 $as_unset CDPATH
34457
34458
34459
34460   as_lineno_1=$LINENO
34461   as_lineno_2=$LINENO
34462   test "x$as_lineno_1" != "x$as_lineno_2" &&
34463   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34464
34465   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34466   # uniformly replaced by the line number.  The first 'sed' inserts a
34467   # line-number line after each line using $LINENO; the second 'sed'
34468   # does the real work.  The second script uses 'N' to pair each
34469   # line-number line with the line containing $LINENO, and appends
34470   # trailing '-' during substitution so that $LINENO is not a special
34471   # case at line end.
34472   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34473   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34474   # E. McMahon (1931-1989) for sed's syntax.  :-)
34475   sed -n '
34476     p
34477     /[$]LINENO/=
34478   ' <$as_myself |
34479     sed '
34480       s/[$]LINENO.*/&-/
34481       t lineno
34482       b
34483       :lineno
34484       N
34485       :loop
34486       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34487       t loop
34488       s/-\n.*//
34489     ' >$as_me.lineno &&
34490   chmod +x "$as_me.lineno" ||
34491     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34492    { (exit 1); exit 1; }; }
34493
34494   # Don't try to exec as it changes $[0], causing all sort of problems
34495   # (the dirname of $[0] is not the place where we might find the
34496   # original and so on.  Autoconf is especially sensitive to this).
34497   . "./$as_me.lineno"
34498   # Exit status is that of the last command.
34499   exit
34500 }
34501
34502
34503 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34504   as_dirname=dirname
34505 else
34506   as_dirname=false
34507 fi
34508
34509 ECHO_C= ECHO_N= ECHO_T=
34510 case `echo -n x` in
34511 -n*)
34512   case `echo 'x\c'` in
34513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34514   *)   ECHO_C='\c';;
34515   esac;;
34516 *)
34517   ECHO_N='-n';;
34518 esac
34519
34520 if expr a : '\(a\)' >/dev/null 2>&1 &&
34521    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34522   as_expr=expr
34523 else
34524   as_expr=false
34525 fi
34526
34527 rm -f conf$$ conf$$.exe conf$$.file
34528 if test -d conf$$.dir; then
34529   rm -f conf$$.dir/conf$$.file
34530 else
34531   rm -f conf$$.dir
34532   mkdir conf$$.dir
34533 fi
34534 echo >conf$$.file
34535 if ln -s conf$$.file conf$$ 2>/dev/null; then
34536   as_ln_s='ln -s'
34537   # ... but there are two gotchas:
34538   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34539   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34540   # In both cases, we have to default to `cp -p'.
34541   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34542     as_ln_s='cp -p'
34543 elif ln conf$$.file conf$$ 2>/dev/null; then
34544   as_ln_s=ln
34545 else
34546   as_ln_s='cp -p'
34547 fi
34548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34549 rmdir conf$$.dir 2>/dev/null
34550
34551 if mkdir -p . 2>/dev/null; then
34552   as_mkdir_p=:
34553 else
34554   test -d ./-p && rmdir ./-p
34555   as_mkdir_p=false
34556 fi
34557
34558 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34559 # systems may use methods other than mode bits to determine executability.
34560 cat >conf$$.file <<_ASEOF
34561 #! /bin/sh
34562 exit 0
34563 _ASEOF
34564 chmod +x conf$$.file
34565 if test -x conf$$.file >/dev/null 2>&1; then
34566   as_executable_p="test -x"
34567 else
34568   as_executable_p=:
34569 fi
34570 rm -f conf$$.file
34571
34572 # Sed expression to map a string onto a valid CPP name.
34573 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34574
34575 # Sed expression to map a string onto a valid variable name.
34576 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34577
34578
34579 exec 6>&1
34580
34581 # Save the log message, to keep $[0] and so on meaningful, and to
34582 # report actual input values of CONFIG_FILES etc. instead of their
34583 # values after options handling.
34584 ac_log="
34585 This file was extended by $as_me, which was
34586 generated by GNU Autoconf 2.60.  Invocation command line was
34587
34588   CONFIG_FILES    = $CONFIG_FILES
34589   CONFIG_HEADERS  = $CONFIG_HEADERS
34590   CONFIG_LINKS    = $CONFIG_LINKS
34591   CONFIG_COMMANDS = $CONFIG_COMMANDS
34592   $ $0 $@
34593
34594 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34595 "
34596
34597 _ACEOF
34598
34599 cat >>$CONFIG_STATUS <<_ACEOF
34600 # Files that config.status was made for.
34601 config_files="$ac_config_files"
34602 config_headers="$ac_config_headers"
34603 config_commands="$ac_config_commands"
34604
34605 _ACEOF
34606
34607 cat >>$CONFIG_STATUS <<\_ACEOF
34608 ac_cs_usage="\
34609 \`$as_me' instantiates files from templates according to the
34610 current configuration.
34611
34612 Usage: $0 [OPTIONS] [FILE]...
34613
34614   -h, --help       print this help, then exit
34615   -V, --version    print version number, then exit
34616   -q, --quiet      do not print progress messages
34617   -d, --debug      don't remove temporary files
34618       --recheck    update $as_me by reconfiguring in the same conditions
34619   --file=FILE[:TEMPLATE]
34620                    instantiate the configuration file FILE
34621   --header=FILE[:TEMPLATE]
34622                    instantiate the configuration header FILE
34623
34624 Configuration files:
34625 $config_files
34626
34627 Configuration headers:
34628 $config_headers
34629
34630 Configuration commands:
34631 $config_commands
34632
34633 Report bugs to <bug-autoconf@gnu.org>."
34634
34635 _ACEOF
34636 cat >>$CONFIG_STATUS <<_ACEOF
34637 ac_cs_version="\\
34638 config.status
34639 configured by $0, generated by GNU Autoconf 2.60,
34640   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34641
34642 Copyright (C) 2006 Free Software Foundation, Inc.
34643 This config.status script is free software; the Free Software Foundation
34644 gives unlimited permission to copy, distribute and modify it."
34645
34646 ac_pwd='$ac_pwd'
34647 srcdir='$srcdir'
34648 INSTALL='$INSTALL'
34649 _ACEOF
34650
34651 cat >>$CONFIG_STATUS <<\_ACEOF
34652 # If no file are specified by the user, then we need to provide default
34653 # value.  By we need to know if files were specified by the user.
34654 ac_need_defaults=:
34655 while test $# != 0
34656 do
34657   case $1 in
34658   --*=*)
34659     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34660     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34661     ac_shift=:
34662     ;;
34663   *)
34664     ac_option=$1
34665     ac_optarg=$2
34666     ac_shift=shift
34667     ;;
34668   esac
34669
34670   case $ac_option in
34671   # Handling of the options.
34672   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34673     ac_cs_recheck=: ;;
34674   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34675     echo "$ac_cs_version"; exit ;;
34676   --debug | --debu | --deb | --de | --d | -d )
34677     debug=: ;;
34678   --file | --fil | --fi | --f )
34679     $ac_shift
34680     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34681     ac_need_defaults=false;;
34682   --header | --heade | --head | --hea )
34683     $ac_shift
34684     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34685     ac_need_defaults=false;;
34686   --he | --h)
34687     # Conflict between --help and --header
34688     { echo "$as_me: error: ambiguous option: $1
34689 Try \`$0 --help' for more information." >&2
34690    { (exit 1); exit 1; }; };;
34691   --help | --hel | -h )
34692     echo "$ac_cs_usage"; exit ;;
34693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34694   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34695     ac_cs_silent=: ;;
34696
34697   # This is an error.
34698   -*) { echo "$as_me: error: unrecognized option: $1
34699 Try \`$0 --help' for more information." >&2
34700    { (exit 1); exit 1; }; } ;;
34701
34702   *) ac_config_targets="$ac_config_targets $1"
34703      ac_need_defaults=false ;;
34704
34705   esac
34706   shift
34707 done
34708
34709 ac_configure_extra_args=
34710
34711 if $ac_cs_silent; then
34712   exec 6>/dev/null
34713   ac_configure_extra_args="$ac_configure_extra_args --silent"
34714 fi
34715
34716 _ACEOF
34717 cat >>$CONFIG_STATUS <<_ACEOF
34718 if \$ac_cs_recheck; then
34719   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34720   CONFIG_SHELL=$SHELL
34721   export CONFIG_SHELL
34722   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34723 fi
34724
34725 _ACEOF
34726 cat >>$CONFIG_STATUS <<\_ACEOF
34727 exec 5>>config.log
34728 {
34729   echo
34730   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34731 ## Running $as_me. ##
34732 _ASBOX
34733   echo "$ac_log"
34734 } >&5
34735
34736 _ACEOF
34737 cat >>$CONFIG_STATUS <<_ACEOF
34738 #
34739 # INIT-COMMANDS
34740 #
34741 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34742     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34743     # from automake.
34744     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34745     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34746     LINGUAS="${LINGUAS-%UNSET%}"
34747
34748
34749 _ACEOF
34750
34751 cat >>$CONFIG_STATUS <<\_ACEOF
34752
34753 # Handling of arguments.
34754 for ac_config_target in $ac_config_targets
34755 do
34756   case $ac_config_target in
34757     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34758     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34759     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34760     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34761     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34762     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34763     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34764     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34765     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34766     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34767     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34768     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34769     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34770     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34771     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34772     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34773     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34774     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34775     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34776     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34777     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34778     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34779     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34780     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34781     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34782     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34783     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34784     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34785     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34786     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34787     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34788     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34789     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34790     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34791     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34792     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34793     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34794     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34795     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34796     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34797     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34798     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34799     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34800     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34801     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34802     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34803     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34804     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34805     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34806     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34807     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34808     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34809     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34810     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34811     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34812     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34813     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34814     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34815     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34816     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34817     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34818     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34819     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34820     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34821     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34822     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34823     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34824     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34825     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34826     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34827     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34828     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34829     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34830     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34831     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34832     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34833     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34834     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34835     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34836     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34837     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34838     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34839     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34840     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34841     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34842     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34843     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34844     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34845     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34846     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34847     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34848     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34849     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34850     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34851     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34852     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34853     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34854     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34855     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34856     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34857     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34858     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34859     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34860     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34861     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34862     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34863
34864   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34866    { (exit 1); exit 1; }; };;
34867   esac
34868 done
34869
34870
34871 # If the user did not use the arguments to specify the items to instantiate,
34872 # then the envvar interface is used.  Set only those that are not.
34873 # We use the long form for the default assignment because of an extremely
34874 # bizarre bug on SunOS 4.1.3.
34875 if $ac_need_defaults; then
34876   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34877   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34878   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34879 fi
34880
34881 # Have a temporary directory for convenience.  Make it in the build tree
34882 # simply because there is no reason against having it here, and in addition,
34883 # creating and moving files from /tmp can sometimes cause problems.
34884 # Hook for its removal unless debugging.
34885 # Note that there is a small window in which the directory will not be cleaned:
34886 # after its creation but before its name has been assigned to `$tmp'.
34887 $debug ||
34888 {
34889   tmp=
34890   trap 'exit_status=$?
34891   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34892 ' 0
34893   trap '{ (exit 1); exit 1; }' 1 2 13 15
34894 }
34895 # Create a (secure) tmp directory for tmp files.
34896
34897 {
34898   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34899   test -n "$tmp" && test -d "$tmp"
34900 }  ||
34901 {
34902   tmp=./conf$$-$RANDOM
34903   (umask 077 && mkdir "$tmp")
34904 } ||
34905 {
34906    echo "$me: cannot create a temporary directory in ." >&2
34907    { (exit 1); exit 1; }
34908 }
34909
34910 #
34911 # Set up the sed scripts for CONFIG_FILES section.
34912 #
34913
34914 # No need to generate the scripts if there are no CONFIG_FILES.
34915 # This happens for instance when ./config.status config.h
34916 if test -n "$CONFIG_FILES"; then
34917
34918 _ACEOF
34919
34920 # Create sed commands to just substitute file output variables.
34921
34922 # Remaining file output variables are in a fragment that also has non-file
34923 # output varibles.
34924
34925
34926
34927 ac_delim='%!_!# '
34928 for ac_last_try in false false false false false :; do
34929   cat >conf$$subs.sed <<_ACEOF
34930 SHELL!$SHELL$ac_delim
34931 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34932 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34933 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34934 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34935 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34936 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34937 exec_prefix!$exec_prefix$ac_delim
34938 prefix!$prefix$ac_delim
34939 program_transform_name!$program_transform_name$ac_delim
34940 bindir!$bindir$ac_delim
34941 sbindir!$sbindir$ac_delim
34942 libexecdir!$libexecdir$ac_delim
34943 datarootdir!$datarootdir$ac_delim
34944 datadir!$datadir$ac_delim
34945 sysconfdir!$sysconfdir$ac_delim
34946 sharedstatedir!$sharedstatedir$ac_delim
34947 localstatedir!$localstatedir$ac_delim
34948 includedir!$includedir$ac_delim
34949 oldincludedir!$oldincludedir$ac_delim
34950 docdir!$docdir$ac_delim
34951 infodir!$infodir$ac_delim
34952 htmldir!$htmldir$ac_delim
34953 dvidir!$dvidir$ac_delim
34954 pdfdir!$pdfdir$ac_delim
34955 psdir!$psdir$ac_delim
34956 libdir!$libdir$ac_delim
34957 localedir!$localedir$ac_delim
34958 mandir!$mandir$ac_delim
34959 DEFS!$DEFS$ac_delim
34960 ECHO_C!$ECHO_C$ac_delim
34961 ECHO_N!$ECHO_N$ac_delim
34962 ECHO_T!$ECHO_T$ac_delim
34963 LIBS!$LIBS$ac_delim
34964 build_alias!$build_alias$ac_delim
34965 host_alias!$host_alias$ac_delim
34966 target_alias!$target_alias$ac_delim
34967 BUILD_DIR!$BUILD_DIR$ac_delim
34968 TOP_DIR!$TOP_DIR$ac_delim
34969 TRUEPRG!$TRUEPRG$ac_delim
34970 FALSEPRG!$FALSEPRG$ac_delim
34971 VERSION!$VERSION$ac_delim
34972 DATE!$DATE$ac_delim
34973 LSMDATE!$LSMDATE$ac_delim
34974 CC!$CC$ac_delim
34975 CFLAGS!$CFLAGS$ac_delim
34976 LDFLAGS!$LDFLAGS$ac_delim
34977 CPPFLAGS!$CPPFLAGS$ac_delim
34978 ac_ct_CC!$ac_ct_CC$ac_delim
34979 EXEEXT!$EXEEXT$ac_delim
34980 OBJEXT!$OBJEXT$ac_delim
34981 CXX!$CXX$ac_delim
34982 CXXFLAGS!$CXXFLAGS$ac_delim
34983 ac_ct_CXX!$ac_ct_CXX$ac_delim
34984 CPP!$CPP$ac_delim
34985 GREP!$GREP$ac_delim
34986 EGREP!$EGREP$ac_delim
34987 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34988 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34989 INSTALL_DATA!$INSTALL_DATA$ac_delim
34990 RANLIB!$RANLIB$ac_delim
34991 MV!$MV$ac_delim
34992 RM!$RM$ac_delim
34993 CP!$CP$ac_delim
34994 SED!$SED$ac_delim
34995 ECHO!$ECHO$ac_delim
34996 CMP!$CMP$ac_delim
34997 TBL!$TBL$ac_delim
34998 AR!$AR$ac_delim
34999 OPENSSL!$OPENSSL$ac_delim
35000 MTX!$MTX$ac_delim
35001 DD!$DD$ac_delim
35002 MKISOFS!$MKISOFS$ac_delim
35003 PYTHON!$PYTHON$ac_delim
35004 GROWISOFS!$GROWISOFS$ac_delim
35005 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35006 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35007 PKGCONFIG!$PKGCONFIG$ac_delim
35008 WXCONFIG!$WXCONFIG$ac_delim
35009 WXFLAGS!$WXFLAGS$ac_delim
35010 CDRECORD!$CDRECORD$ac_delim
35011 PIDOF!$PIDOF$ac_delim
35012 AWK!$AWK$ac_delim
35013 ARFLAGS!$ARFLAGS$ac_delim
35014 MAKE_SHELL!$MAKE_SHELL$ac_delim
35015 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35016 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35017 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35018 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35019 build!$build$ac_delim
35020 build_cpu!$build_cpu$ac_delim
35021 build_vendor!$build_vendor$ac_delim
35022 build_os!$build_os$ac_delim
35023 host!$host$ac_delim
35024 _ACEOF
35025
35026   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35027     break
35028   elif $ac_last_try; then
35029     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35030 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35031    { (exit 1); exit 1; }; }
35032   else
35033     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35034   fi
35035 done
35036
35037 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35038 if test -n "$ac_eof"; then
35039   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35040   ac_eof=`expr $ac_eof + 1`
35041 fi
35042
35043 cat >>$CONFIG_STATUS <<_ACEOF
35044 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35046 /^[      ]*@MCOMMON@[    ]*$/{
35047 r $MCOMMON
35048 d
35049 }
35050 _ACEOF
35051 sed '
35052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35053 s/^/s,@/; s/!/@,|#_!!_#|/
35054 :n
35055 t n
35056 s/'"$ac_delim"'$/,g/; t
35057 s/$/\\/; p
35058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35059 ' >>$CONFIG_STATUS <conf$$subs.sed
35060 rm -f conf$$subs.sed
35061 cat >>$CONFIG_STATUS <<_ACEOF
35062 CEOF$ac_eof
35063 _ACEOF
35064
35065
35066 ac_delim='%!_!# '
35067 for ac_last_try in false false false false false :; do
35068   cat >conf$$subs.sed <<_ACEOF
35069 host_cpu!$host_cpu$ac_delim
35070 host_vendor!$host_vendor$ac_delim
35071 host_os!$host_os$ac_delim
35072 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35073 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35074 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35075 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35076 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35077 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35078 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35079 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35080 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35081 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35082 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35083 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35084 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35085 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35086 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35087 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35088 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35089 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35090 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35091 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35092 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35093 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35094 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35095 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35096 SET_MAKE!$SET_MAKE$ac_delim
35097 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35098 USE_NLS!$USE_NLS$ac_delim
35099 MSGFMT!$MSGFMT$ac_delim
35100 GMSGFMT!$GMSGFMT$ac_delim
35101 XGETTEXT!$XGETTEXT$ac_delim
35102 MSGMERGE!$MSGMERGE$ac_delim
35103 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35104 LIBICONV!$LIBICONV$ac_delim
35105 LTLIBICONV!$LTLIBICONV$ac_delim
35106 INTLLIBS!$INTLLIBS$ac_delim
35107 LIBINTL!$LIBINTL$ac_delim
35108 LTLIBINTL!$LTLIBINTL$ac_delim
35109 POSUB!$POSUB$ac_delim
35110 GLIBC2!$GLIBC2$ac_delim
35111 ALLOCA!$ALLOCA$ac_delim
35112 GLIBC21!$GLIBC21$ac_delim
35113 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35114 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35115 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35116 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35117 INTLBISON!$INTLBISON$ac_delim
35118 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35119 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35120 CATOBJEXT!$CATOBJEXT$ac_delim
35121 DATADIRNAME!$DATADIRNAME$ac_delim
35122 INSTOBJEXT!$INSTOBJEXT$ac_delim
35123 GENCAT!$GENCAT$ac_delim
35124 INTLOBJS!$INTLOBJS$ac_delim
35125 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35126 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35127 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35128 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35129 GNOME_LIBS!$GNOME_LIBS$ac_delim
35130 GNOME_DIR!$GNOME_DIR$ac_delim
35131 BAT_DIR!$BAT_DIR$ac_delim
35132 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35133 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35134 WX_DIR!$WX_DIR$ac_delim
35135 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35136 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35137 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35138 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35139 STATIC_FD!$STATIC_FD$ac_delim
35140 STATIC_SD!$STATIC_SD$ac_delim
35141 STATIC_DIR!$STATIC_DIR$ac_delim
35142 STATIC_CONS!$STATIC_CONS$ac_delim
35143 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35144 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35145 ALL_DIRS!$ALL_DIRS$ac_delim
35146 DIRD_DIR!$DIRD_DIR$ac_delim
35147 DIR_TOOLS!$DIR_TOOLS$ac_delim
35148 STORED_DIR!$STORED_DIR$ac_delim
35149 CONS_INC!$CONS_INC$ac_delim
35150 CONS_OBJ!$CONS_OBJ$ac_delim
35151 CONS_SRC!$CONS_SRC$ac_delim
35152 CONS_LIBS!$CONS_LIBS$ac_delim
35153 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35154 READLINE_SRC!$READLINE_SRC$ac_delim
35155 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35156 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35157 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35158 OPENSSL_INC!$OPENSSL_INC$ac_delim
35159 working_dir!$working_dir$ac_delim
35160 scriptdir!$scriptdir$ac_delim
35161 dump_email!$dump_email$ac_delim
35162 job_email!$job_email$ac_delim
35163 smtp_host!$smtp_host$ac_delim
35164 piddir!$piddir$ac_delim
35165 subsysdir!$subsysdir$ac_delim
35166 _ACEOF
35167
35168   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35169     break
35170   elif $ac_last_try; then
35171     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35172 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35173    { (exit 1); exit 1; }; }
35174   else
35175     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35176   fi
35177 done
35178
35179 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35180 if test -n "$ac_eof"; then
35181   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35182   ac_eof=`expr $ac_eof + 1`
35183 fi
35184
35185 cat >>$CONFIG_STATUS <<_ACEOF
35186 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35188 _ACEOF
35189 sed '
35190 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35191 s/^/s,@/; s/!/@,|#_!!_#|/
35192 :n
35193 t n
35194 s/'"$ac_delim"'$/,g/; t
35195 s/$/\\/; p
35196 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35197 ' >>$CONFIG_STATUS <conf$$subs.sed
35198 rm -f conf$$subs.sed
35199 cat >>$CONFIG_STATUS <<_ACEOF
35200 CEOF$ac_eof
35201 _ACEOF
35202
35203
35204 ac_delim='%!_!# '
35205 for ac_last_try in false false false false false :; do
35206   cat >conf$$subs.sed <<_ACEOF
35207 baseport!$baseport$ac_delim
35208 dir_port!$dir_port$ac_delim
35209 fd_port!$fd_port$ac_delim
35210 sd_port!$sd_port$ac_delim
35211 dir_password!$dir_password$ac_delim
35212 fd_password!$fd_password$ac_delim
35213 sd_password!$sd_password$ac_delim
35214 mon_dir_password!$mon_dir_password$ac_delim
35215 mon_fd_password!$mon_fd_password$ac_delim
35216 mon_sd_password!$mon_sd_password$ac_delim
35217 db_name!$db_name$ac_delim
35218 db_user!$db_user$ac_delim
35219 dir_user!$dir_user$ac_delim
35220 dir_group!$dir_group$ac_delim
35221 sd_user!$sd_user$ac_delim
35222 sd_group!$sd_group$ac_delim
35223 fd_user!$fd_user$ac_delim
35224 fd_group!$fd_group$ac_delim
35225 SBINPERM!$SBINPERM$ac_delim
35226 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35227 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35228 SQL_BINDIR!$SQL_BINDIR$ac_delim
35229 cats!$cats$ac_delim
35230 DB_TYPE!$DB_TYPE$ac_delim
35231 GETCONF!$GETCONF$ac_delim
35232 XMKMF!$XMKMF$ac_delim
35233 X_CFLAGS!$X_CFLAGS$ac_delim
35234 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35235 X_LIBS!$X_LIBS$ac_delim
35236 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35237 LIBOBJS!$LIBOBJS$ac_delim
35238 FDLIBS!$FDLIBS$ac_delim
35239 DEBUG!$DEBUG$ac_delim
35240 DINCLUDE!$DINCLUDE$ac_delim
35241 DLIB!$DLIB$ac_delim
35242 DB_LIBS!$DB_LIBS$ac_delim
35243 WCFLAGS!$WCFLAGS$ac_delim
35244 WLDFLAGS!$WLDFLAGS$ac_delim
35245 WRAPLIBS!$WRAPLIBS$ac_delim
35246 OBJLIST!$OBJLIST$ac_delim
35247 hostname!$hostname$ac_delim
35248 TAPEDRIVE!$TAPEDRIVE$ac_delim
35249 PSCMD!$PSCMD$ac_delim
35250 WIN32!$WIN32$ac_delim
35251 MACOSX!$MACOSX$ac_delim
35252 DISTNAME!$DISTNAME$ac_delim
35253 DISTVER!$DISTVER$ac_delim
35254 LTLIBOBJS!$LTLIBOBJS$ac_delim
35255 _ACEOF
35256
35257   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
35258     break
35259   elif $ac_last_try; then
35260     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35262    { (exit 1); exit 1; }; }
35263   else
35264     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35265   fi
35266 done
35267
35268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35269 if test -n "$ac_eof"; then
35270   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35271   ac_eof=`expr $ac_eof + 1`
35272 fi
35273
35274 cat >>$CONFIG_STATUS <<_ACEOF
35275 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35277 _ACEOF
35278 sed '
35279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35280 s/^/s,@/; s/!/@,|#_!!_#|/
35281 :n
35282 t n
35283 s/'"$ac_delim"'$/,g/; t
35284 s/$/\\/; p
35285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35286 ' >>$CONFIG_STATUS <conf$$subs.sed
35287 rm -f conf$$subs.sed
35288 cat >>$CONFIG_STATUS <<_ACEOF
35289 :end
35290 s/|#_!!_#|//g
35291 CEOF$ac_eof
35292 _ACEOF
35293
35294
35295 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35296 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35297 # trailing colons and then remove the whole line if VPATH becomes empty
35298 # (actually we leave an empty line to preserve line numbers).
35299 if test "x$srcdir" = x.; then
35300   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35301 s/:*\$(srcdir):*/:/
35302 s/:*\${srcdir}:*/:/
35303 s/:*@srcdir@:*/:/
35304 s/^\([^=]*=[     ]*\):*/\1/
35305 s/:*$//
35306 s/^[^=]*=[       ]*$//
35307 }'
35308 fi
35309
35310 cat >>$CONFIG_STATUS <<\_ACEOF
35311 fi # test -n "$CONFIG_FILES"
35312
35313
35314 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35315 do
35316   case $ac_tag in
35317   :[FHLC]) ac_mode=$ac_tag; continue;;
35318   esac
35319   case $ac_mode$ac_tag in
35320   :[FHL]*:*);;
35321   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35322 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35323    { (exit 1); exit 1; }; };;
35324   :[FH]-) ac_tag=-:-;;
35325   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35326   esac
35327   ac_save_IFS=$IFS
35328   IFS=:
35329   set x $ac_tag
35330   IFS=$ac_save_IFS
35331   shift
35332   ac_file=$1
35333   shift
35334
35335   case $ac_mode in
35336   :L) ac_source=$1;;
35337   :[FH])
35338     ac_file_inputs=
35339     for ac_f
35340     do
35341       case $ac_f in
35342       -) ac_f="$tmp/stdin";;
35343       *) # Look for the file first in the build tree, then in the source tree
35344          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35345          # because $ac_f cannot contain `:'.
35346          test -f "$ac_f" ||
35347            case $ac_f in
35348            [\\/$]*) false;;
35349            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35350            esac ||
35351            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35352 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35353    { (exit 1); exit 1; }; };;
35354       esac
35355       ac_file_inputs="$ac_file_inputs $ac_f"
35356     done
35357
35358     # Let's still pretend it is `configure' which instantiates (i.e., don't
35359     # use $as_me), people would be surprised to read:
35360     #    /* config.h.  Generated by config.status.  */
35361     configure_input="Generated from "`IFS=:
35362           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35363     if test x"$ac_file" != x-; then
35364       configure_input="$ac_file.  $configure_input"
35365       { echo "$as_me:$LINENO: creating $ac_file" >&5
35366 echo "$as_me: creating $ac_file" >&6;}
35367     fi
35368
35369     case $ac_tag in
35370     *:-:* | *:-) cat >"$tmp/stdin";;
35371     esac
35372     ;;
35373   esac
35374
35375   ac_dir=`$as_dirname -- "$ac_file" ||
35376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35377          X"$ac_file" : 'X\(//\)[^/]' \| \
35378          X"$ac_file" : 'X\(//\)$' \| \
35379          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35380 echo X"$ac_file" |
35381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35382             s//\1/
35383             q
35384           }
35385           /^X\(\/\/\)[^/].*/{
35386             s//\1/
35387             q
35388           }
35389           /^X\(\/\/\)$/{
35390             s//\1/
35391             q
35392           }
35393           /^X\(\/\).*/{
35394             s//\1/
35395             q
35396           }
35397           s/.*/./; q'`
35398   { as_dir="$ac_dir"
35399   case $as_dir in #(
35400   -*) as_dir=./$as_dir;;
35401   esac
35402   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35403     as_dirs=
35404     while :; do
35405       case $as_dir in #(
35406       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35407       *) as_qdir=$as_dir;;
35408       esac
35409       as_dirs="'$as_qdir' $as_dirs"
35410       as_dir=`$as_dirname -- "$as_dir" ||
35411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35412          X"$as_dir" : 'X\(//\)[^/]' \| \
35413          X"$as_dir" : 'X\(//\)$' \| \
35414          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35415 echo X"$as_dir" |
35416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35417             s//\1/
35418             q
35419           }
35420           /^X\(\/\/\)[^/].*/{
35421             s//\1/
35422             q
35423           }
35424           /^X\(\/\/\)$/{
35425             s//\1/
35426             q
35427           }
35428           /^X\(\/\).*/{
35429             s//\1/
35430             q
35431           }
35432           s/.*/./; q'`
35433       test -d "$as_dir" && break
35434     done
35435     test -z "$as_dirs" || eval "mkdir $as_dirs"
35436   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35437 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35438    { (exit 1); exit 1; }; }; }
35439   ac_builddir=.
35440
35441 case "$ac_dir" in
35442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35443 *)
35444   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35445   # A ".." for each directory in $ac_dir_suffix.
35446   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35447   case $ac_top_builddir_sub in
35448   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35449   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35450   esac ;;
35451 esac
35452 ac_abs_top_builddir=$ac_pwd
35453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35454 # for backward compatibility:
35455 ac_top_builddir=$ac_top_build_prefix
35456
35457 case $srcdir in
35458   .)  # We are building in place.
35459     ac_srcdir=.
35460     ac_top_srcdir=$ac_top_builddir_sub
35461     ac_abs_top_srcdir=$ac_pwd ;;
35462   [\\/]* | ?:[\\/]* )  # Absolute name.
35463     ac_srcdir=$srcdir$ac_dir_suffix;
35464     ac_top_srcdir=$srcdir
35465     ac_abs_top_srcdir=$srcdir ;;
35466   *) # Relative name.
35467     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35468     ac_top_srcdir=$ac_top_build_prefix$srcdir
35469     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35470 esac
35471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35472
35473
35474   case $ac_mode in
35475   :F)
35476   #
35477   # CONFIG_FILE
35478   #
35479
35480   case $INSTALL in
35481   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35482   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35483   esac
35484 _ACEOF
35485
35486 cat >>$CONFIG_STATUS <<\_ACEOF
35487 # If the template does not know about datarootdir, expand it.
35488 # FIXME: This hack should be removed a few years after 2.60.
35489 ac_datarootdir_hack=; ac_datarootdir_seen=
35490
35491 case `sed -n '/datarootdir/ {
35492   p
35493   q
35494 }
35495 /@datadir@/p
35496 /@docdir@/p
35497 /@infodir@/p
35498 /@localedir@/p
35499 /@mandir@/p
35500 ' $ac_file_inputs` in
35501 *datarootdir*) ac_datarootdir_seen=yes;;
35502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35503   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35504 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35505 _ACEOF
35506 cat >>$CONFIG_STATUS <<_ACEOF
35507   ac_datarootdir_hack='
35508   s&@datadir@&$datadir&g
35509   s&@docdir@&$docdir&g
35510   s&@infodir@&$infodir&g
35511   s&@localedir@&$localedir&g
35512   s&@mandir@&$mandir&g
35513     s&\\\${datarootdir}&$datarootdir&g' ;;
35514 esac
35515 _ACEOF
35516
35517 # Neutralize VPATH when `$srcdir' = `.'.
35518 # Shell code in configure.ac might set extrasub.
35519 # FIXME: do we really want to maintain this feature?
35520 cat >>$CONFIG_STATUS <<_ACEOF
35521   sed "$ac_vpsub
35522 $extrasub
35523 _ACEOF
35524 cat >>$CONFIG_STATUS <<\_ACEOF
35525 :t
35526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35527 s&@configure_input@&$configure_input&;t t
35528 s&@top_builddir@&$ac_top_builddir_sub&;t t
35529 s&@srcdir@&$ac_srcdir&;t t
35530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35531 s&@top_srcdir@&$ac_top_srcdir&;t t
35532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35533 s&@builddir@&$ac_builddir&;t t
35534 s&@abs_builddir@&$ac_abs_builddir&;t t
35535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35536 s&@INSTALL@&$ac_INSTALL&;t t
35537 $ac_datarootdir_hack
35538 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35539
35540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35541   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35542   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35543   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35544 which seems to be undefined.  Please make sure it is defined." >&5
35545 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35546 which seems to be undefined.  Please make sure it is defined." >&2;}
35547
35548   rm -f "$tmp/stdin"
35549   case $ac_file in
35550   -) cat "$tmp/out"; rm -f "$tmp/out";;
35551   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35552   esac
35553  ;;
35554   :H)
35555   #
35556   # CONFIG_HEADER
35557   #
35558 _ACEOF
35559
35560 # Transform confdefs.h into a sed script `conftest.defines', that
35561 # substitutes the proper values into config.h.in to produce config.h.
35562 rm -f conftest.defines conftest.tail
35563 # First, append a space to every undef/define line, to ease matching.
35564 echo 's/$/ /' >conftest.defines
35565 # Then, protect against being on the right side of a sed subst, or in
35566 # an unquoted here document, in config.status.  If some macros were
35567 # called several times there might be several #defines for the same
35568 # symbol, which is useless.  But do not sort them, since the last
35569 # AC_DEFINE must be honored.
35570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35571 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35572 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35573 # PARAMS is the parameter list in the macro definition--in most cases, it's
35574 # just an empty string.
35575 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35576 ac_dB='\\)[      (].*,\\1define\\2'
35577 ac_dC=' '
35578 ac_dD=' ,'
35579
35580 uniq confdefs.h |
35581   sed -n '
35582         t rset
35583         :rset
35584         s/^[     ]*#[    ]*define[       ][      ]*//
35585         t ok
35586         d
35587         :ok
35588         s/[\\&,]/\\&/g
35589         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35590         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35591   ' >>conftest.defines
35592
35593 # Remove the space that was appended to ease matching.
35594 # Then replace #undef with comments.  This is necessary, for
35595 # example, in the case of _POSIX_SOURCE, which is predefined and required
35596 # on some systems where configure will not decide to define it.
35597 # (The regexp can be short, since the line contains either #define or #undef.)
35598 echo 's/ $//
35599 s,^[     #]*u.*,/* & */,' >>conftest.defines
35600
35601 # Break up conftest.defines:
35602 ac_max_sed_lines=50
35603
35604 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35605 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35606 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35607 # et cetera.
35608 ac_in='$ac_file_inputs'
35609 ac_out='"$tmp/out1"'
35610 ac_nxt='"$tmp/out2"'
35611
35612 while :
35613 do
35614   # Write a here document:
35615     cat >>$CONFIG_STATUS <<_ACEOF
35616     # First, check the format of the line:
35617     cat >"\$tmp/defines.sed" <<\\CEOF
35618 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35619 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35620 b
35621 :def
35622 _ACEOF
35623   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35624   echo 'CEOF
35625     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35626   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35627   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35628   grep . conftest.tail >/dev/null || break
35629   rm -f conftest.defines
35630   mv conftest.tail conftest.defines
35631 done
35632 rm -f conftest.defines conftest.tail
35633
35634 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35635 cat >>$CONFIG_STATUS <<\_ACEOF
35636   if test x"$ac_file" != x-; then
35637     echo "/* $configure_input  */" >"$tmp/config.h"
35638     cat "$ac_result" >>"$tmp/config.h"
35639     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35640       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35641 echo "$as_me: $ac_file is unchanged" >&6;}
35642     else
35643       rm -f $ac_file
35644       mv "$tmp/config.h" $ac_file
35645     fi
35646   else
35647     echo "/* $configure_input  */"
35648     cat "$ac_result"
35649   fi
35650   rm -f "$tmp/out12"
35651  ;;
35652
35653   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35654 echo "$as_me: executing $ac_file commands" >&6;}
35655  ;;
35656   esac
35657
35658
35659   case $ac_file$ac_mode in
35660     "default-1":C)
35661     for ac_file in $CONFIG_FILES; do
35662       # Support "outfile[:infile[:infile...]]"
35663       case "$ac_file" in
35664         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35665       esac
35666       # PO directories have a Makefile.in generated from Makefile.in.in.
35667       case "$ac_file" in */Makefile.in)
35668         # Adjust a relative srcdir.
35669         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35670         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35671         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35672         # In autoconf-2.13 it is called $ac_given_srcdir.
35673         # In autoconf-2.50 it is called $srcdir.
35674         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35675         case "$ac_given_srcdir" in
35676           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35677           /*) top_srcdir="$ac_given_srcdir" ;;
35678           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35679         esac
35680         # Treat a directory as a PO directory if and only if it has a
35681         # POTFILES.in file. This allows packages to have multiple PO
35682         # directories under different names or in different locations.
35683         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35684           rm -f "$ac_dir/POTFILES"
35685           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35686           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35687           POMAKEFILEDEPS="POTFILES.in"
35688           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35689           # on $ac_dir but don't depend on user-specified configuration
35690           # parameters.
35691           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35692             # The LINGUAS file contains the set of available languages.
35693             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35694               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35695             fi
35696             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35697             # Hide the ALL_LINGUAS assigment from automake.
35698             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35699             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35700           else
35701             # The set of available languages was given in configure.in.
35702             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35703           fi
35704           # Compute POFILES
35705           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35706           # Compute UPDATEPOFILES
35707           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35708           # Compute DUMMYPOFILES
35709           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35710           # Compute GMOFILES
35711           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35712           case "$ac_given_srcdir" in
35713             .) srcdirpre= ;;
35714             *) srcdirpre='$(srcdir)/' ;;
35715           esac
35716           POFILES=
35717           UPDATEPOFILES=
35718           DUMMYPOFILES=
35719           GMOFILES=
35720           for lang in $ALL_LINGUAS; do
35721             POFILES="$POFILES $srcdirpre$lang.po"
35722             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35723             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35724             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35725           done
35726           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35727           # environment variable.
35728           INST_LINGUAS=
35729           if test -n "$ALL_LINGUAS"; then
35730             for presentlang in $ALL_LINGUAS; do
35731               useit=no
35732               if test "%UNSET%" != "$LINGUAS"; then
35733                 desiredlanguages="$LINGUAS"
35734               else
35735                 desiredlanguages="$ALL_LINGUAS"
35736               fi
35737               for desiredlang in $desiredlanguages; do
35738                 # Use the presentlang catalog if desiredlang is
35739                 #   a. equal to presentlang, or
35740                 #   b. a variant of presentlang (because in this case,
35741                 #      presentlang can be used as a fallback for messages
35742                 #      which are not translated in the desiredlang catalog).
35743                 case "$desiredlang" in
35744                   "$presentlang"*) useit=yes;;
35745                 esac
35746               done
35747               if test $useit = yes; then
35748                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35749               fi
35750             done
35751           fi
35752           CATALOGS=
35753           if test -n "$INST_LINGUAS"; then
35754             for lang in $INST_LINGUAS; do
35755               CATALOGS="$CATALOGS $lang.gmo"
35756             done
35757           fi
35758           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35759           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"
35760           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35761             if test -f "$f"; then
35762               case "$f" in
35763                 *.orig | *.bak | *~) ;;
35764                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35765               esac
35766             fi
35767           done
35768         fi
35769         ;;
35770       esac
35771     done ;;
35772     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35773  ;;
35774
35775   esac
35776 done # for ac_tag
35777
35778
35779 { (exit 0); exit 0; }
35780 _ACEOF
35781 chmod +x $CONFIG_STATUS
35782 ac_clean_files=$ac_clean_files_save
35783
35784
35785 # configure is writing to config.log, and then calls config.status.
35786 # config.status does its own redirection, appending to config.log.
35787 # Unfortunately, on DOS this fails, as config.log is still kept open
35788 # by configure, so config.status won't be able to write to it; its
35789 # output is simply discarded.  So we exec the FD to /dev/null,
35790 # effectively closing config.log, so it can be properly (re)opened and
35791 # appended to by config.status.  When coming back to configure, we
35792 # need to make the FD available again.
35793 if test "$no_create" != yes; then
35794   ac_cs_success=:
35795   ac_config_status_args=
35796   test "$silent" = yes &&
35797     ac_config_status_args="$ac_config_status_args --quiet"
35798   exec 5>/dev/null
35799   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35800   exec 5>>config.log
35801   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35802   # would make configure fail if this is the last instruction.
35803   $ac_cs_success || { (exit 1); exit 1; }
35804 fi
35805
35806
35807 cd scripts
35808 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35809 chmod 755 dvd-handler dvd-simulator
35810 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35811 cd ..
35812
35813 c=src/cats
35814
35815 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35816 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35817
35818 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35819 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35820
35821 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35822 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35823
35824 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35825 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35826
35827 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35828 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35829
35830 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35831 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35832
35833 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35834 chmod 755 $c/sqlite
35835 chmod 755 $c/mysql
35836
35837 chmod 755 src/win32/build-depkgs-mingw32
35838
35839 if test "${support_bat}" = "yes" ; then
35840   cd src/qt-console
35841   a=`pwd`
35842   chmod 755 install_conf_file build-depkgs-qt-console
35843   echo " "
35844   echo "Downloading, building, and installing the qwt graphics library"
35845   echo " The install will be to directory ${a}/qwt ..."
35846   echo " "
35847   ./build-depkgs-qt-console
35848   echo "Creating bat Makefile"
35849   qmake
35850 fi
35851
35852
35853 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35854    largefile_support="yes"
35855 fi
35856
35857 #
35858 # A whole lot of hand springs to get the compiler version.
35859 #  This is because gcc changed the output in version 3.0
35860 #
35861 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35862 if test "x${CCVERSION}" = "x" ; then
35863   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35864 fi
35865 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35866 if test x"${CXXVERSION}" = x ; then
35867   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35868 fi
35869
35870 if test "x${subsysdir}" = "x${sbindir}" ; then
35871    echo " "
35872    echo " "
35873    echo "You have set --sbindir and --with-subsys-dir"
35874    echo "  both equal to: ${subsysdir} "
35875    echo "  This is not permitted. Please reconfigure."
35876    echo " "
35877    echo "Aborting configuration ..."
35878    echo " "
35879    echo " "
35880    exit 1
35881 fi
35882
35883 if test "x${db_type}" = "xInternal" ; then
35884    echo " "
35885    echo " "
35886    echo "You have not specified either --enable-client-only or one of the"
35887    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35888    echo "  This is not permitted. Please reconfigure."
35889    echo " "
35890    echo "Aborting the configuration ..."
35891    echo " "
35892    echo " "
35893    exit 1
35894 fi
35895
35896 echo "
35897 Configuration on `date`:
35898
35899   Host:                       $host -- ${DISTNAME} ${DISTVER}
35900   Bacula version:             ${VERSION} (${DATE})
35901   Source code location:       ${srcdir}
35902   Install binaries:           ${sbindir}
35903   Install config files:       ${sysconfdir}
35904   Scripts directory:          ${scriptdir}
35905   Working directory:          ${working_dir}
35906   PID directory:              ${piddir}
35907   Subsys directory:           ${subsysdir}
35908   Man directory:              ${mandir}
35909   Data directory:             ${datadir}
35910   C Compiler:                 ${CC} ${CCVERSION}
35911   C++ Compiler:               ${CXX} ${CXXVERSION}
35912   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35913   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35914   Libraries:                  ${LIBS}
35915   Statically Linked Tools:    ${support_static_tools}
35916   Statically Linked FD:       ${support_static_fd}
35917   Statically Linked SD:       ${support_static_sd}
35918   Statically Linked DIR:      ${support_static_dir}
35919   Statically Linked CONS:     ${support_static_cons}
35920   Database type:              ${db_type}
35921   Database lib:               ${DB_LIBS}
35922   Database name:              ${db_name}
35923   Database user:              ${db_user}
35924
35925   Job Output Email:           ${job_email}
35926   Traceback Email:            ${dump_email}
35927   SMTP Host Address:          ${smtp_host}
35928
35929   Director Port:              ${dir_port}
35930   File daemon Port:           ${fd_port}
35931   Storage daemon Port:        ${sd_port}
35932
35933   Director User:              ${dir_user}
35934   Director Group:             ${dir_group}
35935   Storage Daemon User:        ${sd_user}
35936   Storage DaemonGroup:        ${sd_group}
35937   File Daemon User:           ${fd_user}
35938   File Daemon Group:          ${fd_group}
35939
35940   SQL binaries Directory      ${SQL_BINDIR}
35941
35942   Large file support:         $largefile_support
35943   Bacula conio support:       ${got_conio} ${CONS_LIBS}
35944   readline support:           ${got_readline} ${PRTREADLINE_SRC}
35945   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
35946   TLS support:                ${support_tls}
35947   Encryption support:         ${support_crypto}
35948   ZLIB support:               ${have_zlib}
35949   enable-smartalloc:          ${support_smartalloc}
35950   enable-bat:                 ${support_bat}
35951   enable-gnome:               ${support_gnome} ${gnome_version}
35952   enable-bwx-console:         ${support_wx_console} ${wx_version}
35953   enable-tray-monitor:        ${support_tray_monitor}
35954   client-only:                ${build_client_only}
35955   build-dird:                 ${build_dird}
35956   build-stored:               ${build_stored}
35957   ACL support:                ${have_acl}
35958   Python support:             ${support_python} ${PYTHON_LIBS}
35959   Batch insert enabled:       ${support_batch_insert}
35960
35961   " > config.out
35962
35963 cat config.out