]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Implement ./configure search for qwt libraries.
[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 QWT_INC
759 QWT_LDFLAGS
760 WXCONS_CPPFLAGS
761 WXCONS_LDFLAGS
762 WX_DIR
763 TRAY_MONITOR_CPPFLAGS
764 TRAY_MONITOR_LDFLAGS
765 TRAY_MONITOR_DIR
766 TTOOL_LDFLAGS
767 STATIC_FD
768 STATIC_SD
769 STATIC_DIR
770 STATIC_CONS
771 STATIC_GNOME_CONS
772 STATIC_WX_CONS
773 ALL_DIRS
774 DIRD_DIR
775 DIR_TOOLS
776 STORED_DIR
777 CONS_INC
778 CONS_OBJ
779 CONS_SRC
780 CONS_LIBS
781 CONS_LDFLAGS
782 READLINE_SRC
783 PYTHON_LIBS
784 PYTHON_INCDIR
785 OPENSSL_LIBS
786 OPENSSL_INC
787 working_dir
788 scriptdir
789 dump_email
790 job_email
791 smtp_host
792 piddir
793 subsysdir
794 baseport
795 dir_port
796 fd_port
797 sd_port
798 dir_password
799 fd_password
800 sd_password
801 mon_dir_password
802 mon_fd_password
803 mon_sd_password
804 db_name
805 db_user
806 dir_user
807 dir_group
808 sd_user
809 sd_group
810 fd_user
811 fd_group
812 SBINPERM
813 SQL_LFLAGS
814 SQL_INCLUDE
815 SQL_BINDIR
816 cats
817 DB_TYPE
818 GETCONF
819 XMKMF
820 X_CFLAGS
821 X_PRE_LIBS
822 X_LIBS
823 X_EXTRA_LIBS
824 LIBOBJS
825 FDLIBS
826 DEBUG
827 DINCLUDE
828 DLIB
829 DB_LIBS
830 WCFLAGS
831 WLDFLAGS
832 WRAPLIBS
833 OBJLIST
834 hostname
835 TAPEDRIVE
836 PSCMD
837 WIN32
838 MACOSX
839 DISTNAME
840 DISTVER
841 LTLIBOBJS'
842 ac_subst_files='MCOMMON'
843       ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 CPPFLAGS
850 CXX
851 CXXFLAGS
852 CCC
853 CPP
854 WXCONFIG
855 WXFLAGS
856 XMKMF'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909   # If the previous option needs an argument, assign it.
910   if test -n "$ac_prev"; then
911     eval $ac_prev=\$ac_option
912     ac_prev=
913     continue
914   fi
915
916   case $ac_option in
917   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918   *)    ac_optarg=yes ;;
919   esac
920
921   # Accept the important Cygnus configure options, so we can diagnose typos.
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
963       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
964    { (exit 1); exit 1; }; }
965     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
966     eval enable_$ac_feature=no ;;
967
968   -docdir | --docdir | --docdi | --doc | --do)
969     ac_prev=docdir ;;
970   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971     docdir=$ac_optarg ;;
972
973   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974     ac_prev=dvidir ;;
975   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976     dvidir=$ac_optarg ;;
977
978   -enable-* | --enable-*)
979     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983    { (exit 1); exit 1; }; }
984     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985     eval enable_$ac_feature=\$ac_optarg ;;
986
987   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989   | --exec | --exe | --ex)
990     ac_prev=exec_prefix ;;
991   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993   | --exec=* | --exe=* | --ex=*)
994     exec_prefix=$ac_optarg ;;
995
996   -gas | --gas | --ga | --g)
997     # Obsolete; use --with-gas.
998     with_gas=yes ;;
999
1000   -help | --help | --hel | --he | -h)
1001     ac_init_help=long ;;
1002   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003     ac_init_help=recursive ;;
1004   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005     ac_init_help=short ;;
1006
1007   -host | --host | --hos | --ho)
1008     ac_prev=host_alias ;;
1009   -host=* | --host=* | --hos=* | --ho=*)
1010     host_alias=$ac_optarg ;;
1011
1012   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013     ac_prev=htmldir ;;
1014   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015   | --ht=*)
1016     htmldir=$ac_optarg ;;
1017
1018   -includedir | --includedir | --includedi | --included | --include \
1019   | --includ | --inclu | --incl | --inc)
1020     ac_prev=includedir ;;
1021   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022   | --includ=* | --inclu=* | --incl=* | --inc=*)
1023     includedir=$ac_optarg ;;
1024
1025   -infodir | --infodir | --infodi | --infod | --info | --inf)
1026     ac_prev=infodir ;;
1027   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028     infodir=$ac_optarg ;;
1029
1030   -libdir | --libdir | --libdi | --libd)
1031     ac_prev=libdir ;;
1032   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033     libdir=$ac_optarg ;;
1034
1035   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036   | --libexe | --libex | --libe)
1037     ac_prev=libexecdir ;;
1038   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039   | --libexe=* | --libex=* | --libe=*)
1040     libexecdir=$ac_optarg ;;
1041
1042   -localedir | --localedir | --localedi | --localed | --locale)
1043     ac_prev=localedir ;;
1044   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045     localedir=$ac_optarg ;;
1046
1047   -localstatedir | --localstatedir | --localstatedi | --localstated \
1048   | --localstate | --localstat | --localsta | --localst | --locals)
1049     ac_prev=localstatedir ;;
1050   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052     localstatedir=$ac_optarg ;;
1053
1054   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055     ac_prev=mandir ;;
1056   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057     mandir=$ac_optarg ;;
1058
1059   -nfp | --nfp | --nf)
1060     # Obsolete; use --without-fp.
1061     with_fp=no ;;
1062
1063   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064   | --no-cr | --no-c | -n)
1065     no_create=yes ;;
1066
1067   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069     no_recursion=yes ;;
1070
1071   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073   | --oldin | --oldi | --old | --ol | --o)
1074     ac_prev=oldincludedir ;;
1075   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078     oldincludedir=$ac_optarg ;;
1079
1080   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081     ac_prev=prefix ;;
1082   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083     prefix=$ac_optarg ;;
1084
1085   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086   | --program-pre | --program-pr | --program-p)
1087     ac_prev=program_prefix ;;
1088   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090     program_prefix=$ac_optarg ;;
1091
1092   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093   | --program-suf | --program-su | --program-s)
1094     ac_prev=program_suffix ;;
1095   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097     program_suffix=$ac_optarg ;;
1098
1099   -program-transform-name | --program-transform-name \
1100   | --program-transform-nam | --program-transform-na \
1101   | --program-transform-n | --program-transform- \
1102   | --program-transform | --program-transfor \
1103   | --program-transfo | --program-transf \
1104   | --program-trans | --program-tran \
1105   | --progr-tra | --program-tr | --program-t)
1106     ac_prev=program_transform_name ;;
1107   -program-transform-name=* | --program-transform-name=* \
1108   | --program-transform-nam=* | --program-transform-na=* \
1109   | --program-transform-n=* | --program-transform-=* \
1110   | --program-transform=* | --program-transfor=* \
1111   | --program-transfo=* | --program-transf=* \
1112   | --program-trans=* | --program-tran=* \
1113   | --progr-tra=* | --program-tr=* | --program-t=*)
1114     program_transform_name=$ac_optarg ;;
1115
1116   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117     ac_prev=pdfdir ;;
1118   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119     pdfdir=$ac_optarg ;;
1120
1121   -psdir | --psdir | --psdi | --psd | --ps)
1122     ac_prev=psdir ;;
1123   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124     psdir=$ac_optarg ;;
1125
1126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127   | -silent | --silent | --silen | --sile | --sil)
1128     silent=yes ;;
1129
1130   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131     ac_prev=sbindir ;;
1132   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133   | --sbi=* | --sb=*)
1134     sbindir=$ac_optarg ;;
1135
1136   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138   | --sharedst | --shareds | --shared | --share | --shar \
1139   | --sha | --sh)
1140     ac_prev=sharedstatedir ;;
1141   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144   | --sha=* | --sh=*)
1145     sharedstatedir=$ac_optarg ;;
1146
1147   -site | --site | --sit)
1148     ac_prev=site ;;
1149   -site=* | --site=* | --sit=*)
1150     site=$ac_optarg ;;
1151
1152   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153     ac_prev=srcdir ;;
1154   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155     srcdir=$ac_optarg ;;
1156
1157   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158   | --syscon | --sysco | --sysc | --sys | --sy)
1159     ac_prev=sysconfdir ;;
1160   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162     sysconfdir=$ac_optarg ;;
1163
1164   -target | --target | --targe | --targ | --tar | --ta | --t)
1165     ac_prev=target_alias ;;
1166   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167     target_alias=$ac_optarg ;;
1168
1169   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170     verbose=yes ;;
1171
1172   -version | --version | --versio | --versi | --vers | -V)
1173     ac_init_version=: ;;
1174
1175   -with-* | --with-*)
1176     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid package name: $ac_package" >&2
1180    { (exit 1); exit 1; }; }
1181     ac_package=`echo $ac_package| sed 's/-/_/g'`
1182     eval with_$ac_package=\$ac_optarg ;;
1183
1184   -without-* | --without-*)
1185     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1188       { echo "$as_me: error: invalid package name: $ac_package" >&2
1189    { (exit 1); exit 1; }; }
1190     ac_package=`echo $ac_package | sed 's/-/_/g'`
1191     eval with_$ac_package=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) { echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213    { (exit 1); exit 1; }; }
1214     ;;
1215
1216   *=*)
1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221    { (exit 1); exit 1; }; }
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   { echo "$as_me: error: missing argument to $ac_option" >&2
1239    { (exit 1); exit 1; }; }
1240 fi
1241
1242 # Be sure to have absolute directory names.
1243 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244                 datadir sysconfdir sharedstatedir localstatedir includedir \
1245                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246                 libdir localedir mandir
1247 do
1248   eval ac_val=\$$ac_var
1249   case $ac_val in
1250     [\\/$]* | ?:[\\/]* )  continue;;
1251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252   esac
1253   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1254    { (exit 1); exit 1; }; }
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266   if test "x$build_alias" = x; then
1267     cross_compiling=maybe
1268     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269     If a cross compiler is detected then cross compile mode will be used." >&2
1270   elif test "x$build_alias" != "x$host_alias"; then
1271     cross_compiling=yes
1272   fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284   { echo "$as_me: error: Working directory cannot be determined" >&2
1285    { (exit 1); exit 1; }; }
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287   { echo "$as_me: error: pwd does not report name of working directory" >&2
1288    { (exit 1); exit 1; }; }
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293   ac_srcdir_defaulted=yes
1294   # Try the directory containing this script, then the parent directory.
1295   ac_confdir=`$as_dirname -- "$0" ||
1296 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297          X"$0" : 'X\(//\)[^/]' \| \
1298          X"$0" : 'X\(//\)$' \| \
1299          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1300 echo X"$0" |
1301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302             s//\1/
1303             q
1304           }
1305           /^X\(\/\/\)[^/].*/{
1306             s//\1/
1307             q
1308           }
1309           /^X\(\/\/\)$/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\).*/{
1314             s//\1/
1315             q
1316           }
1317           s/.*/./; q'`
1318   srcdir=$ac_confdir
1319   if test ! -r "$srcdir/$ac_unique_file"; then
1320     srcdir=..
1321   fi
1322 else
1323   ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1328    { (exit 1); exit 1; }; }
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1333    { (exit 1); exit 1; }; }
1334         pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337   srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_env_${ac_var}_value=\$${ac_var}
1348   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356   # Omit some internal or obsolete options to make the list less imposing.
1357   # This message is too long to be a string in the A/UX 3.1 sh.
1358   cat <<_ACEOF
1359 \`configure' configures this package to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369   -h, --help              display this help and exit
1370       --help=short        display options specific to this package
1371       --help=recursive    display the short help of all the included packages
1372   -V, --version           display version information and exit
1373   -q, --quiet, --silent   do not print \`checking...' messages
1374       --cache-file=FILE   cache test results in FILE [disabled]
1375   -C, --config-cache      alias for \`--cache-file=config.cache'
1376   -n, --no-create         do not create output files
1377       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380   --prefix=PREFIX         install architecture-independent files in PREFIX
1381                           [$ac_default_prefix]
1382   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                           [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393   --bindir=DIR           user executables [EPREFIX/bin]
1394   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1395   --libexecdir=DIR       program executables [EPREFIX/libexec]
1396   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1397   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1398   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1399   --libdir=DIR           object code libraries [EPREFIX/lib]
1400   --includedir=DIR       C header files [PREFIX/include]
1401   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1402   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1403   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1404   --infodir=DIR          info documentation [DATAROOTDIR/info]
1405   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1406   --mandir=DIR           man documentation [DATAROOTDIR/man]
1407   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1408   --htmldir=DIR          html documentation [DOCDIR]
1409   --dvidir=DIR           dvi documentation [DOCDIR]
1410   --pdfdir=DIR           pdf documentation [DOCDIR]
1411   --psdir=DIR            ps documentation [DOCDIR]
1412 _ACEOF
1413
1414   cat <<\_ACEOF
1415
1416 X features:
1417   --x-includes=DIR    X include files are in DIR
1418   --x-libraries=DIR   X library files are in DIR
1419
1420 System types:
1421   --build=BUILD     configure for building on BUILD [guessed]
1422   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427
1428   cat <<\_ACEOF
1429
1430 Optional Features:
1431   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433   --disable-nls           do not use Native Language Support
1434   --disable-rpath         do not hardcode runtime library paths
1435   --enable-gnome          enable build of bgnome-console GUI disabled
1436   --enable-bat  enable build of bat Qt4 GUI disabled
1437   --enable-bwx-console     enable build of wxWidgets console disabled
1438   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1439   --enable-smartalloc     enable smartalloc debugging support disabled
1440   --enable-static-tools   enable static tape tools disabled
1441   --enable-static-fd      enable static File daemon disabled
1442   --enable-static-sd      enable static Storage daemon disabled
1443   --enable-static-dir     enable static Director disabled
1444   --enable-static-cons    enable static Console disabled
1445   --enable-client-only    build client (File daemon) only disabled
1446   --enable-build-dird     enable building of dird (Director) enabled
1447   --enable-build-stored   enable building of stored (Storage daemon) enabled
1448  --disable-conio disable conio support enabled
1449
1450   --enable-ipv6             enable ipv6 support enabled
1451
1452   --disable-readline      disable readline support disable
1453
1454         --enable-batch-insert       enable the DB batch insert code disabled
1455   --disable-largefile     omit support for large files
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1461   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1462   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1463   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1464   --without-libintl-prefix     don't search for libintl in includedir and libdir
1465   --with-included-gettext use the GNU gettext library included here
1466  --with-qwt[=DIR]                 specify qwt library directory
1467  --with-readline[=DIR]         specify readline library directory
1468
1469   --with-python[=DIR]   Include Python support.  DIR is the Python base
1470                           install directory, default is to search through
1471                           a number of common places for the Python files.
1472   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1473   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1474   --with-working-dir=PATH        specify path of Bacula working directory
1475   --with-scriptdir=PATH    specify path of Bacula scripts directory
1476   --with-dump-email=EMAIL        dump email address
1477   --with-job-email=EMAIL         job output email address
1478   --with-smtp-host=HOST          SMTP mail host address
1479   --with-pid-dir=PATH            specify location of Bacula pid files
1480   --with-subsys-dir=PATH         specify location of Bacula subsys file
1481   --with-baseport=PORT           specify base port address for daemons
1482   --with-dir-password=PASSWORD   specify Director's password
1483   --with-fd-password=PASSWORD    specify Client's password
1484   --with-sd-password=PASSWORD    specify Storage daemon's password
1485   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1486   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1487   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1488   --with-db-name=DBNAME        specify database name (default bacula)
1489   --with-db-user=UNAME         specify database user (default bacula)
1490   --with-dir-user=USER           specify user for Director daemon
1491   --with-dir-group=GROUP                 specify group for Director daemon
1492   --with-sd-user=USER            specify user for Storage daemon
1493   --with-sd-group=GROUP          specify group for Storage daemon
1494   --with-fd-user=USER            specify user for File daemon
1495   --with-fd-group=GROUP          specify group for File daemon
1496   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1497   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1498                           base install directory, defaults to /usr/local/pgsql
1499
1500   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1501                           install directory, default is to search through
1502                           a number of common places for the MySQL files.
1503
1504   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1505                           install directory, default is to search through
1506                           a number of common places for the MySQL files.
1507
1508   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1509                           install directory, default is to search through
1510                           a number of common places for the SQLite3 files.
1511
1512   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1513                           install directory, default is to search through
1514                           a number of common places for the SQLite files.
1515   --with-x                use the X Window System
1516
1517 Some influential environment variables:
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523               you have headers in a nonstandard directory <include dir>
1524   CXX         C++ compiler command
1525   CXXFLAGS    C++ compiler flags
1526   CPP         C preprocessor
1527   WXCONFIG    wx-config command. On some systems, you must set it to
1528               wx-config-2.6 to use wxWidgets 2.6.
1529   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1530   XMKMF       Path to xmkmf, Makefile generator for X Window System
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540   # If there are subdirs, report their specific --help.
1541   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542     test -d "$ac_dir" || continue
1543     ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549   # A ".." for each directory in $ac_dir_suffix.
1550   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551   case $ac_top_builddir_sub in
1552   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554   esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562   .)  # We are building in place.
1563     ac_srcdir=.
1564     ac_top_srcdir=$ac_top_builddir_sub
1565     ac_abs_top_srcdir=$ac_pwd ;;
1566   [\\/]* | ?:[\\/]* )  # Absolute name.
1567     ac_srcdir=$srcdir$ac_dir_suffix;
1568     ac_top_srcdir=$srcdir
1569     ac_abs_top_srcdir=$srcdir ;;
1570   *) # Relative name.
1571     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572     ac_top_srcdir=$ac_top_build_prefix$srcdir
1573     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577     cd "$ac_dir" || { ac_status=$?; continue; }
1578     # Check for guested configure.
1579     if test -f "$ac_srcdir/configure.gnu"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582     elif test -f "$ac_srcdir/configure"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure" --help=recursive
1585     else
1586       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587     fi || ac_status=$?
1588     cd "$ac_pwd" || { ac_status=$?; break; }
1589   done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594   cat <<\_ACEOF
1595 configure
1596 generated by GNU Autoconf 2.60
1597
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603   exit
1604 fi
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1608
1609 It was created by $as_me, which was
1610 generated by GNU Autoconf 2.60.  Invocation command line was
1611
1612   $ $0 $@
1613
1614 _ACEOF
1615 exec 5>>config.log
1616 {
1617 cat <<_ASUNAME
1618 ## --------- ##
1619 ## Platform. ##
1620 ## --------- ##
1621
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1630
1631 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1632 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1635 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1636 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1637 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1638
1639 _ASUNAME
1640
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   echo "PATH: $as_dir"
1647 done
1648 IFS=$as_save_IFS
1649
1650 } >&5
1651
1652 cat >&5 <<_ACEOF
1653
1654
1655 ## ----------- ##
1656 ## Core tests. ##
1657 ## ----------- ##
1658
1659 _ACEOF
1660
1661
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1667 ac_configure_args=
1668 ac_configure_args0=
1669 ac_configure_args1=
1670 ac_must_keep_next=false
1671 for ac_pass in 1 2
1672 do
1673   for ac_arg
1674   do
1675     case $ac_arg in
1676     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678     | -silent | --silent | --silen | --sile | --sil)
1679       continue ;;
1680     *\'*)
1681       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1682     esac
1683     case $ac_pass in
1684     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685     2)
1686       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687       if test $ac_must_keep_next = true; then
1688         ac_must_keep_next=false # Got value, back to normal.
1689       else
1690         case $ac_arg in
1691           *=* | --config-cache | -C | -disable-* | --disable-* \
1692           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694           | -with-* | --with-* | -without-* | --without-* | --x)
1695             case "$ac_configure_args0 " in
1696               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697             esac
1698             ;;
1699           -* ) ac_must_keep_next=true ;;
1700         esac
1701       fi
1702       ac_configure_args="$ac_configure_args '$ac_arg'"
1703       ;;
1704     esac
1705   done
1706 done
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log.  We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716   # Save into config.log some information that might help in debugging.
1717   {
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1724 _ASBOX
1725     echo
1726     # The following way of writing the cache mishandles newlines in values,
1727 (
1728   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729     eval ac_val=\$$ac_var
1730     case $ac_val in #(
1731     *${as_nl}*)
1732       case $ac_var in #(
1733       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1735       esac
1736       case $ac_var in #(
1737       _ | IFS | as_nl) ;; #(
1738       *) $as_unset $ac_var ;;
1739       esac ;;
1740     esac
1741   done
1742   (set) 2>&1 |
1743     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744     *${as_nl}ac_space=\ *)
1745       sed -n \
1746         "s/'\''/'\''\\\\'\'''\''/g;
1747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1748       ;; #(
1749     *)
1750       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751       ;;
1752     esac |
1753     sort
1754 )
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1761 _ASBOX
1762     echo
1763     for ac_var in $ac_subst_vars
1764     do
1765       eval ac_val=\$$ac_var
1766       case $ac_val in
1767       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768       esac
1769       echo "$ac_var='\''$ac_val'\''"
1770     done | sort
1771     echo
1772
1773     if test -n "$ac_subst_files"; then
1774       cat <<\_ASBOX
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1778 _ASBOX
1779       echo
1780       for ac_var in $ac_subst_files
1781       do
1782         eval ac_val=\$$ac_var
1783         case $ac_val in
1784         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785         esac
1786         echo "$ac_var='\''$ac_val'\''"
1787       done | sort
1788       echo
1789     fi
1790
1791     if test -s confdefs.h; then
1792       cat <<\_ASBOX
1793 ## ----------- ##
1794 ## confdefs.h. ##
1795 ## ----------- ##
1796 _ASBOX
1797       echo
1798       cat confdefs.h
1799       echo
1800     fi
1801     test "$ac_signal" != 0 &&
1802       echo "$as_me: caught signal $ac_signal"
1803     echo "$as_me: exit $exit_status"
1804   } >&5
1805   rm -f core *.core core.conftest.* &&
1806     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1807     exit $exit_status
1808 ' 0
1809 for ac_signal in 1 2 13 15; do
1810   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 done
1812 ac_signal=0
1813
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1816
1817 # Predefined preprocessor variables.
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 _ACEOF
1842
1843
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847   set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1850 else
1851   set x "$ac_default_prefix/share/config.site" \
1852         "$ac_default_prefix/etc/config.site"
1853 fi
1854 shift
1855 for ac_site_file
1856 do
1857   if test -r "$ac_site_file"; then
1858     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860     sed 's/^/| /' "$ac_site_file" >&5
1861     . "$ac_site_file"
1862   fi
1863 done
1864
1865 if test -r "$cache_file"; then
1866   # Some versions of bash will fail to source /dev/null (special
1867   # files actually), so we avoid doing that.
1868   if test -f "$cache_file"; then
1869     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1871     case $cache_file in
1872       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873       *)                      . "./$cache_file";;
1874     esac
1875   fi
1876 else
1877   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1879   >$cache_file
1880 fi
1881
1882 # Check that the precious variables saved in the cache have kept the same
1883 # value.
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887   eval ac_new_set=\$ac_env_${ac_var}_set
1888   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889   eval ac_new_val=\$ac_env_${ac_var}_value
1890   case $ac_old_set,$ac_new_set in
1891     set,)
1892       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894       ac_cache_corrupted=: ;;
1895     ,set)
1896       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898       ac_cache_corrupted=: ;;
1899     ,);;
1900     *)
1901       if test "x$ac_old_val" != "x$ac_new_val"; then
1902         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1905 echo "$as_me:   former value:  $ac_old_val" >&2;}
1906         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1907 echo "$as_me:   current value: $ac_new_val" >&2;}
1908         ac_cache_corrupted=:
1909       fi;;
1910   esac
1911   # Pass precious variables to config.status.
1912   if test "$ac_new_set" = set; then
1913     case $ac_new_val in
1914     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915     *) ac_arg=$ac_var=$ac_new_val ;;
1916     esac
1917     case " $ac_configure_args " in
1918       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1919       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920     esac
1921   fi
1922 done
1923 if $ac_cache_corrupted; then
1924   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947 ac_ext=c
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952
1953
1954 BUILD_DIR=`pwd`
1955 cd ..
1956 TOP_DIR=`pwd`
1957 cd ${BUILD_DIR}
1958
1959
1960 ac_aux_dir=
1961 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1962   if test -f "$ac_dir/install-sh"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/install-sh -c"
1965     break
1966   elif test -f "$ac_dir/install.sh"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/install.sh -c"
1969     break
1970   elif test -f "$ac_dir/shtool"; then
1971     ac_aux_dir=$ac_dir
1972     ac_install_sh="$ac_aux_dir/shtool install -c"
1973     break
1974   fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1979    { (exit 1); exit 1; }; }
1980 fi
1981
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1989
1990
1991 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1992
1993
1994
1995
1996
1997 for ac_prog in true
1998 do
1999   # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   case $TRUEPRG in
2007   [\\/]* | ?:[\\/]*)
2008   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2009   ;;
2010   *)
2011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026   ;;
2027 esac
2028 fi
2029 TRUEPRG=$ac_cv_path_TRUEPRG
2030 if test -n "$TRUEPRG"; then
2031   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2032 echo "${ECHO_T}$TRUEPRG" >&6; }
2033 else
2034   { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036 fi
2037
2038
2039   test -n "$TRUEPRG" && break
2040 done
2041 test -n "$TRUEPRG" || TRUEPRG=":"
2042
2043 for ac_prog in false
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   case $FALSEPRG in
2053   [\\/]* | ?:[\\/]*)
2054   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2055   ;;
2056   *)
2057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072   ;;
2073 esac
2074 fi
2075 FALSEPRG=$ac_cv_path_FALSEPRG
2076 if test -n "$FALSEPRG"; then
2077   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2078 echo "${ECHO_T}$FALSEPRG" >&6; }
2079 else
2080   { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2082 fi
2083
2084
2085   test -n "$FALSEPRG" && break
2086 done
2087 test -n "$FALSEPRG" || FALSEPRG=":"
2088
2089
2090 #AC_CANONICAL_HOST
2091
2092 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2093 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2094 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2095 echo "configuring for bacula $VERSION ($DATE)"
2096
2097
2098
2099 ac_ext=c
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 if test -n "$ac_tool_prefix"; then
2105   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   if test -n "$CC"; then
2113   ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2122     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128 IFS=$as_save_IFS
2129
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134   { echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6; }
2136 else
2137   { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2139 fi
2140
2141
2142 fi
2143 if test -z "$ac_cv_prog_CC"; then
2144   ac_ct_CC=$CC
2145   # Extract the first word of "gcc", so it can be a program name with args.
2146 set dummy gcc; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test -n "$ac_ct_CC"; then
2153   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2162     ac_cv_prog_ac_ct_CC="gcc"
2163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168 IFS=$as_save_IFS
2169
2170 fi
2171 fi
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6; }
2176 else
2177   { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2179 fi
2180
2181   if test "x$ac_ct_CC" = x; then
2182     CC=""
2183   else
2184     case $cross_compiling:$ac_tool_warned in
2185 yes:)
2186 { echo "$as_me:$LINENO: 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." >&5
2189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet.  If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2192 ac_tool_warned=yes ;;
2193 esac
2194     CC=$ac_ct_CC
2195   fi
2196 else
2197   CC="$ac_cv_prog_CC"
2198 fi
2199
2200 if test -z "$CC"; then
2201           if test -n "$ac_tool_prefix"; then
2202     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2203 set dummy ${ac_tool_prefix}cc; ac_word=$2
2204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207   echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209   if test -n "$CC"; then
2210   ac_cv_prog_CC="$CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215   IFS=$as_save_IFS
2216   test -z "$as_dir" && as_dir=.
2217   for ac_exec_ext in '' $ac_executable_extensions; do
2218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2219     ac_cv_prog_CC="${ac_tool_prefix}cc"
2220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221     break 2
2222   fi
2223 done
2224 done
2225 IFS=$as_save_IFS
2226
2227 fi
2228 fi
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231   { echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6; }
2233 else
2234   { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 fi
2237
2238
2239   fi
2240 fi
2241 if test -z "$CC"; then
2242   # Extract the first word of "cc", so it can be a program name with args.
2243 set dummy cc; ac_word=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_prog_CC+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   if test -n "$CC"; then
2250   ac_cv_prog_CC="$CC" # Let the user override the test.
2251 else
2252   ac_prog_rejected=no
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258   for ac_exec_ext in '' $ac_executable_extensions; do
2259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2260     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2261        ac_prog_rejected=yes
2262        continue
2263      fi
2264     ac_cv_prog_CC="cc"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 if test $ac_prog_rejected = yes; then
2273   # We found a bogon in the path, so make sure we never use it.
2274   set dummy $ac_cv_prog_CC
2275   shift
2276   if test $# != 0; then
2277     # We chose a different compiler from the bogus one.
2278     # However, it has the same basename, so the bogon will be chosen
2279     # first if we set CC to just the basename; use the full file name.
2280     shift
2281     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2282   fi
2283 fi
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288   { echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6; }
2290 else
2291   { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2293 fi
2294
2295
2296 fi
2297 if test -z "$CC"; then
2298   if test -n "$ac_tool_prefix"; then
2299   for ac_prog in cl.exe
2300   do
2301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$CC"; then
2309   ac_cv_prog_CC="$CC" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320     break 2
2321   fi
2322 done
2323 done
2324 IFS=$as_save_IFS
2325
2326 fi
2327 fi
2328 CC=$ac_cv_prog_CC
2329 if test -n "$CC"; then
2330   { echo "$as_me:$LINENO: result: $CC" >&5
2331 echo "${ECHO_T}$CC" >&6; }
2332 else
2333   { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2335 fi
2336
2337
2338     test -n "$CC" && break
2339   done
2340 fi
2341 if test -z "$CC"; then
2342   ac_ct_CC=$CC
2343   for ac_prog in cl.exe
2344 do
2345   # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$ac_ct_CC"; then
2353   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2362     ac_cv_prog_ac_ct_CC="$ac_prog"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2373 if test -n "$ac_ct_CC"; then
2374   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2375 echo "${ECHO_T}$ac_ct_CC" >&6; }
2376 else
2377   { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381
2382   test -n "$ac_ct_CC" && break
2383 done
2384
2385   if test "x$ac_ct_CC" = x; then
2386     CC=""
2387   else
2388     case $cross_compiling:$ac_tool_warned in
2389 yes:)
2390 { echo "$as_me:$LINENO: 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." >&5
2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet.  If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396 ac_tool_warned=yes ;;
2397 esac
2398     CC=$ac_ct_CC
2399   fi
2400 fi
2401
2402 fi
2403
2404
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409    { (exit 1); exit 1; }; }
2410
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO: checking for C compiler version" >&5
2413 ac_compiler=`set X $ac_compile; echo $2`
2414 { (ac_try="$ac_compiler --version >&5"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420   (eval "$ac_compiler --version >&5") 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }
2424 { (ac_try="$ac_compiler -v >&5"
2425 case "(($ac_try" in
2426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427   *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430   (eval "$ac_compiler -v >&5") 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); }
2434 { (ac_try="$ac_compiler -V >&5"
2435 case "(($ac_try" in
2436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437   *) ac_try_echo=$ac_try;;
2438 esac
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440   (eval "$ac_compiler -V >&5") 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 ac_clean_files_save=$ac_clean_files
2461 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2462 # Try to create an executable without -o first, disregard a.out.
2463 # It will help us diagnose broken compilers, and finding out an intuition
2464 # of exeext.
2465 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2466 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2468 #
2469 # List of possible output files, starting from the most likely.
2470 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2471 # only as a last resort.  b.out is created by i960 compilers.
2472 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2473 #
2474 # The IRIX 6 linker writes into existing files which may not be
2475 # executable, retaining their permissions.  Remove them first so a
2476 # subsequent execution test works.
2477 ac_rmfiles=
2478 for ac_file in $ac_files
2479 do
2480   case $ac_file in
2481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2482     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2483   esac
2484 done
2485 rm -f $ac_rmfiles
2486
2487 if { (ac_try="$ac_link_default"
2488 case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_link_default") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; then
2497   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2498 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2499 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2500 # so that the user can short-circuit this test for compilers unknown to
2501 # Autoconf.
2502 for ac_file in $ac_files
2503 do
2504   test -f "$ac_file" || continue
2505   case $ac_file in
2506     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2507         ;;
2508     [ab].out )
2509         # We found the default executable, but exeext='' is most
2510         # certainly right.
2511         break;;
2512     *.* )
2513         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2514         then :; else
2515            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516         fi
2517         # We set ac_cv_exeext here because the later test for it is not
2518         # safe: cross compilers may not add the suffix if given an `-o'
2519         # argument, so we may need to know it at that point already.
2520         # Even if this section looks crufty: it has the advantage of
2521         # actually working.
2522         break;;
2523     * )
2524         break;;
2525   esac
2526 done
2527 test "$ac_cv_exeext" = no && ac_cv_exeext=
2528
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: C compiler cannot create executables
2536 See \`config.log' for more details." >&2;}
2537    { (exit 77); exit 77; }; }
2538 fi
2539
2540 ac_exeext=$ac_cv_exeext
2541 { echo "$as_me:$LINENO: result: $ac_file" >&5
2542 echo "${ECHO_T}$ac_file" >&6; }
2543
2544 # Check that the compiler produces executables we can run.  If not, either
2545 # the compiler is broken, or we cross compile.
2546 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2547 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2548 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2549 # If not cross compiling, check that we can run a simple program.
2550 if test "$cross_compiling" != yes; then
2551   if { ac_try='./$ac_file'
2552   { (case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557   (eval "$ac_try") 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; }; then
2561     cross_compiling=no
2562   else
2563     if test "$cross_compiling" = maybe; then
2564         cross_compiling=yes
2565     else
2566         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot run C compiled programs.
2570 If you meant to cross compile, use \`--host'.
2571 See \`config.log' for more details." >&2;}
2572    { (exit 1); exit 1; }; }
2573     fi
2574   fi
2575 fi
2576 { echo "$as_me:$LINENO: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6; }
2578
2579 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2580 ac_clean_files=$ac_clean_files_save
2581 # Check that the compiler produces executables we can run.  If not, either
2582 # the compiler is broken, or we cross compile.
2583 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2584 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2585 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2586 echo "${ECHO_T}$cross_compiling" >&6; }
2587
2588 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2589 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2590 if { (ac_try="$ac_link"
2591 case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596   (eval "$ac_link") 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; then
2600   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2603 # `rm'.
2604 for ac_file in conftest.exe conftest conftest.*; do
2605   test -f "$ac_file" || continue
2606   case $ac_file in
2607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2608     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2609           break;;
2610     * ) break;;
2611   esac
2612 done
2613 else
2614   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2617 See \`config.log' for more details." >&2;}
2618    { (exit 1); exit 1; }; }
2619 fi
2620
2621 rm -f conftest$ac_cv_exeext
2622 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2623 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2624
2625 rm -f conftest.$ac_ext
2626 EXEEXT=$ac_cv_exeext
2627 ac_exeext=$EXEEXT
2628 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2630 if test "${ac_cv_objext+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.o conftest.obj
2649 if { (ac_try="$ac_compile"
2650 case "(($ac_try" in
2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652   *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655   (eval "$ac_compile") 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; then
2659   for ac_file in conftest.o conftest.obj conftest.*; do
2660   test -f "$ac_file" || continue;
2661   case $ac_file in
2662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2663     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664        break;;
2665   esac
2666 done
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&2;}
2675    { (exit 1); exit 1; }; }
2676 fi
2677
2678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2679 fi
2680 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681 echo "${ECHO_T}$ac_cv_objext" >&6; }
2682 OBJEXT=$ac_cv_objext
2683 ac_objext=$OBJEXT
2684 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695
2696 int
2697 main ()
2698 {
2699 #ifndef __GNUC__
2700        choke me
2701 #endif
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_compile") 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722   { (case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_try") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; } &&
2731          { ac_try='test -s conftest.$ac_objext'
2732   { (case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_try") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   ac_compiler_gnu=yes
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746         ac_compiler_gnu=no
2747 fi
2748
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751
2752 fi
2753 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   ac_save_c_werror_flag=$ac_c_werror_flag
2764    ac_c_werror_flag=yes
2765    ac_cv_prog_cc_g=no
2766    CFLAGS="-g"
2767    cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773
2774 int
2775 main ()
2776 {
2777
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_compile") 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2797   { (case "(($ac_try" in
2798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799   *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802   (eval "$ac_try") 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; } &&
2806          { ac_try='test -s conftest.$ac_objext'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816   ac_cv_prog_cc_g=yes
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821         CFLAGS=""
2822       cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_compile") 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2852   { (case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857   (eval "$ac_try") 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; } &&
2861          { ac_try='test -s conftest.$ac_objext'
2862   { (case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867   (eval "$ac_try") 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; }; then
2871   :
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876         ac_c_werror_flag=$ac_save_c_werror_flag
2877          CFLAGS="-g"
2878          cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884
2885 int
2886 main ()
2887 {
2888
2889   ;
2890   return 0;
2891 }
2892 _ACEOF
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compile") 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2908   { (case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_try") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_try") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   ac_cv_prog_cc_g=yes
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932
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 fi
2940
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942    ac_c_werror_flag=$ac_save_c_werror_flag
2943 fi
2944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2946 if test "$ac_test_CFLAGS" = set; then
2947   CFLAGS=$ac_save_CFLAGS
2948 elif test $ac_cv_prog_cc_g = yes; then
2949   if test "$GCC" = yes; then
2950     CFLAGS="-g -O2"
2951   else
2952     CFLAGS="-g"
2953   fi
2954 else
2955   if test "$GCC" = yes; then
2956     CFLAGS="-O2"
2957   else
2958     CFLAGS=
2959   fi
2960 fi
2961 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2962 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_cc_c89+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   ac_cv_prog_cc_c89=no
2967 ac_save_CC=$CC
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <stdarg.h>
2975 #include <stdio.h>
2976 #include <sys/types.h>
2977 #include <sys/stat.h>
2978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2979 struct buf { int x; };
2980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2981 static char *e (p, i)
2982      char **p;
2983      int i;
2984 {
2985   return p[i];
2986 }
2987 static char *f (char * (*g) (char **, int), char **p, ...)
2988 {
2989   char *s;
2990   va_list v;
2991   va_start (v,p);
2992   s = g (p, va_arg (v,int));
2993   va_end (v);
2994   return s;
2995 }
2996
2997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2998    function prototypes and stuff, but not '\xHH' hex character constants.
2999    These don't provoke an error unfortunately, instead are silently treated
3000    as 'x'.  The following induces an error, until -std is added to get
3001    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3002    array size at least.  It's necessary to write '\x00'==0 to get something
3003    that's true only with -std.  */
3004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3005
3006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3007    inside strings and character constants.  */
3008 #define FOO(x) 'x'
3009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3010
3011 int test (int i, double x);
3012 struct s1 {int (*f) (int a);};
3013 struct s2 {int (*f) (double a);};
3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3015 int argc;
3016 char **argv;
3017 int
3018 main ()
3019 {
3020 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3026         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3027 do
3028   CC="$ac_save_CC $ac_arg"
3029   rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_compile") 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } &&
3043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3044   { (case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_try") 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; } &&
3053          { ac_try='test -s conftest.$ac_objext'
3054   { (case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_try") 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063   ac_cv_prog_cc_c89=$ac_arg
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068
3069 fi
3070
3071 rm -f core conftest.err conftest.$ac_objext
3072   test "x$ac_cv_prog_cc_c89" != "xno" && break
3073 done
3074 rm -f conftest.$ac_ext
3075 CC=$ac_save_CC
3076
3077 fi
3078 # AC_CACHE_VAL
3079 case "x$ac_cv_prog_cc_c89" in
3080   x)
3081     { echo "$as_me:$LINENO: result: none needed" >&5
3082 echo "${ECHO_T}none needed" >&6; } ;;
3083   xno)
3084     { echo "$as_me:$LINENO: result: unsupported" >&5
3085 echo "${ECHO_T}unsupported" >&6; } ;;
3086   *)
3087     CC="$CC $ac_cv_prog_cc_c89"
3088     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3089 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3090 esac
3091
3092
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098
3099 ac_ext=cpp
3100 ac_cpp='$CXXCPP $CPPFLAGS'
3101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3104 if test -z "$CXX"; then
3105   if test -n "$CCC"; then
3106     CXX=$CCC
3107   else
3108     if test -n "$ac_tool_prefix"; then
3109   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3110   do
3111     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_CXX+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   if test -n "$CXX"; then
3119   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126   for ac_exec_ext in '' $ac_executable_extensions; do
3127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3128     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 CXX=$ac_cv_prog_CXX
3139 if test -n "$CXX"; then
3140   { echo "$as_me:$LINENO: result: $CXX" >&5
3141 echo "${ECHO_T}$CXX" >&6; }
3142 else
3143   { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3145 fi
3146
3147
3148     test -n "$CXX" && break
3149   done
3150 fi
3151 if test -z "$CXX"; then
3152   ac_ct_CXX=$CXX
3153   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3154 do
3155   # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   if test -n "$ac_ct_CXX"; then
3163   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170   for ac_exec_ext in '' $ac_executable_extensions; do
3171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3172     ac_cv_prog_ac_ct_CXX="$ac_prog"
3173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3183 if test -n "$ac_ct_CXX"; then
3184   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3185 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3186 else
3187   { echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6; }
3189 fi
3190
3191
3192   test -n "$ac_ct_CXX" && break
3193 done
3194
3195   if test "x$ac_ct_CXX" = x; then
3196     CXX="g++"
3197   else
3198     case $cross_compiling:$ac_tool_warned in
3199 yes:)
3200 { echo "$as_me:$LINENO: 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." >&5
3203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3204 whose name does not start with the host triplet.  If you think this
3205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208     CXX=$ac_ct_CXX
3209   fi
3210 fi
3211
3212   fi
3213 fi
3214 # Provide some information about the compiler.
3215 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3216 ac_compiler=`set X $ac_compile; echo $2`
3217 { (ac_try="$ac_compiler --version >&5"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compiler --version >&5") 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }
3227 { (ac_try="$ac_compiler -v >&5"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_compiler -v >&5") 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }
3237 { (ac_try="$ac_compiler -V >&5"
3238 case "(($ac_try" in
3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240   *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243   (eval "$ac_compiler -V >&5") 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }
3247
3248 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3249 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3250 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263 #ifndef __GNUC__
3264        choke me
3265 #endif
3266
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278   (eval "$ac_compile") 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3286   { (case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_try") 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_try") 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   ac_compiler_gnu=yes
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310         ac_compiler_gnu=no
3311 fi
3312
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3315
3316 fi
3317 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3318 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3319 GXX=`test $ac_compiler_gnu = yes && echo yes`
3320 ac_test_CXXFLAGS=${CXXFLAGS+set}
3321 ac_save_CXXFLAGS=$CXXFLAGS
3322 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3323 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3324 if test "${ac_cv_prog_cxx_g+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3328    ac_cxx_werror_flag=yes
3329    ac_cv_prog_cxx_g=no
3330    CXXFLAGS="-g"
3331    cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_compile") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } &&
3360          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3361   { (case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_try") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; } &&
3370          { ac_try='test -s conftest.$ac_objext'
3371   { (case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_try") 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_prog_cxx_g=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385         CXXFLAGS=""
3386       cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392
3393 int
3394 main ()
3395 {
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compile") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } &&
3415          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3416   { (case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_try") 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest.$ac_objext'
3426   { (case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_try") 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   :
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3441          CXXFLAGS="-g"
3442          cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464   (eval "$ac_compile") 2>conftest.er1
3465   ac_status=$?
3466   grep -v '^ *+' conftest.er1 >conftest.err
3467   rm -f conftest.er1
3468   cat conftest.err >&5
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } &&
3471          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3472   { (case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_try") 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; } &&
3481          { ac_try='test -s conftest.$ac_objext'
3482   { (case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_try") 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); }; }; then
3491   ac_cv_prog_cxx_g=yes
3492 else
3493   echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496
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 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3507 fi
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3510 if test "$ac_test_CXXFLAGS" = set; then
3511   CXXFLAGS=$ac_save_CXXFLAGS
3512 elif test $ac_cv_prog_cxx_g = yes; then
3513   if test "$GXX" = yes; then
3514     CXXFLAGS="-g -O2"
3515   else
3516     CXXFLAGS="-g"
3517   fi
3518 else
3519   if test "$GXX" = yes; then
3520     CXXFLAGS="-O2"
3521   else
3522     CXXFLAGS=
3523   fi
3524 fi
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530
3531 if test "x$CC" != xcc; then
3532   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3533 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3534 else
3535   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3536 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3537 fi
3538 set dummy $CC; ac_cc=`echo $2 |
3539                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3540 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549
3550 int
3551 main ()
3552 {
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 # Make sure it works both with $CC and with simple cc.
3559 # We do the test twice because some compilers refuse to overwrite an
3560 # existing .o file with -o, though they will create one.
3561 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3562 rm -f conftest2.*
3563 if { (case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_try") 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } &&
3572    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_try") 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); };
3581 then
3582   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3583   if test "x$CC" != xcc; then
3584     # Test first that cc exists at all.
3585     if { ac_try='cc -c conftest.$ac_ext >&5'
3586   { (case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591   (eval "$ac_try") 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; }; then
3595       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3596       rm -f conftest2.*
3597       if { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_try") 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611   (eval "$ac_try") 2>&5
3612   ac_status=$?
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); };
3615       then
3616         # cc works too.
3617         :
3618       else
3619         # cc exists but doesn't like -o.
3620         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3621       fi
3622     fi
3623   fi
3624 else
3625   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3626 fi
3627 rm -f core conftest*
3628
3629 fi
3630 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3631   { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; }
3633 else
3634   { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3636
3637 cat >>confdefs.h <<\_ACEOF
3638 #define NO_MINUS_C_MINUS_O 1
3639 _ACEOF
3640
3641 fi
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3650 # On Suns, sometimes $CPP names a directory.
3651 if test -n "$CPP" && test -d "$CPP"; then
3652   CPP=
3653 fi
3654 if test -z "$CPP"; then
3655   if test "${ac_cv_prog_CPP+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658       # Double quotes because CPP needs to be expanded
3659     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3660     do
3661       ac_preproc_ok=false
3662 for ac_c_preproc_warn_flag in '' yes
3663 do
3664   # Use a header file that comes with gcc, so configuring glibc
3665   # with a fresh cross-compiler works.
3666   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3667   # <limits.h> exists even on freestanding compilers.
3668   # On the NeXT, cc -E runs the code through the compiler's parser,
3669   # not just through cpp. "Syntax error" is here to catch this case.
3670   cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h.  */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h.  */
3676 #ifdef __STDC__
3677 # include <limits.h>
3678 #else
3679 # include <assert.h>
3680 #endif
3681                      Syntax error
3682 _ACEOF
3683 if { (ac_try="$ac_cpp conftest.$ac_ext"
3684 case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3690   ac_status=$?
3691   grep -v '^ *+' conftest.er1 >conftest.err
3692   rm -f conftest.er1
3693   cat conftest.err >&5
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); } >/dev/null; then
3696   if test -s conftest.err; then
3697     ac_cpp_err=$ac_c_preproc_warn_flag
3698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3699   else
3700     ac_cpp_err=
3701   fi
3702 else
3703   ac_cpp_err=yes
3704 fi
3705 if test -z "$ac_cpp_err"; then
3706   :
3707 else
3708   echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711   # Broken: fails on valid input.
3712 continue
3713 fi
3714
3715 rm -f conftest.err conftest.$ac_ext
3716
3717   # OK, works on sane cases.  Now check whether nonexistent headers
3718   # can be detected and how.
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 #include <ac_nonexistent.h>
3726 _ACEOF
3727 if { (ac_try="$ac_cpp conftest.$ac_ext"
3728 case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } >/dev/null; then
3740   if test -s conftest.err; then
3741     ac_cpp_err=$ac_c_preproc_warn_flag
3742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3743   else
3744     ac_cpp_err=
3745   fi
3746 else
3747   ac_cpp_err=yes
3748 fi
3749 if test -z "$ac_cpp_err"; then
3750   # Broken: success on invalid input.
3751 continue
3752 else
3753   echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756   # Passes both tests.
3757 ac_preproc_ok=:
3758 break
3759 fi
3760
3761 rm -f conftest.err conftest.$ac_ext
3762
3763 done
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3767   break
3768 fi
3769
3770     done
3771     ac_cv_prog_CPP=$CPP
3772
3773 fi
3774   CPP=$ac_cv_prog_CPP
3775 else
3776   ac_cv_prog_CPP=$CPP
3777 fi
3778 { echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6; }
3780 ac_preproc_ok=false
3781 for ac_c_preproc_warn_flag in '' yes
3782 do
3783   # Use a header file that comes with gcc, so configuring glibc
3784   # with a fresh cross-compiler works.
3785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786   # <limits.h> exists even on freestanding compilers.
3787   # On the NeXT, cc -E runs the code through the compiler's parser,
3788   # not just through cpp. "Syntax error" is here to catch this case.
3789   cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h.  */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h.  */
3795 #ifdef __STDC__
3796 # include <limits.h>
3797 #else
3798 # include <assert.h>
3799 #endif
3800                      Syntax error
3801 _ACEOF
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } >/dev/null; then
3815   if test -s conftest.err; then
3816     ac_cpp_err=$ac_c_preproc_warn_flag
3817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3818   else
3819     ac_cpp_err=
3820   fi
3821 else
3822   ac_cpp_err=yes
3823 fi
3824 if test -z "$ac_cpp_err"; then
3825   :
3826 else
3827   echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830   # Broken: fails on valid input.
3831 continue
3832 fi
3833
3834 rm -f conftest.err conftest.$ac_ext
3835
3836   # OK, works on sane cases.  Now check whether nonexistent headers
3837   # can be detected and how.
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3847 case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853   ac_status=$?
3854   grep -v '^ *+' conftest.er1 >conftest.err
3855   rm -f conftest.er1
3856   cat conftest.err >&5
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); } >/dev/null; then
3859   if test -s conftest.err; then
3860     ac_cpp_err=$ac_c_preproc_warn_flag
3861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3862   else
3863     ac_cpp_err=
3864   fi
3865 else
3866   ac_cpp_err=yes
3867 fi
3868 if test -z "$ac_cpp_err"; then
3869   # Broken: success on invalid input.
3870 continue
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875   # Passes both tests.
3876 ac_preproc_ok=:
3877 break
3878 fi
3879
3880 rm -f conftest.err conftest.$ac_ext
3881
3882 done
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then
3886   :
3887 else
3888   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3891 See \`config.log' for more details." >&2;}
3892    { (exit 1); exit 1; }; }
3893 fi
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901
3902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3904 if test "${ac_cv_path_GREP+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   # Extract the first word of "grep ggrep" to use in msg output
3908 if test -z "$GREP"; then
3909 set dummy grep ggrep; ac_prog_name=$2
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   ac_path_GREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   for ac_prog in grep ggrep; do
3921   for ac_exec_ext in '' $ac_executable_extensions; do
3922     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3923     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3924     # Check for GNU ac_path_GREP and select it if it is found.
3925   # Check for GNU $ac_path_GREP
3926 case `"$ac_path_GREP" --version 2>&1` in
3927 *GNU*)
3928   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3929 *)
3930   ac_count=0
3931   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3932   while :
3933   do
3934     cat "conftest.in" "conftest.in" >"conftest.tmp"
3935     mv "conftest.tmp" "conftest.in"
3936     cp "conftest.in" "conftest.nl"
3937     echo 'GREP' >> "conftest.nl"
3938     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940     ac_count=`expr $ac_count + 1`
3941     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3942       # Best one so far, save it but keep looking for a better one
3943       ac_cv_path_GREP="$ac_path_GREP"
3944       ac_path_GREP_max=$ac_count
3945     fi
3946     # 10*(2^10) chars as input seems more than enough
3947     test $ac_count -gt 10 && break
3948   done
3949   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950 esac
3951
3952
3953     $ac_path_GREP_found && break 3
3954   done
3955 done
3956
3957 done
3958 IFS=$as_save_IFS
3959
3960
3961 fi
3962
3963 GREP="$ac_cv_path_GREP"
3964 if test -z "$GREP"; then
3965   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3967    { (exit 1); exit 1; }; }
3968 fi
3969
3970 else
3971   ac_cv_path_GREP=$GREP
3972 fi
3973
3974
3975 fi
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3978  GREP="$ac_cv_path_GREP"
3979
3980
3981 { echo "$as_me:$LINENO: checking for egrep" >&5
3982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987    then ac_cv_path_EGREP="$GREP -E"
3988    else
3989      # Extract the first word of "egrep" to use in msg output
3990 if test -z "$EGREP"; then
3991 set dummy egrep; ac_prog_name=$2
3992 if test "${ac_cv_path_EGREP+set}" = set; then
3993   echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995   ac_path_EGREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002   for ac_prog in egrep; do
4003   for ac_exec_ext in '' $ac_executable_extensions; do
4004     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4006     # Check for GNU ac_path_EGREP and select it if it is found.
4007   # Check for GNU $ac_path_EGREP
4008 case `"$ac_path_EGREP" --version 2>&1` in
4009 *GNU*)
4010   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4011 *)
4012   ac_count=0
4013   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4014   while :
4015   do
4016     cat "conftest.in" "conftest.in" >"conftest.tmp"
4017     mv "conftest.tmp" "conftest.in"
4018     cp "conftest.in" "conftest.nl"
4019     echo 'EGREP' >> "conftest.nl"
4020     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022     ac_count=`expr $ac_count + 1`
4023     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024       # Best one so far, save it but keep looking for a better one
4025       ac_cv_path_EGREP="$ac_path_EGREP"
4026       ac_path_EGREP_max=$ac_count
4027     fi
4028     # 10*(2^10) chars as input seems more than enough
4029     test $ac_count -gt 10 && break
4030   done
4031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 esac
4033
4034
4035     $ac_path_EGREP_found && break 3
4036   done
4037 done
4038
4039 done
4040 IFS=$as_save_IFS
4041
4042
4043 fi
4044
4045 EGREP="$ac_cv_path_EGREP"
4046 if test -z "$EGREP"; then
4047   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4049    { (exit 1); exit 1; }; }
4050 fi
4051
4052 else
4053   ac_cv_path_EGREP=$EGREP
4054 fi
4055
4056
4057    fi
4058 fi
4059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4061  EGREP="$ac_cv_path_EGREP"
4062
4063
4064 if test $ac_cv_c_compiler_gnu = yes; then
4065     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4066 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070     ac_pattern="Autoconf.*'x'"
4071   cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 #include <sgtty.h>
4078 Autoconf TIOCGETP
4079 _ACEOF
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4082   ac_cv_prog_gcc_traditional=yes
4083 else
4084   ac_cv_prog_gcc_traditional=no
4085 fi
4086 rm -f conftest*
4087
4088
4089   if test $ac_cv_prog_gcc_traditional = no; then
4090     cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 #include <termio.h>
4097 Autoconf TCGETA
4098 _ACEOF
4099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4100   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4101   ac_cv_prog_gcc_traditional=yes
4102 fi
4103 rm -f conftest*
4104
4105   fi
4106 fi
4107 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4108 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4109   if test $ac_cv_prog_gcc_traditional = yes; then
4110     CC="$CC -traditional"
4111   fi
4112 fi
4113
4114 BASECC=`basename $CC`
4115 have_gcc=no
4116 if test "x$BASECC" = xgcc; then
4117    cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_GCC 1
4119 _ACEOF
4120
4121    have_gcc=yes
4122 fi
4123 # Extract the first word of "$CXX", so it can be a program name with args.
4124 set dummy $CXX; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_CXX+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   case $CXX in
4131   [\\/]* | ?:[\\/]*)
4132   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4133   ;;
4134   *)
4135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140   for ac_exec_ext in '' $ac_executable_extensions; do
4141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4142     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4151   ;;
4152 esac
4153 fi
4154 CXX=$ac_cv_path_CXX
4155 if test -n "$CXX"; then
4156   { echo "$as_me:$LINENO: result: $CXX" >&5
4157 echo "${ECHO_T}$CXX" >&6; }
4158 else
4159   { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4161 fi
4162
4163
4164 if test ! -e $CXX; then
4165    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4166 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4167    { (exit 1); exit 1; }; }
4168 fi
4169
4170 # Find a good install program.  We prefer a C program (faster),
4171 # so one script is as good as another.  But avoid the broken or
4172 # incompatible versions:
4173 # SysV /etc/install, /usr/sbin/install
4174 # SunOS /usr/etc/install
4175 # IRIX /sbin/install
4176 # AIX /bin/install
4177 # AmigaOS /C/install, which installs bootblocks on floppy discs
4178 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4179 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4180 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4181 # OS/2's system install, which has a completely different semantic
4182 # ./install, which can be erroneously created by make from ./install.sh.
4183 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4184 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4185 if test -z "$INSTALL"; then
4186 if test "${ac_cv_path_install+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194   # Account for people who put trailing slashes in PATH elements.
4195 case $as_dir/ in
4196   ./ | .// | /cC/* | \
4197   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4198   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4199   /usr/ucb/* ) ;;
4200   *)
4201     # OSF1 and SCO ODT 3.0 have their own names for install.
4202     # Don't use installbsd from OSF since it installs stuff as root
4203     # by default.
4204     for ac_prog in ginstall scoinst install; do
4205       for ac_exec_ext in '' $ac_executable_extensions; do
4206         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4207           if test $ac_prog = install &&
4208             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4209             # AIX install.  It has an incompatible calling convention.
4210             :
4211           elif test $ac_prog = install &&
4212             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4213             # program-specific install script used by HP pwplus--don't use.
4214             :
4215           else
4216             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4217             break 3
4218           fi
4219         fi
4220       done
4221     done
4222     ;;
4223 esac
4224 done
4225 IFS=$as_save_IFS
4226
4227
4228 fi
4229   if test "${ac_cv_path_install+set}" = set; then
4230     INSTALL=$ac_cv_path_install
4231   else
4232     # As a last resort, use the slow shell script.  Don't cache a
4233     # value for INSTALL within a source directory, because that will
4234     # break other packages using the cache if that directory is
4235     # removed, or if the value is a relative name.
4236     INSTALL=$ac_install_sh
4237   fi
4238 fi
4239 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4240 echo "${ECHO_T}$INSTALL" >&6; }
4241
4242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4243 # It thinks the first close brace ends the variable substitution.
4244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4245
4246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4247
4248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4249
4250 if test -n "$ac_tool_prefix"; then
4251   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_RANLIB+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   if test -n "$RANLIB"; then
4259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266   for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 RANLIB=$ac_cv_prog_RANLIB
4279 if test -n "$RANLIB"; then
4280   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4281 echo "${ECHO_T}$RANLIB" >&6; }
4282 else
4283   { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285 fi
4286
4287
4288 fi
4289 if test -z "$ac_cv_prog_RANLIB"; then
4290   ac_ct_RANLIB=$RANLIB
4291   # Extract the first word of "ranlib", so it can be a program name with args.
4292 set dummy ranlib; ac_word=$2
4293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   if test -n "$ac_ct_RANLIB"; then
4299   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304   IFS=$as_save_IFS
4305   test -z "$as_dir" && as_dir=.
4306   for ac_exec_ext in '' $ac_executable_extensions; do
4307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4308     ac_cv_prog_ac_ct_RANLIB="ranlib"
4309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310     break 2
4311   fi
4312 done
4313 done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4319 if test -n "$ac_ct_RANLIB"; then
4320   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4321 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4322 else
4323   { echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6; }
4325 fi
4326
4327   if test "x$ac_ct_RANLIB" = x; then
4328     RANLIB=":"
4329   else
4330     case $cross_compiling:$ac_tool_warned in
4331 yes:)
4332 { echo "$as_me:$LINENO: 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." >&5
4335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4336 whose name does not start with the host triplet.  If you think this
4337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340     RANLIB=$ac_ct_RANLIB
4341   fi
4342 else
4343   RANLIB="$ac_cv_prog_RANLIB"
4344 fi
4345
4346 # Extract the first word of "mv", so it can be a program name with args.
4347 set dummy mv; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_MV+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   case $MV in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4374   ;;
4375 esac
4376 fi
4377 MV=$ac_cv_path_MV
4378 if test -n "$MV"; then
4379   { echo "$as_me:$LINENO: result: $MV" >&5
4380 echo "${ECHO_T}$MV" >&6; }
4381 else
4382   { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384 fi
4385
4386
4387 # Extract the first word of "rm", so it can be a program name with args.
4388 set dummy rm; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_RM+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   case $RM in
4395   [\\/]* | ?:[\\/]*)
4396   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4397   ;;
4398   *)
4399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4415   ;;
4416 esac
4417 fi
4418 RM=$ac_cv_path_RM
4419 if test -n "$RM"; then
4420   { echo "$as_me:$LINENO: result: $RM" >&5
4421 echo "${ECHO_T}$RM" >&6; }
4422 else
4423   { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428 # Extract the first word of "cp", so it can be a program name with args.
4429 set dummy cp; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_CP+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   case $CP in
4436   [\\/]* | ?:[\\/]*)
4437   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4438   ;;
4439   *)
4440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4456   ;;
4457 esac
4458 fi
4459 CP=$ac_cv_path_CP
4460 if test -n "$CP"; then
4461   { echo "$as_me:$LINENO: result: $CP" >&5
4462 echo "${ECHO_T}$CP" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469 # Extract the first word of "sed", so it can be a program name with args.
4470 set dummy sed; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_SED+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $SED in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4497   ;;
4498 esac
4499 fi
4500 SED=$ac_cv_path_SED
4501 if test -n "$SED"; then
4502   { echo "$as_me:$LINENO: result: $SED" >&5
4503 echo "${ECHO_T}$SED" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 fi
4508
4509
4510 # Extract the first word of "echo", so it can be a program name with args.
4511 set dummy echo; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_ECHO+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $ECHO in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4529     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4538   ;;
4539 esac
4540 fi
4541 ECHO=$ac_cv_path_ECHO
4542 if test -n "$ECHO"; then
4543   { echo "$as_me:$LINENO: result: $ECHO" >&5
4544 echo "${ECHO_T}$ECHO" >&6; }
4545 else
4546   { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4548 fi
4549
4550
4551 # Extract the first word of "cmp", so it can be a program name with args.
4552 set dummy cmp; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_CMP+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $CMP in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4579   ;;
4580 esac
4581 fi
4582 CMP=$ac_cv_path_CMP
4583 if test -n "$CMP"; then
4584   { echo "$as_me:$LINENO: result: $CMP" >&5
4585 echo "${ECHO_T}$CMP" >&6; }
4586 else
4587   { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4589 fi
4590
4591
4592 # Extract the first word of "tbl", so it can be a program name with args.
4593 set dummy tbl; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_TBL+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   case $TBL in
4600   [\\/]* | ?:[\\/]*)
4601   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4602   ;;
4603   *)
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4620   ;;
4621 esac
4622 fi
4623 TBL=$ac_cv_path_TBL
4624 if test -n "$TBL"; then
4625   { echo "$as_me:$LINENO: result: $TBL" >&5
4626 echo "${ECHO_T}$TBL" >&6; }
4627 else
4628   { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4630 fi
4631
4632
4633 # Extract the first word of "ar", so it can be a program name with args.
4634 set dummy ar; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_AR+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   case $AR in
4641   [\\/]* | ?:[\\/]*)
4642   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4643   ;;
4644   *)
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650   for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4661   ;;
4662 esac
4663 fi
4664 AR=$ac_cv_path_AR
4665 if test -n "$AR"; then
4666   { echo "$as_me:$LINENO: result: $AR" >&5
4667 echo "${ECHO_T}$AR" >&6; }
4668 else
4669   { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4671 fi
4672
4673
4674 # Extract the first word of "openssl", so it can be a program name with args.
4675 set dummy openssl; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_OPENSSL+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   case $OPENSSL in
4682   [\\/]* | ?:[\\/]*)
4683   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4684   ;;
4685   *)
4686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4702   ;;
4703 esac
4704 fi
4705 OPENSSL=$ac_cv_path_OPENSSL
4706 if test -n "$OPENSSL"; then
4707   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4708 echo "${ECHO_T}$OPENSSL" >&6; }
4709 else
4710   { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4712 fi
4713
4714
4715 # Extract the first word of "mtx", so it can be a program name with args.
4716 set dummy mtx; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_MTX+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   case $MTX in
4723   [\\/]* | ?:[\\/]*)
4724   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4725   ;;
4726   *)
4727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4743   ;;
4744 esac
4745 fi
4746 MTX=$ac_cv_path_MTX
4747 if test -n "$MTX"; then
4748   { echo "$as_me:$LINENO: result: $MTX" >&5
4749 echo "${ECHO_T}$MTX" >&6; }
4750 else
4751   { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4753 fi
4754
4755
4756 # Extract the first word of "dd", so it can be a program name with args.
4757 set dummy dd; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_DD+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   case $DD in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4784   ;;
4785 esac
4786 fi
4787 DD=$ac_cv_path_DD
4788 if test -n "$DD"; then
4789   { echo "$as_me:$LINENO: result: $DD" >&5
4790 echo "${ECHO_T}$DD" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797 # Extract the first word of "mkisofs", so it can be a program name with args.
4798 set dummy mkisofs; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_MKISOFS+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   case $MKISOFS in
4805   [\\/]* | ?:[\\/]*)
4806   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4807   ;;
4808   *)
4809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4825   ;;
4826 esac
4827 fi
4828 MKISOFS=$ac_cv_path_MKISOFS
4829 if test -n "$MKISOFS"; then
4830   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4831 echo "${ECHO_T}$MKISOFS" >&6; }
4832 else
4833   { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837
4838 # Extract the first word of "python", so it can be a program name with args.
4839 set dummy python; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_PYTHON+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   case $PYTHON in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4866   ;;
4867 esac
4868 fi
4869 PYTHON=$ac_cv_path_PYTHON
4870 if test -n "$PYTHON"; then
4871   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4872 echo "${ECHO_T}$PYTHON" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879 # Extract the first word of "growisofs", so it can be a program name with args.
4880 set dummy growisofs; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   case $GROWISOFS in
4887   [\\/]* | ?:[\\/]*)
4888   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4889   ;;
4890   *)
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4907   ;;
4908 esac
4909 fi
4910 GROWISOFS=$ac_cv_path_GROWISOFS
4911 if test -n "$GROWISOFS"; then
4912   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4913 echo "${ECHO_T}$GROWISOFS" >&6; }
4914 else
4915   { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 fi
4918
4919
4920 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4921 set dummy dvd+rw-mediainfo; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   case $DVDRWMEDIAINFO in
4928   [\\/]* | ?:[\\/]*)
4929   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4930   ;;
4931   *)
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4948   ;;
4949 esac
4950 fi
4951 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4952 if test -n "$DVDRWMEDIAINFO"; then
4953   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4954 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4955 else
4956   { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4958 fi
4959
4960
4961 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4962 set dummy dvd+rw-format; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   case $DVDRWFORMAT in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978   for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4989   ;;
4990 esac
4991 fi
4992 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4993 if test -n "$DVDRWFORMAT"; then
4994   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4995 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 # Extract the first word of "pkg-config", so it can be a program name with args.
5003 set dummy pkg-config; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   case $PKGCONFIG in
5010   [\\/]* | ?:[\\/]*)
5011   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5012   ;;
5013   *)
5014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5030   ;;
5031 esac
5032 fi
5033 PKGCONFIG=$ac_cv_path_PKGCONFIG
5034 if test -n "$PKGCONFIG"; then
5035   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5036 echo "${ECHO_T}$PKGCONFIG" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042
5043
5044 if test "x$WXCONFIG" = x; then
5045   WXCONFIG=wx-config
5046 fi
5047 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5048 set dummy ${WXCONFIG}; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   case $WXCONFIG in
5055   [\\/]* | ?:[\\/]*)
5056   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5057   ;;
5058   *)
5059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5075   ;;
5076 esac
5077 fi
5078 WXCONFIG=$ac_cv_path_WXCONFIG
5079 if test -n "$WXCONFIG"; then
5080   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5081 echo "${ECHO_T}$WXCONFIG" >&6; }
5082 else
5083   { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5085 fi
5086
5087
5088
5089 # Extract the first word of "cdrecord", so it can be a program name with args.
5090 set dummy cdrecord; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_CDRECORD+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   case $CDRECORD in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5117   ;;
5118 esac
5119 fi
5120 CDRECORD=$ac_cv_path_CDRECORD
5121 if test -n "$CDRECORD"; then
5122   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5123 echo "${ECHO_T}$CDRECORD" >&6; }
5124 else
5125   { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 fi
5128
5129
5130 # Extract the first word of "pidof", so it can be a program name with args.
5131 set dummy pidof; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_PIDOF+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   case $PIDOF in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5149     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5158   ;;
5159 esac
5160 fi
5161 PIDOF=$ac_cv_path_PIDOF
5162 if test -n "$PIDOF"; then
5163   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5164 echo "${ECHO_T}$PIDOF" >&6; }
5165 else
5166   { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170
5171 for ac_prog in gawk mawk nawk awk
5172 do
5173   # Extract the first word of "$ac_prog", so it can be a program name with args.
5174 set dummy $ac_prog; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_prog_AWK+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   if test -n "$AWK"; then
5181   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188   for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_prog_AWK="$ac_prog"
5191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198 fi
5199 fi
5200 AWK=$ac_cv_prog_AWK
5201 if test -n "$AWK"; then
5202   { echo "$as_me:$LINENO: result: $AWK" >&5
5203 echo "${ECHO_T}$AWK" >&6; }
5204 else
5205   { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5207 fi
5208
5209
5210   test -n "$AWK" && break
5211 done
5212
5213 # Some AWK programs fail, so test it and warn the user
5214 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5215       { if ((prog == $2) || (("(" prog ")") == $2) ||
5216            (("" prog "") == $2) ||
5217            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5218 else
5219   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5220    The regex engine of $AWK is too broken to be used you
5221    might want to install GNU AWK.
5222    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5223 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5224    The regex engine of $AWK is too broken to be used you
5225    might want to install GNU AWK.
5226    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5227    { (exit 1); exit 1; }; }
5228 fi
5229 THE_AWK=$AWK
5230 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5231 set dummy $THE_AWK; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_path_AWK+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   case $AWK in
5238   [\\/]* | ?:[\\/]*)
5239   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5240   ;;
5241   *)
5242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247   for ac_exec_ext in '' $ac_executable_extensions; do
5248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5249     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5258   ;;
5259 esac
5260 fi
5261 AWK=$ac_cv_path_AWK
5262 if test -n "$AWK"; then
5263   { echo "$as_me:$LINENO: result: $AWK" >&5
5264 echo "${ECHO_T}$AWK" >&6; }
5265 else
5266   { echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6; }
5268 fi
5269
5270
5271
5272 test -n "$ARFLAG" || ARFLAGS="cr"
5273
5274
5275 MAKE_SHELL=/bin/sh
5276
5277
5278
5279
5280
5281
5282
5283 # Make sure we can run config.sub.
5284 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5285   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5286 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5287    { (exit 1); exit 1; }; }
5288
5289 { echo "$as_me:$LINENO: checking build system type" >&5
5290 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5291 if test "${ac_cv_build+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   ac_build_alias=$build_alias
5295 test "x$ac_build_alias" = x &&
5296   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5297 test "x$ac_build_alias" = x &&
5298   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5299 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5300    { (exit 1); exit 1; }; }
5301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5302   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5304    { (exit 1); exit 1; }; }
5305
5306 fi
5307 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5308 echo "${ECHO_T}$ac_cv_build" >&6; }
5309 case $ac_cv_build in
5310 *-*-*) ;;
5311 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5312 echo "$as_me: error: invalid value of canonical build" >&2;}
5313    { (exit 1); exit 1; }; };;
5314 esac
5315 build=$ac_cv_build
5316 ac_save_IFS=$IFS; IFS='-'
5317 set x $ac_cv_build
5318 shift
5319 build_cpu=$1
5320 build_vendor=$2
5321 shift; shift
5322 # Remember, the first character of IFS is used to create $*,
5323 # except with old shells:
5324 build_os=$*
5325 IFS=$ac_save_IFS
5326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5327
5328
5329
5330 { echo "$as_me:$LINENO: checking host system type" >&5
5331 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5332 if test "${ac_cv_host+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   if test "x$host_alias" = x; then
5336   ac_cv_host=$ac_cv_build
5337 else
5338   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5339     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5340 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5341    { (exit 1); exit 1; }; }
5342 fi
5343
5344 fi
5345 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5346 echo "${ECHO_T}$ac_cv_host" >&6; }
5347 case $ac_cv_host in
5348 *-*-*) ;;
5349 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5350 echo "$as_me: error: invalid value of canonical host" >&2;}
5351    { (exit 1); exit 1; }; };;
5352 esac
5353 host=$ac_cv_host
5354 ac_save_IFS=$IFS; IFS='-'
5355 set x $ac_cv_host
5356 shift
5357 host_cpu=$1
5358 host_vendor=$2
5359 shift; shift
5360 # Remember, the first character of IFS is used to create $*,
5361 # except with old shells:
5362 host_os=$*
5363 IFS=$ac_save_IFS
5364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5365
5366
5367 case $host_os in
5368   *cygwin* ) CYGWIN=yes;;
5369          * ) CYGWIN=no;;
5370 esac
5371
5372 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5373 then
5374
5375
5376 if $TRUEPRG; then
5377   HAVE_SUN_OS_TRUE=
5378   HAVE_SUN_OS_FALSE='#'
5379 else
5380   HAVE_SUN_OS_TRUE='#'
5381   HAVE_SUN_OS_FALSE=
5382 fi
5383         cat >>confdefs.h <<\_ACEOF
5384 #define HAVE_SUN_OS 1
5385 _ACEOF
5386
5387 else
5388
5389
5390 if $FALSEPRG; then
5391   HAVE_SUN_OS_TRUE=
5392   HAVE_SUN_OS_FALSE='#'
5393 else
5394   HAVE_SUN_OS_TRUE='#'
5395   HAVE_SUN_OS_FALSE=
5396 fi
5397 fi
5398
5399 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5400 then
5401
5402
5403 if $TRUEPRG; then
5404   HAVE_OSF1_OS_TRUE=
5405   HAVE_OSF1_OS_FALSE='#'
5406 else
5407   HAVE_OSF1_OS_TRUE='#'
5408   HAVE_OSF1_OS_FALSE=
5409 fi
5410         cat >>confdefs.h <<\_ACEOF
5411 #define HAVE_OSF1_OS 1
5412 _ACEOF
5413
5414 else
5415
5416
5417 if $FALSEPRG; then
5418   HAVE_OSF1_OS_TRUE=
5419   HAVE_OSF1_OS_FALSE='#'
5420 else
5421   HAVE_OSF1_OS_TRUE='#'
5422   HAVE_OSF1_OS_FALSE=
5423 fi
5424 fi
5425
5426 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5427 then
5428
5429
5430 if $TRUEPRG; then
5431   HAVE_AIX_OS_TRUE=
5432   HAVE_AIX_OS_FALSE='#'
5433 else
5434   HAVE_AIX_OS_TRUE='#'
5435   HAVE_AIX_OS_FALSE=
5436 fi
5437         cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_AIX_OS 1
5439 _ACEOF
5440
5441 else
5442
5443
5444 if $FALSEPRG; then
5445   HAVE_AIX_OS_TRUE=
5446   HAVE_AIX_OS_FALSE='#'
5447 else
5448   HAVE_AIX_OS_TRUE='#'
5449   HAVE_AIX_OS_FALSE=
5450 fi
5451 fi
5452
5453 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5454 then
5455
5456
5457 if $TRUEPRG; then
5458   HAVE_HPUX_OS_TRUE=
5459   HAVE_HPUX_OS_FALSE='#'
5460 else
5461   HAVE_HPUX_OS_TRUE='#'
5462   HAVE_HPUX_OS_FALSE=
5463 fi
5464         cat >>confdefs.h <<\_ACEOF
5465 #define HAVE_HPUX_OS 1
5466 _ACEOF
5467
5468 else
5469
5470
5471 if $FALSEPRG; then
5472   HAVE_HPUX_OS_TRUE=
5473   HAVE_HPUX_OS_FALSE='#'
5474 else
5475   HAVE_HPUX_OS_TRUE='#'
5476   HAVE_HPUX_OS_FALSE=
5477 fi
5478 fi
5479
5480 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5481 then
5482
5483
5484 if $TRUEPRG; then
5485   HAVE_LINUX_OS_TRUE=
5486   HAVE_LINUX_OS_FALSE='#'
5487 else
5488   HAVE_LINUX_OS_TRUE='#'
5489   HAVE_LINUX_OS_FALSE=
5490 fi
5491         cat >>confdefs.h <<\_ACEOF
5492 #define HAVE_LINUX_OS 1
5493 _ACEOF
5494
5495 else
5496
5497
5498 if $FALSEPRG; then
5499   HAVE_LINUX_OS_TRUE=
5500   HAVE_LINUX_OS_FALSE='#'
5501 else
5502   HAVE_LINUX_OS_TRUE='#'
5503   HAVE_LINUX_OS_FALSE=
5504 fi
5505 fi
5506
5507 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5508 then
5509
5510
5511 if $TRUEPRG; then
5512   HAVE_FREEBSD_OS_TRUE=
5513   HAVE_FREEBSD_OS_FALSE='#'
5514 else
5515   HAVE_FREEBSD_OS_TRUE='#'
5516   HAVE_FREEBSD_OS_FALSE=
5517 fi
5518         cat >>confdefs.h <<\_ACEOF
5519 #define HAVE_FREEBSD_OS 1
5520 _ACEOF
5521
5522 else
5523
5524
5525 if $FALSEPRG; then
5526   HAVE_FREEBSD_OS_TRUE=
5527   HAVE_FREEBSD_OS_FALSE='#'
5528 else
5529   HAVE_FREEBSD_OS_TRUE='#'
5530   HAVE_FREEBSD_OS_FALSE=
5531 fi
5532 fi
5533
5534 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5535 then
5536
5537
5538 if $TRUEPRG; then
5539   HAVE_NETBSD_OS_TRUE=
5540   HAVE_NETBSD_OS_FALSE='#'
5541 else
5542   HAVE_NETBSD_OS_TRUE='#'
5543   HAVE_NETBSD_OS_FALSE=
5544 fi
5545         cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_NETBSD_OS 1
5547 _ACEOF
5548
5549 else
5550
5551
5552 if $FALSEPRG; then
5553   HAVE_NETBSD_OS_TRUE=
5554   HAVE_NETBSD_OS_FALSE='#'
5555 else
5556   HAVE_NETBSD_OS_TRUE='#'
5557   HAVE_NETBSD_OS_FALSE=
5558 fi
5559 fi
5560
5561 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5562 then
5563
5564
5565 if $TRUEPRG; then
5566   HAVE_OPENBSD_OS_TRUE=
5567   HAVE_OPENBSD_OS_FALSE='#'
5568 else
5569   HAVE_OPENBSD_OS_TRUE='#'
5570   HAVE_OPENBSD_OS_FALSE=
5571 fi
5572         cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_OPENBSD_OS 1
5574 _ACEOF
5575
5576 else
5577
5578
5579 if $FALSEPRG; then
5580   HAVE_OPENBSD_OS_TRUE=
5581   HAVE_OPENBSD_OS_FALSE='#'
5582 else
5583   HAVE_OPENBSD_OS_TRUE='#'
5584   HAVE_OPENBSD_OS_FALSE=
5585 fi
5586 fi
5587
5588 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5589 then
5590
5591
5592 if $TRUEPRG; then
5593   HAVE_BSDI_OS_TRUE=
5594   HAVE_BSDI_OS_FALSE='#'
5595 else
5596   HAVE_BSDI_OS_TRUE='#'
5597   HAVE_BSDI_OS_FALSE=
5598 fi
5599         cat >>confdefs.h <<\_ACEOF
5600 #define HAVE_BSDI_OS 1
5601 _ACEOF
5602
5603 else
5604
5605
5606 if $FALSEPRG; then
5607   HAVE_BSDI_OS_TRUE=
5608   HAVE_BSDI_OS_FALSE='#'
5609 else
5610   HAVE_BSDI_OS_TRUE='#'
5611   HAVE_BSDI_OS_FALSE=
5612 fi
5613 fi
5614
5615 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5616 then
5617
5618
5619 if $TRUEPRG; then
5620   HAVE_SGI_OS_TRUE=
5621   HAVE_SGI_OS_FALSE='#'
5622 else
5623   HAVE_SGI_OS_TRUE='#'
5624   HAVE_SGI_OS_FALSE=
5625 fi
5626         cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_SGI_OS 1
5628 _ACEOF
5629
5630 else
5631
5632
5633 if $FALSEPRG; then
5634   HAVE_SGI_OS_TRUE=
5635   HAVE_SGI_OS_FALSE='#'
5636 else
5637   HAVE_SGI_OS_TRUE='#'
5638   HAVE_SGI_OS_FALSE=
5639 fi
5640 fi
5641
5642 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5643 then
5644
5645
5646 if $TRUEPRG; then
5647   HAVE_IRIX_OS_TRUE=
5648   HAVE_IRIX_OS_FALSE='#'
5649 else
5650   HAVE_IRIX_OS_TRUE='#'
5651   HAVE_IRIX_OS_FALSE=
5652 fi
5653         cat >>confdefs.h <<\_ACEOF
5654 #define HAVE_IRIX_OS 1
5655 _ACEOF
5656
5657 else
5658
5659
5660 if $FALSEPRG; then
5661   HAVE_IRIX_OS_TRUE=
5662   HAVE_IRIX_OS_FALSE='#'
5663 else
5664   HAVE_IRIX_OS_TRUE='#'
5665   HAVE_IRIX_OS_FALSE=
5666 fi
5667 fi
5668
5669 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5670 then
5671
5672
5673 if $TRUEPRG; then
5674   HAVE_DARWIN_OS_TRUE=
5675   HAVE_DARWIN_OS_FALSE='#'
5676 else
5677   HAVE_DARWIN_OS_TRUE='#'
5678   HAVE_DARWIN_OS_FALSE=
5679 fi
5680     cat >>confdefs.h <<\_ACEOF
5681 #define HAVE_DARWIN_OS 1
5682 _ACEOF
5683
5684 else
5685
5686
5687 if $FALSEPRG; then
5688   HAVE_DARWIN_OS_TRUE=
5689   HAVE_DARWIN_OS_FALSE='#'
5690 else
5691   HAVE_DARWIN_OS_TRUE='#'
5692   HAVE_DARWIN_OS_FALSE=
5693 fi
5694 fi
5695
5696
5697 # -----------------------------------------------------------
5698 # ----------------------------------------------------------
5699 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5700 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5701 if test "x$DISTNAME" != "x"
5702 then
5703         echo "distname set to $DISTNAME"
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5705 then
5706         DISTNAME=alpha
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5708 then
5709         DISTNAME=aix
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5711 then
5712         DISTNAME=hpux
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5714 then
5715         DISTNAME=solaris
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5717 then
5718         DISTNAME=freebsd
5719 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5720 then
5721         DISTNAME=netbsd
5722 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5723 then
5724         DISTNAME=openbsd
5725 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5726 then
5727         DISTNAME=irix
5728 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5729 then
5730         DISTNAME=bsdi
5731 elif test -f /etc/SuSE-release
5732 then
5733         DISTNAME=suse
5734 elif test -d /etc/SuSEconfig
5735 then
5736         DISTNAME=suse5
5737 elif test -f /etc/mandrake-release
5738 then
5739         DISTNAME=mandrake
5740 elif test -f /etc/whitebox-release
5741 then
5742        DISTNAME=redhat
5743 elif test -f /etc/redhat-release
5744 then
5745         DISTNAME=redhat
5746 elif test -f /etc/gentoo-release
5747 then
5748         DISTNAME=gentoo
5749 elif test -f /etc/debian_version
5750 then
5751         DISTNAME=debian
5752 elif test -f /etc/slackware-version
5753 then
5754         DISTNAME=slackware
5755 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5756 then
5757     DISTNAME=darwin
5758 elif test -f /etc/engarde-version
5759 then
5760         DISTNAME=engarde
5761 elif test "$CYGWIN" = yes
5762 then
5763         DISTNAME=cygwin
5764         cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_CYGWIN 1
5766 _ACEOF
5767
5768 else
5769         DISTNAME=unknown
5770 fi
5771 { echo "$as_me:$LINENO: result: done" >&5
5772 echo "${ECHO_T}done" >&6; }
5773
5774
5775 # --------------------------------------------------
5776 # Suppport for gettext (translations)
5777 # By default, $datadir is ${prefix}/share
5778 # --------------------------------------------------
5779 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5781 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5782 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   cat >conftest.make <<\_ACEOF
5786 SHELL = /bin/sh
5787 all:
5788         @echo '@@@%%%=$(MAKE)=@@@%%%'
5789 _ACEOF
5790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5792   *@@@%%%=?*=@@@%%%*)
5793     eval ac_cv_prog_make_${ac_make}_set=yes;;
5794   *)
5795     eval ac_cv_prog_make_${ac_make}_set=no;;
5796 esac
5797 rm -f conftest.make
5798 fi
5799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5800   { echo "$as_me:$LINENO: result: yes" >&5
5801 echo "${ECHO_T}yes" >&6; }
5802   SET_MAKE=
5803 else
5804   { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806   SET_MAKE="MAKE=${MAKE-make}"
5807 fi
5808
5809
5810
5811         MKINSTALLDIRS=
5812   if test -n "$ac_aux_dir"; then
5813     case "$ac_aux_dir" in
5814       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5815       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5816     esac
5817   fi
5818   if test -z "$MKINSTALLDIRS"; then
5819     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5820   fi
5821
5822
5823
5824   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5825 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5826     # Check whether --enable-nls was given.
5827 if test "${enable_nls+set}" = set; then
5828   enableval=$enable_nls; USE_NLS=$enableval
5829 else
5830   USE_NLS=yes
5831 fi
5832
5833   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5834 echo "${ECHO_T}$USE_NLS" >&6; }
5835
5836
5837
5838
5839
5840
5841 # Prepare PATH_SEPARATOR.
5842 # The user is always right.
5843 if test "${PATH_SEPARATOR+set}" != set; then
5844   echo "#! /bin/sh" >conf$$.sh
5845   echo  "exit 0"   >>conf$$.sh
5846   chmod +x conf$$.sh
5847   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5848     PATH_SEPARATOR=';'
5849   else
5850     PATH_SEPARATOR=:
5851   fi
5852   rm -f conf$$.sh
5853 fi
5854
5855 # Find out how to test for executable files. Don't use a zero-byte file,
5856 # as systems may use methods other than mode bits to determine executability.
5857 cat >conf$$.file <<_ASEOF
5858 #! /bin/sh
5859 exit 0
5860 _ASEOF
5861 chmod +x conf$$.file
5862 if test -x conf$$.file >/dev/null 2>&1; then
5863   ac_executable_p="test -x"
5864 else
5865   ac_executable_p="test -f"
5866 fi
5867 rm -f conf$$.file
5868
5869 # Extract the first word of "msgfmt", so it can be a program name with args.
5870 set dummy msgfmt; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_MSGFMT+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   case "$MSGFMT" in
5877   [\\/]* | ?:[\\/]*)
5878     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5879     ;;
5880   *)
5881     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5882     for ac_dir in $PATH; do
5883       IFS="$ac_save_IFS"
5884       test -z "$ac_dir" && ac_dir=.
5885       for ac_exec_ext in '' $ac_executable_extensions; do
5886         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5887           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5888           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5889      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5890             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5891             break 2
5892           fi
5893         fi
5894       done
5895     done
5896     IFS="$ac_save_IFS"
5897   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5898     ;;
5899 esac
5900 fi
5901 MSGFMT="$ac_cv_path_MSGFMT"
5902 if test "$MSGFMT" != ":"; then
5903   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5904 echo "${ECHO_T}$MSGFMT" >&6; }
5905 else
5906   { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 fi
5909
5910   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5911 set dummy gmsgfmt; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $GMSGFMT in
5918   [\\/]* | ?:[\\/]*)
5919   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5920   ;;
5921   *)
5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5938   ;;
5939 esac
5940 fi
5941 GMSGFMT=$ac_cv_path_GMSGFMT
5942 if test -n "$GMSGFMT"; then
5943   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5944 echo "${ECHO_T}$GMSGFMT" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951
5952
5953 # Prepare PATH_SEPARATOR.
5954 # The user is always right.
5955 if test "${PATH_SEPARATOR+set}" != set; then
5956   echo "#! /bin/sh" >conf$$.sh
5957   echo  "exit 0"   >>conf$$.sh
5958   chmod +x conf$$.sh
5959   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5960     PATH_SEPARATOR=';'
5961   else
5962     PATH_SEPARATOR=:
5963   fi
5964   rm -f conf$$.sh
5965 fi
5966
5967 # Find out how to test for executable files. Don't use a zero-byte file,
5968 # as systems may use methods other than mode bits to determine executability.
5969 cat >conf$$.file <<_ASEOF
5970 #! /bin/sh
5971 exit 0
5972 _ASEOF
5973 chmod +x conf$$.file
5974 if test -x conf$$.file >/dev/null 2>&1; then
5975   ac_executable_p="test -x"
5976 else
5977   ac_executable_p="test -f"
5978 fi
5979 rm -f conf$$.file
5980
5981 # Extract the first word of "xgettext", so it can be a program name with args.
5982 set dummy xgettext; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   case "$XGETTEXT" in
5989   [\\/]* | ?:[\\/]*)
5990     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5991     ;;
5992   *)
5993     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5994     for ac_dir in $PATH; do
5995       IFS="$ac_save_IFS"
5996       test -z "$ac_dir" && ac_dir=.
5997       for ac_exec_ext in '' $ac_executable_extensions; do
5998         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5999           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6000           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6001      (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
6002             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6003             break 2
6004           fi
6005         fi
6006       done
6007     done
6008     IFS="$ac_save_IFS"
6009   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6010     ;;
6011 esac
6012 fi
6013 XGETTEXT="$ac_cv_path_XGETTEXT"
6014 if test "$XGETTEXT" != ":"; then
6015   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6016 echo "${ECHO_T}$XGETTEXT" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6020 fi
6021
6022     rm -f messages.po
6023
6024
6025 # Prepare PATH_SEPARATOR.
6026 # The user is always right.
6027 if test "${PATH_SEPARATOR+set}" != set; then
6028   echo "#! /bin/sh" >conf$$.sh
6029   echo  "exit 0"   >>conf$$.sh
6030   chmod +x conf$$.sh
6031   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6032     PATH_SEPARATOR=';'
6033   else
6034     PATH_SEPARATOR=:
6035   fi
6036   rm -f conf$$.sh
6037 fi
6038
6039 # Find out how to test for executable files. Don't use a zero-byte file,
6040 # as systems may use methods other than mode bits to determine executability.
6041 cat >conf$$.file <<_ASEOF
6042 #! /bin/sh
6043 exit 0
6044 _ASEOF
6045 chmod +x conf$$.file
6046 if test -x conf$$.file >/dev/null 2>&1; then
6047   ac_executable_p="test -x"
6048 else
6049   ac_executable_p="test -f"
6050 fi
6051 rm -f conf$$.file
6052
6053 # Extract the first word of "msgmerge", so it can be a program name with args.
6054 set dummy msgmerge; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   case "$MSGMERGE" in
6061   [\\/]* | ?:[\\/]*)
6062     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6063     ;;
6064   *)
6065     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6066     for ac_dir in $PATH; do
6067       IFS="$ac_save_IFS"
6068       test -z "$ac_dir" && ac_dir=.
6069       for ac_exec_ext in '' $ac_executable_extensions; do
6070         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6071           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6072           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6073             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6074             break 2
6075           fi
6076         fi
6077       done
6078     done
6079     IFS="$ac_save_IFS"
6080   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6081     ;;
6082 esac
6083 fi
6084 MSGMERGE="$ac_cv_path_MSGMERGE"
6085 if test "$MSGMERGE" != ":"; then
6086   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6087 echo "${ECHO_T}$MSGMERGE" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6091 fi
6092
6093
6094       if test "$GMSGFMT" != ":"; then
6095             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6096        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6097       : ;
6098     else
6099       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6100       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6101 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6102       GMSGFMT=":"
6103     fi
6104   fi
6105
6106       if test "$XGETTEXT" != ":"; then
6107             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6108        (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
6109       : ;
6110     else
6111       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6112 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6113       XGETTEXT=":"
6114     fi
6115         rm -f messages.po
6116   fi
6117
6118   ac_config_commands="$ac_config_commands default-1"
6119
6120
6121
6122       if test "X$prefix" = "XNONE"; then
6123     acl_final_prefix="$ac_default_prefix"
6124   else
6125     acl_final_prefix="$prefix"
6126   fi
6127   if test "X$exec_prefix" = "XNONE"; then
6128     acl_final_exec_prefix='${prefix}'
6129   else
6130     acl_final_exec_prefix="$exec_prefix"
6131   fi
6132   acl_save_prefix="$prefix"
6133   prefix="$acl_final_prefix"
6134   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6135   prefix="$acl_save_prefix"
6136
6137
6138 # Check whether --with-gnu-ld was given.
6139 if test "${with_gnu_ld+set}" = set; then
6140   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6141 else
6142   with_gnu_ld=no
6143 fi
6144
6145 # Prepare PATH_SEPARATOR.
6146 # The user is always right.
6147 if test "${PATH_SEPARATOR+set}" != set; then
6148   echo "#! /bin/sh" >conf$$.sh
6149   echo  "exit 0"   >>conf$$.sh
6150   chmod +x conf$$.sh
6151   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6152     PATH_SEPARATOR=';'
6153   else
6154     PATH_SEPARATOR=:
6155   fi
6156   rm -f conf$$.sh
6157 fi
6158 ac_prog=ld
6159 if test "$GCC" = yes; then
6160   # Check if gcc -print-prog-name=ld gives a path.
6161   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6162 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6163   case $host in
6164   *-*-mingw*)
6165     # gcc leaves a trailing carriage return which upsets mingw
6166     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6167   *)
6168     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6169   esac
6170   case $ac_prog in
6171     # Accept absolute paths.
6172     [\\/]* | [A-Za-z]:[\\/]*)
6173       re_direlt='/[^/][^/]*/\.\./'
6174       # Canonicalize the path of ld
6175       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6176       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6177         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6178       done
6179       test -z "$LD" && LD="$ac_prog"
6180       ;;
6181   "")
6182     # If it fails, then pretend we aren't using GCC.
6183     ac_prog=ld
6184     ;;
6185   *)
6186     # If it is relative, then search for the first ld in PATH.
6187     with_gnu_ld=unknown
6188     ;;
6189   esac
6190 elif test "$with_gnu_ld" = yes; then
6191   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6192 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6193 else
6194   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6195 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6196 fi
6197 if test "${acl_cv_path_LD+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   if test -z "$LD"; then
6201   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6202   for ac_dir in $PATH; do
6203     test -z "$ac_dir" && ac_dir=.
6204     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6205       acl_cv_path_LD="$ac_dir/$ac_prog"
6206       # Check to see if the program is GNU ld.  I'd rather use --version,
6207       # but apparently some GNU ld's only accept -v.
6208       # Break only if it was the GNU/non-GNU ld that we prefer.
6209       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6210       *GNU* | *'with BFD'*)
6211         test "$with_gnu_ld" != no && break ;;
6212       *)
6213         test "$with_gnu_ld" != yes && break ;;
6214       esac
6215     fi
6216   done
6217   IFS="$ac_save_ifs"
6218 else
6219   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6220 fi
6221 fi
6222
6223 LD="$acl_cv_path_LD"
6224 if test -n "$LD"; then
6225   { echo "$as_me:$LINENO: result: $LD" >&5
6226 echo "${ECHO_T}$LD" >&6; }
6227 else
6228   { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6230 fi
6231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6233    { (exit 1); exit 1; }; }
6234 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6236 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6240 case `$LD -v 2>&1 </dev/null` in
6241 *GNU* | *'with BFD'*)
6242   acl_cv_prog_gnu_ld=yes ;;
6243 *)
6244   acl_cv_prog_gnu_ld=no ;;
6245 esac
6246 fi
6247 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6248 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6249 with_gnu_ld=$acl_cv_prog_gnu_ld
6250
6251
6252
6253
6254                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6255 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6256 if test "${acl_cv_rpath+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259
6260     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6261     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6262     . ./conftest.sh
6263     rm -f ./conftest.sh
6264     acl_cv_rpath=done
6265
6266 fi
6267 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6268 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6269   wl="$acl_cv_wl"
6270   libext="$acl_cv_libext"
6271   shlibext="$acl_cv_shlibext"
6272   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6273   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6274   hardcode_direct="$acl_cv_hardcode_direct"
6275   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6276     # Check whether --enable-rpath was given.
6277 if test "${enable_rpath+set}" = set; then
6278   enableval=$enable_rpath; :
6279 else
6280   enable_rpath=yes
6281 fi
6282
6283
6284
6285
6286
6287
6288
6289
6290     use_additional=yes
6291
6292   acl_save_prefix="$prefix"
6293   prefix="$acl_final_prefix"
6294   acl_save_exec_prefix="$exec_prefix"
6295   exec_prefix="$acl_final_exec_prefix"
6296
6297     eval additional_includedir=\"$includedir\"
6298     eval additional_libdir=\"$libdir\"
6299
6300   exec_prefix="$acl_save_exec_prefix"
6301   prefix="$acl_save_prefix"
6302
6303
6304 # Check whether --with-libiconv-prefix was given.
6305 if test "${with_libiconv_prefix+set}" = set; then
6306   withval=$with_libiconv_prefix;
6307     if test "X$withval" = "Xno"; then
6308       use_additional=no
6309     else
6310       if test "X$withval" = "X"; then
6311
6312   acl_save_prefix="$prefix"
6313   prefix="$acl_final_prefix"
6314   acl_save_exec_prefix="$exec_prefix"
6315   exec_prefix="$acl_final_exec_prefix"
6316
6317           eval additional_includedir=\"$includedir\"
6318           eval additional_libdir=\"$libdir\"
6319
6320   exec_prefix="$acl_save_exec_prefix"
6321   prefix="$acl_save_prefix"
6322
6323       else
6324         additional_includedir="$withval/include"
6325         additional_libdir="$withval/lib"
6326       fi
6327     fi
6328
6329 fi
6330
6331       LIBICONV=
6332   LTLIBICONV=
6333   INCICONV=
6334   rpathdirs=
6335   ltrpathdirs=
6336   names_already_handled=
6337   names_next_round='iconv '
6338   while test -n "$names_next_round"; do
6339     names_this_round="$names_next_round"
6340     names_next_round=
6341     for name in $names_this_round; do
6342       already_handled=
6343       for n in $names_already_handled; do
6344         if test "$n" = "$name"; then
6345           already_handled=yes
6346           break
6347         fi
6348       done
6349       if test -z "$already_handled"; then
6350         names_already_handled="$names_already_handled $name"
6351                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6352         eval value=\"\$HAVE_LIB$uppername\"
6353         if test -n "$value"; then
6354           if test "$value" = yes; then
6355             eval value=\"\$LIB$uppername\"
6356             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6357             eval value=\"\$LTLIB$uppername\"
6358             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6359           else
6360                                     :
6361           fi
6362         else
6363                               found_dir=
6364           found_la=
6365           found_so=
6366           found_a=
6367           if test $use_additional = yes; then
6368             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6369               found_dir="$additional_libdir"
6370               found_so="$additional_libdir/lib$name.$shlibext"
6371               if test -f "$additional_libdir/lib$name.la"; then
6372                 found_la="$additional_libdir/lib$name.la"
6373               fi
6374             else
6375               if test -f "$additional_libdir/lib$name.$libext"; then
6376                 found_dir="$additional_libdir"
6377                 found_a="$additional_libdir/lib$name.$libext"
6378                 if test -f "$additional_libdir/lib$name.la"; then
6379                   found_la="$additional_libdir/lib$name.la"
6380                 fi
6381               fi
6382             fi
6383           fi
6384           if test "X$found_dir" = "X"; then
6385             for x in $LDFLAGS $LTLIBICONV; do
6386
6387   acl_save_prefix="$prefix"
6388   prefix="$acl_final_prefix"
6389   acl_save_exec_prefix="$exec_prefix"
6390   exec_prefix="$acl_final_exec_prefix"
6391   eval x=\"$x\"
6392   exec_prefix="$acl_save_exec_prefix"
6393   prefix="$acl_save_prefix"
6394
6395               case "$x" in
6396                 -L*)
6397                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6398                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6399                     found_dir="$dir"
6400                     found_so="$dir/lib$name.$shlibext"
6401                     if test -f "$dir/lib$name.la"; then
6402                       found_la="$dir/lib$name.la"
6403                     fi
6404                   else
6405                     if test -f "$dir/lib$name.$libext"; then
6406                       found_dir="$dir"
6407                       found_a="$dir/lib$name.$libext"
6408                       if test -f "$dir/lib$name.la"; then
6409                         found_la="$dir/lib$name.la"
6410                       fi
6411                     fi
6412                   fi
6413                   ;;
6414               esac
6415               if test "X$found_dir" != "X"; then
6416                 break
6417               fi
6418             done
6419           fi
6420           if test "X$found_dir" != "X"; then
6421                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6422             if test "X$found_so" != "X"; then
6423                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6424                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6425               else
6426                                                                                 haveit=
6427                 for x in $ltrpathdirs; do
6428                   if test "X$x" = "X$found_dir"; then
6429                     haveit=yes
6430                     break
6431                   fi
6432                 done
6433                 if test -z "$haveit"; then
6434                   ltrpathdirs="$ltrpathdirs $found_dir"
6435                 fi
6436                                 if test "$hardcode_direct" = yes; then
6437                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6438                 else
6439                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6440                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6441                                                             haveit=
6442                     for x in $rpathdirs; do
6443                       if test "X$x" = "X$found_dir"; then
6444                         haveit=yes
6445                         break
6446                       fi
6447                     done
6448                     if test -z "$haveit"; then
6449                       rpathdirs="$rpathdirs $found_dir"
6450                     fi
6451                   else
6452                                                                                 haveit=
6453                     for x in $LDFLAGS $LIBICONV; do
6454
6455   acl_save_prefix="$prefix"
6456   prefix="$acl_final_prefix"
6457   acl_save_exec_prefix="$exec_prefix"
6458   exec_prefix="$acl_final_exec_prefix"
6459   eval x=\"$x\"
6460   exec_prefix="$acl_save_exec_prefix"
6461   prefix="$acl_save_prefix"
6462
6463                       if test "X$x" = "X-L$found_dir"; then
6464                         haveit=yes
6465                         break
6466                       fi
6467                     done
6468                     if test -z "$haveit"; then
6469                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6470                     fi
6471                     if test "$hardcode_minus_L" != no; then
6472                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6473                     else
6474                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6475                     fi
6476                   fi
6477                 fi
6478               fi
6479             else
6480               if test "X$found_a" != "X"; then
6481                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6482               else
6483                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6484               fi
6485             fi
6486                         additional_includedir=
6487             case "$found_dir" in
6488               */lib | */lib/)
6489                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6490                 additional_includedir="$basedir/include"
6491                 ;;
6492             esac
6493             if test "X$additional_includedir" != "X"; then
6494                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6495                 haveit=
6496                 if test "X$additional_includedir" = "X/usr/local/include"; then
6497                   if test -n "$GCC"; then
6498                     case $host_os in
6499                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6500                     esac
6501                   fi
6502                 fi
6503                 if test -z "$haveit"; then
6504                   for x in $CPPFLAGS $INCICONV; do
6505
6506   acl_save_prefix="$prefix"
6507   prefix="$acl_final_prefix"
6508   acl_save_exec_prefix="$exec_prefix"
6509   exec_prefix="$acl_final_exec_prefix"
6510   eval x=\"$x\"
6511   exec_prefix="$acl_save_exec_prefix"
6512   prefix="$acl_save_prefix"
6513
6514                     if test "X$x" = "X-I$additional_includedir"; then
6515                       haveit=yes
6516                       break
6517                     fi
6518                   done
6519                   if test -z "$haveit"; then
6520                     if test -d "$additional_includedir"; then
6521                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6522                     fi
6523                   fi
6524                 fi
6525               fi
6526             fi
6527                         if test -n "$found_la"; then
6528                                                         save_libdir="$libdir"
6529               case "$found_la" in
6530                 */* | *\\*) . "$found_la" ;;
6531                 *) . "./$found_la" ;;
6532               esac
6533               libdir="$save_libdir"
6534                             for dep in $dependency_libs; do
6535                 case "$dep" in
6536                   -L*)
6537                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6538                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6539                       haveit=
6540                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6541                         if test -n "$GCC"; then
6542                           case $host_os in
6543                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6544                           esac
6545                         fi
6546                       fi
6547                       if test -z "$haveit"; then
6548                         haveit=
6549                         for x in $LDFLAGS $LIBICONV; do
6550
6551   acl_save_prefix="$prefix"
6552   prefix="$acl_final_prefix"
6553   acl_save_exec_prefix="$exec_prefix"
6554   exec_prefix="$acl_final_exec_prefix"
6555   eval x=\"$x\"
6556   exec_prefix="$acl_save_exec_prefix"
6557   prefix="$acl_save_prefix"
6558
6559                           if test "X$x" = "X-L$additional_libdir"; then
6560                             haveit=yes
6561                             break
6562                           fi
6563                         done
6564                         if test -z "$haveit"; then
6565                           if test -d "$additional_libdir"; then
6566                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6567                           fi
6568                         fi
6569                         haveit=
6570                         for x in $LDFLAGS $LTLIBICONV; do
6571
6572   acl_save_prefix="$prefix"
6573   prefix="$acl_final_prefix"
6574   acl_save_exec_prefix="$exec_prefix"
6575   exec_prefix="$acl_final_exec_prefix"
6576   eval x=\"$x\"
6577   exec_prefix="$acl_save_exec_prefix"
6578   prefix="$acl_save_prefix"
6579
6580                           if test "X$x" = "X-L$additional_libdir"; then
6581                             haveit=yes
6582                             break
6583                           fi
6584                         done
6585                         if test -z "$haveit"; then
6586                           if test -d "$additional_libdir"; then
6587                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6588                           fi
6589                         fi
6590                       fi
6591                     fi
6592                     ;;
6593                   -R*)
6594                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6595                     if test "$enable_rpath" != no; then
6596                                                                   haveit=
6597                       for x in $rpathdirs; do
6598                         if test "X$x" = "X$dir"; then
6599                           haveit=yes
6600                           break
6601                         fi
6602                       done
6603                       if test -z "$haveit"; then
6604                         rpathdirs="$rpathdirs $dir"
6605                       fi
6606                                                                   haveit=
6607                       for x in $ltrpathdirs; do
6608                         if test "X$x" = "X$dir"; then
6609                           haveit=yes
6610                           break
6611                         fi
6612                       done
6613                       if test -z "$haveit"; then
6614                         ltrpathdirs="$ltrpathdirs $dir"
6615                       fi
6616                     fi
6617                     ;;
6618                   -l*)
6619                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6620                     ;;
6621                   *.la)
6622                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6623                     ;;
6624                   *)
6625                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6626                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6627                     ;;
6628                 esac
6629               done
6630             fi
6631           else
6632                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6633             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6634           fi
6635         fi
6636       fi
6637     done
6638   done
6639   if test "X$rpathdirs" != "X"; then
6640     if test -n "$hardcode_libdir_separator"; then
6641                         alldirs=
6642       for found_dir in $rpathdirs; do
6643         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6644       done
6645             acl_save_libdir="$libdir"
6646       libdir="$alldirs"
6647       eval flag=\"$hardcode_libdir_flag_spec\"
6648       libdir="$acl_save_libdir"
6649       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6650     else
6651             for found_dir in $rpathdirs; do
6652         acl_save_libdir="$libdir"
6653         libdir="$found_dir"
6654         eval flag=\"$hardcode_libdir_flag_spec\"
6655         libdir="$acl_save_libdir"
6656         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6657       done
6658     fi
6659   fi
6660   if test "X$ltrpathdirs" != "X"; then
6661             for found_dir in $ltrpathdirs; do
6662       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6663     done
6664   fi
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6684 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6685 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   gt_save_CPPFLAGS="$CPPFLAGS"
6689      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6690      gt_save_LIBS="$LIBS"
6691      LIBS="$LIBS -framework CoreFoundation"
6692      cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h.  */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h.  */
6698 #include <CFPreferences.h>
6699 int
6700 main ()
6701 {
6702 CFPreferencesCopyAppValue(NULL, NULL)
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6709 case "(($ac_try" in
6710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711   *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714   (eval "$ac_link") 2>conftest.er1
6715   ac_status=$?
6716   grep -v '^ *+' conftest.er1 >conftest.err
6717   rm -f conftest.er1
6718   cat conftest.err >&5
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } &&
6721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6722   { (case "(($ac_try" in
6723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724   *) ac_try_echo=$ac_try;;
6725 esac
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727   (eval "$ac_try") 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); }; } &&
6731          { ac_try='test -s conftest$ac_exeext'
6732   { (case "(($ac_try" in
6733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734   *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737   (eval "$ac_try") 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   gt_cv_func_CFPreferencesCopyAppValue=yes
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746         gt_cv_func_CFPreferencesCopyAppValue=no
6747 fi
6748
6749 rm -f core conftest.err conftest.$ac_objext \
6750       conftest$ac_exeext conftest.$ac_ext
6751      CPPFLAGS="$gt_save_CPPFLAGS"
6752      LIBS="$gt_save_LIBS"
6753 fi
6754 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6755 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6756   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6757
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6760 _ACEOF
6761
6762   fi
6763     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6764 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6765 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   gt_save_CPPFLAGS="$CPPFLAGS"
6769      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6770      gt_save_LIBS="$LIBS"
6771      LIBS="$LIBS -framework CoreFoundation"
6772      cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h.  */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h.  */
6778 #include <CFLocale.h>
6779 int
6780 main ()
6781 {
6782 CFLocaleCopyCurrent();
6783   ;
6784   return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (ac_try="$ac_link"
6789 case "(($ac_try" in
6790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791   *) ac_try_echo=$ac_try;;
6792 esac
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794   (eval "$ac_link") 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } &&
6801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6802   { (case "(($ac_try" in
6803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804   *) ac_try_echo=$ac_try;;
6805 esac
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807   (eval "$ac_try") 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); }; } &&
6811          { ac_try='test -s conftest$ac_exeext'
6812   { (case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817   (eval "$ac_try") 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821   gt_cv_func_CFLocaleCopyCurrent=yes
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826         gt_cv_func_CFLocaleCopyCurrent=no
6827 fi
6828
6829 rm -f core conftest.err conftest.$ac_objext \
6830       conftest$ac_exeext conftest.$ac_ext
6831      CPPFLAGS="$gt_save_CPPFLAGS"
6832      LIBS="$gt_save_LIBS"
6833 fi
6834 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6835 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6836   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6837
6838 cat >>confdefs.h <<\_ACEOF
6839 #define HAVE_CFLOCALECOPYCURRENT 1
6840 _ACEOF
6841
6842   fi
6843   INTL_MACOSX_LIBS=
6844   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6845     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6846   fi
6847
6848
6849
6850
6851   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6852 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6853     # Check whether --enable-nls was given.
6854 if test "${enable_nls+set}" = set; then
6855   enableval=$enable_nls; USE_NLS=$enableval
6856 else
6857   USE_NLS=yes
6858 fi
6859
6860   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6861 echo "${ECHO_T}$USE_NLS" >&6; }
6862
6863
6864
6865
6866   LIBINTL=
6867   LTLIBINTL=
6868   POSUB=
6869
6870     if test "$USE_NLS" = "yes"; then
6871     gt_use_preinstalled_gnugettext=no
6872
6873
6874
6875
6876
6877
6878         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6879 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6880 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #include <libintl.h>
6890 extern int _nl_msg_cat_cntr;
6891 extern int *_nl_domain_bindings;
6892 int
6893 main ()
6894 {
6895 bindtextdomain ("", "");
6896 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_link") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } &&
6915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6916   { (case "(($ac_try" in
6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918   *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921   (eval "$ac_try") 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; } &&
6925          { ac_try='test -s conftest$ac_exeext'
6926   { (case "(($ac_try" in
6927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928   *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931   (eval "$ac_try") 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; }; then
6935   gt_cv_func_gnugettext1_libc=yes
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940         gt_cv_func_gnugettext1_libc=no
6941 fi
6942
6943 rm -f core conftest.err conftest.$ac_objext \
6944       conftest$ac_exeext conftest.$ac_ext
6945 fi
6946 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6947 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6948
6949         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6950
6951
6952
6953
6954
6955           am_save_CPPFLAGS="$CPPFLAGS"
6956
6957   for element in $INCICONV; do
6958     haveit=
6959     for x in $CPPFLAGS; do
6960
6961   acl_save_prefix="$prefix"
6962   prefix="$acl_final_prefix"
6963   acl_save_exec_prefix="$exec_prefix"
6964   exec_prefix="$acl_final_exec_prefix"
6965   eval x=\"$x\"
6966   exec_prefix="$acl_save_exec_prefix"
6967   prefix="$acl_save_prefix"
6968
6969       if test "X$x" = "X$element"; then
6970         haveit=yes
6971         break
6972       fi
6973     done
6974     if test -z "$haveit"; then
6975       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6976     fi
6977   done
6978
6979
6980   { echo "$as_me:$LINENO: checking for iconv" >&5
6981 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6982 if test "${am_cv_func_iconv+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985
6986     am_cv_func_iconv="no, consider installing GNU libiconv"
6987     am_cv_lib_iconv=no
6988     cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994 #include <stdlib.h>
6995 #include <iconv.h>
6996 int
6997 main ()
6998 {
6999 iconv_t cd = iconv_open("","");
7000        iconv(cd,NULL,NULL,NULL,NULL);
7001        iconv_close(cd);
7002   ;
7003   return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7008 case "(($ac_try" in
7009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010   *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013   (eval "$ac_link") 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } &&
7020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7021   { (case "(($ac_try" in
7022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023   *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026   (eval "$ac_try") 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; } &&
7030          { ac_try='test -s conftest$ac_exeext'
7031   { (case "(($ac_try" in
7032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033   *) ac_try_echo=$ac_try;;
7034 esac
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036   (eval "$ac_try") 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; }; then
7040   am_cv_func_iconv=yes
7041 else
7042   echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045
7046 fi
7047
7048 rm -f core conftest.err conftest.$ac_objext \
7049       conftest$ac_exeext conftest.$ac_ext
7050     if test "$am_cv_func_iconv" != yes; then
7051       am_save_LIBS="$LIBS"
7052       LIBS="$LIBS $LIBICONV"
7053       cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h.  */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h.  */
7059 #include <stdlib.h>
7060 #include <iconv.h>
7061 int
7062 main ()
7063 {
7064 iconv_t cd = iconv_open("","");
7065          iconv(cd,NULL,NULL,NULL,NULL);
7066          iconv_close(cd);
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (ac_try="$ac_link"
7073 case "(($ac_try" in
7074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075   *) ac_try_echo=$ac_try;;
7076 esac
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078   (eval "$ac_link") 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7086   { (case "(($ac_try" in
7087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088   *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091   (eval "$ac_try") 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; } &&
7095          { ac_try='test -s conftest$ac_exeext'
7096   { (case "(($ac_try" in
7097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098   *) ac_try_echo=$ac_try;;
7099 esac
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101   (eval "$ac_try") 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   am_cv_lib_iconv=yes
7106         am_cv_func_iconv=yes
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111
7112 fi
7113
7114 rm -f core conftest.err conftest.$ac_objext \
7115       conftest$ac_exeext conftest.$ac_ext
7116       LIBS="$am_save_LIBS"
7117     fi
7118
7119 fi
7120 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7121 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7122   if test "$am_cv_func_iconv" = yes; then
7123
7124 cat >>confdefs.h <<\_ACEOF
7125 #define HAVE_ICONV 1
7126 _ACEOF
7127
7128   fi
7129   if test "$am_cv_lib_iconv" = yes; then
7130     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7131 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7132     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7133 echo "${ECHO_T}$LIBICONV" >&6; }
7134   else
7135             CPPFLAGS="$am_save_CPPFLAGS"
7136     LIBICONV=
7137     LTLIBICONV=
7138   fi
7139
7140
7141
7142
7143
7144
7145     use_additional=yes
7146
7147   acl_save_prefix="$prefix"
7148   prefix="$acl_final_prefix"
7149   acl_save_exec_prefix="$exec_prefix"
7150   exec_prefix="$acl_final_exec_prefix"
7151
7152     eval additional_includedir=\"$includedir\"
7153     eval additional_libdir=\"$libdir\"
7154
7155   exec_prefix="$acl_save_exec_prefix"
7156   prefix="$acl_save_prefix"
7157
7158
7159 # Check whether --with-libintl-prefix was given.
7160 if test "${with_libintl_prefix+set}" = set; then
7161   withval=$with_libintl_prefix;
7162     if test "X$withval" = "Xno"; then
7163       use_additional=no
7164     else
7165       if test "X$withval" = "X"; then
7166
7167   acl_save_prefix="$prefix"
7168   prefix="$acl_final_prefix"
7169   acl_save_exec_prefix="$exec_prefix"
7170   exec_prefix="$acl_final_exec_prefix"
7171
7172           eval additional_includedir=\"$includedir\"
7173           eval additional_libdir=\"$libdir\"
7174
7175   exec_prefix="$acl_save_exec_prefix"
7176   prefix="$acl_save_prefix"
7177
7178       else
7179         additional_includedir="$withval/include"
7180         additional_libdir="$withval/lib"
7181       fi
7182     fi
7183
7184 fi
7185
7186       LIBINTL=
7187   LTLIBINTL=
7188   INCINTL=
7189   rpathdirs=
7190   ltrpathdirs=
7191   names_already_handled=
7192   names_next_round='intl '
7193   while test -n "$names_next_round"; do
7194     names_this_round="$names_next_round"
7195     names_next_round=
7196     for name in $names_this_round; do
7197       already_handled=
7198       for n in $names_already_handled; do
7199         if test "$n" = "$name"; then
7200           already_handled=yes
7201           break
7202         fi
7203       done
7204       if test -z "$already_handled"; then
7205         names_already_handled="$names_already_handled $name"
7206                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7207         eval value=\"\$HAVE_LIB$uppername\"
7208         if test -n "$value"; then
7209           if test "$value" = yes; then
7210             eval value=\"\$LIB$uppername\"
7211             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7212             eval value=\"\$LTLIB$uppername\"
7213             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7214           else
7215                                     :
7216           fi
7217         else
7218                               found_dir=
7219           found_la=
7220           found_so=
7221           found_a=
7222           if test $use_additional = yes; then
7223             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7224               found_dir="$additional_libdir"
7225               found_so="$additional_libdir/lib$name.$shlibext"
7226               if test -f "$additional_libdir/lib$name.la"; then
7227                 found_la="$additional_libdir/lib$name.la"
7228               fi
7229             else
7230               if test -f "$additional_libdir/lib$name.$libext"; then
7231                 found_dir="$additional_libdir"
7232                 found_a="$additional_libdir/lib$name.$libext"
7233                 if test -f "$additional_libdir/lib$name.la"; then
7234                   found_la="$additional_libdir/lib$name.la"
7235                 fi
7236               fi
7237             fi
7238           fi
7239           if test "X$found_dir" = "X"; then
7240             for x in $LDFLAGS $LTLIBINTL; do
7241
7242   acl_save_prefix="$prefix"
7243   prefix="$acl_final_prefix"
7244   acl_save_exec_prefix="$exec_prefix"
7245   exec_prefix="$acl_final_exec_prefix"
7246   eval x=\"$x\"
7247   exec_prefix="$acl_save_exec_prefix"
7248   prefix="$acl_save_prefix"
7249
7250               case "$x" in
7251                 -L*)
7252                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7253                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7254                     found_dir="$dir"
7255                     found_so="$dir/lib$name.$shlibext"
7256                     if test -f "$dir/lib$name.la"; then
7257                       found_la="$dir/lib$name.la"
7258                     fi
7259                   else
7260                     if test -f "$dir/lib$name.$libext"; then
7261                       found_dir="$dir"
7262                       found_a="$dir/lib$name.$libext"
7263                       if test -f "$dir/lib$name.la"; then
7264                         found_la="$dir/lib$name.la"
7265                       fi
7266                     fi
7267                   fi
7268                   ;;
7269               esac
7270               if test "X$found_dir" != "X"; then
7271                 break
7272               fi
7273             done
7274           fi
7275           if test "X$found_dir" != "X"; then
7276                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7277             if test "X$found_so" != "X"; then
7278                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7279                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7280               else
7281                                                                                 haveit=
7282                 for x in $ltrpathdirs; do
7283                   if test "X$x" = "X$found_dir"; then
7284                     haveit=yes
7285                     break
7286                   fi
7287                 done
7288                 if test -z "$haveit"; then
7289                   ltrpathdirs="$ltrpathdirs $found_dir"
7290                 fi
7291                                 if test "$hardcode_direct" = yes; then
7292                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7293                 else
7294                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7295                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7296                                                             haveit=
7297                     for x in $rpathdirs; do
7298                       if test "X$x" = "X$found_dir"; then
7299                         haveit=yes
7300                         break
7301                       fi
7302                     done
7303                     if test -z "$haveit"; then
7304                       rpathdirs="$rpathdirs $found_dir"
7305                     fi
7306                   else
7307                                                                                 haveit=
7308                     for x in $LDFLAGS $LIBINTL; do
7309
7310   acl_save_prefix="$prefix"
7311   prefix="$acl_final_prefix"
7312   acl_save_exec_prefix="$exec_prefix"
7313   exec_prefix="$acl_final_exec_prefix"
7314   eval x=\"$x\"
7315   exec_prefix="$acl_save_exec_prefix"
7316   prefix="$acl_save_prefix"
7317
7318                       if test "X$x" = "X-L$found_dir"; then
7319                         haveit=yes
7320                         break
7321                       fi
7322                     done
7323                     if test -z "$haveit"; then
7324                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7325                     fi
7326                     if test "$hardcode_minus_L" != no; then
7327                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7328                     else
7329                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7330                     fi
7331                   fi
7332                 fi
7333               fi
7334             else
7335               if test "X$found_a" != "X"; then
7336                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7337               else
7338                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7339               fi
7340             fi
7341                         additional_includedir=
7342             case "$found_dir" in
7343               */lib | */lib/)
7344                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7345                 additional_includedir="$basedir/include"
7346                 ;;
7347             esac
7348             if test "X$additional_includedir" != "X"; then
7349                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7350                 haveit=
7351                 if test "X$additional_includedir" = "X/usr/local/include"; then
7352                   if test -n "$GCC"; then
7353                     case $host_os in
7354                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7355                     esac
7356                   fi
7357                 fi
7358                 if test -z "$haveit"; then
7359                   for x in $CPPFLAGS $INCINTL; do
7360
7361   acl_save_prefix="$prefix"
7362   prefix="$acl_final_prefix"
7363   acl_save_exec_prefix="$exec_prefix"
7364   exec_prefix="$acl_final_exec_prefix"
7365   eval x=\"$x\"
7366   exec_prefix="$acl_save_exec_prefix"
7367   prefix="$acl_save_prefix"
7368
7369                     if test "X$x" = "X-I$additional_includedir"; then
7370                       haveit=yes
7371                       break
7372                     fi
7373                   done
7374                   if test -z "$haveit"; then
7375                     if test -d "$additional_includedir"; then
7376                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7377                     fi
7378                   fi
7379                 fi
7380               fi
7381             fi
7382                         if test -n "$found_la"; then
7383                                                         save_libdir="$libdir"
7384               case "$found_la" in
7385                 */* | *\\*) . "$found_la" ;;
7386                 *) . "./$found_la" ;;
7387               esac
7388               libdir="$save_libdir"
7389                             for dep in $dependency_libs; do
7390                 case "$dep" in
7391                   -L*)
7392                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7393                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7394                       haveit=
7395                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7396                         if test -n "$GCC"; then
7397                           case $host_os in
7398                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7399                           esac
7400                         fi
7401                       fi
7402                       if test -z "$haveit"; then
7403                         haveit=
7404                         for x in $LDFLAGS $LIBINTL; do
7405
7406   acl_save_prefix="$prefix"
7407   prefix="$acl_final_prefix"
7408   acl_save_exec_prefix="$exec_prefix"
7409   exec_prefix="$acl_final_exec_prefix"
7410   eval x=\"$x\"
7411   exec_prefix="$acl_save_exec_prefix"
7412   prefix="$acl_save_prefix"
7413
7414                           if test "X$x" = "X-L$additional_libdir"; then
7415                             haveit=yes
7416                             break
7417                           fi
7418                         done
7419                         if test -z "$haveit"; then
7420                           if test -d "$additional_libdir"; then
7421                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7422                           fi
7423                         fi
7424                         haveit=
7425                         for x in $LDFLAGS $LTLIBINTL; do
7426
7427   acl_save_prefix="$prefix"
7428   prefix="$acl_final_prefix"
7429   acl_save_exec_prefix="$exec_prefix"
7430   exec_prefix="$acl_final_exec_prefix"
7431   eval x=\"$x\"
7432   exec_prefix="$acl_save_exec_prefix"
7433   prefix="$acl_save_prefix"
7434
7435                           if test "X$x" = "X-L$additional_libdir"; then
7436                             haveit=yes
7437                             break
7438                           fi
7439                         done
7440                         if test -z "$haveit"; then
7441                           if test -d "$additional_libdir"; then
7442                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7443                           fi
7444                         fi
7445                       fi
7446                     fi
7447                     ;;
7448                   -R*)
7449                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7450                     if test "$enable_rpath" != no; then
7451                                                                   haveit=
7452                       for x in $rpathdirs; do
7453                         if test "X$x" = "X$dir"; then
7454                           haveit=yes
7455                           break
7456                         fi
7457                       done
7458                       if test -z "$haveit"; then
7459                         rpathdirs="$rpathdirs $dir"
7460                       fi
7461                                                                   haveit=
7462                       for x in $ltrpathdirs; do
7463                         if test "X$x" = "X$dir"; then
7464                           haveit=yes
7465                           break
7466                         fi
7467                       done
7468                       if test -z "$haveit"; then
7469                         ltrpathdirs="$ltrpathdirs $dir"
7470                       fi
7471                     fi
7472                     ;;
7473                   -l*)
7474                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7475                     ;;
7476                   *.la)
7477                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7478                     ;;
7479                   *)
7480                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7481                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7482                     ;;
7483                 esac
7484               done
7485             fi
7486           else
7487                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7488             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7489           fi
7490         fi
7491       fi
7492     done
7493   done
7494   if test "X$rpathdirs" != "X"; then
7495     if test -n "$hardcode_libdir_separator"; then
7496                         alldirs=
7497       for found_dir in $rpathdirs; do
7498         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7499       done
7500             acl_save_libdir="$libdir"
7501       libdir="$alldirs"
7502       eval flag=\"$hardcode_libdir_flag_spec\"
7503       libdir="$acl_save_libdir"
7504       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7505     else
7506             for found_dir in $rpathdirs; do
7507         acl_save_libdir="$libdir"
7508         libdir="$found_dir"
7509         eval flag=\"$hardcode_libdir_flag_spec\"
7510         libdir="$acl_save_libdir"
7511         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7512       done
7513     fi
7514   fi
7515   if test "X$ltrpathdirs" != "X"; then
7516             for found_dir in $ltrpathdirs; do
7517       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7518     done
7519   fi
7520
7521           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7522 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7523 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   gt_save_CPPFLAGS="$CPPFLAGS"
7527             CPPFLAGS="$CPPFLAGS $INCINTL"
7528             gt_save_LIBS="$LIBS"
7529             LIBS="$LIBS $LIBINTL"
7530                         cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 #include <libintl.h>
7537 extern int _nl_msg_cat_cntr;
7538 extern
7539 #ifdef __cplusplus
7540 "C"
7541 #endif
7542 const char *_nl_expand_alias (const char *);
7543 int
7544 main ()
7545 {
7546 bindtextdomain ("", "");
7547 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7548   ;
7549   return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7554 case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559   (eval "$ac_link") 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } &&
7566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7567   { (case "(($ac_try" in
7568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569   *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572   (eval "$ac_try") 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); }; } &&
7576          { ac_try='test -s conftest$ac_exeext'
7577   { (case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582   (eval "$ac_try") 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; }; then
7586   gt_cv_func_gnugettext1_libintl=yes
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591         gt_cv_func_gnugettext1_libintl=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext \
7595       conftest$ac_exeext conftest.$ac_ext
7596                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7597               LIBS="$LIBS $LIBICONV"
7598               cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h.  */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h.  */
7604 #include <libintl.h>
7605 extern int _nl_msg_cat_cntr;
7606 extern
7607 #ifdef __cplusplus
7608 "C"
7609 #endif
7610 const char *_nl_expand_alias (const char *);
7611 int
7612 main ()
7613 {
7614 bindtextdomain ("", "");
7615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_link") 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } &&
7634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635   { (case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640   (eval "$ac_try") 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; } &&
7644          { ac_try='test -s conftest$ac_exeext'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   LIBINTL="$LIBINTL $LIBICONV"
7655                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7656                 gt_cv_func_gnugettext1_libintl=yes
7657
7658 else
7659   echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662
7663 fi
7664
7665 rm -f core conftest.err conftest.$ac_objext \
7666       conftest$ac_exeext conftest.$ac_ext
7667             fi
7668             CPPFLAGS="$gt_save_CPPFLAGS"
7669             LIBS="$gt_save_LIBS"
7670 fi
7671 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7672 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7673         fi
7674
7675                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7676            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7677                 && test "$PACKAGE" != gettext-runtime \
7678                 && test "$PACKAGE" != gettext-tools; }; then
7679           gt_use_preinstalled_gnugettext=yes
7680         else
7681                     LIBINTL=
7682           LTLIBINTL=
7683           INCINTL=
7684         fi
7685
7686
7687
7688     if test -n "$INTL_MACOSX_LIBS"; then
7689       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7690          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7691                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7692         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7693       fi
7694     fi
7695
7696     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7697        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define ENABLE_NLS 1
7701 _ACEOF
7702
7703     else
7704       USE_NLS=no
7705     fi
7706   fi
7707
7708   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7709 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7710   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7711 echo "${ECHO_T}$USE_NLS" >&6; }
7712   if test "$USE_NLS" = "yes"; then
7713     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7714 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7715     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7716       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7717         gt_source="external libintl"
7718       else
7719         gt_source="libc"
7720       fi
7721     else
7722       gt_source="included intl directory"
7723     fi
7724     { echo "$as_me:$LINENO: result: $gt_source" >&5
7725 echo "${ECHO_T}$gt_source" >&6; }
7726   fi
7727
7728   if test "$USE_NLS" = "yes"; then
7729
7730     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7731       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7732         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7733 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7734         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7735 echo "${ECHO_T}$LIBINTL" >&6; }
7736
7737   for element in $INCINTL; do
7738     haveit=
7739     for x in $CPPFLAGS; do
7740
7741   acl_save_prefix="$prefix"
7742   prefix="$acl_final_prefix"
7743   acl_save_exec_prefix="$exec_prefix"
7744   exec_prefix="$acl_final_exec_prefix"
7745   eval x=\"$x\"
7746   exec_prefix="$acl_save_exec_prefix"
7747   prefix="$acl_save_prefix"
7748
7749       if test "X$x" = "X$element"; then
7750         haveit=yes
7751         break
7752       fi
7753     done
7754     if test -z "$haveit"; then
7755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7756     fi
7757   done
7758
7759       fi
7760
7761
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_GETTEXT 1
7764 _ACEOF
7765
7766
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_DCGETTEXT 1
7769 _ACEOF
7770
7771     fi
7772
7773         POSUB=po
7774   fi
7775
7776
7777
7778     INTLLIBS="$LIBINTL"
7779
7780
7781
7782
7783
7784
7785 if test x${prefix} = xNONE ; then
7786    if test `eval echo ${datadir}` = NONE/share ; then
7787       datadir=/usr/share
7788    fi
7789 fi
7790
7791 # ------------------------------------------------------------------
7792 #  If the user has not set --prefix, we set our default to nothing.
7793 #  In this case, if the user has not set --sysconfdir, we set it
7794 #  to the package default of /etc/bacula.  If either --prefix or
7795 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7796 # ------------------------------------------------------------------
7797 if test x${prefix} = xNONE ; then
7798     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7799         sysconfdir=/etc/bacula
7800     fi
7801     prefix=
7802 fi
7803 sysconfdir=`eval echo ${sysconfdir}`
7804 datadir=`eval echo ${datadir}`
7805 localedir=`eval echo ${datadir}/locale`
7806 cat >>confdefs.h <<_ACEOF
7807 #define LOCALEDIR "$localedir"
7808 _ACEOF
7809
7810 cat >>confdefs.h <<_ACEOF
7811 #define SYSCONFDIR "$sysconfdir"
7812 _ACEOF
7813
7814
7815 # -------------------------------------------------------------------------
7816 #  If the user has not set --exec-prefix, we default to ${prefix}
7817 # -------------------------------------------------------------------------
7818 if test x${exec_prefix} = xNONE ; then
7819     exec_prefix=${prefix}
7820 fi
7821
7822 # ------------------------------------------------------------------
7823 # If the user has not set --sbindir, we set our default as /sbin
7824 # ------------------------------------------------------------------
7825 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7826     sbindir=${exec_prefix}/sbin
7827 fi
7828 sbindir=`eval echo ${sbindir}`
7829
7830 # -------------------------------------------------------------------------
7831 #  If the user has not set --mandir, we default to /usr/share/man
7832 # -------------------------------------------------------------------------
7833 if test x$mandir = x'${prefix}/man' ; then
7834    mandir=/usr/share/man
7835 fi
7836
7837
7838 # ------------------------------------------------------------------
7839 # All list of languages for which a translation exist. Each
7840 #  language is separated by a space.
7841 # ------------------------------------------------------------------
7842 ALL_LINGUAS=""
7843
7844 for ac_prog in msgfmt
7845 do
7846   # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_MSGFMT+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   case $MSGFMT in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863   for ac_exec_ext in '' $ac_executable_extensions; do
7864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873   ;;
7874 esac
7875 fi
7876 MSGFMT=$ac_cv_path_MSGFMT
7877 if test -n "$MSGFMT"; then
7878   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7879 echo "${ECHO_T}$MSGFMT" >&6; }
7880 else
7881   { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7883 fi
7884
7885
7886   test -n "$MSGFMT" && break
7887 done
7888 test -n "$MSGFMT" || MSGFMT="no"
7889
7890 if test "$MSGFMT" = "no"
7891 then
7892    echo 'msgfmt program not found, disabling NLS !'
7893    USE_NLS=no
7894    USE_INCLUDED_LIBINTL=no
7895 #else
7896
7897     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7898 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7899 if test "${ac_cv_gnu_library_2+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908
7909 #include <features.h>
7910 #ifdef __GNU_LIBRARY__
7911  #if (__GLIBC__ >= 2)
7912   Lucky GNU user
7913  #endif
7914 #endif
7915
7916 _ACEOF
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7919   ac_cv_gnu_library_2=yes
7920 else
7921   ac_cv_gnu_library_2=no
7922 fi
7923 rm -f conftest*
7924
7925
7926
7927 fi
7928 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7929 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7930
7931     GLIBC2="$ac_cv_gnu_library_2"
7932
7933
7934
7935         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7936 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7937 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   ac_check_lib_save_LIBS=$LIBS
7941 LIBS="-lcposix  $LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948
7949 /* Override any GCC internal prototype to avoid an error.
7950    Use char because int might match the return type of a GCC
7951    builtin and then its argument prototype would still apply.  */
7952 #ifdef __cplusplus
7953 extern "C"
7954 #endif
7955 char strerror ();
7956 int
7957 main ()
7958 {
7959 return strerror ();
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7966 case "(($ac_try" in
7967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968   *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971   (eval "$ac_link") 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7979   { (case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_try") 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; } &&
7988          { ac_try='test -s conftest$ac_exeext'
7989   { (case "(($ac_try" in
7990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991   *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994   (eval "$ac_try") 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; }; then
7998   ac_cv_lib_cposix_strerror=yes
7999 else
8000   echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8002
8003         ac_cv_lib_cposix_strerror=no
8004 fi
8005
8006 rm -f core conftest.err conftest.$ac_objext \
8007       conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8009 fi
8010 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8011 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8012 if test $ac_cv_lib_cposix_strerror = yes; then
8013   LIBS="$LIBS -lcposix"
8014 fi
8015
8016
8017
8018 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8020 if test "${ac_cv_header_stdc+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029 #include <stdlib.h>
8030 #include <stdarg.h>
8031 #include <string.h>
8032 #include <float.h>
8033
8034 int
8035 main ()
8036 {
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_compile") 2>conftest.er1
8050   ac_status=$?
8051   grep -v '^ *+' conftest.er1 >conftest.err
8052   rm -f conftest.er1
8053   cat conftest.err >&5
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } &&
8056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057   { (case "(($ac_try" in
8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059   *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062   (eval "$ac_try") 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; } &&
8066          { ac_try='test -s conftest.$ac_objext'
8067   { (case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_try") 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_cv_header_stdc=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         ac_cv_header_stdc=no
8082 fi
8083
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <string.h>
8095
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098   $EGREP "memchr" >/dev/null 2>&1; then
8099   :
8100 else
8101   ac_cv_header_stdc=no
8102 fi
8103 rm -f conftest*
8104
8105 fi
8106
8107 if test $ac_cv_header_stdc = yes; then
8108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 #include <stdlib.h>
8116
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119   $EGREP "free" >/dev/null 2>&1; then
8120   :
8121 else
8122   ac_cv_header_stdc=no
8123 fi
8124 rm -f conftest*
8125
8126 fi
8127
8128 if test $ac_cv_header_stdc = yes; then
8129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130   if test "$cross_compiling" = yes; then
8131   :
8132 else
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 #include <ctype.h>
8140 #include <stdlib.h>
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8144 #else
8145 # define ISLOWER(c) \
8146                    (('a' <= (c) && (c) <= 'i') \
8147                      || ('j' <= (c) && (c) <= 'r') \
8148                      || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8150 #endif
8151
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 int
8154 main ()
8155 {
8156   int i;
8157   for (i = 0; i < 256; i++)
8158     if (XOR (islower (i), ISLOWER (i))
8159         || toupper (i) != TOUPPER (i))
8160       return 2;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   :
8185 else
8186   echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ( exit $ac_status )
8191 ac_cv_header_stdc=no
8192 fi
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8194 fi
8195
8196
8197 fi
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8205 _ACEOF
8206
8207 fi
8208
8209 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8210 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8211 if test "${ac_cv_c_const+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220
8221 int
8222 main ()
8223 {
8224 /* FIXME: Include the comments suggested by Paul. */
8225 #ifndef __cplusplus
8226   /* Ultrix mips cc rejects this.  */
8227   typedef int charset[2];
8228   const charset x;
8229   /* SunOS 4.1.1 cc rejects this.  */
8230   char const *const *ccp;
8231   char **p;
8232   /* NEC SVR4.0.2 mips cc rejects this.  */
8233   struct point {int x, y;};
8234   static struct point const zero = {0,0};
8235   /* AIX XL C 1.02.0.0 rejects this.
8236      It does not let you subtract one const X* pointer from another in
8237      an arm of an if-expression whose if-part is not a constant
8238      expression */
8239   const char *g = "string";
8240   ccp = &g + (g ? g-g : 0);
8241   /* HPUX 7.0 cc rejects these. */
8242   ++ccp;
8243   p = (char**) ccp;
8244   ccp = (char const *const *) p;
8245   { /* SCO 3.2v4 cc rejects this.  */
8246     char *t;
8247     char const *s = 0 ? (char *) 0 : (char const *) 0;
8248
8249     *t++ = 0;
8250     if (s) return 0;
8251   }
8252   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8253     int x[] = {25, 17};
8254     const int *foo = &x[0];
8255     ++foo;
8256   }
8257   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8258     typedef const int *iptr;
8259     iptr p = 0;
8260     ++p;
8261   }
8262   { /* AIX XL C 1.02.0.0 rejects this saying
8263        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8264     struct s { int j; const int *ap[3]; };
8265     struct s *b; b->j = 5;
8266   }
8267   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8268     const int foo = 10;
8269     if (!foo) return 0;
8270   }
8271   return !x[0] && !zero.x;
8272 #endif
8273
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_compile") 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293   { (case "(($ac_try" in
8294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295   *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298   (eval "$ac_try") 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; } &&
8302          { ac_try='test -s conftest.$ac_objext'
8303   { (case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_c_const=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317         ac_cv_c_const=no
8318 fi
8319
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8323 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8324 if test $ac_cv_c_const = no; then
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define const
8328 _ACEOF
8329
8330 fi
8331
8332
8333   { echo "$as_me:$LINENO: checking for signed" >&5
8334 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8335 if test "${bh_cv_c_signed+set}" = set; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338   cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344
8345 int
8346 main ()
8347 {
8348 signed char x;
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_compile") 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368   { (case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_try") 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; } &&
8377          { ac_try='test -s conftest.$ac_objext'
8378   { (case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_try") 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   bh_cv_c_signed=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392         bh_cv_c_signed=no
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8398 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8399   if test $bh_cv_c_signed = no; then
8400
8401 cat >>confdefs.h <<\_ACEOF
8402 #define signed
8403 _ACEOF
8404
8405   fi
8406
8407 { echo "$as_me:$LINENO: checking for inline" >&5
8408 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8409 if test "${ac_cv_c_inline+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   ac_cv_c_inline=no
8413 for ac_kw in inline __inline__ __inline; do
8414   cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420 #ifndef __cplusplus
8421 typedef int foo_t;
8422 static $ac_kw foo_t static_foo () {return 0; }
8423 $ac_kw foo_t foo () {return 0; }
8424 #endif
8425
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431   *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434   (eval "$ac_compile") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } &&
8441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442   { (case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_try") 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); }; } &&
8451          { ac_try='test -s conftest.$ac_objext'
8452   { (case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_try") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461   ac_cv_c_inline=$ac_kw
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466
8467 fi
8468
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470   test "$ac_cv_c_inline" != no && break
8471 done
8472
8473 fi
8474 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8475 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8476
8477
8478 case $ac_cv_c_inline in
8479   inline | yes) ;;
8480   *)
8481     case $ac_cv_c_inline in
8482       no) ac_val=;;
8483       *) ac_val=$ac_cv_c_inline;;
8484     esac
8485     cat >>confdefs.h <<_ACEOF
8486 #ifndef __cplusplus
8487 #define inline $ac_val
8488 #endif
8489 _ACEOF
8490     ;;
8491 esac
8492
8493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8504                   inttypes.h stdint.h unistd.h
8505 do
8506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518 $ac_includes_default
8519
8520 #include <$ac_header>
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8524 case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_compile") 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537   { (case "(($ac_try" in
8538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539   *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542   (eval "$ac_try") 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_try") 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   eval "$as_ac_Header=yes"
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561         eval "$as_ac_Header=no"
8562 fi
8563
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567                { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570   cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 _ACEOF
8573
8574 fi
8575
8576 done
8577
8578
8579 { echo "$as_me:$LINENO: checking for off_t" >&5
8580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8581 if test "${ac_cv_type_off_t+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590 $ac_includes_default
8591 typedef off_t ac__type_new_;
8592 int
8593 main ()
8594 {
8595 if ((ac__type_new_ *) 0)
8596   return 0;
8597 if (sizeof (ac__type_new_))
8598   return 0;
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8605 case "(($ac_try" in
8606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607   *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610   (eval "$ac_compile") 2>conftest.er1
8611   ac_status=$?
8612   grep -v '^ *+' conftest.er1 >conftest.err
8613   rm -f conftest.er1
8614   cat conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } &&
8617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618   { (case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_try") 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; } &&
8627          { ac_try='test -s conftest.$ac_objext'
8628   { (case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_try") 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   ac_cv_type_off_t=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642         ac_cv_type_off_t=no
8643 fi
8644
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 fi
8647 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8648 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8649 if test $ac_cv_type_off_t = yes; then
8650   :
8651 else
8652
8653 cat >>confdefs.h <<_ACEOF
8654 #define off_t long int
8655 _ACEOF
8656
8657 fi
8658
8659 { echo "$as_me:$LINENO: checking for size_t" >&5
8660 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8661 if test "${ac_cv_type_size_t+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 $ac_includes_default
8671 typedef size_t ac__type_new_;
8672 int
8673 main ()
8674 {
8675 if ((ac__type_new_ *) 0)
8676   return 0;
8677 if (sizeof (ac__type_new_))
8678   return 0;
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_compile") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } &&
8697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8698   { (case "(($ac_try" in
8699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700   *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703   (eval "$ac_try") 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; } &&
8707          { ac_try='test -s conftest.$ac_objext'
8708   { (case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_try") 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_type_size_t=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722         ac_cv_type_size_t=no
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8728 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8729 if test $ac_cv_type_size_t = yes; then
8730   :
8731 else
8732
8733 cat >>confdefs.h <<_ACEOF
8734 #define size_t unsigned int
8735 _ACEOF
8736
8737 fi
8738
8739
8740   { echo "$as_me:$LINENO: checking for long long" >&5
8741 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8742 if test "${ac_cv_type_long_long+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 long long ll = 1LL; int i = 63;
8752 int
8753 main ()
8754 {
8755 long long llmax = (long long) -1;
8756      return ll << i | ll >> i | llmax / ll | llmax % ll;
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (ac_try="$ac_link"
8763 case "(($ac_try" in
8764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765   *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768   (eval "$ac_link") 2>conftest.er1
8769   ac_status=$?
8770   grep -v '^ *+' conftest.er1 >conftest.err
8771   rm -f conftest.er1
8772   cat conftest.err >&5
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } &&
8775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8776   { (case "(($ac_try" in
8777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778   *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781   (eval "$ac_try") 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; } &&
8785          { ac_try='test -s conftest$ac_exeext'
8786   { (case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791   (eval "$ac_try") 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); }; }; then
8795   ac_cv_type_long_long=yes
8796 else
8797   echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800         ac_cv_type_long_long=no
8801 fi
8802
8803 rm -f core conftest.err conftest.$ac_objext \
8804       conftest$ac_exeext conftest.$ac_ext
8805 fi
8806 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8807 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8808   if test $ac_cv_type_long_long = yes; then
8809
8810 cat >>confdefs.h <<\_ACEOF
8811 #define HAVE_LONG_LONG 1
8812 _ACEOF
8813
8814   fi
8815
8816
8817   { echo "$as_me:$LINENO: checking for long double" >&5
8818 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8819 if test "${gt_cv_c_long_double+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   if test "$GCC" = yes; then
8823        gt_cv_c_long_double=yes
8824      else
8825        cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831
8832          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8833          long double foo = 0.0;
8834          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8835          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8836
8837 int
8838 main ()
8839 {
8840
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8847 case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_compile") 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860   { (case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_try") 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; } &&
8869          { ac_try='test -s conftest.$ac_objext'
8870   { (case "(($ac_try" in
8871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872   *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875   (eval "$ac_try") 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   gt_cv_c_long_double=yes
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884         gt_cv_c_long_double=no
8885 fi
8886
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888      fi
8889 fi
8890 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8891 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8892   if test $gt_cv_c_long_double = yes; then
8893
8894 cat >>confdefs.h <<\_ACEOF
8895 #define HAVE_LONG_DOUBLE 1
8896 _ACEOF
8897
8898   fi
8899
8900
8901   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8902 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8903 if test "${gt_cv_c_wchar_t+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912 #include <stddef.h>
8913        wchar_t foo = (wchar_t)'\0';
8914 int
8915 main ()
8916 {
8917
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
8924 case "(($ac_try" in
8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926   *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929   (eval "$ac_compile") 2>conftest.er1
8930   ac_status=$?
8931   grep -v '^ *+' conftest.er1 >conftest.err
8932   rm -f conftest.er1
8933   cat conftest.err >&5
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937   { (case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_try") 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; } &&
8946          { ac_try='test -s conftest.$ac_objext'
8947   { (case "(($ac_try" in
8948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949   *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952   (eval "$ac_try") 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; }; then
8956   gt_cv_c_wchar_t=yes
8957 else
8958   echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961         gt_cv_c_wchar_t=no
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8967 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8968   if test $gt_cv_c_wchar_t = yes; then
8969
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_WCHAR_T 1
8972 _ACEOF
8973
8974   fi
8975
8976
8977   { echo "$as_me:$LINENO: checking for wint_t" >&5
8978 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8979 if test "${gt_cv_c_wint_t+set}" = set; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 #include <wchar.h>
8989        wint_t foo = (wchar_t)'\0';
8990 int
8991 main ()
8992 {
8993
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002   *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005   (eval "$ac_compile") 2>conftest.er1
9006   ac_status=$?
9007   grep -v '^ *+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } &&
9012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9013   { (case "(($ac_try" in
9014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015   *) ac_try_echo=$ac_try;;
9016 esac
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018   (eval "$ac_try") 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; } &&
9022          { ac_try='test -s conftest.$ac_objext'
9023   { (case "(($ac_try" in
9024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025   *) ac_try_echo=$ac_try;;
9026 esac
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028   (eval "$ac_try") 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); }; }; then
9032   gt_cv_c_wint_t=yes
9033 else
9034   echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037         gt_cv_c_wint_t=no
9038 fi
9039
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 fi
9042 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9043 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9044   if test $gt_cv_c_wint_t = yes; then
9045
9046 cat >>confdefs.h <<\_ACEOF
9047 #define HAVE_WINT_T 1
9048 _ACEOF
9049
9050   fi
9051
9052
9053   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9054 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9055 if test "${gl_cv_header_inttypes_h+set}" = set; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064 #include <sys/types.h>
9065 #include <inttypes.h>
9066 int
9067 main ()
9068 {
9069 uintmax_t i = (uintmax_t) -1;
9070   ;
9071   return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9076 case "(($ac_try" in
9077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078   *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081   (eval "$ac_compile") 2>conftest.er1
9082   ac_status=$?
9083   grep -v '^ *+' conftest.er1 >conftest.err
9084   rm -f conftest.er1
9085   cat conftest.err >&5
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); } &&
9088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9089   { (case "(($ac_try" in
9090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091   *) ac_try_echo=$ac_try;;
9092 esac
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094   (eval "$ac_try") 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; } &&
9098          { ac_try='test -s conftest.$ac_objext'
9099   { (case "(($ac_try" in
9100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101   *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104   (eval "$ac_try") 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; }; then
9108   gl_cv_header_inttypes_h=yes
9109 else
9110   echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9112
9113         gl_cv_header_inttypes_h=no
9114 fi
9115
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 fi
9118 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9119 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9120   if test $gl_cv_header_inttypes_h = yes; then
9121
9122 cat >>confdefs.h <<_ACEOF
9123 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9124 _ACEOF
9125
9126   fi
9127
9128
9129   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9130 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9131 if test "${gl_cv_header_stdint_h+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140 #include <sys/types.h>
9141 #include <stdint.h>
9142 int
9143 main ()
9144 {
9145 uintmax_t i = (uintmax_t) -1;
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext
9151 if { (ac_try="$ac_compile"
9152 case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157   (eval "$ac_compile") 2>conftest.er1
9158   ac_status=$?
9159   grep -v '^ *+' conftest.er1 >conftest.err
9160   rm -f conftest.er1
9161   cat conftest.err >&5
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); } &&
9164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9165   { (case "(($ac_try" in
9166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167   *) ac_try_echo=$ac_try;;
9168 esac
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170   (eval "$ac_try") 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); }; } &&
9174          { ac_try='test -s conftest.$ac_objext'
9175   { (case "(($ac_try" in
9176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177   *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180   (eval "$ac_try") 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); }; }; then
9184   gl_cv_header_stdint_h=yes
9185 else
9186   echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189         gl_cv_header_stdint_h=no
9190 fi
9191
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 fi
9194 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9195 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9196   if test $gl_cv_header_stdint_h = yes; then
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define HAVE_STDINT_H_WITH_UINTMAX 1
9200 _ACEOF
9201
9202   fi
9203
9204
9205
9206
9207   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9208 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9209 if test "${gt_cv_c_intmax_t+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218
9219 #include <stddef.h>
9220 #include <stdlib.h>
9221 #if HAVE_STDINT_H_WITH_UINTMAX
9222 #include <stdint.h>
9223 #endif
9224 #if HAVE_INTTYPES_H_WITH_UINTMAX
9225 #include <inttypes.h>
9226 #endif
9227
9228 int
9229 main ()
9230 {
9231 intmax_t x = -1;
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9238 case "(($ac_try" in
9239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240   *) ac_try_echo=$ac_try;;
9241 esac
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243   (eval "$ac_compile") 2>conftest.er1
9244   ac_status=$?
9245   grep -v '^ *+' conftest.er1 >conftest.err
9246   rm -f conftest.er1
9247   cat conftest.err >&5
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); } &&
9250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9251   { (case "(($ac_try" in
9252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253   *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256   (eval "$ac_try") 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; } &&
9260          { ac_try='test -s conftest.$ac_objext'
9261   { (case "(($ac_try" in
9262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263   *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266   (eval "$ac_try") 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; }; then
9270   gt_cv_c_intmax_t=yes
9271 else
9272   echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275         gt_cv_c_intmax_t=no
9276 fi
9277
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 fi
9280 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9281 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9282   if test $gt_cv_c_intmax_t = yes; then
9283
9284 cat >>confdefs.h <<\_ACEOF
9285 #define HAVE_INTMAX_T 1
9286 _ACEOF
9287
9288   fi
9289
9290
9291
9292   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9293 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9294 if test "${gt_cv_func_printf_posix+set}" = set; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297
9298       if test "$cross_compiling" = yes; then
9299
9300         cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306
9307 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9308   notposix
9309 #endif
9310
9311 _ACEOF
9312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9313   $EGREP "notposix" >/dev/null 2>&1; then
9314   gt_cv_func_printf_posix="guessing no"
9315 else
9316   gt_cv_func_printf_posix="guessing yes"
9317 fi
9318 rm -f conftest*
9319
9320
9321 else
9322   cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 #include <stdio.h>
9330 #include <string.h>
9331 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9332    dollar expansion (possibly an autoconf bug).  */
9333 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9334 static char buf[100];
9335 int main ()
9336 {
9337   sprintf (buf, format, 33, 55);
9338   return (strcmp (buf, "55 33") != 0);
9339 }
9340 _ACEOF
9341 rm -f conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9343 case "(($ac_try" in
9344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345   *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348   (eval "$ac_link") 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9352   { (case "(($ac_try" in
9353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354   *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357   (eval "$ac_try") 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   gt_cv_func_printf_posix=yes
9362 else
9363   echo "$as_me: program exited with status $ac_status" >&5
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ( exit $ac_status )
9368 gt_cv_func_printf_posix=no
9369 fi
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9371 fi
9372
9373
9374
9375 fi
9376 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9377 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9378   case $gt_cv_func_printf_posix in
9379     *yes)
9380
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_POSIX_PRINTF 1
9383 _ACEOF
9384
9385       ;;
9386   esac
9387
9388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9389 # for constant arguments.  Useless!
9390 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9391 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9392 if test "${ac_cv_working_alloca_h+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401 #include <alloca.h>
9402 int
9403 main ()
9404 {
9405 char *p = (char *) alloca (2 * sizeof (int));
9406                           if (p) return 0;
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (ac_try="$ac_link"
9413 case "(($ac_try" in
9414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415   *) ac_try_echo=$ac_try;;
9416 esac
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418   (eval "$ac_link") 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9426   { (case "(($ac_try" in
9427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428   *) ac_try_echo=$ac_try;;
9429 esac
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431   (eval "$ac_try") 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); }; } &&
9435          { ac_try='test -s conftest$ac_exeext'
9436   { (case "(($ac_try" in
9437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438   *) ac_try_echo=$ac_try;;
9439 esac
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441   (eval "$ac_try") 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   ac_cv_working_alloca_h=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450         ac_cv_working_alloca_h=no
9451 fi
9452
9453 rm -f core conftest.err conftest.$ac_objext \
9454       conftest$ac_exeext conftest.$ac_ext
9455 fi
9456 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9457 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9458 if test $ac_cv_working_alloca_h = yes; then
9459
9460 cat >>confdefs.h <<\_ACEOF
9461 #define HAVE_ALLOCA_H 1
9462 _ACEOF
9463
9464 fi
9465
9466 { echo "$as_me:$LINENO: checking for alloca" >&5
9467 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9468 if test "${ac_cv_func_alloca_works+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477 #ifdef __GNUC__
9478 # define alloca __builtin_alloca
9479 #else
9480 # ifdef _MSC_VER
9481 #  include <malloc.h>
9482 #  define alloca _alloca
9483 # else
9484 #  if HAVE_ALLOCA_H
9485 #   include <alloca.h>
9486 #  else
9487 #   ifdef _AIX
9488  #pragma alloca
9489 #   else
9490 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9491 char *alloca ();
9492 #    endif
9493 #   endif
9494 #  endif
9495 # endif
9496 #endif
9497
9498 int
9499 main ()
9500 {
9501 char *p = (char *) alloca (1);
9502                                     if (p) return 0;
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9509 case "(($ac_try" in
9510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511   *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514   (eval "$ac_link") 2>conftest.er1
9515   ac_status=$?
9516   grep -v '^ *+' conftest.er1 >conftest.err
9517   rm -f conftest.er1
9518   cat conftest.err >&5
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } &&
9521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9522   { (case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_try") 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; } &&
9531          { ac_try='test -s conftest$ac_exeext'
9532   { (case "(($ac_try" in
9533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534   *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537   (eval "$ac_try") 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_func_alloca_works=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546         ac_cv_func_alloca_works=no
9547 fi
9548
9549 rm -f core conftest.err conftest.$ac_objext \
9550       conftest$ac_exeext conftest.$ac_ext
9551 fi
9552 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9553 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9554
9555 if test $ac_cv_func_alloca_works = yes; then
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_ALLOCA 1
9559 _ACEOF
9560
9561 else
9562   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9563 # that cause trouble.  Some versions do not even contain alloca or
9564 # contain a buggy version.  If you still want to use their alloca,
9565 # use ar to extract alloca.o from them instead of compiling alloca.c.
9566
9567 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9568
9569 cat >>confdefs.h <<\_ACEOF
9570 #define C_ALLOCA 1
9571 _ACEOF
9572
9573
9574 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9575 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9576 if test "${ac_cv_os_cray+set}" = set; then
9577   echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579   cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585 #if defined CRAY && ! defined CRAY2
9586 webecray
9587 #else
9588 wenotbecray
9589 #endif
9590
9591 _ACEOF
9592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9593   $EGREP "webecray" >/dev/null 2>&1; then
9594   ac_cv_os_cray=yes
9595 else
9596   ac_cv_os_cray=no
9597 fi
9598 rm -f conftest*
9599
9600 fi
9601 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9602 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9603 if test $ac_cv_os_cray = yes; then
9604   for ac_func in _getb67 GETB67 getb67; do
9605     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9619 #define $ac_func innocuous_$ac_func
9620
9621 /* System header to define __stub macros and hopefully few prototypes,
9622     which can conflict with char $ac_func (); below.
9623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624     <limits.h> exists even on freestanding compilers.  */
9625
9626 #ifdef __STDC__
9627 # include <limits.h>
9628 #else
9629 # include <assert.h>
9630 #endif
9631
9632 #undef $ac_func
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635    Use char because int might match the return type of a GCC
9636    builtin and then its argument prototype would still apply.  */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char $ac_func ();
9641 /* The GNU C library defines this for functions which it implements
9642     to always fail with ENOSYS.  Some functions are actually named
9643     something starting with __ and the normal name is an alias.  */
9644 #if defined __stub_$ac_func || defined __stub___$ac_func
9645 choke me
9646 #endif
9647
9648 int
9649 main ()
9650 {
9651 return $ac_func ();
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (ac_try="$ac_link"
9658 case "(($ac_try" in
9659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660   *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663   (eval "$ac_link") 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } &&
9670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671   { (case "(($ac_try" in
9672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673   *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676   (eval "$ac_try") 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); }; } &&
9680          { ac_try='test -s conftest$ac_exeext'
9681   { (case "(($ac_try" in
9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683   *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686   (eval "$ac_try") 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; }; then
9690   eval "$as_ac_var=yes"
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695         eval "$as_ac_var=no"
9696 fi
9697
9698 rm -f core conftest.err conftest.$ac_objext \
9699       conftest$ac_exeext conftest.$ac_ext
9700 fi
9701 ac_res=`eval echo '${'$as_ac_var'}'`
9702                { echo "$as_me:$LINENO: result: $ac_res" >&5
9703 echo "${ECHO_T}$ac_res" >&6; }
9704 if test `eval echo '${'$as_ac_var'}'` = yes; then
9705
9706 cat >>confdefs.h <<_ACEOF
9707 #define CRAY_STACKSEG_END $ac_func
9708 _ACEOF
9709
9710     break
9711 fi
9712
9713   done
9714 fi
9715
9716 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9717 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9718 if test "${ac_cv_c_stack_direction+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   if test "$cross_compiling" = yes; then
9722   ac_cv_c_stack_direction=0
9723 else
9724   cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 $ac_includes_default
9731 int
9732 find_stack_direction ()
9733 {
9734   static char *addr = 0;
9735   auto char dummy;
9736   if (addr == 0)
9737     {
9738       addr = &dummy;
9739       return find_stack_direction ();
9740     }
9741   else
9742     return (&dummy > addr) ? 1 : -1;
9743 }
9744
9745 int
9746 main ()
9747 {
9748   return find_stack_direction () < 0;
9749 }
9750 _ACEOF
9751 rm -f conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9753 case "(($ac_try" in
9754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755   *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758   (eval "$ac_link") 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9762   { (case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_try") 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   ac_cv_c_stack_direction=1
9772 else
9773   echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ( exit $ac_status )
9778 ac_cv_c_stack_direction=-1
9779 fi
9780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9781 fi
9782
9783
9784 fi
9785 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9786 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9787
9788 cat >>confdefs.h <<_ACEOF
9789 #define STACK_DIRECTION $ac_cv_c_stack_direction
9790 _ACEOF
9791
9792
9793 fi
9794
9795
9796
9797 for ac_header in stdlib.h unistd.h
9798 do
9799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 fi
9806 ac_res=`eval echo '${'$as_ac_Header'}'`
9807                { echo "$as_me:$LINENO: result: $ac_res" >&5
9808 echo "${ECHO_T}$ac_res" >&6; }
9809 else
9810   # Is the header compilable?
9811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819 $ac_includes_default
9820 #include <$ac_header>
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9824 case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_compile") 2>conftest.er1
9830   ac_status=$?
9831   grep -v '^ *+' conftest.er1 >conftest.err
9832   rm -f conftest.er1
9833   cat conftest.err >&5
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } &&
9836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837   { (case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_try") 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; } &&
9846          { ac_try='test -s conftest.$ac_objext'
9847   { (case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_try") 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_header_compiler=yes
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861         ac_header_compiler=no
9862 fi
9863
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9866 echo "${ECHO_T}$ac_header_compiler" >&6; }
9867
9868 # Is the header present?
9869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877 #include <$ac_header>
9878 _ACEOF
9879 if { (ac_try="$ac_cpp conftest.$ac_ext"
9880 case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } >/dev/null; then
9892   if test -s conftest.err; then
9893     ac_cpp_err=$ac_c_preproc_warn_flag
9894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9895   else
9896     ac_cpp_err=
9897   fi
9898 else
9899   ac_cpp_err=yes
9900 fi
9901 if test -z "$ac_cpp_err"; then
9902   ac_header_preproc=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907   ac_header_preproc=no
9908 fi
9909
9910 rm -f conftest.err conftest.$ac_ext
9911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6; }
9913
9914 # So?  What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916   yes:no: )
9917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921     ac_header_preproc=yes
9922     ;;
9923   no:yes:* )
9924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9936
9937     ;;
9938 esac
9939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   eval "$as_ac_Header=\$ac_header_preproc"
9945 fi
9946 ac_res=`eval echo '${'$as_ac_Header'}'`
9947                { echo "$as_me:$LINENO: result: $ac_res" >&5
9948 echo "${ECHO_T}$ac_res" >&6; }
9949
9950 fi
9951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952   cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9954 _ACEOF
9955
9956 fi
9957
9958 done
9959
9960
9961 for ac_func in getpagesize
9962 do
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9977 #define $ac_func innocuous_$ac_func
9978
9979 /* System header to define __stub macros and hopefully few prototypes,
9980     which can conflict with char $ac_func (); below.
9981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982     <limits.h> exists even on freestanding compilers.  */
9983
9984 #ifdef __STDC__
9985 # include <limits.h>
9986 #else
9987 # include <assert.h>
9988 #endif
9989
9990 #undef $ac_func
9991
9992 /* Override any GCC internal prototype to avoid an error.
9993    Use char because int might match the return type of a GCC
9994    builtin and then its argument prototype would still apply.  */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 char $ac_func ();
9999 /* The GNU C library defines this for functions which it implements
10000     to always fail with ENOSYS.  Some functions are actually named
10001     something starting with __ and the normal name is an alias.  */
10002 #if defined __stub_$ac_func || defined __stub___$ac_func
10003 choke me
10004 #endif
10005
10006 int
10007 main ()
10008 {
10009 return $ac_func ();
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018   *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021   (eval "$ac_link") 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } &&
10028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029   { (case "(($ac_try" in
10030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031   *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034   (eval "$ac_try") 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044   (eval "$ac_try") 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; }; then
10048   eval "$as_ac_var=yes"
10049 else
10050   echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10052
10053         eval "$as_ac_var=no"
10054 fi
10055
10056 rm -f core conftest.err conftest.$ac_objext \
10057       conftest$ac_exeext conftest.$ac_ext
10058 fi
10059 ac_res=`eval echo '${'$as_ac_var'}'`
10060                { echo "$as_me:$LINENO: result: $ac_res" >&5
10061 echo "${ECHO_T}$ac_res" >&6; }
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063   cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065 _ACEOF
10066
10067 fi
10068 done
10069
10070 { echo "$as_me:$LINENO: checking for working mmap" >&5
10071 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10072 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   if test "$cross_compiling" = yes; then
10076   ac_cv_func_mmap_fixed_mapped=no
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084 $ac_includes_default
10085 /* malloc might have been renamed as rpl_malloc. */
10086 #undef malloc
10087
10088 /* Thanks to Mike Haertel and Jim Avera for this test.
10089    Here is a matrix of mmap possibilities:
10090         mmap private not fixed
10091         mmap private fixed at somewhere currently unmapped
10092         mmap private fixed at somewhere already mapped
10093         mmap shared not fixed
10094         mmap shared fixed at somewhere currently unmapped
10095         mmap shared fixed at somewhere already mapped
10096    For private mappings, we should verify that changes cannot be read()
10097    back from the file, nor mmap's back from the file at a different
10098    address.  (There have been systems where private was not correctly
10099    implemented like the infamous i386 svr4.0, and systems where the
10100    VM page cache was not coherent with the file system buffer cache
10101    like early versions of FreeBSD and possibly contemporary NetBSD.)
10102    For shared mappings, we should conversely verify that changes get
10103    propagated back to all the places they're supposed to be.
10104
10105    Grep wants private fixed already mapped.
10106    The main things grep needs to know about mmap are:
10107    * does it exist and is it safe to write into the mmap'd area
10108    * how to use it (BSD variants)  */
10109
10110 #include <fcntl.h>
10111 #include <sys/mman.h>
10112
10113 #if !STDC_HEADERS && !HAVE_STDLIB_H
10114 char *malloc ();
10115 #endif
10116
10117 /* This mess was copied from the GNU getpagesize.h.  */
10118 #if !HAVE_GETPAGESIZE
10119 /* Assume that all systems that can run configure have sys/param.h.  */
10120 # if !HAVE_SYS_PARAM_H
10121 #  define HAVE_SYS_PARAM_H 1
10122 # endif
10123
10124 # ifdef _SC_PAGESIZE
10125 #  define getpagesize() sysconf(_SC_PAGESIZE)
10126 # else /* no _SC_PAGESIZE */
10127 #  if HAVE_SYS_PARAM_H
10128 #   include <sys/param.h>
10129 #   ifdef EXEC_PAGESIZE
10130 #    define getpagesize() EXEC_PAGESIZE
10131 #   else /* no EXEC_PAGESIZE */
10132 #    ifdef NBPG
10133 #     define getpagesize() NBPG * CLSIZE
10134 #     ifndef CLSIZE
10135 #      define CLSIZE 1
10136 #     endif /* no CLSIZE */
10137 #    else /* no NBPG */
10138 #     ifdef NBPC
10139 #      define getpagesize() NBPC
10140 #     else /* no NBPC */
10141 #      ifdef PAGESIZE
10142 #       define getpagesize() PAGESIZE
10143 #      endif /* PAGESIZE */
10144 #     endif /* no NBPC */
10145 #    endif /* no NBPG */
10146 #   endif /* no EXEC_PAGESIZE */
10147 #  else /* no HAVE_SYS_PARAM_H */
10148 #   define getpagesize() 8192   /* punt totally */
10149 #  endif /* no HAVE_SYS_PARAM_H */
10150 # endif /* no _SC_PAGESIZE */
10151
10152 #endif /* no HAVE_GETPAGESIZE */
10153
10154 int
10155 main ()
10156 {
10157   char *data, *data2, *data3;
10158   int i, pagesize;
10159   int fd;
10160
10161   pagesize = getpagesize ();
10162
10163   /* First, make a file with some known garbage in it. */
10164   data = (char *) malloc (pagesize);
10165   if (!data)
10166     return 1;
10167   for (i = 0; i < pagesize; ++i)
10168     *(data + i) = rand ();
10169   umask (0);
10170   fd = creat ("conftest.mmap", 0600);
10171   if (fd < 0)
10172     return 1;
10173   if (write (fd, data, pagesize) != pagesize)
10174     return 1;
10175   close (fd);
10176
10177   /* Next, try to mmap the file at a fixed address which already has
10178      something else allocated at it.  If we can, also make sure that
10179      we see the same garbage.  */
10180   fd = open ("conftest.mmap", O_RDWR);
10181   if (fd < 0)
10182     return 1;
10183   data2 = (char *) malloc (2 * pagesize);
10184   if (!data2)
10185     return 1;
10186   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10187   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10188                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10189     return 1;
10190   for (i = 0; i < pagesize; ++i)
10191     if (*(data + i) != *(data2 + i))
10192       return 1;
10193
10194   /* Finally, make sure that changes to the mapped area do not
10195      percolate back to the file as seen by read().  (This is a bug on
10196      some variants of i386 svr4.0.)  */
10197   for (i = 0; i < pagesize; ++i)
10198     *(data2 + i) = *(data2 + i) + 1;
10199   data3 = (char *) malloc (pagesize);
10200   if (!data3)
10201     return 1;
10202   if (read (fd, data3, pagesize) != pagesize)
10203     return 1;
10204   for (i = 0; i < pagesize; ++i)
10205     if (*(data + i) != *(data3 + i))
10206       return 1;
10207   close (fd);
10208   return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_link") 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10222   { (case "(($ac_try" in
10223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224   *) ac_try_echo=$ac_try;;
10225 esac
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227   (eval "$ac_try") 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231   ac_cv_func_mmap_fixed_mapped=yes
10232 else
10233   echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ( exit $ac_status )
10238 ac_cv_func_mmap_fixed_mapped=no
10239 fi
10240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10241 fi
10242
10243
10244 fi
10245 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10248
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_MMAP 1
10251 _ACEOF
10252
10253 fi
10254 rm -f conftest.mmap
10255
10256
10257     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10258 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10259 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h.  */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h.  */
10268
10269 #include <features.h>
10270 #ifdef __GNU_LIBRARY__
10271  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10272   Lucky GNU user
10273  #endif
10274 #endif
10275
10276 _ACEOF
10277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10278   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10279   ac_cv_gnu_library_2_1=yes
10280 else
10281   ac_cv_gnu_library_2_1=no
10282 fi
10283 rm -f conftest*
10284
10285
10286
10287 fi
10288 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10289 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10290
10291     GLIBC21="$ac_cv_gnu_library_2_1"
10292
10293
10294
10295
10296   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10297 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10298 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10299   echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301
10302       if test "$cross_compiling" = yes; then
10303
10304           # Guess based on the CPU.
10305           case "$host_cpu" in
10306             alpha* | i3456786 | m68k | s390*)
10307               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10308             *)
10309               gt_cv_int_divbyzero_sigfpe="guessing no";;
10310           esac
10311
10312 else
10313   cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h.  */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h.  */
10319
10320 #include <stdlib.h>
10321 #include <signal.h>
10322
10323 static void
10324 #ifdef __cplusplus
10325 sigfpe_handler (int sig)
10326 #else
10327 sigfpe_handler (sig) int sig;
10328 #endif
10329 {
10330   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10331   exit (sig != SIGFPE);
10332 }
10333
10334 int x = 1;
10335 int y = 0;
10336 int z;
10337 int nan;
10338
10339 int main ()
10340 {
10341   signal (SIGFPE, sigfpe_handler);
10342 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10343 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10344   signal (SIGTRAP, sigfpe_handler);
10345 #endif
10346 /* Linux/SPARC yields signal SIGILL.  */
10347 #if defined (__sparc__) && defined (__linux__)
10348   signal (SIGILL, sigfpe_handler);
10349 #endif
10350
10351   z = x / y;
10352   nan = y / y;
10353   exit (1);
10354 }
10355
10356 _ACEOF
10357 rm -f conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_link") 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10368   { (case "(($ac_try" in
10369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370   *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373   (eval "$ac_try") 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   gt_cv_int_divbyzero_sigfpe=yes
10378 else
10379   echo "$as_me: program exited with status $ac_status" >&5
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ( exit $ac_status )
10384 gt_cv_int_divbyzero_sigfpe=no
10385 fi
10386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10387 fi
10388
10389
10390
10391 fi
10392 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10393 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10394   case "$gt_cv_int_divbyzero_sigfpe" in
10395     *yes) value=1;;
10396     *) value=0;;
10397   esac
10398
10399 cat >>confdefs.h <<_ACEOF
10400 #define INTDIV0_RAISES_SIGFPE $value
10401 _ACEOF
10402
10403
10404
10405   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10406 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10407 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10408   echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410   cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h.  */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h.  */
10416 unsigned long long ull = 1ULL; int i = 63;
10417 int
10418 main ()
10419 {
10420 unsigned long long ullmax = (unsigned long long) -1;
10421      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (ac_try="$ac_link"
10428 case "(($ac_try" in
10429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430   *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433   (eval "$ac_link") 2>conftest.er1
10434   ac_status=$?
10435   grep -v '^ *+' conftest.er1 >conftest.err
10436   rm -f conftest.er1
10437   cat conftest.err >&5
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } &&
10440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441   { (case "(($ac_try" in
10442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443   *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446   (eval "$ac_try") 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; } &&
10450          { ac_try='test -s conftest$ac_exeext'
10451   { (case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_try") 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); }; }; then
10460   ac_cv_type_unsigned_long_long=yes
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465         ac_cv_type_unsigned_long_long=no
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext \
10469       conftest$ac_exeext conftest.$ac_ext
10470 fi
10471 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10472 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10473   if test $ac_cv_type_unsigned_long_long = yes; then
10474
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_UNSIGNED_LONG_LONG 1
10477 _ACEOF
10478
10479   fi
10480
10481
10482
10483
10484   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10485
10486     test $ac_cv_type_unsigned_long_long = yes \
10487       && ac_type='unsigned long long' \
10488       || ac_type='unsigned long'
10489
10490 cat >>confdefs.h <<_ACEOF
10491 #define uintmax_t $ac_type
10492 _ACEOF
10493
10494   else
10495
10496 cat >>confdefs.h <<\_ACEOF
10497 #define HAVE_UINTMAX_T 1
10498 _ACEOF
10499
10500   fi
10501
10502
10503   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10504 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10505 if test "${gt_cv_header_inttypes_h+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508
10509     cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 #include <sys/types.h>
10516 #include <inttypes.h>
10517 int
10518 main ()
10519 {
10520
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_compile") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10540   { (case "(($ac_try" in
10541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542   *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545   (eval "$ac_try") 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; } &&
10549          { ac_try='test -s conftest.$ac_objext'
10550   { (case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_try") 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; }; then
10559   gt_cv_header_inttypes_h=yes
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564         gt_cv_header_inttypes_h=no
10565 fi
10566
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568
10569 fi
10570 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10571 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10572   if test $gt_cv_header_inttypes_h = yes; then
10573
10574 cat >>confdefs.h <<_ACEOF
10575 #define HAVE_INTTYPES_H 1
10576 _ACEOF
10577
10578   fi
10579
10580
10581
10582   if test $gt_cv_header_inttypes_h = yes; then
10583     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10584 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10585 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10586   echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588
10589         cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h.  */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h.  */
10595 #include <inttypes.h>
10596 #ifdef PRId32
10597 char *p = PRId32;
10598 #endif
10599
10600 int
10601 main ()
10602 {
10603
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext
10609 if { (ac_try="$ac_compile"
10610 case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615   (eval "$ac_compile") 2>conftest.er1
10616   ac_status=$?
10617   grep -v '^ *+' conftest.er1 >conftest.err
10618   rm -f conftest.er1
10619   cat conftest.err >&5
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); } &&
10622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10623   { (case "(($ac_try" in
10624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625   *) ac_try_echo=$ac_try;;
10626 esac
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628   (eval "$ac_try") 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; } &&
10632          { ac_try='test -s conftest.$ac_objext'
10633   { (case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638   (eval "$ac_try") 2>&5
10639   ac_status=$?
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); }; }; then
10642   gt_cv_inttypes_pri_broken=no
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647         gt_cv_inttypes_pri_broken=yes
10648 fi
10649
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651
10652 fi
10653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10655   fi
10656   if test "$gt_cv_inttypes_pri_broken" = yes; then
10657
10658 cat >>confdefs.h <<_ACEOF
10659 #define PRI_MACROS_BROKEN 1
10660 _ACEOF
10661
10662   fi
10663
10664
10665
10666 for ac_header in stdint.h
10667 do
10668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 fi
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676                { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10678 else
10679   # Is the header compilable?
10680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 $ac_includes_default
10689 #include <$ac_header>
10690 _ACEOF
10691 rm -f conftest.$ac_objext
10692 if { (ac_try="$ac_compile"
10693 case "(($ac_try" in
10694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695   *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698   (eval "$ac_compile") 2>conftest.er1
10699   ac_status=$?
10700   grep -v '^ *+' conftest.er1 >conftest.err
10701   rm -f conftest.er1
10702   cat conftest.err >&5
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706   { (case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711   (eval "$ac_try") 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; } &&
10715          { ac_try='test -s conftest.$ac_objext'
10716   { (case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_try") 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_header_compiler=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730         ac_header_compiler=no
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10735 echo "${ECHO_T}$ac_header_compiler" >&6; }
10736
10737 # Is the header present?
10738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h.  */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h.  */
10746 #include <$ac_header>
10747 _ACEOF
10748 if { (ac_try="$ac_cpp conftest.$ac_ext"
10749 case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } >/dev/null; then
10761   if test -s conftest.err; then
10762     ac_cpp_err=$ac_c_preproc_warn_flag
10763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10764   else
10765     ac_cpp_err=
10766   fi
10767 else
10768   ac_cpp_err=yes
10769 fi
10770 if test -z "$ac_cpp_err"; then
10771   ac_header_preproc=yes
10772 else
10773   echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776   ac_header_preproc=no
10777 fi
10778
10779 rm -f conftest.err conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10781 echo "${ECHO_T}$ac_header_preproc" >&6; }
10782
10783 # So?  What about this header?
10784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10785   yes:no: )
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10790     ac_header_preproc=yes
10791     ;;
10792   no:yes:* )
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10805
10806     ;;
10807 esac
10808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811   echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813   eval "$as_ac_Header=\$ac_header_preproc"
10814 fi
10815 ac_res=`eval echo '${'$as_ac_Header'}'`
10816                { echo "$as_me:$LINENO: result: $ac_res" >&5
10817 echo "${ECHO_T}$ac_res" >&6; }
10818
10819 fi
10820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10821   cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10823 _ACEOF
10824
10825 fi
10826
10827 done
10828
10829     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10830 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10831   result=
10832   cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838
10839 #include <limits.h>
10840 #if HAVE_STDINT_H
10841 #include <stdint.h>
10842 #endif
10843 #ifdef SIZE_MAX
10844 Found it
10845 #endif
10846
10847 _ACEOF
10848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10849   $EGREP "Found it" >/dev/null 2>&1; then
10850   result=yes
10851 fi
10852 rm -f conftest*
10853
10854   if test -z "$result"; then
10855                     if test "$cross_compiling" = yes; then
10856   # Depending upon the size, compute the lo and hi bounds.
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863 #include <stddef.h>
10864 int
10865 main ()
10866 {
10867 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10868 test_array [0] = 0
10869
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881   (eval "$ac_compile") 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10889   { (case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894   (eval "$ac_try") 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); }; } &&
10898          { ac_try='test -s conftest.$ac_objext'
10899   { (case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_try") 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_lo=0 ac_mid=0
10909   while :; do
10910     cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916 #include <stddef.h>
10917 int
10918 main ()
10919 {
10920 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10921 test_array [0] = 0
10922
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_compile") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942   { (case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_try") 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; } &&
10951          { ac_try='test -s conftest.$ac_objext'
10952   { (case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_try") 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_hi=$ac_mid; break
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966         ac_lo=`expr $ac_mid + 1`
10967                         if test $ac_lo -le $ac_mid; then
10968                           ac_lo= ac_hi=
10969                           break
10970                         fi
10971                         ac_mid=`expr 2 '*' $ac_mid + 1`
10972 fi
10973
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975   done
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980         cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986 #include <stddef.h>
10987 int
10988 main ()
10989 {
10990 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10991 test_array [0] = 0
10992
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_compile") 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } &&
11011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012   { (case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_try") 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; } &&
11021          { ac_try='test -s conftest.$ac_objext'
11022   { (case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_try") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   ac_hi=-1 ac_mid=-1
11032   while :; do
11033     cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #include <stddef.h>
11040 int
11041 main ()
11042 {
11043 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11044 test_array [0] = 0
11045
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_compile") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065   { (case "(($ac_try" in
11066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067   *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070   (eval "$ac_try") 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; } &&
11074          { ac_try='test -s conftest.$ac_objext'
11075   { (case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_try") 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   ac_lo=$ac_mid; break
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089         ac_hi=`expr '(' $ac_mid ')' - 1`
11090                         if test $ac_mid -le $ac_hi; then
11091                           ac_lo= ac_hi=
11092                           break
11093                         fi
11094                         ac_mid=`expr 2 '*' $ac_mid`
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098   done
11099 else
11100   echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103         ac_lo= ac_hi=
11104 fi
11105
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 fi
11108
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 # Binary search between lo and hi bounds.
11111 while test "x$ac_lo" != "x$ac_hi"; do
11112   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11113   cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119 #include <stddef.h>
11120 int
11121 main ()
11122 {
11123 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11124 test_array [0] = 0
11125
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_compile") 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } &&
11144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11145   { (case "(($ac_try" in
11146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147   *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150   (eval "$ac_try") 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; } &&
11154          { ac_try='test -s conftest.$ac_objext'
11155   { (case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160   (eval "$ac_try") 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; }; then
11164   ac_hi=$ac_mid
11165 else
11166   echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11168
11169         ac_lo=`expr '(' $ac_mid ')' + 1`
11170 fi
11171
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 done
11174 case $ac_lo in
11175 ?*) res_hi=$ac_lo;;
11176 '') result=? ;;
11177 esac
11178 else
11179   cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185 #include <stddef.h>
11186 static long int longval () { return ~(size_t)0 / 10; }
11187 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11188 #include <stdio.h>
11189 #include <stdlib.h>
11190 int
11191 main ()
11192 {
11193
11194   FILE *f = fopen ("conftest.val", "w");
11195   if (! f)
11196     return 1;
11197   if ((~(size_t)0 / 10) < 0)
11198     {
11199       long int i = longval ();
11200       if (i != (~(size_t)0 / 10))
11201         return 1;
11202       fprintf (f, "%ld\n", i);
11203     }
11204   else
11205     {
11206       unsigned long int i = ulongval ();
11207       if (i != (~(size_t)0 / 10))
11208         return 1;
11209       fprintf (f, "%lu\n", i);
11210     }
11211   return ferror (f) || fclose (f) != 0;
11212
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_link") 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11228   { (case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_try") 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   res_hi=`cat conftest.val`
11238 else
11239   echo "$as_me: program exited with status $ac_status" >&5
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 ( exit $ac_status )
11244 result=?
11245 fi
11246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11247 fi
11248 rm -f conftest.val
11249     if test "$cross_compiling" = yes; then
11250   # Depending upon the size, compute the lo and hi bounds.
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 #include <stddef.h>
11258 int
11259 main ()
11260 {
11261 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11262 test_array [0] = 0
11263
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (ac_try="$ac_compile"
11270 case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275   (eval "$ac_compile") 2>conftest.er1
11276   ac_status=$?
11277   grep -v '^ *+' conftest.er1 >conftest.err
11278   rm -f conftest.er1
11279   cat conftest.err >&5
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } &&
11282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283   { (case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_try") 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; } &&
11292          { ac_try='test -s conftest.$ac_objext'
11293   { (case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_try") 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   ac_lo=0 ac_mid=0
11303   while :; do
11304     cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310 #include <stddef.h>
11311 int
11312 main ()
11313 {
11314 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11315 test_array [0] = 0
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325   *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328   (eval "$ac_compile") 2>conftest.er1
11329   ac_status=$?
11330   grep -v '^ *+' conftest.er1 >conftest.err
11331   rm -f conftest.er1
11332   cat conftest.err >&5
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); } &&
11335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11336   { (case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_try") 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; } &&
11345          { ac_try='test -s conftest.$ac_objext'
11346   { (case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_try") 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; }; then
11355   ac_hi=$ac_mid; break
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360         ac_lo=`expr $ac_mid + 1`
11361                         if test $ac_lo -le $ac_mid; then
11362                           ac_lo= ac_hi=
11363                           break
11364                         fi
11365                         ac_mid=`expr 2 '*' $ac_mid + 1`
11366 fi
11367
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369   done
11370 else
11371   echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374         cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 #include <stddef.h>
11381 int
11382 main ()
11383 {
11384 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11385 test_array [0] = 0
11386
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_compile") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406   { (case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_try") 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   ac_hi=-1 ac_mid=-1
11426   while :; do
11427     cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <stddef.h>
11434 int
11435 main ()
11436 {
11437 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11438 test_array [0] = 0
11439
11440   ;
11441   return 0;
11442 }
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451   (eval "$ac_compile") 2>conftest.er1
11452   ac_status=$?
11453   grep -v '^ *+' conftest.er1 >conftest.err
11454   rm -f conftest.er1
11455   cat conftest.err >&5
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } &&
11458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11459   { (case "(($ac_try" in
11460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461   *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464   (eval "$ac_try") 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }; } &&
11468          { ac_try='test -s conftest.$ac_objext'
11469   { (case "(($ac_try" in
11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471   *) ac_try_echo=$ac_try;;
11472 esac
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474   (eval "$ac_try") 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; }; then
11478   ac_lo=$ac_mid; break
11479 else
11480   echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11482
11483         ac_hi=`expr '(' $ac_mid ')' - 1`
11484                         if test $ac_mid -le $ac_hi; then
11485                           ac_lo= ac_hi=
11486                           break
11487                         fi
11488                         ac_mid=`expr 2 '*' $ac_mid`
11489 fi
11490
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11492   done
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497         ac_lo= ac_hi=
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 # Binary search between lo and hi bounds.
11505 while test "x$ac_lo" != "x$ac_hi"; do
11506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11507   cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 #include <stddef.h>
11514 int
11515 main ()
11516 {
11517 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11518 test_array [0] = 0
11519
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (ac_try="$ac_compile"
11526 case "(($ac_try" in
11527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528   *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531   (eval "$ac_compile") 2>conftest.er1
11532   ac_status=$?
11533   grep -v '^ *+' conftest.er1 >conftest.err
11534   rm -f conftest.er1
11535   cat conftest.err >&5
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } &&
11538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11539   { (case "(($ac_try" in
11540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541   *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544   (eval "$ac_try") 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; } &&
11548          { ac_try='test -s conftest.$ac_objext'
11549   { (case "(($ac_try" in
11550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551   *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554   (eval "$ac_try") 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; }; then
11558   ac_hi=$ac_mid
11559 else
11560   echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563         ac_lo=`expr '(' $ac_mid ')' + 1`
11564 fi
11565
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 done
11568 case $ac_lo in
11569 ?*) res_lo=$ac_lo;;
11570 '') result=? ;;
11571 esac
11572 else
11573   cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 #include <stddef.h>
11580 static long int longval () { return ~(size_t)0 % 10; }
11581 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11582 #include <stdio.h>
11583 #include <stdlib.h>
11584 int
11585 main ()
11586 {
11587
11588   FILE *f = fopen ("conftest.val", "w");
11589   if (! f)
11590     return 1;
11591   if ((~(size_t)0 % 10) < 0)
11592     {
11593       long int i = longval ();
11594       if (i != (~(size_t)0 % 10))
11595         return 1;
11596       fprintf (f, "%ld\n", i);
11597     }
11598   else
11599     {
11600       unsigned long int i = ulongval ();
11601       if (i != (~(size_t)0 % 10))
11602         return 1;
11603       fprintf (f, "%lu\n", i);
11604     }
11605   return ferror (f) || fclose (f) != 0;
11606
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_link") 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11622   { (case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_try") 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   res_lo=`cat conftest.val`
11632 else
11633   echo "$as_me: program exited with status $ac_status" >&5
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637 ( exit $ac_status )
11638 result=?
11639 fi
11640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11641 fi
11642 rm -f conftest.val
11643     if test "$cross_compiling" = yes; then
11644   # Depending upon the size, compute the lo and hi bounds.
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651 #include <stddef.h>
11652 int
11653 main ()
11654 {
11655 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11656 test_array [0] = 0
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_compile") 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; } &&
11686          { ac_try='test -s conftest.$ac_objext'
11687   { (case "(($ac_try" in
11688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689   *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692   (eval "$ac_try") 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); }; }; then
11696   ac_lo=0 ac_mid=0
11697   while :; do
11698     cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 #include <stddef.h>
11705 int
11706 main ()
11707 {
11708 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11709 test_array [0] = 0
11710
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext
11716 if { (ac_try="$ac_compile"
11717 case "(($ac_try" in
11718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719   *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722   (eval "$ac_compile") 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } &&
11729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11730   { (case "(($ac_try" in
11731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732   *) ac_try_echo=$ac_try;;
11733 esac
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735   (eval "$ac_try") 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); }; } &&
11739          { ac_try='test -s conftest.$ac_objext'
11740   { (case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_try") 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; }; then
11749   ac_hi=$ac_mid; break
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754         ac_lo=`expr $ac_mid + 1`
11755                         if test $ac_lo -le $ac_mid; then
11756                           ac_lo= ac_hi=
11757                           break
11758                         fi
11759                         ac_mid=`expr 2 '*' $ac_mid + 1`
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763   done
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768         cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h.  */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h.  */
11774 #include <stddef.h>
11775 int
11776 main ()
11777 {
11778 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11779 test_array [0] = 0
11780
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_compile") 2>conftest.er1
11793   ac_status=$?
11794   grep -v '^ *+' conftest.er1 >conftest.err
11795   rm -f conftest.er1
11796   cat conftest.err >&5
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } &&
11799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800   { (case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_try") 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; } &&
11809          { ac_try='test -s conftest.$ac_objext'
11810   { (case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_try") 2>&5
11816   ac_status=$?
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); }; }; then
11819   ac_hi=-1 ac_mid=-1
11820   while :; do
11821     cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 #include <stddef.h>
11828 int
11829 main ()
11830 {
11831 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11832 test_array [0] = 0
11833
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842   *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845   (eval "$ac_compile") 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } &&
11852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11853   { (case "(($ac_try" in
11854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855   *) ac_try_echo=$ac_try;;
11856 esac
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858   (eval "$ac_try") 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; } &&
11862          { ac_try='test -s conftest.$ac_objext'
11863   { (case "(($ac_try" in
11864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865   *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868   (eval "$ac_try") 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; }; then
11872   ac_lo=$ac_mid; break
11873 else
11874   echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877         ac_hi=`expr '(' $ac_mid ')' - 1`
11878                         if test $ac_mid -le $ac_hi; then
11879                           ac_lo= ac_hi=
11880                           break
11881                         fi
11882                         ac_mid=`expr 2 '*' $ac_mid`
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886   done
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891         ac_lo= ac_hi=
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 fi
11896
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 # Binary search between lo and hi bounds.
11899 while test "x$ac_lo" != "x$ac_hi"; do
11900   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11901   cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907 #include <stddef.h>
11908 int
11909 main ()
11910 {
11911 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11912 test_array [0] = 0
11913
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_compile") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest.$ac_objext'
11943   { (case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_try") 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_hi=$ac_mid
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957         ac_lo=`expr '(' $ac_mid ')' + 1`
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 done
11962 case $ac_lo in
11963 ?*) fits_in_uint=$ac_lo;;
11964 '') result=? ;;
11965 esac
11966 else
11967   cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 #include <stddef.h>
11974 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11975 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11976 #include <stdio.h>
11977 #include <stdlib.h>
11978 int
11979 main ()
11980 {
11981
11982   FILE *f = fopen ("conftest.val", "w");
11983   if (! f)
11984     return 1;
11985   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11986     {
11987       long int i = longval ();
11988       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11989         return 1;
11990       fprintf (f, "%ld\n", i);
11991     }
11992   else
11993     {
11994       unsigned long int i = ulongval ();
11995       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11996         return 1;
11997       fprintf (f, "%lu\n", i);
11998     }
11999   return ferror (f) || fclose (f) != 0;
12000
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 rm -f conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009   *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012   (eval "$ac_link") 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016   { (case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_try") 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   fits_in_uint=`cat conftest.val`
12026 else
12027   echo "$as_me: program exited with status $ac_status" >&5
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 ( exit $ac_status )
12032 result=?
12033 fi
12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12035 fi
12036 rm -f conftest.val
12037     if test "$fits_in_uint" = 1; then
12038                   cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h.  */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h.  */
12044 #include <stddef.h>
12045         extern size_t foo;
12046         extern unsigned long foo;
12047
12048 int
12049 main ()
12050 {
12051
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (ac_try="$ac_compile"
12058 case "(($ac_try" in
12059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060   *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063   (eval "$ac_compile") 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071   { (case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_try") 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); }; } &&
12080          { ac_try='test -s conftest.$ac_objext'
12081   { (case "(($ac_try" in
12082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083   *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086   (eval "$ac_try") 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; }; then
12090   fits_in_uint=0
12091 else
12092   echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095
12096 fi
12097
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099     fi
12100     if test -z "$result"; then
12101       if test "$fits_in_uint" = 1; then
12102         result="$res_hi$res_lo"U
12103       else
12104         result="$res_hi$res_lo"UL
12105       fi
12106     else
12107             result='~(size_t)0'
12108     fi
12109   fi
12110   { echo "$as_me:$LINENO: result: $result" >&5
12111 echo "${ECHO_T}$result" >&6; }
12112   if test "$result" != yes; then
12113
12114 cat >>confdefs.h <<_ACEOF
12115 #define SIZE_MAX $result
12116 _ACEOF
12117
12118   fi
12119
12120
12121
12122
12123
12124 for ac_header in stdint.h
12125 do
12126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 fi
12133 ac_res=`eval echo '${'$as_ac_Header'}'`
12134                { echo "$as_me:$LINENO: result: $ac_res" >&5
12135 echo "${ECHO_T}$ac_res" >&6; }
12136 else
12137   # Is the header compilable?
12138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 $ac_includes_default
12147 #include <$ac_header>
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_compile") 2>conftest.er1
12157   ac_status=$?
12158   grep -v '^ *+' conftest.er1 >conftest.err
12159   rm -f conftest.er1
12160   cat conftest.err >&5
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164   { (case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169   (eval "$ac_try") 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; } &&
12173          { ac_try='test -s conftest.$ac_objext'
12174   { (case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_try") 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; }; then
12183   ac_header_compiler=yes
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         ac_header_compiler=no
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 echo "${ECHO_T}$ac_header_compiler" >&6; }
12194
12195 # Is the header present?
12196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 #include <$ac_header>
12205 _ACEOF
12206 if { (ac_try="$ac_cpp conftest.$ac_ext"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12213   ac_status=$?
12214   grep -v '^ *+' conftest.er1 >conftest.err
12215   rm -f conftest.er1
12216   cat conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } >/dev/null; then
12219   if test -s conftest.err; then
12220     ac_cpp_err=$ac_c_preproc_warn_flag
12221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12222   else
12223     ac_cpp_err=
12224   fi
12225 else
12226   ac_cpp_err=yes
12227 fi
12228 if test -z "$ac_cpp_err"; then
12229   ac_header_preproc=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234   ac_header_preproc=no
12235 fi
12236
12237 rm -f conftest.err conftest.$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12239 echo "${ECHO_T}$ac_header_preproc" >&6; }
12240
12241 # So?  What about this header?
12242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12243   yes:no: )
12244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12248     ac_header_preproc=yes
12249     ;;
12250   no:yes:* )
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12263
12264     ;;
12265 esac
12266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   eval "$as_ac_Header=\$ac_header_preproc"
12272 fi
12273 ac_res=`eval echo '${'$as_ac_Header'}'`
12274                { echo "$as_me:$LINENO: result: $ac_res" >&5
12275 echo "${ECHO_T}$ac_res" >&6; }
12276
12277 fi
12278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281 _ACEOF
12282
12283 fi
12284
12285 done
12286
12287
12288
12289
12290
12291
12292
12293
12294   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12295 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12296 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305 $ac_includes_default
12306 typedef ptrdiff_t ac__type_new_;
12307 int
12308 main ()
12309 {
12310 if ((ac__type_new_ *) 0)
12311   return 0;
12312 if (sizeof (ac__type_new_))
12313   return 0;
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325   (eval "$ac_compile") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333   { (case "(($ac_try" in
12334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335   *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338   (eval "$ac_try") 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; } &&
12342          { ac_try='test -s conftest.$ac_objext'
12343   { (case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_try") 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   ac_cv_type_ptrdiff_t=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_cv_type_ptrdiff_t=no
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12363 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12364 if test $ac_cv_type_ptrdiff_t = yes; then
12365   :
12366 else
12367
12368 cat >>confdefs.h <<\_ACEOF
12369 #define ptrdiff_t long
12370 _ACEOF
12371
12372
12373 fi
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12386 stdlib.h string.h unistd.h sys/param.h
12387 do
12388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 fi
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396                { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12398 else
12399   # Is the header compilable?
12400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408 $ac_includes_default
12409 #include <$ac_header>
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_compile") 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest.$ac_objext'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_header_compiler=yes
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450         ac_header_compiler=no
12451 fi
12452
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6; }
12456
12457 # Is the header present?
12458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466 #include <$ac_header>
12467 _ACEOF
12468 if { (ac_try="$ac_cpp conftest.$ac_ext"
12469 case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } >/dev/null; then
12481   if test -s conftest.err; then
12482     ac_cpp_err=$ac_c_preproc_warn_flag
12483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12484   else
12485     ac_cpp_err=
12486   fi
12487 else
12488   ac_cpp_err=yes
12489 fi
12490 if test -z "$ac_cpp_err"; then
12491   ac_header_preproc=yes
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496   ac_header_preproc=no
12497 fi
12498
12499 rm -f conftest.err conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12501 echo "${ECHO_T}$ac_header_preproc" >&6; }
12502
12503 # So?  What about this header?
12504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12505   yes:no: )
12506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12510     ac_header_preproc=yes
12511     ;;
12512   no:yes:* )
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12525
12526     ;;
12527 esac
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533   eval "$as_ac_Header=\$ac_header_preproc"
12534 fi
12535 ac_res=`eval echo '${'$as_ac_Header'}'`
12536                { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12538
12539 fi
12540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541   cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543 _ACEOF
12544
12545 fi
12546
12547 done
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12573 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12574 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12575 __fsetlocking
12576 do
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12591 #define $ac_func innocuous_$ac_func
12592
12593 /* System header to define __stub macros and hopefully few prototypes,
12594     which can conflict with char $ac_func (); below.
12595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596     <limits.h> exists even on freestanding compilers.  */
12597
12598 #ifdef __STDC__
12599 # include <limits.h>
12600 #else
12601 # include <assert.h>
12602 #endif
12603
12604 #undef $ac_func
12605
12606 /* Override any GCC internal prototype to avoid an error.
12607    Use char because int might match the return type of a GCC
12608    builtin and then its argument prototype would still apply.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char $ac_func ();
12613 /* The GNU C library defines this for functions which it implements
12614     to always fail with ENOSYS.  Some functions are actually named
12615     something starting with __ and the normal name is an alias.  */
12616 #if defined __stub_$ac_func || defined __stub___$ac_func
12617 choke me
12618 #endif
12619
12620 int
12621 main ()
12622 {
12623 return $ac_func ();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_link") 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643   { (case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_try") 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; } &&
12652          { ac_try='test -s conftest$ac_exeext'
12653   { (case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_try") 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   eval "$as_ac_var=yes"
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667         eval "$as_ac_var=no"
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext \
12671       conftest$ac_exeext conftest.$ac_ext
12672 fi
12673 ac_res=`eval echo '${'$as_ac_var'}'`
12674                { echo "$as_me:$LINENO: result: $ac_res" >&5
12675 echo "${ECHO_T}$ac_res" >&6; }
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12677   cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12679 _ACEOF
12680
12681 fi
12682 done
12683
12684
12685
12686   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12687 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12688 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697 #include <stdio.h>
12698 int
12699 main ()
12700 {
12701
12702 #ifndef _snprintf
12703   char *p = (char *) _snprintf;
12704 #endif
12705
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_compile") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } &&
12724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12725   { (case "(($ac_try" in
12726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727   *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730   (eval "$ac_try") 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); }; } &&
12734          { ac_try='test -s conftest.$ac_objext'
12735   { (case "(($ac_try" in
12736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737   *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740   (eval "$ac_try") 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); }; }; then
12744   ac_cv_have_decl__snprintf=yes
12745 else
12746   echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12748
12749         ac_cv_have_decl__snprintf=no
12750 fi
12751
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12755 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12756   if test $ac_cv_have_decl__snprintf = yes; then
12757     gt_value=1
12758   else
12759     gt_value=0
12760   fi
12761
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_DECL__SNPRINTF $gt_value
12764 _ACEOF
12765
12766
12767
12768   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12769 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12770 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773   cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h.  */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h.  */
12779 #include <stdio.h>
12780 int
12781 main ()
12782 {
12783
12784 #ifndef _snwprintf
12785   char *p = (char *) _snwprintf;
12786 #endif
12787
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_compile") 2>conftest.er1
12800   ac_status=$?
12801   grep -v '^ *+' conftest.er1 >conftest.err
12802   rm -f conftest.er1
12803   cat conftest.err >&5
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } &&
12806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12807   { (case "(($ac_try" in
12808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809   *) ac_try_echo=$ac_try;;
12810 esac
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812   (eval "$ac_try") 2>&5
12813   ac_status=$?
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); }; } &&
12816          { ac_try='test -s conftest.$ac_objext'
12817   { (case "(($ac_try" in
12818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819   *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822   (eval "$ac_try") 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; }; then
12826   ac_cv_have_decl__snwprintf=yes
12827 else
12828   echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12830
12831         ac_cv_have_decl__snwprintf=no
12832 fi
12833
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 fi
12836 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12837 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12838   if test $ac_cv_have_decl__snwprintf = yes; then
12839     gt_value=1
12840   else
12841     gt_value=0
12842   fi
12843
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_DECL__SNWPRINTF $gt_value
12846 _ACEOF
12847
12848
12849
12850
12851   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12852 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12853 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h.  */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h.  */
12862 #include <stdio.h>
12863 int
12864 main ()
12865 {
12866
12867 #ifndef feof_unlocked
12868   char *p = (char *) feof_unlocked;
12869 #endif
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879   *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882   (eval "$ac_compile") 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12890   { (case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895   (eval "$ac_try") 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; } &&
12899          { ac_try='test -s conftest.$ac_objext'
12900   { (case "(($ac_try" in
12901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902   *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905   (eval "$ac_try") 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; }; then
12909   ac_cv_have_decl_feof_unlocked=yes
12910 else
12911   echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914         ac_cv_have_decl_feof_unlocked=no
12915 fi
12916
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 fi
12919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12920 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12921   if test $ac_cv_have_decl_feof_unlocked = yes; then
12922     gt_value=1
12923   else
12924     gt_value=0
12925   fi
12926
12927 cat >>confdefs.h <<_ACEOF
12928 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12929 _ACEOF
12930
12931
12932
12933   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12934 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12935 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938   cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944 #include <stdio.h>
12945 int
12946 main ()
12947 {
12948
12949 #ifndef fgets_unlocked
12950   char *p = (char *) fgets_unlocked;
12951 #endif
12952
12953   ;
12954   return 0;
12955 }
12956 _ACEOF
12957 rm -f conftest.$ac_objext
12958 if { (ac_try="$ac_compile"
12959 case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_compile") 2>conftest.er1
12965   ac_status=$?
12966   grep -v '^ *+' conftest.er1 >conftest.err
12967   rm -f conftest.er1
12968   cat conftest.err >&5
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } &&
12971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972   { (case "(($ac_try" in
12973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974   *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977   (eval "$ac_try") 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; } &&
12981          { ac_try='test -s conftest.$ac_objext'
12982   { (case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_try") 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; }; then
12991   ac_cv_have_decl_fgets_unlocked=yes
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996         ac_cv_have_decl_fgets_unlocked=no
12997 fi
12998
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 fi
13001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
13002 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
13003   if test $ac_cv_have_decl_fgets_unlocked = yes; then
13004     gt_value=1
13005   else
13006     gt_value=0
13007   fi
13008
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13011 _ACEOF
13012
13013
13014
13015   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13016 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13017 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026 #include <stdio.h>
13027 int
13028 main ()
13029 {
13030
13031 #ifndef getc_unlocked
13032   char *p = (char *) getc_unlocked;
13033 #endif
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (ac_try="$ac_compile"
13041 case "(($ac_try" in
13042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043   *) ac_try_echo=$ac_try;;
13044 esac
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046   (eval "$ac_compile") 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } &&
13053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054   { (case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_try") 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; } &&
13063          { ac_try='test -s conftest.$ac_objext'
13064   { (case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_try") 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }; then
13073   ac_cv_have_decl_getc_unlocked=yes
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078         ac_cv_have_decl_getc_unlocked=no
13079 fi
13080
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 fi
13083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13084 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13085   if test $ac_cv_have_decl_getc_unlocked = yes; then
13086     gt_value=1
13087   else
13088     gt_value=0
13089   fi
13090
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13093 _ACEOF
13094
13095
13096
13097   case $gt_cv_func_printf_posix in
13098     *yes) HAVE_POSIX_PRINTF=1 ;;
13099     *) HAVE_POSIX_PRINTF=0 ;;
13100   esac
13101
13102   if test "$ac_cv_func_asprintf" = yes; then
13103     HAVE_ASPRINTF=1
13104   else
13105     HAVE_ASPRINTF=0
13106   fi
13107
13108   if test "$ac_cv_func_snprintf" = yes; then
13109     HAVE_SNPRINTF=1
13110   else
13111     HAVE_SNPRINTF=0
13112   fi
13113
13114   if test "$ac_cv_func_wprintf" = yes; then
13115     HAVE_WPRINTF=1
13116   else
13117     HAVE_WPRINTF=0
13118   fi
13119
13120
13121
13122
13123
13124
13125
13126           am_save_CPPFLAGS="$CPPFLAGS"
13127
13128   for element in $INCICONV; do
13129     haveit=
13130     for x in $CPPFLAGS; do
13131
13132   acl_save_prefix="$prefix"
13133   prefix="$acl_final_prefix"
13134   acl_save_exec_prefix="$exec_prefix"
13135   exec_prefix="$acl_final_exec_prefix"
13136   eval x=\"$x\"
13137   exec_prefix="$acl_save_exec_prefix"
13138   prefix="$acl_save_prefix"
13139
13140       if test "X$x" = "X$element"; then
13141         haveit=yes
13142         break
13143       fi
13144     done
13145     if test -z "$haveit"; then
13146       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13147     fi
13148   done
13149
13150
13151   { echo "$as_me:$LINENO: checking for iconv" >&5
13152 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13153 if test "${am_cv_func_iconv+set}" = set; then
13154   echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156
13157     am_cv_func_iconv="no, consider installing GNU libiconv"
13158     am_cv_lib_iconv=no
13159     cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h.  */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h.  */
13165 #include <stdlib.h>
13166 #include <iconv.h>
13167 int
13168 main ()
13169 {
13170 iconv_t cd = iconv_open("","");
13171        iconv(cd,NULL,NULL,NULL,NULL);
13172        iconv_close(cd);
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_link") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } &&
13191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13192   { (case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_try") 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; } &&
13201          { ac_try='test -s conftest$ac_exeext'
13202   { (case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_try") 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; }; then
13211   am_cv_func_iconv=yes
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216
13217 fi
13218
13219 rm -f core conftest.err conftest.$ac_objext \
13220       conftest$ac_exeext conftest.$ac_ext
13221     if test "$am_cv_func_iconv" != yes; then
13222       am_save_LIBS="$LIBS"
13223       LIBS="$LIBS $LIBICONV"
13224       cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230 #include <stdlib.h>
13231 #include <iconv.h>
13232 int
13233 main ()
13234 {
13235 iconv_t cd = iconv_open("","");
13236          iconv(cd,NULL,NULL,NULL,NULL);
13237          iconv_close(cd);
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_link") 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257   { (case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_try") 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; } &&
13266          { ac_try='test -s conftest$ac_exeext'
13267   { (case "(($ac_try" in
13268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269   *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272   (eval "$ac_try") 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; }; then
13276   am_cv_lib_iconv=yes
13277         am_cv_func_iconv=yes
13278 else
13279   echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282
13283 fi
13284
13285 rm -f core conftest.err conftest.$ac_objext \
13286       conftest$ac_exeext conftest.$ac_ext
13287       LIBS="$am_save_LIBS"
13288     fi
13289
13290 fi
13291 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13292 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13293   if test "$am_cv_func_iconv" = yes; then
13294
13295 cat >>confdefs.h <<\_ACEOF
13296 #define HAVE_ICONV 1
13297 _ACEOF
13298
13299   fi
13300   if test "$am_cv_lib_iconv" = yes; then
13301     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13302 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13303     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13304 echo "${ECHO_T}$LIBICONV" >&6; }
13305   else
13306             CPPFLAGS="$am_save_CPPFLAGS"
13307     LIBICONV=
13308     LTLIBICONV=
13309   fi
13310
13311
13312
13313   if test "$am_cv_func_iconv" = yes; then
13314     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13315 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13316     if test "${am_cv_proto_iconv+set}" = set; then
13317   echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319
13320       cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326
13327 #include <stdlib.h>
13328 #include <iconv.h>
13329 extern
13330 #ifdef __cplusplus
13331 "C"
13332 #endif
13333 #if defined(__STDC__) || defined(__cplusplus)
13334 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13335 #else
13336 size_t iconv();
13337 #endif
13338
13339 int
13340 main ()
13341 {
13342
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354   (eval "$ac_compile") 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } &&
13361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13362   { (case "(($ac_try" in
13363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364   *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367   (eval "$ac_try") 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; } &&
13371          { ac_try='test -s conftest.$ac_objext'
13372   { (case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377   (eval "$ac_try") 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   am_cv_proto_iconv_arg1=""
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386         am_cv_proto_iconv_arg1="const"
13387 fi
13388
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390       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);"
13391 fi
13392
13393     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13394     { echo "$as_me:$LINENO: result: ${ac_t:-
13395          }$am_cv_proto_iconv" >&5
13396 echo "${ECHO_T}${ac_t:-
13397          }$am_cv_proto_iconv" >&6; }
13398
13399 cat >>confdefs.h <<_ACEOF
13400 #define ICONV_CONST $am_cv_proto_iconv_arg1
13401 _ACEOF
13402
13403   fi
13404
13405
13406   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13407 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13408 if test "${am_cv_langinfo_codeset+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 #include <langinfo.h>
13418 int
13419 main ()
13420 {
13421 char* cs = nl_langinfo(CODESET);
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_link") 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } &&
13440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441   { (case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_try") 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; } &&
13450          { ac_try='test -s conftest$ac_exeext'
13451   { (case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_try") 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   am_cv_langinfo_codeset=yes
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465         am_cv_langinfo_codeset=no
13466 fi
13467
13468 rm -f core conftest.err conftest.$ac_objext \
13469       conftest$ac_exeext conftest.$ac_ext
13470
13471 fi
13472 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13473 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13474   if test $am_cv_langinfo_codeset = yes; then
13475
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_LANGINFO_CODESET 1
13478 _ACEOF
13479
13480   fi
13481
13482   if test $ac_cv_header_locale_h = yes; then
13483
13484   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13485 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13486 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495 #include <locale.h>
13496 int
13497 main ()
13498 {
13499 return LC_MESSAGES
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508   *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511   (eval "$ac_link") 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13519   { (case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524   (eval "$ac_try") 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; } &&
13528          { ac_try='test -s conftest$ac_exeext'
13529   { (case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_try") 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   gt_cv_val_LC_MESSAGES=yes
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543         gt_cv_val_LC_MESSAGES=no
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext \
13547       conftest$ac_exeext conftest.$ac_ext
13548 fi
13549 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13550 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13551   if test $gt_cv_val_LC_MESSAGES = yes; then
13552
13553 cat >>confdefs.h <<\_ACEOF
13554 #define HAVE_LC_MESSAGES 1
13555 _ACEOF
13556
13557   fi
13558
13559   fi
13560
13561   if test -n "$INTL_MACOSX_LIBS"; then
13562     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13563   fi
13564
13565                       for ac_prog in bison
13566 do
13567   # Extract the first word of "$ac_prog", so it can be a program name with args.
13568 set dummy $ac_prog; ac_word=$2
13569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13571 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   if test -n "$INTLBISON"; then
13575   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13576 else
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580   IFS=$as_save_IFS
13581   test -z "$as_dir" && as_dir=.
13582   for ac_exec_ext in '' $ac_executable_extensions; do
13583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13584     ac_cv_prog_INTLBISON="$ac_prog"
13585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13586     break 2
13587   fi
13588 done
13589 done
13590 IFS=$as_save_IFS
13591
13592 fi
13593 fi
13594 INTLBISON=$ac_cv_prog_INTLBISON
13595 if test -n "$INTLBISON"; then
13596   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13597 echo "${ECHO_T}$INTLBISON" >&6; }
13598 else
13599   { echo "$as_me:$LINENO: result: no" >&5
13600 echo "${ECHO_T}no" >&6; }
13601 fi
13602
13603
13604   test -n "$INTLBISON" && break
13605 done
13606
13607   if test -z "$INTLBISON"; then
13608     ac_verc_fail=yes
13609   else
13610         { echo "$as_me:$LINENO: checking version of bison" >&5
13611 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13612     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13613     case $ac_prog_version in
13614       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13615       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13616          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13617       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13618     esac
13619     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13620 echo "${ECHO_T}$ac_prog_version" >&6; }
13621   fi
13622   if test $ac_verc_fail = yes; then
13623     INTLBISON=:
13624   fi
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13642 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13643 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13644   echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646   gt_save_CPPFLAGS="$CPPFLAGS"
13647      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13648      gt_save_LIBS="$LIBS"
13649      LIBS="$LIBS -framework CoreFoundation"
13650      cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 #include <CFPreferences.h>
13657 int
13658 main ()
13659 {
13660 CFPreferencesCopyAppValue(NULL, NULL)
13661   ;
13662   return 0;
13663 }
13664 _ACEOF
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (ac_try="$ac_link"
13667 case "(($ac_try" in
13668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669   *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672   (eval "$ac_link") 2>conftest.er1
13673   ac_status=$?
13674   grep -v '^ *+' conftest.er1 >conftest.err
13675   rm -f conftest.er1
13676   cat conftest.err >&5
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } &&
13679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13680   { (case "(($ac_try" in
13681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682   *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685   (eval "$ac_try") 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; } &&
13689          { ac_try='test -s conftest$ac_exeext'
13690   { (case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695   (eval "$ac_try") 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; }; then
13699   gt_cv_func_CFPreferencesCopyAppValue=yes
13700 else
13701   echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704         gt_cv_func_CFPreferencesCopyAppValue=no
13705 fi
13706
13707 rm -f core conftest.err conftest.$ac_objext \
13708       conftest$ac_exeext conftest.$ac_ext
13709      CPPFLAGS="$gt_save_CPPFLAGS"
13710      LIBS="$gt_save_LIBS"
13711 fi
13712 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13713 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13714   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13715
13716 cat >>confdefs.h <<\_ACEOF
13717 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13718 _ACEOF
13719
13720   fi
13721     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13722 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13723 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726   gt_save_CPPFLAGS="$CPPFLAGS"
13727      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13728      gt_save_LIBS="$LIBS"
13729      LIBS="$LIBS -framework CoreFoundation"
13730      cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 #include <CFLocale.h>
13737 int
13738 main ()
13739 {
13740 CFLocaleCopyCurrent();
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (ac_try="$ac_link"
13747 case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_link") 2>conftest.er1
13753   ac_status=$?
13754   grep -v '^ *+' conftest.er1 >conftest.err
13755   rm -f conftest.er1
13756   cat conftest.err >&5
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } &&
13759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; } &&
13769          { ac_try='test -s conftest$ac_exeext'
13770   { (case "(($ac_try" in
13771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772   *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775   (eval "$ac_try") 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; }; then
13779   gt_cv_func_CFLocaleCopyCurrent=yes
13780 else
13781   echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13783
13784         gt_cv_func_CFLocaleCopyCurrent=no
13785 fi
13786
13787 rm -f core conftest.err conftest.$ac_objext \
13788       conftest$ac_exeext conftest.$ac_ext
13789      CPPFLAGS="$gt_save_CPPFLAGS"
13790      LIBS="$gt_save_LIBS"
13791 fi
13792 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13793 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13794   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_CFLOCALECOPYCURRENT 1
13798 _ACEOF
13799
13800   fi
13801   INTL_MACOSX_LIBS=
13802   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13803     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13804   fi
13805
13806
13807
13808
13809   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13810 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13811     # Check whether --enable-nls was given.
13812 if test "${enable_nls+set}" = set; then
13813   enableval=$enable_nls; USE_NLS=$enableval
13814 else
13815   USE_NLS=yes
13816 fi
13817
13818   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13819 echo "${ECHO_T}$USE_NLS" >&6; }
13820
13821
13822
13823
13824     BUILD_INCLUDED_LIBINTL=no
13825     USE_INCLUDED_LIBINTL=no
13826
13827   LIBINTL=
13828   LTLIBINTL=
13829   POSUB=
13830
13831     if test "$USE_NLS" = "yes"; then
13832     gt_use_preinstalled_gnugettext=no
13833
13834       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13835 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13836
13837 # Check whether --with-included-gettext was given.
13838 if test "${with_included_gettext+set}" = set; then
13839   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13840 else
13841   nls_cv_force_use_gnu_gettext=no
13842 fi
13843
13844       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13845 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13846
13847       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13848       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13849
13850
13851
13852
13853
13854
13855         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13856 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13857 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13858   echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860   cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866 #include <libintl.h>
13867 extern int _nl_msg_cat_cntr;
13868 extern int *_nl_domain_bindings;
13869 int
13870 main ()
13871 {
13872 bindtextdomain ("", "");
13873 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885   (eval "$ac_link") 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893   { (case "(($ac_try" in
13894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895   *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898   (eval "$ac_try") 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; } &&
13902          { ac_try='test -s conftest$ac_exeext'
13903   { (case "(($ac_try" in
13904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905   *) ac_try_echo=$ac_try;;
13906 esac
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908   (eval "$ac_try") 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; }; then
13912   gt_cv_func_gnugettext1_libc=yes
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917         gt_cv_func_gnugettext1_libc=no
13918 fi
13919
13920 rm -f core conftest.err conftest.$ac_objext \
13921       conftest$ac_exeext conftest.$ac_ext
13922 fi
13923 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13924 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13925
13926         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13927
13928
13929
13930     use_additional=yes
13931
13932   acl_save_prefix="$prefix"
13933   prefix="$acl_final_prefix"
13934   acl_save_exec_prefix="$exec_prefix"
13935   exec_prefix="$acl_final_exec_prefix"
13936
13937     eval additional_includedir=\"$includedir\"
13938     eval additional_libdir=\"$libdir\"
13939
13940   exec_prefix="$acl_save_exec_prefix"
13941   prefix="$acl_save_prefix"
13942
13943
13944 # Check whether --with-libintl-prefix was given.
13945 if test "${with_libintl_prefix+set}" = set; then
13946   withval=$with_libintl_prefix;
13947     if test "X$withval" = "Xno"; then
13948       use_additional=no
13949     else
13950       if test "X$withval" = "X"; then
13951
13952   acl_save_prefix="$prefix"
13953   prefix="$acl_final_prefix"
13954   acl_save_exec_prefix="$exec_prefix"
13955   exec_prefix="$acl_final_exec_prefix"
13956
13957           eval additional_includedir=\"$includedir\"
13958           eval additional_libdir=\"$libdir\"
13959
13960   exec_prefix="$acl_save_exec_prefix"
13961   prefix="$acl_save_prefix"
13962
13963       else
13964         additional_includedir="$withval/include"
13965         additional_libdir="$withval/lib"
13966       fi
13967     fi
13968
13969 fi
13970
13971       LIBINTL=
13972   LTLIBINTL=
13973   INCINTL=
13974   rpathdirs=
13975   ltrpathdirs=
13976   names_already_handled=
13977   names_next_round='intl '
13978   while test -n "$names_next_round"; do
13979     names_this_round="$names_next_round"
13980     names_next_round=
13981     for name in $names_this_round; do
13982       already_handled=
13983       for n in $names_already_handled; do
13984         if test "$n" = "$name"; then
13985           already_handled=yes
13986           break
13987         fi
13988       done
13989       if test -z "$already_handled"; then
13990         names_already_handled="$names_already_handled $name"
13991                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13992         eval value=\"\$HAVE_LIB$uppername\"
13993         if test -n "$value"; then
13994           if test "$value" = yes; then
13995             eval value=\"\$LIB$uppername\"
13996             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13997             eval value=\"\$LTLIB$uppername\"
13998             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13999           else
14000                                     :
14001           fi
14002         else
14003                               found_dir=
14004           found_la=
14005           found_so=
14006           found_a=
14007           if test $use_additional = yes; then
14008             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14009               found_dir="$additional_libdir"
14010               found_so="$additional_libdir/lib$name.$shlibext"
14011               if test -f "$additional_libdir/lib$name.la"; then
14012                 found_la="$additional_libdir/lib$name.la"
14013               fi
14014             else
14015               if test -f "$additional_libdir/lib$name.$libext"; then
14016                 found_dir="$additional_libdir"
14017                 found_a="$additional_libdir/lib$name.$libext"
14018                 if test -f "$additional_libdir/lib$name.la"; then
14019                   found_la="$additional_libdir/lib$name.la"
14020                 fi
14021               fi
14022             fi
14023           fi
14024           if test "X$found_dir" = "X"; then
14025             for x in $LDFLAGS $LTLIBINTL; do
14026
14027   acl_save_prefix="$prefix"
14028   prefix="$acl_final_prefix"
14029   acl_save_exec_prefix="$exec_prefix"
14030   exec_prefix="$acl_final_exec_prefix"
14031   eval x=\"$x\"
14032   exec_prefix="$acl_save_exec_prefix"
14033   prefix="$acl_save_prefix"
14034
14035               case "$x" in
14036                 -L*)
14037                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14038                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14039                     found_dir="$dir"
14040                     found_so="$dir/lib$name.$shlibext"
14041                     if test -f "$dir/lib$name.la"; then
14042                       found_la="$dir/lib$name.la"
14043                     fi
14044                   else
14045                     if test -f "$dir/lib$name.$libext"; then
14046                       found_dir="$dir"
14047                       found_a="$dir/lib$name.$libext"
14048                       if test -f "$dir/lib$name.la"; then
14049                         found_la="$dir/lib$name.la"
14050                       fi
14051                     fi
14052                   fi
14053                   ;;
14054               esac
14055               if test "X$found_dir" != "X"; then
14056                 break
14057               fi
14058             done
14059           fi
14060           if test "X$found_dir" != "X"; then
14061                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14062             if test "X$found_so" != "X"; then
14063                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14064                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14065               else
14066                                                                                 haveit=
14067                 for x in $ltrpathdirs; do
14068                   if test "X$x" = "X$found_dir"; then
14069                     haveit=yes
14070                     break
14071                   fi
14072                 done
14073                 if test -z "$haveit"; then
14074                   ltrpathdirs="$ltrpathdirs $found_dir"
14075                 fi
14076                                 if test "$hardcode_direct" = yes; then
14077                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14078                 else
14079                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14080                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14081                                                             haveit=
14082                     for x in $rpathdirs; do
14083                       if test "X$x" = "X$found_dir"; then
14084                         haveit=yes
14085                         break
14086                       fi
14087                     done
14088                     if test -z "$haveit"; then
14089                       rpathdirs="$rpathdirs $found_dir"
14090                     fi
14091                   else
14092                                                                                 haveit=
14093                     for x in $LDFLAGS $LIBINTL; do
14094
14095   acl_save_prefix="$prefix"
14096   prefix="$acl_final_prefix"
14097   acl_save_exec_prefix="$exec_prefix"
14098   exec_prefix="$acl_final_exec_prefix"
14099   eval x=\"$x\"
14100   exec_prefix="$acl_save_exec_prefix"
14101   prefix="$acl_save_prefix"
14102
14103                       if test "X$x" = "X-L$found_dir"; then
14104                         haveit=yes
14105                         break
14106                       fi
14107                     done
14108                     if test -z "$haveit"; then
14109                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14110                     fi
14111                     if test "$hardcode_minus_L" != no; then
14112                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14113                     else
14114                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14115                     fi
14116                   fi
14117                 fi
14118               fi
14119             else
14120               if test "X$found_a" != "X"; then
14121                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14122               else
14123                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14124               fi
14125             fi
14126                         additional_includedir=
14127             case "$found_dir" in
14128               */lib | */lib/)
14129                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14130                 additional_includedir="$basedir/include"
14131                 ;;
14132             esac
14133             if test "X$additional_includedir" != "X"; then
14134                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14135                 haveit=
14136                 if test "X$additional_includedir" = "X/usr/local/include"; then
14137                   if test -n "$GCC"; then
14138                     case $host_os in
14139                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14140                     esac
14141                   fi
14142                 fi
14143                 if test -z "$haveit"; then
14144                   for x in $CPPFLAGS $INCINTL; do
14145
14146   acl_save_prefix="$prefix"
14147   prefix="$acl_final_prefix"
14148   acl_save_exec_prefix="$exec_prefix"
14149   exec_prefix="$acl_final_exec_prefix"
14150   eval x=\"$x\"
14151   exec_prefix="$acl_save_exec_prefix"
14152   prefix="$acl_save_prefix"
14153
14154                     if test "X$x" = "X-I$additional_includedir"; then
14155                       haveit=yes
14156                       break
14157                     fi
14158                   done
14159                   if test -z "$haveit"; then
14160                     if test -d "$additional_includedir"; then
14161                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14162                     fi
14163                   fi
14164                 fi
14165               fi
14166             fi
14167                         if test -n "$found_la"; then
14168                                                         save_libdir="$libdir"
14169               case "$found_la" in
14170                 */* | *\\*) . "$found_la" ;;
14171                 *) . "./$found_la" ;;
14172               esac
14173               libdir="$save_libdir"
14174                             for dep in $dependency_libs; do
14175                 case "$dep" in
14176                   -L*)
14177                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14178                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14179                       haveit=
14180                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14181                         if test -n "$GCC"; then
14182                           case $host_os in
14183                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14184                           esac
14185                         fi
14186                       fi
14187                       if test -z "$haveit"; then
14188                         haveit=
14189                         for x in $LDFLAGS $LIBINTL; do
14190
14191   acl_save_prefix="$prefix"
14192   prefix="$acl_final_prefix"
14193   acl_save_exec_prefix="$exec_prefix"
14194   exec_prefix="$acl_final_exec_prefix"
14195   eval x=\"$x\"
14196   exec_prefix="$acl_save_exec_prefix"
14197   prefix="$acl_save_prefix"
14198
14199                           if test "X$x" = "X-L$additional_libdir"; then
14200                             haveit=yes
14201                             break
14202                           fi
14203                         done
14204                         if test -z "$haveit"; then
14205                           if test -d "$additional_libdir"; then
14206                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14207                           fi
14208                         fi
14209                         haveit=
14210                         for x in $LDFLAGS $LTLIBINTL; do
14211
14212   acl_save_prefix="$prefix"
14213   prefix="$acl_final_prefix"
14214   acl_save_exec_prefix="$exec_prefix"
14215   exec_prefix="$acl_final_exec_prefix"
14216   eval x=\"$x\"
14217   exec_prefix="$acl_save_exec_prefix"
14218   prefix="$acl_save_prefix"
14219
14220                           if test "X$x" = "X-L$additional_libdir"; then
14221                             haveit=yes
14222                             break
14223                           fi
14224                         done
14225                         if test -z "$haveit"; then
14226                           if test -d "$additional_libdir"; then
14227                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14228                           fi
14229                         fi
14230                       fi
14231                     fi
14232                     ;;
14233                   -R*)
14234                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14235                     if test "$enable_rpath" != no; then
14236                                                                   haveit=
14237                       for x in $rpathdirs; do
14238                         if test "X$x" = "X$dir"; then
14239                           haveit=yes
14240                           break
14241                         fi
14242                       done
14243                       if test -z "$haveit"; then
14244                         rpathdirs="$rpathdirs $dir"
14245                       fi
14246                                                                   haveit=
14247                       for x in $ltrpathdirs; do
14248                         if test "X$x" = "X$dir"; then
14249                           haveit=yes
14250                           break
14251                         fi
14252                       done
14253                       if test -z "$haveit"; then
14254                         ltrpathdirs="$ltrpathdirs $dir"
14255                       fi
14256                     fi
14257                     ;;
14258                   -l*)
14259                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14260                     ;;
14261                   *.la)
14262                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14263                     ;;
14264                   *)
14265                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14266                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14267                     ;;
14268                 esac
14269               done
14270             fi
14271           else
14272                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14273             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14274           fi
14275         fi
14276       fi
14277     done
14278   done
14279   if test "X$rpathdirs" != "X"; then
14280     if test -n "$hardcode_libdir_separator"; then
14281                         alldirs=
14282       for found_dir in $rpathdirs; do
14283         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14284       done
14285             acl_save_libdir="$libdir"
14286       libdir="$alldirs"
14287       eval flag=\"$hardcode_libdir_flag_spec\"
14288       libdir="$acl_save_libdir"
14289       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14290     else
14291             for found_dir in $rpathdirs; do
14292         acl_save_libdir="$libdir"
14293         libdir="$found_dir"
14294         eval flag=\"$hardcode_libdir_flag_spec\"
14295         libdir="$acl_save_libdir"
14296         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14297       done
14298     fi
14299   fi
14300   if test "X$ltrpathdirs" != "X"; then
14301             for found_dir in $ltrpathdirs; do
14302       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14303     done
14304   fi
14305
14306           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14307 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14308 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311   gt_save_CPPFLAGS="$CPPFLAGS"
14312             CPPFLAGS="$CPPFLAGS $INCINTL"
14313             gt_save_LIBS="$LIBS"
14314             LIBS="$LIBS $LIBINTL"
14315                         cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 #include <libintl.h>
14322 extern int _nl_msg_cat_cntr;
14323 extern
14324 #ifdef __cplusplus
14325 "C"
14326 #endif
14327 const char *_nl_expand_alias (const char *);
14328 int
14329 main ()
14330 {
14331 bindtextdomain ("", "");
14332 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (ac_try="$ac_link"
14339 case "(($ac_try" in
14340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341   *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344   (eval "$ac_link") 2>conftest.er1
14345   ac_status=$?
14346   grep -v '^ *+' conftest.er1 >conftest.err
14347   rm -f conftest.er1
14348   cat conftest.err >&5
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352   { (case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_try") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; } &&
14361          { ac_try='test -s conftest$ac_exeext'
14362   { (case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_try") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   gt_cv_func_gnugettext1_libintl=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376         gt_cv_func_gnugettext1_libintl=no
14377 fi
14378
14379 rm -f core conftest.err conftest.$ac_objext \
14380       conftest$ac_exeext conftest.$ac_ext
14381                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14382               LIBS="$LIBS $LIBICONV"
14383               cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h.  */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h.  */
14389 #include <libintl.h>
14390 extern int _nl_msg_cat_cntr;
14391 extern
14392 #ifdef __cplusplus
14393 "C"
14394 #endif
14395 const char *_nl_expand_alias (const char *);
14396 int
14397 main ()
14398 {
14399 bindtextdomain ("", "");
14400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412   (eval "$ac_link") 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14420   { (case "(($ac_try" in
14421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422   *) ac_try_echo=$ac_try;;
14423 esac
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425   (eval "$ac_try") 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; } &&
14429          { ac_try='test -s conftest$ac_exeext'
14430   { (case "(($ac_try" in
14431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432   *) ac_try_echo=$ac_try;;
14433 esac
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435   (eval "$ac_try") 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }; }; then
14439   LIBINTL="$LIBINTL $LIBICONV"
14440                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14441                 gt_cv_func_gnugettext1_libintl=yes
14442
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext \
14451       conftest$ac_exeext conftest.$ac_ext
14452             fi
14453             CPPFLAGS="$gt_save_CPPFLAGS"
14454             LIBS="$gt_save_LIBS"
14455 fi
14456 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14457 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14458         fi
14459
14460                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14461            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14462                 && test "$PACKAGE" != gettext-runtime \
14463                 && test "$PACKAGE" != gettext-tools; }; then
14464           gt_use_preinstalled_gnugettext=yes
14465         else
14466                     LIBINTL=
14467           LTLIBINTL=
14468           INCINTL=
14469         fi
14470
14471
14472         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14473                               nls_cv_use_gnu_gettext=yes
14474         fi
14475       fi
14476
14477       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14478                 BUILD_INCLUDED_LIBINTL=yes
14479         USE_INCLUDED_LIBINTL=yes
14480         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14481         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14482         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14483       fi
14484
14485       CATOBJEXT=
14486       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14487          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14488                 CATOBJEXT=.gmo
14489       fi
14490
14491
14492     if test -n "$INTL_MACOSX_LIBS"; then
14493       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14494          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14495                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14496         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14497       fi
14498     fi
14499
14500     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14501        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14502
14503 cat >>confdefs.h <<\_ACEOF
14504 #define ENABLE_NLS 1
14505 _ACEOF
14506
14507     else
14508       USE_NLS=no
14509     fi
14510   fi
14511
14512   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14513 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14514   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14515 echo "${ECHO_T}$USE_NLS" >&6; }
14516   if test "$USE_NLS" = "yes"; then
14517     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14518 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14519     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14520       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14521         gt_source="external libintl"
14522       else
14523         gt_source="libc"
14524       fi
14525     else
14526       gt_source="included intl directory"
14527     fi
14528     { echo "$as_me:$LINENO: result: $gt_source" >&5
14529 echo "${ECHO_T}$gt_source" >&6; }
14530   fi
14531
14532   if test "$USE_NLS" = "yes"; then
14533
14534     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14535       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14536         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14537 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14538         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14539 echo "${ECHO_T}$LIBINTL" >&6; }
14540
14541   for element in $INCINTL; do
14542     haveit=
14543     for x in $CPPFLAGS; do
14544
14545   acl_save_prefix="$prefix"
14546   prefix="$acl_final_prefix"
14547   acl_save_exec_prefix="$exec_prefix"
14548   exec_prefix="$acl_final_exec_prefix"
14549   eval x=\"$x\"
14550   exec_prefix="$acl_save_exec_prefix"
14551   prefix="$acl_save_prefix"
14552
14553       if test "X$x" = "X$element"; then
14554         haveit=yes
14555         break
14556       fi
14557     done
14558     if test -z "$haveit"; then
14559       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14560     fi
14561   done
14562
14563       fi
14564
14565
14566 cat >>confdefs.h <<\_ACEOF
14567 #define HAVE_GETTEXT 1
14568 _ACEOF
14569
14570
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_DCGETTEXT 1
14573 _ACEOF
14574
14575     fi
14576
14577         POSUB=po
14578   fi
14579
14580
14581             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14582       BUILD_INCLUDED_LIBINTL=yes
14583     fi
14584
14585
14586
14587
14588
14589         nls_cv_header_intl=
14590     nls_cv_header_libgt=
14591
14592         DATADIRNAME=share
14593
14594
14595         INSTOBJEXT=.mo
14596
14597
14598         GENCAT=gencat
14599
14600
14601         INTLOBJS=
14602     if test "$USE_INCLUDED_LIBINTL" = yes; then
14603       INTLOBJS="\$(GETTOBJS)"
14604     fi
14605
14606
14607         INTL_LIBTOOL_SUFFIX_PREFIX=
14608
14609
14610
14611     INTLLIBS="$LIBINTL"
14612
14613
14614
14615
14616
14617
14618 fi
14619
14620
14621 support_mysql=no
14622 support_sqlite=no
14623 support_sqlite3=no
14624 support_postgresql=no
14625 support_smartalloc=yes
14626 support_readline=yes
14627 support_conio=yes
14628 support_gnome=no
14629 support_bat=no
14630 support_wx_console=no
14631 support_tls=no
14632 support_crypto=no
14633 gnome_version=
14634 wx_version=
14635 support_static_tools=no
14636 support_static_fd=no
14637 support_static_sd=no
14638 support_static_dir=no
14639 support_static_cons=no
14640 support_python=no
14641 build_client_only=no
14642 build_dird=yes
14643 build_stored=yes
14644 cats=
14645 db_type=Internal
14646 DB_TYPE=bdb
14647
14648
14649 # -------------------------------------------
14650 # gnome (default off)
14651 # -------------------------------------------
14652 # Check whether --enable-gnome was given.
14653 if test "${enable_gnome+set}" = set; then
14654   enableval=$enable_gnome; if test x$enableval = xyes; then
14655     support_gnome=yes
14656   fi
14657 fi
14658
14659
14660 GNOME_DIR=
14661 if test x$support_gnome = xyes; then
14662   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14663   pkg=$?
14664   if test $pkg = 0; then
14665      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14666      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14667      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14668      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14669
14670
14671
14672
14673      GNOME_DIR=src/gnome2-console
14674      gnome_version="Version 2.x"
14675   else
14676      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14677 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14678    { (exit 1); exit 1; }; }
14679   fi
14680 fi
14681
14682
14683 # -------------------------------------------
14684 # bat (default off)
14685 # -------------------------------------------
14686 # Check whether --enable-bat was given.
14687 if test "${enable_bat+set}" = set; then
14688   enableval=$enable_bat; if test x$enableval = xyes; then
14689
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_BAT 1
14692 _ACEOF
14693
14694     support_bat=yes
14695   fi
14696 fi
14697
14698
14699 BAT_DIR=
14700 if test x$support_bat = xyes; then
14701   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14702   pkg=$?
14703   if test $pkg = 0; then
14704      BAT_DIR=src/qt-console
14705   else
14706      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14707 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14708    { (exit 1); exit 1; }; }
14709   fi
14710 fi
14711
14712 #
14713 #  If bat is enabled, we need the qwt library
14714 got_qwt=no
14715 QWT_INC=
14716 QWT_LDFLAGS=
14717 if test x$support_bat = xyes; then
14718    { echo "$as_me:$LINENO: checking for qwt support" >&5
14719 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
14720
14721 # Check whether --with-qwt was given.
14722 if test "${with_qwt+set}" = set; then
14723   withval=$with_qwt;
14724         case "$with_qwt" in
14725         no)
14726           ;;
14727         yes|*)
14728           if test -f ${with_qwt}/include/qwt.h; then
14729              QWT_INC="${with_qwt}/include"
14730              QWT_LDFLAGS="-L${with_qwt}/lib"
14731           fi
14732           ;;
14733         esac
14734
14735
14736 fi
14737
14738 #
14739 # Search in standard places, or --with-qwt not specified
14740 #
14741    if test x$QWT_INC = x; then
14742       for root in /usr /usr/local; do
14743          for ver in qwt qwt5; do
14744             if test -f ${root}/include/${ver}/qwt.h; then
14745                QWT_INC="${root}/include/${ver}"
14746                if test -d ${root}/lib64/; then
14747                   QWT_LDFLAGS="-L${root}/lib64"
14748                else
14749                   QWT_LDFLAGS="-L${root}/lib"
14750                fi
14751                got_qwt=yes
14752                break;
14753             fi
14754          done
14755       done
14756    fi
14757    if test x$QWT_INC = x; then
14758       { echo "$as_me:$LINENO: result: no" >&5
14759 echo "${ECHO_T}no" >&6; }
14760       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
14761 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
14762    { (exit 1); exit 1; }; }
14763       BAT_DIR=
14764       support_bat=no
14765    else
14766       { echo "$as_me:$LINENO: result: yes" >&5
14767 echo "${ECHO_T}yes" >&6; }
14768    fi
14769 fi
14770
14771
14772
14773
14774
14775
14776 # -------------------------------------------
14777 # bwx-console (default off)
14778 # -------------------------------------------
14779 # Check whether --enable-bwx-console was given.
14780 if test "${enable_bwx_console+set}" = set; then
14781   enableval=$enable_bwx_console; if test x$enableval = xyes; then
14782     support_wx_console=yes
14783   fi
14784 fi
14785
14786
14787 WX_DIR=
14788 if test x$support_wx_console = xyes; then
14789   abc=`$WXCONFIG $WXFLAGS --cppflags`
14790   pkg=$?
14791   if test $pkg = 0; then
14792      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14793      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14794      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14795
14796
14797
14798      WX_DIR=src/wx-console
14799   else
14800      echo " "
14801      echo "wx-config program not found. bwx-console disabled."
14802      echo " "
14803      support_wx_console=no
14804   fi
14805 fi
14806
14807
14808
14809 # -------------------------------------------
14810 # tray-monitor (default off)
14811 # -------------------------------------------
14812 # Check whether --enable-tray-monitor was given.
14813 if test "${enable_tray_monitor+set}" = set; then
14814   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14815     support_tray_monitor=yes
14816   fi
14817 fi
14818
14819
14820 TRAY_MONITOR_DIR=
14821 if test x$support_tray_monitor = xyes; then
14822   abc=`$PKGCONFIG --exists gtk+-2.0`
14823   pkg=$?
14824   if test $pkg = 0; then
14825      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14826      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14827
14828
14829      TRAY_MONITOR_DIR=src/tray-monitor
14830      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14831      pkg=$?
14832      if test $pkg = 0; then
14833      cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_GTK_2_4 1
14835 _ACEOF
14836
14837      fi
14838   fi
14839 fi
14840
14841
14842 # -------------------------------------------
14843 # smartalloc (default off)
14844 # -------------------------------------------
14845 # Check whether --enable-smartalloc was given.
14846 if test "${enable_smartalloc+set}" = set; then
14847   enableval=$enable_smartalloc; if test x$enableval = xno; then
14848     support_smartalloc=no
14849   fi
14850 fi
14851
14852
14853 if test x$support_smartalloc = xyes; then
14854    cat >>confdefs.h <<\_ACEOF
14855 #define SMARTALLOC 1
14856 _ACEOF
14857
14858 fi
14859
14860 # -------------------------------------------
14861 # static-tools (default off)
14862 # -------------------------------------------
14863 # Check whether --enable-static-tools was given.
14864 if test "${enable_static_tools+set}" = set; then
14865   enableval=$enable_static_tools; if test x$enableval = xyes; then
14866      support_static_tools=yes
14867    fi
14868 fi
14869
14870
14871 TTOOL_LDFLAGS=
14872 if test x$support_static_tools = xyes; then
14873    TTOOL_LDFLAGS="-static"
14874 fi
14875
14876
14877 # -------------------------------------------
14878 # static-fd    (default off)
14879 # -------------------------------------------
14880 # Check whether --enable-static-fd was given.
14881 if test "${enable_static_fd+set}" = set; then
14882   enableval=$enable_static_fd; if test x$enableval = xyes; then
14883      support_static_fd=yes
14884    fi
14885 fi
14886
14887
14888 STATIC_FD=
14889 if test x$support_static_fd = xyes; then
14890    STATIC_FD="static-bacula-fd"
14891 fi
14892
14893
14894 # -------------------------------------------
14895 # static-sd    (default off)
14896 # -------------------------------------------
14897 # Check whether --enable-static-sd was given.
14898 if test "${enable_static_sd+set}" = set; then
14899   enableval=$enable_static_sd; if test x$enableval = xyes; then
14900      support_static_sd=yes
14901    fi
14902 fi
14903
14904
14905 STATIC_SD=
14906 if test x$support_static_sd = xyes; then
14907    STATIC_SD="static-bacula-sd"
14908 fi
14909
14910
14911 # -------------------------------------------
14912 # static-dir   (default off)
14913 # -------------------------------------------
14914 # Check whether --enable-static-dir was given.
14915 if test "${enable_static_dir+set}" = set; then
14916   enableval=$enable_static_dir; if test x$enableval = xyes; then
14917      support_static_dir=yes
14918    fi
14919 fi
14920
14921
14922 STATIC_DIR=
14923 if test x$support_static_dir = xyes; then
14924    STATIC_DIR="static-bacula-dir"
14925 fi
14926
14927
14928 # -------------------------------------------
14929 # static-cons  (default off)
14930 # -------------------------------------------
14931 # Check whether --enable-static-cons was given.
14932 if test "${enable_static_cons+set}" = set; then
14933   enableval=$enable_static_cons; if test x$enableval = xyes; then
14934      support_static_cons=yes
14935    fi
14936 fi
14937
14938
14939 STATIC_CONS=
14940 STATIC_GNOME_CONS=
14941 STATIC_WX_CONS=
14942 if test x$support_static_cons = xyes; then
14943    STATIC_CONS="static-bconsole"
14944    STATIC_GNOME_CONS="static-bgnome-console"
14945    STATIC_WX_CONS="static-bwx-console"
14946 fi
14947
14948
14949
14950
14951 # -------------------------------------------
14952 # client_only  (default off)
14953 # -------------------------------------------
14954 # Check whether --enable-client-only was given.
14955 if test "${enable_client_only+set}" = set; then
14956   enableval=$enable_client_only; if test x$enableval = xyes; then
14957       build_client_only=yes
14958       db_type=None
14959       DB_TYPE=none
14960    fi
14961 fi
14962
14963 if test x$build_client_only = xno; then
14964    ALL_DIRS="subdirs"
14965 else
14966    ALL_DIRS=""
14967 fi
14968
14969
14970 # -------------------------------------------
14971 # director  (default on)
14972 # -------------------------------------------
14973 # Check whether --enable-build-dird was given.
14974 if test "${enable_build_dird+set}" = set; then
14975   enableval=$enable_build_dird; if test x$enableval = xno; then
14976       build_dird=no
14977    fi
14978 fi
14979
14980 if test x$build_dird = xyes; then
14981    DIRD_DIR="src/dird"
14982    DIR_TOOLS="DIRTOOLS"
14983 else
14984    DIRD_DIR=""
14985    DIR_TOOLS="NODIRTOOLS"
14986 fi
14987
14988
14989
14990 # -------------------------------------------
14991 # stored  (default on)
14992 # -------------------------------------------
14993 # Check whether --enable-build-stored was given.
14994 if test "${enable_build_stored+set}" = set; then
14995   enableval=$enable_build_stored; if test x$enableval = xno; then
14996       build_stored=no
14997    fi
14998 fi
14999
15000 if test x$build_stored = xyes; then
15001    STORED_DIR="src/stored"
15002 else
15003    STORED_DIR=""
15004 fi
15005
15006
15007 # ---------------------------------------------------
15008 # Check for conio (Bacula readline substitute)(
15009 # ---------------------------------------------------
15010 # this allows you to turn it completely off
15011 # Check whether --enable-conio was given.
15012 if test "${enable_conio+set}" = set; then
15013   enableval=$enable_conio; if test x$enableval = xno; then
15014      support_conio=no
15015   fi
15016
15017 fi
15018
15019
15020
15021 # ---------------------------------------------------
15022 # Check for IPv6 support
15023 # ---------------------------------------------------
15024 # this allows you to turn it completely off
15025 support_ipv6=yes
15026 # Check whether --enable-ipv6 was given.
15027 if test "${enable_ipv6+set}" = set; then
15028   enableval=$enable_ipv6; if test x$enableval = xno; then
15029      support_ipv6=no
15030   fi
15031
15032 fi
15033
15034
15035 if test x$support_ipv6 = xyes; then
15036     cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042  #include <sys/types.h>
15043 #include <sys/socket.h>
15044 #include <netinet/in.h>
15045 int
15046 main ()
15047 {
15048 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_link") 2>conftest.er1
15061   ac_status=$?
15062   grep -v '^ *+' conftest.er1 >conftest.err
15063   rm -f conftest.er1
15064   cat conftest.err >&5
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } &&
15067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15068   { (case "(($ac_try" in
15069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070   *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073   (eval "$ac_try") 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }; } &&
15077          { ac_try='test -s conftest$ac_exeext'
15078   { (case "(($ac_try" in
15079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080   *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083   (eval "$ac_try") 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); }; }; then
15087   support_ipv6=yes
15088 else
15089   echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092         support_ipv6=no
15093 fi
15094
15095 rm -f core conftest.err conftest.$ac_objext \
15096       conftest$ac_exeext conftest.$ac_ext
15097 fi
15098
15099 if test x$support_ipv6 = xyes; then
15100
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_IPV6 1
15103 _ACEOF
15104
15105 fi
15106
15107
15108
15109 got_conio="no"
15110 if test x$support_conio = xyes; then
15111    if test "${ac_cv_header_termcap_h+set}" = set; then
15112   { echo "$as_me:$LINENO: checking for termcap.h" >&5
15113 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15114 if test "${ac_cv_header_termcap_h+set}" = set; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 fi
15117 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15118 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15119 else
15120   # Is the header compilable?
15121 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15122 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h.  */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h.  */
15129 $ac_includes_default
15130 #include <termcap.h>
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } &&
15146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15147   { (case "(($ac_try" in
15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149   *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152   (eval "$ac_try") 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; } &&
15156          { ac_try='test -s conftest.$ac_objext'
15157   { (case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_try") 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; }; then
15166   ac_header_compiler=yes
15167 else
15168   echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171         ac_header_compiler=no
15172 fi
15173
15174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15176 echo "${ECHO_T}$ac_header_compiler" >&6; }
15177
15178 # Is the header present?
15179 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15180 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15181 cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h.  */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h.  */
15187 #include <termcap.h>
15188 _ACEOF
15189 if { (ac_try="$ac_cpp conftest.$ac_ext"
15190 case "(($ac_try" in
15191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192   *) ac_try_echo=$ac_try;;
15193 esac
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } >/dev/null; then
15202   if test -s conftest.err; then
15203     ac_cpp_err=$ac_c_preproc_warn_flag
15204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15205   else
15206     ac_cpp_err=
15207   fi
15208 else
15209   ac_cpp_err=yes
15210 fi
15211 if test -z "$ac_cpp_err"; then
15212   ac_header_preproc=yes
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217   ac_header_preproc=no
15218 fi
15219
15220 rm -f conftest.err conftest.$ac_ext
15221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15222 echo "${ECHO_T}$ac_header_preproc" >&6; }
15223
15224 # So?  What about this header?
15225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15226   yes:no: )
15227     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15228 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15229     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15230 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15231     ac_header_preproc=yes
15232     ;;
15233   no:yes:* )
15234     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15235 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15237 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15239 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15241 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15242     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15243 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15244     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15245 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15246
15247     ;;
15248 esac
15249 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15250 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15251 if test "${ac_cv_header_termcap_h+set}" = set; then
15252   echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254   ac_cv_header_termcap_h=$ac_header_preproc
15255 fi
15256 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15257 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15258
15259 fi
15260 if test $ac_cv_header_termcap_h = yes; then
15261    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15262 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15263 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15264   echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266   ac_check_lib_save_LIBS=$LIBS
15267 LIBS="-ltermcap  $LIBS"
15268 cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h.  */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h.  */
15274
15275 /* Override any GCC internal prototype to avoid an error.
15276    Use char because int might match the return type of a GCC
15277    builtin and then its argument prototype would still apply.  */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 char tgetent ();
15282 int
15283 main ()
15284 {
15285 return tgetent ();
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294   *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297   (eval "$ac_link") 2>conftest.er1
15298   ac_status=$?
15299   grep -v '^ *+' conftest.er1 >conftest.err
15300   rm -f conftest.er1
15301   cat conftest.err >&5
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); } &&
15304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15305   { (case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_try") 2>&5
15311   ac_status=$?
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); }; } &&
15314          { ac_try='test -s conftest$ac_exeext'
15315   { (case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_try") 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; }; then
15324   ac_cv_lib_termcap_tgetent=yes
15325 else
15326   echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329         ac_cv_lib_termcap_tgetent=no
15330 fi
15331
15332 rm -f core conftest.err conftest.$ac_objext \
15333       conftest$ac_exeext conftest.$ac_ext
15334 LIBS=$ac_check_lib_save_LIBS
15335 fi
15336 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15337 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15338 if test $ac_cv_lib_termcap_tgetent = yes; then
15339    CONS_LIBS="-ltermcap"
15340          CONS_OBJ="conio.o"
15341          CONS_SRC="conio.c"
15342          got_conio="yes"
15343          support_readline=no
15344
15345 cat >>confdefs.h <<\_ACEOF
15346 #define HAVE_CONIO 1
15347 _ACEOF
15348
15349
15350 else
15351    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15352 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15353 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15354   echo $ECHO_N "(cached) $ECHO_C" >&6
15355 else
15356   ac_check_lib_save_LIBS=$LIBS
15357 LIBS="-lncurses  $LIBS"
15358 cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364
15365 /* Override any GCC internal prototype to avoid an error.
15366    Use char because int might match the return type of a GCC
15367    builtin and then its argument prototype would still apply.  */
15368 #ifdef __cplusplus
15369 extern "C"
15370 #endif
15371 char tgetent ();
15372 int
15373 main ()
15374 {
15375 return tgetent ();
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15395   { (case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_try") 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; } &&
15404          { ac_try='test -s conftest$ac_exeext'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414   ac_cv_lib_ncurses_tgetent=yes
15415 else
15416   echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15418
15419         ac_cv_lib_ncurses_tgetent=no
15420 fi
15421
15422 rm -f core conftest.err conftest.$ac_objext \
15423       conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15425 fi
15426 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15427 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15428 if test $ac_cv_lib_ncurses_tgetent = yes; then
15429    CONS_LIBS="-lncurses"
15430            CONS_OBJ="conio.o"
15431            CONS_SRC="conio.c"
15432            got_conio="yes"
15433            support_readline=no
15434
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_CONIO 1
15437 _ACEOF
15438
15439
15440 fi
15441
15442
15443 fi
15444
15445
15446 else
15447
15448
15449 for ac_header in curses.h
15450 do
15451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456   echo $ECHO_N "(cached) $ECHO_C" >&6
15457 fi
15458 ac_res=`eval echo '${'$as_ac_Header'}'`
15459                { echo "$as_me:$LINENO: result: $ac_res" >&5
15460 echo "${ECHO_T}$ac_res" >&6; }
15461 else
15462   # Is the header compilable?
15463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 $ac_includes_default
15472 #include <$ac_header>
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478   *) ac_try_echo=$ac_try;;
15479 esac
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481   (eval "$ac_compile") 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } &&
15488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15489   { (case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_try") 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; } &&
15498          { ac_try='test -s conftest.$ac_objext'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508   ac_header_compiler=yes
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         ac_header_compiler=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6; }
15519
15520 # Is the header present?
15521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <$ac_header>
15530 _ACEOF
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } >/dev/null; then
15544   if test -s conftest.err; then
15545     ac_cpp_err=$ac_c_preproc_warn_flag
15546     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15547   else
15548     ac_cpp_err=
15549   fi
15550 else
15551   ac_cpp_err=yes
15552 fi
15553 if test -z "$ac_cpp_err"; then
15554   ac_header_preproc=yes
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559   ac_header_preproc=no
15560 fi
15561
15562 rm -f conftest.err conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564 echo "${ECHO_T}$ac_header_preproc" >&6; }
15565
15566 # So?  What about this header?
15567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15568   yes:no: )
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15573     ac_header_preproc=yes
15574     ;;
15575   no:yes:* )
15576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15588
15589     ;;
15590 esac
15591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15594   echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596   eval "$as_ac_Header=\$ac_header_preproc"
15597 fi
15598 ac_res=`eval echo '${'$as_ac_Header'}'`
15599                { echo "$as_me:$LINENO: result: $ac_res" >&5
15600 echo "${ECHO_T}$ac_res" >&6; }
15601
15602 fi
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604   cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15606 _ACEOF
15607
15608 fi
15609
15610 done
15611
15612          { echo "$as_me:$LINENO: checking for term.h" >&5
15613 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15614 if test "${ac_cv_header_term_h+set}" = set; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617   cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623 #if HAVE_CURSES_H
15624 #include <curses.h>
15625 #endif
15626
15627
15628 #include <term.h>
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (ac_try="$ac_compile"
15632 case "(($ac_try" in
15633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634   *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637   (eval "$ac_compile") 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } &&
15644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15645   { (case "(($ac_try" in
15646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647   *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650   (eval "$ac_try") 2>&5
15651   ac_status=$?
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; } &&
15654          { ac_try='test -s conftest.$ac_objext'
15655   { (case "(($ac_try" in
15656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657   *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660   (eval "$ac_try") 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; }; then
15664   ac_cv_header_term_h=yes
15665 else
15666   echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669         ac_cv_header_term_h=no
15670 fi
15671
15672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673 fi
15674 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15675 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15676 if test $ac_cv_header_term_h = yes; then
15677    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15678 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15679 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15680   echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682   ac_check_lib_save_LIBS=$LIBS
15683 LIBS="-lcurses  $LIBS"
15684 cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690
15691 /* Override any GCC internal prototype to avoid an error.
15692    Use char because int might match the return type of a GCC
15693    builtin and then its argument prototype would still apply.  */
15694 #ifdef __cplusplus
15695 extern "C"
15696 #endif
15697 char tgetent ();
15698 int
15699 main ()
15700 {
15701 return tgetent ();
15702   ;
15703   return 0;
15704 }
15705 _ACEOF
15706 rm -f conftest.$ac_objext conftest$ac_exeext
15707 if { (ac_try="$ac_link"
15708 case "(($ac_try" in
15709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710   *) ac_try_echo=$ac_try;;
15711 esac
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713   (eval "$ac_link") 2>conftest.er1
15714   ac_status=$?
15715   grep -v '^ *+' conftest.er1 >conftest.err
15716   rm -f conftest.er1
15717   cat conftest.err >&5
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); } &&
15720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15721   { (case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726   (eval "$ac_try") 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; } &&
15730          { ac_try='test -s conftest$ac_exeext'
15731   { (case "(($ac_try" in
15732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733   *) ac_try_echo=$ac_try;;
15734 esac
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736   (eval "$ac_try") 2>&5
15737   ac_status=$?
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); }; }; then
15740   ac_cv_lib_curses_tgetent=yes
15741 else
15742   echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745         ac_cv_lib_curses_tgetent=no
15746 fi
15747
15748 rm -f core conftest.err conftest.$ac_objext \
15749       conftest$ac_exeext conftest.$ac_ext
15750 LIBS=$ac_check_lib_save_LIBS
15751 fi
15752 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15753 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15754 if test $ac_cv_lib_curses_tgetent = yes; then
15755    CONS_LIBS="-lcurses"
15756                    CONS_OBJ="conio.o"
15757                    CONS_SRC="conio.c"
15758                    got_conio="yes"
15759                    support_readline=no
15760
15761 cat >>confdefs.h <<\_ACEOF
15762 #define HAVE_CONIO 1
15763 _ACEOF
15764
15765
15766 fi
15767
15768
15769 else
15770    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15771 fi
15772
15773
15774
15775 fi
15776
15777
15778 fi
15779
15780
15781 # ---------------------------------------------------
15782 # Check for readline support/directory (default off)
15783 # ---------------------------------------------------
15784 # this allows you to turn it completely off
15785 # Check whether --enable-readline was given.
15786 if test "${enable_readline+set}" = set; then
15787   enableval=$enable_readline; if test x$enableval = xno; then
15788     support_readline=no
15789   fi
15790 fi
15791
15792
15793 got_readline="no"
15794 READLINE_SRC=
15795 if test x$support_readline = xyes; then
15796
15797 # Check whether --with-readline was given.
15798 if test "${with_readline+set}" = set; then
15799   withval=$with_readline;
15800         case "$with_readline" in
15801         no) : ;;
15802         yes|*)
15803           if test -f ${with_readline}/readline.h; then
15804              CONS_INC="-I${with_readline}"
15805              CONS_LDFLAGS="-L$with_readline"
15806           elif test -f ${with_readline}/include/readline/readline.h; then
15807              CONS_INC="-I${with_readline}/include/readline"
15808              CONS_LDFLAGS="-L${with_readline}/lib"
15809              with_readline="${with_readline}/include/readline"
15810           else
15811              with_readline="/usr/include/readline"
15812           fi
15813           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15816 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 fi
15820 ac_res=`eval echo '${'$as_ac_Header'}'`
15821                { echo "$as_me:$LINENO: result: $ac_res" >&5
15822 echo "${ECHO_T}$ac_res" >&6; }
15823 else
15824   # Is the header compilable?
15825 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15826 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833 $ac_includes_default
15834 #include <${with_readline}/readline.h>
15835 _ACEOF
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843   (eval "$ac_compile") 2>conftest.er1
15844   ac_status=$?
15845   grep -v '^ *+' conftest.er1 >conftest.err
15846   rm -f conftest.er1
15847   cat conftest.err >&5
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); } &&
15850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15851   { (case "(($ac_try" in
15852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853   *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856   (eval "$ac_try") 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; } &&
15860          { ac_try='test -s conftest.$ac_objext'
15861   { (case "(($ac_try" in
15862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863   *) ac_try_echo=$ac_try;;
15864 esac
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866   (eval "$ac_try") 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); }; }; then
15870   ac_header_compiler=yes
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875         ac_header_compiler=no
15876 fi
15877
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880 echo "${ECHO_T}$ac_header_compiler" >&6; }
15881
15882 # Is the header present?
15883 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15884 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891 #include <${with_readline}/readline.h>
15892 _ACEOF
15893 if { (ac_try="$ac_cpp conftest.$ac_ext"
15894 case "(($ac_try" in
15895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896   *) ac_try_echo=$ac_try;;
15897 esac
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15900   ac_status=$?
15901   grep -v '^ *+' conftest.er1 >conftest.err
15902   rm -f conftest.er1
15903   cat conftest.err >&5
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); } >/dev/null; then
15906   if test -s conftest.err; then
15907     ac_cpp_err=$ac_c_preproc_warn_flag
15908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15909   else
15910     ac_cpp_err=
15911   fi
15912 else
15913   ac_cpp_err=yes
15914 fi
15915 if test -z "$ac_cpp_err"; then
15916   ac_header_preproc=yes
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921   ac_header_preproc=no
15922 fi
15923
15924 rm -f conftest.err conftest.$ac_ext
15925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15926 echo "${ECHO_T}$ac_header_preproc" >&6; }
15927
15928 # So?  What about this header?
15929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15930   yes:no: )
15931     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15932 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15934 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15935     ac_header_preproc=yes
15936     ;;
15937   no:yes:* )
15938     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15939 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15940     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15941 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15942     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15943 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15945 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15946     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15947 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15948     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15949 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15950
15951     ;;
15952 esac
15953 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15954 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956   echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958   eval "$as_ac_Header=\$ac_header_preproc"
15959 fi
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961                { echo "$as_me:$LINENO: result: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15963
15964 fi
15965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15966    cat >>confdefs.h <<\_ACEOF
15967 #define HAVE_READLINE 1
15968 _ACEOF
15969
15970                CONS_LIBS="-lreadline -lhistory -ltermcap"
15971                got_readline="yes"
15972
15973 else
15974    echo " "
15975                echo "readline.h not found. readline turned off ..."
15976                echo " "
15977
15978
15979 fi
15980
15981
15982           ;;
15983         esac
15984
15985 else
15986
15987        # check for standard readline library
15988        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15989   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15990 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15991 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15992   echo $ECHO_N "(cached) $ECHO_C" >&6
15993 fi
15994 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15995 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15996 else
15997   # Is the header compilable?
15998 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15999 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006 $ac_includes_default
16007 #include </usr/include/readline/readline.h>
16008 _ACEOF
16009 rm -f conftest.$ac_objext
16010 if { (ac_try="$ac_compile"
16011 case "(($ac_try" in
16012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013   *) ac_try_echo=$ac_try;;
16014 esac
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016   (eval "$ac_compile") 2>conftest.er1
16017   ac_status=$?
16018   grep -v '^ *+' conftest.er1 >conftest.err
16019   rm -f conftest.er1
16020   cat conftest.err >&5
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); } &&
16023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16024   { (case "(($ac_try" in
16025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026   *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029   (eval "$ac_try") 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; } &&
16033          { ac_try='test -s conftest.$ac_objext'
16034   { (case "(($ac_try" in
16035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036   *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039   (eval "$ac_try") 2>&5
16040   ac_status=$?
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); }; }; then
16043   ac_header_compiler=yes
16044 else
16045   echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16047
16048         ac_header_compiler=no
16049 fi
16050
16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16053 echo "${ECHO_T}$ac_header_compiler" >&6; }
16054
16055 # Is the header present?
16056 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
16057 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h.  */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h.  */
16064 #include </usr/include/readline/readline.h>
16065 _ACEOF
16066 if { (ac_try="$ac_cpp conftest.$ac_ext"
16067 case "(($ac_try" in
16068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069   *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } >/dev/null; then
16079   if test -s conftest.err; then
16080     ac_cpp_err=$ac_c_preproc_warn_flag
16081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16082   else
16083     ac_cpp_err=
16084   fi
16085 else
16086   ac_cpp_err=yes
16087 fi
16088 if test -z "$ac_cpp_err"; then
16089   ac_header_preproc=yes
16090 else
16091   echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094   ac_header_preproc=no
16095 fi
16096
16097 rm -f conftest.err conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16099 echo "${ECHO_T}$ac_header_preproc" >&6; }
16100
16101 # So?  What about this header?
16102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16103   yes:no: )
16104     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16105 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16106     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16107 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16108     ac_header_preproc=yes
16109     ;;
16110   no:yes:* )
16111     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16112 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
16114 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16115     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16116 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16117     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16118 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16119     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16120 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16122 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16123
16124     ;;
16125 esac
16126 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16127 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16128 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16129   echo $ECHO_N "(cached) $ECHO_C" >&6
16130 else
16131   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16132 fi
16133 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16134 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16135
16136 fi
16137 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16138    cat >>confdefs.h <<\_ACEOF
16139 #define HAVE_READLINE 1
16140 _ACEOF
16141
16142            got_readline="yes"
16143            CONS_INC="-I/usr/include/readline"
16144            CONS_LIBS="-lreadline -ltermcap"
16145
16146 else
16147
16148            # Did not find standard library, so try Bacula's default
16149             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16152 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 fi
16156 ac_res=`eval echo '${'$as_ac_Header'}'`
16157                { echo "$as_me:$LINENO: result: $ac_res" >&5
16158 echo "${ECHO_T}$ac_res" >&6; }
16159 else
16160   # Is the header compilable?
16161 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16162 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16163 cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169 $ac_includes_default
16170 #include <${TOP_DIR}/depkgs/readline/readline.h>
16171 _ACEOF
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_compile") 2>conftest.er1
16180   ac_status=$?
16181   grep -v '^ *+' conftest.er1 >conftest.err
16182   rm -f conftest.er1
16183   cat conftest.err >&5
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); } &&
16186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187   { (case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_try") 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; } &&
16196          { ac_try='test -s conftest.$ac_objext'
16197   { (case "(($ac_try" in
16198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199   *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202   (eval "$ac_try") 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; }; then
16206   ac_header_compiler=yes
16207 else
16208   echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211         ac_header_compiler=no
16212 fi
16213
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16216 echo "${ECHO_T}$ac_header_compiler" >&6; }
16217
16218 # Is the header present?
16219 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16220 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16221 cat >conftest.$ac_ext <<_ACEOF
16222 /* confdefs.h.  */
16223 _ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h.  */
16227 #include <${TOP_DIR}/depkgs/readline/readline.h>
16228 _ACEOF
16229 if { (ac_try="$ac_cpp conftest.$ac_ext"
16230 case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16236   ac_status=$?
16237   grep -v '^ *+' conftest.er1 >conftest.err
16238   rm -f conftest.er1
16239   cat conftest.err >&5
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); } >/dev/null; then
16242   if test -s conftest.err; then
16243     ac_cpp_err=$ac_c_preproc_warn_flag
16244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16245   else
16246     ac_cpp_err=
16247   fi
16248 else
16249   ac_cpp_err=yes
16250 fi
16251 if test -z "$ac_cpp_err"; then
16252   ac_header_preproc=yes
16253 else
16254   echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257   ac_header_preproc=no
16258 fi
16259
16260 rm -f conftest.err conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16262 echo "${ECHO_T}$ac_header_preproc" >&6; }
16263
16264 # So?  What about this header?
16265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16266   yes:no: )
16267     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16268 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16269     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16270 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16271     ac_header_preproc=yes
16272     ;;
16273   no:yes:* )
16274     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16275 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16277 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16278     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16279 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16280     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16281 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16282     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16283 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16284     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16285 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16286
16287     ;;
16288 esac
16289 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16290 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16292   echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294   eval "$as_ac_Header=\$ac_header_preproc"
16295 fi
16296 ac_res=`eval echo '${'$as_ac_Header'}'`
16297                { echo "$as_me:$LINENO: result: $ac_res" >&5
16298 echo "${ECHO_T}$ac_res" >&6; }
16299
16300 fi
16301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16302    cat >>confdefs.h <<\_ACEOF
16303 #define HAVE_READLINE 1
16304 _ACEOF
16305
16306                  got_readline="yes"
16307                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16308                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16309                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16310                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16311
16312 else
16313    echo " "
16314                 echo "readline.h not found. readline turned off ..."
16315                 echo " "
16316
16317
16318 fi
16319
16320
16321
16322
16323 fi
16324
16325
16326
16327
16328 fi
16329
16330 fi
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341 # Minimal stuff for readline Makefile configuration
16342 MAKE_SHELL=/bin/sh
16343
16344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16346 if test "${ac_cv_header_stat_broken+set}" = set; then
16347   echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349   cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 #include <sys/types.h>
16356 #include <sys/stat.h>
16357
16358 #if defined S_ISBLK && defined S_IFDIR
16359 # if S_ISBLK (S_IFDIR)
16360 You lose.
16361 # endif
16362 #endif
16363
16364 #if defined S_ISBLK && defined S_IFCHR
16365 # if S_ISBLK (S_IFCHR)
16366 You lose.
16367 # endif
16368 #endif
16369
16370 #if defined S_ISLNK && defined S_IFREG
16371 # if S_ISLNK (S_IFREG)
16372 You lose.
16373 # endif
16374 #endif
16375
16376 #if defined S_ISSOCK && defined S_IFREG
16377 # if S_ISSOCK (S_IFREG)
16378 You lose.
16379 # endif
16380 #endif
16381
16382 _ACEOF
16383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16384   $EGREP "You lose" >/dev/null 2>&1; then
16385   ac_cv_header_stat_broken=yes
16386 else
16387   ac_cv_header_stat_broken=no
16388 fi
16389 rm -f conftest*
16390
16391 fi
16392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16394 if test $ac_cv_header_stat_broken = yes; then
16395
16396 cat >>confdefs.h <<\_ACEOF
16397 #define STAT_MACROS_BROKEN 1
16398 _ACEOF
16399
16400 fi
16401
16402
16403
16404
16405
16406
16407 ac_header_dirent=no
16408 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16409   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16410 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16411 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h.  */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h.  */
16421 #include <sys/types.h>
16422 #include <$ac_hdr>
16423
16424 int
16425 main ()
16426 {
16427 if ((DIR *) 0)
16428 return 0;
16429   ;
16430   return 0;
16431 }
16432 _ACEOF
16433 rm -f conftest.$ac_objext
16434 if { (ac_try="$ac_compile"
16435 case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_compile") 2>conftest.er1
16441   ac_status=$?
16442   grep -v '^ *+' conftest.er1 >conftest.err
16443   rm -f conftest.er1
16444   cat conftest.err >&5
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); } &&
16447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16448   { (case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_try") 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; } &&
16457          { ac_try='test -s conftest.$ac_objext'
16458   { (case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_try") 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; }; then
16467   eval "$as_ac_Header=yes"
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472         eval "$as_ac_Header=no"
16473 fi
16474
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 fi
16477 ac_res=`eval echo '${'$as_ac_Header'}'`
16478                { echo "$as_me:$LINENO: result: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16481   cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16483 _ACEOF
16484
16485 ac_header_dirent=$ac_hdr; break
16486 fi
16487
16488 done
16489 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16490 if test $ac_header_dirent = dirent.h; then
16491   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16492 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16493 if test "${ac_cv_search_opendir+set}" = set; then
16494   echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496   ac_func_search_save_LIBS=$LIBS
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503
16504 /* Override any GCC internal prototype to avoid an error.
16505    Use char because int might match the return type of a GCC
16506    builtin and then its argument prototype would still apply.  */
16507 #ifdef __cplusplus
16508 extern "C"
16509 #endif
16510 char opendir ();
16511 int
16512 main ()
16513 {
16514 return opendir ();
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 for ac_lib in '' dir; do
16520   if test -z "$ac_lib"; then
16521     ac_res="none required"
16522   else
16523     ac_res=-l$ac_lib
16524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16525   fi
16526   rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (ac_try="$ac_link"
16528 case "(($ac_try" in
16529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530   *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533   (eval "$ac_link") 2>conftest.er1
16534   ac_status=$?
16535   grep -v '^ *+' conftest.er1 >conftest.err
16536   rm -f conftest.er1
16537   cat conftest.err >&5
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); } &&
16540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16541   { (case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_try") 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; } &&
16550          { ac_try='test -s conftest$ac_exeext'
16551   { (case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_try") 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; }; then
16560   ac_cv_search_opendir=$ac_res
16561 else
16562   echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16564
16565
16566 fi
16567
16568 rm -f core conftest.err conftest.$ac_objext \
16569       conftest$ac_exeext
16570   if test "${ac_cv_search_opendir+set}" = set; then
16571   break
16572 fi
16573 done
16574 if test "${ac_cv_search_opendir+set}" = set; then
16575   :
16576 else
16577   ac_cv_search_opendir=no
16578 fi
16579 rm conftest.$ac_ext
16580 LIBS=$ac_func_search_save_LIBS
16581 fi
16582 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16583 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16584 ac_res=$ac_cv_search_opendir
16585 if test "$ac_res" != no; then
16586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16587
16588 fi
16589
16590 else
16591   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16592 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16593 if test "${ac_cv_search_opendir+set}" = set; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   ac_func_search_save_LIBS=$LIBS
16597 cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h.  */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h.  */
16603
16604 /* Override any GCC internal prototype to avoid an error.
16605    Use char because int might match the return type of a GCC
16606    builtin and then its argument prototype would still apply.  */
16607 #ifdef __cplusplus
16608 extern "C"
16609 #endif
16610 char opendir ();
16611 int
16612 main ()
16613 {
16614 return opendir ();
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 for ac_lib in '' x; do
16620   if test -z "$ac_lib"; then
16621     ac_res="none required"
16622   else
16623     ac_res=-l$ac_lib
16624     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16625   fi
16626   rm -f conftest.$ac_objext conftest$ac_exeext
16627 if { (ac_try="$ac_link"
16628 case "(($ac_try" in
16629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630   *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633   (eval "$ac_link") 2>conftest.er1
16634   ac_status=$?
16635   grep -v '^ *+' conftest.er1 >conftest.err
16636   rm -f conftest.er1
16637   cat conftest.err >&5
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); } &&
16640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16641   { (case "(($ac_try" in
16642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643   *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646   (eval "$ac_try") 2>&5
16647   ac_status=$?
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); }; } &&
16650          { ac_try='test -s conftest$ac_exeext'
16651   { (case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_try") 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660   ac_cv_search_opendir=$ac_res
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665
16666 fi
16667
16668 rm -f core conftest.err conftest.$ac_objext \
16669       conftest$ac_exeext
16670   if test "${ac_cv_search_opendir+set}" = set; then
16671   break
16672 fi
16673 done
16674 if test "${ac_cv_search_opendir+set}" = set; then
16675   :
16676 else
16677   ac_cv_search_opendir=no
16678 fi
16679 rm conftest.$ac_ext
16680 LIBS=$ac_func_search_save_LIBS
16681 fi
16682 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16683 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16684 ac_res=$ac_cv_search_opendir
16685 if test "$ac_res" != no; then
16686   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16687
16688 fi
16689
16690 fi
16691
16692
16693
16694
16695
16696
16697
16698
16699 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16700 do
16701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707   cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16715 #define $ac_func innocuous_$ac_func
16716
16717 /* System header to define __stub macros and hopefully few prototypes,
16718     which can conflict with char $ac_func (); below.
16719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16720     <limits.h> exists even on freestanding compilers.  */
16721
16722 #ifdef __STDC__
16723 # include <limits.h>
16724 #else
16725 # include <assert.h>
16726 #endif
16727
16728 #undef $ac_func
16729
16730 /* Override any GCC internal prototype to avoid an error.
16731    Use char because int might match the return type of a GCC
16732    builtin and then its argument prototype would still apply.  */
16733 #ifdef __cplusplus
16734 extern "C"
16735 #endif
16736 char $ac_func ();
16737 /* The GNU C library defines this for functions which it implements
16738     to always fail with ENOSYS.  Some functions are actually named
16739     something starting with __ and the normal name is an alias.  */
16740 #if defined __stub_$ac_func || defined __stub___$ac_func
16741 choke me
16742 #endif
16743
16744 int
16745 main ()
16746 {
16747 return $ac_func ();
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756   *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759   (eval "$ac_link") 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } &&
16766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767   { (case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772   (eval "$ac_try") 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; } &&
16776          { ac_try='test -s conftest$ac_exeext'
16777   { (case "(($ac_try" in
16778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779   *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782   (eval "$ac_try") 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }; }; then
16786   eval "$as_ac_var=yes"
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791         eval "$as_ac_var=no"
16792 fi
16793
16794 rm -f core conftest.err conftest.$ac_objext \
16795       conftest$ac_exeext conftest.$ac_ext
16796 fi
16797 ac_res=`eval echo '${'$as_ac_var'}'`
16798                { echo "$as_me:$LINENO: result: $ac_res" >&5
16799 echo "${ECHO_T}$ac_res" >&6; }
16800 if test `eval echo '${'$as_ac_var'}'` = yes; then
16801   cat >>confdefs.h <<_ACEOF
16802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16803 _ACEOF
16804
16805 fi
16806 done
16807
16808
16809
16810 for ac_func in nanosleep nl_langinfo
16811 do
16812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 else
16818   cat >conftest.$ac_ext <<_ACEOF
16819 /* confdefs.h.  */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h.  */
16824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16826 #define $ac_func innocuous_$ac_func
16827
16828 /* System header to define __stub macros and hopefully few prototypes,
16829     which can conflict with char $ac_func (); below.
16830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16831     <limits.h> exists even on freestanding compilers.  */
16832
16833 #ifdef __STDC__
16834 # include <limits.h>
16835 #else
16836 # include <assert.h>
16837 #endif
16838
16839 #undef $ac_func
16840
16841 /* Override any GCC internal prototype to avoid an error.
16842    Use char because int might match the return type of a GCC
16843    builtin and then its argument prototype would still apply.  */
16844 #ifdef __cplusplus
16845 extern "C"
16846 #endif
16847 char $ac_func ();
16848 /* The GNU C library defines this for functions which it implements
16849     to always fail with ENOSYS.  Some functions are actually named
16850     something starting with __ and the normal name is an alias.  */
16851 #if defined __stub_$ac_func || defined __stub___$ac_func
16852 choke me
16853 #endif
16854
16855 int
16856 main ()
16857 {
16858 return $ac_func ();
16859   ;
16860   return 0;
16861 }
16862 _ACEOF
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (ac_try="$ac_link"
16865 case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870   (eval "$ac_link") 2>conftest.er1
16871   ac_status=$?
16872   grep -v '^ *+' conftest.er1 >conftest.err
16873   rm -f conftest.er1
16874   cat conftest.err >&5
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16878   { (case "(($ac_try" in
16879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880   *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883   (eval "$ac_try") 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; } &&
16887          { ac_try='test -s conftest$ac_exeext'
16888   { (case "(($ac_try" in
16889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890   *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893   (eval "$ac_try") 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897   eval "$as_ac_var=yes"
16898 else
16899   echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902         eval "$as_ac_var=no"
16903 fi
16904
16905 rm -f core conftest.err conftest.$ac_objext \
16906       conftest$ac_exeext conftest.$ac_ext
16907 fi
16908 ac_res=`eval echo '${'$as_ac_var'}'`
16909                { echo "$as_me:$LINENO: result: $ac_res" >&5
16910 echo "${ECHO_T}$ac_res" >&6; }
16911 if test `eval echo '${'$as_ac_var'}'` = yes; then
16912   cat >>confdefs.h <<_ACEOF
16913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16914 _ACEOF
16915
16916 fi
16917 done
16918
16919
16920 for ac_header in varargs.h
16921 do
16922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16924   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16927   echo $ECHO_N "(cached) $ECHO_C" >&6
16928 fi
16929 ac_res=`eval echo '${'$as_ac_Header'}'`
16930                { echo "$as_me:$LINENO: result: $ac_res" >&5
16931 echo "${ECHO_T}$ac_res" >&6; }
16932 else
16933   # Is the header compilable?
16934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16936 cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h.  */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h.  */
16942 $ac_includes_default
16943 #include <$ac_header>
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_compile") 2>conftest.er1
16953   ac_status=$?
16954   grep -v '^ *+' conftest.er1 >conftest.err
16955   rm -f conftest.er1
16956   cat conftest.err >&5
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); } &&
16959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16960   { (case "(($ac_try" in
16961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962   *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965   (eval "$ac_try") 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; } &&
16969          { ac_try='test -s conftest.$ac_objext'
16970   { (case "(($ac_try" in
16971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972   *) ac_try_echo=$ac_try;;
16973 esac
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975   (eval "$ac_try") 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); }; }; then
16979   ac_header_compiler=yes
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984         ac_header_compiler=no
16985 fi
16986
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16989 echo "${ECHO_T}$ac_header_compiler" >&6; }
16990
16991 # Is the header present?
16992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000 #include <$ac_header>
17001 _ACEOF
17002 if { (ac_try="$ac_cpp conftest.$ac_ext"
17003 case "(($ac_try" in
17004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005   *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17009   ac_status=$?
17010   grep -v '^ *+' conftest.er1 >conftest.err
17011   rm -f conftest.er1
17012   cat conftest.err >&5
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } >/dev/null; then
17015   if test -s conftest.err; then
17016     ac_cpp_err=$ac_c_preproc_warn_flag
17017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17018   else
17019     ac_cpp_err=
17020   fi
17021 else
17022   ac_cpp_err=yes
17023 fi
17024 if test -z "$ac_cpp_err"; then
17025   ac_header_preproc=yes
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030   ac_header_preproc=no
17031 fi
17032
17033 rm -f conftest.err conftest.$ac_ext
17034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17035 echo "${ECHO_T}$ac_header_preproc" >&6; }
17036
17037 # So?  What about this header?
17038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17039   yes:no: )
17040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17044     ac_header_preproc=yes
17045     ;;
17046   no:yes:* )
17047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17059
17060     ;;
17061 esac
17062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067   eval "$as_ac_Header=\$ac_header_preproc"
17068 fi
17069 ac_res=`eval echo '${'$as_ac_Header'}'`
17070                { echo "$as_me:$LINENO: result: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17072
17073 fi
17074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17075   cat >>confdefs.h <<_ACEOF
17076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17077 _ACEOF
17078
17079 fi
17080
17081 done
17082
17083
17084 # End of readline/conio stuff
17085 # -----------------------------------------------------------------------
17086
17087 # -----------------------------------------------------------------------
17088 #  Check for Python support
17089 #
17090 { echo "$as_me:$LINENO: checking for Python support" >&5
17091 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17092
17093 # Check whether --with-python was given.
17094 if test "${with_python+set}" = set; then
17095   withval=$with_python;
17096   PYTHON_INCDIR=
17097   PYTHON_LIBS=
17098   if test "$withval" != "no"; then
17099      if test "$withval" = "yes"; then
17100         for python_root in /usr /usr/local /usr/sfw; do
17101           for ver in python2.2 python2.3 python2.4 python2.5; do
17102              if test -f $python_root/include/${ver}/Python.h; then
17103                 PYTHON_INCDIR=-I$python_root/include/${ver}
17104                 if test -d $python_root/lib64/${ver}/config; then
17105                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17106                 else
17107                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17108                 fi
17109                 break
17110              fi
17111           done
17112         done
17113         if test x$PYTHON_INCDIR = x; then
17114           if test -f $prefix/include/Python.h; then
17115              PYTHON_INCDIR=-I$prefix/include
17116              if test -d $prefix/lib64/config; then
17117                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17118              else
17119                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17120              fi
17121           else
17122            { echo "$as_me:$LINENO: result: no" >&5
17123 echo "${ECHO_T}no" >&6; }
17124            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17125 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17126    { (exit 1); exit 1; }; }
17127           fi
17128         fi
17129      else
17130         if test -f $withval/Python.h; then
17131            PYTHON_INCDIR=-I$withval
17132            PYTHON_LIBS="-L$withval/config -lpython"
17133         elif test -f $withval/include/Python.h; then
17134            PYTHON_INCDIR=-I$withval/include
17135            if test -d $withval/lib64/config; then
17136               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17137            else
17138               PYTHON_LIBS="-L$withval/lib/config -lpython"
17139            fi
17140         elif test -f $withval/include/python/Python.h; then
17141            PYTHON_INCDIR=-I$withval/include/python
17142            if test -d $withval/lib64/python/config; then
17143               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17144            else
17145               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17146            fi
17147         else
17148            { echo "$as_me:$LINENO: result: no" >&5
17149 echo "${ECHO_T}no" >&6; }
17150            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17151 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17152    { (exit 1); exit 1; }; }
17153         fi
17154      fi
17155      cat >>confdefs.h <<\_ACEOF
17156 #define HAVE_PYTHON 1
17157 _ACEOF
17158
17159      { echo "$as_me:$LINENO: result: yes" >&5
17160 echo "${ECHO_T}yes" >&6; }
17161      support_python=yes
17162      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17163 echo "$as_me: checking for more Python libs" >&6;}
17164      saved_LIBS="$LIBS"; LIBS=
17165      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17166 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17167 if test "${ac_cv_search_shm_open+set}" = set; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170   ac_func_search_save_LIBS=$LIBS
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h.  */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h.  */
17177
17178 /* Override any GCC internal prototype to avoid an error.
17179    Use char because int might match the return type of a GCC
17180    builtin and then its argument prototype would still apply.  */
17181 #ifdef __cplusplus
17182 extern "C"
17183 #endif
17184 char shm_open ();
17185 int
17186 main ()
17187 {
17188 return shm_open ();
17189   ;
17190   return 0;
17191 }
17192 _ACEOF
17193 for ac_lib in '' rt; do
17194   if test -z "$ac_lib"; then
17195     ac_res="none required"
17196   else
17197     ac_res=-l$ac_lib
17198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17199   fi
17200   rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (ac_try="$ac_link"
17202 case "(($ac_try" in
17203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204   *) ac_try_echo=$ac_try;;
17205 esac
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207   (eval "$ac_link") 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } &&
17214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17215   { (case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220   (eval "$ac_try") 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_try") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; }; then
17234   ac_cv_search_shm_open=$ac_res
17235 else
17236   echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239
17240 fi
17241
17242 rm -f core conftest.err conftest.$ac_objext \
17243       conftest$ac_exeext
17244   if test "${ac_cv_search_shm_open+set}" = set; then
17245   break
17246 fi
17247 done
17248 if test "${ac_cv_search_shm_open+set}" = set; then
17249   :
17250 else
17251   ac_cv_search_shm_open=no
17252 fi
17253 rm conftest.$ac_ext
17254 LIBS=$ac_func_search_save_LIBS
17255 fi
17256 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17257 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17258 ac_res=$ac_cv_search_shm_open
17259 if test "$ac_res" != no; then
17260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17261
17262 fi
17263
17264
17265 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17266 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17267 if test "${ac_cv_lib_util_openpty+set}" = set; then
17268   echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270   ac_check_lib_save_LIBS=$LIBS
17271 LIBS="-lutil  $LIBS"
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h.  */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h.  */
17278
17279 /* Override any GCC internal prototype to avoid an error.
17280    Use char because int might match the return type of a GCC
17281    builtin and then its argument prototype would still apply.  */
17282 #ifdef __cplusplus
17283 extern "C"
17284 #endif
17285 char openpty ();
17286 int
17287 main ()
17288 {
17289 return openpty ();
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 rm -f conftest.$ac_objext conftest$ac_exeext
17295 if { (ac_try="$ac_link"
17296 case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301   (eval "$ac_link") 2>conftest.er1
17302   ac_status=$?
17303   grep -v '^ *+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } &&
17308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17309   { (case "(($ac_try" in
17310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311   *) ac_try_echo=$ac_try;;
17312 esac
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314   (eval "$ac_try") 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); }; } &&
17318          { ac_try='test -s conftest$ac_exeext'
17319   { (case "(($ac_try" in
17320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321   *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324   (eval "$ac_try") 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); }; }; then
17328   ac_cv_lib_util_openpty=yes
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333         ac_cv_lib_util_openpty=no
17334 fi
17335
17336 rm -f core conftest.err conftest.$ac_objext \
17337       conftest$ac_exeext conftest.$ac_ext
17338 LIBS=$ac_check_lib_save_LIBS
17339 fi
17340 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17341 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17342 if test $ac_cv_lib_util_openpty = yes; then
17343   cat >>confdefs.h <<_ACEOF
17344 #define HAVE_LIBUTIL 1
17345 _ACEOF
17346
17347   LIBS="-lutil $LIBS"
17348
17349 fi
17350
17351      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17352      LIBS="$saved_LIBS"
17353   else
17354      { echo "$as_me:$LINENO: result: no" >&5
17355 echo "${ECHO_T}no" >&6; }
17356   fi
17357
17358 else
17359
17360   { echo "$as_me:$LINENO: result: no" >&5
17361 echo "${ECHO_T}no" >&6; }
17362
17363 fi
17364
17365
17366
17367
17368 #
17369 # Find where sockets are (especially for Solaris)
17370 # Do this before the TCP Wrappers test since tcp wrappers
17371 # uses the socket library and some linkers are stupid.
17372 #
17373 { echo "$as_me:$LINENO: checking for socket" >&5
17374 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17375 if test "${ac_cv_func_socket+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   cat >conftest.$ac_ext <<_ACEOF
17379 /* confdefs.h.  */
17380 _ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h.  */
17384 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17386 #define socket innocuous_socket
17387
17388 /* System header to define __stub macros and hopefully few prototypes,
17389     which can conflict with char socket (); below.
17390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391     <limits.h> exists even on freestanding compilers.  */
17392
17393 #ifdef __STDC__
17394 # include <limits.h>
17395 #else
17396 # include <assert.h>
17397 #endif
17398
17399 #undef socket
17400
17401 /* Override any GCC internal prototype to avoid an error.
17402    Use char because int might match the return type of a GCC
17403    builtin and then its argument prototype would still apply.  */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 char socket ();
17408 /* The GNU C library defines this for functions which it implements
17409     to always fail with ENOSYS.  Some functions are actually named
17410     something starting with __ and the normal name is an alias.  */
17411 #if defined __stub_socket || defined __stub___socket
17412 choke me
17413 #endif
17414
17415 int
17416 main ()
17417 {
17418 return socket ();
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_link") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } &&
17437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438   { (case "(($ac_try" in
17439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440   *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443   (eval "$ac_try") 2>&5
17444   ac_status=$?
17445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446   (exit $ac_status); }; } &&
17447          { ac_try='test -s conftest$ac_exeext'
17448   { (case "(($ac_try" in
17449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450   *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453   (eval "$ac_try") 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; }; then
17457   ac_cv_func_socket=yes
17458 else
17459   echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17461
17462         ac_cv_func_socket=no
17463 fi
17464
17465 rm -f core conftest.err conftest.$ac_objext \
17466       conftest$ac_exeext conftest.$ac_ext
17467 fi
17468 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17469 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17470 if test $ac_cv_func_socket = yes; then
17471   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17472 echo "${ECHO_T}using libc's socket" >&6; }
17473 else
17474
17475 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17476 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17477 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17478   echo $ECHO_N "(cached) $ECHO_C" >&6
17479 else
17480   ac_check_lib_save_LIBS=$LIBS
17481 LIBS="-lxnet  $LIBS"
17482 cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488
17489 /* Override any GCC internal prototype to avoid an error.
17490    Use char because int might match the return type of a GCC
17491    builtin and then its argument prototype would still apply.  */
17492 #ifdef __cplusplus
17493 extern "C"
17494 #endif
17495 char socket ();
17496 int
17497 main ()
17498 {
17499 return socket ();
17500   ;
17501   return 0;
17502 }
17503 _ACEOF
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511   (eval "$ac_link") 2>conftest.er1
17512   ac_status=$?
17513   grep -v '^ *+' conftest.er1 >conftest.err
17514   rm -f conftest.er1
17515   cat conftest.err >&5
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); } &&
17518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17519   { (case "(($ac_try" in
17520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521   *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524   (eval "$ac_try") 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); }; } &&
17528          { ac_try='test -s conftest$ac_exeext'
17529   { (case "(($ac_try" in
17530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531   *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534   (eval "$ac_try") 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); }; }; then
17538   ac_cv_lib_xnet_socket=yes
17539 else
17540   echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543         ac_cv_lib_xnet_socket=no
17544 fi
17545
17546 rm -f core conftest.err conftest.$ac_objext \
17547       conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17549 fi
17550 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17551 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17552 if test $ac_cv_lib_xnet_socket = yes; then
17553   cat >>confdefs.h <<_ACEOF
17554 #define HAVE_LIBXNET 1
17555 _ACEOF
17556
17557   LIBS="-lxnet $LIBS"
17558
17559 fi
17560
17561
17562 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17563 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17564 if test "${ac_cv_lib_socket_socket+set}" = set; then
17565   echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567   ac_check_lib_save_LIBS=$LIBS
17568 LIBS="-lsocket  $LIBS"
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575
17576 /* Override any GCC internal prototype to avoid an error.
17577    Use char because int might match the return type of a GCC
17578    builtin and then its argument prototype would still apply.  */
17579 #ifdef __cplusplus
17580 extern "C"
17581 #endif
17582 char socket ();
17583 int
17584 main ()
17585 {
17586 return socket ();
17587   ;
17588   return 0;
17589 }
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_link") 2>conftest.er1
17599   ac_status=$?
17600   grep -v '^ *+' conftest.er1 >conftest.err
17601   rm -f conftest.er1
17602   cat conftest.err >&5
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); } &&
17605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606   { (case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_try") 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; } &&
17615          { ac_try='test -s conftest$ac_exeext'
17616   { (case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_try") 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   ac_cv_lib_socket_socket=yes
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630         ac_cv_lib_socket_socket=no
17631 fi
17632
17633 rm -f core conftest.err conftest.$ac_objext \
17634       conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17636 fi
17637 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17638 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17639 if test $ac_cv_lib_socket_socket = yes; then
17640   cat >>confdefs.h <<_ACEOF
17641 #define HAVE_LIBSOCKET 1
17642 _ACEOF
17643
17644   LIBS="-lsocket $LIBS"
17645
17646 fi
17647
17648
17649 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17650 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17651 if test "${ac_cv_lib_inet_socket+set}" = set; then
17652   echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654   ac_check_lib_save_LIBS=$LIBS
17655 LIBS="-linet  $LIBS"
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662
17663 /* Override any GCC internal prototype to avoid an error.
17664    Use char because int might match the return type of a GCC
17665    builtin and then its argument prototype would still apply.  */
17666 #ifdef __cplusplus
17667 extern "C"
17668 #endif
17669 char socket ();
17670 int
17671 main ()
17672 {
17673 return socket ();
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (ac_try="$ac_link"
17680 case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685   (eval "$ac_link") 2>conftest.er1
17686   ac_status=$?
17687   grep -v '^ *+' conftest.er1 >conftest.err
17688   rm -f conftest.er1
17689   cat conftest.err >&5
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } &&
17692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17693   { (case "(($ac_try" in
17694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695   *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698   (eval "$ac_try") 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }; } &&
17702          { ac_try='test -s conftest$ac_exeext'
17703   { (case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_try") 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; }; then
17712   ac_cv_lib_inet_socket=yes
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717         ac_cv_lib_inet_socket=no
17718 fi
17719
17720 rm -f core conftest.err conftest.$ac_objext \
17721       conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17723 fi
17724 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17725 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17726 if test $ac_cv_lib_inet_socket = yes; then
17727   cat >>confdefs.h <<_ACEOF
17728 #define HAVE_LIBINET 1
17729 _ACEOF
17730
17731   LIBS="-linet $LIBS"
17732
17733 fi
17734
17735 fi
17736
17737
17738
17739 # -----------------------------------------------------------
17740 # Check whether user wants TCP wrappers support (default off)
17741 # -----------------------------------------------------------
17742 TCPW_MSG="no"
17743 WRAPLIBS=""
17744
17745 # Check whether --with-tcp-wrappers was given.
17746 if test "${with_tcp_wrappers+set}" = set; then
17747   withval=$with_tcp_wrappers;
17748     if test "x$withval" != "xno" ; then
17749        saved_LIBS="$LIBS"
17750        LIBS="$saved_LIBS -lwrap"
17751        { echo "$as_me:$LINENO: checking for libwrap" >&5
17752 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17753        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17754 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17755 if test "${ac_cv_search_nanosleep+set}" = set; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   ac_func_search_save_LIBS=$LIBS
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765
17766 /* Override any GCC internal prototype to avoid an error.
17767    Use char because int might match the return type of a GCC
17768    builtin and then its argument prototype would still apply.  */
17769 #ifdef __cplusplus
17770 extern "C"
17771 #endif
17772 char nanosleep ();
17773 int
17774 main ()
17775 {
17776 return nanosleep ();
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 for ac_lib in '' rt; do
17782   if test -z "$ac_lib"; then
17783     ac_res="none required"
17784   else
17785     ac_res=-l$ac_lib
17786     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17787   fi
17788   rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (ac_try="$ac_link"
17790 case "(($ac_try" in
17791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792   *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795   (eval "$ac_link") 2>conftest.er1
17796   ac_status=$?
17797   grep -v '^ *+' conftest.er1 >conftest.err
17798   rm -f conftest.er1
17799   cat conftest.err >&5
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } &&
17802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803   { (case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808   (eval "$ac_try") 2>&5
17809   ac_status=$?
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); }; } &&
17812          { ac_try='test -s conftest$ac_exeext'
17813   { (case "(($ac_try" in
17814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815   *) ac_try_echo=$ac_try;;
17816 esac
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818   (eval "$ac_try") 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822   ac_cv_search_nanosleep=$ac_res
17823 else
17824   echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827
17828 fi
17829
17830 rm -f core conftest.err conftest.$ac_objext \
17831       conftest$ac_exeext
17832   if test "${ac_cv_search_nanosleep+set}" = set; then
17833   break
17834 fi
17835 done
17836 if test "${ac_cv_search_nanosleep+set}" = set; then
17837   :
17838 else
17839   ac_cv_search_nanosleep=no
17840 fi
17841 rm conftest.$ac_ext
17842 LIBS=$ac_func_search_save_LIBS
17843 fi
17844 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17845 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17846 ac_res=$ac_cv_search_nanosleep
17847 if test "$ac_res" != no; then
17848   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17849
17850 fi
17851
17852        cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17858  #include <sys/types.h>
17859             #include <tcpd.h>
17860              int deny_severity = 0;
17861              int allow_severity = 0;
17862              struct request_info *req;
17863 int
17864 main ()
17865 {
17866  hosts_access(req);
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878   (eval "$ac_link") 2>conftest.er1
17879   ac_status=$?
17880   grep -v '^ *+' conftest.er1 >conftest.err
17881   rm -f conftest.er1
17882   cat conftest.err >&5
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } &&
17885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17886   { (case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891   (eval "$ac_try") 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; } &&
17895          { ac_try='test -s conftest$ac_exeext'
17896   { (case "(($ac_try" in
17897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898   *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901   (eval "$ac_try") 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); }; }; then
17905
17906             { echo "$as_me:$LINENO: result: yes" >&5
17907 echo "${ECHO_T}yes" >&6; }
17908             cat >>confdefs.h <<\_ACEOF
17909 #define HAVE_LIBWRAP 1
17910 _ACEOF
17911
17912             TCPW_MSG="yes"
17913             LIBS="$saved_LIBS"
17914             WRAPLIBS="-lwrap"
17915
17916 else
17917   echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920
17921             LIBS="$saved_LIBS -lwrap -lnsl"
17922             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17923             cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929  #include <sys/types.h>
17930                  #include <tcpd.h>
17931                  int deny_severity = 0;
17932                  int allow_severity = 0;
17933                  struct request_info *req;
17934 int
17935 main ()
17936 {
17937  hosts_access(req);
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (ac_try="$ac_link"
17944 case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949   (eval "$ac_link") 2>conftest.er1
17950   ac_status=$?
17951   grep -v '^ *+' conftest.er1 >conftest.err
17952   rm -f conftest.er1
17953   cat conftest.err >&5
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957   { (case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962   (eval "$ac_try") 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; } &&
17966          { ac_try='test -s conftest$ac_exeext'
17967   { (case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_try") 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; }; then
17976
17977                  { echo "$as_me:$LINENO: result: yes" >&5
17978 echo "${ECHO_T}yes" >&6; }
17979                  cat >>confdefs.h <<\_ACEOF
17980 #define HAVE_LIBWRAP 1
17981 _ACEOF
17982
17983                  TCPW_MSG="yes"
17984                  LIBS="$saved_LIBS"
17985                  WRAPLIBS="-lwrap"
17986
17987 else
17988   echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17992 echo "$as_me: error: *** libwrap missing" >&2;}
17993    { (exit 1); exit 1; }; }
17994
17995 fi
17996
17997 rm -f core conftest.err conftest.$ac_objext \
17998       conftest$ac_exeext conftest.$ac_ext
17999
18000 fi
18001
18002 rm -f core conftest.err conftest.$ac_objext \
18003       conftest$ac_exeext conftest.$ac_ext
18004     fi
18005
18006
18007 fi
18008
18009
18010 # -----------------------------------------------------------
18011 # Check whether OpenSSL is available
18012 # -----------------------------------------------------------
18013 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
18014 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
18015
18016 # Check whether --with-openssl was given.
18017 if test "${with_openssl+set}" = set; then
18018   withval=$with_openssl; with_openssl_directory=${withval}
18019 fi
18020
18021
18022 if test "x$with_openssl_directory" != "x"; then
18023         OPENSSL_LIBS="-lssl -lcrypto"
18024         OPENSSL_INC=""
18025
18026         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
18027                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
18028                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
18029         fi
18030
18031         saved_LIBS="${LIBS}"
18032         saved_CFLAGS="${CFLAGS}"
18033         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
18034         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
18035
18036         cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042  #include <openssl/ssl.h>
18043 int
18044 main ()
18045 {
18046  CRYPTO_set_id_callback(NULL);
18047   ;
18048   return 0;
18049 }
18050 _ACEOF
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055   *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058   (eval "$ac_link") 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } &&
18065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066   { (case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_try") 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; } &&
18075          { ac_try='test -s conftest$ac_exeext'
18076   { (case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_try") 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; }; then
18085
18086                         support_tls="yes"
18087                         support_crypto="yes"
18088
18089 else
18090   echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093          support_tls="no"
18094
18095 fi
18096
18097 rm -f core conftest.err conftest.$ac_objext \
18098       conftest$ac_exeext conftest.$ac_ext
18099
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_sha512();
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_sha2="yes"
18150 else
18151   echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154          ac_cv_openssl_sha2="no"
18155
18156 fi
18157
18158 rm -f core conftest.err conftest.$ac_objext \
18159       conftest$ac_exeext conftest.$ac_ext
18160
18161         # Solaris disables greater than 128+ bit encryption in their OpenSSL
18162         # implementation, presumably for export reasons. If 192bit AES
18163         # is available, we assume that we're running with a 'non-export'
18164         # openssl library.
18165         cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h.  */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h.  */
18171  #include <openssl/evp.h>
18172 int
18173 main ()
18174 {
18175  EVP_aes_192_cbc();
18176   ;
18177   return 0;
18178 }
18179 _ACEOF
18180 rm -f conftest.$ac_objext conftest$ac_exeext
18181 if { (ac_try="$ac_link"
18182 case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_link") 2>conftest.er1
18188   ac_status=$?
18189   grep -v '^ *+' conftest.er1 >conftest.err
18190   rm -f conftest.er1
18191   cat conftest.err >&5
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); } &&
18194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195   { (case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_try") 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; } &&
18204          { ac_try='test -s conftest$ac_exeext'
18205   { (case "(($ac_try" in
18206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207   *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210   (eval "$ac_try") 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; }; then
18214    ac_cv_openssl_export="no"
18215 else
18216   echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18218
18219          ac_cv_openssl_export="yes"
18220
18221 fi
18222
18223 rm -f core conftest.err conftest.$ac_objext \
18224       conftest$ac_exeext conftest.$ac_ext
18225
18226         LIBS="${saved_LIBS}"
18227         CFLAGS="${saved_CFLAGS}"
18228
18229         if test "$support_tls" = "yes"; then
18230
18231 cat >>confdefs.h <<\_ACEOF
18232 #define HAVE_OPENSSL 1
18233 _ACEOF
18234
18235
18236 cat >>confdefs.h <<\_ACEOF
18237 #define HAVE_TLS 1
18238 _ACEOF
18239
18240
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_CRYPTO 1
18243 _ACEOF
18244
18245         fi
18246
18247         if test "$ac_cv_openssl_sha2" = "yes"; then
18248
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_SHA2 1
18251 _ACEOF
18252
18253         fi
18254
18255         if test "$ac_cv_openssl_export" = "yes"; then
18256
18257 cat >>confdefs.h <<\_ACEOF
18258 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18259 _ACEOF
18260
18261         fi
18262 else
18263         support_tls="no"
18264         support_crypto="no"
18265         OPENSSL_LIBS=""
18266         OPENSSL_INC=""
18267 fi
18268
18269 { echo "$as_me:$LINENO: result: $support_tls" >&5
18270 echo "${ECHO_T}$support_tls" >&6; }
18271
18272
18273
18274
18275 # -----------------------------------------------------------
18276 # Python and OpenSSL are using dlopen
18277 # -----------------------------------------------------------
18278
18279 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18280    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18281 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18282 if test "${ac_cv_search_dlopen+set}" = set; then
18283   echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285   ac_func_search_save_LIBS=$LIBS
18286 cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h.  */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h.  */
18292
18293 /* Override any GCC internal prototype to avoid an error.
18294    Use char because int might match the return type of a GCC
18295    builtin and then its argument prototype would still apply.  */
18296 #ifdef __cplusplus
18297 extern "C"
18298 #endif
18299 char dlopen ();
18300 int
18301 main ()
18302 {
18303 return dlopen ();
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 for ac_lib in '' dl; do
18309   if test -z "$ac_lib"; then
18310     ac_res="none required"
18311   else
18312     ac_res=-l$ac_lib
18313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18314   fi
18315   rm -f conftest.$ac_objext conftest$ac_exeext
18316 if { (ac_try="$ac_link"
18317 case "(($ac_try" in
18318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319   *) ac_try_echo=$ac_try;;
18320 esac
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322   (eval "$ac_link") 2>conftest.er1
18323   ac_status=$?
18324   grep -v '^ *+' conftest.er1 >conftest.err
18325   rm -f conftest.er1
18326   cat conftest.err >&5
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); } &&
18329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18330   { (case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_try") 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; } &&
18339          { ac_try='test -s conftest$ac_exeext'
18340   { (case "(($ac_try" in
18341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342   *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345   (eval "$ac_try") 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; }; then
18349   ac_cv_search_dlopen=$ac_res
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354
18355 fi
18356
18357 rm -f core conftest.err conftest.$ac_objext \
18358       conftest$ac_exeext
18359   if test "${ac_cv_search_dlopen+set}" = set; then
18360   break
18361 fi
18362 done
18363 if test "${ac_cv_search_dlopen+set}" = set; then
18364   :
18365 else
18366   ac_cv_search_dlopen=no
18367 fi
18368 rm conftest.$ac_ext
18369 LIBS=$ac_func_search_save_LIBS
18370 fi
18371 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18372 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18373 ac_res=$ac_cv_search_dlopen
18374 if test "$ac_res" != no; then
18375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18376
18377 fi
18378
18379 fi
18380
18381 # ------------------------------------------
18382 # Where to place working dir
18383 # ------------------------------------------
18384 working_dir=`eval echo ${prefix}/var/bacula/working`
18385
18386 # Check whether --with-working-dir was given.
18387 if test "${with_working_dir+set}" = set; then
18388   withval=$with_working_dir;
18389        if test "x$withval" != "xno" ; then
18390               working_dir=$withval
18391        fi
18392
18393
18394 fi
18395
18396
18397
18398
18399
18400 # ------------------------------------------
18401 # Where to place scriptdir (script files)
18402 # ------------------------------------------
18403 scriptdir=`eval echo ${sysconfdir}`
18404
18405 # Check whether --with-scriptdir was given.
18406 if test "${with_scriptdir+set}" = set; then
18407   withval=$with_scriptdir;
18408        if test "x$withval" != "xno" ; then
18409               scriptdir=$withval
18410        fi
18411
18412
18413 fi
18414
18415
18416
18417
18418
18419 # ------------------------------------------
18420 # Where to send dump email
18421 # ------------------------------------------
18422 dump_email=root@localhost
18423
18424 # Check whether --with-dump-email was given.
18425 if test "${with_dump_email+set}" = set; then
18426   withval=$with_dump_email;
18427        if test "x$withval" != "xno" ; then
18428               dump_email=$withval
18429        fi
18430
18431
18432 fi
18433
18434
18435
18436
18437 # ------------------------------------------
18438 # Where to send job email
18439 # ------------------------------------------
18440 job_email=root@localhost
18441
18442 # Check whether --with-job-email was given.
18443 if test "${with_job_email+set}" = set; then
18444   withval=$with_job_email;
18445        if test "x$withval" != "xno" ; then
18446               job_email=$withval
18447        fi
18448
18449
18450 fi
18451
18452
18453
18454
18455 # ------------------------------------------
18456 # Where to find smtp host
18457 # ------------------------------------------
18458 smtp_host=localhost
18459
18460 # Check whether --with-smtp_host was given.
18461 if test "${with_smtp_host+set}" = set; then
18462   withval=$with_smtp_host;
18463        if test "x$withval" != "xno" ; then
18464               smtp_host=$withval
18465        fi
18466
18467
18468 fi
18469
18470
18471
18472
18473
18474 # ------------------------------------
18475 # Where to place pid files
18476 # ------------------------------------
18477 piddir=/var/run
18478
18479 # Check whether --with-pid-dir was given.
18480 if test "${with_pid_dir+set}" = set; then
18481   withval=$with_pid_dir;
18482         if test "x$withval" != "xno" ; then
18483             piddir=$withval
18484         fi
18485
18486
18487 fi
18488
18489
18490 cat >>confdefs.h <<_ACEOF
18491 #define _PATH_BACULA_PIDDIR "$piddir"
18492 _ACEOF
18493
18494
18495
18496
18497 # ------------------------------------
18498 # Where to place subsys "lock file"
18499 # ------------------------------------
18500 ubsysdir=/var/run/subsys
18501 if test -d /var/run/subsys; then
18502    subsysdir=/var/run/subsys
18503 elif test -d /var/lock/subsys; then
18504    subsysdir=/var/lock/subsys
18505 else
18506    subsysdir=/var/run/subsys
18507 fi
18508
18509 # Check whether --with-subsys-dir was given.
18510 if test "${with_subsys_dir+set}" = set; then
18511   withval=$with_subsys_dir;
18512         if test "x$withval" != "xno" ; then
18513             subsysdir=$withval
18514         fi
18515
18516
18517 fi
18518
18519
18520
18521
18522
18523
18524 # ------------------------------------
18525 # Where to start assigning ports
18526 # ------------------------------------
18527 baseport=9101
18528
18529 # Check whether --with-baseport was given.
18530 if test "${with_baseport+set}" = set; then
18531   withval=$with_baseport;
18532         if test "x$withval" != "xno" ; then
18533              baseport=$withval
18534         fi
18535
18536
18537 fi
18538
18539
18540
18541 dir_port=`expr $baseport`
18542 fd_port=`expr $baseport + 1`
18543 sd_port=`expr $fd_port + 1`
18544
18545
18546
18547
18548
18549
18550 # ------------------------------------------
18551 # Generate passwords
18552 # ------------------------------------------
18553 dir_password=
18554
18555 # Check whether --with-dir-password was given.
18556 if test "${with_dir_password+set}" = set; then
18557   withval=$with_dir_password;
18558        if test "x$withval" != "xno" ; then
18559            dir_password=$withval
18560        fi
18561
18562
18563 fi
18564
18565
18566 if test "x$dir_password" = "x" ; then
18567    if test "x$OPENSSL" = "xnone" ; then
18568       key=`autoconf/randpass 33`
18569    else
18570       key=`openssl rand -base64 33`
18571    fi
18572    dir_password=$key
18573 fi
18574
18575 fd_password=
18576
18577 # Check whether --with-fd-password was given.
18578 if test "${with_fd_password+set}" = set; then
18579   withval=$with_fd_password;
18580        if test "x$withval" != "xno" ; then
18581            fd_password=$withval
18582        fi
18583
18584
18585 fi
18586
18587
18588 if test "x$fd_password" = "x" ; then
18589    if test "x$OPENSSL" = "xnone" ; then
18590       key=`autoconf/randpass 37`
18591    else
18592       key=`openssl rand -base64 33`
18593    fi
18594    fd_password=$key
18595 fi
18596
18597 sd_password=
18598
18599 # Check whether --with-sd-password was given.
18600 if test "${with_sd_password+set}" = set; then
18601   withval=$with_sd_password;
18602        if test "x$withval" != "xno" ; then
18603            sd_password=$withval
18604        fi
18605
18606
18607 fi
18608
18609
18610 if test "x$sd_password" = "x" ; then
18611    if test "x$OPENSSL" = "xnone" ; then
18612       key=`autoconf/randpass 41`
18613    else
18614       key=`openssl rand -base64 33`
18615    fi
18616    sd_password=$key
18617 fi
18618
18619 mon_dir_password=
18620
18621 # Check whether --with-mon-dir-password was given.
18622 if test "${with_mon_dir_password+set}" = set; then
18623   withval=$with_mon_dir_password;
18624        if test "x$withval" != "xno" ; then
18625            mon_dir_password=$withval
18626        fi
18627
18628
18629 fi
18630
18631
18632 if test "x$mon_dir_password" = "x" ; then
18633    if test "x$OPENSSL" = "xnone" ; then
18634       key=`autoconf/randpass 33`
18635    else
18636       key=`openssl rand -base64 33`
18637    fi
18638    mon_dir_password=$key
18639 fi
18640
18641 mon_fd_password=
18642
18643 # Check whether --with-mon-fd-password was given.
18644 if test "${with_mon_fd_password+set}" = set; then
18645   withval=$with_mon_fd_password;
18646        if test "x$withval" != "xno" ; then
18647            mon_fd_password=$withval
18648        fi
18649
18650
18651 fi
18652
18653
18654 if test "x$mon_fd_password" = "x" ; then
18655    if test "x$OPENSSL" = "xnone" ; then
18656       key=`autoconf/randpass 37`
18657    else
18658       key=`openssl rand -base64 33`
18659    fi
18660    mon_fd_password=$key
18661 fi
18662
18663 mon_sd_password=
18664
18665 # Check whether --with-mon-sd-password was given.
18666 if test "${with_mon_sd_password+set}" = set; then
18667   withval=$with_mon_sd_password;
18668        if test "x$withval" != "xno" ; then
18669            mon_sd_password=$withval
18670        fi
18671
18672
18673 fi
18674
18675
18676 if test "x$mon_sd_password" = "x" ; then
18677    if test "x$OPENSSL" = "xnone" ; then
18678       key=`autoconf/randpass 41`
18679    else
18680       key=`openssl rand -base64 33`
18681    fi
18682    mon_sd_password=$key
18683 fi
18684
18685
18686
18687
18688
18689
18690
18691
18692 #
18693 # Pickup any database name
18694 #
18695 db_name=bacula
18696
18697 # Check whether --with-db_name was given.
18698 if test "${with_db_name+set}" = set; then
18699   withval=$with_db_name;
18700         if test "x$withval" != "x" ; then
18701              db_name=$withval
18702         fi
18703
18704
18705 fi
18706
18707
18708
18709 db_user=bacula
18710
18711 # Check whether --with-db_user was given.
18712 if test "${with_db_user+set}" = set; then
18713   withval=$with_db_user;
18714         if test "x$withval" != "x" ; then
18715              db_user=$withval
18716         fi
18717
18718
18719 fi
18720
18721
18722
18723
18724 #
18725 # Handle users and groups for each daemon
18726 #
18727 dir_user=
18728
18729 # Check whether --with-dir_user was given.
18730 if test "${with_dir_user+set}" = set; then
18731   withval=$with_dir_user;
18732         if test "x$withval" != "x" ; then
18733              dir_user=$withval
18734         fi
18735
18736
18737 fi
18738
18739
18740 dir_group=
18741
18742 # Check whether --with-dir_group was given.
18743 if test "${with_dir_group+set}" = set; then
18744   withval=$with_dir_group;
18745         if test "x$withval" != "x" ; then
18746              dir_group=$withval
18747         fi
18748
18749
18750 fi
18751
18752
18753 sd_user=
18754
18755 # Check whether --with-sd_user was given.
18756 if test "${with_sd_user+set}" = set; then
18757   withval=$with_sd_user;
18758         if test "x$withval" != "x" ; then
18759              sd_user=$withval
18760         fi
18761
18762
18763 fi
18764
18765
18766 sd_group=
18767
18768 # Check whether --with-sd_group was given.
18769 if test "${with_sd_group+set}" = set; then
18770   withval=$with_sd_group;
18771         if test "x$withval" != "x" ; then
18772              sd_group=$withval
18773         fi
18774
18775
18776 fi
18777
18778
18779 fd_user=
18780
18781 # Check whether --with-fd_user was given.
18782 if test "${with_fd_user+set}" = set; then
18783   withval=$with_fd_user;
18784         if test "x$withval" != "x" ; then
18785              fd_user=$withval
18786         fi
18787
18788
18789 fi
18790
18791
18792 fd_group=
18793
18794 # Check whether --with-fd_group was given.
18795 if test "${with_fd_group+set}" = set; then
18796   withval=$with_fd_group;
18797         if test "x$withval" != "x" ; then
18798              fd_group=$withval
18799         fi
18800
18801
18802 fi
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812 #
18813 # allow setting default executable permissions
18814 #
18815 SBINPERM=0754
18816
18817 # Check whether --with-sbin-perm was given.
18818 if test "${with_sbin_perm+set}" = set; then
18819   withval=$with_sbin_perm;
18820         if test "x$withval" != "x" ; then
18821             SBINPERM=$withval
18822         fi
18823
18824
18825 fi
18826
18827
18828
18829
18830 # ------------------------------------------------
18831 # Bacula check for various SQL database engines
18832 # ------------------------------------------------
18833 SQL_LIB=
18834
18835 db_found=no
18836 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18837 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18838
18839 # Check whether --with-postgresql was given.
18840 if test "${with_postgresql+set}" = set; then
18841   withval=$with_postgresql;
18842   if test "$withval" != "no"; then
18843       if test "$db_found" = "yes"; then
18844           { echo "$as_me:$LINENO: result: error" >&5
18845 echo "${ECHO_T}error" >&6; }
18846           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18847 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18848    { (exit 1); exit 1; }; };
18849       fi
18850       if test "$withval" = "yes"; then
18851           PG_CONFIG=`which pg_config`
18852           if test -n "$PG_CONFIG";then
18853               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18854               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18855               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18856           elif test -f /usr/local/include/libpq-fe.h; then
18857               POSTGRESQL_INCDIR=/usr/local/include
18858               if test -d /usr/local/lib64; then
18859                  POSTGRESQL_LIBDIR=/usr/local/lib64
18860               else
18861                  POSTGRESQL_LIBDIR=/usr/local/lib
18862               fi
18863               POSTGRESQL_BINDIR=/usr/local/bin
18864           elif test -f /usr/include/libpq-fe.h; then
18865               POSTGRESQL_INCDIR=/usr/include
18866               if test -d /usr/lib64; then
18867                  POSTGRESQL_LIBDIR=/usr/lib64
18868               else
18869                  POSTGRESQL_LIBDIR=/usr/lib
18870               fi
18871               POSTGRESQL_BINDIR=/usr/bin
18872           elif test -f /usr/include/pgsql/libpq-fe.h; then
18873               POSTGRESQL_INCDIR=/usr/include/pgsql
18874               if test -d /usr/lib64/pgsql; then
18875                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18876               else
18877                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18878               fi
18879               POSTGRESQL_BINDIR=/usr/bin
18880           elif test -f /usr/include/postgresql/libpq-fe.h; then
18881               POSTGRESQL_INCDIR=/usr/include/postgresql
18882               if test -d /usr/lib64/postgresql; then
18883                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18884               else
18885                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18886               fi
18887               POSTGRESQL_BINDIR=/usr/bin
18888           else
18889               { echo "$as_me:$LINENO: result: no" >&5
18890 echo "${ECHO_T}no" >&6; }
18891               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18892 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18893    { (exit 1); exit 1; }; }
18894           fi
18895       elif test -f $withval/include/libpq-fe.h; then
18896           POSTGRESQL_INCDIR=$withval/include
18897           POSTGRESQL_LIBDIR=$withval/lib
18898           POSTGRESQL_BINDIR=$withval/bin
18899       elif test -f $withval/include/postgresql/libpq-fe.h; then
18900           POSTGRESQL_INCDIR=$withval/include/postgresql
18901      if test -d $withval/lib64; then
18902          POSTGRESQL_LIBDIR=$withval/lib64
18903      else
18904          POSTGRESQL_LIBDIR=$withval/lib
18905      fi
18906           POSTGRESQL_BINDIR=$withval/bin
18907       else
18908           { echo "$as_me:$LINENO: result: no" >&5
18909 echo "${ECHO_T}no" >&6; }
18910           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18911 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18912    { (exit 1); exit 1; }; }
18913       fi
18914       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18915       { echo "$as_me:$LINENO: checking for crypt" >&5
18916 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18917 if test "${ac_cv_func_crypt+set}" = set; then
18918   echo $ECHO_N "(cached) $ECHO_C" >&6
18919 else
18920   cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18928 #define crypt innocuous_crypt
18929
18930 /* System header to define __stub macros and hopefully few prototypes,
18931     which can conflict with char crypt (); below.
18932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18933     <limits.h> exists even on freestanding compilers.  */
18934
18935 #ifdef __STDC__
18936 # include <limits.h>
18937 #else
18938 # include <assert.h>
18939 #endif
18940
18941 #undef crypt
18942
18943 /* Override any GCC internal prototype to avoid an error.
18944    Use char because int might match the return type of a GCC
18945    builtin and then its argument prototype would still apply.  */
18946 #ifdef __cplusplus
18947 extern "C"
18948 #endif
18949 char crypt ();
18950 /* The GNU C library defines this for functions which it implements
18951     to always fail with ENOSYS.  Some functions are actually named
18952     something starting with __ and the normal name is an alias.  */
18953 #if defined __stub_crypt || defined __stub___crypt
18954 choke me
18955 #endif
18956
18957 int
18958 main ()
18959 {
18960 return crypt ();
18961   ;
18962   return 0;
18963 }
18964 _ACEOF
18965 rm -f conftest.$ac_objext conftest$ac_exeext
18966 if { (ac_try="$ac_link"
18967 case "(($ac_try" in
18968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969   *) ac_try_echo=$ac_try;;
18970 esac
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972   (eval "$ac_link") 2>conftest.er1
18973   ac_status=$?
18974   grep -v '^ *+' conftest.er1 >conftest.err
18975   rm -f conftest.er1
18976   cat conftest.err >&5
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); } &&
18979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18980   { (case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_try") 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; } &&
18989          { ac_try='test -s conftest$ac_exeext'
18990   { (case "(($ac_try" in
18991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992   *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995   (eval "$ac_try") 2>&5
18996   ac_status=$?
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); }; }; then
18999   ac_cv_func_crypt=yes
19000 else
19001   echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19003
19004         ac_cv_func_crypt=no
19005 fi
19006
19007 rm -f core conftest.err conftest.$ac_objext \
19008       conftest$ac_exeext conftest.$ac_ext
19009 fi
19010 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
19011 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
19012 if test $ac_cv_func_crypt = yes; then
19013   :
19014 else
19015   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19016 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
19017 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19018   echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020   ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lcrypt  $LIBS"
19022 cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028
19029 /* Override any GCC internal prototype to avoid an error.
19030    Use char because int might match the return type of a GCC
19031    builtin and then its argument prototype would still apply.  */
19032 #ifdef __cplusplus
19033 extern "C"
19034 #endif
19035 char crypt ();
19036 int
19037 main ()
19038 {
19039 return crypt ();
19040   ;
19041   return 0;
19042 }
19043 _ACEOF
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048   *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051   (eval "$ac_link") 2>conftest.er1
19052   ac_status=$?
19053   grep -v '^ *+' conftest.er1 >conftest.err
19054   rm -f conftest.er1
19055   cat conftest.err >&5
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); } &&
19058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19059   { (case "(($ac_try" in
19060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061   *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064   (eval "$ac_try") 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; } &&
19068          { ac_try='test -s conftest$ac_exeext'
19069   { (case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_try") 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; }; then
19078   ac_cv_lib_crypt_crypt=yes
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083         ac_cv_lib_crypt_crypt=no
19084 fi
19085
19086 rm -f core conftest.err conftest.$ac_objext \
19087       conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19089 fi
19090 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19091 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19092 if test $ac_cv_lib_crypt_crypt = yes; then
19093   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19094 fi
19095
19096 fi
19097
19098       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19099       SQL_LFLAGS=$POSTGRESQL_LFLAGS
19100       SQL_BINDIR=$POSTGRESQL_BINDIR
19101       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
19102
19103       cat >>confdefs.h <<\_ACEOF
19104 #define HAVE_POSTGRESQL 1
19105 _ACEOF
19106
19107       { echo "$as_me:$LINENO: result: yes" >&5
19108 echo "${ECHO_T}yes" >&6; }
19109       db_found=yes
19110       support_postgresql=yes
19111       db_type=PostgreSQL
19112       DB_TYPE=postgresql
19113   else
19114       { echo "$as_me:$LINENO: result: no" >&5
19115 echo "${ECHO_T}no" >&6; }
19116   fi
19117
19118 else
19119
19120   { echo "$as_me:$LINENO: result: no" >&5
19121 echo "${ECHO_T}no" >&6; }
19122
19123 fi
19124
19125
19126
19127
19128
19129
19130
19131
19132 db_found=no
19133 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19134 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19135
19136 # Check whether --with-mysql was given.
19137 if test "${with_mysql+set}" = set; then
19138   withval=$with_mysql;
19139   if test "$withval" != "no"; then
19140         if test "$withval" = "yes"; then
19141            if test -f /usr/local/mysql/include/mysql/mysql.h; then
19142                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
19143                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19144                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19145                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19146                    else
19147                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19148                    fi
19149                    MYSQL_BINDIR=/usr/local/mysql/bin
19150            elif test -f /usr/include/mysql/mysql.h; then
19151                    MYSQL_INCDIR=/usr/include/mysql
19152                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19153                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19154                            MYSQL_LIBDIR=/usr/lib64/mysql
19155                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19156                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19157                            MYSQL_LIBDIR=/usr/lib/mysql
19158                    else
19159                            MYSQL_LIBDIR=/usr/lib
19160                    fi
19161                    MYSQL_BINDIR=/usr/bin
19162            elif test -f /usr/include/mysql.h; then
19163                    MYSQL_INCDIR=/usr/include
19164                    if test -f /usr/lib64/libmysqlclient_r.a \
19165                         -o -f /usr/lib64/libmysqlclient_r.so; then
19166                            MYSQL_LIBDIR=/usr/lib64
19167                    else
19168                            MYSQL_LIBDIR=/usr/lib
19169                    fi
19170                    MYSQL_BINDIR=/usr/bin
19171            elif test -f /usr/local/include/mysql/mysql.h; then
19172                    MYSQL_INCDIR=/usr/local/include/mysql
19173                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19174                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19175                            MYSQL_LIBDIR=/usr/local/lib64/mysql
19176                    else
19177                            MYSQL_LIBDIR=/usr/local/lib/mysql
19178                    fi
19179                    MYSQL_BINDIR=/usr/local/bin
19180            elif test -f /usr/local/include/mysql.h; then
19181                    MYSQL_INCDIR=/usr/local/include
19182                    if test -f /usr/local/lib64/libmysqlclient_r.a \
19183                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
19184                            MYSQL_LIBDIR=/usr/local/lib64
19185                    else
19186                            MYSQL_LIBDIR=/usr/local/lib
19187                    fi
19188                    MYSQL_BINDIR=/usr/local/bin
19189            else
19190               { echo "$as_me:$LINENO: result: no" >&5
19191 echo "${ECHO_T}no" >&6; }
19192               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19193 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19194    { (exit 1); exit 1; }; }
19195            fi
19196         else
19197            if test -f $withval/include/mysql/mysql.h; then
19198               MYSQL_INCDIR=$withval/include/mysql
19199               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19200                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19201                  MYSQL_LIBDIR=$withval/lib64/mysql
19202               else
19203                  MYSQL_LIBDIR=$withval/lib/mysql
19204                  # Solaris ...
19205                  if test -f $withval/lib/libmysqlclient_r.so; then
19206                     MYSQL_LIBDIR=$withval/lib
19207                  fi
19208               fi
19209               MYSQL_BINDIR=$withval/bin
19210            elif test -f $withval/include/mysql.h; then
19211               MYSQL_INCDIR=$withval/include
19212               if test -f $withval/lib64/libmysqlclient_r.a \
19213                    -o -f $withval/lib64/libmysqlclient_r.so; then
19214                  MYSQL_LIBDIR=$withval/lib64
19215               else
19216                  MYSQL_LIBDIR=$withval/lib
19217               fi
19218               MYSQL_BINDIR=$withval/bin
19219            else
19220               { echo "$as_me:$LINENO: result: no" >&5
19221 echo "${ECHO_T}no" >&6; }
19222               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19223 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19224    { (exit 1); exit 1; }; }
19225            fi
19226         fi
19227     SQL_INCLUDE=-I$MYSQL_INCDIR
19228     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19229          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19230        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19231        cat >>confdefs.h <<\_ACEOF
19232 #define HAVE_THREAD_SAFE_MYSQL 1
19233 _ACEOF
19234
19235     fi
19236     SQL_BINDIR=$MYSQL_BINDIR
19237     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
19238
19239     cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_MYSQL 1
19241 _ACEOF
19242
19243     { echo "$as_me:$LINENO: result: yes" >&5
19244 echo "${ECHO_T}yes" >&6; }
19245     db_found=yes
19246     support_mysql=yes
19247     db_type=MySQL
19248     DB_TYPE=mysql
19249
19250   else
19251         { echo "$as_me:$LINENO: result: no" >&5
19252 echo "${ECHO_T}no" >&6; }
19253   fi
19254
19255
19256 fi
19257
19258
19259
19260 # Check whether --with-embedded-mysql was given.
19261 if test "${with_embedded_mysql+set}" = set; then
19262   withval=$with_embedded_mysql;
19263   if test "$withval" != "no"; then
19264         if test "$withval" = "yes"; then
19265                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19266                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19267                         if test -d /usr/local/mysql/lib64/mysql; then
19268                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19269                         else
19270                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19271                         fi
19272                         MYSQL_BINDIR=/usr/local/mysql/bin
19273                 elif test -f /usr/include/mysql/mysql.h; then
19274                         MYSQL_INCDIR=/usr/include/mysql
19275                         if test -d /usr/lib64/mysql; then
19276                                 MYSQL_LIBDIR=/usr/lib64/mysql
19277                         else
19278                                 MYSQL_LIBDIR=/usr/lib/mysql
19279                         fi
19280                         MYSQL_BINDIR=/usr/bin
19281                 elif test -f /usr/include/mysql.h; then
19282                         MYSQL_INCDIR=/usr/include
19283                         if test -d /usr/lib64; then
19284                                 MYSQL_LIBDIR=/usr/lib64
19285                         else
19286                                 MYSQL_LIBDIR=/usr/lib
19287                         fi
19288                         MYSQL_BINDIR=/usr/bin
19289                 elif test -f /usr/local/include/mysql/mysql.h; then
19290                         MYSQL_INCDIR=/usr/local/include/mysql
19291                         if test -d /usr/local/lib64/mysql; then
19292                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19293                         else
19294                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19295                         fi
19296                         MYSQL_BINDIR=/usr/local/bin
19297                 elif test -f /usr/local/include/mysql.h; then
19298                         MYSQL_INCDIR=/usr/local/include
19299                         if test -d /usr/local/lib64; then
19300                                 MYSQL_LIBDIR=/usr/local/lib64
19301                         else
19302                                 MYSQL_LIBDIR=/usr/local/lib
19303                         fi
19304                         MYSQL_BINDIR=/usr/local/bin
19305                 else
19306                    { echo "$as_me:$LINENO: result: no" >&5
19307 echo "${ECHO_T}no" >&6; }
19308                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19309 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19310    { (exit 1); exit 1; }; }
19311                 fi
19312         else
19313                 if test -f $withval/include/mysql/mysql.h; then
19314                         MYSQL_INCDIR=$withval/include/mysql
19315                         if test -d $withval/lib64/mysql; then
19316                                 MYSQL_LIBDIR=$withval/lib64/mysql
19317                         else
19318                                 MYSQL_LIBDIR=$withval/lib/mysql
19319                         fi
19320                         MYSQL_BINDIR=$withval/bin
19321                 elif test -f $withval/include/mysql.h; then
19322                         MYSQL_INCDIR=$withval/include
19323                         if test -d $withval/lib64; then
19324                                 MYSQL_LIBDIR=$withval/lib64
19325                         else
19326                                 MYSQL_LIBDIR=$withval/lib
19327                         fi
19328                         MYSQL_BINDIR=$withval/bin
19329                 else
19330                    { echo "$as_me:$LINENO: result: no" >&5
19331 echo "${ECHO_T}no" >&6; }
19332                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19333 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19334    { (exit 1); exit 1; }; }
19335                 fi
19336         fi
19337     SQL_INCLUDE=-I$MYSQL_INCDIR
19338     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19339     SQL_BINDIR=$MYSQL_BINDIR
19340     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
19341
19342     cat >>confdefs.h <<\_ACEOF
19343 #define HAVE_MYSQL 1
19344 _ACEOF
19345
19346     cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_EMBEDDED_MYSQL 1
19348 _ACEOF
19349
19350     { echo "$as_me:$LINENO: result: yes" >&5
19351 echo "${ECHO_T}yes" >&6; }
19352     db_found=yes
19353     support_mysql=yes
19354     db_type=MySQL
19355     DB_TYPE=mysql
19356
19357   else
19358         { echo "$as_me:$LINENO: result: no" >&5
19359 echo "${ECHO_T}no" >&6; }
19360   fi
19361
19362
19363 fi
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374 db_found=no
19375 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19376 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19377
19378 # Check whether --with-sqlite3 was given.
19379 if test "${with_sqlite3+set}" = set; then
19380   withval=$with_sqlite3;
19381   if test "$withval" != "no"; then
19382      if test "$withval" = "yes"; then
19383         if test -f /usr/local/include/sqlite3.h; then
19384            SQLITE_INCDIR=/usr/local/include
19385            if test -d /usr/local/lib64; then
19386               SQLITE_LIBDIR=/usr/local/lib64
19387            else
19388               SQLITE_LIBDIR=/usr/local/lib
19389            fi
19390            SQLITE_BINDIR=/usr/local/bin
19391         elif test -f /usr/include/sqlite3.h; then
19392            SQLITE_INCDIR=/usr/include
19393            if test -d /usr/lib64; then
19394               SQLITE_LIBDIR=/usr/lib64
19395            else
19396               SQLITE_LIBDIR=/usr/lib
19397            fi
19398            SQLITE_BINDIR=/usr/bin
19399         elif test -f $prefix/include/sqlite3.h; then
19400            SQLITE_INCDIR=$prefix/include
19401            if test -d $prefix/lib64; then
19402               SQLITE_LIBDIR=$prefix/lib64
19403            else
19404               SQLITE_LIBDIR=$prefix/lib
19405            fi
19406            SQLITE_BINDIR=$prefix/bin
19407         else
19408            { echo "$as_me:$LINENO: result: no" >&5
19409 echo "${ECHO_T}no" >&6; }
19410            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19411 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19412    { (exit 1); exit 1; }; }
19413         fi
19414      else
19415         if test -f $withval/sqlite3.h; then
19416            SQLITE_INCDIR=$withval
19417            SQLITE_LIBDIR=$withval
19418            SQLITE_BINDIR=$withval
19419         elif test -f $withval/include/sqlite3.h; then
19420            SQLITE_INCDIR=$withval/include
19421            if test -d $withval/lib64; then
19422               SQLITE_LIBDIR=$withval/lib64
19423            else
19424               SQLITE_LIBDIR=$withval/lib
19425            fi
19426            SQLITE_BINDIR=$withval/bin
19427         else
19428            { echo "$as_me:$LINENO: result: no" >&5
19429 echo "${ECHO_T}no" >&6; }
19430            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19431 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19432    { (exit 1); exit 1; }; }
19433         fi
19434      fi
19435      SQL_INCLUDE=-I$SQLITE_INCDIR
19436      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19437      SQL_BINDIR=$SQLITE_BINDIR
19438      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
19439
19440      cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_SQLITE3 1
19442 _ACEOF
19443
19444      { echo "$as_me:$LINENO: result: yes" >&5
19445 echo "${ECHO_T}yes" >&6; }
19446      db_found=yes
19447      support_sqlite3=yes
19448      db_type=SQLite3
19449      DB_TYPE=sqlite3
19450
19451   else
19452      { echo "$as_me:$LINENO: result: no" >&5
19453 echo "${ECHO_T}no" >&6; }
19454   fi
19455
19456 else
19457
19458   { echo "$as_me:$LINENO: result: no" >&5
19459 echo "${ECHO_T}no" >&6; }
19460
19461 fi
19462
19463
19464
19465
19466
19467
19468
19469
19470 db_found=no
19471 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19472 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19473
19474 # Check whether --with-sqlite was given.
19475 if test "${with_sqlite+set}" = set; then
19476   withval=$with_sqlite;
19477   if test "$withval" != "no"; then
19478      if test "$withval" = "yes"; then
19479         if test -f /usr/local/include/sqlite.h; then
19480            SQLITE_INCDIR=/usr/local/include
19481            if test -d /usr/local/lib64; then
19482               SQLITE_LIBDIR=/usr/local/lib64
19483            else
19484               SQLITE_LIBDIR=/usr/local/lib
19485            fi
19486            SQLITE_BINDIR=/usr/local/bin
19487         elif test -f /usr/include/sqlite.h; then
19488            SQLITE_INCDIR=/usr/include
19489            if test -d /usr/lib64; then
19490               SQLITE_LIBDIR=/usr/lib64
19491            else
19492               SQLITE_LIBDIR=/usr/lib
19493            fi
19494            SQLITE_BINDIR=/usr/bin
19495         elif test -f $prefix/include/sqlite.h; then
19496            SQLITE_INCDIR=$prefix/include
19497            if test -d $prefix/lib64; then
19498               SQLITE_LIBDIR=$prefix/lib64
19499            else
19500               SQLITE_LIBDIR=$prefix/lib
19501            fi
19502            SQLITE_BINDIR=$prefix/bin
19503         else
19504            { echo "$as_me:$LINENO: result: no" >&5
19505 echo "${ECHO_T}no" >&6; }
19506            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19507 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19508    { (exit 1); exit 1; }; }
19509         fi
19510      else
19511         if test -f $withval/sqlite.h; then
19512            SQLITE_INCDIR=$withval
19513            SQLITE_LIBDIR=$withval
19514            SQLITE_BINDIR=$withval
19515         elif test -f $withval/include/sqlite.h; then
19516            SQLITE_INCDIR=$withval/include
19517            if test -d $withval/lib64; then
19518               SQLITE_LIBDIR=$withval/lib64
19519            else
19520               SQLITE_LIBDIR=$withval/lib
19521            fi
19522            SQLITE_BINDIR=$withval/bin
19523         else
19524            { echo "$as_me:$LINENO: result: no" >&5
19525 echo "${ECHO_T}no" >&6; }
19526            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19527 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19528    { (exit 1); exit 1; }; }
19529         fi
19530      fi
19531      SQL_INCLUDE=-I$SQLITE_INCDIR
19532      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19533      SQL_BINDIR=$SQLITE_BINDIR
19534      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
19535
19536      cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_SQLITE 1
19538 _ACEOF
19539
19540      { echo "$as_me:$LINENO: result: yes" >&5
19541 echo "${ECHO_T}yes" >&6; }
19542      db_found=yes
19543      support_sqlite=yes
19544      db_type=SQLite
19545      DB_TYPE=sqlite
19546
19547   else
19548      { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19550   fi
19551
19552 else
19553
19554   { echo "$as_me:$LINENO: result: no" >&5
19555 echo "${ECHO_T}no" >&6; }
19556
19557 fi
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568 # -------------------------------------------
19569 # enable batch attribute DB insert (default on)
19570 # -------------------------------------------
19571 support_batch_insert=no
19572 A=`nm $SQL_LIB | grep pthread_mutex_lock`
19573 pkg=$?
19574 if test $pkg = 0; then
19575    support_batch_insert=yes
19576    # Check whether --enable-batch-insert was given.
19577 if test "${enable_batch_insert+set}" = set; then
19578   enableval=$enable_batch_insert; if test x$enableval = xno; then
19579        support_batch_insert=no
19580       else
19581        support_batch_insert=yes
19582      fi
19583 fi
19584
19585 fi
19586
19587 if test $support_batch_insert = yes ; then
19588
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_BATCH_FILE_INSERT 1
19591 _ACEOF
19592
19593 fi
19594
19595
19596 cat >>confdefs.h <<\_ACEOF
19597 #define PROTOTYPES 1
19598 _ACEOF
19599
19600
19601 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19602     if test -z "$CCOPTS"; then
19603         CCOPTS='-g -O2 -Wall'
19604     fi
19605     CFLAGS="$CCOPTS"
19606 fi
19607
19608
19609
19610
19611 largefile_support="no"
19612
19613    # Check whether --enable-largefile was given.
19614 if test "${enable_largefile+set}" = set; then
19615   enableval=$enable_largefile;
19616 fi
19617
19618    if test "$enable_largefile" != no; then
19619      if test -n "$ac_tool_prefix"; then
19620   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19621 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19624 if test "${ac_cv_prog_GETCONF+set}" = set; then
19625   echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627   if test -n "$GETCONF"; then
19628   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19629 else
19630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19631 for as_dir in $PATH
19632 do
19633   IFS=$as_save_IFS
19634   test -z "$as_dir" && as_dir=.
19635   for ac_exec_ext in '' $ac_executable_extensions; do
19636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19637     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19639     break 2
19640   fi
19641 done
19642 done
19643 IFS=$as_save_IFS
19644
19645 fi
19646 fi
19647 GETCONF=$ac_cv_prog_GETCONF
19648 if test -n "$GETCONF"; then
19649   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19650 echo "${ECHO_T}$GETCONF" >&6; }
19651 else
19652   { echo "$as_me:$LINENO: result: no" >&5
19653 echo "${ECHO_T}no" >&6; }
19654 fi
19655
19656
19657 fi
19658 if test -z "$ac_cv_prog_GETCONF"; then
19659   ac_ct_GETCONF=$GETCONF
19660   # Extract the first word of "getconf", so it can be a program name with args.
19661 set dummy getconf; ac_word=$2
19662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19664 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19665   echo $ECHO_N "(cached) $ECHO_C" >&6
19666 else
19667   if test -n "$ac_ct_GETCONF"; then
19668   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19669 else
19670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19671 for as_dir in $PATH
19672 do
19673   IFS=$as_save_IFS
19674   test -z "$as_dir" && as_dir=.
19675   for ac_exec_ext in '' $ac_executable_extensions; do
19676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19677     ac_cv_prog_ac_ct_GETCONF="getconf"
19678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19679     break 2
19680   fi
19681 done
19682 done
19683 IFS=$as_save_IFS
19684
19685 fi
19686 fi
19687 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19688 if test -n "$ac_ct_GETCONF"; then
19689   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19690 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19691 else
19692   { echo "$as_me:$LINENO: result: no" >&5
19693 echo "${ECHO_T}no" >&6; }
19694 fi
19695
19696   if test "x$ac_ct_GETCONF" = x; then
19697     GETCONF=""
19698   else
19699     case $cross_compiling:$ac_tool_warned in
19700 yes:)
19701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19702 whose name does not start with the host triplet.  If you think this
19703 configuration is useful to you, please write to autoconf@gnu.org." >&5
19704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19705 whose name does not start with the host triplet.  If you think this
19706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19707 ac_tool_warned=yes ;;
19708 esac
19709     GETCONF=$ac_ct_GETCONF
19710   fi
19711 else
19712   GETCONF="$ac_cv_prog_GETCONF"
19713 fi
19714
19715      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19716 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19717 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19718   echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19721         ac_cv_sys_largefile_CFLAGS=no
19722         case "$host_os" in
19723            # IRIX 6.2 and later require cc -n32.
19724            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19725              if test "$GCC" != yes; then
19726                ac_cv_sys_largefile_CFLAGS=-n32
19727              fi
19728              ac_save_CC="$CC"
19729              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19730              cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736
19737 int
19738 main ()
19739 {
19740
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (ac_try="$ac_link"
19747 case "(($ac_try" in
19748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749   *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752   (eval "$ac_link") 2>conftest.er1
19753   ac_status=$?
19754   grep -v '^ *+' conftest.er1 >conftest.err
19755   rm -f conftest.er1
19756   cat conftest.err >&5
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } &&
19759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19760   { (case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_try") 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; } &&
19769          { ac_try='test -s conftest$ac_exeext'
19770   { (case "(($ac_try" in
19771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772   *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775   (eval "$ac_try") 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; }; then
19779   :
19780 else
19781   echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784         ac_cv_sys_largefile_CFLAGS=no
19785 fi
19786
19787 rm -f core conftest.err conftest.$ac_objext \
19788       conftest$ac_exeext conftest.$ac_ext
19789              CC="$ac_save_CC"
19790            esac
19791       }
19792 fi
19793 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19794 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19795      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19796 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19797 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19798   echo $ECHO_N "(cached) $ECHO_C" >&6
19799 else
19800   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19801         ac_cv_sys_largefile_LDFLAGS=no
19802
19803       }
19804 fi
19805 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19806 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19807      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19808 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19809 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19813         ac_cv_sys_largefile_LIBS=no
19814
19815       }
19816 fi
19817 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19818 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19819
19820      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19821        case "$ac_flag" in
19822        no) ;;
19823        -D_FILE_OFFSET_BITS=*) ;;
19824        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19825        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19826        -D?* | -I?*)
19827          case "$ac_flag" in
19828    no) ;;
19829    ?*)
19830      case "$CPPFLAGS" in
19831      '') CPPFLAGS="$ac_flag" ;;
19832      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19833      esac ;;
19834    esac ;;
19835        *)
19836          case "$ac_flag" in
19837    no) ;;
19838    ?*)
19839      case "$CFLAGS" in
19840      '') CFLAGS="$ac_flag" ;;
19841      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19842      esac ;;
19843    esac ;;
19844        esac
19845      done
19846      case "$ac_cv_sys_largefile_LDFLAGS" in
19847    no) ;;
19848    ?*)
19849      case "$LDFLAGS" in
19850      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19851      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19852      esac ;;
19853    esac
19854      case "$ac_cv_sys_largefile_LIBS" in
19855    no) ;;
19856    ?*)
19857      case "$LIBS" in
19858      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19859      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19860      esac ;;
19861    esac
19862      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19863 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19864 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   ac_cv_sys_file_offset_bits=no
19868       ac_cv_sys_file_offset_bits=64
19869       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19870         case "$ac_flag" in
19871         -D_FILE_OFFSET_BITS)
19872           ac_cv_sys_file_offset_bits=1 ;;
19873         -D_FILE_OFFSET_BITS=*)
19874           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19875         esac
19876       done
19877
19878 fi
19879 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19880 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19881    if test "$ac_cv_sys_file_offset_bits" != no; then
19882
19883 cat >>confdefs.h <<_ACEOF
19884 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19885 _ACEOF
19886
19887    fi
19888      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19889 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19890 if test "${ac_cv_sys_largefile_source+set}" = set; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   ac_cv_sys_largefile_source=no
19894       ac_cv_sys_largefile_source=1
19895       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19896         case "$ac_flag" in
19897         -D_LARGEFILE_SOURCE)
19898           ac_cv_sys_largefile_source=1 ;;
19899         -D_LARGEFILE_SOURCE=*)
19900           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19901         esac
19902       done
19903
19904 fi
19905 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19906 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19907    if test "$ac_cv_sys_largefile_source" != no; then
19908
19909 cat >>confdefs.h <<_ACEOF
19910 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19911 _ACEOF
19912
19913    fi
19914      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19915 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19916 if test "${ac_cv_sys_large_files+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   ac_cv_sys_large_files=no
19920       ac_cv_sys_large_files=1
19921       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19922         case "$ac_flag" in
19923         -D_LARGE_FILES)
19924           ac_cv_sys_large_files=1 ;;
19925         -D_LARGE_FILES=*)
19926           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19927         esac
19928       done
19929
19930 fi
19931 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19932 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19933    if test "$ac_cv_sys_large_files" != no; then
19934
19935 cat >>confdefs.h <<_ACEOF
19936 #define _LARGE_FILES $ac_cv_sys_large_files
19937 _ACEOF
19938
19939    fi
19940    fi
19941
19942
19943
19944 { echo "$as_me:$LINENO: checking for X" >&5
19945 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19946
19947
19948 # Check whether --with-x was given.
19949 if test "${with_x+set}" = set; then
19950   withval=$with_x;
19951 fi
19952
19953 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19954 if test "x$with_x" = xno; then
19955   # The user explicitly disabled X.
19956   have_x=disabled
19957 else
19958   case $x_includes,$x_libraries in #(
19959     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19960 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19961    { (exit 1); exit 1; }; };; #(
19962     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   # One or both of the vars are not set, and there is no cached value.
19966 ac_x_includes=no ac_x_libraries=no
19967 rm -f -r conftest.dir
19968 if mkdir conftest.dir; then
19969   cd conftest.dir
19970   cat >Imakefile <<'_ACEOF'
19971 incroot:
19972         @echo incroot='${INCROOT}'
19973 usrlibdir:
19974         @echo usrlibdir='${USRLIBDIR}'
19975 libdir:
19976         @echo libdir='${LIBDIR}'
19977 _ACEOF
19978   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19979     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19980     for ac_var in incroot usrlibdir libdir; do
19981       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19982     done
19983     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19984     for ac_extension in a so sl; do
19985       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19986          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19987         ac_im_usrlibdir=$ac_im_libdir; break
19988       fi
19989     done
19990     # Screen out bogus values from the imake configuration.  They are
19991     # bogus both because they are the default anyway, and because
19992     # using them would break gcc on systems where it needs fixed includes.
19993     case $ac_im_incroot in
19994         /usr/include) ac_x_includes= ;;
19995         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19996     esac
19997     case $ac_im_usrlibdir in
19998         /usr/lib | /lib) ;;
19999         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20000     esac
20001   fi
20002   cd ..
20003   rm -f -r conftest.dir
20004 fi
20005
20006 # Standard set of common directories for X headers.
20007 # Check X11 before X11Rn because it is often a symlink to the current release.
20008 ac_x_header_dirs='
20009 /usr/X11/include
20010 /usr/X11R6/include
20011 /usr/X11R5/include
20012 /usr/X11R4/include
20013
20014 /usr/include/X11
20015 /usr/include/X11R6
20016 /usr/include/X11R5
20017 /usr/include/X11R4
20018
20019 /usr/local/X11/include
20020 /usr/local/X11R6/include
20021 /usr/local/X11R5/include
20022 /usr/local/X11R4/include
20023
20024 /usr/local/include/X11
20025 /usr/local/include/X11R6
20026 /usr/local/include/X11R5
20027 /usr/local/include/X11R4
20028
20029 /usr/X386/include
20030 /usr/x386/include
20031 /usr/XFree86/include/X11
20032
20033 /usr/include
20034 /usr/local/include
20035 /usr/unsupported/include
20036 /usr/athena/include
20037 /usr/local/x11r5/include
20038 /usr/lpp/Xamples/include
20039
20040 /usr/openwin/include
20041 /usr/openwin/share/include'
20042
20043 if test "$ac_x_includes" = no; then
20044   # Guess where to find include files, by looking for Xlib.h.
20045   # First, try using that file with no special directory specified.
20046   cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h.  */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h.  */
20052 #include <X11/Xlib.h>
20053 _ACEOF
20054 if { (ac_try="$ac_cpp conftest.$ac_ext"
20055 case "(($ac_try" in
20056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057   *) ac_try_echo=$ac_try;;
20058 esac
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20061   ac_status=$?
20062   grep -v '^ *+' conftest.er1 >conftest.err
20063   rm -f conftest.er1
20064   cat conftest.err >&5
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } >/dev/null; then
20067   if test -s conftest.err; then
20068     ac_cpp_err=$ac_c_preproc_warn_flag
20069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20070   else
20071     ac_cpp_err=
20072   fi
20073 else
20074   ac_cpp_err=yes
20075 fi
20076 if test -z "$ac_cpp_err"; then
20077   # We can compile using X headers with no special include directory.
20078 ac_x_includes=
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083   for ac_dir in $ac_x_header_dirs; do
20084   if test -r "$ac_dir/X11/Xlib.h"; then
20085     ac_x_includes=$ac_dir
20086     break
20087   fi
20088 done
20089 fi
20090
20091 rm -f conftest.err conftest.$ac_ext
20092 fi # $ac_x_includes = no
20093
20094 if test "$ac_x_libraries" = no; then
20095   # Check for the libraries.
20096   # See if we find them without any special options.
20097   # Don't add to $LIBS permanently.
20098   ac_save_LIBS=$LIBS
20099   LIBS="-lXt $LIBS"
20100   cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106 #include <X11/Xlib.h>
20107 int
20108 main ()
20109 {
20110 XrmInitialize ()
20111   ;
20112   return 0;
20113 }
20114 _ACEOF
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122   (eval "$ac_link") 2>conftest.er1
20123   ac_status=$?
20124   grep -v '^ *+' conftest.er1 >conftest.err
20125   rm -f conftest.er1
20126   cat conftest.err >&5
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); } &&
20129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20130   { (case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135   (eval "$ac_try") 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; } &&
20139          { ac_try='test -s conftest$ac_exeext'
20140   { (case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_try") 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; }; then
20149   LIBS=$ac_save_LIBS
20150 # We can link X programs with no special library path.
20151 ac_x_libraries=
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156         LIBS=$ac_save_LIBS
20157 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20158 do
20159   # Don't even attempt the hair of trying to link an X program!
20160   for ac_extension in a so sl; do
20161     if test -r "$ac_dir/libXt.$ac_extension"; then
20162       ac_x_libraries=$ac_dir
20163       break 2
20164     fi
20165   done
20166 done
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext \
20170       conftest$ac_exeext conftest.$ac_ext
20171 fi # $ac_x_libraries = no
20172
20173 case $ac_x_includes,$ac_x_libraries in #(
20174   no,* | *,no | *\'*)
20175     # Didn't find X, or a directory has "'" in its name.
20176     ac_cv_have_x="have_x=no";; #(
20177   *)
20178     # Record where we found X for the cache.
20179     ac_cv_have_x="have_x=yes\
20180         ac_x_includes='$ac_x_includes'\
20181         ac_x_libraries='$ac_x_libraries'"
20182 esac
20183 fi
20184 ;; #(
20185     *) have_x=yes;;
20186   esac
20187   eval "$ac_cv_have_x"
20188 fi # $with_x != no
20189
20190 if test "$have_x" != yes; then
20191   { echo "$as_me:$LINENO: result: $have_x" >&5
20192 echo "${ECHO_T}$have_x" >&6; }
20193   no_x=yes
20194 else
20195   # If each of the values was on the command line, it overrides each guess.
20196   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20197   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20198   # Update the cache value to reflect the command line values.
20199   ac_cv_have_x="have_x=yes\
20200         ac_x_includes='$x_includes'\
20201         ac_x_libraries='$x_libraries'"
20202   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20203 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20204 fi
20205
20206 if test "$no_x" = yes; then
20207   # Not all programs may use this symbol, but it does not hurt to define it.
20208
20209 cat >>confdefs.h <<\_ACEOF
20210 #define X_DISPLAY_MISSING 1
20211 _ACEOF
20212
20213   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20214 else
20215   if test -n "$x_includes"; then
20216     X_CFLAGS="$X_CFLAGS -I$x_includes"
20217   fi
20218
20219   # It would also be nice to do this for all -L options, not just this one.
20220   if test -n "$x_libraries"; then
20221     X_LIBS="$X_LIBS -L$x_libraries"
20222     # For Solaris; some versions of Sun CC require a space after -R and
20223     # others require no space.  Words are not sufficient . . . .
20224     case `(uname -sr) 2>/dev/null` in
20225     "SunOS 5"*)
20226       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20227 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20228       ac_xsave_LIBS=$LIBS; LIBS="$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_nospace=yes
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283         ac_R_nospace=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_nospace = yes; then
20289         { echo "$as_me:$LINENO: result: no" >&5
20290 echo "${ECHO_T}no" >&6; }
20291         X_LIBS="$X_LIBS -R$x_libraries"
20292       else
20293         LIBS="$ac_xsave_LIBS -R $x_libraries"
20294         cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h.  */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h.  */
20300
20301 int
20302 main ()
20303 {
20304
20305   ;
20306   return 0;
20307 }
20308 _ACEOF
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (ac_try="$ac_link"
20311 case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316   (eval "$ac_link") 2>conftest.er1
20317   ac_status=$?
20318   grep -v '^ *+' conftest.er1 >conftest.err
20319   rm -f conftest.er1
20320   cat conftest.err >&5
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } &&
20323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20324   { (case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_try") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; } &&
20333          { ac_try='test -s conftest$ac_exeext'
20334   { (case "(($ac_try" in
20335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336   *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339   (eval "$ac_try") 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; }; then
20343   ac_R_space=yes
20344 else
20345   echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348         ac_R_space=no
20349 fi
20350
20351 rm -f core conftest.err conftest.$ac_objext \
20352       conftest$ac_exeext conftest.$ac_ext
20353         if test $ac_R_space = yes; then
20354           { echo "$as_me:$LINENO: result: yes" >&5
20355 echo "${ECHO_T}yes" >&6; }
20356           X_LIBS="$X_LIBS -R $x_libraries"
20357         else
20358           { echo "$as_me:$LINENO: result: neither works" >&5
20359 echo "${ECHO_T}neither works" >&6; }
20360         fi
20361       fi
20362       LIBS=$ac_xsave_LIBS
20363     esac
20364   fi
20365
20366   # Check for system-dependent libraries X programs must link with.
20367   # Do this before checking for the system-independent R6 libraries
20368   # (-lICE), since we may need -lsocket or whatever for X linking.
20369
20370   if test "$ISC" = yes; then
20371     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20372   else
20373     # Martyn Johnson says this is needed for Ultrix, if the X
20374     # libraries were built with DECnet support.  And Karl Berry says
20375     # the Alpha needs dnet_stub (dnet does not exist).
20376     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20377     cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383
20384 /* Override any GCC internal prototype to avoid an error.
20385    Use char because int might match the return type of a GCC
20386    builtin and then its argument prototype would still apply.  */
20387 #ifdef __cplusplus
20388 extern "C"
20389 #endif
20390 char XOpenDisplay ();
20391 int
20392 main ()
20393 {
20394 return XOpenDisplay ();
20395   ;
20396   return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403   *) ac_try_echo=$ac_try;;
20404 esac
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406   (eval "$ac_link") 2>conftest.er1
20407   ac_status=$?
20408   grep -v '^ *+' conftest.er1 >conftest.err
20409   rm -f conftest.er1
20410   cat conftest.err >&5
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); } &&
20413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20414   { (case "(($ac_try" in
20415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416   *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419   (eval "$ac_try") 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; } &&
20423          { ac_try='test -s conftest$ac_exeext'
20424   { (case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_try") 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; }; then
20433   :
20434 else
20435   echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20439 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20440 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   ac_check_lib_save_LIBS=$LIBS
20444 LIBS="-ldnet  $LIBS"
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451
20452 /* Override any GCC internal prototype to avoid an error.
20453    Use char because int might match the return type of a GCC
20454    builtin and then its argument prototype would still apply.  */
20455 #ifdef __cplusplus
20456 extern "C"
20457 #endif
20458 char dnet_ntoa ();
20459 int
20460 main ()
20461 {
20462 return dnet_ntoa ();
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_link") 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482   { (case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_try") 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; } &&
20491          { ac_try='test -s conftest$ac_exeext'
20492   { (case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_try") 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }; then
20501   ac_cv_lib_dnet_dnet_ntoa=yes
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506         ac_cv_lib_dnet_dnet_ntoa=no
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext \
20510       conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20512 fi
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20514 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20515 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20516   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20517 fi
20518
20519     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20520       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20521 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20522 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525   ac_check_lib_save_LIBS=$LIBS
20526 LIBS="-ldnet_stub  $LIBS"
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h.  */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h.  */
20533
20534 /* Override any GCC internal prototype to avoid an error.
20535    Use char because int might match the return type of a GCC
20536    builtin and then its argument prototype would still apply.  */
20537 #ifdef __cplusplus
20538 extern "C"
20539 #endif
20540 char dnet_ntoa ();
20541 int
20542 main ()
20543 {
20544 return dnet_ntoa ();
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553   *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556   (eval "$ac_link") 2>conftest.er1
20557   ac_status=$?
20558   grep -v '^ *+' conftest.er1 >conftest.err
20559   rm -f conftest.er1
20560   cat conftest.err >&5
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } &&
20563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564   { (case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_try") 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; } &&
20573          { ac_try='test -s conftest$ac_exeext'
20574   { (case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_try") 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588         ac_cv_lib_dnet_stub_dnet_ntoa=no
20589 fi
20590
20591 rm -f core conftest.err conftest.$ac_objext \
20592       conftest$ac_exeext conftest.$ac_ext
20593 LIBS=$ac_check_lib_save_LIBS
20594 fi
20595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20596 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20597 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20598   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20599 fi
20600
20601     fi
20602 fi
20603
20604 rm -f core conftest.err conftest.$ac_objext \
20605       conftest$ac_exeext conftest.$ac_ext
20606     LIBS="$ac_xsave_LIBS"
20607
20608     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20609     # to get the SysV transport functions.
20610     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20611     # needs -lnsl.
20612     # The nsl library prevents programs from opening the X display
20613     # on Irix 5.2, according to T.E. Dickey.
20614     # The functions gethostbyname, getservbyname, and inet_addr are
20615     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20616     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20617 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20618 if test "${ac_cv_func_gethostbyname+set}" = set; then
20619   echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621   cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h.  */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h.  */
20627 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20629 #define gethostbyname innocuous_gethostbyname
20630
20631 /* System header to define __stub macros and hopefully few prototypes,
20632     which can conflict with char gethostbyname (); below.
20633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20634     <limits.h> exists even on freestanding compilers.  */
20635
20636 #ifdef __STDC__
20637 # include <limits.h>
20638 #else
20639 # include <assert.h>
20640 #endif
20641
20642 #undef gethostbyname
20643
20644 /* Override any GCC internal prototype to avoid an error.
20645    Use char because int might match the return type of a GCC
20646    builtin and then its argument prototype would still apply.  */
20647 #ifdef __cplusplus
20648 extern "C"
20649 #endif
20650 char gethostbyname ();
20651 /* The GNU C library defines this for functions which it implements
20652     to always fail with ENOSYS.  Some functions are actually named
20653     something starting with __ and the normal name is an alias.  */
20654 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20655 choke me
20656 #endif
20657
20658 int
20659 main ()
20660 {
20661 return gethostbyname ();
20662   ;
20663   return 0;
20664 }
20665 _ACEOF
20666 rm -f conftest.$ac_objext conftest$ac_exeext
20667 if { (ac_try="$ac_link"
20668 case "(($ac_try" in
20669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670   *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673   (eval "$ac_link") 2>conftest.er1
20674   ac_status=$?
20675   grep -v '^ *+' conftest.er1 >conftest.err
20676   rm -f conftest.er1
20677   cat conftest.err >&5
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); } &&
20680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; } &&
20690          { ac_try='test -s conftest$ac_exeext'
20691   { (case "(($ac_try" in
20692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693   *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696   (eval "$ac_try") 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; }; then
20700   ac_cv_func_gethostbyname=yes
20701 else
20702   echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20704
20705         ac_cv_func_gethostbyname=no
20706 fi
20707
20708 rm -f core conftest.err conftest.$ac_objext \
20709       conftest$ac_exeext conftest.$ac_ext
20710 fi
20711 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20712 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20713
20714     if test $ac_cv_func_gethostbyname = no; then
20715       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20716 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20717 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20718   echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720   ac_check_lib_save_LIBS=$LIBS
20721 LIBS="-lnsl  $LIBS"
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728
20729 /* Override any GCC internal prototype to avoid an error.
20730    Use char because int might match the return type of a GCC
20731    builtin and then its argument prototype would still apply.  */
20732 #ifdef __cplusplus
20733 extern "C"
20734 #endif
20735 char gethostbyname ();
20736 int
20737 main ()
20738 {
20739 return gethostbyname ();
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_link") 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } &&
20758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20759   { (case "(($ac_try" in
20760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761   *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764   (eval "$ac_try") 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); }; } &&
20768          { ac_try='test -s conftest$ac_exeext'
20769   { (case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_try") 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; }; then
20778   ac_cv_lib_nsl_gethostbyname=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783         ac_cv_lib_nsl_gethostbyname=no
20784 fi
20785
20786 rm -f core conftest.err conftest.$ac_objext \
20787       conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20789 fi
20790 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20791 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20792 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20793   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20794 fi
20795
20796       if test $ac_cv_lib_nsl_gethostbyname = no; then
20797         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20798 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20799 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802   ac_check_lib_save_LIBS=$LIBS
20803 LIBS="-lbsd  $LIBS"
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810
20811 /* Override any GCC internal prototype to avoid an error.
20812    Use char because int might match the return type of a GCC
20813    builtin and then its argument prototype would still apply.  */
20814 #ifdef __cplusplus
20815 extern "C"
20816 #endif
20817 char gethostbyname ();
20818 int
20819 main ()
20820 {
20821 return gethostbyname ();
20822   ;
20823   return 0;
20824 }
20825 _ACEOF
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_link") 2>conftest.er1
20834   ac_status=$?
20835   grep -v '^ *+' conftest.er1 >conftest.err
20836   rm -f conftest.er1
20837   cat conftest.err >&5
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); } &&
20840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20841   { (case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_try") 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; } &&
20850          { ac_try='test -s conftest$ac_exeext'
20851   { (case "(($ac_try" in
20852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853   *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856   (eval "$ac_try") 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; }; then
20860   ac_cv_lib_bsd_gethostbyname=yes
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865         ac_cv_lib_bsd_gethostbyname=no
20866 fi
20867
20868 rm -f core conftest.err conftest.$ac_objext \
20869       conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20871 fi
20872 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20873 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20874 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20875   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20876 fi
20877
20878       fi
20879     fi
20880
20881     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20882     # socket/setsockopt and other routines are undefined under SCO ODT
20883     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20884     # on later versions), says Simon Leinen: it contains gethostby*
20885     # variants that don't use the name server (or something).  -lsocket
20886     # must be given before -lnsl if both are needed.  We assume that
20887     # if connect needs -lnsl, so does gethostbyname.
20888     { echo "$as_me:$LINENO: checking for connect" >&5
20889 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20890 if test "${ac_cv_func_connect+set}" = set; then
20891   echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893   cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20901 #define connect innocuous_connect
20902
20903 /* System header to define __stub macros and hopefully few prototypes,
20904     which can conflict with char connect (); below.
20905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906     <limits.h> exists even on freestanding compilers.  */
20907
20908 #ifdef __STDC__
20909 # include <limits.h>
20910 #else
20911 # include <assert.h>
20912 #endif
20913
20914 #undef connect
20915
20916 /* Override any GCC internal prototype to avoid an error.
20917    Use char because int might match the return type of a GCC
20918    builtin and then its argument prototype would still apply.  */
20919 #ifdef __cplusplus
20920 extern "C"
20921 #endif
20922 char connect ();
20923 /* The GNU C library defines this for functions which it implements
20924     to always fail with ENOSYS.  Some functions are actually named
20925     something starting with __ and the normal name is an alias.  */
20926 #if defined __stub_connect || defined __stub___connect
20927 choke me
20928 #endif
20929
20930 int
20931 main ()
20932 {
20933 return connect ();
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_link") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } &&
20952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; } &&
20962          { ac_try='test -s conftest$ac_exeext'
20963   { (case "(($ac_try" in
20964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965   *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968   (eval "$ac_try") 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; }; then
20972   ac_cv_func_connect=yes
20973 else
20974   echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20976
20977         ac_cv_func_connect=no
20978 fi
20979
20980 rm -f core conftest.err conftest.$ac_objext \
20981       conftest$ac_exeext conftest.$ac_ext
20982 fi
20983 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20984 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20985
20986     if test $ac_cv_func_connect = no; then
20987       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20988 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20989 if test "${ac_cv_lib_socket_connect+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h.  */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h.  */
21000
21001 /* Override any GCC internal prototype to avoid an error.
21002    Use char because int might match the return type of a GCC
21003    builtin and then its argument prototype would still apply.  */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 char connect ();
21008 int
21009 main ()
21010 {
21011 return connect ();
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (ac_try="$ac_link"
21018 case "(($ac_try" in
21019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020   *) ac_try_echo=$ac_try;;
21021 esac
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023   (eval "$ac_link") 2>conftest.er1
21024   ac_status=$?
21025   grep -v '^ *+' conftest.er1 >conftest.err
21026   rm -f conftest.er1
21027   cat conftest.err >&5
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } &&
21030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21031   { (case "(($ac_try" in
21032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033   *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036   (eval "$ac_try") 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); }; } &&
21040          { ac_try='test -s conftest$ac_exeext'
21041   { (case "(($ac_try" in
21042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043   *) ac_try_echo=$ac_try;;
21044 esac
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046   (eval "$ac_try") 2>&5
21047   ac_status=$?
21048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049   (exit $ac_status); }; }; then
21050   ac_cv_lib_socket_connect=yes
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055         ac_cv_lib_socket_connect=no
21056 fi
21057
21058 rm -f core conftest.err conftest.$ac_objext \
21059       conftest$ac_exeext conftest.$ac_ext
21060 LIBS=$ac_check_lib_save_LIBS
21061 fi
21062 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21063 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21064 if test $ac_cv_lib_socket_connect = yes; then
21065   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21066 fi
21067
21068     fi
21069
21070     # Guillermo Gomez says -lposix is necessary on A/UX.
21071     { echo "$as_me:$LINENO: checking for remove" >&5
21072 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21073 if test "${ac_cv_func_remove+set}" = set; then
21074   echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076   cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h.  */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h.  */
21082 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21084 #define remove innocuous_remove
21085
21086 /* System header to define __stub macros and hopefully few prototypes,
21087     which can conflict with char remove (); below.
21088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21089     <limits.h> exists even on freestanding compilers.  */
21090
21091 #ifdef __STDC__
21092 # include <limits.h>
21093 #else
21094 # include <assert.h>
21095 #endif
21096
21097 #undef remove
21098
21099 /* Override any GCC internal prototype to avoid an error.
21100    Use char because int might match the return type of a GCC
21101    builtin and then its argument prototype would still apply.  */
21102 #ifdef __cplusplus
21103 extern "C"
21104 #endif
21105 char remove ();
21106 /* The GNU C library defines this for functions which it implements
21107     to always fail with ENOSYS.  Some functions are actually named
21108     something starting with __ and the normal name is an alias.  */
21109 #if defined __stub_remove || defined __stub___remove
21110 choke me
21111 #endif
21112
21113 int
21114 main ()
21115 {
21116 return remove ();
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest.$ac_objext conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_link") 2>conftest.er1
21129   ac_status=$?
21130   grep -v '^ *+' conftest.er1 >conftest.err
21131   rm -f conftest.er1
21132   cat conftest.err >&5
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } &&
21135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
21142   ac_status=$?
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); }; } &&
21145          { ac_try='test -s conftest$ac_exeext'
21146   { (case "(($ac_try" in
21147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148   *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151   (eval "$ac_try") 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); }; }; then
21155   ac_cv_func_remove=yes
21156 else
21157   echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160         ac_cv_func_remove=no
21161 fi
21162
21163 rm -f core conftest.err conftest.$ac_objext \
21164       conftest$ac_exeext conftest.$ac_ext
21165 fi
21166 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21167 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21168
21169     if test $ac_cv_func_remove = no; then
21170       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21171 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21172 if test "${ac_cv_lib_posix_remove+set}" = set; then
21173   echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175   ac_check_lib_save_LIBS=$LIBS
21176 LIBS="-lposix  $LIBS"
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183
21184 /* Override any GCC internal prototype to avoid an error.
21185    Use char because int might match the return type of a GCC
21186    builtin and then its argument prototype would still apply.  */
21187 #ifdef __cplusplus
21188 extern "C"
21189 #endif
21190 char remove ();
21191 int
21192 main ()
21193 {
21194 return remove ();
21195   ;
21196   return 0;
21197 }
21198 _ACEOF
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (ac_try="$ac_link"
21201 case "(($ac_try" in
21202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203   *) ac_try_echo=$ac_try;;
21204 esac
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206   (eval "$ac_link") 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } &&
21213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21214   { (case "(($ac_try" in
21215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216   *) ac_try_echo=$ac_try;;
21217 esac
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219   (eval "$ac_try") 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); }; } &&
21223          { ac_try='test -s conftest$ac_exeext'
21224   { (case "(($ac_try" in
21225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226   *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229   (eval "$ac_try") 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; }; then
21233   ac_cv_lib_posix_remove=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238         ac_cv_lib_posix_remove=no
21239 fi
21240
21241 rm -f core conftest.err conftest.$ac_objext \
21242       conftest$ac_exeext conftest.$ac_ext
21243 LIBS=$ac_check_lib_save_LIBS
21244 fi
21245 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21246 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21247 if test $ac_cv_lib_posix_remove = yes; then
21248   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21249 fi
21250
21251     fi
21252
21253     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21254     { echo "$as_me:$LINENO: checking for shmat" >&5
21255 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21256 if test "${ac_cv_func_shmat+set}" = set; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21267 #define shmat innocuous_shmat
21268
21269 /* System header to define __stub macros and hopefully few prototypes,
21270     which can conflict with char shmat (); below.
21271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21272     <limits.h> exists even on freestanding compilers.  */
21273
21274 #ifdef __STDC__
21275 # include <limits.h>
21276 #else
21277 # include <assert.h>
21278 #endif
21279
21280 #undef shmat
21281
21282 /* Override any GCC internal prototype to avoid an error.
21283    Use char because int might match the return type of a GCC
21284    builtin and then its argument prototype would still apply.  */
21285 #ifdef __cplusplus
21286 extern "C"
21287 #endif
21288 char shmat ();
21289 /* The GNU C library defines this for functions which it implements
21290     to always fail with ENOSYS.  Some functions are actually named
21291     something starting with __ and the normal name is an alias.  */
21292 #if defined __stub_shmat || defined __stub___shmat
21293 choke me
21294 #endif
21295
21296 int
21297 main ()
21298 {
21299 return shmat ();
21300   ;
21301   return 0;
21302 }
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308   *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311   (eval "$ac_link") 2>conftest.er1
21312   ac_status=$?
21313   grep -v '^ *+' conftest.er1 >conftest.err
21314   rm -f conftest.er1
21315   cat conftest.err >&5
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); } &&
21318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
21325   ac_status=$?
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); }; } &&
21328          { ac_try='test -s conftest$ac_exeext'
21329   { (case "(($ac_try" in
21330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331   *) ac_try_echo=$ac_try;;
21332 esac
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334   (eval "$ac_try") 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); }; }; then
21338   ac_cv_func_shmat=yes
21339 else
21340   echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21342
21343         ac_cv_func_shmat=no
21344 fi
21345
21346 rm -f core conftest.err conftest.$ac_objext \
21347       conftest$ac_exeext conftest.$ac_ext
21348 fi
21349 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21350 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21351
21352     if test $ac_cv_func_shmat = no; then
21353       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21356   echo $ECHO_N "(cached) $ECHO_C" >&6
21357 else
21358   ac_check_lib_save_LIBS=$LIBS
21359 LIBS="-lipc  $LIBS"
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366
21367 /* Override any GCC internal prototype to avoid an error.
21368    Use char because int might match the return type of a GCC
21369    builtin and then its argument prototype would still apply.  */
21370 #ifdef __cplusplus
21371 extern "C"
21372 #endif
21373 char shmat ();
21374 int
21375 main ()
21376 {
21377 return shmat ();
21378   ;
21379   return 0;
21380 }
21381 _ACEOF
21382 rm -f conftest.$ac_objext conftest$ac_exeext
21383 if { (ac_try="$ac_link"
21384 case "(($ac_try" in
21385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386   *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389   (eval "$ac_link") 2>conftest.er1
21390   ac_status=$?
21391   grep -v '^ *+' conftest.er1 >conftest.err
21392   rm -f conftest.er1
21393   cat conftest.err >&5
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); } &&
21396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21397   { (case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_try") 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); }; } &&
21406          { ac_try='test -s conftest$ac_exeext'
21407   { (case "(($ac_try" in
21408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409   *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412   (eval "$ac_try") 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; }; then
21416   ac_cv_lib_ipc_shmat=yes
21417 else
21418   echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421         ac_cv_lib_ipc_shmat=no
21422 fi
21423
21424 rm -f core conftest.err conftest.$ac_objext \
21425       conftest$ac_exeext conftest.$ac_ext
21426 LIBS=$ac_check_lib_save_LIBS
21427 fi
21428 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21429 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21430 if test $ac_cv_lib_ipc_shmat = yes; then
21431   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21432 fi
21433
21434     fi
21435   fi
21436
21437   # Check for libraries that X11R6 Xt/Xaw programs need.
21438   ac_save_LDFLAGS=$LDFLAGS
21439   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21440   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21441   # check for ICE first), but we must link in the order -lSM -lICE or
21442   # we get undefined symbols.  So assume we have SM if we have ICE.
21443   # These have to be linked with before -lX11, unlike the other
21444   # libraries we check for below, so use a different variable.
21445   # John Interrante, Karl Berry
21446   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21447 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21448 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451   ac_check_lib_save_LIBS=$LIBS
21452 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459
21460 /* Override any GCC internal prototype to avoid an error.
21461    Use char because int might match the return type of a GCC
21462    builtin and then its argument prototype would still apply.  */
21463 #ifdef __cplusplus
21464 extern "C"
21465 #endif
21466 char IceConnectionNumber ();
21467 int
21468 main ()
21469 {
21470 return IceConnectionNumber ();
21471   ;
21472   return 0;
21473 }
21474 _ACEOF
21475 rm -f conftest.$ac_objext conftest$ac_exeext
21476 if { (ac_try="$ac_link"
21477 case "(($ac_try" in
21478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479   *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482   (eval "$ac_link") 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } &&
21489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21490   { (case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_try") 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; } &&
21499          { ac_try='test -s conftest$ac_exeext'
21500   { (case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_try") 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); }; }; then
21509   ac_cv_lib_ICE_IceConnectionNumber=yes
21510 else
21511   echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21513
21514         ac_cv_lib_ICE_IceConnectionNumber=no
21515 fi
21516
21517 rm -f core conftest.err conftest.$ac_objext \
21518       conftest$ac_exeext conftest.$ac_ext
21519 LIBS=$ac_check_lib_save_LIBS
21520 fi
21521 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21522 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21523 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21524   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21525 fi
21526
21527   LDFLAGS=$ac_save_LDFLAGS
21528
21529 fi
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559 for ac_header in \
21560         assert.h \
21561         fcntl.h \
21562         grp.h \
21563         pwd.h \
21564         libc.h \
21565         limits.h \
21566         stdarg.h \
21567         stdlib.h \
21568         stdint.h \
21569         string.h \
21570         termios.h \
21571         termcap.h \
21572         term.h \
21573         unistd.h \
21574         sys/bitypes.h \
21575         sys/byteorder.h \
21576         sys/ioctl.h \
21577         sys/select.h \
21578         sys/sockio.h \
21579         sys/time.h \
21580         sys/socket.h \
21581         arpa/nameser.h \
21582         resolv.h \
21583         mtio.h \
21584         sys/mtio.h \
21585         sys/tape.h \
21586         regex.h \
21587
21588 do
21589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 fi
21596 ac_res=`eval echo '${'$as_ac_Header'}'`
21597                { echo "$as_me:$LINENO: result: $ac_res" >&5
21598 echo "${ECHO_T}$ac_res" >&6; }
21599 else
21600   # Is the header compilable?
21601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609 $ac_includes_default
21610 #include <$ac_header>
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619   (eval "$ac_compile") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } &&
21626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21627   { (case "(($ac_try" in
21628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629   *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632   (eval "$ac_try") 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; } &&
21636          { ac_try='test -s conftest.$ac_objext'
21637   { (case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_try") 2>&5
21643   ac_status=$?
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); }; }; then
21646   ac_header_compiler=yes
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         ac_header_compiler=no
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21656 echo "${ECHO_T}$ac_header_compiler" >&6; }
21657
21658 # Is the header present?
21659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 #include <$ac_header>
21668 _ACEOF
21669 if { (ac_try="$ac_cpp conftest.$ac_ext"
21670 case "(($ac_try" in
21671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672   *) ac_try_echo=$ac_try;;
21673 esac
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21676   ac_status=$?
21677   grep -v '^ *+' conftest.er1 >conftest.err
21678   rm -f conftest.er1
21679   cat conftest.err >&5
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); } >/dev/null; then
21682   if test -s conftest.err; then
21683     ac_cpp_err=$ac_c_preproc_warn_flag
21684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21685   else
21686     ac_cpp_err=
21687   fi
21688 else
21689   ac_cpp_err=yes
21690 fi
21691 if test -z "$ac_cpp_err"; then
21692   ac_header_preproc=yes
21693 else
21694   echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697   ac_header_preproc=no
21698 fi
21699
21700 rm -f conftest.err conftest.$ac_ext
21701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21702 echo "${ECHO_T}$ac_header_preproc" >&6; }
21703
21704 # So?  What about this header?
21705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21706   yes:no: )
21707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21711     ac_header_preproc=yes
21712     ;;
21713   no:yes:* )
21714     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21716     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21717 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21718     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21720     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21721 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21724     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21726
21727     ;;
21728 esac
21729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   eval "$as_ac_Header=\$ac_header_preproc"
21735 fi
21736 ac_res=`eval echo '${'$as_ac_Header'}'`
21737                { echo "$as_me:$LINENO: result: $ac_res" >&5
21738 echo "${ECHO_T}$ac_res" >&6; }
21739
21740 fi
21741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21742   cat >>confdefs.h <<_ACEOF
21743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21744 _ACEOF
21745
21746 fi
21747
21748 done
21749
21750 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21751 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21752 if test "${ac_cv_header_stdc+set}" = set; then
21753   echo $ECHO_N "(cached) $ECHO_C" >&6
21754 else
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 <stdlib.h>
21762 #include <stdarg.h>
21763 #include <string.h>
21764 #include <float.h>
21765
21766 int
21767 main ()
21768 {
21769
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781   (eval "$ac_compile") 2>conftest.er1
21782   ac_status=$?
21783   grep -v '^ *+' conftest.er1 >conftest.err
21784   rm -f conftest.er1
21785   cat conftest.err >&5
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); } &&
21788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21789   { (case "(($ac_try" in
21790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791   *) ac_try_echo=$ac_try;;
21792 esac
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794   (eval "$ac_try") 2>&5
21795   ac_status=$?
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); }; } &&
21798          { ac_try='test -s conftest.$ac_objext'
21799   { (case "(($ac_try" in
21800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801   *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804   (eval "$ac_try") 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; }; then
21808   ac_cv_header_stdc=yes
21809 else
21810   echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813         ac_cv_header_stdc=no
21814 fi
21815
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817
21818 if test $ac_cv_header_stdc = yes; then
21819   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21820   cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826 #include <string.h>
21827
21828 _ACEOF
21829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21830   $EGREP "memchr" >/dev/null 2>&1; then
21831   :
21832 else
21833   ac_cv_header_stdc=no
21834 fi
21835 rm -f conftest*
21836
21837 fi
21838
21839 if test $ac_cv_header_stdc = yes; then
21840   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21841   cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h.  */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h.  */
21847 #include <stdlib.h>
21848
21849 _ACEOF
21850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21851   $EGREP "free" >/dev/null 2>&1; then
21852   :
21853 else
21854   ac_cv_header_stdc=no
21855 fi
21856 rm -f conftest*
21857
21858 fi
21859
21860 if test $ac_cv_header_stdc = yes; then
21861   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21862   if test "$cross_compiling" = yes; then
21863   :
21864 else
21865   cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 #include <ctype.h>
21872 #include <stdlib.h>
21873 #if ((' ' & 0x0FF) == 0x020)
21874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21876 #else
21877 # define ISLOWER(c) \
21878                    (('a' <= (c) && (c) <= 'i') \
21879                      || ('j' <= (c) && (c) <= 'r') \
21880                      || ('s' <= (c) && (c) <= 'z'))
21881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21882 #endif
21883
21884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21885 int
21886 main ()
21887 {
21888   int i;
21889   for (i = 0; i < 256; i++)
21890     if (XOR (islower (i), ISLOWER (i))
21891         || toupper (i) != TOUPPER (i))
21892       return 2;
21893   return 0;
21894 }
21895 _ACEOF
21896 rm -f 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>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21907   { (case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_try") 2>&5
21913   ac_status=$?
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); }; }; then
21916   :
21917 else
21918   echo "$as_me: program exited with status $ac_status" >&5
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922 ( exit $ac_status )
21923 ac_cv_header_stdc=no
21924 fi
21925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21926 fi
21927
21928
21929 fi
21930 fi
21931 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21932 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21933 if test $ac_cv_header_stdc = yes; then
21934
21935 cat >>confdefs.h <<\_ACEOF
21936 #define STDC_HEADERS 1
21937 _ACEOF
21938
21939 fi
21940
21941 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21942 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21943 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21944   echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946   cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 #include <sys/types.h>
21953 int
21954 main ()
21955 {
21956 return makedev(0, 0);
21957   ;
21958   return 0;
21959 }
21960 _ACEOF
21961 rm -f conftest.$ac_objext conftest$ac_exeext
21962 if { (ac_try="$ac_link"
21963 case "(($ac_try" in
21964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965   *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968   (eval "$ac_link") 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } &&
21975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21976   { (case "(($ac_try" in
21977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978   *) ac_try_echo=$ac_try;;
21979 esac
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981   (eval "$ac_try") 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); }; } &&
21985          { ac_try='test -s conftest$ac_exeext'
21986   { (case "(($ac_try" in
21987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988   *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991   (eval "$ac_try") 2>&5
21992   ac_status=$?
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); }; }; then
21995   ac_cv_header_sys_types_h_makedev=yes
21996 else
21997   echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
21999
22000         ac_cv_header_sys_types_h_makedev=no
22001 fi
22002
22003 rm -f core conftest.err conftest.$ac_objext \
22004       conftest$ac_exeext conftest.$ac_ext
22005
22006 fi
22007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
22008 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
22009
22010 if test $ac_cv_header_sys_types_h_makedev = no; then
22011 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22012   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22013 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22014 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22015   echo $ECHO_N "(cached) $ECHO_C" >&6
22016 fi
22017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22018 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22019 else
22020   # Is the header compilable?
22021 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
22022 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h.  */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h.  */
22029 $ac_includes_default
22030 #include <sys/mkdev.h>
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
22034 case "(($ac_try" in
22035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036   *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039   (eval "$ac_compile") 2>conftest.er1
22040   ac_status=$?
22041   grep -v '^ *+' conftest.er1 >conftest.err
22042   rm -f conftest.er1
22043   cat conftest.err >&5
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); } &&
22046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22047   { (case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_try") 2>&5
22053   ac_status=$?
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); }; } &&
22056          { ac_try='test -s conftest.$ac_objext'
22057   { (case "(($ac_try" in
22058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059   *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062   (eval "$ac_try") 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; }; then
22066   ac_header_compiler=yes
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071         ac_header_compiler=no
22072 fi
22073
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22076 echo "${ECHO_T}$ac_header_compiler" >&6; }
22077
22078 # Is the header present?
22079 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22080 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087 #include <sys/mkdev.h>
22088 _ACEOF
22089 if { (ac_try="$ac_cpp conftest.$ac_ext"
22090 case "(($ac_try" in
22091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092   *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22096   ac_status=$?
22097   grep -v '^ *+' conftest.er1 >conftest.err
22098   rm -f conftest.er1
22099   cat conftest.err >&5
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); } >/dev/null; then
22102   if test -s conftest.err; then
22103     ac_cpp_err=$ac_c_preproc_warn_flag
22104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22105   else
22106     ac_cpp_err=
22107   fi
22108 else
22109   ac_cpp_err=yes
22110 fi
22111 if test -z "$ac_cpp_err"; then
22112   ac_header_preproc=yes
22113 else
22114   echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117   ac_header_preproc=no
22118 fi
22119
22120 rm -f conftest.err conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22122 echo "${ECHO_T}$ac_header_preproc" >&6; }
22123
22124 # So?  What about this header?
22125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22126   yes:no: )
22127     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22128 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22129     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22130 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22131     ac_header_preproc=yes
22132     ;;
22133   no:yes:* )
22134     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22135 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22136     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
22137 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
22138     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22139 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22140     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
22141 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22142     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22143 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22144     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22145 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22146
22147     ;;
22148 esac
22149 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22150 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22151 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22152   echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154   ac_cv_header_sys_mkdev_h=$ac_header_preproc
22155 fi
22156 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22157 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22158
22159 fi
22160 if test $ac_cv_header_sys_mkdev_h = yes; then
22161
22162 cat >>confdefs.h <<\_ACEOF
22163 #define MAJOR_IN_MKDEV 1
22164 _ACEOF
22165
22166 fi
22167
22168
22169
22170   if test $ac_cv_header_sys_mkdev_h = no; then
22171     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22172   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22173 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22174 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22175   echo $ECHO_N "(cached) $ECHO_C" >&6
22176 fi
22177 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22178 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22179 else
22180   # Is the header compilable?
22181 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22182 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h.  */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h.  */
22189 $ac_includes_default
22190 #include <sys/sysmacros.h>
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196   *) ac_try_echo=$ac_try;;
22197 esac
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199   (eval "$ac_compile") 2>conftest.er1
22200   ac_status=$?
22201   grep -v '^ *+' conftest.er1 >conftest.err
22202   rm -f conftest.er1
22203   cat conftest.err >&5
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); } &&
22206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22207   { (case "(($ac_try" in
22208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209   *) ac_try_echo=$ac_try;;
22210 esac
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212   (eval "$ac_try") 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; } &&
22216          { ac_try='test -s conftest.$ac_objext'
22217   { (case "(($ac_try" in
22218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219   *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222   (eval "$ac_try") 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; }; then
22226   ac_header_compiler=yes
22227 else
22228   echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22230
22231         ac_header_compiler=no
22232 fi
22233
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22236 echo "${ECHO_T}$ac_header_compiler" >&6; }
22237
22238 # Is the header present?
22239 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22240 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22241 cat >conftest.$ac_ext <<_ACEOF
22242 /* confdefs.h.  */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h.  */
22247 #include <sys/sysmacros.h>
22248 _ACEOF
22249 if { (ac_try="$ac_cpp conftest.$ac_ext"
22250 case "(($ac_try" in
22251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252   *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } >/dev/null; then
22262   if test -s conftest.err; then
22263     ac_cpp_err=$ac_c_preproc_warn_flag
22264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22265   else
22266     ac_cpp_err=
22267   fi
22268 else
22269   ac_cpp_err=yes
22270 fi
22271 if test -z "$ac_cpp_err"; then
22272   ac_header_preproc=yes
22273 else
22274   echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277   ac_header_preproc=no
22278 fi
22279
22280 rm -f conftest.err conftest.$ac_ext
22281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22282 echo "${ECHO_T}$ac_header_preproc" >&6; }
22283
22284 # So?  What about this header?
22285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22286   yes:no: )
22287     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22288 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22289     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22290 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22291     ac_header_preproc=yes
22292     ;;
22293   no:yes:* )
22294     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22295 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22296     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22297 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22298     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22299 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22300     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22301 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22302     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22303 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22304     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22305 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22306
22307     ;;
22308 esac
22309 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22310 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22311 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22315 fi
22316 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22317 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22318
22319 fi
22320 if test $ac_cv_header_sys_sysmacros_h = yes; then
22321
22322 cat >>confdefs.h <<\_ACEOF
22323 #define MAJOR_IN_SYSMACROS 1
22324 _ACEOF
22325
22326 fi
22327
22328
22329   fi
22330 fi
22331
22332
22333
22334
22335
22336
22337 ac_header_dirent=no
22338 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22339   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22340 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22341 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22343   echo $ECHO_N "(cached) $ECHO_C" >&6
22344 else
22345   cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h.  */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h.  */
22351 #include <sys/types.h>
22352 #include <$ac_hdr>
22353
22354 int
22355 main ()
22356 {
22357 if ((DIR *) 0)
22358 return 0;
22359   ;
22360   return 0;
22361 }
22362 _ACEOF
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367   *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370   (eval "$ac_compile") 2>conftest.er1
22371   ac_status=$?
22372   grep -v '^ *+' conftest.er1 >conftest.err
22373   rm -f conftest.er1
22374   cat conftest.err >&5
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } &&
22377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22378   { (case "(($ac_try" in
22379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380   *) ac_try_echo=$ac_try;;
22381 esac
22382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383   (eval "$ac_try") 2>&5
22384   ac_status=$?
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); }; } &&
22387          { ac_try='test -s conftest.$ac_objext'
22388   { (case "(($ac_try" in
22389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390   *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393   (eval "$ac_try") 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); }; }; then
22397   eval "$as_ac_Header=yes"
22398 else
22399   echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402         eval "$as_ac_Header=no"
22403 fi
22404
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 fi
22407 ac_res=`eval echo '${'$as_ac_Header'}'`
22408                { echo "$as_me:$LINENO: result: $ac_res" >&5
22409 echo "${ECHO_T}$ac_res" >&6; }
22410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22411   cat >>confdefs.h <<_ACEOF
22412 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22413 _ACEOF
22414
22415 ac_header_dirent=$ac_hdr; break
22416 fi
22417
22418 done
22419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22420 if test $ac_header_dirent = dirent.h; then
22421   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22422 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22423 if test "${ac_cv_search_opendir+set}" = set; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   ac_func_search_save_LIBS=$LIBS
22427 cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433
22434 /* Override any GCC internal prototype to avoid an error.
22435    Use char because int might match the return type of a GCC
22436    builtin and then its argument prototype would still apply.  */
22437 #ifdef __cplusplus
22438 extern "C"
22439 #endif
22440 char opendir ();
22441 int
22442 main ()
22443 {
22444 return opendir ();
22445   ;
22446   return 0;
22447 }
22448 _ACEOF
22449 for ac_lib in '' dir; do
22450   if test -z "$ac_lib"; then
22451     ac_res="none required"
22452   else
22453     ac_res=-l$ac_lib
22454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22455   fi
22456   rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_link") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } &&
22470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22471   { (case "(($ac_try" in
22472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473   *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476   (eval "$ac_try") 2>&5
22477   ac_status=$?
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); }; } &&
22480          { ac_try='test -s conftest$ac_exeext'
22481   { (case "(($ac_try" in
22482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483   *) ac_try_echo=$ac_try;;
22484 esac
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486   (eval "$ac_try") 2>&5
22487   ac_status=$?
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); }; }; then
22490   ac_cv_search_opendir=$ac_res
22491 else
22492   echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22494
22495
22496 fi
22497
22498 rm -f core conftest.err conftest.$ac_objext \
22499       conftest$ac_exeext
22500   if test "${ac_cv_search_opendir+set}" = set; then
22501   break
22502 fi
22503 done
22504 if test "${ac_cv_search_opendir+set}" = set; then
22505   :
22506 else
22507   ac_cv_search_opendir=no
22508 fi
22509 rm conftest.$ac_ext
22510 LIBS=$ac_func_search_save_LIBS
22511 fi
22512 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22513 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22514 ac_res=$ac_cv_search_opendir
22515 if test "$ac_res" != no; then
22516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22517
22518 fi
22519
22520 else
22521   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22523 if test "${ac_cv_search_opendir+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526   ac_func_search_save_LIBS=$LIBS
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533
22534 /* Override any GCC internal prototype to avoid an error.
22535    Use char because int might match the return type of a GCC
22536    builtin and then its argument prototype would still apply.  */
22537 #ifdef __cplusplus
22538 extern "C"
22539 #endif
22540 char opendir ();
22541 int
22542 main ()
22543 {
22544 return opendir ();
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 for ac_lib in '' x; do
22550   if test -z "$ac_lib"; then
22551     ac_res="none required"
22552   else
22553     ac_res=-l$ac_lib
22554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22555   fi
22556   rm -f conftest.$ac_objext conftest$ac_exeext
22557 if { (ac_try="$ac_link"
22558 case "(($ac_try" in
22559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560   *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563   (eval "$ac_link") 2>conftest.er1
22564   ac_status=$?
22565   grep -v '^ *+' conftest.er1 >conftest.err
22566   rm -f conftest.er1
22567   cat conftest.err >&5
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); } &&
22570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22571   { (case "(($ac_try" in
22572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573   *) ac_try_echo=$ac_try;;
22574 esac
22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576   (eval "$ac_try") 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; } &&
22580          { ac_try='test -s conftest$ac_exeext'
22581   { (case "(($ac_try" in
22582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583   *) ac_try_echo=$ac_try;;
22584 esac
22585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586   (eval "$ac_try") 2>&5
22587   ac_status=$?
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); }; }; then
22590   ac_cv_search_opendir=$ac_res
22591 else
22592   echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22594
22595
22596 fi
22597
22598 rm -f core conftest.err conftest.$ac_objext \
22599       conftest$ac_exeext
22600   if test "${ac_cv_search_opendir+set}" = set; then
22601   break
22602 fi
22603 done
22604 if test "${ac_cv_search_opendir+set}" = set; then
22605   :
22606 else
22607   ac_cv_search_opendir=no
22608 fi
22609 rm conftest.$ac_ext
22610 LIBS=$ac_func_search_save_LIBS
22611 fi
22612 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22613 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22614 ac_res=$ac_cv_search_opendir
22615 if test "$ac_res" != no; then
22616   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22617
22618 fi
22619
22620 fi
22621
22622 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22623 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22624 if test "${ac_cv_header_stat_broken+set}" = set; then
22625   echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627   cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h.  */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h.  */
22633 #include <sys/types.h>
22634 #include <sys/stat.h>
22635
22636 #if defined S_ISBLK && defined S_IFDIR
22637 # if S_ISBLK (S_IFDIR)
22638 You lose.
22639 # endif
22640 #endif
22641
22642 #if defined S_ISBLK && defined S_IFCHR
22643 # if S_ISBLK (S_IFCHR)
22644 You lose.
22645 # endif
22646 #endif
22647
22648 #if defined S_ISLNK && defined S_IFREG
22649 # if S_ISLNK (S_IFREG)
22650 You lose.
22651 # endif
22652 #endif
22653
22654 #if defined S_ISSOCK && defined S_IFREG
22655 # if S_ISSOCK (S_IFREG)
22656 You lose.
22657 # endif
22658 #endif
22659
22660 _ACEOF
22661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22662   $EGREP "You lose" >/dev/null 2>&1; then
22663   ac_cv_header_stat_broken=yes
22664 else
22665   ac_cv_header_stat_broken=no
22666 fi
22667 rm -f conftest*
22668
22669 fi
22670 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22671 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22672 if test $ac_cv_header_stat_broken = yes; then
22673
22674 cat >>confdefs.h <<\_ACEOF
22675 #define STAT_MACROS_BROKEN 1
22676 _ACEOF
22677
22678 fi
22679
22680 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22681 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22682 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22683   echo $ECHO_N "(cached) $ECHO_C" >&6
22684 else
22685   cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h.  */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h.  */
22691 #include <sys/types.h>
22692 #include <sys/wait.h>
22693 #ifndef WEXITSTATUS
22694 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22695 #endif
22696 #ifndef WIFEXITED
22697 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22698 #endif
22699
22700 int
22701 main ()
22702 {
22703   int s;
22704   wait (&s);
22705   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22706   ;
22707   return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714   *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717   (eval "$ac_compile") 2>conftest.er1
22718   ac_status=$?
22719   grep -v '^ *+' conftest.er1 >conftest.err
22720   rm -f conftest.er1
22721   cat conftest.err >&5
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); } &&
22724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
22731   ac_status=$?
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); }; } &&
22734          { ac_try='test -s conftest.$ac_objext'
22735   { (case "(($ac_try" in
22736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737   *) ac_try_echo=$ac_try;;
22738 esac
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740   (eval "$ac_try") 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; }; then
22744   ac_cv_header_sys_wait_h=yes
22745 else
22746   echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749         ac_cv_header_sys_wait_h=no
22750 fi
22751
22752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753 fi
22754 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22755 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22756 if test $ac_cv_header_sys_wait_h = yes; then
22757
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_SYS_WAIT_H 1
22760 _ACEOF
22761
22762 fi
22763
22764 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22765 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22766 if test "${ac_cv_header_time+set}" = set; then
22767   echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769   cat >conftest.$ac_ext <<_ACEOF
22770 /* confdefs.h.  */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h.  */
22775 #include <sys/types.h>
22776 #include <sys/time.h>
22777 #include <time.h>
22778
22779 int
22780 main ()
22781 {
22782 if ((struct tm *) 0)
22783 return 0;
22784   ;
22785   return 0;
22786 }
22787 _ACEOF
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_compile") 2>conftest.er1
22796   ac_status=$?
22797   grep -v '^ *+' conftest.er1 >conftest.err
22798   rm -f conftest.er1
22799   cat conftest.err >&5
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } &&
22802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22803   { (case "(($ac_try" in
22804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805   *) ac_try_echo=$ac_try;;
22806 esac
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808   (eval "$ac_try") 2>&5
22809   ac_status=$?
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); }; } &&
22812          { ac_try='test -s conftest.$ac_objext'
22813   { (case "(($ac_try" in
22814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815   *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818   (eval "$ac_try") 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; }; then
22822   ac_cv_header_time=yes
22823 else
22824   echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827         ac_cv_header_time=no
22828 fi
22829
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 fi
22832 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22833 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22834 if test $ac_cv_header_time = yes; then
22835
22836 cat >>confdefs.h <<\_ACEOF
22837 #define TIME_WITH_SYS_TIME 1
22838 _ACEOF
22839
22840 fi
22841
22842 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22843 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22844 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22845   echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847   cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853 $ac_includes_default
22854 int
22855 main ()
22856 {
22857 static struct stat ac_aggr;
22858 if (ac_aggr.st_blksize)
22859 return 0;
22860   ;
22861   return 0;
22862 }
22863 _ACEOF
22864 rm -f conftest.$ac_objext
22865 if { (ac_try="$ac_compile"
22866 case "(($ac_try" in
22867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868   *) ac_try_echo=$ac_try;;
22869 esac
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871   (eval "$ac_compile") 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } &&
22878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22879   { (case "(($ac_try" in
22880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881   *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884   (eval "$ac_try") 2>&5
22885   ac_status=$?
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); }; } &&
22888          { ac_try='test -s conftest.$ac_objext'
22889   { (case "(($ac_try" in
22890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891   *) ac_try_echo=$ac_try;;
22892 esac
22893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22894   (eval "$ac_try") 2>&5
22895   ac_status=$?
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); }; }; then
22898   ac_cv_member_struct_stat_st_blksize=yes
22899 else
22900   echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903         cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909 $ac_includes_default
22910 int
22911 main ()
22912 {
22913 static struct stat ac_aggr;
22914 if (sizeof ac_aggr.st_blksize)
22915 return 0;
22916   ;
22917   return 0;
22918 }
22919 _ACEOF
22920 rm -f conftest.$ac_objext
22921 if { (ac_try="$ac_compile"
22922 case "(($ac_try" in
22923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924   *) ac_try_echo=$ac_try;;
22925 esac
22926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22927   (eval "$ac_compile") 2>conftest.er1
22928   ac_status=$?
22929   grep -v '^ *+' conftest.er1 >conftest.err
22930   rm -f conftest.er1
22931   cat conftest.err >&5
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); } &&
22934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22935   { (case "(($ac_try" in
22936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937   *) ac_try_echo=$ac_try;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940   (eval "$ac_try") 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; } &&
22944          { ac_try='test -s conftest.$ac_objext'
22945   { (case "(($ac_try" in
22946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947   *) ac_try_echo=$ac_try;;
22948 esac
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950   (eval "$ac_try") 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; }; then
22954   ac_cv_member_struct_stat_st_blksize=yes
22955 else
22956   echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959         ac_cv_member_struct_stat_st_blksize=no
22960 fi
22961
22962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 fi
22964
22965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22966 fi
22967 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22968 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22969 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22970
22971 cat >>confdefs.h <<_ACEOF
22972 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22973 _ACEOF
22974
22975
22976 cat >>confdefs.h <<\_ACEOF
22977 #define HAVE_ST_BLKSIZE 1
22978 _ACEOF
22979
22980 fi
22981
22982
22983 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22984 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22985 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994 $ac_includes_default
22995 int
22996 main ()
22997 {
22998 static struct stat ac_aggr;
22999 if (ac_aggr.st_blocks)
23000 return 0;
23001   ;
23002   return 0;
23003 }
23004 _ACEOF
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009   *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012   (eval "$ac_compile") 2>conftest.er1
23013   ac_status=$?
23014   grep -v '^ *+' conftest.er1 >conftest.err
23015   rm -f conftest.er1
23016   cat conftest.err >&5
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); } &&
23019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23020   { (case "(($ac_try" in
23021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022   *) ac_try_echo=$ac_try;;
23023 esac
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025   (eval "$ac_try") 2>&5
23026   ac_status=$?
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); }; } &&
23029          { ac_try='test -s conftest.$ac_objext'
23030   { (case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_try") 2>&5
23036   ac_status=$?
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); }; }; then
23039   ac_cv_member_struct_stat_st_blocks=yes
23040 else
23041   echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23043
23044         cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050 $ac_includes_default
23051 int
23052 main ()
23053 {
23054 static struct stat ac_aggr;
23055 if (sizeof ac_aggr.st_blocks)
23056 return 0;
23057   ;
23058   return 0;
23059 }
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_compile") 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } &&
23075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23076   { (case "(($ac_try" in
23077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078   *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081   (eval "$ac_try") 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; } &&
23085          { ac_try='test -s conftest.$ac_objext'
23086   { (case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091   (eval "$ac_try") 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); }; }; then
23095   ac_cv_member_struct_stat_st_blocks=yes
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100         ac_cv_member_struct_stat_st_blocks=no
23101 fi
23102
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107 fi
23108 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23109 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23110 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23111
23112 cat >>confdefs.h <<_ACEOF
23113 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23114 _ACEOF
23115
23116
23117 cat >>confdefs.h <<\_ACEOF
23118 #define HAVE_ST_BLOCKS 1
23119 _ACEOF
23120
23121 else
23122   case " $LIBOBJS " in
23123   *" fileblocks.$ac_objext "* ) ;;
23124   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23125  ;;
23126 esac
23127
23128 fi
23129
23130
23131 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23132 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23133 if test "${ac_cv_struct_tm+set}" = set; then
23134   echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136   cat >conftest.$ac_ext <<_ACEOF
23137 /* confdefs.h.  */
23138 _ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h.  */
23142 #include <sys/types.h>
23143 #include <time.h>
23144
23145 int
23146 main ()
23147 {
23148 struct tm *tp; tp->tm_sec;
23149   ;
23150   return 0;
23151 }
23152 _ACEOF
23153 rm -f conftest.$ac_objext
23154 if { (ac_try="$ac_compile"
23155 case "(($ac_try" in
23156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157   *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160   (eval "$ac_compile") 2>conftest.er1
23161   ac_status=$?
23162   grep -v '^ *+' conftest.er1 >conftest.err
23163   rm -f conftest.er1
23164   cat conftest.err >&5
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); } &&
23167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23168   { (case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173   (eval "$ac_try") 2>&5
23174   ac_status=$?
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); }; } &&
23177          { ac_try='test -s conftest.$ac_objext'
23178   { (case "(($ac_try" in
23179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180   *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183   (eval "$ac_try") 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; }; then
23187   ac_cv_struct_tm=time.h
23188 else
23189   echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192         ac_cv_struct_tm=sys/time.h
23193 fi
23194
23195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23196 fi
23197 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23198 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23199 if test $ac_cv_struct_tm = sys/time.h; then
23200
23201 cat >>confdefs.h <<\_ACEOF
23202 #define TM_IN_SYS_TIME 1
23203 _ACEOF
23204
23205 fi
23206
23207 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23208 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23209 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23210   echo $ECHO_N "(cached) $ECHO_C" >&6
23211 else
23212   cat >conftest.$ac_ext <<_ACEOF
23213 /* confdefs.h.  */
23214 _ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h.  */
23218 #include <sys/types.h>
23219 #include <$ac_cv_struct_tm>
23220
23221
23222 int
23223 main ()
23224 {
23225 static struct tm ac_aggr;
23226 if (ac_aggr.tm_zone)
23227 return 0;
23228   ;
23229   return 0;
23230 }
23231 _ACEOF
23232 rm -f conftest.$ac_objext
23233 if { (ac_try="$ac_compile"
23234 case "(($ac_try" in
23235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23236   *) ac_try_echo=$ac_try;;
23237 esac
23238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23239   (eval "$ac_compile") 2>conftest.er1
23240   ac_status=$?
23241   grep -v '^ *+' conftest.er1 >conftest.err
23242   rm -f conftest.er1
23243   cat conftest.err >&5
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); } &&
23246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23247   { (case "(($ac_try" in
23248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249   *) ac_try_echo=$ac_try;;
23250 esac
23251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23252   (eval "$ac_try") 2>&5
23253   ac_status=$?
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); }; } &&
23256          { ac_try='test -s conftest.$ac_objext'
23257   { (case "(($ac_try" in
23258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259   *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262   (eval "$ac_try") 2>&5
23263   ac_status=$?
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); }; }; then
23266   ac_cv_member_struct_tm_tm_zone=yes
23267 else
23268   echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23270
23271         cat >conftest.$ac_ext <<_ACEOF
23272 /* confdefs.h.  */
23273 _ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h.  */
23277 #include <sys/types.h>
23278 #include <$ac_cv_struct_tm>
23279
23280
23281 int
23282 main ()
23283 {
23284 static struct tm ac_aggr;
23285 if (sizeof ac_aggr.tm_zone)
23286 return 0;
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295   *) ac_try_echo=$ac_try;;
23296 esac
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298   (eval "$ac_compile") 2>conftest.er1
23299   ac_status=$?
23300   grep -v '^ *+' conftest.er1 >conftest.err
23301   rm -f conftest.er1
23302   cat conftest.err >&5
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); } &&
23305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23306   { (case "(($ac_try" in
23307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308   *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311   (eval "$ac_try") 2>&5
23312   ac_status=$?
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); }; } &&
23315          { ac_try='test -s conftest.$ac_objext'
23316   { (case "(($ac_try" in
23317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318   *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321   (eval "$ac_try") 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; }; then
23325   ac_cv_member_struct_tm_tm_zone=yes
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330         ac_cv_member_struct_tm_tm_zone=no
23331 fi
23332
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334 fi
23335
23336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23337 fi
23338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23339 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23340 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23341
23342 cat >>confdefs.h <<_ACEOF
23343 #define HAVE_STRUCT_TM_TM_ZONE 1
23344 _ACEOF
23345
23346
23347 fi
23348
23349 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23350
23351 cat >>confdefs.h <<\_ACEOF
23352 #define HAVE_TM_ZONE 1
23353 _ACEOF
23354
23355 else
23356   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23357 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23358 if test "${ac_cv_have_decl_tzname+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361   cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367 #include <time.h>
23368
23369 int
23370 main ()
23371 {
23372 #ifndef tzname
23373   char *p = (char *) tzname;
23374   return !p;
23375 #endif
23376
23377   ;
23378   return 0;
23379 }
23380 _ACEOF
23381 rm -f conftest.$ac_objext
23382 if { (ac_try="$ac_compile"
23383 case "(($ac_try" in
23384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385   *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388   (eval "$ac_compile") 2>conftest.er1
23389   ac_status=$?
23390   grep -v '^ *+' conftest.er1 >conftest.err
23391   rm -f conftest.er1
23392   cat conftest.err >&5
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); } &&
23395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23396   { (case "(($ac_try" in
23397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398   *) ac_try_echo=$ac_try;;
23399 esac
23400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401   (eval "$ac_try") 2>&5
23402   ac_status=$?
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); }; } &&
23405          { ac_try='test -s conftest.$ac_objext'
23406   { (case "(($ac_try" in
23407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408   *) ac_try_echo=$ac_try;;
23409 esac
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411   (eval "$ac_try") 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; }; then
23415   ac_cv_have_decl_tzname=yes
23416 else
23417   echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420         ac_cv_have_decl_tzname=no
23421 fi
23422
23423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23424 fi
23425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23426 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23427 if test $ac_cv_have_decl_tzname = yes; then
23428
23429 cat >>confdefs.h <<_ACEOF
23430 #define HAVE_DECL_TZNAME 1
23431 _ACEOF
23432
23433
23434 else
23435   cat >>confdefs.h <<_ACEOF
23436 #define HAVE_DECL_TZNAME 0
23437 _ACEOF
23438
23439
23440 fi
23441
23442
23443   { echo "$as_me:$LINENO: checking for tzname" >&5
23444 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23445 if test "${ac_cv_var_tzname+set}" = set; then
23446   echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448   cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454 #include <time.h>
23455 #if !HAVE_DECL_TZNAME
23456 extern char *tzname[];
23457 #endif
23458
23459 int
23460 main ()
23461 {
23462 return tzname[0][0];
23463   ;
23464   return 0;
23465 }
23466 _ACEOF
23467 rm -f conftest.$ac_objext conftest$ac_exeext
23468 if { (ac_try="$ac_link"
23469 case "(($ac_try" in
23470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471   *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474   (eval "$ac_link") 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } &&
23481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23482   { (case "(($ac_try" in
23483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484   *) ac_try_echo=$ac_try;;
23485 esac
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487   (eval "$ac_try") 2>&5
23488   ac_status=$?
23489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); }; } &&
23491          { ac_try='test -s conftest$ac_exeext'
23492   { (case "(($ac_try" in
23493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23494   *) ac_try_echo=$ac_try;;
23495 esac
23496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23497   (eval "$ac_try") 2>&5
23498   ac_status=$?
23499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); }; }; then
23501   ac_cv_var_tzname=yes
23502 else
23503   echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23505
23506         ac_cv_var_tzname=no
23507 fi
23508
23509 rm -f core conftest.err conftest.$ac_objext \
23510       conftest$ac_exeext conftest.$ac_ext
23511 fi
23512 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23513 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23514   if test $ac_cv_var_tzname = yes; then
23515
23516 cat >>confdefs.h <<\_ACEOF
23517 #define HAVE_TZNAME 1
23518 _ACEOF
23519
23520   fi
23521 fi
23522
23523
23524 { echo "$as_me:$LINENO: checking for utime.h" >&5
23525 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23526 if test "${ba_cv_header_utime_h+set}" = set; then
23527   echo $ECHO_N "(cached) $ECHO_C" >&6
23528 else
23529   cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h.  */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h.  */
23535
23536 #include <sys/types.h>
23537 #include <utime.h>
23538 int
23539 main ()
23540 {
23541 struct utimbuf foo
23542   ;
23543   return 0;
23544 }
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550   *) ac_try_echo=$ac_try;;
23551 esac
23552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23553   (eval "$ac_compile") 2>conftest.er1
23554   ac_status=$?
23555   grep -v '^ *+' conftest.er1 >conftest.err
23556   rm -f conftest.er1
23557   cat conftest.err >&5
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } &&
23560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23561   { (case "(($ac_try" in
23562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563   *) ac_try_echo=$ac_try;;
23564 esac
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566   (eval "$ac_try") 2>&5
23567   ac_status=$?
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); }; } &&
23570          { ac_try='test -s conftest.$ac_objext'
23571   { (case "(($ac_try" in
23572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573   *) ac_try_echo=$ac_try;;
23574 esac
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576   (eval "$ac_try") 2>&5
23577   ac_status=$?
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; }; then
23580   ba_cv_header_utime_h=yes
23581 else
23582   echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23584
23585         ba_cv_header_utime_h=no
23586 fi
23587
23588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23589 fi
23590 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23591 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23592 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23593 #define HAVE_UTIME_H 1
23594 _ACEOF
23595
23596
23597 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23598 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23599 if test "${ba_cv_header_socklen_t+set}" = set; then
23600   echo $ECHO_N "(cached) $ECHO_C" >&6
23601 else
23602   cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608
23609 #include <sys/types.h>
23610 #include <sys/socket.h>
23611 int
23612 main ()
23613 {
23614 socklen_t x
23615   ;
23616   return 0;
23617 }
23618 _ACEOF
23619 rm -f conftest.$ac_objext
23620 if { (ac_try="$ac_compile"
23621 case "(($ac_try" in
23622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623   *) ac_try_echo=$ac_try;;
23624 esac
23625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626   (eval "$ac_compile") 2>conftest.er1
23627   ac_status=$?
23628   grep -v '^ *+' conftest.er1 >conftest.err
23629   rm -f conftest.er1
23630   cat conftest.err >&5
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); } &&
23633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23634   { (case "(($ac_try" in
23635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636   *) ac_try_echo=$ac_try;;
23637 esac
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639   (eval "$ac_try") 2>&5
23640   ac_status=$?
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); }; } &&
23643          { ac_try='test -s conftest.$ac_objext'
23644   { (case "(($ac_try" in
23645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646   *) ac_try_echo=$ac_try;;
23647 esac
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649   (eval "$ac_try") 2>&5
23650   ac_status=$?
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); }; }; then
23653   ba_cv_header_socklen_t=yes
23654 else
23655   echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23657
23658         ba_cv_header_socklen_t=no
23659 fi
23660
23661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 fi
23663 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23664 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23665 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23666 #define HAVE_SOCKLEN_T 1
23667 _ACEOF
23668
23669
23670 { echo "$as_me:$LINENO: checking for bigendian" >&5
23671 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23672 if test "${ba_cv_bigendian+set}" = set; then
23673   echo $ECHO_N "(cached) $ECHO_C" >&6
23674 else
23675   if test "$cross_compiling" = yes; then
23676   ba_cv_bigendian=no
23677 else
23678   cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h.  */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h.  */
23684 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23685 _ACEOF
23686 rm -f conftest$ac_exeext
23687 if { (ac_try="$ac_link"
23688 case "(($ac_try" in
23689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690   *) ac_try_echo=$ac_try;;
23691 esac
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693   (eval "$ac_link") 2>&5
23694   ac_status=$?
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23697   { (case "(($ac_try" in
23698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699   *) ac_try_echo=$ac_try;;
23700 esac
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702   (eval "$ac_try") 2>&5
23703   ac_status=$?
23704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705   (exit $ac_status); }; }; then
23706   ba_cv_bigendian=yes
23707 else
23708   echo "$as_me: program exited with status $ac_status" >&5
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23711
23712 ( exit $ac_status )
23713 ba_cv_bigendian=no
23714 fi
23715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23716 fi
23717
23718
23719 fi
23720 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23721 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23722 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23723 #define HAVE_BIGENDIAN 1
23724 _ACEOF
23725
23726
23727 ac_ext=cpp
23728 ac_cpp='$CXXCPP $CPPFLAGS'
23729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23732
23733
23734 { echo "$as_me:$LINENO: checking for typeof" >&5
23735 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23736 if test "${ba_cv_have_typeof+set}" = set; then
23737   echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739   if test "$cross_compiling" = yes; then
23740   ba_cv_have_typeof=no
23741 else
23742   cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h.  */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h.  */
23748 main(){char *a = 0; a = (typeof a)a;}
23749 _ACEOF
23750 rm -f conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754   *) ac_try_echo=$ac_try;;
23755 esac
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757   (eval "$ac_link") 2>&5
23758   ac_status=$?
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23761   { (case "(($ac_try" in
23762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763   *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766   (eval "$ac_try") 2>&5
23767   ac_status=$?
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); }; }; then
23770   ba_cv_have_typeof=yes
23771 else
23772   echo "$as_me: program exited with status $ac_status" >&5
23773 echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776 ( exit $ac_status )
23777 ba_cv_have_typeof=no
23778 fi
23779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23780 fi
23781
23782
23783 fi
23784 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23785 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23786 test $ba_cv_have_typeof = yes &&
23787 cat >>confdefs.h <<\_ACEOF
23788 #define HAVE_TYPEOF 1
23789 _ACEOF
23790
23791 ac_ext=c
23792 ac_cpp='$CPP $CPPFLAGS'
23793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23796
23797
23798 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23799 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23800 if test "${ac_cv_c_const+set}" = set; then
23801   echo $ECHO_N "(cached) $ECHO_C" >&6
23802 else
23803   cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h.  */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h.  */
23809
23810 int
23811 main ()
23812 {
23813 /* FIXME: Include the comments suggested by Paul. */
23814 #ifndef __cplusplus
23815   /* Ultrix mips cc rejects this.  */
23816   typedef int charset[2];
23817   const charset x;
23818   /* SunOS 4.1.1 cc rejects this.  */
23819   char const *const *ccp;
23820   char **p;
23821   /* NEC SVR4.0.2 mips cc rejects this.  */
23822   struct point {int x, y;};
23823   static struct point const zero = {0,0};
23824   /* AIX XL C 1.02.0.0 rejects this.
23825      It does not let you subtract one const X* pointer from another in
23826      an arm of an if-expression whose if-part is not a constant
23827      expression */
23828   const char *g = "string";
23829   ccp = &g + (g ? g-g : 0);
23830   /* HPUX 7.0 cc rejects these. */
23831   ++ccp;
23832   p = (char**) ccp;
23833   ccp = (char const *const *) p;
23834   { /* SCO 3.2v4 cc rejects this.  */
23835     char *t;
23836     char const *s = 0 ? (char *) 0 : (char const *) 0;
23837
23838     *t++ = 0;
23839     if (s) return 0;
23840   }
23841   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23842     int x[] = {25, 17};
23843     const int *foo = &x[0];
23844     ++foo;
23845   }
23846   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23847     typedef const int *iptr;
23848     iptr p = 0;
23849     ++p;
23850   }
23851   { /* AIX XL C 1.02.0.0 rejects this saying
23852        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23853     struct s { int j; const int *ap[3]; };
23854     struct s *b; b->j = 5;
23855   }
23856   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23857     const int foo = 10;
23858     if (!foo) return 0;
23859   }
23860   return !x[0] && !zero.x;
23861 #endif
23862
23863   ;
23864   return 0;
23865 }
23866 _ACEOF
23867 rm -f conftest.$ac_objext
23868 if { (ac_try="$ac_compile"
23869 case "(($ac_try" in
23870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871   *) ac_try_echo=$ac_try;;
23872 esac
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874   (eval "$ac_compile") 2>conftest.er1
23875   ac_status=$?
23876   grep -v '^ *+' conftest.er1 >conftest.err
23877   rm -f conftest.er1
23878   cat conftest.err >&5
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); } &&
23881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23882   { (case "(($ac_try" in
23883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884   *) ac_try_echo=$ac_try;;
23885 esac
23886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887   (eval "$ac_try") 2>&5
23888   ac_status=$?
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); }; } &&
23891          { ac_try='test -s conftest.$ac_objext'
23892   { (case "(($ac_try" in
23893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894   *) ac_try_echo=$ac_try;;
23895 esac
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897   (eval "$ac_try") 2>&5
23898   ac_status=$?
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); }; }; then
23901   ac_cv_c_const=yes
23902 else
23903   echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23905
23906         ac_cv_c_const=no
23907 fi
23908
23909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910 fi
23911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23913 if test $ac_cv_c_const = no; then
23914
23915 cat >>confdefs.h <<\_ACEOF
23916 #define const
23917 _ACEOF
23918
23919 fi
23920
23921
23922
23923 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23924 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23925 fstype=no
23926 # The order of these tests is important.
23927 cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h.  */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h.  */
23933 #include <sys/statvfs.h>
23934 #include <sys/fstyp.h>
23935 _ACEOF
23936 if { (ac_try="$ac_cpp conftest.$ac_ext"
23937 case "(($ac_try" in
23938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939   *) ac_try_echo=$ac_try;;
23940 esac
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23943   ac_status=$?
23944   grep -v '^ *+' conftest.er1 >conftest.err
23945   rm -f conftest.er1
23946   cat conftest.err >&5
23947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948   (exit $ac_status); } >/dev/null; then
23949   if test -s conftest.err; then
23950     ac_cpp_err=$ac_c_preproc_warn_flag
23951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23952   else
23953     ac_cpp_err=
23954   fi
23955 else
23956   ac_cpp_err=yes
23957 fi
23958 if test -z "$ac_cpp_err"; then
23959   cat >>confdefs.h <<\_ACEOF
23960 #define FSTYPE_STATVFS 1
23961 _ACEOF
23962  fstype=SVR4
23963 else
23964   echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23966
23967
23968 fi
23969
23970 rm -f conftest.err conftest.$ac_ext
23971 if test $fstype = no; then
23972 cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978 #include <sys/statfs.h>
23979 #include <sys/fstyp.h>
23980 _ACEOF
23981 if { (ac_try="$ac_cpp conftest.$ac_ext"
23982 case "(($ac_try" in
23983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984   *) ac_try_echo=$ac_try;;
23985 esac
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23988   ac_status=$?
23989   grep -v '^ *+' conftest.er1 >conftest.err
23990   rm -f conftest.er1
23991   cat conftest.err >&5
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); } >/dev/null; then
23994   if test -s conftest.err; then
23995     ac_cpp_err=$ac_c_preproc_warn_flag
23996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23997   else
23998     ac_cpp_err=
23999   fi
24000 else
24001   ac_cpp_err=yes
24002 fi
24003 if test -z "$ac_cpp_err"; then
24004   cat >>confdefs.h <<\_ACEOF
24005 #define FSTYPE_USG_STATFS 1
24006 _ACEOF
24007  fstype=SVR3
24008 else
24009   echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24011
24012
24013 fi
24014
24015 rm -f conftest.err conftest.$ac_ext
24016 fi
24017 if test $fstype = no; then
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24024 #include <sys/statfs.h>
24025 #include <sys/vmount.h>
24026 _ACEOF
24027 if { (ac_try="$ac_cpp conftest.$ac_ext"
24028 case "(($ac_try" in
24029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030   *) ac_try_echo=$ac_try;;
24031 esac
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24034   ac_status=$?
24035   grep -v '^ *+' conftest.er1 >conftest.err
24036   rm -f conftest.er1
24037   cat conftest.err >&5
24038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039   (exit $ac_status); } >/dev/null; then
24040   if test -s conftest.err; then
24041     ac_cpp_err=$ac_c_preproc_warn_flag
24042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24043   else
24044     ac_cpp_err=
24045   fi
24046 else
24047   ac_cpp_err=yes
24048 fi
24049 if test -z "$ac_cpp_err"; then
24050   cat >>confdefs.h <<\_ACEOF
24051 #define FSTYPE_AIX_STATFS 1
24052 _ACEOF
24053  fstype=AIX
24054 else
24055   echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058
24059 fi
24060
24061 rm -f conftest.err conftest.$ac_ext
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 <mntent.h>
24071 _ACEOF
24072 if { (ac_try="$ac_cpp conftest.$ac_ext"
24073 case "(($ac_try" in
24074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075   *) ac_try_echo=$ac_try;;
24076 esac
24077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24079   ac_status=$?
24080   grep -v '^ *+' conftest.er1 >conftest.err
24081   rm -f conftest.er1
24082   cat conftest.err >&5
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); } >/dev/null; then
24085   if test -s conftest.err; then
24086     ac_cpp_err=$ac_c_preproc_warn_flag
24087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24088   else
24089     ac_cpp_err=
24090   fi
24091 else
24092   ac_cpp_err=yes
24093 fi
24094 if test -z "$ac_cpp_err"; then
24095   cat >>confdefs.h <<\_ACEOF
24096 #define FSTYPE_MNTENT 1
24097 _ACEOF
24098  fstype=4.3BSD
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103
24104 fi
24105
24106 rm -f conftest.err conftest.$ac_ext
24107 fi
24108 if test $fstype = no; then
24109 cat >conftest.$ac_ext <<_ACEOF
24110 /* confdefs.h.  */
24111 _ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h.  */
24115 #include <sys/mount.h>
24116
24117 _ACEOF
24118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24119   $EGREP "f_type;" >/dev/null 2>&1; then
24120   cat >>confdefs.h <<\_ACEOF
24121 #define FSTYPE_STATFS 1
24122 _ACEOF
24123  fstype=4.4BSD/OSF1
24124 fi
24125 rm -f conftest*
24126
24127 fi
24128 if test $fstype = no; then
24129 cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135 #include <sys/mount.h>
24136 #include <sys/fs_types.h>
24137 _ACEOF
24138 if { (ac_try="$ac_cpp conftest.$ac_ext"
24139 case "(($ac_try" in
24140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141   *) ac_try_echo=$ac_try;;
24142 esac
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } >/dev/null; then
24151   if test -s conftest.err; then
24152     ac_cpp_err=$ac_c_preproc_warn_flag
24153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24154   else
24155     ac_cpp_err=
24156   fi
24157 else
24158   ac_cpp_err=yes
24159 fi
24160 if test -z "$ac_cpp_err"; then
24161   cat >>confdefs.h <<\_ACEOF
24162 #define FSTYPE_GETMNT 1
24163 _ACEOF
24164  fstype=Ultrix
24165 else
24166   echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169
24170 fi
24171
24172 rm -f conftest.err conftest.$ac_ext
24173 fi
24174 { echo "$as_me:$LINENO: result: $fstype" >&5
24175 echo "${ECHO_T}$fstype" >&6; }
24176
24177 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24178   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24179 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24180 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24181   echo $ECHO_N "(cached) $ECHO_C" >&6
24182 fi
24183 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24184 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24185 else
24186   # Is the header compilable?
24187 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24188 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h.  */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h.  */
24195 $ac_includes_default
24196 #include <sys/statvfs.h>
24197 _ACEOF
24198 rm -f conftest.$ac_objext
24199 if { (ac_try="$ac_compile"
24200 case "(($ac_try" in
24201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202   *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205   (eval "$ac_compile") 2>conftest.er1
24206   ac_status=$?
24207   grep -v '^ *+' conftest.er1 >conftest.err
24208   rm -f conftest.er1
24209   cat conftest.err >&5
24210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211   (exit $ac_status); } &&
24212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24213   { (case "(($ac_try" in
24214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215   *) ac_try_echo=$ac_try;;
24216 esac
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218   (eval "$ac_try") 2>&5
24219   ac_status=$?
24220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221   (exit $ac_status); }; } &&
24222          { ac_try='test -s conftest.$ac_objext'
24223   { (case "(($ac_try" in
24224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225   *) ac_try_echo=$ac_try;;
24226 esac
24227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24228   (eval "$ac_try") 2>&5
24229   ac_status=$?
24230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231   (exit $ac_status); }; }; then
24232   ac_header_compiler=yes
24233 else
24234   echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237         ac_header_compiler=no
24238 fi
24239
24240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24242 echo "${ECHO_T}$ac_header_compiler" >&6; }
24243
24244 # Is the header present?
24245 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24246 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24247 cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253 #include <sys/statvfs.h>
24254 _ACEOF
24255 if { (ac_try="$ac_cpp conftest.$ac_ext"
24256 case "(($ac_try" in
24257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258   *) ac_try_echo=$ac_try;;
24259 esac
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24262   ac_status=$?
24263   grep -v '^ *+' conftest.er1 >conftest.err
24264   rm -f conftest.er1
24265   cat conftest.err >&5
24266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267   (exit $ac_status); } >/dev/null; then
24268   if test -s conftest.err; then
24269     ac_cpp_err=$ac_c_preproc_warn_flag
24270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24271   else
24272     ac_cpp_err=
24273   fi
24274 else
24275   ac_cpp_err=yes
24276 fi
24277 if test -z "$ac_cpp_err"; then
24278   ac_header_preproc=yes
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283   ac_header_preproc=no
24284 fi
24285
24286 rm -f conftest.err conftest.$ac_ext
24287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24288 echo "${ECHO_T}$ac_header_preproc" >&6; }
24289
24290 # So?  What about this header?
24291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24292   yes:no: )
24293     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24294 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24295     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24296 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24297     ac_header_preproc=yes
24298     ;;
24299   no:yes:* )
24300     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24301 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24302     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24303 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24304     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24305 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24306     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24307 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24308     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24309 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24310     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24311 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24312
24313     ;;
24314 esac
24315 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24316 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24317 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24318   echo $ECHO_N "(cached) $ECHO_C" >&6
24319 else
24320   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24321 fi
24322 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24323 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24324
24325 fi
24326 if test $ac_cv_header_sys_statvfs_h = yes; then
24327
24328 cat >>confdefs.h <<\_ACEOF
24329 #define HAVE_SYS_STATVFS_H 1
24330 _ACEOF
24331
24332 fi
24333
24334
24335
24336 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24337 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24338 if test "${ac_cv_type_signal+set}" = set; then
24339   echo $ECHO_N "(cached) $ECHO_C" >&6
24340 else
24341   cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h.  */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h.  */
24347 #include <sys/types.h>
24348 #include <signal.h>
24349
24350 int
24351 main ()
24352 {
24353 return *(signal (0, 0)) (0) == 1;
24354   ;
24355   return 0;
24356 }
24357 _ACEOF
24358 rm -f conftest.$ac_objext
24359 if { (ac_try="$ac_compile"
24360 case "(($ac_try" in
24361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362   *) ac_try_echo=$ac_try;;
24363 esac
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365   (eval "$ac_compile") 2>conftest.er1
24366   ac_status=$?
24367   grep -v '^ *+' conftest.er1 >conftest.err
24368   rm -f conftest.er1
24369   cat conftest.err >&5
24370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371   (exit $ac_status); } &&
24372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24373   { (case "(($ac_try" in
24374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375   *) ac_try_echo=$ac_try;;
24376 esac
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378   (eval "$ac_try") 2>&5
24379   ac_status=$?
24380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381   (exit $ac_status); }; } &&
24382          { ac_try='test -s conftest.$ac_objext'
24383   { (case "(($ac_try" in
24384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385   *) ac_try_echo=$ac_try;;
24386 esac
24387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24388   (eval "$ac_try") 2>&5
24389   ac_status=$?
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); }; }; then
24392   ac_cv_type_signal=int
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397         ac_cv_type_signal=void
24398 fi
24399
24400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24401 fi
24402 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24403 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24404
24405 cat >>confdefs.h <<_ACEOF
24406 #define RETSIGTYPE $ac_cv_type_signal
24407 _ACEOF
24408
24409
24410
24411   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24412 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24413   if test "${bash_cv_signal_vintage+set}" = set; then
24414   echo $ECHO_N "(cached) $ECHO_C" >&6
24415 else
24416
24417     cat >conftest.$ac_ext <<_ACEOF
24418 /* confdefs.h.  */
24419 _ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h.  */
24423 #include <signal.h>
24424 int
24425 main ()
24426 {
24427
24428       sigset_t ss;
24429       struct sigaction sa;
24430       sigemptyset(&ss); sigsuspend(&ss);
24431       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24432       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24433
24434   ;
24435   return 0;
24436 }
24437 _ACEOF
24438 rm -f conftest.$ac_objext conftest$ac_exeext
24439 if { (ac_try="$ac_link"
24440 case "(($ac_try" in
24441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442   *) ac_try_echo=$ac_try;;
24443 esac
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445   (eval "$ac_link") 2>conftest.er1
24446   ac_status=$?
24447   grep -v '^ *+' conftest.er1 >conftest.err
24448   rm -f conftest.er1
24449   cat conftest.err >&5
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); } &&
24452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24453   { (case "(($ac_try" in
24454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24455   *) ac_try_echo=$ac_try;;
24456 esac
24457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24458   (eval "$ac_try") 2>&5
24459   ac_status=$?
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); }; } &&
24462          { ac_try='test -s conftest$ac_exeext'
24463   { (case "(($ac_try" in
24464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465   *) ac_try_echo=$ac_try;;
24466 esac
24467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24468   (eval "$ac_try") 2>&5
24469   ac_status=$?
24470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471   (exit $ac_status); }; }; then
24472   bash_cv_signal_vintage="posix"
24473 else
24474   echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24476
24477
24478       cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h.  */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h.  */
24484 #include <signal.h>
24485 int
24486 main ()
24487 {
24488
24489           int mask = sigmask(SIGINT);
24490           sigsetmask(mask); sigblock(mask); sigpause(mask);
24491
24492   ;
24493   return 0;
24494 }
24495 _ACEOF
24496 rm -f conftest.$ac_objext conftest$ac_exeext
24497 if { (ac_try="$ac_link"
24498 case "(($ac_try" in
24499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500   *) ac_try_echo=$ac_try;;
24501 esac
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503   (eval "$ac_link") 2>conftest.er1
24504   ac_status=$?
24505   grep -v '^ *+' conftest.er1 >conftest.err
24506   rm -f conftest.er1
24507   cat conftest.err >&5
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } &&
24510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24511   { (case "(($ac_try" in
24512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513   *) ac_try_echo=$ac_try;;
24514 esac
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516   (eval "$ac_try") 2>&5
24517   ac_status=$?
24518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519   (exit $ac_status); }; } &&
24520          { ac_try='test -s conftest$ac_exeext'
24521   { (case "(($ac_try" in
24522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523   *) ac_try_echo=$ac_try;;
24524 esac
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526   (eval "$ac_try") 2>&5
24527   ac_status=$?
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); }; }; then
24530   bash_cv_signal_vintage="4.2bsd"
24531 else
24532   echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24534
24535
24536         cat >conftest.$ac_ext <<_ACEOF
24537 /* confdefs.h.  */
24538 _ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h.  */
24542
24543           #include <signal.h>
24544           RETSIGTYPE foo() { }
24545 int
24546 main ()
24547 {
24548
24549                   int mask = sigmask(SIGINT);
24550                   sigset(SIGINT, foo); sigrelse(SIGINT);
24551                   sighold(SIGINT); sigpause(SIGINT);
24552
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (ac_try="$ac_link"
24559 case "(($ac_try" in
24560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561   *) ac_try_echo=$ac_try;;
24562 esac
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564   (eval "$ac_link") 2>conftest.er1
24565   ac_status=$?
24566   grep -v '^ *+' conftest.er1 >conftest.err
24567   rm -f conftest.er1
24568   cat conftest.err >&5
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); } &&
24571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24572   { (case "(($ac_try" in
24573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574   *) ac_try_echo=$ac_try;;
24575 esac
24576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24577   (eval "$ac_try") 2>&5
24578   ac_status=$?
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); }; } &&
24581          { ac_try='test -s conftest$ac_exeext'
24582   { (case "(($ac_try" in
24583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584   *) ac_try_echo=$ac_try;;
24585 esac
24586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24587   (eval "$ac_try") 2>&5
24588   ac_status=$?
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); }; }; then
24591   bash_cv_signal_vintage="svr3"
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596         bash_cv_signal_vintage="v7"
24597
24598 fi
24599
24600 rm -f core conftest.err conftest.$ac_objext \
24601       conftest$ac_exeext conftest.$ac_ext
24602
24603 fi
24604
24605 rm -f core conftest.err conftest.$ac_objext \
24606       conftest$ac_exeext conftest.$ac_ext
24607
24608 fi
24609
24610 rm -f core conftest.err conftest.$ac_objext \
24611       conftest$ac_exeext conftest.$ac_ext
24612
24613 fi
24614
24615   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24616 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24617   if test "$bash_cv_signal_vintage" = "posix"; then
24618     cat >>confdefs.h <<\_ACEOF
24619 #define HAVE_POSIX_SIGNALS 1
24620 _ACEOF
24621
24622   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24623     cat >>confdefs.h <<\_ACEOF
24624 #define HAVE_BSD_SIGNALS 1
24625 _ACEOF
24626
24627   elif test "$bash_cv_signal_vintage" = "svr3"; then
24628     cat >>confdefs.h <<\_ACEOF
24629 #define HAVE_USG_SIGHOLD 1
24630 _ACEOF
24631
24632   fi
24633
24634 { echo "$as_me:$LINENO: checking for mode_t" >&5
24635 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24636 if test "${ac_cv_type_mode_t+set}" = set; then
24637   echo $ECHO_N "(cached) $ECHO_C" >&6
24638 else
24639   cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h.  */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h.  */
24645 $ac_includes_default
24646 typedef mode_t ac__type_new_;
24647 int
24648 main ()
24649 {
24650 if ((ac__type_new_ *) 0)
24651   return 0;
24652 if (sizeof (ac__type_new_))
24653   return 0;
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_compile") 2>conftest.er1
24666   ac_status=$?
24667   grep -v '^ *+' conftest.er1 >conftest.err
24668   rm -f conftest.er1
24669   cat conftest.err >&5
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); } &&
24672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24673   { (case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678   (eval "$ac_try") 2>&5
24679   ac_status=$?
24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681   (exit $ac_status); }; } &&
24682          { ac_try='test -s conftest.$ac_objext'
24683   { (case "(($ac_try" in
24684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685   *) ac_try_echo=$ac_try;;
24686 esac
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688   (eval "$ac_try") 2>&5
24689   ac_status=$?
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); }; }; then
24692   ac_cv_type_mode_t=yes
24693 else
24694   echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24696
24697         ac_cv_type_mode_t=no
24698 fi
24699
24700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24701 fi
24702 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24703 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24704 if test $ac_cv_type_mode_t = yes; then
24705   :
24706 else
24707
24708 cat >>confdefs.h <<_ACEOF
24709 #define mode_t int
24710 _ACEOF
24711
24712 fi
24713
24714 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24715 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24716 if test "${ac_cv_type_uid_t+set}" = set; then
24717   echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719   cat >conftest.$ac_ext <<_ACEOF
24720 /* confdefs.h.  */
24721 _ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h.  */
24725 #include <sys/types.h>
24726
24727 _ACEOF
24728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24729   $EGREP "uid_t" >/dev/null 2>&1; then
24730   ac_cv_type_uid_t=yes
24731 else
24732   ac_cv_type_uid_t=no
24733 fi
24734 rm -f conftest*
24735
24736 fi
24737 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24738 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24739 if test $ac_cv_type_uid_t = no; then
24740
24741 cat >>confdefs.h <<\_ACEOF
24742 #define uid_t int
24743 _ACEOF
24744
24745
24746 cat >>confdefs.h <<\_ACEOF
24747 #define gid_t int
24748 _ACEOF
24749
24750 fi
24751
24752 { echo "$as_me:$LINENO: checking for size_t" >&5
24753 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24754 if test "${ac_cv_type_size_t+set}" = set; then
24755   echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757   cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h.  */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h.  */
24763 $ac_includes_default
24764 typedef size_t ac__type_new_;
24765 int
24766 main ()
24767 {
24768 if ((ac__type_new_ *) 0)
24769   return 0;
24770 if (sizeof (ac__type_new_))
24771   return 0;
24772   ;
24773   return 0;
24774 }
24775 _ACEOF
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780   *) ac_try_echo=$ac_try;;
24781 esac
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783   (eval "$ac_compile") 2>conftest.er1
24784   ac_status=$?
24785   grep -v '^ *+' conftest.er1 >conftest.err
24786   rm -f conftest.er1
24787   cat conftest.err >&5
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } &&
24790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24791   { (case "(($ac_try" in
24792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793   *) ac_try_echo=$ac_try;;
24794 esac
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796   (eval "$ac_try") 2>&5
24797   ac_status=$?
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); }; } &&
24800          { ac_try='test -s conftest.$ac_objext'
24801   { (case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806   (eval "$ac_try") 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; }; then
24810   ac_cv_type_size_t=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815         ac_cv_type_size_t=no
24816 fi
24817
24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 fi
24820 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24821 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24822 if test $ac_cv_type_size_t = yes; then
24823   :
24824 else
24825
24826 cat >>confdefs.h <<_ACEOF
24827 #define size_t unsigned int
24828 _ACEOF
24829
24830 fi
24831
24832 { echo "$as_me:$LINENO: checking for pid_t" >&5
24833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24834 if test "${ac_cv_type_pid_t+set}" = set; then
24835   echo $ECHO_N "(cached) $ECHO_C" >&6
24836 else
24837   cat >conftest.$ac_ext <<_ACEOF
24838 /* confdefs.h.  */
24839 _ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h.  */
24843 $ac_includes_default
24844 typedef pid_t ac__type_new_;
24845 int
24846 main ()
24847 {
24848 if ((ac__type_new_ *) 0)
24849   return 0;
24850 if (sizeof (ac__type_new_))
24851   return 0;
24852   ;
24853   return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860   *) ac_try_echo=$ac_try;;
24861 esac
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863   (eval "$ac_compile") 2>conftest.er1
24864   ac_status=$?
24865   grep -v '^ *+' conftest.er1 >conftest.err
24866   rm -f conftest.er1
24867   cat conftest.err >&5
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); } &&
24870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24871   { (case "(($ac_try" in
24872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873   *) ac_try_echo=$ac_try;;
24874 esac
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876   (eval "$ac_try") 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; } &&
24880          { ac_try='test -s conftest.$ac_objext'
24881   { (case "(($ac_try" in
24882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883   *) ac_try_echo=$ac_try;;
24884 esac
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886   (eval "$ac_try") 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; }; then
24890   ac_cv_type_pid_t=yes
24891 else
24892   echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895         ac_cv_type_pid_t=no
24896 fi
24897
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 fi
24900 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24901 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24902 if test $ac_cv_type_pid_t = yes; then
24903   :
24904 else
24905
24906 cat >>confdefs.h <<_ACEOF
24907 #define pid_t int
24908 _ACEOF
24909
24910 fi
24911
24912 { echo "$as_me:$LINENO: checking for off_t" >&5
24913 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24914 if test "${ac_cv_type_off_t+set}" = set; then
24915   echo $ECHO_N "(cached) $ECHO_C" >&6
24916 else
24917   cat >conftest.$ac_ext <<_ACEOF
24918 /* confdefs.h.  */
24919 _ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h.  */
24923 $ac_includes_default
24924 typedef off_t ac__type_new_;
24925 int
24926 main ()
24927 {
24928 if ((ac__type_new_ *) 0)
24929   return 0;
24930 if (sizeof (ac__type_new_))
24931   return 0;
24932   ;
24933   return 0;
24934 }
24935 _ACEOF
24936 rm -f conftest.$ac_objext
24937 if { (ac_try="$ac_compile"
24938 case "(($ac_try" in
24939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940   *) ac_try_echo=$ac_try;;
24941 esac
24942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24943   (eval "$ac_compile") 2>conftest.er1
24944   ac_status=$?
24945   grep -v '^ *+' conftest.er1 >conftest.err
24946   rm -f conftest.er1
24947   cat conftest.err >&5
24948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949   (exit $ac_status); } &&
24950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24951   { (case "(($ac_try" in
24952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953   *) ac_try_echo=$ac_try;;
24954 esac
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956   (eval "$ac_try") 2>&5
24957   ac_status=$?
24958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959   (exit $ac_status); }; } &&
24960          { ac_try='test -s conftest.$ac_objext'
24961   { (case "(($ac_try" in
24962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963   *) ac_try_echo=$ac_try;;
24964 esac
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966   (eval "$ac_try") 2>&5
24967   ac_status=$?
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); }; }; then
24970   ac_cv_type_off_t=yes
24971 else
24972   echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974
24975         ac_cv_type_off_t=no
24976 fi
24977
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 fi
24980 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24981 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24982 if test $ac_cv_type_off_t = yes; then
24983   :
24984 else
24985
24986 cat >>confdefs.h <<_ACEOF
24987 #define off_t long int
24988 _ACEOF
24989
24990 fi
24991
24992 { echo "$as_me:$LINENO: checking for ino_t" >&5
24993 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24994 if test "${ac_cv_type_ino_t+set}" = set; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997   cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h.  */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h.  */
25003 $ac_includes_default
25004 typedef ino_t ac__type_new_;
25005 int
25006 main ()
25007 {
25008 if ((ac__type_new_ *) 0)
25009   return 0;
25010 if (sizeof (ac__type_new_))
25011   return 0;
25012   ;
25013   return 0;
25014 }
25015 _ACEOF
25016 rm -f conftest.$ac_objext
25017 if { (ac_try="$ac_compile"
25018 case "(($ac_try" in
25019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020   *) ac_try_echo=$ac_try;;
25021 esac
25022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023   (eval "$ac_compile") 2>conftest.er1
25024   ac_status=$?
25025   grep -v '^ *+' conftest.er1 >conftest.err
25026   rm -f conftest.er1
25027   cat conftest.err >&5
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); } &&
25030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25031   { (case "(($ac_try" in
25032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033   *) ac_try_echo=$ac_try;;
25034 esac
25035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25036   (eval "$ac_try") 2>&5
25037   ac_status=$?
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); }; } &&
25040          { ac_try='test -s conftest.$ac_objext'
25041   { (case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_try") 2>&5
25047   ac_status=$?
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); }; }; then
25050   ac_cv_type_ino_t=yes
25051 else
25052   echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25054
25055         ac_cv_type_ino_t=no
25056 fi
25057
25058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25059 fi
25060 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
25061 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
25062 if test $ac_cv_type_ino_t = yes; then
25063   :
25064 else
25065
25066 cat >>confdefs.h <<_ACEOF
25067 #define ino_t unsigned long
25068 _ACEOF
25069
25070 fi
25071
25072 { echo "$as_me:$LINENO: checking for dev_t" >&5
25073 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25074 if test "${ac_cv_type_dev_t+set}" = set; then
25075   echo $ECHO_N "(cached) $ECHO_C" >&6
25076 else
25077   cat >conftest.$ac_ext <<_ACEOF
25078 /* confdefs.h.  */
25079 _ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h.  */
25083 $ac_includes_default
25084 typedef dev_t ac__type_new_;
25085 int
25086 main ()
25087 {
25088 if ((ac__type_new_ *) 0)
25089   return 0;
25090 if (sizeof (ac__type_new_))
25091   return 0;
25092   ;
25093   return 0;
25094 }
25095 _ACEOF
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100   *) ac_try_echo=$ac_try;;
25101 esac
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103   (eval "$ac_compile") 2>conftest.er1
25104   ac_status=$?
25105   grep -v '^ *+' conftest.er1 >conftest.err
25106   rm -f conftest.er1
25107   cat conftest.err >&5
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } &&
25110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25111   { (case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_try") 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; } &&
25120          { ac_try='test -s conftest.$ac_objext'
25121   { (case "(($ac_try" in
25122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123   *) ac_try_echo=$ac_try;;
25124 esac
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126   (eval "$ac_try") 2>&5
25127   ac_status=$?
25128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); }; }; then
25130   ac_cv_type_dev_t=yes
25131 else
25132   echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25134
25135         ac_cv_type_dev_t=no
25136 fi
25137
25138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139 fi
25140 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25141 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25142 if test $ac_cv_type_dev_t = yes; then
25143   :
25144 else
25145
25146 cat >>confdefs.h <<_ACEOF
25147 #define dev_t unsigned long
25148 _ACEOF
25149
25150 fi
25151
25152 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25153 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25154 if test "${ac_cv_type_daddr_t+set}" = set; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 else
25157   cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h.  */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h.  */
25163 $ac_includes_default
25164 typedef daddr_t ac__type_new_;
25165 int
25166 main ()
25167 {
25168 if ((ac__type_new_ *) 0)
25169   return 0;
25170 if (sizeof (ac__type_new_))
25171   return 0;
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 rm -f conftest.$ac_objext
25177 if { (ac_try="$ac_compile"
25178 case "(($ac_try" in
25179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180   *) ac_try_echo=$ac_try;;
25181 esac
25182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25183   (eval "$ac_compile") 2>conftest.er1
25184   ac_status=$?
25185   grep -v '^ *+' conftest.er1 >conftest.err
25186   rm -f conftest.er1
25187   cat conftest.err >&5
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); } &&
25190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25191   { (case "(($ac_try" in
25192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193   *) ac_try_echo=$ac_try;;
25194 esac
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196   (eval "$ac_try") 2>&5
25197   ac_status=$?
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); }; } &&
25200          { ac_try='test -s conftest.$ac_objext'
25201   { (case "(($ac_try" in
25202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203   *) ac_try_echo=$ac_try;;
25204 esac
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206   (eval "$ac_try") 2>&5
25207   ac_status=$?
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); }; }; then
25210   ac_cv_type_daddr_t=yes
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215         ac_cv_type_daddr_t=no
25216 fi
25217
25218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25219 fi
25220 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25221 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25222 if test $ac_cv_type_daddr_t = yes; then
25223   :
25224 else
25225
25226 cat >>confdefs.h <<_ACEOF
25227 #define daddr_t long
25228 _ACEOF
25229
25230 fi
25231
25232 { echo "$as_me:$LINENO: checking for major_t" >&5
25233 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25234 if test "${ac_cv_type_major_t+set}" = set; then
25235   echo $ECHO_N "(cached) $ECHO_C" >&6
25236 else
25237   cat >conftest.$ac_ext <<_ACEOF
25238 /* confdefs.h.  */
25239 _ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h.  */
25243 $ac_includes_default
25244 typedef major_t ac__type_new_;
25245 int
25246 main ()
25247 {
25248 if ((ac__type_new_ *) 0)
25249   return 0;
25250 if (sizeof (ac__type_new_))
25251   return 0;
25252   ;
25253   return 0;
25254 }
25255 _ACEOF
25256 rm -f conftest.$ac_objext
25257 if { (ac_try="$ac_compile"
25258 case "(($ac_try" in
25259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260   *) ac_try_echo=$ac_try;;
25261 esac
25262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25263   (eval "$ac_compile") 2>conftest.er1
25264   ac_status=$?
25265   grep -v '^ *+' conftest.er1 >conftest.err
25266   rm -f conftest.er1
25267   cat conftest.err >&5
25268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269   (exit $ac_status); } &&
25270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25271   { (case "(($ac_try" in
25272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25273   *) ac_try_echo=$ac_try;;
25274 esac
25275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25276   (eval "$ac_try") 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); }; } &&
25280          { ac_try='test -s conftest.$ac_objext'
25281   { (case "(($ac_try" in
25282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25283   *) ac_try_echo=$ac_try;;
25284 esac
25285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25286   (eval "$ac_try") 2>&5
25287   ac_status=$?
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); }; }; then
25290   ac_cv_type_major_t=yes
25291 else
25292   echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25294
25295         ac_cv_type_major_t=no
25296 fi
25297
25298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25299 fi
25300 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25301 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25302 if test $ac_cv_type_major_t = yes; then
25303   :
25304 else
25305
25306 cat >>confdefs.h <<_ACEOF
25307 #define major_t int
25308 _ACEOF
25309
25310 fi
25311
25312 { echo "$as_me:$LINENO: checking for minor_t" >&5
25313 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25314 if test "${ac_cv_type_minor_t+set}" = set; then
25315   echo $ECHO_N "(cached) $ECHO_C" >&6
25316 else
25317   cat >conftest.$ac_ext <<_ACEOF
25318 /* confdefs.h.  */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h.  */
25323 $ac_includes_default
25324 typedef minor_t ac__type_new_;
25325 int
25326 main ()
25327 {
25328 if ((ac__type_new_ *) 0)
25329   return 0;
25330 if (sizeof (ac__type_new_))
25331   return 0;
25332   ;
25333   return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest.$ac_objext
25337 if { (ac_try="$ac_compile"
25338 case "(($ac_try" in
25339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340   *) ac_try_echo=$ac_try;;
25341 esac
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343   (eval "$ac_compile") 2>conftest.er1
25344   ac_status=$?
25345   grep -v '^ *+' conftest.er1 >conftest.err
25346   rm -f conftest.er1
25347   cat conftest.err >&5
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); } &&
25350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25351   { (case "(($ac_try" in
25352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353   *) ac_try_echo=$ac_try;;
25354 esac
25355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25356   (eval "$ac_try") 2>&5
25357   ac_status=$?
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); }; } &&
25360          { ac_try='test -s conftest.$ac_objext'
25361   { (case "(($ac_try" in
25362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363   *) ac_try_echo=$ac_try;;
25364 esac
25365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25366   (eval "$ac_try") 2>&5
25367   ac_status=$?
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); }; }; then
25370   ac_cv_type_minor_t=yes
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375         ac_cv_type_minor_t=no
25376 fi
25377
25378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25379 fi
25380 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25381 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25382 if test $ac_cv_type_minor_t = yes; then
25383   :
25384 else
25385
25386 cat >>confdefs.h <<_ACEOF
25387 #define minor_t int
25388 _ACEOF
25389
25390 fi
25391
25392 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25393 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25394 if test "${ac_cv_type_ssize_t+set}" = set; then
25395   echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397   cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403 $ac_includes_default
25404 typedef ssize_t ac__type_new_;
25405 int
25406 main ()
25407 {
25408 if ((ac__type_new_ *) 0)
25409   return 0;
25410 if (sizeof (ac__type_new_))
25411   return 0;
25412   ;
25413   return 0;
25414 }
25415 _ACEOF
25416 rm -f conftest.$ac_objext
25417 if { (ac_try="$ac_compile"
25418 case "(($ac_try" in
25419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25420   *) ac_try_echo=$ac_try;;
25421 esac
25422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25423   (eval "$ac_compile") 2>conftest.er1
25424   ac_status=$?
25425   grep -v '^ *+' conftest.er1 >conftest.err
25426   rm -f conftest.er1
25427   cat conftest.err >&5
25428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429   (exit $ac_status); } &&
25430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; } &&
25440          { ac_try='test -s conftest.$ac_objext'
25441   { (case "(($ac_try" in
25442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443   *) ac_try_echo=$ac_try;;
25444 esac
25445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25446   (eval "$ac_try") 2>&5
25447   ac_status=$?
25448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); }; }; then
25450   ac_cv_type_ssize_t=yes
25451 else
25452   echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25454
25455         ac_cv_type_ssize_t=no
25456 fi
25457
25458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25459 fi
25460 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25461 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25462 if test $ac_cv_type_ssize_t = yes; then
25463   :
25464 else
25465
25466 cat >>confdefs.h <<_ACEOF
25467 #define ssize_t int
25468 _ACEOF
25469
25470 fi
25471
25472 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25473 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25474 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25475   echo $ECHO_N "(cached) $ECHO_C" >&6
25476 else
25477   cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h.  */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h.  */
25483 $ac_includes_default
25484 int
25485 main ()
25486 {
25487 static struct stat ac_aggr;
25488 if (ac_aggr.st_blocks)
25489 return 0;
25490   ;
25491   return 0;
25492 }
25493 _ACEOF
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498   *) ac_try_echo=$ac_try;;
25499 esac
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501   (eval "$ac_compile") 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } &&
25508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25509   { (case "(($ac_try" in
25510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511   *) ac_try_echo=$ac_try;;
25512 esac
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514   (eval "$ac_try") 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); }; } &&
25518          { ac_try='test -s conftest.$ac_objext'
25519   { (case "(($ac_try" in
25520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521   *) ac_try_echo=$ac_try;;
25522 esac
25523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25524   (eval "$ac_try") 2>&5
25525   ac_status=$?
25526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527   (exit $ac_status); }; }; then
25528   ac_cv_member_struct_stat_st_blocks=yes
25529 else
25530   echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25532
25533         cat >conftest.$ac_ext <<_ACEOF
25534 /* confdefs.h.  */
25535 _ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h.  */
25539 $ac_includes_default
25540 int
25541 main ()
25542 {
25543 static struct stat ac_aggr;
25544 if (sizeof ac_aggr.st_blocks)
25545 return 0;
25546   ;
25547   return 0;
25548 }
25549 _ACEOF
25550 rm -f conftest.$ac_objext
25551 if { (ac_try="$ac_compile"
25552 case "(($ac_try" in
25553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25554   *) ac_try_echo=$ac_try;;
25555 esac
25556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25557   (eval "$ac_compile") 2>conftest.er1
25558   ac_status=$?
25559   grep -v '^ *+' conftest.er1 >conftest.err
25560   rm -f conftest.er1
25561   cat conftest.err >&5
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); } &&
25564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25565   { (case "(($ac_try" in
25566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25567   *) ac_try_echo=$ac_try;;
25568 esac
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570   (eval "$ac_try") 2>&5
25571   ac_status=$?
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); }; } &&
25574          { ac_try='test -s conftest.$ac_objext'
25575   { (case "(($ac_try" in
25576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25577   *) ac_try_echo=$ac_try;;
25578 esac
25579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25580   (eval "$ac_try") 2>&5
25581   ac_status=$?
25582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); }; }; then
25584   ac_cv_member_struct_stat_st_blocks=yes
25585 else
25586   echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25588
25589         ac_cv_member_struct_stat_st_blocks=no
25590 fi
25591
25592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 fi
25594
25595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25596 fi
25597 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25599 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25600
25601 cat >>confdefs.h <<_ACEOF
25602 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25603 _ACEOF
25604
25605
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_ST_BLOCKS 1
25608 _ACEOF
25609
25610 else
25611   case " $LIBOBJS " in
25612   *" fileblocks.$ac_objext "* ) ;;
25613   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25614  ;;
25615 esac
25616
25617 fi
25618
25619
25620 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25621 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25622 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25623   echo $ECHO_N "(cached) $ECHO_C" >&6
25624 else
25625   cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h.  */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h.  */
25631 $ac_includes_default
25632 int
25633 main ()
25634 {
25635 static struct stat ac_aggr;
25636 if (ac_aggr.st_rdev)
25637 return 0;
25638   ;
25639   return 0;
25640 }
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (ac_try="$ac_compile"
25644 case "(($ac_try" in
25645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646   *) ac_try_echo=$ac_try;;
25647 esac
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649   (eval "$ac_compile") 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } &&
25656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25657   { (case "(($ac_try" in
25658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659   *) ac_try_echo=$ac_try;;
25660 esac
25661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25662   (eval "$ac_try") 2>&5
25663   ac_status=$?
25664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665   (exit $ac_status); }; } &&
25666          { ac_try='test -s conftest.$ac_objext'
25667   { (case "(($ac_try" in
25668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669   *) ac_try_echo=$ac_try;;
25670 esac
25671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25672   (eval "$ac_try") 2>&5
25673   ac_status=$?
25674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675   (exit $ac_status); }; }; then
25676   ac_cv_member_struct_stat_st_rdev=yes
25677 else
25678   echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25680
25681         cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h.  */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h.  */
25687 $ac_includes_default
25688 int
25689 main ()
25690 {
25691 static struct stat ac_aggr;
25692 if (sizeof ac_aggr.st_rdev)
25693 return 0;
25694   ;
25695   return 0;
25696 }
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702   *) ac_try_echo=$ac_try;;
25703 esac
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705   (eval "$ac_compile") 2>conftest.er1
25706   ac_status=$?
25707   grep -v '^ *+' conftest.er1 >conftest.err
25708   rm -f conftest.er1
25709   cat conftest.err >&5
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); } &&
25712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25713   { (case "(($ac_try" in
25714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25715   *) ac_try_echo=$ac_try;;
25716 esac
25717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25718   (eval "$ac_try") 2>&5
25719   ac_status=$?
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); }; } &&
25722          { ac_try='test -s conftest.$ac_objext'
25723   { (case "(($ac_try" in
25724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725   *) ac_try_echo=$ac_try;;
25726 esac
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728   (eval "$ac_try") 2>&5
25729   ac_status=$?
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); }; }; then
25732   ac_cv_member_struct_stat_st_rdev=yes
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737         ac_cv_member_struct_stat_st_rdev=no
25738 fi
25739
25740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741 fi
25742
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744 fi
25745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25747 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25748
25749 cat >>confdefs.h <<_ACEOF
25750 #define HAVE_STRUCT_STAT_ST_RDEV 1
25751 _ACEOF
25752
25753
25754 cat >>confdefs.h <<\_ACEOF
25755 #define HAVE_ST_RDEV 1
25756 _ACEOF
25757
25758 fi
25759
25760
25761 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25762 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25763 if test "${ac_cv_struct_tm+set}" = set; then
25764   echo $ECHO_N "(cached) $ECHO_C" >&6
25765 else
25766   cat >conftest.$ac_ext <<_ACEOF
25767 /* confdefs.h.  */
25768 _ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h.  */
25772 #include <sys/types.h>
25773 #include <time.h>
25774
25775 int
25776 main ()
25777 {
25778 struct tm *tp; tp->tm_sec;
25779   ;
25780   return 0;
25781 }
25782 _ACEOF
25783 rm -f conftest.$ac_objext
25784 if { (ac_try="$ac_compile"
25785 case "(($ac_try" in
25786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25787   *) ac_try_echo=$ac_try;;
25788 esac
25789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25790   (eval "$ac_compile") 2>conftest.er1
25791   ac_status=$?
25792   grep -v '^ *+' conftest.er1 >conftest.err
25793   rm -f conftest.er1
25794   cat conftest.err >&5
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); } &&
25797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25798   { (case "(($ac_try" in
25799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800   *) ac_try_echo=$ac_try;;
25801 esac
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803   (eval "$ac_try") 2>&5
25804   ac_status=$?
25805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806   (exit $ac_status); }; } &&
25807          { ac_try='test -s conftest.$ac_objext'
25808   { (case "(($ac_try" in
25809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810   *) ac_try_echo=$ac_try;;
25811 esac
25812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25813   (eval "$ac_try") 2>&5
25814   ac_status=$?
25815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816   (exit $ac_status); }; }; then
25817   ac_cv_struct_tm=time.h
25818 else
25819   echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25821
25822         ac_cv_struct_tm=sys/time.h
25823 fi
25824
25825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25826 fi
25827 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25828 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25829 if test $ac_cv_struct_tm = sys/time.h; then
25830
25831 cat >>confdefs.h <<\_ACEOF
25832 #define TM_IN_SYS_TIME 1
25833 _ACEOF
25834
25835 fi
25836
25837 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25839 if test "${ac_cv_c_const+set}" = set; then
25840   echo $ECHO_N "(cached) $ECHO_C" >&6
25841 else
25842   cat >conftest.$ac_ext <<_ACEOF
25843 /* confdefs.h.  */
25844 _ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h.  */
25848
25849 int
25850 main ()
25851 {
25852 /* FIXME: Include the comments suggested by Paul. */
25853 #ifndef __cplusplus
25854   /* Ultrix mips cc rejects this.  */
25855   typedef int charset[2];
25856   const charset x;
25857   /* SunOS 4.1.1 cc rejects this.  */
25858   char const *const *ccp;
25859   char **p;
25860   /* NEC SVR4.0.2 mips cc rejects this.  */
25861   struct point {int x, y;};
25862   static struct point const zero = {0,0};
25863   /* AIX XL C 1.02.0.0 rejects this.
25864      It does not let you subtract one const X* pointer from another in
25865      an arm of an if-expression whose if-part is not a constant
25866      expression */
25867   const char *g = "string";
25868   ccp = &g + (g ? g-g : 0);
25869   /* HPUX 7.0 cc rejects these. */
25870   ++ccp;
25871   p = (char**) ccp;
25872   ccp = (char const *const *) p;
25873   { /* SCO 3.2v4 cc rejects this.  */
25874     char *t;
25875     char const *s = 0 ? (char *) 0 : (char const *) 0;
25876
25877     *t++ = 0;
25878     if (s) return 0;
25879   }
25880   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25881     int x[] = {25, 17};
25882     const int *foo = &x[0];
25883     ++foo;
25884   }
25885   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25886     typedef const int *iptr;
25887     iptr p = 0;
25888     ++p;
25889   }
25890   { /* AIX XL C 1.02.0.0 rejects this saying
25891        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25892     struct s { int j; const int *ap[3]; };
25893     struct s *b; b->j = 5;
25894   }
25895   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25896     const int foo = 10;
25897     if (!foo) return 0;
25898   }
25899   return !x[0] && !zero.x;
25900 #endif
25901
25902   ;
25903   return 0;
25904 }
25905 _ACEOF
25906 rm -f conftest.$ac_objext
25907 if { (ac_try="$ac_compile"
25908 case "(($ac_try" in
25909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910   *) ac_try_echo=$ac_try;;
25911 esac
25912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25913   (eval "$ac_compile") 2>conftest.er1
25914   ac_status=$?
25915   grep -v '^ *+' conftest.er1 >conftest.err
25916   rm -f conftest.er1
25917   cat conftest.err >&5
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); } &&
25920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25921   { (case "(($ac_try" in
25922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923   *) ac_try_echo=$ac_try;;
25924 esac
25925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25926   (eval "$ac_try") 2>&5
25927   ac_status=$?
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); }; } &&
25930          { ac_try='test -s conftest.$ac_objext'
25931   { (case "(($ac_try" in
25932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933   *) ac_try_echo=$ac_try;;
25934 esac
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936   (eval "$ac_try") 2>&5
25937   ac_status=$?
25938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939   (exit $ac_status); }; }; then
25940   ac_cv_c_const=yes
25941 else
25942   echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25944
25945         ac_cv_c_const=no
25946 fi
25947
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 fi
25950 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25951 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25952 if test $ac_cv_c_const = no; then
25953
25954 cat >>confdefs.h <<\_ACEOF
25955 #define const
25956 _ACEOF
25957
25958 fi
25959
25960
25961
25962 { echo "$as_me:$LINENO: checking for char" >&5
25963 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25964 if test "${ac_cv_type_char+set}" = set; then
25965   echo $ECHO_N "(cached) $ECHO_C" >&6
25966 else
25967   cat >conftest.$ac_ext <<_ACEOF
25968 /* confdefs.h.  */
25969 _ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h.  */
25973 $ac_includes_default
25974 typedef char ac__type_new_;
25975 int
25976 main ()
25977 {
25978 if ((ac__type_new_ *) 0)
25979   return 0;
25980 if (sizeof (ac__type_new_))
25981   return 0;
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990   *) ac_try_echo=$ac_try;;
25991 esac
25992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25993   (eval "$ac_compile") 2>conftest.er1
25994   ac_status=$?
25995   grep -v '^ *+' conftest.er1 >conftest.err
25996   rm -f conftest.er1
25997   cat conftest.err >&5
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); } &&
26000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26001   { (case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_try") 2>&5
26007   ac_status=$?
26008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009   (exit $ac_status); }; } &&
26010          { ac_try='test -s conftest.$ac_objext'
26011   { (case "(($ac_try" in
26012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26013   *) ac_try_echo=$ac_try;;
26014 esac
26015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26016   (eval "$ac_try") 2>&5
26017   ac_status=$?
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); }; }; then
26020   ac_cv_type_char=yes
26021 else
26022   echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26024
26025         ac_cv_type_char=no
26026 fi
26027
26028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26029 fi
26030 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26031 echo "${ECHO_T}$ac_cv_type_char" >&6; }
26032
26033 { echo "$as_me:$LINENO: checking size of char" >&5
26034 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
26035 if test "${ac_cv_sizeof_char+set}" = set; then
26036   echo $ECHO_N "(cached) $ECHO_C" >&6
26037 else
26038   if test "$ac_cv_type_char" = yes; then
26039   # The cast to long int works around a bug in the HP C Compiler
26040   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26041   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26042   # This bug is HP SR number 8606223364.
26043   if test "$cross_compiling" = yes; then
26044   # Depending upon the size, compute the lo and hi bounds.
26045 cat >conftest.$ac_ext <<_ACEOF
26046 /* confdefs.h.  */
26047 _ACEOF
26048 cat confdefs.h >>conftest.$ac_ext
26049 cat >>conftest.$ac_ext <<_ACEOF
26050 /* end confdefs.h.  */
26051 $ac_includes_default
26052                    typedef char ac__type_sizeof_;
26053 int
26054 main ()
26055 {
26056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26057 test_array [0] = 0
26058
26059   ;
26060   return 0;
26061 }
26062 _ACEOF
26063 rm -f conftest.$ac_objext
26064 if { (ac_try="$ac_compile"
26065 case "(($ac_try" in
26066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067   *) ac_try_echo=$ac_try;;
26068 esac
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070   (eval "$ac_compile") 2>conftest.er1
26071   ac_status=$?
26072   grep -v '^ *+' conftest.er1 >conftest.err
26073   rm -f conftest.er1
26074   cat conftest.err >&5
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); } &&
26077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26078   { (case "(($ac_try" in
26079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080   *) ac_try_echo=$ac_try;;
26081 esac
26082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083   (eval "$ac_try") 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; } &&
26087          { ac_try='test -s conftest.$ac_objext'
26088   { (case "(($ac_try" in
26089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090   *) ac_try_echo=$ac_try;;
26091 esac
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093   (eval "$ac_try") 2>&5
26094   ac_status=$?
26095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096   (exit $ac_status); }; }; then
26097   ac_lo=0 ac_mid=0
26098   while :; do
26099     cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h.  */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h.  */
26105 $ac_includes_default
26106                    typedef char ac__type_sizeof_;
26107 int
26108 main ()
26109 {
26110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26111 test_array [0] = 0
26112
26113   ;
26114   return 0;
26115 }
26116 _ACEOF
26117 rm -f conftest.$ac_objext
26118 if { (ac_try="$ac_compile"
26119 case "(($ac_try" in
26120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121   *) ac_try_echo=$ac_try;;
26122 esac
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124   (eval "$ac_compile") 2>conftest.er1
26125   ac_status=$?
26126   grep -v '^ *+' conftest.er1 >conftest.err
26127   rm -f conftest.er1
26128   cat conftest.err >&5
26129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130   (exit $ac_status); } &&
26131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26132   { (case "(($ac_try" in
26133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26134   *) ac_try_echo=$ac_try;;
26135 esac
26136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26137   (eval "$ac_try") 2>&5
26138   ac_status=$?
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); }; } &&
26141          { ac_try='test -s conftest.$ac_objext'
26142   { (case "(($ac_try" in
26143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144   *) ac_try_echo=$ac_try;;
26145 esac
26146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26147   (eval "$ac_try") 2>&5
26148   ac_status=$?
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); }; }; then
26151   ac_hi=$ac_mid; break
26152 else
26153   echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26155
26156         ac_lo=`expr $ac_mid + 1`
26157                         if test $ac_lo -le $ac_mid; then
26158                           ac_lo= ac_hi=
26159                           break
26160                         fi
26161                         ac_mid=`expr 2 '*' $ac_mid + 1`
26162 fi
26163
26164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26165   done
26166 else
26167   echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26169
26170         cat >conftest.$ac_ext <<_ACEOF
26171 /* confdefs.h.  */
26172 _ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h.  */
26176 $ac_includes_default
26177                    typedef char ac__type_sizeof_;
26178 int
26179 main ()
26180 {
26181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26182 test_array [0] = 0
26183
26184   ;
26185   return 0;
26186 }
26187 _ACEOF
26188 rm -f conftest.$ac_objext
26189 if { (ac_try="$ac_compile"
26190 case "(($ac_try" in
26191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192   *) ac_try_echo=$ac_try;;
26193 esac
26194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26195   (eval "$ac_compile") 2>conftest.er1
26196   ac_status=$?
26197   grep -v '^ *+' conftest.er1 >conftest.err
26198   rm -f conftest.er1
26199   cat conftest.err >&5
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); } &&
26202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26203   { (case "(($ac_try" in
26204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26205   *) ac_try_echo=$ac_try;;
26206 esac
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208   (eval "$ac_try") 2>&5
26209   ac_status=$?
26210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211   (exit $ac_status); }; } &&
26212          { ac_try='test -s conftest.$ac_objext'
26213   { (case "(($ac_try" in
26214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26215   *) ac_try_echo=$ac_try;;
26216 esac
26217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26218   (eval "$ac_try") 2>&5
26219   ac_status=$?
26220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221   (exit $ac_status); }; }; then
26222   ac_hi=-1 ac_mid=-1
26223   while :; do
26224     cat >conftest.$ac_ext <<_ACEOF
26225 /* confdefs.h.  */
26226 _ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h.  */
26230 $ac_includes_default
26231                    typedef char ac__type_sizeof_;
26232 int
26233 main ()
26234 {
26235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26236 test_array [0] = 0
26237
26238   ;
26239   return 0;
26240 }
26241 _ACEOF
26242 rm -f conftest.$ac_objext
26243 if { (ac_try="$ac_compile"
26244 case "(($ac_try" in
26245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26246   *) ac_try_echo=$ac_try;;
26247 esac
26248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26249   (eval "$ac_compile") 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } &&
26256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26257   { (case "(($ac_try" in
26258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259   *) ac_try_echo=$ac_try;;
26260 esac
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262   (eval "$ac_try") 2>&5
26263   ac_status=$?
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); }; } &&
26266          { ac_try='test -s conftest.$ac_objext'
26267   { (case "(($ac_try" in
26268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269   *) ac_try_echo=$ac_try;;
26270 esac
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272   (eval "$ac_try") 2>&5
26273   ac_status=$?
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); }; }; then
26276   ac_lo=$ac_mid; break
26277 else
26278   echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26280
26281         ac_hi=`expr '(' $ac_mid ')' - 1`
26282                         if test $ac_mid -le $ac_hi; then
26283                           ac_lo= ac_hi=
26284                           break
26285                         fi
26286                         ac_mid=`expr 2 '*' $ac_mid`
26287 fi
26288
26289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290   done
26291 else
26292   echo "$as_me: failed program was:" >&5
26293 sed 's/^/| /' conftest.$ac_ext >&5
26294
26295         ac_lo= ac_hi=
26296 fi
26297
26298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299 fi
26300
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 # Binary search between lo and hi bounds.
26303 while test "x$ac_lo" != "x$ac_hi"; do
26304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26305   cat >conftest.$ac_ext <<_ACEOF
26306 /* confdefs.h.  */
26307 _ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h.  */
26311 $ac_includes_default
26312                    typedef char ac__type_sizeof_;
26313 int
26314 main ()
26315 {
26316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26317 test_array [0] = 0
26318
26319   ;
26320   return 0;
26321 }
26322 _ACEOF
26323 rm -f conftest.$ac_objext
26324 if { (ac_try="$ac_compile"
26325 case "(($ac_try" in
26326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26327   *) ac_try_echo=$ac_try;;
26328 esac
26329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26330   (eval "$ac_compile") 2>conftest.er1
26331   ac_status=$?
26332   grep -v '^ *+' conftest.er1 >conftest.err
26333   rm -f conftest.er1
26334   cat conftest.err >&5
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); } &&
26337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26338   { (case "(($ac_try" in
26339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340   *) ac_try_echo=$ac_try;;
26341 esac
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343   (eval "$ac_try") 2>&5
26344   ac_status=$?
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); }; } &&
26347          { ac_try='test -s conftest.$ac_objext'
26348   { (case "(($ac_try" in
26349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350   *) ac_try_echo=$ac_try;;
26351 esac
26352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26353   (eval "$ac_try") 2>&5
26354   ac_status=$?
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); }; }; then
26357   ac_hi=$ac_mid
26358 else
26359   echo "$as_me: failed program was:" >&5
26360 sed 's/^/| /' conftest.$ac_ext >&5
26361
26362         ac_lo=`expr '(' $ac_mid ')' + 1`
26363 fi
26364
26365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26366 done
26367 case $ac_lo in
26368 ?*) ac_cv_sizeof_char=$ac_lo;;
26369 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26370 See \`config.log' for more details." >&5
26371 echo "$as_me: error: cannot compute sizeof (char)
26372 See \`config.log' for more details." >&2;}
26373    { (exit 77); exit 77; }; } ;;
26374 esac
26375 else
26376   cat >conftest.$ac_ext <<_ACEOF
26377 /* confdefs.h.  */
26378 _ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h.  */
26382 $ac_includes_default
26383                    typedef char ac__type_sizeof_;
26384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26386 #include <stdio.h>
26387 #include <stdlib.h>
26388 int
26389 main ()
26390 {
26391
26392   FILE *f = fopen ("conftest.val", "w");
26393   if (! f)
26394     return 1;
26395   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26396     {
26397       long int i = longval ();
26398       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26399         return 1;
26400       fprintf (f, "%ld\n", i);
26401     }
26402   else
26403     {
26404       unsigned long int i = ulongval ();
26405       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26406         return 1;
26407       fprintf (f, "%lu\n", i);
26408     }
26409   return ferror (f) || fclose (f) != 0;
26410
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 rm -f conftest$ac_exeext
26416 if { (ac_try="$ac_link"
26417 case "(($ac_try" in
26418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419   *) ac_try_echo=$ac_try;;
26420 esac
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422   (eval "$ac_link") 2>&5
26423   ac_status=$?
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26426   { (case "(($ac_try" in
26427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428   *) ac_try_echo=$ac_try;;
26429 esac
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431   (eval "$ac_try") 2>&5
26432   ac_status=$?
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); }; }; then
26435   ac_cv_sizeof_char=`cat conftest.val`
26436 else
26437   echo "$as_me: program exited with status $ac_status" >&5
26438 echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26440
26441 ( exit $ac_status )
26442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26443 See \`config.log' for more details." >&5
26444 echo "$as_me: error: cannot compute sizeof (char)
26445 See \`config.log' for more details." >&2;}
26446    { (exit 77); exit 77; }; }
26447 fi
26448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26449 fi
26450 rm -f conftest.val
26451 else
26452   ac_cv_sizeof_char=0
26453 fi
26454 fi
26455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26456 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26457 cat >>confdefs.h <<_ACEOF
26458 #define SIZEOF_CHAR $ac_cv_sizeof_char
26459 _ACEOF
26460
26461
26462 { echo "$as_me:$LINENO: checking for short int" >&5
26463 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26464 if test "${ac_cv_type_short_int+set}" = set; then
26465   echo $ECHO_N "(cached) $ECHO_C" >&6
26466 else
26467   cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473 $ac_includes_default
26474 typedef short int ac__type_new_;
26475 int
26476 main ()
26477 {
26478 if ((ac__type_new_ *) 0)
26479   return 0;
26480 if (sizeof (ac__type_new_))
26481   return 0;
26482   ;
26483   return 0;
26484 }
26485 _ACEOF
26486 rm -f conftest.$ac_objext
26487 if { (ac_try="$ac_compile"
26488 case "(($ac_try" in
26489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490   *) ac_try_echo=$ac_try;;
26491 esac
26492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26493   (eval "$ac_compile") 2>conftest.er1
26494   ac_status=$?
26495   grep -v '^ *+' conftest.er1 >conftest.err
26496   rm -f conftest.er1
26497   cat conftest.err >&5
26498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); } &&
26500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26501   { (case "(($ac_try" in
26502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26503   *) ac_try_echo=$ac_try;;
26504 esac
26505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26506   (eval "$ac_try") 2>&5
26507   ac_status=$?
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); }; } &&
26510          { ac_try='test -s conftest.$ac_objext'
26511   { (case "(($ac_try" in
26512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26513   *) ac_try_echo=$ac_try;;
26514 esac
26515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26516   (eval "$ac_try") 2>&5
26517   ac_status=$?
26518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519   (exit $ac_status); }; }; then
26520   ac_cv_type_short_int=yes
26521 else
26522   echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525         ac_cv_type_short_int=no
26526 fi
26527
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 fi
26530 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26531 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26532
26533 { echo "$as_me:$LINENO: checking size of short int" >&5
26534 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26535 if test "${ac_cv_sizeof_short_int+set}" = set; then
26536   echo $ECHO_N "(cached) $ECHO_C" >&6
26537 else
26538   if test "$ac_cv_type_short_int" = yes; then
26539   # The cast to long int works around a bug in the HP C Compiler
26540   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26541   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26542   # This bug is HP SR number 8606223364.
26543   if test "$cross_compiling" = yes; then
26544   # Depending upon the size, compute the lo and hi bounds.
26545 cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h.  */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h.  */
26551 $ac_includes_default
26552                    typedef short int ac__type_sizeof_;
26553 int
26554 main ()
26555 {
26556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26557 test_array [0] = 0
26558
26559   ;
26560   return 0;
26561 }
26562 _ACEOF
26563 rm -f conftest.$ac_objext
26564 if { (ac_try="$ac_compile"
26565 case "(($ac_try" in
26566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567   *) ac_try_echo=$ac_try;;
26568 esac
26569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26570   (eval "$ac_compile") 2>conftest.er1
26571   ac_status=$?
26572   grep -v '^ *+' conftest.er1 >conftest.err
26573   rm -f conftest.er1
26574   cat conftest.err >&5
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); } &&
26577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26578   { (case "(($ac_try" in
26579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26580   *) ac_try_echo=$ac_try;;
26581 esac
26582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26583   (eval "$ac_try") 2>&5
26584   ac_status=$?
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); }; } &&
26587          { ac_try='test -s conftest.$ac_objext'
26588   { (case "(($ac_try" in
26589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590   *) ac_try_echo=$ac_try;;
26591 esac
26592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26593   (eval "$ac_try") 2>&5
26594   ac_status=$?
26595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596   (exit $ac_status); }; }; then
26597   ac_lo=0 ac_mid=0
26598   while :; do
26599     cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h.  */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h.  */
26605 $ac_includes_default
26606                    typedef short int ac__type_sizeof_;
26607 int
26608 main ()
26609 {
26610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26611 test_array [0] = 0
26612
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest.$ac_objext
26618 if { (ac_try="$ac_compile"
26619 case "(($ac_try" in
26620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26621   *) ac_try_echo=$ac_try;;
26622 esac
26623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26624   (eval "$ac_compile") 2>conftest.er1
26625   ac_status=$?
26626   grep -v '^ *+' conftest.er1 >conftest.err
26627   rm -f conftest.er1
26628   cat conftest.err >&5
26629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630   (exit $ac_status); } &&
26631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26632   { (case "(($ac_try" in
26633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634   *) ac_try_echo=$ac_try;;
26635 esac
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637   (eval "$ac_try") 2>&5
26638   ac_status=$?
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); }; } &&
26641          { ac_try='test -s conftest.$ac_objext'
26642   { (case "(($ac_try" in
26643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644   *) ac_try_echo=$ac_try;;
26645 esac
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647   (eval "$ac_try") 2>&5
26648   ac_status=$?
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); }; }; then
26651   ac_hi=$ac_mid; break
26652 else
26653   echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26655
26656         ac_lo=`expr $ac_mid + 1`
26657                         if test $ac_lo -le $ac_mid; then
26658                           ac_lo= ac_hi=
26659                           break
26660                         fi
26661                         ac_mid=`expr 2 '*' $ac_mid + 1`
26662 fi
26663
26664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26665   done
26666 else
26667   echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26669
26670         cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676 $ac_includes_default
26677                    typedef short int ac__type_sizeof_;
26678 int
26679 main ()
26680 {
26681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26682 test_array [0] = 0
26683
26684   ;
26685   return 0;
26686 }
26687 _ACEOF
26688 rm -f conftest.$ac_objext
26689 if { (ac_try="$ac_compile"
26690 case "(($ac_try" in
26691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692   *) ac_try_echo=$ac_try;;
26693 esac
26694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26695   (eval "$ac_compile") 2>conftest.er1
26696   ac_status=$?
26697   grep -v '^ *+' conftest.er1 >conftest.err
26698   rm -f conftest.er1
26699   cat conftest.err >&5
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } &&
26702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26703   { (case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708   (eval "$ac_try") 2>&5
26709   ac_status=$?
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); }; } &&
26712          { ac_try='test -s conftest.$ac_objext'
26713   { (case "(($ac_try" in
26714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26715   *) ac_try_echo=$ac_try;;
26716 esac
26717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26718   (eval "$ac_try") 2>&5
26719   ac_status=$?
26720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721   (exit $ac_status); }; }; then
26722   ac_hi=-1 ac_mid=-1
26723   while :; do
26724     cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730 $ac_includes_default
26731                    typedef short int ac__type_sizeof_;
26732 int
26733 main ()
26734 {
26735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26736 test_array [0] = 0
26737
26738   ;
26739   return 0;
26740 }
26741 _ACEOF
26742 rm -f conftest.$ac_objext
26743 if { (ac_try="$ac_compile"
26744 case "(($ac_try" in
26745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746   *) ac_try_echo=$ac_try;;
26747 esac
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749   (eval "$ac_compile") 2>conftest.er1
26750   ac_status=$?
26751   grep -v '^ *+' conftest.er1 >conftest.err
26752   rm -f conftest.er1
26753   cat conftest.err >&5
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); } &&
26756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26757   { (case "(($ac_try" in
26758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759   *) ac_try_echo=$ac_try;;
26760 esac
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762   (eval "$ac_try") 2>&5
26763   ac_status=$?
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); }; } &&
26766          { ac_try='test -s conftest.$ac_objext'
26767   { (case "(($ac_try" in
26768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769   *) ac_try_echo=$ac_try;;
26770 esac
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772   (eval "$ac_try") 2>&5
26773   ac_status=$?
26774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); }; }; then
26776   ac_lo=$ac_mid; break
26777 else
26778   echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26780
26781         ac_hi=`expr '(' $ac_mid ')' - 1`
26782                         if test $ac_mid -le $ac_hi; then
26783                           ac_lo= ac_hi=
26784                           break
26785                         fi
26786                         ac_mid=`expr 2 '*' $ac_mid`
26787 fi
26788
26789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26790   done
26791 else
26792   echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.$ac_ext >&5
26794
26795         ac_lo= ac_hi=
26796 fi
26797
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26799 fi
26800
26801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802 # Binary search between lo and hi bounds.
26803 while test "x$ac_lo" != "x$ac_hi"; do
26804   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26805   cat >conftest.$ac_ext <<_ACEOF
26806 /* confdefs.h.  */
26807 _ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h.  */
26811 $ac_includes_default
26812                    typedef short int ac__type_sizeof_;
26813 int
26814 main ()
26815 {
26816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26817 test_array [0] = 0
26818
26819   ;
26820   return 0;
26821 }
26822 _ACEOF
26823 rm -f conftest.$ac_objext
26824 if { (ac_try="$ac_compile"
26825 case "(($ac_try" in
26826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827   *) ac_try_echo=$ac_try;;
26828 esac
26829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26830   (eval "$ac_compile") 2>conftest.er1
26831   ac_status=$?
26832   grep -v '^ *+' conftest.er1 >conftest.err
26833   rm -f conftest.er1
26834   cat conftest.err >&5
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); } &&
26837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26838   { (case "(($ac_try" in
26839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840   *) ac_try_echo=$ac_try;;
26841 esac
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843   (eval "$ac_try") 2>&5
26844   ac_status=$?
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); }; } &&
26847          { ac_try='test -s conftest.$ac_objext'
26848   { (case "(($ac_try" in
26849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850   *) ac_try_echo=$ac_try;;
26851 esac
26852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853   (eval "$ac_try") 2>&5
26854   ac_status=$?
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; }; then
26857   ac_hi=$ac_mid
26858 else
26859   echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26861
26862         ac_lo=`expr '(' $ac_mid ')' + 1`
26863 fi
26864
26865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26866 done
26867 case $ac_lo in
26868 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26870 See \`config.log' for more details." >&5
26871 echo "$as_me: error: cannot compute sizeof (short int)
26872 See \`config.log' for more details." >&2;}
26873    { (exit 77); exit 77; }; } ;;
26874 esac
26875 else
26876   cat >conftest.$ac_ext <<_ACEOF
26877 /* confdefs.h.  */
26878 _ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h.  */
26882 $ac_includes_default
26883                    typedef short int ac__type_sizeof_;
26884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26886 #include <stdio.h>
26887 #include <stdlib.h>
26888 int
26889 main ()
26890 {
26891
26892   FILE *f = fopen ("conftest.val", "w");
26893   if (! f)
26894     return 1;
26895   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26896     {
26897       long int i = longval ();
26898       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26899         return 1;
26900       fprintf (f, "%ld\n", i);
26901     }
26902   else
26903     {
26904       unsigned long int i = ulongval ();
26905       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26906         return 1;
26907       fprintf (f, "%lu\n", i);
26908     }
26909   return ferror (f) || fclose (f) != 0;
26910
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest$ac_exeext
26916 if { (ac_try="$ac_link"
26917 case "(($ac_try" in
26918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919   *) ac_try_echo=$ac_try;;
26920 esac
26921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26922   (eval "$ac_link") 2>&5
26923   ac_status=$?
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26926   { (case "(($ac_try" in
26927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928   *) ac_try_echo=$ac_try;;
26929 esac
26930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26931   (eval "$ac_try") 2>&5
26932   ac_status=$?
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); }; }; then
26935   ac_cv_sizeof_short_int=`cat conftest.val`
26936 else
26937   echo "$as_me: program exited with status $ac_status" >&5
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26940
26941 ( exit $ac_status )
26942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26943 See \`config.log' for more details." >&5
26944 echo "$as_me: error: cannot compute sizeof (short int)
26945 See \`config.log' for more details." >&2;}
26946    { (exit 77); exit 77; }; }
26947 fi
26948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26949 fi
26950 rm -f conftest.val
26951 else
26952   ac_cv_sizeof_short_int=0
26953 fi
26954 fi
26955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26956 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26957 cat >>confdefs.h <<_ACEOF
26958 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26959 _ACEOF
26960
26961
26962 { echo "$as_me:$LINENO: checking for int" >&5
26963 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26964 if test "${ac_cv_type_int+set}" = set; then
26965   echo $ECHO_N "(cached) $ECHO_C" >&6
26966 else
26967   cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h.  */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h.  */
26973 $ac_includes_default
26974 typedef int ac__type_new_;
26975 int
26976 main ()
26977 {
26978 if ((ac__type_new_ *) 0)
26979   return 0;
26980 if (sizeof (ac__type_new_))
26981   return 0;
26982   ;
26983   return 0;
26984 }
26985 _ACEOF
26986 rm -f conftest.$ac_objext
26987 if { (ac_try="$ac_compile"
26988 case "(($ac_try" in
26989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990   *) ac_try_echo=$ac_try;;
26991 esac
26992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26993   (eval "$ac_compile") 2>conftest.er1
26994   ac_status=$?
26995   grep -v '^ *+' conftest.er1 >conftest.err
26996   rm -f conftest.er1
26997   cat conftest.err >&5
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); } &&
27000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27001   { (case "(($ac_try" in
27002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003   *) ac_try_echo=$ac_try;;
27004 esac
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006   (eval "$ac_try") 2>&5
27007   ac_status=$?
27008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009   (exit $ac_status); }; } &&
27010          { ac_try='test -s conftest.$ac_objext'
27011   { (case "(($ac_try" in
27012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013   *) ac_try_echo=$ac_try;;
27014 esac
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016   (eval "$ac_try") 2>&5
27017   ac_status=$?
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); }; }; then
27020   ac_cv_type_int=yes
27021 else
27022   echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27024
27025         ac_cv_type_int=no
27026 fi
27027
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27029 fi
27030 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27031 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27032
27033 { echo "$as_me:$LINENO: checking size of int" >&5
27034 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27035 if test "${ac_cv_sizeof_int+set}" = set; then
27036   echo $ECHO_N "(cached) $ECHO_C" >&6
27037 else
27038   if test "$ac_cv_type_int" = yes; then
27039   # The cast to long int works around a bug in the HP C Compiler
27040   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27041   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27042   # This bug is HP SR number 8606223364.
27043   if test "$cross_compiling" = yes; then
27044   # Depending upon the size, compute the lo and hi bounds.
27045 cat >conftest.$ac_ext <<_ACEOF
27046 /* confdefs.h.  */
27047 _ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h.  */
27051 $ac_includes_default
27052                    typedef int ac__type_sizeof_;
27053 int
27054 main ()
27055 {
27056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27057 test_array [0] = 0
27058
27059   ;
27060   return 0;
27061 }
27062 _ACEOF
27063 rm -f conftest.$ac_objext
27064 if { (ac_try="$ac_compile"
27065 case "(($ac_try" in
27066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067   *) ac_try_echo=$ac_try;;
27068 esac
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070   (eval "$ac_compile") 2>conftest.er1
27071   ac_status=$?
27072   grep -v '^ *+' conftest.er1 >conftest.err
27073   rm -f conftest.er1
27074   cat conftest.err >&5
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); } &&
27077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27078   { (case "(($ac_try" in
27079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080   *) ac_try_echo=$ac_try;;
27081 esac
27082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27083   (eval "$ac_try") 2>&5
27084   ac_status=$?
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); }; } &&
27087          { ac_try='test -s conftest.$ac_objext'
27088   { (case "(($ac_try" in
27089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090   *) ac_try_echo=$ac_try;;
27091 esac
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093   (eval "$ac_try") 2>&5
27094   ac_status=$?
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); }; }; then
27097   ac_lo=0 ac_mid=0
27098   while :; do
27099     cat >conftest.$ac_ext <<_ACEOF
27100 /* confdefs.h.  */
27101 _ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h.  */
27105 $ac_includes_default
27106                    typedef int ac__type_sizeof_;
27107 int
27108 main ()
27109 {
27110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27111 test_array [0] = 0
27112
27113   ;
27114   return 0;
27115 }
27116 _ACEOF
27117 rm -f conftest.$ac_objext
27118 if { (ac_try="$ac_compile"
27119 case "(($ac_try" in
27120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121   *) ac_try_echo=$ac_try;;
27122 esac
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124   (eval "$ac_compile") 2>conftest.er1
27125   ac_status=$?
27126   grep -v '^ *+' conftest.er1 >conftest.err
27127   rm -f conftest.er1
27128   cat conftest.err >&5
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); } &&
27131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27132   { (case "(($ac_try" in
27133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134   *) ac_try_echo=$ac_try;;
27135 esac
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137   (eval "$ac_try") 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; } &&
27141          { ac_try='test -s conftest.$ac_objext'
27142   { (case "(($ac_try" in
27143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144   *) ac_try_echo=$ac_try;;
27145 esac
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147   (eval "$ac_try") 2>&5
27148   ac_status=$?
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); }; }; then
27151   ac_hi=$ac_mid; break
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         ac_lo=`expr $ac_mid + 1`
27157                         if test $ac_lo -le $ac_mid; then
27158                           ac_lo= ac_hi=
27159                           break
27160                         fi
27161                         ac_mid=`expr 2 '*' $ac_mid + 1`
27162 fi
27163
27164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27165   done
27166 else
27167   echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.$ac_ext >&5
27169
27170         cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h.  */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h.  */
27176 $ac_includes_default
27177                    typedef int ac__type_sizeof_;
27178 int
27179 main ()
27180 {
27181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27182 test_array [0] = 0
27183
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest.$ac_objext
27189 if { (ac_try="$ac_compile"
27190 case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_compile") 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } &&
27202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27203   { (case "(($ac_try" in
27204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205   *) ac_try_echo=$ac_try;;
27206 esac
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208   (eval "$ac_try") 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); }; } &&
27212          { ac_try='test -s conftest.$ac_objext'
27213   { (case "(($ac_try" in
27214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215   *) ac_try_echo=$ac_try;;
27216 esac
27217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218   (eval "$ac_try") 2>&5
27219   ac_status=$?
27220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221   (exit $ac_status); }; }; then
27222   ac_hi=-1 ac_mid=-1
27223   while :; do
27224     cat >conftest.$ac_ext <<_ACEOF
27225 /* confdefs.h.  */
27226 _ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h.  */
27230 $ac_includes_default
27231                    typedef int ac__type_sizeof_;
27232 int
27233 main ()
27234 {
27235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27236 test_array [0] = 0
27237
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 rm -f conftest.$ac_objext
27243 if { (ac_try="$ac_compile"
27244 case "(($ac_try" in
27245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246   *) ac_try_echo=$ac_try;;
27247 esac
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249   (eval "$ac_compile") 2>conftest.er1
27250   ac_status=$?
27251   grep -v '^ *+' conftest.er1 >conftest.err
27252   rm -f conftest.er1
27253   cat conftest.err >&5
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); } &&
27256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27257   { (case "(($ac_try" in
27258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27259   *) ac_try_echo=$ac_try;;
27260 esac
27261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27262   (eval "$ac_try") 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; } &&
27266          { ac_try='test -s conftest.$ac_objext'
27267   { (case "(($ac_try" in
27268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269   *) ac_try_echo=$ac_try;;
27270 esac
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272   (eval "$ac_try") 2>&5
27273   ac_status=$?
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); }; }; then
27276   ac_lo=$ac_mid; break
27277 else
27278   echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27280
27281         ac_hi=`expr '(' $ac_mid ')' - 1`
27282                         if test $ac_mid -le $ac_hi; then
27283                           ac_lo= ac_hi=
27284                           break
27285                         fi
27286                         ac_mid=`expr 2 '*' $ac_mid`
27287 fi
27288
27289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27290   done
27291 else
27292   echo "$as_me: failed program was:" >&5
27293 sed 's/^/| /' conftest.$ac_ext >&5
27294
27295         ac_lo= ac_hi=
27296 fi
27297
27298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27299 fi
27300
27301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27302 # Binary search between lo and hi bounds.
27303 while test "x$ac_lo" != "x$ac_hi"; do
27304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27305   cat >conftest.$ac_ext <<_ACEOF
27306 /* confdefs.h.  */
27307 _ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h.  */
27311 $ac_includes_default
27312                    typedef int ac__type_sizeof_;
27313 int
27314 main ()
27315 {
27316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27317 test_array [0] = 0
27318
27319   ;
27320   return 0;
27321 }
27322 _ACEOF
27323 rm -f conftest.$ac_objext
27324 if { (ac_try="$ac_compile"
27325 case "(($ac_try" in
27326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327   *) ac_try_echo=$ac_try;;
27328 esac
27329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330   (eval "$ac_compile") 2>conftest.er1
27331   ac_status=$?
27332   grep -v '^ *+' conftest.er1 >conftest.err
27333   rm -f conftest.er1
27334   cat conftest.err >&5
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); } &&
27337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27338   { (case "(($ac_try" in
27339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340   *) ac_try_echo=$ac_try;;
27341 esac
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343   (eval "$ac_try") 2>&5
27344   ac_status=$?
27345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346   (exit $ac_status); }; } &&
27347          { ac_try='test -s conftest.$ac_objext'
27348   { (case "(($ac_try" in
27349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350   *) ac_try_echo=$ac_try;;
27351 esac
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353   (eval "$ac_try") 2>&5
27354   ac_status=$?
27355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356   (exit $ac_status); }; }; then
27357   ac_hi=$ac_mid
27358 else
27359   echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27361
27362         ac_lo=`expr '(' $ac_mid ')' + 1`
27363 fi
27364
27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27366 done
27367 case $ac_lo in
27368 ?*) ac_cv_sizeof_int=$ac_lo;;
27369 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27370 See \`config.log' for more details." >&5
27371 echo "$as_me: error: cannot compute sizeof (int)
27372 See \`config.log' for more details." >&2;}
27373    { (exit 77); exit 77; }; } ;;
27374 esac
27375 else
27376   cat >conftest.$ac_ext <<_ACEOF
27377 /* confdefs.h.  */
27378 _ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h.  */
27382 $ac_includes_default
27383                    typedef int ac__type_sizeof_;
27384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27386 #include <stdio.h>
27387 #include <stdlib.h>
27388 int
27389 main ()
27390 {
27391
27392   FILE *f = fopen ("conftest.val", "w");
27393   if (! f)
27394     return 1;
27395   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27396     {
27397       long int i = longval ();
27398       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27399         return 1;
27400       fprintf (f, "%ld\n", i);
27401     }
27402   else
27403     {
27404       unsigned long int i = ulongval ();
27405       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27406         return 1;
27407       fprintf (f, "%lu\n", i);
27408     }
27409   return ferror (f) || fclose (f) != 0;
27410
27411   ;
27412   return 0;
27413 }
27414 _ACEOF
27415 rm -f conftest$ac_exeext
27416 if { (ac_try="$ac_link"
27417 case "(($ac_try" in
27418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27419   *) ac_try_echo=$ac_try;;
27420 esac
27421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27422   (eval "$ac_link") 2>&5
27423   ac_status=$?
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27426   { (case "(($ac_try" in
27427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428   *) ac_try_echo=$ac_try;;
27429 esac
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431   (eval "$ac_try") 2>&5
27432   ac_status=$?
27433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434   (exit $ac_status); }; }; then
27435   ac_cv_sizeof_int=`cat conftest.val`
27436 else
27437   echo "$as_me: program exited with status $ac_status" >&5
27438 echo "$as_me: failed program was:" >&5
27439 sed 's/^/| /' conftest.$ac_ext >&5
27440
27441 ( exit $ac_status )
27442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27443 See \`config.log' for more details." >&5
27444 echo "$as_me: error: cannot compute sizeof (int)
27445 See \`config.log' for more details." >&2;}
27446    { (exit 77); exit 77; }; }
27447 fi
27448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27449 fi
27450 rm -f conftest.val
27451 else
27452   ac_cv_sizeof_int=0
27453 fi
27454 fi
27455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27456 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27457 cat >>confdefs.h <<_ACEOF
27458 #define SIZEOF_INT $ac_cv_sizeof_int
27459 _ACEOF
27460
27461
27462 { echo "$as_me:$LINENO: checking for long int" >&5
27463 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27464 if test "${ac_cv_type_long_int+set}" = set; then
27465   echo $ECHO_N "(cached) $ECHO_C" >&6
27466 else
27467   cat >conftest.$ac_ext <<_ACEOF
27468 /* confdefs.h.  */
27469 _ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h.  */
27473 $ac_includes_default
27474 typedef long int ac__type_new_;
27475 int
27476 main ()
27477 {
27478 if ((ac__type_new_ *) 0)
27479   return 0;
27480 if (sizeof (ac__type_new_))
27481   return 0;
27482   ;
27483   return 0;
27484 }
27485 _ACEOF
27486 rm -f conftest.$ac_objext
27487 if { (ac_try="$ac_compile"
27488 case "(($ac_try" in
27489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490   *) ac_try_echo=$ac_try;;
27491 esac
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493   (eval "$ac_compile") 2>conftest.er1
27494   ac_status=$?
27495   grep -v '^ *+' conftest.er1 >conftest.err
27496   rm -f conftest.er1
27497   cat conftest.err >&5
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); } &&
27500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27501   { (case "(($ac_try" in
27502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503   *) ac_try_echo=$ac_try;;
27504 esac
27505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27506   (eval "$ac_try") 2>&5
27507   ac_status=$?
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); }; } &&
27510          { ac_try='test -s conftest.$ac_objext'
27511   { (case "(($ac_try" in
27512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513   *) ac_try_echo=$ac_try;;
27514 esac
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516   (eval "$ac_try") 2>&5
27517   ac_status=$?
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); }; }; then
27520   ac_cv_type_long_int=yes
27521 else
27522   echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27524
27525         ac_cv_type_long_int=no
27526 fi
27527
27528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27529 fi
27530 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27531 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27532
27533 { echo "$as_me:$LINENO: checking size of long int" >&5
27534 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27535 if test "${ac_cv_sizeof_long_int+set}" = set; then
27536   echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538   if test "$ac_cv_type_long_int" = yes; then
27539   # The cast to long int works around a bug in the HP C Compiler
27540   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27541   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27542   # This bug is HP SR number 8606223364.
27543   if test "$cross_compiling" = yes; then
27544   # Depending upon the size, compute the lo and hi bounds.
27545 cat >conftest.$ac_ext <<_ACEOF
27546 /* confdefs.h.  */
27547 _ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h.  */
27551 $ac_includes_default
27552                    typedef long int ac__type_sizeof_;
27553 int
27554 main ()
27555 {
27556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27557 test_array [0] = 0
27558
27559   ;
27560   return 0;
27561 }
27562 _ACEOF
27563 rm -f conftest.$ac_objext
27564 if { (ac_try="$ac_compile"
27565 case "(($ac_try" in
27566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567   *) ac_try_echo=$ac_try;;
27568 esac
27569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570   (eval "$ac_compile") 2>conftest.er1
27571   ac_status=$?
27572   grep -v '^ *+' conftest.er1 >conftest.err
27573   rm -f conftest.er1
27574   cat conftest.err >&5
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); } &&
27577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27578   { (case "(($ac_try" in
27579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27580   *) ac_try_echo=$ac_try;;
27581 esac
27582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27583   (eval "$ac_try") 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; } &&
27587          { ac_try='test -s conftest.$ac_objext'
27588   { (case "(($ac_try" in
27589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590   *) ac_try_echo=$ac_try;;
27591 esac
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593   (eval "$ac_try") 2>&5
27594   ac_status=$?
27595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); }; }; then
27597   ac_lo=0 ac_mid=0
27598   while :; do
27599     cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605 $ac_includes_default
27606                    typedef long int ac__type_sizeof_;
27607 int
27608 main ()
27609 {
27610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27611 test_array [0] = 0
27612
27613   ;
27614   return 0;
27615 }
27616 _ACEOF
27617 rm -f conftest.$ac_objext
27618 if { (ac_try="$ac_compile"
27619 case "(($ac_try" in
27620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621   *) ac_try_echo=$ac_try;;
27622 esac
27623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624   (eval "$ac_compile") 2>conftest.er1
27625   ac_status=$?
27626   grep -v '^ *+' conftest.er1 >conftest.err
27627   rm -f conftest.er1
27628   cat conftest.err >&5
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); } &&
27631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27632   { (case "(($ac_try" in
27633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634   *) ac_try_echo=$ac_try;;
27635 esac
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637   (eval "$ac_try") 2>&5
27638   ac_status=$?
27639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640   (exit $ac_status); }; } &&
27641          { ac_try='test -s conftest.$ac_objext'
27642   { (case "(($ac_try" in
27643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644   *) ac_try_echo=$ac_try;;
27645 esac
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647   (eval "$ac_try") 2>&5
27648   ac_status=$?
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); }; }; then
27651   ac_hi=$ac_mid; break
27652 else
27653   echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27655
27656         ac_lo=`expr $ac_mid + 1`
27657                         if test $ac_lo -le $ac_mid; then
27658                           ac_lo= ac_hi=
27659                           break
27660                         fi
27661                         ac_mid=`expr 2 '*' $ac_mid + 1`
27662 fi
27663
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27665   done
27666 else
27667   echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27669
27670         cat >conftest.$ac_ext <<_ACEOF
27671 /* confdefs.h.  */
27672 _ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h.  */
27676 $ac_includes_default
27677                    typedef long int ac__type_sizeof_;
27678 int
27679 main ()
27680 {
27681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27682 test_array [0] = 0
27683
27684   ;
27685   return 0;
27686 }
27687 _ACEOF
27688 rm -f conftest.$ac_objext
27689 if { (ac_try="$ac_compile"
27690 case "(($ac_try" in
27691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692   *) ac_try_echo=$ac_try;;
27693 esac
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695   (eval "$ac_compile") 2>conftest.er1
27696   ac_status=$?
27697   grep -v '^ *+' conftest.er1 >conftest.err
27698   rm -f conftest.er1
27699   cat conftest.err >&5
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); } &&
27702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27703   { (case "(($ac_try" in
27704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705   *) ac_try_echo=$ac_try;;
27706 esac
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708   (eval "$ac_try") 2>&5
27709   ac_status=$?
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); }; } &&
27712          { ac_try='test -s conftest.$ac_objext'
27713   { (case "(($ac_try" in
27714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27715   *) ac_try_echo=$ac_try;;
27716 esac
27717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27718   (eval "$ac_try") 2>&5
27719   ac_status=$?
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); }; }; then
27722   ac_hi=-1 ac_mid=-1
27723   while :; do
27724     cat >conftest.$ac_ext <<_ACEOF
27725 /* confdefs.h.  */
27726 _ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h.  */
27730 $ac_includes_default
27731                    typedef long int ac__type_sizeof_;
27732 int
27733 main ()
27734 {
27735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27736 test_array [0] = 0
27737
27738   ;
27739   return 0;
27740 }
27741 _ACEOF
27742 rm -f conftest.$ac_objext
27743 if { (ac_try="$ac_compile"
27744 case "(($ac_try" in
27745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746   *) ac_try_echo=$ac_try;;
27747 esac
27748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749   (eval "$ac_compile") 2>conftest.er1
27750   ac_status=$?
27751   grep -v '^ *+' conftest.er1 >conftest.err
27752   rm -f conftest.er1
27753   cat conftest.err >&5
27754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755   (exit $ac_status); } &&
27756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757   { (case "(($ac_try" in
27758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759   *) ac_try_echo=$ac_try;;
27760 esac
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762   (eval "$ac_try") 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); }; } &&
27766          { ac_try='test -s conftest.$ac_objext'
27767   { (case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_try") 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; }; then
27776   ac_lo=$ac_mid; break
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781         ac_hi=`expr '(' $ac_mid ')' - 1`
27782                         if test $ac_mid -le $ac_hi; then
27783                           ac_lo= ac_hi=
27784                           break
27785                         fi
27786                         ac_mid=`expr 2 '*' $ac_mid`
27787 fi
27788
27789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27790   done
27791 else
27792   echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27794
27795         ac_lo= ac_hi=
27796 fi
27797
27798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27799 fi
27800
27801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27802 # Binary search between lo and hi bounds.
27803 while test "x$ac_lo" != "x$ac_hi"; do
27804   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27805   cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811 $ac_includes_default
27812                    typedef long int ac__type_sizeof_;
27813 int
27814 main ()
27815 {
27816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27817 test_array [0] = 0
27818
27819   ;
27820   return 0;
27821 }
27822 _ACEOF
27823 rm -f conftest.$ac_objext
27824 if { (ac_try="$ac_compile"
27825 case "(($ac_try" in
27826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827   *) ac_try_echo=$ac_try;;
27828 esac
27829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830   (eval "$ac_compile") 2>conftest.er1
27831   ac_status=$?
27832   grep -v '^ *+' conftest.er1 >conftest.err
27833   rm -f conftest.er1
27834   cat conftest.err >&5
27835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836   (exit $ac_status); } &&
27837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27838   { (case "(($ac_try" in
27839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840   *) ac_try_echo=$ac_try;;
27841 esac
27842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843   (eval "$ac_try") 2>&5
27844   ac_status=$?
27845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846   (exit $ac_status); }; } &&
27847          { ac_try='test -s conftest.$ac_objext'
27848   { (case "(($ac_try" in
27849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850   *) ac_try_echo=$ac_try;;
27851 esac
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853   (eval "$ac_try") 2>&5
27854   ac_status=$?
27855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856   (exit $ac_status); }; }; then
27857   ac_hi=$ac_mid
27858 else
27859   echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27861
27862         ac_lo=`expr '(' $ac_mid ')' + 1`
27863 fi
27864
27865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27866 done
27867 case $ac_lo in
27868 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27870 See \`config.log' for more details." >&5
27871 echo "$as_me: error: cannot compute sizeof (long int)
27872 See \`config.log' for more details." >&2;}
27873    { (exit 77); exit 77; }; } ;;
27874 esac
27875 else
27876   cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h.  */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h.  */
27882 $ac_includes_default
27883                    typedef long int ac__type_sizeof_;
27884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27886 #include <stdio.h>
27887 #include <stdlib.h>
27888 int
27889 main ()
27890 {
27891
27892   FILE *f = fopen ("conftest.val", "w");
27893   if (! f)
27894     return 1;
27895   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27896     {
27897       long int i = longval ();
27898       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27899         return 1;
27900       fprintf (f, "%ld\n", i);
27901     }
27902   else
27903     {
27904       unsigned long int i = ulongval ();
27905       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27906         return 1;
27907       fprintf (f, "%lu\n", i);
27908     }
27909   return ferror (f) || fclose (f) != 0;
27910
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest$ac_exeext
27916 if { (ac_try="$ac_link"
27917 case "(($ac_try" in
27918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919   *) ac_try_echo=$ac_try;;
27920 esac
27921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922   (eval "$ac_link") 2>&5
27923   ac_status=$?
27924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27926   { (case "(($ac_try" in
27927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928   *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931   (eval "$ac_try") 2>&5
27932   ac_status=$?
27933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934   (exit $ac_status); }; }; then
27935   ac_cv_sizeof_long_int=`cat conftest.val`
27936 else
27937   echo "$as_me: program exited with status $ac_status" >&5
27938 echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27940
27941 ( exit $ac_status )
27942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27943 See \`config.log' for more details." >&5
27944 echo "$as_me: error: cannot compute sizeof (long int)
27945 See \`config.log' for more details." >&2;}
27946    { (exit 77); exit 77; }; }
27947 fi
27948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27949 fi
27950 rm -f conftest.val
27951 else
27952   ac_cv_sizeof_long_int=0
27953 fi
27954 fi
27955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27956 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27957 cat >>confdefs.h <<_ACEOF
27958 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27959 _ACEOF
27960
27961
27962 { echo "$as_me:$LINENO: checking for long long int" >&5
27963 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27964 if test "${ac_cv_type_long_long_int+set}" = set; then
27965   echo $ECHO_N "(cached) $ECHO_C" >&6
27966 else
27967   cat >conftest.$ac_ext <<_ACEOF
27968 /* confdefs.h.  */
27969 _ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h.  */
27973 $ac_includes_default
27974 typedef long long int ac__type_new_;
27975 int
27976 main ()
27977 {
27978 if ((ac__type_new_ *) 0)
27979   return 0;
27980 if (sizeof (ac__type_new_))
27981   return 0;
27982   ;
27983   return 0;
27984 }
27985 _ACEOF
27986 rm -f conftest.$ac_objext
27987 if { (ac_try="$ac_compile"
27988 case "(($ac_try" in
27989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990   *) ac_try_echo=$ac_try;;
27991 esac
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993   (eval "$ac_compile") 2>conftest.er1
27994   ac_status=$?
27995   grep -v '^ *+' conftest.er1 >conftest.err
27996   rm -f conftest.er1
27997   cat conftest.err >&5
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); } &&
28000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28001   { (case "(($ac_try" in
28002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003   *) ac_try_echo=$ac_try;;
28004 esac
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006   (eval "$ac_try") 2>&5
28007   ac_status=$?
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); }; } &&
28010          { ac_try='test -s conftest.$ac_objext'
28011   { (case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_try") 2>&5
28017   ac_status=$?
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); }; }; then
28020   ac_cv_type_long_long_int=yes
28021 else
28022   echo "$as_me: failed program was:" >&5
28023 sed 's/^/| /' conftest.$ac_ext >&5
28024
28025         ac_cv_type_long_long_int=no
28026 fi
28027
28028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28029 fi
28030 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
28031 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
28032
28033 { echo "$as_me:$LINENO: checking size of long long int" >&5
28034 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
28035 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
28036   echo $ECHO_N "(cached) $ECHO_C" >&6
28037 else
28038   if test "$ac_cv_type_long_long_int" = yes; then
28039   # The cast to long int works around a bug in the HP C Compiler
28040   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28041   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28042   # This bug is HP SR number 8606223364.
28043   if test "$cross_compiling" = yes; then
28044   # Depending upon the size, compute the lo and hi bounds.
28045 cat >conftest.$ac_ext <<_ACEOF
28046 /* confdefs.h.  */
28047 _ACEOF
28048 cat confdefs.h >>conftest.$ac_ext
28049 cat >>conftest.$ac_ext <<_ACEOF
28050 /* end confdefs.h.  */
28051 $ac_includes_default
28052                    typedef long long int ac__type_sizeof_;
28053 int
28054 main ()
28055 {
28056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28057 test_array [0] = 0
28058
28059   ;
28060   return 0;
28061 }
28062 _ACEOF
28063 rm -f conftest.$ac_objext
28064 if { (ac_try="$ac_compile"
28065 case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070   (eval "$ac_compile") 2>conftest.er1
28071   ac_status=$?
28072   grep -v '^ *+' conftest.er1 >conftest.err
28073   rm -f conftest.er1
28074   cat conftest.err >&5
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); } &&
28077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28078   { (case "(($ac_try" in
28079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080   *) ac_try_echo=$ac_try;;
28081 esac
28082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083   (eval "$ac_try") 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; } &&
28087          { ac_try='test -s conftest.$ac_objext'
28088   { (case "(($ac_try" in
28089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090   *) ac_try_echo=$ac_try;;
28091 esac
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093   (eval "$ac_try") 2>&5
28094   ac_status=$?
28095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096   (exit $ac_status); }; }; then
28097   ac_lo=0 ac_mid=0
28098   while :; do
28099     cat >conftest.$ac_ext <<_ACEOF
28100 /* confdefs.h.  */
28101 _ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h.  */
28105 $ac_includes_default
28106                    typedef long long int ac__type_sizeof_;
28107 int
28108 main ()
28109 {
28110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28111 test_array [0] = 0
28112
28113   ;
28114   return 0;
28115 }
28116 _ACEOF
28117 rm -f conftest.$ac_objext
28118 if { (ac_try="$ac_compile"
28119 case "(($ac_try" in
28120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121   *) ac_try_echo=$ac_try;;
28122 esac
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124   (eval "$ac_compile") 2>conftest.er1
28125   ac_status=$?
28126   grep -v '^ *+' conftest.er1 >conftest.err
28127   rm -f conftest.er1
28128   cat conftest.err >&5
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); } &&
28131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28132   { (case "(($ac_try" in
28133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28134   *) ac_try_echo=$ac_try;;
28135 esac
28136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28137   (eval "$ac_try") 2>&5
28138   ac_status=$?
28139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140   (exit $ac_status); }; } &&
28141          { ac_try='test -s conftest.$ac_objext'
28142   { (case "(($ac_try" in
28143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144   *) ac_try_echo=$ac_try;;
28145 esac
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147   (eval "$ac_try") 2>&5
28148   ac_status=$?
28149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150   (exit $ac_status); }; }; then
28151   ac_hi=$ac_mid; break
28152 else
28153   echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28155
28156         ac_lo=`expr $ac_mid + 1`
28157                         if test $ac_lo -le $ac_mid; then
28158                           ac_lo= ac_hi=
28159                           break
28160                         fi
28161                         ac_mid=`expr 2 '*' $ac_mid + 1`
28162 fi
28163
28164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28165   done
28166 else
28167   echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170         cat >conftest.$ac_ext <<_ACEOF
28171 /* confdefs.h.  */
28172 _ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h.  */
28176 $ac_includes_default
28177                    typedef long long int ac__type_sizeof_;
28178 int
28179 main ()
28180 {
28181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28182 test_array [0] = 0
28183
28184   ;
28185   return 0;
28186 }
28187 _ACEOF
28188 rm -f conftest.$ac_objext
28189 if { (ac_try="$ac_compile"
28190 case "(($ac_try" in
28191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192   *) ac_try_echo=$ac_try;;
28193 esac
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195   (eval "$ac_compile") 2>conftest.er1
28196   ac_status=$?
28197   grep -v '^ *+' conftest.er1 >conftest.err
28198   rm -f conftest.er1
28199   cat conftest.err >&5
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); } &&
28202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28203   { (case "(($ac_try" in
28204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205   *) ac_try_echo=$ac_try;;
28206 esac
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208   (eval "$ac_try") 2>&5
28209   ac_status=$?
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); }; } &&
28212          { ac_try='test -s conftest.$ac_objext'
28213   { (case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_try") 2>&5
28219   ac_status=$?
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); }; }; then
28222   ac_hi=-1 ac_mid=-1
28223   while :; do
28224     cat >conftest.$ac_ext <<_ACEOF
28225 /* confdefs.h.  */
28226 _ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h.  */
28230 $ac_includes_default
28231                    typedef long long int ac__type_sizeof_;
28232 int
28233 main ()
28234 {
28235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28236 test_array [0] = 0
28237
28238   ;
28239   return 0;
28240 }
28241 _ACEOF
28242 rm -f conftest.$ac_objext
28243 if { (ac_try="$ac_compile"
28244 case "(($ac_try" in
28245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246   *) ac_try_echo=$ac_try;;
28247 esac
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249   (eval "$ac_compile") 2>conftest.er1
28250   ac_status=$?
28251   grep -v '^ *+' conftest.er1 >conftest.err
28252   rm -f conftest.er1
28253   cat conftest.err >&5
28254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255   (exit $ac_status); } &&
28256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28257   { (case "(($ac_try" in
28258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259   *) ac_try_echo=$ac_try;;
28260 esac
28261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262   (eval "$ac_try") 2>&5
28263   ac_status=$?
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); }; } &&
28266          { ac_try='test -s conftest.$ac_objext'
28267   { (case "(($ac_try" in
28268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269   *) ac_try_echo=$ac_try;;
28270 esac
28271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272   (eval "$ac_try") 2>&5
28273   ac_status=$?
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); }; }; then
28276   ac_lo=$ac_mid; break
28277 else
28278   echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28280
28281         ac_hi=`expr '(' $ac_mid ')' - 1`
28282                         if test $ac_mid -le $ac_hi; then
28283                           ac_lo= ac_hi=
28284                           break
28285                         fi
28286                         ac_mid=`expr 2 '*' $ac_mid`
28287 fi
28288
28289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290   done
28291 else
28292   echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295         ac_lo= ac_hi=
28296 fi
28297
28298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28299 fi
28300
28301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28302 # Binary search between lo and hi bounds.
28303 while test "x$ac_lo" != "x$ac_hi"; do
28304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28305   cat >conftest.$ac_ext <<_ACEOF
28306 /* confdefs.h.  */
28307 _ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h.  */
28311 $ac_includes_default
28312                    typedef long long int ac__type_sizeof_;
28313 int
28314 main ()
28315 {
28316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28317 test_array [0] = 0
28318
28319   ;
28320   return 0;
28321 }
28322 _ACEOF
28323 rm -f conftest.$ac_objext
28324 if { (ac_try="$ac_compile"
28325 case "(($ac_try" in
28326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28327   *) ac_try_echo=$ac_try;;
28328 esac
28329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28330   (eval "$ac_compile") 2>conftest.er1
28331   ac_status=$?
28332   grep -v '^ *+' conftest.er1 >conftest.err
28333   rm -f conftest.er1
28334   cat conftest.err >&5
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } &&
28337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28338   { (case "(($ac_try" in
28339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340   *) ac_try_echo=$ac_try;;
28341 esac
28342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343   (eval "$ac_try") 2>&5
28344   ac_status=$?
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); }; } &&
28347          { ac_try='test -s conftest.$ac_objext'
28348   { (case "(($ac_try" in
28349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350   *) ac_try_echo=$ac_try;;
28351 esac
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353   (eval "$ac_try") 2>&5
28354   ac_status=$?
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); }; }; then
28357   ac_hi=$ac_mid
28358 else
28359   echo "$as_me: failed program was:" >&5
28360 sed 's/^/| /' conftest.$ac_ext >&5
28361
28362         ac_lo=`expr '(' $ac_mid ')' + 1`
28363 fi
28364
28365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28366 done
28367 case $ac_lo in
28368 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28369 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28370 See \`config.log' for more details." >&5
28371 echo "$as_me: error: cannot compute sizeof (long long int)
28372 See \`config.log' for more details." >&2;}
28373    { (exit 77); exit 77; }; } ;;
28374 esac
28375 else
28376   cat >conftest.$ac_ext <<_ACEOF
28377 /* confdefs.h.  */
28378 _ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h.  */
28382 $ac_includes_default
28383                    typedef long long int ac__type_sizeof_;
28384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28386 #include <stdio.h>
28387 #include <stdlib.h>
28388 int
28389 main ()
28390 {
28391
28392   FILE *f = fopen ("conftest.val", "w");
28393   if (! f)
28394     return 1;
28395   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28396     {
28397       long int i = longval ();
28398       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28399         return 1;
28400       fprintf (f, "%ld\n", i);
28401     }
28402   else
28403     {
28404       unsigned long int i = ulongval ();
28405       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28406         return 1;
28407       fprintf (f, "%lu\n", i);
28408     }
28409   return ferror (f) || fclose (f) != 0;
28410
28411   ;
28412   return 0;
28413 }
28414 _ACEOF
28415 rm -f conftest$ac_exeext
28416 if { (ac_try="$ac_link"
28417 case "(($ac_try" in
28418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419   *) ac_try_echo=$ac_try;;
28420 esac
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422   (eval "$ac_link") 2>&5
28423   ac_status=$?
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28426   { (case "(($ac_try" in
28427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28428   *) ac_try_echo=$ac_try;;
28429 esac
28430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28431   (eval "$ac_try") 2>&5
28432   ac_status=$?
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); }; }; then
28435   ac_cv_sizeof_long_long_int=`cat conftest.val`
28436 else
28437   echo "$as_me: program exited with status $ac_status" >&5
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28440
28441 ( exit $ac_status )
28442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28443 See \`config.log' for more details." >&5
28444 echo "$as_me: error: cannot compute sizeof (long long int)
28445 See \`config.log' for more details." >&2;}
28446    { (exit 77); exit 77; }; }
28447 fi
28448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28449 fi
28450 rm -f conftest.val
28451 else
28452   ac_cv_sizeof_long_long_int=0
28453 fi
28454 fi
28455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28456 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28457 cat >>confdefs.h <<_ACEOF
28458 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28459 _ACEOF
28460
28461
28462 { echo "$as_me:$LINENO: checking for int *" >&5
28463 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28464 if test "${ac_cv_type_int_p+set}" = set; then
28465   echo $ECHO_N "(cached) $ECHO_C" >&6
28466 else
28467   cat >conftest.$ac_ext <<_ACEOF
28468 /* confdefs.h.  */
28469 _ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h.  */
28473 $ac_includes_default
28474 typedef int * ac__type_new_;
28475 int
28476 main ()
28477 {
28478 if ((ac__type_new_ *) 0)
28479   return 0;
28480 if (sizeof (ac__type_new_))
28481   return 0;
28482   ;
28483   return 0;
28484 }
28485 _ACEOF
28486 rm -f conftest.$ac_objext
28487 if { (ac_try="$ac_compile"
28488 case "(($ac_try" in
28489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490   *) ac_try_echo=$ac_try;;
28491 esac
28492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493   (eval "$ac_compile") 2>conftest.er1
28494   ac_status=$?
28495   grep -v '^ *+' conftest.er1 >conftest.err
28496   rm -f conftest.er1
28497   cat conftest.err >&5
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); } &&
28500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28501   { (case "(($ac_try" in
28502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28503   *) ac_try_echo=$ac_try;;
28504 esac
28505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28506   (eval "$ac_try") 2>&5
28507   ac_status=$?
28508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509   (exit $ac_status); }; } &&
28510          { ac_try='test -s conftest.$ac_objext'
28511   { (case "(($ac_try" in
28512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513   *) ac_try_echo=$ac_try;;
28514 esac
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516   (eval "$ac_try") 2>&5
28517   ac_status=$?
28518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519   (exit $ac_status); }; }; then
28520   ac_cv_type_int_p=yes
28521 else
28522   echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525         ac_cv_type_int_p=no
28526 fi
28527
28528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28529 fi
28530 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28531 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28532
28533 { echo "$as_me:$LINENO: checking size of int *" >&5
28534 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28535 if test "${ac_cv_sizeof_int_p+set}" = set; then
28536   echo $ECHO_N "(cached) $ECHO_C" >&6
28537 else
28538   if test "$ac_cv_type_int_p" = yes; then
28539   # The cast to long int works around a bug in the HP C Compiler
28540   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28541   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28542   # This bug is HP SR number 8606223364.
28543   if test "$cross_compiling" = yes; then
28544   # Depending upon the size, compute the lo and hi bounds.
28545 cat >conftest.$ac_ext <<_ACEOF
28546 /* confdefs.h.  */
28547 _ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h.  */
28551 $ac_includes_default
28552                    typedef int * ac__type_sizeof_;
28553 int
28554 main ()
28555 {
28556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28557 test_array [0] = 0
28558
28559   ;
28560   return 0;
28561 }
28562 _ACEOF
28563 rm -f conftest.$ac_objext
28564 if { (ac_try="$ac_compile"
28565 case "(($ac_try" in
28566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567   *) ac_try_echo=$ac_try;;
28568 esac
28569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570   (eval "$ac_compile") 2>conftest.er1
28571   ac_status=$?
28572   grep -v '^ *+' conftest.er1 >conftest.err
28573   rm -f conftest.er1
28574   cat conftest.err >&5
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); } &&
28577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578   { (case "(($ac_try" in
28579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580   *) ac_try_echo=$ac_try;;
28581 esac
28582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583   (eval "$ac_try") 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; } &&
28587          { ac_try='test -s conftest.$ac_objext'
28588   { (case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_try") 2>&5
28594   ac_status=$?
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); }; }; then
28597   ac_lo=0 ac_mid=0
28598   while :; do
28599     cat >conftest.$ac_ext <<_ACEOF
28600 /* confdefs.h.  */
28601 _ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h.  */
28605 $ac_includes_default
28606                    typedef int * ac__type_sizeof_;
28607 int
28608 main ()
28609 {
28610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28611 test_array [0] = 0
28612
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext
28618 if { (ac_try="$ac_compile"
28619 case "(($ac_try" in
28620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621   *) ac_try_echo=$ac_try;;
28622 esac
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624   (eval "$ac_compile") 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } &&
28631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28632   { (case "(($ac_try" in
28633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634   *) ac_try_echo=$ac_try;;
28635 esac
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637   (eval "$ac_try") 2>&5
28638   ac_status=$?
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); }; } &&
28641          { ac_try='test -s conftest.$ac_objext'
28642   { (case "(($ac_try" in
28643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644   *) ac_try_echo=$ac_try;;
28645 esac
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647   (eval "$ac_try") 2>&5
28648   ac_status=$?
28649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650   (exit $ac_status); }; }; then
28651   ac_hi=$ac_mid; break
28652 else
28653   echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656         ac_lo=`expr $ac_mid + 1`
28657                         if test $ac_lo -le $ac_mid; then
28658                           ac_lo= ac_hi=
28659                           break
28660                         fi
28661                         ac_mid=`expr 2 '*' $ac_mid + 1`
28662 fi
28663
28664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28665   done
28666 else
28667   echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28669
28670         cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h.  */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h.  */
28676 $ac_includes_default
28677                    typedef int * ac__type_sizeof_;
28678 int
28679 main ()
28680 {
28681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28682 test_array [0] = 0
28683
28684   ;
28685   return 0;
28686 }
28687 _ACEOF
28688 rm -f conftest.$ac_objext
28689 if { (ac_try="$ac_compile"
28690 case "(($ac_try" in
28691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692   *) ac_try_echo=$ac_try;;
28693 esac
28694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695   (eval "$ac_compile") 2>conftest.er1
28696   ac_status=$?
28697   grep -v '^ *+' conftest.er1 >conftest.err
28698   rm -f conftest.er1
28699   cat conftest.err >&5
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); } &&
28702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28703   { (case "(($ac_try" in
28704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705   *) ac_try_echo=$ac_try;;
28706 esac
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708   (eval "$ac_try") 2>&5
28709   ac_status=$?
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); }; } &&
28712          { ac_try='test -s conftest.$ac_objext'
28713   { (case "(($ac_try" in
28714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715   *) ac_try_echo=$ac_try;;
28716 esac
28717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718   (eval "$ac_try") 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; }; then
28722   ac_hi=-1 ac_mid=-1
28723   while :; do
28724     cat >conftest.$ac_ext <<_ACEOF
28725 /* confdefs.h.  */
28726 _ACEOF
28727 cat confdefs.h >>conftest.$ac_ext
28728 cat >>conftest.$ac_ext <<_ACEOF
28729 /* end confdefs.h.  */
28730 $ac_includes_default
28731                    typedef int * ac__type_sizeof_;
28732 int
28733 main ()
28734 {
28735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28736 test_array [0] = 0
28737
28738   ;
28739   return 0;
28740 }
28741 _ACEOF
28742 rm -f conftest.$ac_objext
28743 if { (ac_try="$ac_compile"
28744 case "(($ac_try" in
28745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28746   *) ac_try_echo=$ac_try;;
28747 esac
28748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28749   (eval "$ac_compile") 2>conftest.er1
28750   ac_status=$?
28751   grep -v '^ *+' conftest.er1 >conftest.err
28752   rm -f conftest.er1
28753   cat conftest.err >&5
28754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755   (exit $ac_status); } &&
28756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28757   { (case "(($ac_try" in
28758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28759   *) ac_try_echo=$ac_try;;
28760 esac
28761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28762   (eval "$ac_try") 2>&5
28763   ac_status=$?
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); }; } &&
28766          { ac_try='test -s conftest.$ac_objext'
28767   { (case "(($ac_try" in
28768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769   *) ac_try_echo=$ac_try;;
28770 esac
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772   (eval "$ac_try") 2>&5
28773   ac_status=$?
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); }; }; then
28776   ac_lo=$ac_mid; break
28777 else
28778   echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781         ac_hi=`expr '(' $ac_mid ')' - 1`
28782                         if test $ac_mid -le $ac_hi; then
28783                           ac_lo= ac_hi=
28784                           break
28785                         fi
28786                         ac_mid=`expr 2 '*' $ac_mid`
28787 fi
28788
28789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28790   done
28791 else
28792   echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28794
28795         ac_lo= ac_hi=
28796 fi
28797
28798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799 fi
28800
28801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28802 # Binary search between lo and hi bounds.
28803 while test "x$ac_lo" != "x$ac_hi"; do
28804   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28805   cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811 $ac_includes_default
28812                    typedef int * ac__type_sizeof_;
28813 int
28814 main ()
28815 {
28816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28817 test_array [0] = 0
28818
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext
28824 if { (ac_try="$ac_compile"
28825 case "(($ac_try" in
28826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827   *) ac_try_echo=$ac_try;;
28828 esac
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830   (eval "$ac_compile") 2>conftest.er1
28831   ac_status=$?
28832   grep -v '^ *+' conftest.er1 >conftest.err
28833   rm -f conftest.er1
28834   cat conftest.err >&5
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); } &&
28837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28838   { (case "(($ac_try" in
28839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28840   *) ac_try_echo=$ac_try;;
28841 esac
28842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28843   (eval "$ac_try") 2>&5
28844   ac_status=$?
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); }; } &&
28847          { ac_try='test -s conftest.$ac_objext'
28848   { (case "(($ac_try" in
28849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850   *) ac_try_echo=$ac_try;;
28851 esac
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853   (eval "$ac_try") 2>&5
28854   ac_status=$?
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); }; }; then
28857   ac_hi=$ac_mid
28858 else
28859   echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28861
28862         ac_lo=`expr '(' $ac_mid ')' + 1`
28863 fi
28864
28865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28866 done
28867 case $ac_lo in
28868 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28870 See \`config.log' for more details." >&5
28871 echo "$as_me: error: cannot compute sizeof (int *)
28872 See \`config.log' for more details." >&2;}
28873    { (exit 77); exit 77; }; } ;;
28874 esac
28875 else
28876   cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882 $ac_includes_default
28883                    typedef int * ac__type_sizeof_;
28884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28886 #include <stdio.h>
28887 #include <stdlib.h>
28888 int
28889 main ()
28890 {
28891
28892   FILE *f = fopen ("conftest.val", "w");
28893   if (! f)
28894     return 1;
28895   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28896     {
28897       long int i = longval ();
28898       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28899         return 1;
28900       fprintf (f, "%ld\n", i);
28901     }
28902   else
28903     {
28904       unsigned long int i = ulongval ();
28905       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28906         return 1;
28907       fprintf (f, "%lu\n", i);
28908     }
28909   return ferror (f) || fclose (f) != 0;
28910
28911   ;
28912   return 0;
28913 }
28914 _ACEOF
28915 rm -f conftest$ac_exeext
28916 if { (ac_try="$ac_link"
28917 case "(($ac_try" in
28918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919   *) ac_try_echo=$ac_try;;
28920 esac
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922   (eval "$ac_link") 2>&5
28923   ac_status=$?
28924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28926   { (case "(($ac_try" in
28927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928   *) ac_try_echo=$ac_try;;
28929 esac
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931   (eval "$ac_try") 2>&5
28932   ac_status=$?
28933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934   (exit $ac_status); }; }; then
28935   ac_cv_sizeof_int_p=`cat conftest.val`
28936 else
28937   echo "$as_me: program exited with status $ac_status" >&5
28938 echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28940
28941 ( exit $ac_status )
28942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28943 See \`config.log' for more details." >&5
28944 echo "$as_me: error: cannot compute sizeof (int *)
28945 See \`config.log' for more details." >&2;}
28946    { (exit 77); exit 77; }; }
28947 fi
28948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28949 fi
28950 rm -f conftest.val
28951 else
28952   ac_cv_sizeof_int_p=0
28953 fi
28954 fi
28955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28956 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28957 cat >>confdefs.h <<_ACEOF
28958 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28959 _ACEOF
28960
28961
28962
28963 # Check for sys/types.h types
28964 { echo "$as_me:$LINENO: checking for u_int type" >&5
28965 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28966 if test "${ac_cv_have_u_int+set}" = set; then
28967   echo $ECHO_N "(cached) $ECHO_C" >&6
28968 else
28969
28970     cat >conftest.$ac_ext <<_ACEOF
28971 /* confdefs.h.  */
28972 _ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h.  */
28976  #include <sys/types.h>
28977 int
28978 main ()
28979 {
28980  u_int a; a = 1;
28981   ;
28982   return 0;
28983 }
28984 _ACEOF
28985 rm -f conftest.$ac_objext
28986 if { (ac_try="$ac_compile"
28987 case "(($ac_try" in
28988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28989   *) ac_try_echo=$ac_try;;
28990 esac
28991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28992   (eval "$ac_compile") 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } &&
28999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29000   { (case "(($ac_try" in
29001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002   *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005   (eval "$ac_try") 2>&5
29006   ac_status=$?
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); }; } &&
29009          { ac_try='test -s conftest.$ac_objext'
29010   { (case "(($ac_try" in
29011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012   *) ac_try_echo=$ac_try;;
29013 esac
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015   (eval "$ac_try") 2>&5
29016   ac_status=$?
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); }; }; then
29019    ac_cv_have_u_int="yes"
29020 else
29021   echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024          ac_cv_have_u_int="no"
29025
29026 fi
29027
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029
29030 fi
29031 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
29032 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
29033 if test "x$ac_cv_have_u_int" = "xyes" ; then
29034    cat >>confdefs.h <<\_ACEOF
29035 #define HAVE_U_INT 1
29036 _ACEOF
29037
29038    have_u_int=1
29039 fi
29040
29041 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
29042 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
29043 if test "${ac_cv_have_intmax_t+set}" = set; then
29044   echo $ECHO_N "(cached) $ECHO_C" >&6
29045 else
29046
29047    cat >conftest.$ac_ext <<_ACEOF
29048 /* confdefs.h.  */
29049 _ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h.  */
29053  #include <sys/types.h>
29054 int
29055 main ()
29056 {
29057  intmax_t a; a = 1;
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069   (eval "$ac_compile") 2>conftest.er1
29070   ac_status=$?
29071   grep -v '^ *+' conftest.er1 >conftest.err
29072   rm -f conftest.er1
29073   cat conftest.err >&5
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } &&
29076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29086          { ac_try='test -s conftest.$ac_objext'
29087   { (case "(($ac_try" in
29088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089   *) ac_try_echo=$ac_try;;
29090 esac
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092   (eval "$ac_try") 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); }; }; then
29096    ac_cv_have_intmax_t="yes"
29097 else
29098   echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29100
29101
29102          cat >conftest.$ac_ext <<_ACEOF
29103 /* confdefs.h.  */
29104 _ACEOF
29105 cat confdefs.h >>conftest.$ac_ext
29106 cat >>conftest.$ac_ext <<_ACEOF
29107 /* end confdefs.h.  */
29108  #include <stdint.h>
29109 int
29110 main ()
29111 {
29112  intmax_t a; a = 1;
29113   ;
29114   return 0;
29115 }
29116 _ACEOF
29117 rm -f conftest.$ac_objext
29118 if { (ac_try="$ac_compile"
29119 case "(($ac_try" in
29120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121   *) ac_try_echo=$ac_try;;
29122 esac
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124   (eval "$ac_compile") 2>conftest.er1
29125   ac_status=$?
29126   grep -v '^ *+' conftest.er1 >conftest.err
29127   rm -f conftest.er1
29128   cat conftest.err >&5
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); } &&
29131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29132   { (case "(($ac_try" in
29133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134   *) ac_try_echo=$ac_try;;
29135 esac
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137   (eval "$ac_try") 2>&5
29138   ac_status=$?
29139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140   (exit $ac_status); }; } &&
29141          { ac_try='test -s conftest.$ac_objext'
29142   { (case "(($ac_try" in
29143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29144   *) ac_try_echo=$ac_try;;
29145 esac
29146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29147   (eval "$ac_try") 2>&5
29148   ac_status=$?
29149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150   (exit $ac_status); }; }; then
29151    ac_cv_have_intmax_t="yes"
29152 else
29153   echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29155
29156          ac_cv_have_intmax_t="no"
29157
29158 fi
29159
29160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29161
29162
29163 fi
29164
29165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29166
29167
29168 fi
29169 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29170 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29171 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29172    cat >>confdefs.h <<\_ACEOF
29173 #define HAVE_INTMAX_T 1
29174 _ACEOF
29175
29176    have_intmax_t=1
29177 fi
29178
29179
29180 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29181 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29182 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29183   echo $ECHO_N "(cached) $ECHO_C" >&6
29184 else
29185
29186    cat >conftest.$ac_ext <<_ACEOF
29187 /* confdefs.h.  */
29188 _ACEOF
29189 cat confdefs.h >>conftest.$ac_ext
29190 cat >>conftest.$ac_ext <<_ACEOF
29191 /* end confdefs.h.  */
29192  #include <sys/types.h>
29193 int
29194 main ()
29195 {
29196  u_intmax_t a; a = 1;
29197   ;
29198   return 0;
29199 }
29200 _ACEOF
29201 rm -f conftest.$ac_objext
29202 if { (ac_try="$ac_compile"
29203 case "(($ac_try" in
29204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205   *) ac_try_echo=$ac_try;;
29206 esac
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208   (eval "$ac_compile") 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29225          { ac_try='test -s conftest.$ac_objext'
29226   { (case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_try") 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; }; then
29235    ac_cv_have_u_intmax_t="yes"
29236 else
29237   echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29239
29240
29241          cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247  #include <stdint.h>
29248 int
29249 main ()
29250 {
29251  u_intmax_t a; a = 1;
29252   ;
29253   return 0;
29254 }
29255 _ACEOF
29256 rm -f conftest.$ac_objext
29257 if { (ac_try="$ac_compile"
29258 case "(($ac_try" in
29259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260   *) ac_try_echo=$ac_try;;
29261 esac
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263   (eval "$ac_compile") 2>conftest.er1
29264   ac_status=$?
29265   grep -v '^ *+' conftest.er1 >conftest.err
29266   rm -f conftest.er1
29267   cat conftest.err >&5
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } &&
29270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29271   { (case "(($ac_try" in
29272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273   *) ac_try_echo=$ac_try;;
29274 esac
29275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276   (eval "$ac_try") 2>&5
29277   ac_status=$?
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); }; } &&
29280          { ac_try='test -s conftest.$ac_objext'
29281   { (case "(($ac_try" in
29282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283   *) ac_try_echo=$ac_try;;
29284 esac
29285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29286   (eval "$ac_try") 2>&5
29287   ac_status=$?
29288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289   (exit $ac_status); }; }; then
29290    ac_cv_have_u_intmax_t="yes"
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295          ac_cv_have_u_intmax_t="no"
29296
29297 fi
29298
29299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29300
29301
29302 fi
29303
29304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29305
29306 fi
29307 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29308 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29309 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29310    cat >>confdefs.h <<\_ACEOF
29311 #define HAVE_U_INTMAX_T 1
29312 _ACEOF
29313
29314    have_u_intmax_t=1
29315 fi
29316
29317
29318 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29319 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29320 if test "${ac_cv_have_intxx_t+set}" = set; then
29321   echo $ECHO_N "(cached) $ECHO_C" >&6
29322 else
29323
29324    cat >conftest.$ac_ext <<_ACEOF
29325 /* confdefs.h.  */
29326 _ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h.  */
29330  #include <sys/types.h>
29331 int
29332 main ()
29333 {
29334  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29335   ;
29336   return 0;
29337 }
29338 _ACEOF
29339 rm -f conftest.$ac_objext
29340 if { (ac_try="$ac_compile"
29341 case "(($ac_try" in
29342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29343   *) ac_try_echo=$ac_try;;
29344 esac
29345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346   (eval "$ac_compile") 2>conftest.er1
29347   ac_status=$?
29348   grep -v '^ *+' conftest.er1 >conftest.err
29349   rm -f conftest.er1
29350   cat conftest.err >&5
29351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352   (exit $ac_status); } &&
29353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29354   { (case "(($ac_try" in
29355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356   *) ac_try_echo=$ac_try;;
29357 esac
29358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359   (eval "$ac_try") 2>&5
29360   ac_status=$?
29361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362   (exit $ac_status); }; } &&
29363          { ac_try='test -s conftest.$ac_objext'
29364   { (case "(($ac_try" in
29365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366   *) ac_try_echo=$ac_try;;
29367 esac
29368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369   (eval "$ac_try") 2>&5
29370   ac_status=$?
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); }; }; then
29373    ac_cv_have_intxx_t="yes"
29374 else
29375   echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29377
29378          ac_cv_have_intxx_t="no"
29379
29380 fi
29381
29382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29383
29384 fi
29385 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29386 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29387 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29388    cat >>confdefs.h <<\_ACEOF
29389 #define HAVE_INTXX_T 1
29390 _ACEOF
29391
29392    have_intxx_t=1
29393 fi
29394
29395 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29396 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29397 if test "${ac_cv_have_int64_t+set}" = set; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 else
29400
29401    cat >conftest.$ac_ext <<_ACEOF
29402 /* confdefs.h.  */
29403 _ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h.  */
29407  #include <sys/types.h>
29408 int
29409 main ()
29410 {
29411  int64_t a; a = 1;
29412   ;
29413   return 0;
29414 }
29415 _ACEOF
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_compile") 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } &&
29430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431   { (case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436   (eval "$ac_try") 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; } &&
29440          { ac_try='test -s conftest.$ac_objext'
29441   { (case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446   (eval "$ac_try") 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); }; }; then
29450    ac_cv_have_int64_t="yes"
29451 else
29452   echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455          ac_cv_have_int64_t="no"
29456
29457 fi
29458
29459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29460
29461 fi
29462 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29463 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29464 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29465    cat >>confdefs.h <<\_ACEOF
29466 #define HAVE_INT64_T 1
29467 _ACEOF
29468
29469    have_int64_t=1
29470 fi
29471
29472 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29473 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29474 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477
29478    cat >conftest.$ac_ext <<_ACEOF
29479 /* confdefs.h.  */
29480 _ACEOF
29481 cat confdefs.h >>conftest.$ac_ext
29482 cat >>conftest.$ac_ext <<_ACEOF
29483 /* end confdefs.h.  */
29484  #include <sys/types.h>
29485 int
29486 main ()
29487 {
29488  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29489   ;
29490   return 0;
29491 }
29492 _ACEOF
29493 rm -f conftest.$ac_objext
29494 if { (ac_try="$ac_compile"
29495 case "(($ac_try" in
29496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497   *) ac_try_echo=$ac_try;;
29498 esac
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500   (eval "$ac_compile") 2>conftest.er1
29501   ac_status=$?
29502   grep -v '^ *+' conftest.er1 >conftest.err
29503   rm -f conftest.er1
29504   cat conftest.err >&5
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } &&
29507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508   { (case "(($ac_try" in
29509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510   *) ac_try_echo=$ac_try;;
29511 esac
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513   (eval "$ac_try") 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; } &&
29517          { ac_try='test -s conftest.$ac_objext'
29518   { (case "(($ac_try" in
29519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520   *) ac_try_echo=$ac_try;;
29521 esac
29522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523   (eval "$ac_try") 2>&5
29524   ac_status=$?
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); }; }; then
29527    ac_cv_have_u_intxx_t="yes"
29528 else
29529   echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29531
29532          ac_cv_have_u_intxx_t="no"
29533
29534 fi
29535
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537
29538 fi
29539 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29540 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29541 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29542    cat >>confdefs.h <<\_ACEOF
29543 #define HAVE_U_INTXX_T 1
29544 _ACEOF
29545
29546    have_u_intxx_t=1
29547 fi
29548
29549 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29550 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29551 if test "${ac_cv_have_u_int64_t+set}" = set; then
29552   echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554
29555    cat >conftest.$ac_ext <<_ACEOF
29556 /* confdefs.h.  */
29557 _ACEOF
29558 cat confdefs.h >>conftest.$ac_ext
29559 cat >>conftest.$ac_ext <<_ACEOF
29560 /* end confdefs.h.  */
29561  #include <sys/types.h>
29562 int
29563 main ()
29564 {
29565  u_int64_t a; a = 1;
29566   ;
29567   return 0;
29568 }
29569 _ACEOF
29570 rm -f conftest.$ac_objext
29571 if { (ac_try="$ac_compile"
29572 case "(($ac_try" in
29573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574   *) ac_try_echo=$ac_try;;
29575 esac
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577   (eval "$ac_compile") 2>conftest.er1
29578   ac_status=$?
29579   grep -v '^ *+' conftest.er1 >conftest.err
29580   rm -f conftest.er1
29581   cat conftest.err >&5
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } &&
29584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29591   ac_status=$?
29592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); }; } &&
29594          { ac_try='test -s conftest.$ac_objext'
29595   { (case "(($ac_try" in
29596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29597   *) ac_try_echo=$ac_try;;
29598 esac
29599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29600   (eval "$ac_try") 2>&5
29601   ac_status=$?
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604    ac_cv_have_u_int64_t="yes"
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609          ac_cv_have_u_int64_t="no"
29610
29611 fi
29612
29613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29614
29615 fi
29616 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29617 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29618 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29619    cat >>confdefs.h <<\_ACEOF
29620 #define HAVE_U_INT64_T 1
29621 _ACEOF
29622
29623    have_u_int64_t=1
29624 fi
29625
29626 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29627            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29628 then
29629    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29630 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29631    cat >conftest.$ac_ext <<_ACEOF
29632 /* confdefs.h.  */
29633 _ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h.  */
29637  #include <sys/bitypes.h>
29638 int
29639 main ()
29640 {
29641  int8_t a; int16_t b; int32_t c;
29642         u_int8_t e; u_int16_t f; u_int32_t g;
29643         a = b = c = e = f = g = 1;
29644   ;
29645   return 0;
29646 }
29647 _ACEOF
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652   *) ac_try_echo=$ac_try;;
29653 esac
29654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29655   (eval "$ac_compile") 2>conftest.er1
29656   ac_status=$?
29657   grep -v '^ *+' conftest.er1 >conftest.err
29658   rm -f conftest.er1
29659   cat conftest.err >&5
29660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661   (exit $ac_status); } &&
29662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29663   { (case "(($ac_try" in
29664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665   *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668   (eval "$ac_try") 2>&5
29669   ac_status=$?
29670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671   (exit $ac_status); }; } &&
29672          { ac_try='test -s conftest.$ac_objext'
29673   { (case "(($ac_try" in
29674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675   *) ac_try_echo=$ac_try;;
29676 esac
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678   (eval "$ac_try") 2>&5
29679   ac_status=$?
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); }; }; then
29682    cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_U_INTXX_T 1
29684 _ACEOF
29685
29686         cat >>confdefs.h <<\_ACEOF
29687 #define HAVE_INTXX_T 1
29688 _ACEOF
29689
29690         cat >>confdefs.h <<\_ACEOF
29691 #define HAVE_SYS_BITYPES_H 1
29692 _ACEOF
29693
29694         { echo "$as_me:$LINENO: result: yes" >&5
29695 echo "${ECHO_T}yes" >&6; }
29696 else
29697   echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29699
29700          { echo "$as_me:$LINENO: result: no" >&5
29701 echo "${ECHO_T}no" >&6; }
29702
29703 fi
29704
29705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29706 fi
29707
29708 if test -z "$have_u_intxx_t" ; then
29709    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29710 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29711 if test "${ac_cv_have_uintxx_t+set}" = set; then
29712   echo $ECHO_N "(cached) $ECHO_C" >&6
29713 else
29714
29715       cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h.  */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h.  */
29721  #include <sys/types.h>
29722 int
29723 main ()
29724 {
29725  uint8_t a; uint16_t b;
29726            uint32_t c; a = b = c = 1;
29727   ;
29728   return 0;
29729 }
29730 _ACEOF
29731 rm -f conftest.$ac_objext
29732 if { (ac_try="$ac_compile"
29733 case "(($ac_try" in
29734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735   *) ac_try_echo=$ac_try;;
29736 esac
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738   (eval "$ac_compile") 2>conftest.er1
29739   ac_status=$?
29740   grep -v '^ *+' conftest.er1 >conftest.err
29741   rm -f conftest.er1
29742   cat conftest.err >&5
29743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744   (exit $ac_status); } &&
29745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29746   { (case "(($ac_try" in
29747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29748   *) ac_try_echo=$ac_try;;
29749 esac
29750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29751   (eval "$ac_try") 2>&5
29752   ac_status=$?
29753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754   (exit $ac_status); }; } &&
29755          { ac_try='test -s conftest.$ac_objext'
29756   { (case "(($ac_try" in
29757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758   *) ac_try_echo=$ac_try;;
29759 esac
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761   (eval "$ac_try") 2>&5
29762   ac_status=$?
29763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); }; }; then
29765    ac_cv_have_uintxx_t="yes"
29766 else
29767   echo "$as_me: failed program was:" >&5
29768 sed 's/^/| /' conftest.$ac_ext >&5
29769
29770          ac_cv_have_uintxx_t="no"
29771
29772 fi
29773
29774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29775
29776 fi
29777 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29778 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29779    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29780       cat >>confdefs.h <<\_ACEOF
29781 #define HAVE_UINTXX_T 1
29782 _ACEOF
29783
29784    fi
29785 fi
29786
29787 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29788           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29789 then
29790    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29791 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29792    cat >conftest.$ac_ext <<_ACEOF
29793 /* confdefs.h.  */
29794 _ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h.  */
29798  #include <sys/bitypes.h>
29799 int
29800 main ()
29801 {
29802  int64_t a; u_int64_t b;
29803        a = b = 1;
29804   ;
29805   return 0;
29806 }
29807 _ACEOF
29808 rm -f conftest.$ac_objext
29809 if { (ac_try="$ac_compile"
29810 case "(($ac_try" in
29811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812   *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815   (eval "$ac_compile") 2>conftest.er1
29816   ac_status=$?
29817   grep -v '^ *+' conftest.er1 >conftest.err
29818   rm -f conftest.er1
29819   cat conftest.err >&5
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); } &&
29822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29823   { (case "(($ac_try" in
29824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825   *) ac_try_echo=$ac_try;;
29826 esac
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828   (eval "$ac_try") 2>&5
29829   ac_status=$?
29830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831   (exit $ac_status); }; } &&
29832          { ac_try='test -s conftest.$ac_objext'
29833   { (case "(($ac_try" in
29834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835   *) ac_try_echo=$ac_try;;
29836 esac
29837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838   (eval "$ac_try") 2>&5
29839   ac_status=$?
29840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841   (exit $ac_status); }; }; then
29842    cat >>confdefs.h <<\_ACEOF
29843 #define HAVE_U_INT64_T 1
29844 _ACEOF
29845
29846        cat >>confdefs.h <<\_ACEOF
29847 #define HAVE_INT64_T 1
29848 _ACEOF
29849
29850        { echo "$as_me:$LINENO: result: yes" >&5
29851 echo "${ECHO_T}yes" >&6; }
29852 else
29853   echo "$as_me: failed program was:" >&5
29854 sed 's/^/| /' conftest.$ac_ext >&5
29855
29856          { echo "$as_me:$LINENO: result: no" >&5
29857 echo "${ECHO_T}no" >&6; }
29858
29859 fi
29860
29861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29862 fi
29863
29864 if (test -z "$have_uintxx_t" && \
29865           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29866 then
29867    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29868 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29869    cat >conftest.$ac_ext <<_ACEOF
29870 /* confdefs.h.  */
29871 _ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h.  */
29875  #include <sys/bitypes.h>
29876 int
29877 main ()
29878 {
29879  uint8_t a; uint16_t b;
29880           uint32_t c; a = b = c = 1;
29881   ;
29882   return 0;
29883 }
29884 _ACEOF
29885 rm -f conftest.$ac_objext
29886 if { (ac_try="$ac_compile"
29887 case "(($ac_try" in
29888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889   *) ac_try_echo=$ac_try;;
29890 esac
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892   (eval "$ac_compile") 2>conftest.er1
29893   ac_status=$?
29894   grep -v '^ *+' conftest.er1 >conftest.err
29895   rm -f conftest.er1
29896   cat conftest.err >&5
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); } &&
29899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29900   { (case "(($ac_try" in
29901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902   *) ac_try_echo=$ac_try;;
29903 esac
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905   (eval "$ac_try") 2>&5
29906   ac_status=$?
29907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908   (exit $ac_status); }; } &&
29909          { ac_try='test -s conftest.$ac_objext'
29910   { (case "(($ac_try" in
29911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912   *) ac_try_echo=$ac_try;;
29913 esac
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915   (eval "$ac_try") 2>&5
29916   ac_status=$?
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); }; }; then
29919    cat >>confdefs.h <<\_ACEOF
29920 #define HAVE_UINTXX_T 1
29921 _ACEOF
29922
29923        { echo "$as_me:$LINENO: result: yes" >&5
29924 echo "${ECHO_T}yes" >&6; }
29925 else
29926   echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29928
29929          { echo "$as_me:$LINENO: result: no" >&5
29930 echo "${ECHO_T}no" >&6; }
29931
29932 fi
29933
29934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29935
29936 fi
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954 for ac_func in \
29955         fork \
29956         getcwd \
29957         gethostname \
29958         getpid \
29959         gettimeofday \
29960         setpgid \
29961         setpgrp \
29962         setsid \
29963         signal \
29964         strerror \
29965         strncmp \
29966         strncpy \
29967         vfprintf \
29968
29969 do
29970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29974   echo $ECHO_N "(cached) $ECHO_C" >&6
29975 else
29976   cat >conftest.$ac_ext <<_ACEOF
29977 /* confdefs.h.  */
29978 _ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h.  */
29982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29984 #define $ac_func innocuous_$ac_func
29985
29986 /* System header to define __stub macros and hopefully few prototypes,
29987     which can conflict with char $ac_func (); below.
29988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29989     <limits.h> exists even on freestanding compilers.  */
29990
29991 #ifdef __STDC__
29992 # include <limits.h>
29993 #else
29994 # include <assert.h>
29995 #endif
29996
29997 #undef $ac_func
29998
29999 /* Override any GCC internal prototype to avoid an error.
30000    Use char because int might match the return type of a GCC
30001    builtin and then its argument prototype would still apply.  */
30002 #ifdef __cplusplus
30003 extern "C"
30004 #endif
30005 char $ac_func ();
30006 /* The GNU C library defines this for functions which it implements
30007     to always fail with ENOSYS.  Some functions are actually named
30008     something starting with __ and the normal name is an alias.  */
30009 #if defined __stub_$ac_func || defined __stub___$ac_func
30010 choke me
30011 #endif
30012
30013 int
30014 main ()
30015 {
30016 return $ac_func ();
30017   ;
30018   return 0;
30019 }
30020 _ACEOF
30021 rm -f conftest.$ac_objext conftest$ac_exeext
30022 if { (ac_try="$ac_link"
30023 case "(($ac_try" in
30024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025   *) ac_try_echo=$ac_try;;
30026 esac
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028   (eval "$ac_link") 2>conftest.er1
30029   ac_status=$?
30030   grep -v '^ *+' conftest.er1 >conftest.err
30031   rm -f conftest.er1
30032   cat conftest.err >&5
30033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034   (exit $ac_status); } &&
30035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30036   { (case "(($ac_try" in
30037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038   *) ac_try_echo=$ac_try;;
30039 esac
30040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041   (eval "$ac_try") 2>&5
30042   ac_status=$?
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); }; } &&
30045          { ac_try='test -s conftest$ac_exeext'
30046   { (case "(($ac_try" in
30047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048   *) ac_try_echo=$ac_try;;
30049 esac
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051   (eval "$ac_try") 2>&5
30052   ac_status=$?
30053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054   (exit $ac_status); }; }; then
30055   eval "$as_ac_var=yes"
30056 else
30057   echo "$as_me: failed program was:" >&5
30058 sed 's/^/| /' conftest.$ac_ext >&5
30059
30060         eval "$as_ac_var=no"
30061 fi
30062
30063 rm -f core conftest.err conftest.$ac_objext \
30064       conftest$ac_exeext conftest.$ac_ext
30065 fi
30066 ac_res=`eval echo '${'$as_ac_var'}'`
30067                { echo "$as_me:$LINENO: result: $ac_res" >&5
30068 echo "${ECHO_T}$ac_res" >&6; }
30069 if test `eval echo '${'$as_ac_var'}'` = yes; then
30070   cat >>confdefs.h <<_ACEOF
30071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30072 _ACEOF
30073
30074 else
30075   echo 'configure: cannot find needed function.'; exit 1
30076
30077 fi
30078 done
30079
30080
30081
30082 for ac_func in fchdir
30083 do
30084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30088   echo $ECHO_N "(cached) $ECHO_C" >&6
30089 else
30090   cat >conftest.$ac_ext <<_ACEOF
30091 /* confdefs.h.  */
30092 _ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h.  */
30096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30098 #define $ac_func innocuous_$ac_func
30099
30100 /* System header to define __stub macros and hopefully few prototypes,
30101     which can conflict with char $ac_func (); below.
30102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30103     <limits.h> exists even on freestanding compilers.  */
30104
30105 #ifdef __STDC__
30106 # include <limits.h>
30107 #else
30108 # include <assert.h>
30109 #endif
30110
30111 #undef $ac_func
30112
30113 /* Override any GCC internal prototype to avoid an error.
30114    Use char because int might match the return type of a GCC
30115    builtin and then its argument prototype would still apply.  */
30116 #ifdef __cplusplus
30117 extern "C"
30118 #endif
30119 char $ac_func ();
30120 /* The GNU C library defines this for functions which it implements
30121     to always fail with ENOSYS.  Some functions are actually named
30122     something starting with __ and the normal name is an alias.  */
30123 #if defined __stub_$ac_func || defined __stub___$ac_func
30124 choke me
30125 #endif
30126
30127 int
30128 main ()
30129 {
30130 return $ac_func ();
30131   ;
30132   return 0;
30133 }
30134 _ACEOF
30135 rm -f conftest.$ac_objext conftest$ac_exeext
30136 if { (ac_try="$ac_link"
30137 case "(($ac_try" in
30138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139   *) ac_try_echo=$ac_try;;
30140 esac
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142   (eval "$ac_link") 2>conftest.er1
30143   ac_status=$?
30144   grep -v '^ *+' conftest.er1 >conftest.err
30145   rm -f conftest.er1
30146   cat conftest.err >&5
30147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); } &&
30149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30150   { (case "(($ac_try" in
30151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152   *) ac_try_echo=$ac_try;;
30153 esac
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155   (eval "$ac_try") 2>&5
30156   ac_status=$?
30157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158   (exit $ac_status); }; } &&
30159          { ac_try='test -s conftest$ac_exeext'
30160   { (case "(($ac_try" in
30161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162   *) ac_try_echo=$ac_try;;
30163 esac
30164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165   (eval "$ac_try") 2>&5
30166   ac_status=$?
30167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168   (exit $ac_status); }; }; then
30169   eval "$as_ac_var=yes"
30170 else
30171   echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30173
30174         eval "$as_ac_var=no"
30175 fi
30176
30177 rm -f core conftest.err conftest.$ac_objext \
30178       conftest$ac_exeext conftest.$ac_ext
30179 fi
30180 ac_res=`eval echo '${'$as_ac_var'}'`
30181                { echo "$as_me:$LINENO: result: $ac_res" >&5
30182 echo "${ECHO_T}$ac_res" >&6; }
30183 if test `eval echo '${'$as_ac_var'}'` = yes; then
30184   cat >>confdefs.h <<_ACEOF
30185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30186 _ACEOF
30187  cat >>confdefs.h <<\_ACEOF
30188 #define HAVE_FCHDIR 1
30189 _ACEOF
30190
30191 fi
30192 done
30193
30194
30195 for ac_func in strtoll
30196 do
30197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30201   echo $ECHO_N "(cached) $ECHO_C" >&6
30202 else
30203   cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h.  */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h.  */
30209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30211 #define $ac_func innocuous_$ac_func
30212
30213 /* System header to define __stub macros and hopefully few prototypes,
30214     which can conflict with char $ac_func (); below.
30215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216     <limits.h> exists even on freestanding compilers.  */
30217
30218 #ifdef __STDC__
30219 # include <limits.h>
30220 #else
30221 # include <assert.h>
30222 #endif
30223
30224 #undef $ac_func
30225
30226 /* Override any GCC internal prototype to avoid an error.
30227    Use char because int might match the return type of a GCC
30228    builtin and then its argument prototype would still apply.  */
30229 #ifdef __cplusplus
30230 extern "C"
30231 #endif
30232 char $ac_func ();
30233 /* The GNU C library defines this for functions which it implements
30234     to always fail with ENOSYS.  Some functions are actually named
30235     something starting with __ and the normal name is an alias.  */
30236 #if defined __stub_$ac_func || defined __stub___$ac_func
30237 choke me
30238 #endif
30239
30240 int
30241 main ()
30242 {
30243 return $ac_func ();
30244   ;
30245   return 0;
30246 }
30247 _ACEOF
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252   *) ac_try_echo=$ac_try;;
30253 esac
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255   (eval "$ac_link") 2>conftest.er1
30256   ac_status=$?
30257   grep -v '^ *+' conftest.er1 >conftest.err
30258   rm -f conftest.er1
30259   cat conftest.err >&5
30260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261   (exit $ac_status); } &&
30262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30263   { (case "(($ac_try" in
30264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265   *) ac_try_echo=$ac_try;;
30266 esac
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268   (eval "$ac_try") 2>&5
30269   ac_status=$?
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); }; } &&
30272          { ac_try='test -s conftest$ac_exeext'
30273   { (case "(($ac_try" in
30274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275   *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278   (eval "$ac_try") 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; }; then
30282   eval "$as_ac_var=yes"
30283 else
30284   echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30286
30287         eval "$as_ac_var=no"
30288 fi
30289
30290 rm -f core conftest.err conftest.$ac_objext \
30291       conftest$ac_exeext conftest.$ac_ext
30292 fi
30293 ac_res=`eval echo '${'$as_ac_var'}'`
30294                { echo "$as_me:$LINENO: result: $ac_res" >&5
30295 echo "${ECHO_T}$ac_res" >&6; }
30296 if test `eval echo '${'$as_ac_var'}'` = yes; then
30297   cat >>confdefs.h <<_ACEOF
30298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30299 _ACEOF
30300  cat >>confdefs.h <<\_ACEOF
30301 #define HAVE_STRTOLL 1
30302 _ACEOF
30303
30304 fi
30305 done
30306
30307
30308 for ac_func in posix_fadvise
30309 do
30310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316   cat >conftest.$ac_ext <<_ACEOF
30317 /* confdefs.h.  */
30318 _ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h.  */
30322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30324 #define $ac_func innocuous_$ac_func
30325
30326 /* System header to define __stub macros and hopefully few prototypes,
30327     which can conflict with char $ac_func (); below.
30328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30329     <limits.h> exists even on freestanding compilers.  */
30330
30331 #ifdef __STDC__
30332 # include <limits.h>
30333 #else
30334 # include <assert.h>
30335 #endif
30336
30337 #undef $ac_func
30338
30339 /* Override any GCC internal prototype to avoid an error.
30340    Use char because int might match the return type of a GCC
30341    builtin and then its argument prototype would still apply.  */
30342 #ifdef __cplusplus
30343 extern "C"
30344 #endif
30345 char $ac_func ();
30346 /* The GNU C library defines this for functions which it implements
30347     to always fail with ENOSYS.  Some functions are actually named
30348     something starting with __ and the normal name is an alias.  */
30349 #if defined __stub_$ac_func || defined __stub___$ac_func
30350 choke me
30351 #endif
30352
30353 int
30354 main ()
30355 {
30356 return $ac_func ();
30357   ;
30358   return 0;
30359 }
30360 _ACEOF
30361 rm -f conftest.$ac_objext conftest$ac_exeext
30362 if { (ac_try="$ac_link"
30363 case "(($ac_try" in
30364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365   *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368   (eval "$ac_link") 2>conftest.er1
30369   ac_status=$?
30370   grep -v '^ *+' conftest.er1 >conftest.err
30371   rm -f conftest.er1
30372   cat conftest.err >&5
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); } &&
30375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30376   { (case "(($ac_try" in
30377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30378   *) ac_try_echo=$ac_try;;
30379 esac
30380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30381   (eval "$ac_try") 2>&5
30382   ac_status=$?
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); }; } &&
30385          { ac_try='test -s conftest$ac_exeext'
30386   { (case "(($ac_try" in
30387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388   *) ac_try_echo=$ac_try;;
30389 esac
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391   (eval "$ac_try") 2>&5
30392   ac_status=$?
30393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394   (exit $ac_status); }; }; then
30395   eval "$as_ac_var=yes"
30396 else
30397   echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30399
30400         eval "$as_ac_var=no"
30401 fi
30402
30403 rm -f core conftest.err conftest.$ac_objext \
30404       conftest$ac_exeext conftest.$ac_ext
30405 fi
30406 ac_res=`eval echo '${'$as_ac_var'}'`
30407                { echo "$as_me:$LINENO: result: $ac_res" >&5
30408 echo "${ECHO_T}$ac_res" >&6; }
30409 if test `eval echo '${'$as_ac_var'}'` = yes; then
30410   cat >>confdefs.h <<_ACEOF
30411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30412 _ACEOF
30413
30414 fi
30415 done
30416
30417
30418 for ac_func in fdatasync
30419 do
30420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30424   echo $ECHO_N "(cached) $ECHO_C" >&6
30425 else
30426   cat >conftest.$ac_ext <<_ACEOF
30427 /* confdefs.h.  */
30428 _ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h.  */
30432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30434 #define $ac_func innocuous_$ac_func
30435
30436 /* System header to define __stub macros and hopefully few prototypes,
30437     which can conflict with char $ac_func (); below.
30438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30439     <limits.h> exists even on freestanding compilers.  */
30440
30441 #ifdef __STDC__
30442 # include <limits.h>
30443 #else
30444 # include <assert.h>
30445 #endif
30446
30447 #undef $ac_func
30448
30449 /* Override any GCC internal prototype to avoid an error.
30450    Use char because int might match the return type of a GCC
30451    builtin and then its argument prototype would still apply.  */
30452 #ifdef __cplusplus
30453 extern "C"
30454 #endif
30455 char $ac_func ();
30456 /* The GNU C library defines this for functions which it implements
30457     to always fail with ENOSYS.  Some functions are actually named
30458     something starting with __ and the normal name is an alias.  */
30459 #if defined __stub_$ac_func || defined __stub___$ac_func
30460 choke me
30461 #endif
30462
30463 int
30464 main ()
30465 {
30466 return $ac_func ();
30467   ;
30468   return 0;
30469 }
30470 _ACEOF
30471 rm -f conftest.$ac_objext conftest$ac_exeext
30472 if { (ac_try="$ac_link"
30473 case "(($ac_try" in
30474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475   *) ac_try_echo=$ac_try;;
30476 esac
30477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30478   (eval "$ac_link") 2>conftest.er1
30479   ac_status=$?
30480   grep -v '^ *+' conftest.er1 >conftest.err
30481   rm -f conftest.er1
30482   cat conftest.err >&5
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); } &&
30485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30486   { (case "(($ac_try" in
30487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488   *) ac_try_echo=$ac_try;;
30489 esac
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491   (eval "$ac_try") 2>&5
30492   ac_status=$?
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); }; } &&
30495          { ac_try='test -s conftest$ac_exeext'
30496   { (case "(($ac_try" in
30497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498   *) ac_try_echo=$ac_try;;
30499 esac
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501   (eval "$ac_try") 2>&5
30502   ac_status=$?
30503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504   (exit $ac_status); }; }; then
30505   eval "$as_ac_var=yes"
30506 else
30507   echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30509
30510         eval "$as_ac_var=no"
30511 fi
30512
30513 rm -f core conftest.err conftest.$ac_objext \
30514       conftest$ac_exeext conftest.$ac_ext
30515 fi
30516 ac_res=`eval echo '${'$as_ac_var'}'`
30517                { echo "$as_me:$LINENO: result: $ac_res" >&5
30518 echo "${ECHO_T}$ac_res" >&6; }
30519 if test `eval echo '${'$as_ac_var'}'` = yes; then
30520   cat >>confdefs.h <<_ACEOF
30521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30522 _ACEOF
30523
30524 fi
30525 done
30526
30527
30528
30529 for ac_func in chflags
30530 do
30531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30535   echo $ECHO_N "(cached) $ECHO_C" >&6
30536 else
30537   cat >conftest.$ac_ext <<_ACEOF
30538 /* confdefs.h.  */
30539 _ACEOF
30540 cat confdefs.h >>conftest.$ac_ext
30541 cat >>conftest.$ac_ext <<_ACEOF
30542 /* end confdefs.h.  */
30543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30545 #define $ac_func innocuous_$ac_func
30546
30547 /* System header to define __stub macros and hopefully few prototypes,
30548     which can conflict with char $ac_func (); below.
30549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30550     <limits.h> exists even on freestanding compilers.  */
30551
30552 #ifdef __STDC__
30553 # include <limits.h>
30554 #else
30555 # include <assert.h>
30556 #endif
30557
30558 #undef $ac_func
30559
30560 /* Override any GCC internal prototype to avoid an error.
30561    Use char because int might match the return type of a GCC
30562    builtin and then its argument prototype would still apply.  */
30563 #ifdef __cplusplus
30564 extern "C"
30565 #endif
30566 char $ac_func ();
30567 /* The GNU C library defines this for functions which it implements
30568     to always fail with ENOSYS.  Some functions are actually named
30569     something starting with __ and the normal name is an alias.  */
30570 #if defined __stub_$ac_func || defined __stub___$ac_func
30571 choke me
30572 #endif
30573
30574 int
30575 main ()
30576 {
30577 return $ac_func ();
30578   ;
30579   return 0;
30580 }
30581 _ACEOF
30582 rm -f conftest.$ac_objext conftest$ac_exeext
30583 if { (ac_try="$ac_link"
30584 case "(($ac_try" in
30585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586   *) ac_try_echo=$ac_try;;
30587 esac
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589   (eval "$ac_link") 2>conftest.er1
30590   ac_status=$?
30591   grep -v '^ *+' conftest.er1 >conftest.err
30592   rm -f conftest.er1
30593   cat conftest.err >&5
30594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595   (exit $ac_status); } &&
30596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30597   { (case "(($ac_try" in
30598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599   *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602   (eval "$ac_try") 2>&5
30603   ac_status=$?
30604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605   (exit $ac_status); }; } &&
30606          { ac_try='test -s conftest$ac_exeext'
30607   { (case "(($ac_try" in
30608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609   *) ac_try_echo=$ac_try;;
30610 esac
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612   (eval "$ac_try") 2>&5
30613   ac_status=$?
30614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615   (exit $ac_status); }; }; then
30616   eval "$as_ac_var=yes"
30617 else
30618   echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30620
30621         eval "$as_ac_var=no"
30622 fi
30623
30624 rm -f core conftest.err conftest.$ac_objext \
30625       conftest$ac_exeext conftest.$ac_ext
30626 fi
30627 ac_res=`eval echo '${'$as_ac_var'}'`
30628                { echo "$as_me:$LINENO: result: $ac_res" >&5
30629 echo "${ECHO_T}$ac_res" >&6; }
30630 if test `eval echo '${'$as_ac_var'}'` = yes; then
30631   cat >>confdefs.h <<_ACEOF
30632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30633 _ACEOF
30634
30635 fi
30636 done
30637
30638
30639
30640
30641
30642
30643 for ac_func in snprintf vsnprintf gethostid fseeko
30644 do
30645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30649   echo $ECHO_N "(cached) $ECHO_C" >&6
30650 else
30651   cat >conftest.$ac_ext <<_ACEOF
30652 /* confdefs.h.  */
30653 _ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h.  */
30657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30659 #define $ac_func innocuous_$ac_func
30660
30661 /* System header to define __stub macros and hopefully few prototypes,
30662     which can conflict with char $ac_func (); below.
30663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30664     <limits.h> exists even on freestanding compilers.  */
30665
30666 #ifdef __STDC__
30667 # include <limits.h>
30668 #else
30669 # include <assert.h>
30670 #endif
30671
30672 #undef $ac_func
30673
30674 /* Override any GCC internal prototype to avoid an error.
30675    Use char because int might match the return type of a GCC
30676    builtin and then its argument prototype would still apply.  */
30677 #ifdef __cplusplus
30678 extern "C"
30679 #endif
30680 char $ac_func ();
30681 /* The GNU C library defines this for functions which it implements
30682     to always fail with ENOSYS.  Some functions are actually named
30683     something starting with __ and the normal name is an alias.  */
30684 #if defined __stub_$ac_func || defined __stub___$ac_func
30685 choke me
30686 #endif
30687
30688 int
30689 main ()
30690 {
30691 return $ac_func ();
30692   ;
30693   return 0;
30694 }
30695 _ACEOF
30696 rm -f conftest.$ac_objext conftest$ac_exeext
30697 if { (ac_try="$ac_link"
30698 case "(($ac_try" in
30699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700   *) ac_try_echo=$ac_try;;
30701 esac
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703   (eval "$ac_link") 2>conftest.er1
30704   ac_status=$?
30705   grep -v '^ *+' conftest.er1 >conftest.err
30706   rm -f conftest.er1
30707   cat conftest.err >&5
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); } &&
30710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30711   { (case "(($ac_try" in
30712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713   *) ac_try_echo=$ac_try;;
30714 esac
30715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716   (eval "$ac_try") 2>&5
30717   ac_status=$?
30718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719   (exit $ac_status); }; } &&
30720          { ac_try='test -s conftest$ac_exeext'
30721   { (case "(($ac_try" in
30722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30723   *) ac_try_echo=$ac_try;;
30724 esac
30725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30726   (eval "$ac_try") 2>&5
30727   ac_status=$?
30728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729   (exit $ac_status); }; }; then
30730   eval "$as_ac_var=yes"
30731 else
30732   echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30734
30735         eval "$as_ac_var=no"
30736 fi
30737
30738 rm -f core conftest.err conftest.$ac_objext \
30739       conftest$ac_exeext conftest.$ac_ext
30740 fi
30741 ac_res=`eval echo '${'$as_ac_var'}'`
30742                { echo "$as_me:$LINENO: result: $ac_res" >&5
30743 echo "${ECHO_T}$ac_res" >&6; }
30744 if test `eval echo '${'$as_ac_var'}'` = yes; then
30745   cat >>confdefs.h <<_ACEOF
30746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30747 _ACEOF
30748
30749 fi
30750 done
30751
30752
30753
30754
30755
30756
30757 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30758 do
30759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30763   echo $ECHO_N "(cached) $ECHO_C" >&6
30764 else
30765   cat >conftest.$ac_ext <<_ACEOF
30766 /* confdefs.h.  */
30767 _ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h.  */
30771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30773 #define $ac_func innocuous_$ac_func
30774
30775 /* System header to define __stub macros and hopefully few prototypes,
30776     which can conflict with char $ac_func (); below.
30777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30778     <limits.h> exists even on freestanding compilers.  */
30779
30780 #ifdef __STDC__
30781 # include <limits.h>
30782 #else
30783 # include <assert.h>
30784 #endif
30785
30786 #undef $ac_func
30787
30788 /* Override any GCC internal prototype to avoid an error.
30789    Use char because int might match the return type of a GCC
30790    builtin and then its argument prototype would still apply.  */
30791 #ifdef __cplusplus
30792 extern "C"
30793 #endif
30794 char $ac_func ();
30795 /* The GNU C library defines this for functions which it implements
30796     to always fail with ENOSYS.  Some functions are actually named
30797     something starting with __ and the normal name is an alias.  */
30798 #if defined __stub_$ac_func || defined __stub___$ac_func
30799 choke me
30800 #endif
30801
30802 int
30803 main ()
30804 {
30805 return $ac_func ();
30806   ;
30807   return 0;
30808 }
30809 _ACEOF
30810 rm -f conftest.$ac_objext conftest$ac_exeext
30811 if { (ac_try="$ac_link"
30812 case "(($ac_try" in
30813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30814   *) ac_try_echo=$ac_try;;
30815 esac
30816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30817   (eval "$ac_link") 2>conftest.er1
30818   ac_status=$?
30819   grep -v '^ *+' conftest.er1 >conftest.err
30820   rm -f conftest.er1
30821   cat conftest.err >&5
30822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823   (exit $ac_status); } &&
30824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30825   { (case "(($ac_try" in
30826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827   *) ac_try_echo=$ac_try;;
30828 esac
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830   (eval "$ac_try") 2>&5
30831   ac_status=$?
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); }; } &&
30834          { ac_try='test -s conftest$ac_exeext'
30835   { (case "(($ac_try" in
30836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837   *) ac_try_echo=$ac_try;;
30838 esac
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840   (eval "$ac_try") 2>&5
30841   ac_status=$?
30842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843   (exit $ac_status); }; }; then
30844   eval "$as_ac_var=yes"
30845 else
30846   echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30848
30849         eval "$as_ac_var=no"
30850 fi
30851
30852 rm -f core conftest.err conftest.$ac_objext \
30853       conftest$ac_exeext conftest.$ac_ext
30854 fi
30855 ac_res=`eval echo '${'$as_ac_var'}'`
30856                { echo "$as_me:$LINENO: result: $ac_res" >&5
30857 echo "${ECHO_T}$ac_res" >&6; }
30858 if test `eval echo '${'$as_ac_var'}'` = yes; then
30859   cat >>confdefs.h <<_ACEOF
30860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30861 _ACEOF
30862
30863 fi
30864 done
30865
30866
30867 # If resolver functions are not in libc check for -lnsl or -lresolv.
30868 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30869 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30870 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30871   echo $ECHO_N "(cached) $ECHO_C" >&6
30872 else
30873   cat >conftest.$ac_ext <<_ACEOF
30874 /* confdefs.h.  */
30875 _ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h.  */
30879 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30881 #define gethostbyname_r innocuous_gethostbyname_r
30882
30883 /* System header to define __stub macros and hopefully few prototypes,
30884     which can conflict with char gethostbyname_r (); below.
30885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30886     <limits.h> exists even on freestanding compilers.  */
30887
30888 #ifdef __STDC__
30889 # include <limits.h>
30890 #else
30891 # include <assert.h>
30892 #endif
30893
30894 #undef gethostbyname_r
30895
30896 /* Override any GCC internal prototype to avoid an error.
30897    Use char because int might match the return type of a GCC
30898    builtin and then its argument prototype would still apply.  */
30899 #ifdef __cplusplus
30900 extern "C"
30901 #endif
30902 char gethostbyname_r ();
30903 /* The GNU C library defines this for functions which it implements
30904     to always fail with ENOSYS.  Some functions are actually named
30905     something starting with __ and the normal name is an alias.  */
30906 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30907 choke me
30908 #endif
30909
30910 int
30911 main ()
30912 {
30913 return gethostbyname_r ();
30914   ;
30915   return 0;
30916 }
30917 _ACEOF
30918 rm -f conftest.$ac_objext conftest$ac_exeext
30919 if { (ac_try="$ac_link"
30920 case "(($ac_try" in
30921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30922   *) ac_try_echo=$ac_try;;
30923 esac
30924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30925   (eval "$ac_link") 2>conftest.er1
30926   ac_status=$?
30927   grep -v '^ *+' conftest.er1 >conftest.err
30928   rm -f conftest.er1
30929   cat conftest.err >&5
30930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931   (exit $ac_status); } &&
30932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30933   { (case "(($ac_try" in
30934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935   *) ac_try_echo=$ac_try;;
30936 esac
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938   (eval "$ac_try") 2>&5
30939   ac_status=$?
30940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941   (exit $ac_status); }; } &&
30942          { ac_try='test -s conftest$ac_exeext'
30943   { (case "(($ac_try" in
30944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30945   *) ac_try_echo=$ac_try;;
30946 esac
30947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30948   (eval "$ac_try") 2>&5
30949   ac_status=$?
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); }; }; then
30952   ac_cv_func_gethostbyname_r=yes
30953 else
30954   echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30956
30957         ac_cv_func_gethostbyname_r=no
30958 fi
30959
30960 rm -f core conftest.err conftest.$ac_objext \
30961       conftest$ac_exeext conftest.$ac_ext
30962 fi
30963 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30964 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30965 if test $ac_cv_func_gethostbyname_r = yes; then
30966   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30967 echo "${ECHO_T}using libc's resolver" >&6; }
30968 else
30969
30970 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30971 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30972 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30973   echo $ECHO_N "(cached) $ECHO_C" >&6
30974 else
30975   ac_check_lib_save_LIBS=$LIBS
30976 LIBS="-lnsl  $LIBS"
30977 cat >conftest.$ac_ext <<_ACEOF
30978 /* confdefs.h.  */
30979 _ACEOF
30980 cat confdefs.h >>conftest.$ac_ext
30981 cat >>conftest.$ac_ext <<_ACEOF
30982 /* end confdefs.h.  */
30983
30984 /* Override any GCC internal prototype to avoid an error.
30985    Use char because int might match the return type of a GCC
30986    builtin and then its argument prototype would still apply.  */
30987 #ifdef __cplusplus
30988 extern "C"
30989 #endif
30990 char gethostbyname_r ();
30991 int
30992 main ()
30993 {
30994 return gethostbyname_r ();
30995   ;
30996   return 0;
30997 }
30998 _ACEOF
30999 rm -f conftest.$ac_objext conftest$ac_exeext
31000 if { (ac_try="$ac_link"
31001 case "(($ac_try" in
31002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003   *) ac_try_echo=$ac_try;;
31004 esac
31005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006   (eval "$ac_link") 2>conftest.er1
31007   ac_status=$?
31008   grep -v '^ *+' conftest.er1 >conftest.err
31009   rm -f conftest.er1
31010   cat conftest.err >&5
31011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012   (exit $ac_status); } &&
31013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31014   { (case "(($ac_try" in
31015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016   *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019   (eval "$ac_try") 2>&5
31020   ac_status=$?
31021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022   (exit $ac_status); }; } &&
31023          { ac_try='test -s conftest$ac_exeext'
31024   { (case "(($ac_try" in
31025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026   *) ac_try_echo=$ac_try;;
31027 esac
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029   (eval "$ac_try") 2>&5
31030   ac_status=$?
31031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032   (exit $ac_status); }; }; then
31033   ac_cv_lib_nsl_gethostbyname_r=yes
31034 else
31035   echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31037
31038         ac_cv_lib_nsl_gethostbyname_r=no
31039 fi
31040
31041 rm -f core conftest.err conftest.$ac_objext \
31042       conftest$ac_exeext conftest.$ac_ext
31043 LIBS=$ac_check_lib_save_LIBS
31044 fi
31045 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
31046 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
31047 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
31048   cat >>confdefs.h <<_ACEOF
31049 #define HAVE_LIBNSL 1
31050 _ACEOF
31051
31052   LIBS="-lnsl $LIBS"
31053
31054 fi
31055
31056
31057 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
31058 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
31059 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
31060   echo $ECHO_N "(cached) $ECHO_C" >&6
31061 else
31062   ac_check_lib_save_LIBS=$LIBS
31063 LIBS="-lresolv  $LIBS"
31064 cat >conftest.$ac_ext <<_ACEOF
31065 /* confdefs.h.  */
31066 _ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h.  */
31070
31071 /* Override any GCC internal prototype to avoid an error.
31072    Use char because int might match the return type of a GCC
31073    builtin and then its argument prototype would still apply.  */
31074 #ifdef __cplusplus
31075 extern "C"
31076 #endif
31077 char gethostbyname_r ();
31078 int
31079 main ()
31080 {
31081 return gethostbyname_r ();
31082   ;
31083   return 0;
31084 }
31085 _ACEOF
31086 rm -f conftest.$ac_objext conftest$ac_exeext
31087 if { (ac_try="$ac_link"
31088 case "(($ac_try" in
31089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090   *) ac_try_echo=$ac_try;;
31091 esac
31092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093   (eval "$ac_link") 2>conftest.er1
31094   ac_status=$?
31095   grep -v '^ *+' conftest.er1 >conftest.err
31096   rm -f conftest.er1
31097   cat conftest.err >&5
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); } &&
31100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31101   { (case "(($ac_try" in
31102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103   *) ac_try_echo=$ac_try;;
31104 esac
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106   (eval "$ac_try") 2>&5
31107   ac_status=$?
31108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109   (exit $ac_status); }; } &&
31110          { ac_try='test -s conftest$ac_exeext'
31111   { (case "(($ac_try" in
31112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113   *) ac_try_echo=$ac_try;;
31114 esac
31115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116   (eval "$ac_try") 2>&5
31117   ac_status=$?
31118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119   (exit $ac_status); }; }; then
31120   ac_cv_lib_resolv_gethostbyname_r=yes
31121 else
31122   echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31124
31125         ac_cv_lib_resolv_gethostbyname_r=no
31126 fi
31127
31128 rm -f core conftest.err conftest.$ac_objext \
31129       conftest$ac_exeext conftest.$ac_ext
31130 LIBS=$ac_check_lib_save_LIBS
31131 fi
31132 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31133 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31134 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31135   cat >>confdefs.h <<_ACEOF
31136 #define HAVE_LIBRESOLV 1
31137 _ACEOF
31138
31139   LIBS="-lresolv $LIBS"
31140
31141 fi
31142
31143 fi
31144
31145
31146
31147
31148
31149 for ac_func in inet_pton
31150 do
31151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31155   echo $ECHO_N "(cached) $ECHO_C" >&6
31156 else
31157   cat >conftest.$ac_ext <<_ACEOF
31158 /* confdefs.h.  */
31159 _ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h.  */
31163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31165 #define $ac_func innocuous_$ac_func
31166
31167 /* System header to define __stub macros and hopefully few prototypes,
31168     which can conflict with char $ac_func (); below.
31169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31170     <limits.h> exists even on freestanding compilers.  */
31171
31172 #ifdef __STDC__
31173 # include <limits.h>
31174 #else
31175 # include <assert.h>
31176 #endif
31177
31178 #undef $ac_func
31179
31180 /* Override any GCC internal prototype to avoid an error.
31181    Use char because int might match the return type of a GCC
31182    builtin and then its argument prototype would still apply.  */
31183 #ifdef __cplusplus
31184 extern "C"
31185 #endif
31186 char $ac_func ();
31187 /* The GNU C library defines this for functions which it implements
31188     to always fail with ENOSYS.  Some functions are actually named
31189     something starting with __ and the normal name is an alias.  */
31190 #if defined __stub_$ac_func || defined __stub___$ac_func
31191 choke me
31192 #endif
31193
31194 int
31195 main ()
31196 {
31197 return $ac_func ();
31198   ;
31199   return 0;
31200 }
31201 _ACEOF
31202 rm -f conftest.$ac_objext conftest$ac_exeext
31203 if { (ac_try="$ac_link"
31204 case "(($ac_try" in
31205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206   *) ac_try_echo=$ac_try;;
31207 esac
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209   (eval "$ac_link") 2>conftest.er1
31210   ac_status=$?
31211   grep -v '^ *+' conftest.er1 >conftest.err
31212   rm -f conftest.er1
31213   cat conftest.err >&5
31214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215   (exit $ac_status); } &&
31216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31217   { (case "(($ac_try" in
31218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219   *) ac_try_echo=$ac_try;;
31220 esac
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222   (eval "$ac_try") 2>&5
31223   ac_status=$?
31224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225   (exit $ac_status); }; } &&
31226          { ac_try='test -s conftest$ac_exeext'
31227   { (case "(($ac_try" in
31228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229   *) ac_try_echo=$ac_try;;
31230 esac
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232   (eval "$ac_try") 2>&5
31233   ac_status=$?
31234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235   (exit $ac_status); }; }; then
31236   eval "$as_ac_var=yes"
31237 else
31238   echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31240
31241         eval "$as_ac_var=no"
31242 fi
31243
31244 rm -f core conftest.err conftest.$ac_objext \
31245       conftest$ac_exeext conftest.$ac_ext
31246 fi
31247 ac_res=`eval echo '${'$as_ac_var'}'`
31248                { echo "$as_me:$LINENO: result: $ac_res" >&5
31249 echo "${ECHO_T}$ac_res" >&6; }
31250 if test `eval echo '${'$as_ac_var'}'` = yes; then
31251   cat >>confdefs.h <<_ACEOF
31252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31253 _ACEOF
31254  cat >>confdefs.h <<\_ACEOF
31255 #define HAVE_INET_PTON 1
31256 _ACEOF
31257
31258 fi
31259 done
31260
31261
31262 for ac_func in inet_ntop
31263 do
31264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31268   echo $ECHO_N "(cached) $ECHO_C" >&6
31269 else
31270   cat >conftest.$ac_ext <<_ACEOF
31271 /* confdefs.h.  */
31272 _ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h.  */
31276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31278 #define $ac_func innocuous_$ac_func
31279
31280 /* System header to define __stub macros and hopefully few prototypes,
31281     which can conflict with char $ac_func (); below.
31282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31283     <limits.h> exists even on freestanding compilers.  */
31284
31285 #ifdef __STDC__
31286 # include <limits.h>
31287 #else
31288 # include <assert.h>
31289 #endif
31290
31291 #undef $ac_func
31292
31293 /* Override any GCC internal prototype to avoid an error.
31294    Use char because int might match the return type of a GCC
31295    builtin and then its argument prototype would still apply.  */
31296 #ifdef __cplusplus
31297 extern "C"
31298 #endif
31299 char $ac_func ();
31300 /* The GNU C library defines this for functions which it implements
31301     to always fail with ENOSYS.  Some functions are actually named
31302     something starting with __ and the normal name is an alias.  */
31303 #if defined __stub_$ac_func || defined __stub___$ac_func
31304 choke me
31305 #endif
31306
31307 int
31308 main ()
31309 {
31310 return $ac_func ();
31311   ;
31312   return 0;
31313 }
31314 _ACEOF
31315 rm -f conftest.$ac_objext conftest$ac_exeext
31316 if { (ac_try="$ac_link"
31317 case "(($ac_try" in
31318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319   *) ac_try_echo=$ac_try;;
31320 esac
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322   (eval "$ac_link") 2>conftest.er1
31323   ac_status=$?
31324   grep -v '^ *+' conftest.er1 >conftest.err
31325   rm -f conftest.er1
31326   cat conftest.err >&5
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); } &&
31329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31330   { (case "(($ac_try" in
31331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31332   *) ac_try_echo=$ac_try;;
31333 esac
31334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31335   (eval "$ac_try") 2>&5
31336   ac_status=$?
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); }; } &&
31339          { ac_try='test -s conftest$ac_exeext'
31340   { (case "(($ac_try" in
31341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342   *) ac_try_echo=$ac_try;;
31343 esac
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345   (eval "$ac_try") 2>&5
31346   ac_status=$?
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); }; }; then
31349   eval "$as_ac_var=yes"
31350 else
31351   echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31353
31354         eval "$as_ac_var=no"
31355 fi
31356
31357 rm -f core conftest.err conftest.$ac_objext \
31358       conftest$ac_exeext conftest.$ac_ext
31359 fi
31360 ac_res=`eval echo '${'$as_ac_var'}'`
31361                { echo "$as_me:$LINENO: result: $ac_res" >&5
31362 echo "${ECHO_T}$ac_res" >&6; }
31363 if test `eval echo '${'$as_ac_var'}'` = yes; then
31364   cat >>confdefs.h <<_ACEOF
31365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31366 _ACEOF
31367  cat >>confdefs.h <<\_ACEOF
31368 #define HAVE_INET_NTOP 1
31369 _ACEOF
31370
31371 fi
31372 done
31373
31374
31375 for ac_func in gethostbyname2
31376 do
31377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31381   echo $ECHO_N "(cached) $ECHO_C" >&6
31382 else
31383   cat >conftest.$ac_ext <<_ACEOF
31384 /* confdefs.h.  */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h.  */
31389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31391 #define $ac_func innocuous_$ac_func
31392
31393 /* System header to define __stub macros and hopefully few prototypes,
31394     which can conflict with char $ac_func (); below.
31395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31396     <limits.h> exists even on freestanding compilers.  */
31397
31398 #ifdef __STDC__
31399 # include <limits.h>
31400 #else
31401 # include <assert.h>
31402 #endif
31403
31404 #undef $ac_func
31405
31406 /* Override any GCC internal prototype to avoid an error.
31407    Use char because int might match the return type of a GCC
31408    builtin and then its argument prototype would still apply.  */
31409 #ifdef __cplusplus
31410 extern "C"
31411 #endif
31412 char $ac_func ();
31413 /* The GNU C library defines this for functions which it implements
31414     to always fail with ENOSYS.  Some functions are actually named
31415     something starting with __ and the normal name is an alias.  */
31416 #if defined __stub_$ac_func || defined __stub___$ac_func
31417 choke me
31418 #endif
31419
31420 int
31421 main ()
31422 {
31423 return $ac_func ();
31424   ;
31425   return 0;
31426 }
31427 _ACEOF
31428 rm -f conftest.$ac_objext conftest$ac_exeext
31429 if { (ac_try="$ac_link"
31430 case "(($ac_try" in
31431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432   *) ac_try_echo=$ac_try;;
31433 esac
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435   (eval "$ac_link") 2>conftest.er1
31436   ac_status=$?
31437   grep -v '^ *+' conftest.er1 >conftest.err
31438   rm -f conftest.er1
31439   cat conftest.err >&5
31440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); } &&
31442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31443   { (case "(($ac_try" in
31444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445   *) ac_try_echo=$ac_try;;
31446 esac
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448   (eval "$ac_try") 2>&5
31449   ac_status=$?
31450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451   (exit $ac_status); }; } &&
31452          { ac_try='test -s conftest$ac_exeext'
31453   { (case "(($ac_try" in
31454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455   *) ac_try_echo=$ac_try;;
31456 esac
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458   (eval "$ac_try") 2>&5
31459   ac_status=$?
31460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461   (exit $ac_status); }; }; then
31462   eval "$as_ac_var=yes"
31463 else
31464   echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31466
31467         eval "$as_ac_var=no"
31468 fi
31469
31470 rm -f core conftest.err conftest.$ac_objext \
31471       conftest$ac_exeext conftest.$ac_ext
31472 fi
31473 ac_res=`eval echo '${'$as_ac_var'}'`
31474                { echo "$as_me:$LINENO: result: $ac_res" >&5
31475 echo "${ECHO_T}$ac_res" >&6; }
31476 if test `eval echo '${'$as_ac_var'}'` = yes; then
31477   cat >>confdefs.h <<_ACEOF
31478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31479 _ACEOF
31480  cat >>confdefs.h <<\_ACEOF
31481 #define HAVE_GETHOSTBYNAME2 1
31482 _ACEOF
31483
31484 fi
31485 done
31486
31487
31488 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31489 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31490 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31491   echo $ECHO_N "(cached) $ECHO_C" >&6
31492 else
31493   cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h.  */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h.  */
31499 #include <sys/socket.h>
31500 int
31501 main ()
31502 {
31503 struct sockaddr s; s.sa_len;
31504   ;
31505   return 0;
31506 }
31507 _ACEOF
31508 rm -f conftest.$ac_objext
31509 if { (ac_try="$ac_compile"
31510 case "(($ac_try" in
31511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512   *) ac_try_echo=$ac_try;;
31513 esac
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515   (eval "$ac_compile") 2>conftest.er1
31516   ac_status=$?
31517   grep -v '^ *+' conftest.er1 >conftest.err
31518   rm -f conftest.er1
31519   cat conftest.err >&5
31520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521   (exit $ac_status); } &&
31522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31523   { (case "(($ac_try" in
31524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525   *) ac_try_echo=$ac_try;;
31526 esac
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528   (eval "$ac_try") 2>&5
31529   ac_status=$?
31530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531   (exit $ac_status); }; } &&
31532          { ac_try='test -s conftest.$ac_objext'
31533   { (case "(($ac_try" in
31534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535   *) ac_try_echo=$ac_try;;
31536 esac
31537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538   (eval "$ac_try") 2>&5
31539   ac_status=$?
31540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541   (exit $ac_status); }; }; then
31542   ac_cv_struct_sockaddr_sa_len=yes
31543 else
31544   echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31546
31547         ac_cv_struct_sockaddr_sa_len=no
31548 fi
31549
31550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31551 fi
31552 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31553 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31554
31555  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31556
31557 cat >>confdefs.h <<\_ACEOF
31558 #define HAVE_SA_LEN 1
31559 _ACEOF
31560
31561  fi
31562
31563
31564
31565
31566
31567 for ac_func in strftime
31568 do
31569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31573   echo $ECHO_N "(cached) $ECHO_C" >&6
31574 else
31575   cat >conftest.$ac_ext <<_ACEOF
31576 /* confdefs.h.  */
31577 _ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h.  */
31581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31583 #define $ac_func innocuous_$ac_func
31584
31585 /* System header to define __stub macros and hopefully few prototypes,
31586     which can conflict with char $ac_func (); below.
31587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31588     <limits.h> exists even on freestanding compilers.  */
31589
31590 #ifdef __STDC__
31591 # include <limits.h>
31592 #else
31593 # include <assert.h>
31594 #endif
31595
31596 #undef $ac_func
31597
31598 /* Override any GCC internal prototype to avoid an error.
31599    Use char because int might match the return type of a GCC
31600    builtin and then its argument prototype would still apply.  */
31601 #ifdef __cplusplus
31602 extern "C"
31603 #endif
31604 char $ac_func ();
31605 /* The GNU C library defines this for functions which it implements
31606     to always fail with ENOSYS.  Some functions are actually named
31607     something starting with __ and the normal name is an alias.  */
31608 #if defined __stub_$ac_func || defined __stub___$ac_func
31609 choke me
31610 #endif
31611
31612 int
31613 main ()
31614 {
31615 return $ac_func ();
31616   ;
31617   return 0;
31618 }
31619 _ACEOF
31620 rm -f conftest.$ac_objext conftest$ac_exeext
31621 if { (ac_try="$ac_link"
31622 case "(($ac_try" in
31623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31624   *) ac_try_echo=$ac_try;;
31625 esac
31626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627   (eval "$ac_link") 2>conftest.er1
31628   ac_status=$?
31629   grep -v '^ *+' conftest.er1 >conftest.err
31630   rm -f conftest.er1
31631   cat conftest.err >&5
31632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633   (exit $ac_status); } &&
31634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31635   { (case "(($ac_try" in
31636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637   *) ac_try_echo=$ac_try;;
31638 esac
31639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640   (eval "$ac_try") 2>&5
31641   ac_status=$?
31642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643   (exit $ac_status); }; } &&
31644          { ac_try='test -s conftest$ac_exeext'
31645   { (case "(($ac_try" in
31646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31647   *) ac_try_echo=$ac_try;;
31648 esac
31649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31650   (eval "$ac_try") 2>&5
31651   ac_status=$?
31652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653   (exit $ac_status); }; }; then
31654   eval "$as_ac_var=yes"
31655 else
31656   echo "$as_me: failed program was:" >&5
31657 sed 's/^/| /' conftest.$ac_ext >&5
31658
31659         eval "$as_ac_var=no"
31660 fi
31661
31662 rm -f core conftest.err conftest.$ac_objext \
31663       conftest$ac_exeext conftest.$ac_ext
31664 fi
31665 ac_res=`eval echo '${'$as_ac_var'}'`
31666                { echo "$as_me:$LINENO: result: $ac_res" >&5
31667 echo "${ECHO_T}$ac_res" >&6; }
31668 if test `eval echo '${'$as_ac_var'}'` = yes; then
31669   cat >>confdefs.h <<_ACEOF
31670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31671 _ACEOF
31672
31673 else
31674   # strftime is in -lintl on SCO UNIX.
31675 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31676 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31677 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31678   echo $ECHO_N "(cached) $ECHO_C" >&6
31679 else
31680   ac_check_lib_save_LIBS=$LIBS
31681 LIBS="-lintl  $LIBS"
31682 cat >conftest.$ac_ext <<_ACEOF
31683 /* confdefs.h.  */
31684 _ACEOF
31685 cat confdefs.h >>conftest.$ac_ext
31686 cat >>conftest.$ac_ext <<_ACEOF
31687 /* end confdefs.h.  */
31688
31689 /* Override any GCC internal prototype to avoid an error.
31690    Use char because int might match the return type of a GCC
31691    builtin and then its argument prototype would still apply.  */
31692 #ifdef __cplusplus
31693 extern "C"
31694 #endif
31695 char strftime ();
31696 int
31697 main ()
31698 {
31699 return strftime ();
31700   ;
31701   return 0;
31702 }
31703 _ACEOF
31704 rm -f conftest.$ac_objext conftest$ac_exeext
31705 if { (ac_try="$ac_link"
31706 case "(($ac_try" in
31707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708   *) ac_try_echo=$ac_try;;
31709 esac
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711   (eval "$ac_link") 2>conftest.er1
31712   ac_status=$?
31713   grep -v '^ *+' conftest.er1 >conftest.err
31714   rm -f conftest.er1
31715   cat conftest.err >&5
31716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717   (exit $ac_status); } &&
31718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31719   { (case "(($ac_try" in
31720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31721   *) ac_try_echo=$ac_try;;
31722 esac
31723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31724   (eval "$ac_try") 2>&5
31725   ac_status=$?
31726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727   (exit $ac_status); }; } &&
31728          { ac_try='test -s conftest$ac_exeext'
31729   { (case "(($ac_try" in
31730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731   *) ac_try_echo=$ac_try;;
31732 esac
31733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734   (eval "$ac_try") 2>&5
31735   ac_status=$?
31736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737   (exit $ac_status); }; }; then
31738   ac_cv_lib_intl_strftime=yes
31739 else
31740   echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31742
31743         ac_cv_lib_intl_strftime=no
31744 fi
31745
31746 rm -f core conftest.err conftest.$ac_objext \
31747       conftest$ac_exeext conftest.$ac_ext
31748 LIBS=$ac_check_lib_save_LIBS
31749 fi
31750 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31751 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31752 if test $ac_cv_lib_intl_strftime = yes; then
31753   cat >>confdefs.h <<\_ACEOF
31754 #define HAVE_STRFTIME 1
31755 _ACEOF
31756
31757 LIBS="-lintl $LIBS"
31758 fi
31759
31760 fi
31761 done
31762
31763
31764 for ac_func in vprintf
31765 do
31766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31770   echo $ECHO_N "(cached) $ECHO_C" >&6
31771 else
31772   cat >conftest.$ac_ext <<_ACEOF
31773 /* confdefs.h.  */
31774 _ACEOF
31775 cat confdefs.h >>conftest.$ac_ext
31776 cat >>conftest.$ac_ext <<_ACEOF
31777 /* end confdefs.h.  */
31778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31780 #define $ac_func innocuous_$ac_func
31781
31782 /* System header to define __stub macros and hopefully few prototypes,
31783     which can conflict with char $ac_func (); below.
31784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31785     <limits.h> exists even on freestanding compilers.  */
31786
31787 #ifdef __STDC__
31788 # include <limits.h>
31789 #else
31790 # include <assert.h>
31791 #endif
31792
31793 #undef $ac_func
31794
31795 /* Override any GCC internal prototype to avoid an error.
31796    Use char because int might match the return type of a GCC
31797    builtin and then its argument prototype would still apply.  */
31798 #ifdef __cplusplus
31799 extern "C"
31800 #endif
31801 char $ac_func ();
31802 /* The GNU C library defines this for functions which it implements
31803     to always fail with ENOSYS.  Some functions are actually named
31804     something starting with __ and the normal name is an alias.  */
31805 #if defined __stub_$ac_func || defined __stub___$ac_func
31806 choke me
31807 #endif
31808
31809 int
31810 main ()
31811 {
31812 return $ac_func ();
31813   ;
31814   return 0;
31815 }
31816 _ACEOF
31817 rm -f conftest.$ac_objext conftest$ac_exeext
31818 if { (ac_try="$ac_link"
31819 case "(($ac_try" in
31820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821   *) ac_try_echo=$ac_try;;
31822 esac
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824   (eval "$ac_link") 2>conftest.er1
31825   ac_status=$?
31826   grep -v '^ *+' conftest.er1 >conftest.err
31827   rm -f conftest.er1
31828   cat conftest.err >&5
31829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); } &&
31831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31832   { (case "(($ac_try" in
31833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834   *) ac_try_echo=$ac_try;;
31835 esac
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837   (eval "$ac_try") 2>&5
31838   ac_status=$?
31839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); }; } &&
31841          { ac_try='test -s conftest$ac_exeext'
31842   { (case "(($ac_try" in
31843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844   *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847   (eval "$ac_try") 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; }; then
31851   eval "$as_ac_var=yes"
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856         eval "$as_ac_var=no"
31857 fi
31858
31859 rm -f core conftest.err conftest.$ac_objext \
31860       conftest$ac_exeext conftest.$ac_ext
31861 fi
31862 ac_res=`eval echo '${'$as_ac_var'}'`
31863                { echo "$as_me:$LINENO: result: $ac_res" >&5
31864 echo "${ECHO_T}$ac_res" >&6; }
31865 if test `eval echo '${'$as_ac_var'}'` = yes; then
31866   cat >>confdefs.h <<_ACEOF
31867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31868 _ACEOF
31869
31870 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31871 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31872 if test "${ac_cv_func__doprnt+set}" = set; then
31873   echo $ECHO_N "(cached) $ECHO_C" >&6
31874 else
31875   cat >conftest.$ac_ext <<_ACEOF
31876 /* confdefs.h.  */
31877 _ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h.  */
31881 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31883 #define _doprnt innocuous__doprnt
31884
31885 /* System header to define __stub macros and hopefully few prototypes,
31886     which can conflict with char _doprnt (); below.
31887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31888     <limits.h> exists even on freestanding compilers.  */
31889
31890 #ifdef __STDC__
31891 # include <limits.h>
31892 #else
31893 # include <assert.h>
31894 #endif
31895
31896 #undef _doprnt
31897
31898 /* Override any GCC internal prototype to avoid an error.
31899    Use char because int might match the return type of a GCC
31900    builtin and then its argument prototype would still apply.  */
31901 #ifdef __cplusplus
31902 extern "C"
31903 #endif
31904 char _doprnt ();
31905 /* The GNU C library defines this for functions which it implements
31906     to always fail with ENOSYS.  Some functions are actually named
31907     something starting with __ and the normal name is an alias.  */
31908 #if defined __stub__doprnt || defined __stub____doprnt
31909 choke me
31910 #endif
31911
31912 int
31913 main ()
31914 {
31915 return _doprnt ();
31916   ;
31917   return 0;
31918 }
31919 _ACEOF
31920 rm -f conftest.$ac_objext conftest$ac_exeext
31921 if { (ac_try="$ac_link"
31922 case "(($ac_try" in
31923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924   *) ac_try_echo=$ac_try;;
31925 esac
31926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927   (eval "$ac_link") 2>conftest.er1
31928   ac_status=$?
31929   grep -v '^ *+' conftest.er1 >conftest.err
31930   rm -f conftest.er1
31931   cat conftest.err >&5
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); } &&
31934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31935   { (case "(($ac_try" in
31936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937   *) ac_try_echo=$ac_try;;
31938 esac
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940   (eval "$ac_try") 2>&5
31941   ac_status=$?
31942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943   (exit $ac_status); }; } &&
31944          { ac_try='test -s conftest$ac_exeext'
31945   { (case "(($ac_try" in
31946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947   *) ac_try_echo=$ac_try;;
31948 esac
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950   (eval "$ac_try") 2>&5
31951   ac_status=$?
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); }; }; then
31954   ac_cv_func__doprnt=yes
31955 else
31956   echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31958
31959         ac_cv_func__doprnt=no
31960 fi
31961
31962 rm -f core conftest.err conftest.$ac_objext \
31963       conftest$ac_exeext conftest.$ac_ext
31964 fi
31965 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31966 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31967 if test $ac_cv_func__doprnt = yes; then
31968
31969 cat >>confdefs.h <<\_ACEOF
31970 #define HAVE_DOPRNT 1
31971 _ACEOF
31972
31973 fi
31974
31975 fi
31976 done
31977
31978
31979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31980 # for constant arguments.  Useless!
31981 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31982 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31983 if test "${ac_cv_working_alloca_h+set}" = set; then
31984   echo $ECHO_N "(cached) $ECHO_C" >&6
31985 else
31986   cat >conftest.$ac_ext <<_ACEOF
31987 /* confdefs.h.  */
31988 _ACEOF
31989 cat confdefs.h >>conftest.$ac_ext
31990 cat >>conftest.$ac_ext <<_ACEOF
31991 /* end confdefs.h.  */
31992 #include <alloca.h>
31993 int
31994 main ()
31995 {
31996 char *p = (char *) alloca (2 * sizeof (int));
31997                           if (p) return 0;
31998   ;
31999   return 0;
32000 }
32001 _ACEOF
32002 rm -f conftest.$ac_objext conftest$ac_exeext
32003 if { (ac_try="$ac_link"
32004 case "(($ac_try" in
32005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006   *) ac_try_echo=$ac_try;;
32007 esac
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009   (eval "$ac_link") 2>conftest.er1
32010   ac_status=$?
32011   grep -v '^ *+' conftest.er1 >conftest.err
32012   rm -f conftest.er1
32013   cat conftest.err >&5
32014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015   (exit $ac_status); } &&
32016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32017   { (case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_try") 2>&5
32023   ac_status=$?
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); }; } &&
32026          { ac_try='test -s conftest$ac_exeext'
32027   { (case "(($ac_try" in
32028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029   *) ac_try_echo=$ac_try;;
32030 esac
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032   (eval "$ac_try") 2>&5
32033   ac_status=$?
32034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035   (exit $ac_status); }; }; then
32036   ac_cv_working_alloca_h=yes
32037 else
32038   echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32040
32041         ac_cv_working_alloca_h=no
32042 fi
32043
32044 rm -f core conftest.err conftest.$ac_objext \
32045       conftest$ac_exeext conftest.$ac_ext
32046 fi
32047 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32048 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32049 if test $ac_cv_working_alloca_h = yes; then
32050
32051 cat >>confdefs.h <<\_ACEOF
32052 #define HAVE_ALLOCA_H 1
32053 _ACEOF
32054
32055 fi
32056
32057 { echo "$as_me:$LINENO: checking for alloca" >&5
32058 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32059 if test "${ac_cv_func_alloca_works+set}" = set; then
32060   echo $ECHO_N "(cached) $ECHO_C" >&6
32061 else
32062   cat >conftest.$ac_ext <<_ACEOF
32063 /* confdefs.h.  */
32064 _ACEOF
32065 cat confdefs.h >>conftest.$ac_ext
32066 cat >>conftest.$ac_ext <<_ACEOF
32067 /* end confdefs.h.  */
32068 #ifdef __GNUC__
32069 # define alloca __builtin_alloca
32070 #else
32071 # ifdef _MSC_VER
32072 #  include <malloc.h>
32073 #  define alloca _alloca
32074 # else
32075 #  if HAVE_ALLOCA_H
32076 #   include <alloca.h>
32077 #  else
32078 #   ifdef _AIX
32079  #pragma alloca
32080 #   else
32081 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32082 char *alloca ();
32083 #    endif
32084 #   endif
32085 #  endif
32086 # endif
32087 #endif
32088
32089 int
32090 main ()
32091 {
32092 char *p = (char *) alloca (1);
32093                                     if (p) return 0;
32094   ;
32095   return 0;
32096 }
32097 _ACEOF
32098 rm -f conftest.$ac_objext conftest$ac_exeext
32099 if { (ac_try="$ac_link"
32100 case "(($ac_try" in
32101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102   *) ac_try_echo=$ac_try;;
32103 esac
32104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105   (eval "$ac_link") 2>conftest.er1
32106   ac_status=$?
32107   grep -v '^ *+' conftest.er1 >conftest.err
32108   rm -f conftest.er1
32109   cat conftest.err >&5
32110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111   (exit $ac_status); } &&
32112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32113   { (case "(($ac_try" in
32114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115   *) ac_try_echo=$ac_try;;
32116 esac
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118   (eval "$ac_try") 2>&5
32119   ac_status=$?
32120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121   (exit $ac_status); }; } &&
32122          { ac_try='test -s conftest$ac_exeext'
32123   { (case "(($ac_try" in
32124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32125   *) ac_try_echo=$ac_try;;
32126 esac
32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32128   (eval "$ac_try") 2>&5
32129   ac_status=$?
32130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131   (exit $ac_status); }; }; then
32132   ac_cv_func_alloca_works=yes
32133 else
32134   echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32136
32137         ac_cv_func_alloca_works=no
32138 fi
32139
32140 rm -f core conftest.err conftest.$ac_objext \
32141       conftest$ac_exeext conftest.$ac_ext
32142 fi
32143 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32144 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32145
32146 if test $ac_cv_func_alloca_works = yes; then
32147
32148 cat >>confdefs.h <<\_ACEOF
32149 #define HAVE_ALLOCA 1
32150 _ACEOF
32151
32152 else
32153   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32154 # that cause trouble.  Some versions do not even contain alloca or
32155 # contain a buggy version.  If you still want to use their alloca,
32156 # use ar to extract alloca.o from them instead of compiling alloca.c.
32157
32158 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32159
32160 cat >>confdefs.h <<\_ACEOF
32161 #define C_ALLOCA 1
32162 _ACEOF
32163
32164
32165 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32166 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32167 if test "${ac_cv_os_cray+set}" = set; then
32168   echo $ECHO_N "(cached) $ECHO_C" >&6
32169 else
32170   cat >conftest.$ac_ext <<_ACEOF
32171 /* confdefs.h.  */
32172 _ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h.  */
32176 #if defined CRAY && ! defined CRAY2
32177 webecray
32178 #else
32179 wenotbecray
32180 #endif
32181
32182 _ACEOF
32183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32184   $EGREP "webecray" >/dev/null 2>&1; then
32185   ac_cv_os_cray=yes
32186 else
32187   ac_cv_os_cray=no
32188 fi
32189 rm -f conftest*
32190
32191 fi
32192 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32193 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32194 if test $ac_cv_os_cray = yes; then
32195   for ac_func in _getb67 GETB67 getb67; do
32196     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32200   echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202   cat >conftest.$ac_ext <<_ACEOF
32203 /* confdefs.h.  */
32204 _ACEOF
32205 cat confdefs.h >>conftest.$ac_ext
32206 cat >>conftest.$ac_ext <<_ACEOF
32207 /* end confdefs.h.  */
32208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32210 #define $ac_func innocuous_$ac_func
32211
32212 /* System header to define __stub macros and hopefully few prototypes,
32213     which can conflict with char $ac_func (); below.
32214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32215     <limits.h> exists even on freestanding compilers.  */
32216
32217 #ifdef __STDC__
32218 # include <limits.h>
32219 #else
32220 # include <assert.h>
32221 #endif
32222
32223 #undef $ac_func
32224
32225 /* Override any GCC internal prototype to avoid an error.
32226    Use char because int might match the return type of a GCC
32227    builtin and then its argument prototype would still apply.  */
32228 #ifdef __cplusplus
32229 extern "C"
32230 #endif
32231 char $ac_func ();
32232 /* The GNU C library defines this for functions which it implements
32233     to always fail with ENOSYS.  Some functions are actually named
32234     something starting with __ and the normal name is an alias.  */
32235 #if defined __stub_$ac_func || defined __stub___$ac_func
32236 choke me
32237 #endif
32238
32239 int
32240 main ()
32241 {
32242 return $ac_func ();
32243   ;
32244   return 0;
32245 }
32246 _ACEOF
32247 rm -f conftest.$ac_objext conftest$ac_exeext
32248 if { (ac_try="$ac_link"
32249 case "(($ac_try" in
32250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251   *) ac_try_echo=$ac_try;;
32252 esac
32253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254   (eval "$ac_link") 2>conftest.er1
32255   ac_status=$?
32256   grep -v '^ *+' conftest.er1 >conftest.err
32257   rm -f conftest.er1
32258   cat conftest.err >&5
32259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260   (exit $ac_status); } &&
32261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32262   { (case "(($ac_try" in
32263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264   *) ac_try_echo=$ac_try;;
32265 esac
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267   (eval "$ac_try") 2>&5
32268   ac_status=$?
32269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270   (exit $ac_status); }; } &&
32271          { ac_try='test -s conftest$ac_exeext'
32272   { (case "(($ac_try" in
32273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274   *) ac_try_echo=$ac_try;;
32275 esac
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277   (eval "$ac_try") 2>&5
32278   ac_status=$?
32279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280   (exit $ac_status); }; }; then
32281   eval "$as_ac_var=yes"
32282 else
32283   echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32285
32286         eval "$as_ac_var=no"
32287 fi
32288
32289 rm -f core conftest.err conftest.$ac_objext \
32290       conftest$ac_exeext conftest.$ac_ext
32291 fi
32292 ac_res=`eval echo '${'$as_ac_var'}'`
32293                { echo "$as_me:$LINENO: result: $ac_res" >&5
32294 echo "${ECHO_T}$ac_res" >&6; }
32295 if test `eval echo '${'$as_ac_var'}'` = yes; then
32296
32297 cat >>confdefs.h <<_ACEOF
32298 #define CRAY_STACKSEG_END $ac_func
32299 _ACEOF
32300
32301     break
32302 fi
32303
32304   done
32305 fi
32306
32307 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32308 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32309 if test "${ac_cv_c_stack_direction+set}" = set; then
32310   echo $ECHO_N "(cached) $ECHO_C" >&6
32311 else
32312   if test "$cross_compiling" = yes; then
32313   ac_cv_c_stack_direction=0
32314 else
32315   cat >conftest.$ac_ext <<_ACEOF
32316 /* confdefs.h.  */
32317 _ACEOF
32318 cat confdefs.h >>conftest.$ac_ext
32319 cat >>conftest.$ac_ext <<_ACEOF
32320 /* end confdefs.h.  */
32321 $ac_includes_default
32322 int
32323 find_stack_direction ()
32324 {
32325   static char *addr = 0;
32326   auto char dummy;
32327   if (addr == 0)
32328     {
32329       addr = &dummy;
32330       return find_stack_direction ();
32331     }
32332   else
32333     return (&dummy > addr) ? 1 : -1;
32334 }
32335
32336 int
32337 main ()
32338 {
32339   return find_stack_direction () < 0;
32340 }
32341 _ACEOF
32342 rm -f conftest$ac_exeext
32343 if { (ac_try="$ac_link"
32344 case "(($ac_try" in
32345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32346   *) ac_try_echo=$ac_try;;
32347 esac
32348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32349   (eval "$ac_link") 2>&5
32350   ac_status=$?
32351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32353   { (case "(($ac_try" in
32354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355   *) ac_try_echo=$ac_try;;
32356 esac
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358   (eval "$ac_try") 2>&5
32359   ac_status=$?
32360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361   (exit $ac_status); }; }; then
32362   ac_cv_c_stack_direction=1
32363 else
32364   echo "$as_me: program exited with status $ac_status" >&5
32365 echo "$as_me: failed program was:" >&5
32366 sed 's/^/| /' conftest.$ac_ext >&5
32367
32368 ( exit $ac_status )
32369 ac_cv_c_stack_direction=-1
32370 fi
32371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32372 fi
32373
32374
32375 fi
32376 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32377 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32378
32379 cat >>confdefs.h <<_ACEOF
32380 #define STACK_DIRECTION $ac_cv_c_stack_direction
32381 _ACEOF
32382
32383
32384 fi
32385
32386 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32387 # -lseq on Dynix/PTX, -lgen on Unixware.
32388 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32389 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32390 if test "${ac_cv_search_getmntent+set}" = set; then
32391   echo $ECHO_N "(cached) $ECHO_C" >&6
32392 else
32393   ac_func_search_save_LIBS=$LIBS
32394 cat >conftest.$ac_ext <<_ACEOF
32395 /* confdefs.h.  */
32396 _ACEOF
32397 cat confdefs.h >>conftest.$ac_ext
32398 cat >>conftest.$ac_ext <<_ACEOF
32399 /* end confdefs.h.  */
32400
32401 /* Override any GCC internal prototype to avoid an error.
32402    Use char because int might match the return type of a GCC
32403    builtin and then its argument prototype would still apply.  */
32404 #ifdef __cplusplus
32405 extern "C"
32406 #endif
32407 char getmntent ();
32408 int
32409 main ()
32410 {
32411 return getmntent ();
32412   ;
32413   return 0;
32414 }
32415 _ACEOF
32416 for ac_lib in '' sun seq gen; do
32417   if test -z "$ac_lib"; then
32418     ac_res="none required"
32419   else
32420     ac_res=-l$ac_lib
32421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32422   fi
32423   rm -f conftest.$ac_objext conftest$ac_exeext
32424 if { (ac_try="$ac_link"
32425 case "(($ac_try" in
32426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32427   *) ac_try_echo=$ac_try;;
32428 esac
32429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32430   (eval "$ac_link") 2>conftest.er1
32431   ac_status=$?
32432   grep -v '^ *+' conftest.er1 >conftest.err
32433   rm -f conftest.er1
32434   cat conftest.err >&5
32435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436   (exit $ac_status); } &&
32437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32438   { (case "(($ac_try" in
32439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440   *) ac_try_echo=$ac_try;;
32441 esac
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443   (eval "$ac_try") 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; } &&
32447          { ac_try='test -s conftest$ac_exeext'
32448   { (case "(($ac_try" in
32449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450   *) ac_try_echo=$ac_try;;
32451 esac
32452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453   (eval "$ac_try") 2>&5
32454   ac_status=$?
32455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456   (exit $ac_status); }; }; then
32457   ac_cv_search_getmntent=$ac_res
32458 else
32459   echo "$as_me: failed program was:" >&5
32460 sed 's/^/| /' conftest.$ac_ext >&5
32461
32462
32463 fi
32464
32465 rm -f core conftest.err conftest.$ac_objext \
32466       conftest$ac_exeext
32467   if test "${ac_cv_search_getmntent+set}" = set; then
32468   break
32469 fi
32470 done
32471 if test "${ac_cv_search_getmntent+set}" = set; then
32472   :
32473 else
32474   ac_cv_search_getmntent=no
32475 fi
32476 rm conftest.$ac_ext
32477 LIBS=$ac_func_search_save_LIBS
32478 fi
32479 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32480 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32481 ac_res=$ac_cv_search_getmntent
32482 if test "$ac_res" != no; then
32483   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32484
32485 fi
32486
32487
32488 for ac_func in getmntent
32489 do
32490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32494   echo $ECHO_N "(cached) $ECHO_C" >&6
32495 else
32496   cat >conftest.$ac_ext <<_ACEOF
32497 /* confdefs.h.  */
32498 _ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h.  */
32502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32504 #define $ac_func innocuous_$ac_func
32505
32506 /* System header to define __stub macros and hopefully few prototypes,
32507     which can conflict with char $ac_func (); below.
32508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32509     <limits.h> exists even on freestanding compilers.  */
32510
32511 #ifdef __STDC__
32512 # include <limits.h>
32513 #else
32514 # include <assert.h>
32515 #endif
32516
32517 #undef $ac_func
32518
32519 /* Override any GCC internal prototype to avoid an error.
32520    Use char because int might match the return type of a GCC
32521    builtin and then its argument prototype would still apply.  */
32522 #ifdef __cplusplus
32523 extern "C"
32524 #endif
32525 char $ac_func ();
32526 /* The GNU C library defines this for functions which it implements
32527     to always fail with ENOSYS.  Some functions are actually named
32528     something starting with __ and the normal name is an alias.  */
32529 #if defined __stub_$ac_func || defined __stub___$ac_func
32530 choke me
32531 #endif
32532
32533 int
32534 main ()
32535 {
32536 return $ac_func ();
32537   ;
32538   return 0;
32539 }
32540 _ACEOF
32541 rm -f conftest.$ac_objext conftest$ac_exeext
32542 if { (ac_try="$ac_link"
32543 case "(($ac_try" in
32544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545   *) ac_try_echo=$ac_try;;
32546 esac
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548   (eval "$ac_link") 2>conftest.er1
32549   ac_status=$?
32550   grep -v '^ *+' conftest.er1 >conftest.err
32551   rm -f conftest.er1
32552   cat conftest.err >&5
32553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554   (exit $ac_status); } &&
32555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32556   { (case "(($ac_try" in
32557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558   *) ac_try_echo=$ac_try;;
32559 esac
32560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561   (eval "$ac_try") 2>&5
32562   ac_status=$?
32563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564   (exit $ac_status); }; } &&
32565          { ac_try='test -s conftest$ac_exeext'
32566   { (case "(($ac_try" in
32567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568   *) ac_try_echo=$ac_try;;
32569 esac
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571   (eval "$ac_try") 2>&5
32572   ac_status=$?
32573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574   (exit $ac_status); }; }; then
32575   eval "$as_ac_var=yes"
32576 else
32577   echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32579
32580         eval "$as_ac_var=no"
32581 fi
32582
32583 rm -f core conftest.err conftest.$ac_objext \
32584       conftest$ac_exeext conftest.$ac_ext
32585 fi
32586 ac_res=`eval echo '${'$as_ac_var'}'`
32587                { echo "$as_me:$LINENO: result: $ac_res" >&5
32588 echo "${ECHO_T}$ac_res" >&6; }
32589 if test `eval echo '${'$as_ac_var'}'` = yes; then
32590   cat >>confdefs.h <<_ACEOF
32591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32592 _ACEOF
32593
32594 fi
32595 done
32596
32597
32598 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32599 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32600 if test "${ac_cv_func_closedir_void+set}" = set; then
32601   echo $ECHO_N "(cached) $ECHO_C" >&6
32602 else
32603   if test "$cross_compiling" = yes; then
32604   ac_cv_func_closedir_void=yes
32605 else
32606   cat >conftest.$ac_ext <<_ACEOF
32607 /* confdefs.h.  */
32608 _ACEOF
32609 cat confdefs.h >>conftest.$ac_ext
32610 cat >>conftest.$ac_ext <<_ACEOF
32611 /* end confdefs.h.  */
32612 $ac_includes_default
32613 #include <$ac_header_dirent>
32614 #ifndef __cplusplus
32615 int closedir ();
32616 #endif
32617
32618 int
32619 main ()
32620 {
32621 return closedir (opendir (".")) != 0;
32622   ;
32623   return 0;
32624 }
32625 _ACEOF
32626 rm -f conftest$ac_exeext
32627 if { (ac_try="$ac_link"
32628 case "(($ac_try" in
32629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630   *) ac_try_echo=$ac_try;;
32631 esac
32632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633   (eval "$ac_link") 2>&5
32634   ac_status=$?
32635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32637   { (case "(($ac_try" in
32638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639   *) ac_try_echo=$ac_try;;
32640 esac
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642   (eval "$ac_try") 2>&5
32643   ac_status=$?
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); }; }; then
32646   ac_cv_func_closedir_void=no
32647 else
32648   echo "$as_me: program exited with status $ac_status" >&5
32649 echo "$as_me: failed program was:" >&5
32650 sed 's/^/| /' conftest.$ac_ext >&5
32651
32652 ( exit $ac_status )
32653 ac_cv_func_closedir_void=yes
32654 fi
32655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32656 fi
32657
32658
32659 fi
32660 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32661 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32662 if test $ac_cv_func_closedir_void = yes; then
32663
32664 cat >>confdefs.h <<\_ACEOF
32665 #define CLOSEDIR_VOID 1
32666 _ACEOF
32667
32668 fi
32669
32670 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32671 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32672 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32673   echo $ECHO_N "(cached) $ECHO_C" >&6
32674 else
32675   if test "$cross_compiling" = yes; then
32676   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32677 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32678    { (exit 1); exit 1; }; }
32679 else
32680   cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h.  */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h.  */
32686 $ac_includes_default
32687 int
32688 main ()
32689 {
32690 /* If this system has a BSD-style setpgrp which takes arguments,
32691   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32692   exit successfully. */
32693   return setpgrp (1,1) != -1;
32694   ;
32695   return 0;
32696 }
32697 _ACEOF
32698 rm -f conftest$ac_exeext
32699 if { (ac_try="$ac_link"
32700 case "(($ac_try" in
32701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702   *) ac_try_echo=$ac_try;;
32703 esac
32704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32705   (eval "$ac_link") 2>&5
32706   ac_status=$?
32707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32709   { (case "(($ac_try" in
32710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32711   *) ac_try_echo=$ac_try;;
32712 esac
32713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32714   (eval "$ac_try") 2>&5
32715   ac_status=$?
32716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717   (exit $ac_status); }; }; then
32718   ac_cv_func_setpgrp_void=no
32719 else
32720   echo "$as_me: program exited with status $ac_status" >&5
32721 echo "$as_me: failed program was:" >&5
32722 sed 's/^/| /' conftest.$ac_ext >&5
32723
32724 ( exit $ac_status )
32725 ac_cv_func_setpgrp_void=yes
32726 fi
32727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32728 fi
32729
32730
32731 fi
32732 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32733 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32734 if test $ac_cv_func_setpgrp_void = yes; then
32735
32736 cat >>confdefs.h <<\_ACEOF
32737 #define SETPGRP_VOID 1
32738 _ACEOF
32739
32740 fi
32741                       # AC_FUNC_FNMATCH    dnl use local version
32742
32743
32744 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32745 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32746 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32747   echo $ECHO_N "(cached) $ECHO_C" >&6
32748 else
32749   ac_check_lib_save_LIBS=$LIBS
32750 LIBS="-lintl  $LIBS"
32751 cat >conftest.$ac_ext <<_ACEOF
32752 /* confdefs.h.  */
32753 _ACEOF
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h.  */
32757
32758 /* Override any GCC internal prototype to avoid an error.
32759    Use char because int might match the return type of a GCC
32760    builtin and then its argument prototype would still apply.  */
32761 #ifdef __cplusplus
32762 extern "C"
32763 #endif
32764 char gettext ();
32765 int
32766 main ()
32767 {
32768 return gettext ();
32769   ;
32770   return 0;
32771 }
32772 _ACEOF
32773 rm -f conftest.$ac_objext conftest$ac_exeext
32774 if { (ac_try="$ac_link"
32775 case "(($ac_try" in
32776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777   *) ac_try_echo=$ac_try;;
32778 esac
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780   (eval "$ac_link") 2>conftest.er1
32781   ac_status=$?
32782   grep -v '^ *+' conftest.er1 >conftest.err
32783   rm -f conftest.er1
32784   cat conftest.err >&5
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } &&
32787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32788   { (case "(($ac_try" in
32789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790   *) ac_try_echo=$ac_try;;
32791 esac
32792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793   (eval "$ac_try") 2>&5
32794   ac_status=$?
32795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796   (exit $ac_status); }; } &&
32797          { ac_try='test -s conftest$ac_exeext'
32798   { (case "(($ac_try" in
32799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32800   *) ac_try_echo=$ac_try;;
32801 esac
32802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32803   (eval "$ac_try") 2>&5
32804   ac_status=$?
32805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806   (exit $ac_status); }; }; then
32807   ac_cv_lib_intl_gettext=yes
32808 else
32809   echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32811
32812         ac_cv_lib_intl_gettext=no
32813 fi
32814
32815 rm -f core conftest.err conftest.$ac_objext \
32816       conftest$ac_exeext conftest.$ac_ext
32817 LIBS=$ac_check_lib_save_LIBS
32818 fi
32819 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32820 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32821 if test $ac_cv_lib_intl_gettext = yes; then
32822   LIBS="$LIBS -lintl"
32823 fi
32824
32825
32826
32827
32828 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32829 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32830 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32831   echo $ECHO_N "(cached) $ECHO_C" >&6
32832 else
32833   ac_check_lib_save_LIBS=$LIBS
32834 LIBS="-lsun  $LIBS"
32835 cat >conftest.$ac_ext <<_ACEOF
32836 /* confdefs.h.  */
32837 _ACEOF
32838 cat confdefs.h >>conftest.$ac_ext
32839 cat >>conftest.$ac_ext <<_ACEOF
32840 /* end confdefs.h.  */
32841
32842 /* Override any GCC internal prototype to avoid an error.
32843    Use char because int might match the return type of a GCC
32844    builtin and then its argument prototype would still apply.  */
32845 #ifdef __cplusplus
32846 extern "C"
32847 #endif
32848 char getpwnam ();
32849 int
32850 main ()
32851 {
32852 return getpwnam ();
32853   ;
32854   return 0;
32855 }
32856 _ACEOF
32857 rm -f conftest.$ac_objext conftest$ac_exeext
32858 if { (ac_try="$ac_link"
32859 case "(($ac_try" in
32860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861   *) ac_try_echo=$ac_try;;
32862 esac
32863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864   (eval "$ac_link") 2>conftest.er1
32865   ac_status=$?
32866   grep -v '^ *+' conftest.er1 >conftest.err
32867   rm -f conftest.er1
32868   cat conftest.err >&5
32869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870   (exit $ac_status); } &&
32871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32872   { (case "(($ac_try" in
32873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874   *) ac_try_echo=$ac_try;;
32875 esac
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877   (eval "$ac_try") 2>&5
32878   ac_status=$?
32879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880   (exit $ac_status); }; } &&
32881          { ac_try='test -s conftest$ac_exeext'
32882   { (case "(($ac_try" in
32883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884   *) ac_try_echo=$ac_try;;
32885 esac
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887   (eval "$ac_try") 2>&5
32888   ac_status=$?
32889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890   (exit $ac_status); }; }; then
32891   ac_cv_lib_sun_getpwnam=yes
32892 else
32893   echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32895
32896         ac_cv_lib_sun_getpwnam=no
32897 fi
32898
32899 rm -f core conftest.err conftest.$ac_objext \
32900       conftest$ac_exeext conftest.$ac_ext
32901 LIBS=$ac_check_lib_save_LIBS
32902 fi
32903 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32904 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32905 if test $ac_cv_lib_sun_getpwnam = yes; then
32906   cat >>confdefs.h <<_ACEOF
32907 #define HAVE_LIBSUN 1
32908 _ACEOF
32909
32910   LIBS="-lsun $LIBS"
32911
32912 fi
32913
32914
32915
32916 for ac_header in zlib.h
32917 do
32918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32920   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32923   echo $ECHO_N "(cached) $ECHO_C" >&6
32924 fi
32925 ac_res=`eval echo '${'$as_ac_Header'}'`
32926                { echo "$as_me:$LINENO: result: $ac_res" >&5
32927 echo "${ECHO_T}$ac_res" >&6; }
32928 else
32929   # Is the header compilable?
32930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32932 cat >conftest.$ac_ext <<_ACEOF
32933 /* confdefs.h.  */
32934 _ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h.  */
32938 $ac_includes_default
32939 #include <$ac_header>
32940 _ACEOF
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945   *) ac_try_echo=$ac_try;;
32946 esac
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948   (eval "$ac_compile") 2>conftest.er1
32949   ac_status=$?
32950   grep -v '^ *+' conftest.er1 >conftest.err
32951   rm -f conftest.er1
32952   cat conftest.err >&5
32953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); } &&
32955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32956   { (case "(($ac_try" in
32957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958   *) ac_try_echo=$ac_try;;
32959 esac
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961   (eval "$ac_try") 2>&5
32962   ac_status=$?
32963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964   (exit $ac_status); }; } &&
32965          { ac_try='test -s conftest.$ac_objext'
32966   { (case "(($ac_try" in
32967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968   *) ac_try_echo=$ac_try;;
32969 esac
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971   (eval "$ac_try") 2>&5
32972   ac_status=$?
32973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974   (exit $ac_status); }; }; then
32975   ac_header_compiler=yes
32976 else
32977   echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32979
32980         ac_header_compiler=no
32981 fi
32982
32983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32985 echo "${ECHO_T}$ac_header_compiler" >&6; }
32986
32987 # Is the header present?
32988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32990 cat >conftest.$ac_ext <<_ACEOF
32991 /* confdefs.h.  */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h.  */
32996 #include <$ac_header>
32997 _ACEOF
32998 if { (ac_try="$ac_cpp conftest.$ac_ext"
32999 case "(($ac_try" in
33000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001   *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } >/dev/null; then
33011   if test -s conftest.err; then
33012     ac_cpp_err=$ac_c_preproc_warn_flag
33013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33014   else
33015     ac_cpp_err=
33016   fi
33017 else
33018   ac_cpp_err=yes
33019 fi
33020 if test -z "$ac_cpp_err"; then
33021   ac_header_preproc=yes
33022 else
33023   echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33025
33026   ac_header_preproc=no
33027 fi
33028
33029 rm -f conftest.err conftest.$ac_ext
33030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33031 echo "${ECHO_T}$ac_header_preproc" >&6; }
33032
33033 # So?  What about this header?
33034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33035   yes:no: )
33036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33040     ac_header_preproc=yes
33041     ;;
33042   no:yes:* )
33043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33055
33056     ;;
33057 esac
33058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33061   echo $ECHO_N "(cached) $ECHO_C" >&6
33062 else
33063   eval "$as_ac_Header=\$ac_header_preproc"
33064 fi
33065 ac_res=`eval echo '${'$as_ac_Header'}'`
33066                { echo "$as_me:$LINENO: result: $ac_res" >&5
33067 echo "${ECHO_T}$ac_res" >&6; }
33068
33069 fi
33070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33071   cat >>confdefs.h <<_ACEOF
33072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33073 _ACEOF
33074
33075 fi
33076
33077 done
33078
33079 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33080 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33081 if test "${ac_cv_lib_z_deflate+set}" = set; then
33082   echo $ECHO_N "(cached) $ECHO_C" >&6
33083 else
33084   ac_check_lib_save_LIBS=$LIBS
33085 LIBS="-lz  $LIBS"
33086 cat >conftest.$ac_ext <<_ACEOF
33087 /* confdefs.h.  */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h.  */
33092
33093 /* Override any GCC internal prototype to avoid an error.
33094    Use char because int might match the return type of a GCC
33095    builtin and then its argument prototype would still apply.  */
33096 #ifdef __cplusplus
33097 extern "C"
33098 #endif
33099 char deflate ();
33100 int
33101 main ()
33102 {
33103 return deflate ();
33104   ;
33105   return 0;
33106 }
33107 _ACEOF
33108 rm -f conftest.$ac_objext conftest$ac_exeext
33109 if { (ac_try="$ac_link"
33110 case "(($ac_try" in
33111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112   *) ac_try_echo=$ac_try;;
33113 esac
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115   (eval "$ac_link") 2>conftest.er1
33116   ac_status=$?
33117   grep -v '^ *+' conftest.er1 >conftest.err
33118   rm -f conftest.er1
33119   cat conftest.err >&5
33120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121   (exit $ac_status); } &&
33122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33123   { (case "(($ac_try" in
33124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33125   *) ac_try_echo=$ac_try;;
33126 esac
33127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33128   (eval "$ac_try") 2>&5
33129   ac_status=$?
33130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131   (exit $ac_status); }; } &&
33132          { ac_try='test -s conftest$ac_exeext'
33133   { (case "(($ac_try" in
33134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135   *) ac_try_echo=$ac_try;;
33136 esac
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138   (eval "$ac_try") 2>&5
33139   ac_status=$?
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); }; }; then
33142   ac_cv_lib_z_deflate=yes
33143 else
33144   echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147         ac_cv_lib_z_deflate=no
33148 fi
33149
33150 rm -f core conftest.err conftest.$ac_objext \
33151       conftest$ac_exeext conftest.$ac_ext
33152 LIBS=$ac_check_lib_save_LIBS
33153 fi
33154 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33155 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33156 if test $ac_cv_lib_z_deflate = yes; then
33157   FDLIBS="-lz"
33158 fi
33159
33160 have_zlib=no
33161 if test x$FDLIBS = x-lz; then
33162   cat >>confdefs.h <<\_ACEOF
33163 #define HAVE_LIBZ 1
33164 _ACEOF
33165
33166   have_zlib=yes
33167 fi
33168
33169 #
33170 # Check for ACL libraries
33171 #
33172 have_acl=no
33173 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33174   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33175 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33176 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 fi
33179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33180 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33181 else
33182   # Is the header compilable?
33183 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33184 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33185 cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191 $ac_includes_default
33192 #include <sys/acl.h>
33193 _ACEOF
33194 rm -f conftest.$ac_objext
33195 if { (ac_try="$ac_compile"
33196 case "(($ac_try" in
33197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198   *) ac_try_echo=$ac_try;;
33199 esac
33200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33201   (eval "$ac_compile") 2>conftest.er1
33202   ac_status=$?
33203   grep -v '^ *+' conftest.er1 >conftest.err
33204   rm -f conftest.er1
33205   cat conftest.err >&5
33206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207   (exit $ac_status); } &&
33208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33209   { (case "(($ac_try" in
33210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33211   *) ac_try_echo=$ac_try;;
33212 esac
33213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33214   (eval "$ac_try") 2>&5
33215   ac_status=$?
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); }; } &&
33218          { ac_try='test -s conftest.$ac_objext'
33219   { (case "(($ac_try" in
33220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221   *) ac_try_echo=$ac_try;;
33222 esac
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224   (eval "$ac_try") 2>&5
33225   ac_status=$?
33226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227   (exit $ac_status); }; }; then
33228   ac_header_compiler=yes
33229 else
33230   echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33232
33233         ac_header_compiler=no
33234 fi
33235
33236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33238 echo "${ECHO_T}$ac_header_compiler" >&6; }
33239
33240 # Is the header present?
33241 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33242 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33243 cat >conftest.$ac_ext <<_ACEOF
33244 /* confdefs.h.  */
33245 _ACEOF
33246 cat confdefs.h >>conftest.$ac_ext
33247 cat >>conftest.$ac_ext <<_ACEOF
33248 /* end confdefs.h.  */
33249 #include <sys/acl.h>
33250 _ACEOF
33251 if { (ac_try="$ac_cpp conftest.$ac_ext"
33252 case "(($ac_try" in
33253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33254   *) ac_try_echo=$ac_try;;
33255 esac
33256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33258   ac_status=$?
33259   grep -v '^ *+' conftest.er1 >conftest.err
33260   rm -f conftest.er1
33261   cat conftest.err >&5
33262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263   (exit $ac_status); } >/dev/null; then
33264   if test -s conftest.err; then
33265     ac_cpp_err=$ac_c_preproc_warn_flag
33266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33267   else
33268     ac_cpp_err=
33269   fi
33270 else
33271   ac_cpp_err=yes
33272 fi
33273 if test -z "$ac_cpp_err"; then
33274   ac_header_preproc=yes
33275 else
33276   echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33278
33279   ac_header_preproc=no
33280 fi
33281
33282 rm -f conftest.err conftest.$ac_ext
33283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33284 echo "${ECHO_T}$ac_header_preproc" >&6; }
33285
33286 # So?  What about this header?
33287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33288   yes:no: )
33289     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33290 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33291     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33292 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33293     ac_header_preproc=yes
33294     ;;
33295   no:yes:* )
33296     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33297 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33298     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33299 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33300     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33301 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33302     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33303 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33304     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33305 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33306     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33307 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33308
33309     ;;
33310 esac
33311 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33312 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33313 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33314   echo $ECHO_N "(cached) $ECHO_C" >&6
33315 else
33316   ac_cv_header_sys_acl_h=$ac_header_preproc
33317 fi
33318 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33319 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33320
33321 fi
33322
33323
33324 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33325 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33326 if test "${ac_cv_func_acl_get_file+set}" = set; then
33327   echo $ECHO_N "(cached) $ECHO_C" >&6
33328 else
33329   cat >conftest.$ac_ext <<_ACEOF
33330 /* confdefs.h.  */
33331 _ACEOF
33332 cat confdefs.h >>conftest.$ac_ext
33333 cat >>conftest.$ac_ext <<_ACEOF
33334 /* end confdefs.h.  */
33335 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33337 #define acl_get_file innocuous_acl_get_file
33338
33339 /* System header to define __stub macros and hopefully few prototypes,
33340     which can conflict with char acl_get_file (); below.
33341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33342     <limits.h> exists even on freestanding compilers.  */
33343
33344 #ifdef __STDC__
33345 # include <limits.h>
33346 #else
33347 # include <assert.h>
33348 #endif
33349
33350 #undef acl_get_file
33351
33352 /* Override any GCC internal prototype to avoid an error.
33353    Use char because int might match the return type of a GCC
33354    builtin and then its argument prototype would still apply.  */
33355 #ifdef __cplusplus
33356 extern "C"
33357 #endif
33358 char acl_get_file ();
33359 /* The GNU C library defines this for functions which it implements
33360     to always fail with ENOSYS.  Some functions are actually named
33361     something starting with __ and the normal name is an alias.  */
33362 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33363 choke me
33364 #endif
33365
33366 int
33367 main ()
33368 {
33369 return acl_get_file ();
33370   ;
33371   return 0;
33372 }
33373 _ACEOF
33374 rm -f conftest.$ac_objext conftest$ac_exeext
33375 if { (ac_try="$ac_link"
33376 case "(($ac_try" in
33377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33378   *) ac_try_echo=$ac_try;;
33379 esac
33380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33381   (eval "$ac_link") 2>conftest.er1
33382   ac_status=$?
33383   grep -v '^ *+' conftest.er1 >conftest.err
33384   rm -f conftest.er1
33385   cat conftest.err >&5
33386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387   (exit $ac_status); } &&
33388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33389   { (case "(($ac_try" in
33390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391   *) ac_try_echo=$ac_try;;
33392 esac
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394   (eval "$ac_try") 2>&5
33395   ac_status=$?
33396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397   (exit $ac_status); }; } &&
33398          { ac_try='test -s conftest$ac_exeext'
33399   { (case "(($ac_try" in
33400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401   *) ac_try_echo=$ac_try;;
33402 esac
33403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404   (eval "$ac_try") 2>&5
33405   ac_status=$?
33406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407   (exit $ac_status); }; }; then
33408   ac_cv_func_acl_get_file=yes
33409 else
33410   echo "$as_me: failed program was:" >&5
33411 sed 's/^/| /' conftest.$ac_ext >&5
33412
33413         ac_cv_func_acl_get_file=no
33414 fi
33415
33416 rm -f core conftest.err conftest.$ac_objext \
33417       conftest$ac_exeext conftest.$ac_ext
33418 fi
33419 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33420 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33421 if test $ac_cv_func_acl_get_file = yes; then
33422   have_acl=yes
33423 else
33424   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33425 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33426 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33427   echo $ECHO_N "(cached) $ECHO_C" >&6
33428 else
33429   ac_check_lib_save_LIBS=$LIBS
33430 LIBS="-lacl  $LIBS"
33431 cat >conftest.$ac_ext <<_ACEOF
33432 /* confdefs.h.  */
33433 _ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h.  */
33437
33438 /* Override any GCC internal prototype to avoid an error.
33439    Use char because int might match the return type of a GCC
33440    builtin and then its argument prototype would still apply.  */
33441 #ifdef __cplusplus
33442 extern "C"
33443 #endif
33444 char acl_get_file ();
33445 int
33446 main ()
33447 {
33448 return acl_get_file ();
33449   ;
33450   return 0;
33451 }
33452 _ACEOF
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (ac_try="$ac_link"
33455 case "(($ac_try" in
33456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457   *) ac_try_echo=$ac_try;;
33458 esac
33459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460   (eval "$ac_link") 2>conftest.er1
33461   ac_status=$?
33462   grep -v '^ *+' conftest.er1 >conftest.err
33463   rm -f conftest.er1
33464   cat conftest.err >&5
33465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466   (exit $ac_status); } &&
33467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33468   { (case "(($ac_try" in
33469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470   *) ac_try_echo=$ac_try;;
33471 esac
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473   (eval "$ac_try") 2>&5
33474   ac_status=$?
33475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476   (exit $ac_status); }; } &&
33477          { ac_try='test -s conftest$ac_exeext'
33478   { (case "(($ac_try" in
33479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480   *) ac_try_echo=$ac_try;;
33481 esac
33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483   (eval "$ac_try") 2>&5
33484   ac_status=$?
33485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486   (exit $ac_status); }; }; then
33487   ac_cv_lib_acl_acl_get_file=yes
33488 else
33489   echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33491
33492         ac_cv_lib_acl_acl_get_file=no
33493 fi
33494
33495 rm -f core conftest.err conftest.$ac_objext \
33496       conftest$ac_exeext conftest.$ac_ext
33497 LIBS=$ac_check_lib_save_LIBS
33498 fi
33499 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33500 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33501 if test $ac_cv_lib_acl_acl_get_file = yes; then
33502   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33503 else
33504   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33505 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33506 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33507   echo $ECHO_N "(cached) $ECHO_C" >&6
33508 else
33509   ac_check_lib_save_LIBS=$LIBS
33510 LIBS="-lsec  $LIBS"
33511 cat >conftest.$ac_ext <<_ACEOF
33512 /* confdefs.h.  */
33513 _ACEOF
33514 cat confdefs.h >>conftest.$ac_ext
33515 cat >>conftest.$ac_ext <<_ACEOF
33516 /* end confdefs.h.  */
33517
33518 /* Override any GCC internal prototype to avoid an error.
33519    Use char because int might match the return type of a GCC
33520    builtin and then its argument prototype would still apply.  */
33521 #ifdef __cplusplus
33522 extern "C"
33523 #endif
33524 char acltotext ();
33525 int
33526 main ()
33527 {
33528 return acltotext ();
33529   ;
33530   return 0;
33531 }
33532 _ACEOF
33533 rm -f conftest.$ac_objext conftest$ac_exeext
33534 if { (ac_try="$ac_link"
33535 case "(($ac_try" in
33536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537   *) ac_try_echo=$ac_try;;
33538 esac
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540   (eval "$ac_link") 2>conftest.er1
33541   ac_status=$?
33542   grep -v '^ *+' conftest.er1 >conftest.err
33543   rm -f conftest.er1
33544   cat conftest.err >&5
33545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); } &&
33547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33548   { (case "(($ac_try" in
33549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33550   *) ac_try_echo=$ac_try;;
33551 esac
33552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33553   (eval "$ac_try") 2>&5
33554   ac_status=$?
33555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556   (exit $ac_status); }; } &&
33557          { ac_try='test -s conftest$ac_exeext'
33558   { (case "(($ac_try" in
33559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33560   *) ac_try_echo=$ac_try;;
33561 esac
33562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33563   (eval "$ac_try") 2>&5
33564   ac_status=$?
33565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566   (exit $ac_status); }; }; then
33567   ac_cv_lib_sec_acltotext=yes
33568 else
33569   echo "$as_me: failed program was:" >&5
33570 sed 's/^/| /' conftest.$ac_ext >&5
33571
33572         ac_cv_lib_sec_acltotext=no
33573 fi
33574
33575 rm -f core conftest.err conftest.$ac_objext \
33576       conftest$ac_exeext conftest.$ac_ext
33577 LIBS=$ac_check_lib_save_LIBS
33578 fi
33579 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33580 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33581 if test $ac_cv_lib_sec_acltotext = yes; then
33582   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33583 fi
33584
33585
33586 fi
33587
33588
33589 fi
33590
33591 if test $have_acl = yes; then
33592    cat >>confdefs.h <<\_ACEOF
33593 #define HAVE_ACL 1
33594 _ACEOF
33595
33596 fi
33597
33598 PTHREAD_LIB=""
33599 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33600 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33601 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33602   echo $ECHO_N "(cached) $ECHO_C" >&6
33603 else
33604   ac_check_lib_save_LIBS=$LIBS
33605 LIBS="-lpthread  $LIBS"
33606 cat >conftest.$ac_ext <<_ACEOF
33607 /* confdefs.h.  */
33608 _ACEOF
33609 cat confdefs.h >>conftest.$ac_ext
33610 cat >>conftest.$ac_ext <<_ACEOF
33611 /* end confdefs.h.  */
33612
33613 /* Override any GCC internal prototype to avoid an error.
33614    Use char because int might match the return type of a GCC
33615    builtin and then its argument prototype would still apply.  */
33616 #ifdef __cplusplus
33617 extern "C"
33618 #endif
33619 char pthread_create ();
33620 int
33621 main ()
33622 {
33623 return pthread_create ();
33624   ;
33625   return 0;
33626 }
33627 _ACEOF
33628 rm -f conftest.$ac_objext conftest$ac_exeext
33629 if { (ac_try="$ac_link"
33630 case "(($ac_try" in
33631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33632   *) ac_try_echo=$ac_try;;
33633 esac
33634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33635   (eval "$ac_link") 2>conftest.er1
33636   ac_status=$?
33637   grep -v '^ *+' conftest.er1 >conftest.err
33638   rm -f conftest.er1
33639   cat conftest.err >&5
33640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641   (exit $ac_status); } &&
33642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33643   { (case "(($ac_try" in
33644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645   *) ac_try_echo=$ac_try;;
33646 esac
33647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33648   (eval "$ac_try") 2>&5
33649   ac_status=$?
33650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651   (exit $ac_status); }; } &&
33652          { ac_try='test -s conftest$ac_exeext'
33653   { (case "(($ac_try" in
33654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33655   *) ac_try_echo=$ac_try;;
33656 esac
33657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33658   (eval "$ac_try") 2>&5
33659   ac_status=$?
33660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661   (exit $ac_status); }; }; then
33662   ac_cv_lib_pthread_pthread_create=yes
33663 else
33664   echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33666
33667         ac_cv_lib_pthread_pthread_create=no
33668 fi
33669
33670 rm -f core conftest.err conftest.$ac_objext \
33671       conftest$ac_exeext conftest.$ac_ext
33672 LIBS=$ac_check_lib_save_LIBS
33673 fi
33674 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33675 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33676 if test $ac_cv_lib_pthread_pthread_create = yes; then
33677   PTHREAD_LIB="-lpthread"
33678 else
33679   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33680 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33681 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33682   echo $ECHO_N "(cached) $ECHO_C" >&6
33683 else
33684   ac_check_lib_save_LIBS=$LIBS
33685 LIBS="-lpthreads  $LIBS"
33686 cat >conftest.$ac_ext <<_ACEOF
33687 /* confdefs.h.  */
33688 _ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h.  */
33692
33693 /* Override any GCC internal prototype to avoid an error.
33694    Use char because int might match the return type of a GCC
33695    builtin and then its argument prototype would still apply.  */
33696 #ifdef __cplusplus
33697 extern "C"
33698 #endif
33699 char pthread_create ();
33700 int
33701 main ()
33702 {
33703 return pthread_create ();
33704   ;
33705   return 0;
33706 }
33707 _ACEOF
33708 rm -f conftest.$ac_objext conftest$ac_exeext
33709 if { (ac_try="$ac_link"
33710 case "(($ac_try" in
33711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33712   *) ac_try_echo=$ac_try;;
33713 esac
33714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33715   (eval "$ac_link") 2>conftest.er1
33716   ac_status=$?
33717   grep -v '^ *+' conftest.er1 >conftest.err
33718   rm -f conftest.er1
33719   cat conftest.err >&5
33720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721   (exit $ac_status); } &&
33722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33723   { (case "(($ac_try" in
33724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725   *) ac_try_echo=$ac_try;;
33726 esac
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728   (eval "$ac_try") 2>&5
33729   ac_status=$?
33730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731   (exit $ac_status); }; } &&
33732          { ac_try='test -s conftest$ac_exeext'
33733   { (case "(($ac_try" in
33734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33735   *) ac_try_echo=$ac_try;;
33736 esac
33737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33738   (eval "$ac_try") 2>&5
33739   ac_status=$?
33740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741   (exit $ac_status); }; }; then
33742   ac_cv_lib_pthreads_pthread_create=yes
33743 else
33744   echo "$as_me: failed program was:" >&5
33745 sed 's/^/| /' conftest.$ac_ext >&5
33746
33747         ac_cv_lib_pthreads_pthread_create=no
33748 fi
33749
33750 rm -f core conftest.err conftest.$ac_objext \
33751       conftest$ac_exeext conftest.$ac_ext
33752 LIBS=$ac_check_lib_save_LIBS
33753 fi
33754 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33755 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33756 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33757   PTHREAD_LIB="-lpthreads"
33758 else
33759   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33760 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33761 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33762   echo $ECHO_N "(cached) $ECHO_C" >&6
33763 else
33764   ac_check_lib_save_LIBS=$LIBS
33765 LIBS="-lc_r  $LIBS"
33766 cat >conftest.$ac_ext <<_ACEOF
33767 /* confdefs.h.  */
33768 _ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h.  */
33772
33773 /* Override any GCC internal prototype to avoid an error.
33774    Use char because int might match the return type of a GCC
33775    builtin and then its argument prototype would still apply.  */
33776 #ifdef __cplusplus
33777 extern "C"
33778 #endif
33779 char pthread_create ();
33780 int
33781 main ()
33782 {
33783 return pthread_create ();
33784   ;
33785   return 0;
33786 }
33787 _ACEOF
33788 rm -f conftest.$ac_objext conftest$ac_exeext
33789 if { (ac_try="$ac_link"
33790 case "(($ac_try" in
33791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792   *) ac_try_echo=$ac_try;;
33793 esac
33794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795   (eval "$ac_link") 2>conftest.er1
33796   ac_status=$?
33797   grep -v '^ *+' conftest.er1 >conftest.err
33798   rm -f conftest.er1
33799   cat conftest.err >&5
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } &&
33802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33803   { (case "(($ac_try" in
33804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805   *) ac_try_echo=$ac_try;;
33806 esac
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808   (eval "$ac_try") 2>&5
33809   ac_status=$?
33810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811   (exit $ac_status); }; } &&
33812          { ac_try='test -s conftest$ac_exeext'
33813   { (case "(($ac_try" in
33814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815   *) ac_try_echo=$ac_try;;
33816 esac
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818   (eval "$ac_try") 2>&5
33819   ac_status=$?
33820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821   (exit $ac_status); }; }; then
33822   ac_cv_lib_c_r_pthread_create=yes
33823 else
33824   echo "$as_me: failed program was:" >&5
33825 sed 's/^/| /' conftest.$ac_ext >&5
33826
33827         ac_cv_lib_c_r_pthread_create=no
33828 fi
33829
33830 rm -f core conftest.err conftest.$ac_objext \
33831       conftest$ac_exeext conftest.$ac_ext
33832 LIBS=$ac_check_lib_save_LIBS
33833 fi
33834 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33835 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33836 if test $ac_cv_lib_c_r_pthread_create = yes; then
33837   PTHREAD_LIB="-lc_r"
33838 else
33839   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33840 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33841 if test "${ac_cv_func_pthread_create+set}" = set; then
33842   echo $ECHO_N "(cached) $ECHO_C" >&6
33843 else
33844   cat >conftest.$ac_ext <<_ACEOF
33845 /* confdefs.h.  */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h.  */
33850 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33852 #define pthread_create innocuous_pthread_create
33853
33854 /* System header to define __stub macros and hopefully few prototypes,
33855     which can conflict with char pthread_create (); below.
33856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33857     <limits.h> exists even on freestanding compilers.  */
33858
33859 #ifdef __STDC__
33860 # include <limits.h>
33861 #else
33862 # include <assert.h>
33863 #endif
33864
33865 #undef pthread_create
33866
33867 /* Override any GCC internal prototype to avoid an error.
33868    Use char because int might match the return type of a GCC
33869    builtin and then its argument prototype would still apply.  */
33870 #ifdef __cplusplus
33871 extern "C"
33872 #endif
33873 char pthread_create ();
33874 /* The GNU C library defines this for functions which it implements
33875     to always fail with ENOSYS.  Some functions are actually named
33876     something starting with __ and the normal name is an alias.  */
33877 #if defined __stub_pthread_create || defined __stub___pthread_create
33878 choke me
33879 #endif
33880
33881 int
33882 main ()
33883 {
33884 return pthread_create ();
33885   ;
33886   return 0;
33887 }
33888 _ACEOF
33889 rm -f conftest.$ac_objext conftest$ac_exeext
33890 if { (ac_try="$ac_link"
33891 case "(($ac_try" in
33892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33893   *) ac_try_echo=$ac_try;;
33894 esac
33895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33896   (eval "$ac_link") 2>conftest.er1
33897   ac_status=$?
33898   grep -v '^ *+' conftest.er1 >conftest.err
33899   rm -f conftest.er1
33900   cat conftest.err >&5
33901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902   (exit $ac_status); } &&
33903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33904   { (case "(($ac_try" in
33905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906   *) ac_try_echo=$ac_try;;
33907 esac
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909   (eval "$ac_try") 2>&5
33910   ac_status=$?
33911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912   (exit $ac_status); }; } &&
33913          { ac_try='test -s conftest$ac_exeext'
33914   { (case "(($ac_try" in
33915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33916   *) ac_try_echo=$ac_try;;
33917 esac
33918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33919   (eval "$ac_try") 2>&5
33920   ac_status=$?
33921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922   (exit $ac_status); }; }; then
33923   ac_cv_func_pthread_create=yes
33924 else
33925   echo "$as_me: failed program was:" >&5
33926 sed 's/^/| /' conftest.$ac_ext >&5
33927
33928         ac_cv_func_pthread_create=no
33929 fi
33930
33931 rm -f core conftest.err conftest.$ac_objext \
33932       conftest$ac_exeext conftest.$ac_ext
33933 fi
33934 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33935 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33936
33937
33938 fi
33939
33940
33941 fi
33942
33943
33944 fi
33945
33946
33947
33948 cat >>confdefs.h <<\_ACEOF
33949 #define FDLIBS 1
33950 _ACEOF
33951
33952
33953
33954 CFLAGS=${CFLAGS--O}
33955
33956 if test x$have_gcc = xyes ; then
33957    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33958    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33959 fi
33960 LDFLAGS=${LDFLAGS--O}
33961 DB_LIBS="${SQL_LFLAGS}"
33962 CPPFLAGS="$CPPFLAGS"
33963 CFLAGS="$CFLAGS"
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980 OBJLIST=
33981
33982
33983 lld="lld"
33984 llu="llu"
33985
33986 WCFLAGS=
33987 WLDFLAGS=
33988
33989 #
33990 # Finally we set appropriate distribution specific
33991 #  variables and defaults
33992 #
33993 # PFILES are platform specific files
33994 PFILES="platforms/Makefile"
33995 PSCMD="ps -e"
33996 WIN32=
33997 MACOSX=
33998 hostname=`uname -n | cut -d '.' -f 1`
33999 if test x${hostname} = x ; then
34000   hostname="localhost"
34001 fi
34002 case "$DISTNAME" in
34003 aix)
34004         DISTVER=`uname -r`
34005         PSCMD="ps -e -o pid,comm"
34006         PFILES="${PFILES} \
34007            platforms/aix/Makefile"
34008         TAPEDRIVE="/dev/rmt0.1"
34009   ;;
34010 alpha)
34011         DISTVER=`uname -r`
34012         PTHREAD_LIB="-lpthread -lexc"
34013         if test "${CC}" = "gcc" ; then
34014            lld="lld"
34015            llu="llu"
34016         else
34017            lld="ld"
34018            llu="lu"
34019         fi
34020         TAPEDRIVE="/dev/nrmt0"
34021   ;;
34022 bsdi)
34023         DISTVER=`uname -a |awk '{print $3}'`
34024         TAPEDRIVE="/dev/nrmt0"
34025         PTHREAD_LIB="-pthread"
34026         CFLAGS="${CFLAGS} -pthread"
34027         PSCMD="ps -ax -o pid,command"
34028         lld="qd"
34029         llu="qu"
34030         PFILES="${PFILES} \
34031             platforms/bsdi/Makefile \
34032             platforms/bsdi/bacula-fd \
34033             platforms/bsdi/bacula-sd \
34034             platforms/bsdi/bacula-dir"
34035         largefile_support="yes"
34036   ;;
34037 cygwin)
34038         DISTVER=`uname -a |awk '{print $3}'`
34039         TAPEDRIVE="/dev/nrst0"
34040         WIN32=win32
34041         WCFLAGS="-mwindows"
34042         WLDFLAGS="-mwindows"
34043   ;;
34044 darwin)
34045         DISTVER=`uname -r`
34046         TAPEDRIVE="/dev/nst0"
34047         PSCMD="ps -e -o pid,command"
34048         MACOSX=macosx
34049         PFILES="${PFILES} \
34050            platforms/darwin/Makefile"
34051   ;;
34052 debian)
34053         DISTVER=`cat /etc/debian_version`
34054         TAPEDRIVE="/dev/nrst0"
34055         PSCMD="ps -e -o pid,command"
34056   ;;
34057 freebsd)
34058         DISTVER=`uname -a |awk '{print $3}'`
34059         VER=`echo $DISTVER | cut -c 1`
34060         if test x$VER = x4 ; then
34061            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34062            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34063         fi
34064         lld="qd"
34065         llu="qu"
34066         TAPEDRIVE="/dev/nrsa0"
34067         PSCMD="ps -ax -o pid,command"
34068         PFILES="${PFILES} \
34069             platforms/freebsd/Makefile \
34070             platforms/freebsd/bacula-fd \
34071             platforms/freebsd/bacula-sd \
34072             platforms/freebsd/bacula-dir"
34073         largefile_support="yes"
34074   ;;
34075 hpux)
34076         PSCMD="UNIX95=1; ps -e -o pid,comm"
34077         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34078         DISTVER=`uname -r`
34079         TAPEDRIVE="/dev/rmt/0hnb"
34080         PTHREAD_LIB="-lpthread"
34081         cat >>confdefs.h <<\_ACEOF
34082 #define _INCLUDE_LONGLONG 1
34083 _ACEOF
34084
34085   ;;
34086 irix)
34087         DISTVER=`uname -r`
34088         TAPEDRIVE="/dev/rmt/0cbn"
34089         PSCMD="ps -e -o pid,comm"
34090         PFILES="${PFILES} \
34091             platforms/irix/Makefile \
34092             platforms/irix/bacula-fd \
34093             platforms/irix/bacula-sd \
34094             platforms/irix/bacula-dir"
34095   ;;
34096 netbsd)
34097         DISTVER=`uname -a |awk '{print $3}'`
34098         lld="qd"
34099         llu="qu"
34100         TAPEDRIVE="/dev/nrst0"
34101         PSCMD="ps -ax -o pid,command"
34102         PTHREAD_LIB="-pthread"
34103         CFLAGS="${CFLAGS} -pthread"
34104   ;;
34105 openbsd)
34106         DISTVER=`uname -a |awk '{print $3}'`
34107         lld="qd"
34108         llu="qu"
34109         TAPEDRIVE="/dev/nrst0"
34110         PSCMD="ps -ax -o pid,command"
34111         PTHREAD_LIB="-pthread"
34112         CFLAGS="${CFLAGS} -pthread"
34113         PFILES="${PFILES} \
34114             platforms/openbsd/Makefile \
34115             platforms/openbsd/bacula-fd \
34116             platforms/openbsd/bacula-sd \
34117             platforms/openbsd/bacula-dir"
34118   ;;
34119 redhat)
34120         if test -f /etc/whitebox-release ; then
34121            f=/etc/whitebox-release
34122         else
34123            f=/etc/redhat-release
34124         fi
34125         if test `cat $f | grep release |\
34126                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34127            DISTVER="Enterprise "`cat $f | grep release |\
34128                     cut -f 6 -d ' '`
34129         else
34130             DISTVER=`cat /etc/redhat-release | grep release |\
34131                      cut -f 5 -d ' '`
34132         fi
34133         TAPEDRIVE="/dev/nst0"
34134         PSCMD="ps -e -o pid,command"
34135         PFILES="${PFILES} \
34136             platforms/redhat/Makefile \
34137             platforms/redhat/bacula-fd \
34138             platforms/redhat/bacula-sd \
34139             platforms/redhat/bacula-dir \
34140             platforms/redhat/bacula.spec \
34141             "
34142   ;;
34143 mandrake)
34144         DISTVER=`cat /etc/mandrake-release | grep release |\
34145            cut -f 5 -d ' '`
34146         TAPEDRIVE="/dev/nst0"
34147         PSCMD="ps -e -o pid,command"
34148         PFILES="${PFILES} \
34149             platforms/mandrake/Makefile \
34150             platforms/mandrake/bacula-fd \
34151             platforms/mandrake/bacula-sd \
34152             platforms/mandrake/bacula-dir \
34153             platforms/mandrake/bacula.spec \
34154             "
34155   ;;
34156 gentoo)
34157         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34158         TAPEDRIVE="/dev/nst0"
34159         PSCMD="ps -e -o pid,command"
34160         PFILES="${PFILES} \
34161             platforms/gentoo/Makefile \
34162          platforms/gentoo/bacula-init \
34163             platforms/gentoo/bacula-fd \
34164             platforms/gentoo/bacula-sd \
34165             platforms/gentoo/bacula-dir"
34166   ;;
34167 slackware)
34168         DISTVER=`cat /etc/slackware-version`
34169         TAPEDRIVE="/dev/nst0"
34170         PSCMD="ps -e -o pid,command"
34171         PFILES="${PFILES} \
34172             platforms/slackware/Makefile \
34173             platforms/slackware/rc.bacula-fd \
34174             platforms/slackware/rc.bacula-sd \
34175             platforms/slackware/rc.bacula-dir\
34176             platforms/slackware/functions.bacula"
34177   ;;
34178 solaris)
34179         DISTVER=`uname -r`
34180         TAPEDRIVE="/dev/rmt/0cbn"
34181         PSCMD="ps -e -o pid,comm"
34182         PFILES="${PFILES} \
34183             platforms/solaris/Makefile \
34184             platforms/solaris/bacula-fd \
34185             platforms/solaris/bacula-sd \
34186             platforms/solaris/bacula-dir"
34187         if test x$DISTVER = x5.6 ; then
34188             cat >>confdefs.h <<\_ACEOF
34189 #define HAVE_OLD_SOCKOPT 1
34190 _ACEOF
34191
34192         fi
34193         LIBS="$LIBS -lresolv"
34194   ;;
34195 suse)
34196         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34197             cut -f 3 -d ' '`
34198         TAPEDRIVE="/dev/nst0"
34199         PSCMD="ps -e -o pid,command"
34200         PFILES="${PFILES} \
34201             platforms/suse/Makefile \
34202             platforms/suse/bacula-fd \
34203             platforms/suse/bacula-sd \
34204             platforms/suse/bacula-dir \
34205             platforms/suse/bacula \
34206             platforms/suse/bacula.spec"
34207   ;;
34208 suse5)
34209         DISTNAME=suse
34210         DISTVER=5.x
34211         TAPEDRIVE="/dev/nst0"
34212         PSCMD="ps -e -o pid,command"
34213         PFILES="${PFILES} \
34214             platforms/suse/Makefile \
34215             platforms/suse/bacula-fd \
34216             platforms/suse/bacula-sd \
34217             platforms/suse/bacula-dir"
34218   ;;
34219 unknown)
34220         DISTVER=unknown
34221         TAPEDRIVE="/dev/nst0"
34222   ;;
34223 *)
34224   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34225   ;;
34226 esac
34227
34228
34229
34230 LIBS="$PTHREAD_LIB $LIBS"
34231
34232 cat >>confdefs.h <<_ACEOF
34233 #define lld "$lld"
34234 _ACEOF
34235
34236 cat >>confdefs.h <<_ACEOF
34237 #define llu "$llu"
34238 _ACEOF
34239
34240
34241
34242
34243
34244
34245
34246
34247 MCOMMON=./autoconf/Make.common
34248
34249
34250 if test "x${subsysdir}" = "x${sbindir}" ; then
34251    echo " "
34252    echo " "
34253    echo "You have set both --sbindir and --with-subsys-dir"
34254    echo "  equal to: ${subsysdir} "
34255    echo "This is not permitted. Please reconfigure."
34256    echo " "
34257    echo "Aborting configuration ..."
34258    echo " "
34259    echo " "
34260    exit 1
34261 fi
34262
34263 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"
34264
34265 ac_config_commands="$ac_config_commands default"
34266
34267 cat >confcache <<\_ACEOF
34268 # This file is a shell script that caches the results of configure
34269 # tests run on this system so they can be shared between configure
34270 # scripts and configure runs, see configure's option --config-cache.
34271 # It is not useful on other systems.  If it contains results you don't
34272 # want to keep, you may remove or edit it.
34273 #
34274 # config.status only pays attention to the cache file if you give it
34275 # the --recheck option to rerun configure.
34276 #
34277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34279 # following values.
34280
34281 _ACEOF
34282
34283 # The following way of writing the cache mishandles newlines in values,
34284 # but we know of no workaround that is simple, portable, and efficient.
34285 # So, we kill variables containing newlines.
34286 # Ultrix sh set writes to stderr and can't be redirected directly,
34287 # and sets the high bit in the cache file unless we assign to the vars.
34288 (
34289   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34290     eval ac_val=\$$ac_var
34291     case $ac_val in #(
34292     *${as_nl}*)
34293       case $ac_var in #(
34294       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34295 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34296       esac
34297       case $ac_var in #(
34298       _ | IFS | as_nl) ;; #(
34299       *) $as_unset $ac_var ;;
34300       esac ;;
34301     esac
34302   done
34303
34304   (set) 2>&1 |
34305     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34306     *${as_nl}ac_space=\ *)
34307       # `set' does not quote correctly, so add quotes (double-quote
34308       # substitution turns \\\\ into \\, and sed turns \\ into \).
34309       sed -n \
34310         "s/'/'\\\\''/g;
34311           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34312       ;; #(
34313     *)
34314       # `set' quotes correctly as required by POSIX, so do not add quotes.
34315       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34316       ;;
34317     esac |
34318     sort
34319 ) |
34320   sed '
34321      /^ac_cv_env_/b end
34322      t clear
34323      :clear
34324      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34325      t end
34326      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34327      :end' >>confcache
34328 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34329   if test -w "$cache_file"; then
34330     test "x$cache_file" != "x/dev/null" &&
34331       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34332 echo "$as_me: updating cache $cache_file" >&6;}
34333     cat confcache >$cache_file
34334   else
34335     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34336 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34337   fi
34338 fi
34339 rm -f confcache
34340
34341 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34342 # Let make expand exec_prefix.
34343 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34344
34345 DEFS=-DHAVE_CONFIG_H
34346
34347 ac_libobjs=
34348 ac_ltlibobjs=
34349 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34350   # 1. Remove the extension, and $U if already installed.
34351   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34352   ac_i=`echo "$ac_i" | sed "$ac_script"`
34353   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34354   #    will be set to the directory where LIBOBJS objects are built.
34355   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34356   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34357 done
34358 LIBOBJS=$ac_libobjs
34359
34360 LTLIBOBJS=$ac_ltlibobjs
34361
34362
34363
34364 : ${CONFIG_STATUS=./config.status}
34365 ac_clean_files_save=$ac_clean_files
34366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34369 cat >$CONFIG_STATUS <<_ACEOF
34370 #! $SHELL
34371 # Generated by $as_me.
34372 # Run this file to recreate the current configuration.
34373 # Compiler output produced by configure, useful for debugging
34374 # configure, is in config.log if it exists.
34375
34376 debug=false
34377 ac_cs_recheck=false
34378 ac_cs_silent=false
34379 SHELL=\${CONFIG_SHELL-$SHELL}
34380 _ACEOF
34381
34382 cat >>$CONFIG_STATUS <<\_ACEOF
34383 ## --------------------- ##
34384 ## M4sh Initialization.  ##
34385 ## --------------------- ##
34386
34387 # Be Bourne compatible
34388 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34389   emulate sh
34390   NULLCMD=:
34391   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34392   # is contrary to our usage.  Disable this feature.
34393   alias -g '${1+"$@"}'='"$@"'
34394   setopt NO_GLOB_SUBST
34395 else
34396   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34397 fi
34398 BIN_SH=xpg4; export BIN_SH # for Tru64
34399 DUALCASE=1; export DUALCASE # for MKS sh
34400
34401
34402 # PATH needs CR
34403 # Avoid depending upon Character Ranges.
34404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34407 as_cr_digits='0123456789'
34408 as_cr_alnum=$as_cr_Letters$as_cr_digits
34409
34410 # The user is always right.
34411 if test "${PATH_SEPARATOR+set}" != set; then
34412   echo "#! /bin/sh" >conf$$.sh
34413   echo  "exit 0"   >>conf$$.sh
34414   chmod +x conf$$.sh
34415   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34416     PATH_SEPARATOR=';'
34417   else
34418     PATH_SEPARATOR=:
34419   fi
34420   rm -f conf$$.sh
34421 fi
34422
34423 # Support unset when possible.
34424 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34425   as_unset=unset
34426 else
34427   as_unset=false
34428 fi
34429
34430
34431 # IFS
34432 # We need space, tab and new line, in precisely that order.  Quoting is
34433 # there to prevent editors from complaining about space-tab.
34434 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34435 # splitting by setting IFS to empty value.)
34436 as_nl='
34437 '
34438 IFS=" ""        $as_nl"
34439
34440 # Find who we are.  Look in the path if we contain no directory separator.
34441 case $0 in
34442   *[\\/]* ) as_myself=$0 ;;
34443   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34444 for as_dir in $PATH
34445 do
34446   IFS=$as_save_IFS
34447   test -z "$as_dir" && as_dir=.
34448   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34449 done
34450 IFS=$as_save_IFS
34451
34452      ;;
34453 esac
34454 # We did not find ourselves, most probably we were run as `sh COMMAND'
34455 # in which case we are not to be found in the path.
34456 if test "x$as_myself" = x; then
34457   as_myself=$0
34458 fi
34459 if test ! -f "$as_myself"; then
34460   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34461   { (exit 1); exit 1; }
34462 fi
34463
34464 # Work around bugs in pre-3.0 UWIN ksh.
34465 for as_var in ENV MAIL MAILPATH
34466 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34467 done
34468 PS1='$ '
34469 PS2='> '
34470 PS4='+ '
34471
34472 # NLS nuisances.
34473 for as_var in \
34474   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34475   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34476   LC_TELEPHONE LC_TIME
34477 do
34478   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34479     eval $as_var=C; export $as_var
34480   else
34481     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34482   fi
34483 done
34484
34485 # Required to use basename.
34486 if expr a : '\(a\)' >/dev/null 2>&1 &&
34487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34488   as_expr=expr
34489 else
34490   as_expr=false
34491 fi
34492
34493 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34494   as_basename=basename
34495 else
34496   as_basename=false
34497 fi
34498
34499
34500 # Name of the executable.
34501 as_me=`$as_basename -- "$0" ||
34502 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34503          X"$0" : 'X\(//\)$' \| \
34504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34505 echo X/"$0" |
34506     sed '/^.*\/\([^/][^/]*\)\/*$/{
34507             s//\1/
34508             q
34509           }
34510           /^X\/\(\/\/\)$/{
34511             s//\1/
34512             q
34513           }
34514           /^X\/\(\/\).*/{
34515             s//\1/
34516             q
34517           }
34518           s/.*/./; q'`
34519
34520 # CDPATH.
34521 $as_unset CDPATH
34522
34523
34524
34525   as_lineno_1=$LINENO
34526   as_lineno_2=$LINENO
34527   test "x$as_lineno_1" != "x$as_lineno_2" &&
34528   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34529
34530   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34531   # uniformly replaced by the line number.  The first 'sed' inserts a
34532   # line-number line after each line using $LINENO; the second 'sed'
34533   # does the real work.  The second script uses 'N' to pair each
34534   # line-number line with the line containing $LINENO, and appends
34535   # trailing '-' during substitution so that $LINENO is not a special
34536   # case at line end.
34537   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34538   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34539   # E. McMahon (1931-1989) for sed's syntax.  :-)
34540   sed -n '
34541     p
34542     /[$]LINENO/=
34543   ' <$as_myself |
34544     sed '
34545       s/[$]LINENO.*/&-/
34546       t lineno
34547       b
34548       :lineno
34549       N
34550       :loop
34551       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34552       t loop
34553       s/-\n.*//
34554     ' >$as_me.lineno &&
34555   chmod +x "$as_me.lineno" ||
34556     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34557    { (exit 1); exit 1; }; }
34558
34559   # Don't try to exec as it changes $[0], causing all sort of problems
34560   # (the dirname of $[0] is not the place where we might find the
34561   # original and so on.  Autoconf is especially sensitive to this).
34562   . "./$as_me.lineno"
34563   # Exit status is that of the last command.
34564   exit
34565 }
34566
34567
34568 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34569   as_dirname=dirname
34570 else
34571   as_dirname=false
34572 fi
34573
34574 ECHO_C= ECHO_N= ECHO_T=
34575 case `echo -n x` in
34576 -n*)
34577   case `echo 'x\c'` in
34578   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34579   *)   ECHO_C='\c';;
34580   esac;;
34581 *)
34582   ECHO_N='-n';;
34583 esac
34584
34585 if expr a : '\(a\)' >/dev/null 2>&1 &&
34586    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34587   as_expr=expr
34588 else
34589   as_expr=false
34590 fi
34591
34592 rm -f conf$$ conf$$.exe conf$$.file
34593 if test -d conf$$.dir; then
34594   rm -f conf$$.dir/conf$$.file
34595 else
34596   rm -f conf$$.dir
34597   mkdir conf$$.dir
34598 fi
34599 echo >conf$$.file
34600 if ln -s conf$$.file conf$$ 2>/dev/null; then
34601   as_ln_s='ln -s'
34602   # ... but there are two gotchas:
34603   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34604   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34605   # In both cases, we have to default to `cp -p'.
34606   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34607     as_ln_s='cp -p'
34608 elif ln conf$$.file conf$$ 2>/dev/null; then
34609   as_ln_s=ln
34610 else
34611   as_ln_s='cp -p'
34612 fi
34613 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34614 rmdir conf$$.dir 2>/dev/null
34615
34616 if mkdir -p . 2>/dev/null; then
34617   as_mkdir_p=:
34618 else
34619   test -d ./-p && rmdir ./-p
34620   as_mkdir_p=false
34621 fi
34622
34623 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34624 # systems may use methods other than mode bits to determine executability.
34625 cat >conf$$.file <<_ASEOF
34626 #! /bin/sh
34627 exit 0
34628 _ASEOF
34629 chmod +x conf$$.file
34630 if test -x conf$$.file >/dev/null 2>&1; then
34631   as_executable_p="test -x"
34632 else
34633   as_executable_p=:
34634 fi
34635 rm -f conf$$.file
34636
34637 # Sed expression to map a string onto a valid CPP name.
34638 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34639
34640 # Sed expression to map a string onto a valid variable name.
34641 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34642
34643
34644 exec 6>&1
34645
34646 # Save the log message, to keep $[0] and so on meaningful, and to
34647 # report actual input values of CONFIG_FILES etc. instead of their
34648 # values after options handling.
34649 ac_log="
34650 This file was extended by $as_me, which was
34651 generated by GNU Autoconf 2.60.  Invocation command line was
34652
34653   CONFIG_FILES    = $CONFIG_FILES
34654   CONFIG_HEADERS  = $CONFIG_HEADERS
34655   CONFIG_LINKS    = $CONFIG_LINKS
34656   CONFIG_COMMANDS = $CONFIG_COMMANDS
34657   $ $0 $@
34658
34659 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34660 "
34661
34662 _ACEOF
34663
34664 cat >>$CONFIG_STATUS <<_ACEOF
34665 # Files that config.status was made for.
34666 config_files="$ac_config_files"
34667 config_headers="$ac_config_headers"
34668 config_commands="$ac_config_commands"
34669
34670 _ACEOF
34671
34672 cat >>$CONFIG_STATUS <<\_ACEOF
34673 ac_cs_usage="\
34674 \`$as_me' instantiates files from templates according to the
34675 current configuration.
34676
34677 Usage: $0 [OPTIONS] [FILE]...
34678
34679   -h, --help       print this help, then exit
34680   -V, --version    print version number, then exit
34681   -q, --quiet      do not print progress messages
34682   -d, --debug      don't remove temporary files
34683       --recheck    update $as_me by reconfiguring in the same conditions
34684   --file=FILE[:TEMPLATE]
34685                    instantiate the configuration file FILE
34686   --header=FILE[:TEMPLATE]
34687                    instantiate the configuration header FILE
34688
34689 Configuration files:
34690 $config_files
34691
34692 Configuration headers:
34693 $config_headers
34694
34695 Configuration commands:
34696 $config_commands
34697
34698 Report bugs to <bug-autoconf@gnu.org>."
34699
34700 _ACEOF
34701 cat >>$CONFIG_STATUS <<_ACEOF
34702 ac_cs_version="\\
34703 config.status
34704 configured by $0, generated by GNU Autoconf 2.60,
34705   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34706
34707 Copyright (C) 2006 Free Software Foundation, Inc.
34708 This config.status script is free software; the Free Software Foundation
34709 gives unlimited permission to copy, distribute and modify it."
34710
34711 ac_pwd='$ac_pwd'
34712 srcdir='$srcdir'
34713 INSTALL='$INSTALL'
34714 _ACEOF
34715
34716 cat >>$CONFIG_STATUS <<\_ACEOF
34717 # If no file are specified by the user, then we need to provide default
34718 # value.  By we need to know if files were specified by the user.
34719 ac_need_defaults=:
34720 while test $# != 0
34721 do
34722   case $1 in
34723   --*=*)
34724     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34725     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34726     ac_shift=:
34727     ;;
34728   *)
34729     ac_option=$1
34730     ac_optarg=$2
34731     ac_shift=shift
34732     ;;
34733   esac
34734
34735   case $ac_option in
34736   # Handling of the options.
34737   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34738     ac_cs_recheck=: ;;
34739   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34740     echo "$ac_cs_version"; exit ;;
34741   --debug | --debu | --deb | --de | --d | -d )
34742     debug=: ;;
34743   --file | --fil | --fi | --f )
34744     $ac_shift
34745     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34746     ac_need_defaults=false;;
34747   --header | --heade | --head | --hea )
34748     $ac_shift
34749     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34750     ac_need_defaults=false;;
34751   --he | --h)
34752     # Conflict between --help and --header
34753     { echo "$as_me: error: ambiguous option: $1
34754 Try \`$0 --help' for more information." >&2
34755    { (exit 1); exit 1; }; };;
34756   --help | --hel | -h )
34757     echo "$ac_cs_usage"; exit ;;
34758   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34759   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34760     ac_cs_silent=: ;;
34761
34762   # This is an error.
34763   -*) { echo "$as_me: error: unrecognized option: $1
34764 Try \`$0 --help' for more information." >&2
34765    { (exit 1); exit 1; }; } ;;
34766
34767   *) ac_config_targets="$ac_config_targets $1"
34768      ac_need_defaults=false ;;
34769
34770   esac
34771   shift
34772 done
34773
34774 ac_configure_extra_args=
34775
34776 if $ac_cs_silent; then
34777   exec 6>/dev/null
34778   ac_configure_extra_args="$ac_configure_extra_args --silent"
34779 fi
34780
34781 _ACEOF
34782 cat >>$CONFIG_STATUS <<_ACEOF
34783 if \$ac_cs_recheck; then
34784   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34785   CONFIG_SHELL=$SHELL
34786   export CONFIG_SHELL
34787   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34788 fi
34789
34790 _ACEOF
34791 cat >>$CONFIG_STATUS <<\_ACEOF
34792 exec 5>>config.log
34793 {
34794   echo
34795   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34796 ## Running $as_me. ##
34797 _ASBOX
34798   echo "$ac_log"
34799 } >&5
34800
34801 _ACEOF
34802 cat >>$CONFIG_STATUS <<_ACEOF
34803 #
34804 # INIT-COMMANDS
34805 #
34806 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34807     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34808     # from automake.
34809     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34810     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34811     LINGUAS="${LINGUAS-%UNSET%}"
34812
34813
34814 _ACEOF
34815
34816 cat >>$CONFIG_STATUS <<\_ACEOF
34817
34818 # Handling of arguments.
34819 for ac_config_target in $ac_config_targets
34820 do
34821   case $ac_config_target in
34822     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34823     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34824     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34825     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34826     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34827     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34828     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34829     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34830     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34831     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34832     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34833     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34834     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34835     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34836     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34837     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34838     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34839     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34840     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34841     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34842     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34843     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34844     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34845     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34846     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34847     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34848     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34849     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34850     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34851     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34852     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34853     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34854     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34855     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34856     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34857     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34858     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34859     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34860     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34861     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34862     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34863     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34864     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34865     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34866     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34867     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34868     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34869     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34870     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34871     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34872     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34873     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34874     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34875     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34876     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34877     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34878     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34879     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34880     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34881     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34882     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34883     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34884     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34885     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34886     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34887     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34888     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34889     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34890     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34891     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34892     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34893     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34894     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34895     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34896     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34897     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34898     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34899     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34900     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34901     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34902     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34903     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34904     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34905     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34906     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34907     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34908     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34909     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34910     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34911     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34912     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34913     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34914     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34915     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34916     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34917     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34918     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34919     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34920     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34921     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34922     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34923     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34924     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34925     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34926     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34927     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34928
34929   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34930 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34931    { (exit 1); exit 1; }; };;
34932   esac
34933 done
34934
34935
34936 # If the user did not use the arguments to specify the items to instantiate,
34937 # then the envvar interface is used.  Set only those that are not.
34938 # We use the long form for the default assignment because of an extremely
34939 # bizarre bug on SunOS 4.1.3.
34940 if $ac_need_defaults; then
34941   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34942   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34943   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34944 fi
34945
34946 # Have a temporary directory for convenience.  Make it in the build tree
34947 # simply because there is no reason against having it here, and in addition,
34948 # creating and moving files from /tmp can sometimes cause problems.
34949 # Hook for its removal unless debugging.
34950 # Note that there is a small window in which the directory will not be cleaned:
34951 # after its creation but before its name has been assigned to `$tmp'.
34952 $debug ||
34953 {
34954   tmp=
34955   trap 'exit_status=$?
34956   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34957 ' 0
34958   trap '{ (exit 1); exit 1; }' 1 2 13 15
34959 }
34960 # Create a (secure) tmp directory for tmp files.
34961
34962 {
34963   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34964   test -n "$tmp" && test -d "$tmp"
34965 }  ||
34966 {
34967   tmp=./conf$$-$RANDOM
34968   (umask 077 && mkdir "$tmp")
34969 } ||
34970 {
34971    echo "$me: cannot create a temporary directory in ." >&2
34972    { (exit 1); exit 1; }
34973 }
34974
34975 #
34976 # Set up the sed scripts for CONFIG_FILES section.
34977 #
34978
34979 # No need to generate the scripts if there are no CONFIG_FILES.
34980 # This happens for instance when ./config.status config.h
34981 if test -n "$CONFIG_FILES"; then
34982
34983 _ACEOF
34984
34985 # Create sed commands to just substitute file output variables.
34986
34987 # Remaining file output variables are in a fragment that also has non-file
34988 # output varibles.
34989
34990
34991
34992 ac_delim='%!_!# '
34993 for ac_last_try in false false false false false :; do
34994   cat >conf$$subs.sed <<_ACEOF
34995 SHELL!$SHELL$ac_delim
34996 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34997 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34998 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34999 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35000 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35001 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35002 exec_prefix!$exec_prefix$ac_delim
35003 prefix!$prefix$ac_delim
35004 program_transform_name!$program_transform_name$ac_delim
35005 bindir!$bindir$ac_delim
35006 sbindir!$sbindir$ac_delim
35007 libexecdir!$libexecdir$ac_delim
35008 datarootdir!$datarootdir$ac_delim
35009 datadir!$datadir$ac_delim
35010 sysconfdir!$sysconfdir$ac_delim
35011 sharedstatedir!$sharedstatedir$ac_delim
35012 localstatedir!$localstatedir$ac_delim
35013 includedir!$includedir$ac_delim
35014 oldincludedir!$oldincludedir$ac_delim
35015 docdir!$docdir$ac_delim
35016 infodir!$infodir$ac_delim
35017 htmldir!$htmldir$ac_delim
35018 dvidir!$dvidir$ac_delim
35019 pdfdir!$pdfdir$ac_delim
35020 psdir!$psdir$ac_delim
35021 libdir!$libdir$ac_delim
35022 localedir!$localedir$ac_delim
35023 mandir!$mandir$ac_delim
35024 DEFS!$DEFS$ac_delim
35025 ECHO_C!$ECHO_C$ac_delim
35026 ECHO_N!$ECHO_N$ac_delim
35027 ECHO_T!$ECHO_T$ac_delim
35028 LIBS!$LIBS$ac_delim
35029 build_alias!$build_alias$ac_delim
35030 host_alias!$host_alias$ac_delim
35031 target_alias!$target_alias$ac_delim
35032 BUILD_DIR!$BUILD_DIR$ac_delim
35033 TOP_DIR!$TOP_DIR$ac_delim
35034 TRUEPRG!$TRUEPRG$ac_delim
35035 FALSEPRG!$FALSEPRG$ac_delim
35036 VERSION!$VERSION$ac_delim
35037 DATE!$DATE$ac_delim
35038 LSMDATE!$LSMDATE$ac_delim
35039 CC!$CC$ac_delim
35040 CFLAGS!$CFLAGS$ac_delim
35041 LDFLAGS!$LDFLAGS$ac_delim
35042 CPPFLAGS!$CPPFLAGS$ac_delim
35043 ac_ct_CC!$ac_ct_CC$ac_delim
35044 EXEEXT!$EXEEXT$ac_delim
35045 OBJEXT!$OBJEXT$ac_delim
35046 CXX!$CXX$ac_delim
35047 CXXFLAGS!$CXXFLAGS$ac_delim
35048 ac_ct_CXX!$ac_ct_CXX$ac_delim
35049 CPP!$CPP$ac_delim
35050 GREP!$GREP$ac_delim
35051 EGREP!$EGREP$ac_delim
35052 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35053 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35054 INSTALL_DATA!$INSTALL_DATA$ac_delim
35055 RANLIB!$RANLIB$ac_delim
35056 MV!$MV$ac_delim
35057 RM!$RM$ac_delim
35058 CP!$CP$ac_delim
35059 SED!$SED$ac_delim
35060 ECHO!$ECHO$ac_delim
35061 CMP!$CMP$ac_delim
35062 TBL!$TBL$ac_delim
35063 AR!$AR$ac_delim
35064 OPENSSL!$OPENSSL$ac_delim
35065 MTX!$MTX$ac_delim
35066 DD!$DD$ac_delim
35067 MKISOFS!$MKISOFS$ac_delim
35068 PYTHON!$PYTHON$ac_delim
35069 GROWISOFS!$GROWISOFS$ac_delim
35070 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35071 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35072 PKGCONFIG!$PKGCONFIG$ac_delim
35073 WXCONFIG!$WXCONFIG$ac_delim
35074 WXFLAGS!$WXFLAGS$ac_delim
35075 CDRECORD!$CDRECORD$ac_delim
35076 PIDOF!$PIDOF$ac_delim
35077 AWK!$AWK$ac_delim
35078 ARFLAGS!$ARFLAGS$ac_delim
35079 MAKE_SHELL!$MAKE_SHELL$ac_delim
35080 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35081 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35082 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35083 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35084 build!$build$ac_delim
35085 build_cpu!$build_cpu$ac_delim
35086 build_vendor!$build_vendor$ac_delim
35087 build_os!$build_os$ac_delim
35088 host!$host$ac_delim
35089 _ACEOF
35090
35091   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35092     break
35093   elif $ac_last_try; then
35094     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35096    { (exit 1); exit 1; }; }
35097   else
35098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35099   fi
35100 done
35101
35102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35103 if test -n "$ac_eof"; then
35104   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35105   ac_eof=`expr $ac_eof + 1`
35106 fi
35107
35108 cat >>$CONFIG_STATUS <<_ACEOF
35109 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35111 /^[      ]*@MCOMMON@[    ]*$/{
35112 r $MCOMMON
35113 d
35114 }
35115 _ACEOF
35116 sed '
35117 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35118 s/^/s,@/; s/!/@,|#_!!_#|/
35119 :n
35120 t n
35121 s/'"$ac_delim"'$/,g/; t
35122 s/$/\\/; p
35123 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35124 ' >>$CONFIG_STATUS <conf$$subs.sed
35125 rm -f conf$$subs.sed
35126 cat >>$CONFIG_STATUS <<_ACEOF
35127 CEOF$ac_eof
35128 _ACEOF
35129
35130
35131 ac_delim='%!_!# '
35132 for ac_last_try in false false false false false :; do
35133   cat >conf$$subs.sed <<_ACEOF
35134 host_cpu!$host_cpu$ac_delim
35135 host_vendor!$host_vendor$ac_delim
35136 host_os!$host_os$ac_delim
35137 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35138 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35139 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35140 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35141 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35142 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35143 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35144 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35145 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35146 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35147 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35148 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35149 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35150 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35151 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35152 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35153 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35154 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35155 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35156 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35157 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35158 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35159 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35160 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35161 SET_MAKE!$SET_MAKE$ac_delim
35162 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35163 USE_NLS!$USE_NLS$ac_delim
35164 MSGFMT!$MSGFMT$ac_delim
35165 GMSGFMT!$GMSGFMT$ac_delim
35166 XGETTEXT!$XGETTEXT$ac_delim
35167 MSGMERGE!$MSGMERGE$ac_delim
35168 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35169 LIBICONV!$LIBICONV$ac_delim
35170 LTLIBICONV!$LTLIBICONV$ac_delim
35171 INTLLIBS!$INTLLIBS$ac_delim
35172 LIBINTL!$LIBINTL$ac_delim
35173 LTLIBINTL!$LTLIBINTL$ac_delim
35174 POSUB!$POSUB$ac_delim
35175 GLIBC2!$GLIBC2$ac_delim
35176 ALLOCA!$ALLOCA$ac_delim
35177 GLIBC21!$GLIBC21$ac_delim
35178 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35179 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35180 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35181 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35182 INTLBISON!$INTLBISON$ac_delim
35183 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35184 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35185 CATOBJEXT!$CATOBJEXT$ac_delim
35186 DATADIRNAME!$DATADIRNAME$ac_delim
35187 INSTOBJEXT!$INSTOBJEXT$ac_delim
35188 GENCAT!$GENCAT$ac_delim
35189 INTLOBJS!$INTLOBJS$ac_delim
35190 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35191 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35192 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35193 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35194 GNOME_LIBS!$GNOME_LIBS$ac_delim
35195 GNOME_DIR!$GNOME_DIR$ac_delim
35196 BAT_DIR!$BAT_DIR$ac_delim
35197 QWT_INC!$QWT_INC$ac_delim
35198 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35199 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35200 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35201 WX_DIR!$WX_DIR$ac_delim
35202 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35203 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35204 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35205 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35206 STATIC_FD!$STATIC_FD$ac_delim
35207 STATIC_SD!$STATIC_SD$ac_delim
35208 STATIC_DIR!$STATIC_DIR$ac_delim
35209 STATIC_CONS!$STATIC_CONS$ac_delim
35210 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35211 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35212 ALL_DIRS!$ALL_DIRS$ac_delim
35213 DIRD_DIR!$DIRD_DIR$ac_delim
35214 DIR_TOOLS!$DIR_TOOLS$ac_delim
35215 STORED_DIR!$STORED_DIR$ac_delim
35216 CONS_INC!$CONS_INC$ac_delim
35217 CONS_OBJ!$CONS_OBJ$ac_delim
35218 CONS_SRC!$CONS_SRC$ac_delim
35219 CONS_LIBS!$CONS_LIBS$ac_delim
35220 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35221 READLINE_SRC!$READLINE_SRC$ac_delim
35222 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35223 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35224 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35225 OPENSSL_INC!$OPENSSL_INC$ac_delim
35226 working_dir!$working_dir$ac_delim
35227 scriptdir!$scriptdir$ac_delim
35228 dump_email!$dump_email$ac_delim
35229 job_email!$job_email$ac_delim
35230 smtp_host!$smtp_host$ac_delim
35231 _ACEOF
35232
35233   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35234     break
35235   elif $ac_last_try; then
35236     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35238    { (exit 1); exit 1; }; }
35239   else
35240     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35241   fi
35242 done
35243
35244 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35245 if test -n "$ac_eof"; then
35246   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35247   ac_eof=`expr $ac_eof + 1`
35248 fi
35249
35250 cat >>$CONFIG_STATUS <<_ACEOF
35251 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35253 _ACEOF
35254 sed '
35255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35256 s/^/s,@/; s/!/@,|#_!!_#|/
35257 :n
35258 t n
35259 s/'"$ac_delim"'$/,g/; t
35260 s/$/\\/; p
35261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35262 ' >>$CONFIG_STATUS <conf$$subs.sed
35263 rm -f conf$$subs.sed
35264 cat >>$CONFIG_STATUS <<_ACEOF
35265 CEOF$ac_eof
35266 _ACEOF
35267
35268
35269 ac_delim='%!_!# '
35270 for ac_last_try in false false false false false :; do
35271   cat >conf$$subs.sed <<_ACEOF
35272 piddir!$piddir$ac_delim
35273 subsysdir!$subsysdir$ac_delim
35274 baseport!$baseport$ac_delim
35275 dir_port!$dir_port$ac_delim
35276 fd_port!$fd_port$ac_delim
35277 sd_port!$sd_port$ac_delim
35278 dir_password!$dir_password$ac_delim
35279 fd_password!$fd_password$ac_delim
35280 sd_password!$sd_password$ac_delim
35281 mon_dir_password!$mon_dir_password$ac_delim
35282 mon_fd_password!$mon_fd_password$ac_delim
35283 mon_sd_password!$mon_sd_password$ac_delim
35284 db_name!$db_name$ac_delim
35285 db_user!$db_user$ac_delim
35286 dir_user!$dir_user$ac_delim
35287 dir_group!$dir_group$ac_delim
35288 sd_user!$sd_user$ac_delim
35289 sd_group!$sd_group$ac_delim
35290 fd_user!$fd_user$ac_delim
35291 fd_group!$fd_group$ac_delim
35292 SBINPERM!$SBINPERM$ac_delim
35293 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35294 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35295 SQL_BINDIR!$SQL_BINDIR$ac_delim
35296 cats!$cats$ac_delim
35297 DB_TYPE!$DB_TYPE$ac_delim
35298 GETCONF!$GETCONF$ac_delim
35299 XMKMF!$XMKMF$ac_delim
35300 X_CFLAGS!$X_CFLAGS$ac_delim
35301 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35302 X_LIBS!$X_LIBS$ac_delim
35303 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35304 LIBOBJS!$LIBOBJS$ac_delim
35305 FDLIBS!$FDLIBS$ac_delim
35306 DEBUG!$DEBUG$ac_delim
35307 DINCLUDE!$DINCLUDE$ac_delim
35308 DLIB!$DLIB$ac_delim
35309 DB_LIBS!$DB_LIBS$ac_delim
35310 WCFLAGS!$WCFLAGS$ac_delim
35311 WLDFLAGS!$WLDFLAGS$ac_delim
35312 WRAPLIBS!$WRAPLIBS$ac_delim
35313 OBJLIST!$OBJLIST$ac_delim
35314 hostname!$hostname$ac_delim
35315 TAPEDRIVE!$TAPEDRIVE$ac_delim
35316 PSCMD!$PSCMD$ac_delim
35317 WIN32!$WIN32$ac_delim
35318 MACOSX!$MACOSX$ac_delim
35319 DISTNAME!$DISTNAME$ac_delim
35320 DISTVER!$DISTVER$ac_delim
35321 LTLIBOBJS!$LTLIBOBJS$ac_delim
35322 _ACEOF
35323
35324   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
35325     break
35326   elif $ac_last_try; then
35327     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35328 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35329    { (exit 1); exit 1; }; }
35330   else
35331     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35332   fi
35333 done
35334
35335 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35336 if test -n "$ac_eof"; then
35337   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35338   ac_eof=`expr $ac_eof + 1`
35339 fi
35340
35341 cat >>$CONFIG_STATUS <<_ACEOF
35342 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35344 _ACEOF
35345 sed '
35346 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35347 s/^/s,@/; s/!/@,|#_!!_#|/
35348 :n
35349 t n
35350 s/'"$ac_delim"'$/,g/; t
35351 s/$/\\/; p
35352 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35353 ' >>$CONFIG_STATUS <conf$$subs.sed
35354 rm -f conf$$subs.sed
35355 cat >>$CONFIG_STATUS <<_ACEOF
35356 :end
35357 s/|#_!!_#|//g
35358 CEOF$ac_eof
35359 _ACEOF
35360
35361
35362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35364 # trailing colons and then remove the whole line if VPATH becomes empty
35365 # (actually we leave an empty line to preserve line numbers).
35366 if test "x$srcdir" = x.; then
35367   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35368 s/:*\$(srcdir):*/:/
35369 s/:*\${srcdir}:*/:/
35370 s/:*@srcdir@:*/:/
35371 s/^\([^=]*=[     ]*\):*/\1/
35372 s/:*$//
35373 s/^[^=]*=[       ]*$//
35374 }'
35375 fi
35376
35377 cat >>$CONFIG_STATUS <<\_ACEOF
35378 fi # test -n "$CONFIG_FILES"
35379
35380
35381 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35382 do
35383   case $ac_tag in
35384   :[FHLC]) ac_mode=$ac_tag; continue;;
35385   esac
35386   case $ac_mode$ac_tag in
35387   :[FHL]*:*);;
35388   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35389 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35390    { (exit 1); exit 1; }; };;
35391   :[FH]-) ac_tag=-:-;;
35392   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35393   esac
35394   ac_save_IFS=$IFS
35395   IFS=:
35396   set x $ac_tag
35397   IFS=$ac_save_IFS
35398   shift
35399   ac_file=$1
35400   shift
35401
35402   case $ac_mode in
35403   :L) ac_source=$1;;
35404   :[FH])
35405     ac_file_inputs=
35406     for ac_f
35407     do
35408       case $ac_f in
35409       -) ac_f="$tmp/stdin";;
35410       *) # Look for the file first in the build tree, then in the source tree
35411          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35412          # because $ac_f cannot contain `:'.
35413          test -f "$ac_f" ||
35414            case $ac_f in
35415            [\\/$]*) false;;
35416            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35417            esac ||
35418            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35419 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35420    { (exit 1); exit 1; }; };;
35421       esac
35422       ac_file_inputs="$ac_file_inputs $ac_f"
35423     done
35424
35425     # Let's still pretend it is `configure' which instantiates (i.e., don't
35426     # use $as_me), people would be surprised to read:
35427     #    /* config.h.  Generated by config.status.  */
35428     configure_input="Generated from "`IFS=:
35429           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35430     if test x"$ac_file" != x-; then
35431       configure_input="$ac_file.  $configure_input"
35432       { echo "$as_me:$LINENO: creating $ac_file" >&5
35433 echo "$as_me: creating $ac_file" >&6;}
35434     fi
35435
35436     case $ac_tag in
35437     *:-:* | *:-) cat >"$tmp/stdin";;
35438     esac
35439     ;;
35440   esac
35441
35442   ac_dir=`$as_dirname -- "$ac_file" ||
35443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35444          X"$ac_file" : 'X\(//\)[^/]' \| \
35445          X"$ac_file" : 'X\(//\)$' \| \
35446          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35447 echo X"$ac_file" |
35448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35449             s//\1/
35450             q
35451           }
35452           /^X\(\/\/\)[^/].*/{
35453             s//\1/
35454             q
35455           }
35456           /^X\(\/\/\)$/{
35457             s//\1/
35458             q
35459           }
35460           /^X\(\/\).*/{
35461             s//\1/
35462             q
35463           }
35464           s/.*/./; q'`
35465   { as_dir="$ac_dir"
35466   case $as_dir in #(
35467   -*) as_dir=./$as_dir;;
35468   esac
35469   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35470     as_dirs=
35471     while :; do
35472       case $as_dir in #(
35473       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35474       *) as_qdir=$as_dir;;
35475       esac
35476       as_dirs="'$as_qdir' $as_dirs"
35477       as_dir=`$as_dirname -- "$as_dir" ||
35478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35479          X"$as_dir" : 'X\(//\)[^/]' \| \
35480          X"$as_dir" : 'X\(//\)$' \| \
35481          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35482 echo X"$as_dir" |
35483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35484             s//\1/
35485             q
35486           }
35487           /^X\(\/\/\)[^/].*/{
35488             s//\1/
35489             q
35490           }
35491           /^X\(\/\/\)$/{
35492             s//\1/
35493             q
35494           }
35495           /^X\(\/\).*/{
35496             s//\1/
35497             q
35498           }
35499           s/.*/./; q'`
35500       test -d "$as_dir" && break
35501     done
35502     test -z "$as_dirs" || eval "mkdir $as_dirs"
35503   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35504 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35505    { (exit 1); exit 1; }; }; }
35506   ac_builddir=.
35507
35508 case "$ac_dir" in
35509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35510 *)
35511   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35512   # A ".." for each directory in $ac_dir_suffix.
35513   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35514   case $ac_top_builddir_sub in
35515   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35516   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35517   esac ;;
35518 esac
35519 ac_abs_top_builddir=$ac_pwd
35520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35521 # for backward compatibility:
35522 ac_top_builddir=$ac_top_build_prefix
35523
35524 case $srcdir in
35525   .)  # We are building in place.
35526     ac_srcdir=.
35527     ac_top_srcdir=$ac_top_builddir_sub
35528     ac_abs_top_srcdir=$ac_pwd ;;
35529   [\\/]* | ?:[\\/]* )  # Absolute name.
35530     ac_srcdir=$srcdir$ac_dir_suffix;
35531     ac_top_srcdir=$srcdir
35532     ac_abs_top_srcdir=$srcdir ;;
35533   *) # Relative name.
35534     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35535     ac_top_srcdir=$ac_top_build_prefix$srcdir
35536     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35537 esac
35538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35539
35540
35541   case $ac_mode in
35542   :F)
35543   #
35544   # CONFIG_FILE
35545   #
35546
35547   case $INSTALL in
35548   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35549   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35550   esac
35551 _ACEOF
35552
35553 cat >>$CONFIG_STATUS <<\_ACEOF
35554 # If the template does not know about datarootdir, expand it.
35555 # FIXME: This hack should be removed a few years after 2.60.
35556 ac_datarootdir_hack=; ac_datarootdir_seen=
35557
35558 case `sed -n '/datarootdir/ {
35559   p
35560   q
35561 }
35562 /@datadir@/p
35563 /@docdir@/p
35564 /@infodir@/p
35565 /@localedir@/p
35566 /@mandir@/p
35567 ' $ac_file_inputs` in
35568 *datarootdir*) ac_datarootdir_seen=yes;;
35569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35570   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35571 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35572 _ACEOF
35573 cat >>$CONFIG_STATUS <<_ACEOF
35574   ac_datarootdir_hack='
35575   s&@datadir@&$datadir&g
35576   s&@docdir@&$docdir&g
35577   s&@infodir@&$infodir&g
35578   s&@localedir@&$localedir&g
35579   s&@mandir@&$mandir&g
35580     s&\\\${datarootdir}&$datarootdir&g' ;;
35581 esac
35582 _ACEOF
35583
35584 # Neutralize VPATH when `$srcdir' = `.'.
35585 # Shell code in configure.ac might set extrasub.
35586 # FIXME: do we really want to maintain this feature?
35587 cat >>$CONFIG_STATUS <<_ACEOF
35588   sed "$ac_vpsub
35589 $extrasub
35590 _ACEOF
35591 cat >>$CONFIG_STATUS <<\_ACEOF
35592 :t
35593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35594 s&@configure_input@&$configure_input&;t t
35595 s&@top_builddir@&$ac_top_builddir_sub&;t t
35596 s&@srcdir@&$ac_srcdir&;t t
35597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35598 s&@top_srcdir@&$ac_top_srcdir&;t t
35599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35600 s&@builddir@&$ac_builddir&;t t
35601 s&@abs_builddir@&$ac_abs_builddir&;t t
35602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35603 s&@INSTALL@&$ac_INSTALL&;t t
35604 $ac_datarootdir_hack
35605 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35606
35607 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35608   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35609   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35610   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35611 which seems to be undefined.  Please make sure it is defined." >&5
35612 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35613 which seems to be undefined.  Please make sure it is defined." >&2;}
35614
35615   rm -f "$tmp/stdin"
35616   case $ac_file in
35617   -) cat "$tmp/out"; rm -f "$tmp/out";;
35618   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35619   esac
35620  ;;
35621   :H)
35622   #
35623   # CONFIG_HEADER
35624   #
35625 _ACEOF
35626
35627 # Transform confdefs.h into a sed script `conftest.defines', that
35628 # substitutes the proper values into config.h.in to produce config.h.
35629 rm -f conftest.defines conftest.tail
35630 # First, append a space to every undef/define line, to ease matching.
35631 echo 's/$/ /' >conftest.defines
35632 # Then, protect against being on the right side of a sed subst, or in
35633 # an unquoted here document, in config.status.  If some macros were
35634 # called several times there might be several #defines for the same
35635 # symbol, which is useless.  But do not sort them, since the last
35636 # AC_DEFINE must be honored.
35637 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35638 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35639 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35640 # PARAMS is the parameter list in the macro definition--in most cases, it's
35641 # just an empty string.
35642 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35643 ac_dB='\\)[      (].*,\\1define\\2'
35644 ac_dC=' '
35645 ac_dD=' ,'
35646
35647 uniq confdefs.h |
35648   sed -n '
35649         t rset
35650         :rset
35651         s/^[     ]*#[    ]*define[       ][      ]*//
35652         t ok
35653         d
35654         :ok
35655         s/[\\&,]/\\&/g
35656         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35657         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35658   ' >>conftest.defines
35659
35660 # Remove the space that was appended to ease matching.
35661 # Then replace #undef with comments.  This is necessary, for
35662 # example, in the case of _POSIX_SOURCE, which is predefined and required
35663 # on some systems where configure will not decide to define it.
35664 # (The regexp can be short, since the line contains either #define or #undef.)
35665 echo 's/ $//
35666 s,^[     #]*u.*,/* & */,' >>conftest.defines
35667
35668 # Break up conftest.defines:
35669 ac_max_sed_lines=50
35670
35671 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35672 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35673 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35674 # et cetera.
35675 ac_in='$ac_file_inputs'
35676 ac_out='"$tmp/out1"'
35677 ac_nxt='"$tmp/out2"'
35678
35679 while :
35680 do
35681   # Write a here document:
35682     cat >>$CONFIG_STATUS <<_ACEOF
35683     # First, check the format of the line:
35684     cat >"\$tmp/defines.sed" <<\\CEOF
35685 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35686 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35687 b
35688 :def
35689 _ACEOF
35690   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35691   echo 'CEOF
35692     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35693   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35694   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35695   grep . conftest.tail >/dev/null || break
35696   rm -f conftest.defines
35697   mv conftest.tail conftest.defines
35698 done
35699 rm -f conftest.defines conftest.tail
35700
35701 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35702 cat >>$CONFIG_STATUS <<\_ACEOF
35703   if test x"$ac_file" != x-; then
35704     echo "/* $configure_input  */" >"$tmp/config.h"
35705     cat "$ac_result" >>"$tmp/config.h"
35706     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35707       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35708 echo "$as_me: $ac_file is unchanged" >&6;}
35709     else
35710       rm -f $ac_file
35711       mv "$tmp/config.h" $ac_file
35712     fi
35713   else
35714     echo "/* $configure_input  */"
35715     cat "$ac_result"
35716   fi
35717   rm -f "$tmp/out12"
35718  ;;
35719
35720   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35721 echo "$as_me: executing $ac_file commands" >&6;}
35722  ;;
35723   esac
35724
35725
35726   case $ac_file$ac_mode in
35727     "default-1":C)
35728     for ac_file in $CONFIG_FILES; do
35729       # Support "outfile[:infile[:infile...]]"
35730       case "$ac_file" in
35731         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35732       esac
35733       # PO directories have a Makefile.in generated from Makefile.in.in.
35734       case "$ac_file" in */Makefile.in)
35735         # Adjust a relative srcdir.
35736         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35737         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35738         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35739         # In autoconf-2.13 it is called $ac_given_srcdir.
35740         # In autoconf-2.50 it is called $srcdir.
35741         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35742         case "$ac_given_srcdir" in
35743           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35744           /*) top_srcdir="$ac_given_srcdir" ;;
35745           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35746         esac
35747         # Treat a directory as a PO directory if and only if it has a
35748         # POTFILES.in file. This allows packages to have multiple PO
35749         # directories under different names or in different locations.
35750         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35751           rm -f "$ac_dir/POTFILES"
35752           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35753           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35754           POMAKEFILEDEPS="POTFILES.in"
35755           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35756           # on $ac_dir but don't depend on user-specified configuration
35757           # parameters.
35758           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35759             # The LINGUAS file contains the set of available languages.
35760             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35761               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35762             fi
35763             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35764             # Hide the ALL_LINGUAS assigment from automake.
35765             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35766             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35767           else
35768             # The set of available languages was given in configure.in.
35769             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35770           fi
35771           # Compute POFILES
35772           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35773           # Compute UPDATEPOFILES
35774           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35775           # Compute DUMMYPOFILES
35776           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35777           # Compute GMOFILES
35778           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35779           case "$ac_given_srcdir" in
35780             .) srcdirpre= ;;
35781             *) srcdirpre='$(srcdir)/' ;;
35782           esac
35783           POFILES=
35784           UPDATEPOFILES=
35785           DUMMYPOFILES=
35786           GMOFILES=
35787           for lang in $ALL_LINGUAS; do
35788             POFILES="$POFILES $srcdirpre$lang.po"
35789             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35790             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35791             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35792           done
35793           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35794           # environment variable.
35795           INST_LINGUAS=
35796           if test -n "$ALL_LINGUAS"; then
35797             for presentlang in $ALL_LINGUAS; do
35798               useit=no
35799               if test "%UNSET%" != "$LINGUAS"; then
35800                 desiredlanguages="$LINGUAS"
35801               else
35802                 desiredlanguages="$ALL_LINGUAS"
35803               fi
35804               for desiredlang in $desiredlanguages; do
35805                 # Use the presentlang catalog if desiredlang is
35806                 #   a. equal to presentlang, or
35807                 #   b. a variant of presentlang (because in this case,
35808                 #      presentlang can be used as a fallback for messages
35809                 #      which are not translated in the desiredlang catalog).
35810                 case "$desiredlang" in
35811                   "$presentlang"*) useit=yes;;
35812                 esac
35813               done
35814               if test $useit = yes; then
35815                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35816               fi
35817             done
35818           fi
35819           CATALOGS=
35820           if test -n "$INST_LINGUAS"; then
35821             for lang in $INST_LINGUAS; do
35822               CATALOGS="$CATALOGS $lang.gmo"
35823             done
35824           fi
35825           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35826           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"
35827           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35828             if test -f "$f"; then
35829               case "$f" in
35830                 *.orig | *.bak | *~) ;;
35831                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35832               esac
35833             fi
35834           done
35835         fi
35836         ;;
35837       esac
35838     done ;;
35839     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35840  ;;
35841
35842   esac
35843 done # for ac_tag
35844
35845
35846 { (exit 0); exit 0; }
35847 _ACEOF
35848 chmod +x $CONFIG_STATUS
35849 ac_clean_files=$ac_clean_files_save
35850
35851
35852 # configure is writing to config.log, and then calls config.status.
35853 # config.status does its own redirection, appending to config.log.
35854 # Unfortunately, on DOS this fails, as config.log is still kept open
35855 # by configure, so config.status won't be able to write to it; its
35856 # output is simply discarded.  So we exec the FD to /dev/null,
35857 # effectively closing config.log, so it can be properly (re)opened and
35858 # appended to by config.status.  When coming back to configure, we
35859 # need to make the FD available again.
35860 if test "$no_create" != yes; then
35861   ac_cs_success=:
35862   ac_config_status_args=
35863   test "$silent" = yes &&
35864     ac_config_status_args="$ac_config_status_args --quiet"
35865   exec 5>/dev/null
35866   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35867   exec 5>>config.log
35868   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35869   # would make configure fail if this is the last instruction.
35870   $ac_cs_success || { (exit 1); exit 1; }
35871 fi
35872
35873
35874 cd scripts
35875 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35876 chmod 755 dvd-handler dvd-simulator
35877 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35878 cd ..
35879
35880 c=src/cats
35881
35882 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35883 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35884
35885 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35886 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35887
35888 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35889 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35890
35891 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35892 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35893
35894 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35895 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35896
35897 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35898 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35899
35900 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35901 chmod 755 $c/sqlite
35902 chmod 755 $c/mysql
35903
35904 chmod 755 src/win32/build-depkgs-mingw32
35905
35906 if test "${support_bat}" = "yes" ; then
35907   cd src/qt-console
35908   a=`pwd`
35909   chmod 755 install_conf_file build-depkgs-qt-console
35910   echo "Creating bat Makefile"
35911   qmake
35912 fi
35913
35914
35915 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35916    largefile_support="yes"
35917 fi
35918
35919 #
35920 # A whole lot of hand springs to get the compiler version.
35921 #  This is because gcc changed the output in version 3.0
35922 #
35923 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35924 if test "x${CCVERSION}" = "x" ; then
35925   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35926 fi
35927 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35928 if test x"${CXXVERSION}" = x ; then
35929   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35930 fi
35931
35932 if test "x${subsysdir}" = "x${sbindir}" ; then
35933    echo " "
35934    echo " "
35935    echo "You have set --sbindir and --with-subsys-dir"
35936    echo "  both equal to: ${subsysdir} "
35937    echo "  This is not permitted. Please reconfigure."
35938    echo " "
35939    echo "Aborting configuration ..."
35940    echo " "
35941    echo " "
35942    exit 1
35943 fi
35944
35945 if test "x${db_type}" = "xInternal" ; then
35946    echo " "
35947    echo " "
35948    echo "You have not specified either --enable-client-only or one of the"
35949    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35950    echo "  This is not permitted. Please reconfigure."
35951    echo " "
35952    echo "Aborting the configuration ..."
35953    echo " "
35954    echo " "
35955    exit 1
35956 fi
35957
35958 echo "
35959 Configuration on `date`:
35960
35961   Host:                       $host -- ${DISTNAME} ${DISTVER}
35962   Bacula version:             ${VERSION} (${DATE})
35963   Source code location:       ${srcdir}
35964   Install binaries:           ${sbindir}
35965   Install config files:       ${sysconfdir}
35966   Scripts directory:          ${scriptdir}
35967   Working directory:          ${working_dir}
35968   PID directory:              ${piddir}
35969   Subsys directory:           ${subsysdir}
35970   Man directory:              ${mandir}
35971   Data directory:             ${datadir}
35972   C Compiler:                 ${CC} ${CCVERSION}
35973   C++ Compiler:               ${CXX} ${CXXVERSION}
35974   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35975   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35976   Libraries:                  ${LIBS}
35977   Statically Linked Tools:    ${support_static_tools}
35978   Statically Linked FD:       ${support_static_fd}
35979   Statically Linked SD:       ${support_static_sd}
35980   Statically Linked DIR:      ${support_static_dir}
35981   Statically Linked CONS:     ${support_static_cons}
35982   Database type:              ${db_type}
35983   Database lib:               ${DB_LIBS}
35984   Database name:              ${db_name}
35985   Database user:              ${db_user}
35986
35987   Job Output Email:           ${job_email}
35988   Traceback Email:            ${dump_email}
35989   SMTP Host Address:          ${smtp_host}
35990
35991   Director Port:              ${dir_port}
35992   File daemon Port:           ${fd_port}
35993   Storage daemon Port:        ${sd_port}
35994
35995   Director User:              ${dir_user}
35996   Director Group:             ${dir_group}
35997   Storage Daemon User:        ${sd_user}
35998   Storage DaemonGroup:        ${sd_group}
35999   File Daemon User:           ${fd_user}
36000   File Daemon Group:          ${fd_group}
36001
36002   SQL binaries Directory      ${SQL_BINDIR}
36003
36004   Large file support:         $largefile_support
36005   Bacula conio support:       ${got_conio} ${CONS_LIBS}
36006   readline support:           ${got_readline} ${PRTREADLINE_SRC}
36007   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
36008   TLS support:                ${support_tls}
36009   Encryption support:         ${support_crypto}
36010   ZLIB support:               ${have_zlib}
36011   enable-smartalloc:          ${support_smartalloc}
36012   bat support:                ${support_bat} ${QWT_LDFLAGS}
36013   enable-gnome:               ${support_gnome} ${gnome_version}
36014   enable-bwx-console:         ${support_wx_console} ${wx_version}
36015   enable-tray-monitor:        ${support_tray_monitor}
36016   client-only:                ${build_client_only}
36017   build-dird:                 ${build_dird}
36018   build-stored:               ${build_stored}
36019   ACL support:                ${have_acl}
36020   Python support:             ${support_python} ${PYTHON_LIBS}
36021   Batch insert enabled:       ${support_batch_insert}
36022
36023   " > config.out
36024
36025 cat config.out