]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Apply Eric's patch for recycling the Scratch pool.
[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 WXCONS_CPPFLAGS
758 WXCONS_LDFLAGS
759 WX_DIR
760 TRAY_MONITOR_CPPFLAGS
761 TRAY_MONITOR_LDFLAGS
762 TRAY_MONITOR_DIR
763 TTOOL_LDFLAGS
764 STATIC_FD
765 STATIC_SD
766 STATIC_DIR
767 STATIC_CONS
768 STATIC_GNOME_CONS
769 STATIC_WX_CONS
770 ALL_DIRS
771 DIRD_DIR
772 DIR_TOOLS
773 STORED_DIR
774 CONS_INC
775 CONS_OBJ
776 CONS_SRC
777 CONS_LIBS
778 CONS_LDFLAGS
779 READLINE_SRC
780 PYTHON_LIBS
781 PYTHON_INCDIR
782 OPENSSL_LIBS
783 OPENSSL_INC
784 working_dir
785 scriptdir
786 dump_email
787 job_email
788 smtp_host
789 piddir
790 subsysdir
791 baseport
792 dir_port
793 fd_port
794 sd_port
795 dir_password
796 fd_password
797 sd_password
798 mon_dir_password
799 mon_fd_password
800 mon_sd_password
801 dir_user
802 dir_group
803 sd_user
804 sd_group
805 fd_user
806 fd_group
807 SBINPERM
808 SQL_LFLAGS
809 SQL_INCLUDE
810 SQL_BINDIR
811 cats
812 DB_NAME
813 GETCONF
814 XMKMF
815 X_CFLAGS
816 X_PRE_LIBS
817 X_LIBS
818 X_EXTRA_LIBS
819 LIBOBJS
820 FDLIBS
821 DEBUG
822 DINCLUDE
823 DLIB
824 DB_LIBS
825 WCFLAGS
826 WLDFLAGS
827 WRAPLIBS
828 OBJLIST
829 hostname
830 TAPEDRIVE
831 PSCMD
832 WIN32
833 MACOSX
834 DISTNAME
835 DISTVER
836 LTLIBOBJS'
837 ac_subst_files='MCOMMON'
838       ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 CXX
846 CXXFLAGS
847 CCC
848 CPP
849 WXCONFIG
850 WXFLAGS
851 XMKMF'
852
853
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904   # If the previous option needs an argument, assign it.
905   if test -n "$ac_prev"; then
906     eval $ac_prev=\$ac_option
907     ac_prev=
908     continue
909   fi
910
911   case $ac_option in
912   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913   *)    ac_optarg=yes ;;
914   esac
915
916   # Accept the important Cygnus configure options, so we can diagnose typos.
917
918   case $ac_dashdash$ac_option in
919   --)
920     ac_dashdash=yes ;;
921
922   -bindir | --bindir | --bindi | --bind | --bin | --bi)
923     ac_prev=bindir ;;
924   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925     bindir=$ac_optarg ;;
926
927   -build | --build | --buil | --bui | --bu)
928     ac_prev=build_alias ;;
929   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930     build_alias=$ac_optarg ;;
931
932   -cache-file | --cache-file | --cache-fil | --cache-fi \
933   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934     ac_prev=cache_file ;;
935   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937     cache_file=$ac_optarg ;;
938
939   --config-cache | -C)
940     cache_file=config.cache ;;
941
942   -datadir | --datadir | --datadi | --datad)
943     ac_prev=datadir ;;
944   -datadir=* | --datadir=* | --datadi=* | --datad=*)
945     datadir=$ac_optarg ;;
946
947   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948   | --dataroo | --dataro | --datar)
949     ac_prev=datarootdir ;;
950   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952     datarootdir=$ac_optarg ;;
953
954   -disable-* | --disable-*)
955     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959    { (exit 1); exit 1; }; }
960     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961     eval enable_$ac_feature=no ;;
962
963   -docdir | --docdir | --docdi | --doc | --do)
964     ac_prev=docdir ;;
965   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966     docdir=$ac_optarg ;;
967
968   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969     ac_prev=dvidir ;;
970   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971     dvidir=$ac_optarg ;;
972
973   -enable-* | --enable-*)
974     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978    { (exit 1); exit 1; }; }
979     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980     eval enable_$ac_feature=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1174       { echo "$as_me: error: invalid package name: $ac_package" >&2
1175    { (exit 1); exit 1; }; }
1176     ac_package=`echo $ac_package| sed 's/-/_/g'`
1177     eval with_$ac_package=\$ac_optarg ;;
1178
1179   -without-* | --without-*)
1180     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid package name: $ac_package" >&2
1184    { (exit 1); exit 1; }; }
1185     ac_package=`echo $ac_package | sed 's/-/_/g'`
1186     eval with_$ac_package=no ;;
1187
1188   --x)
1189     # Obsolete; use --with-x.
1190     with_x=yes ;;
1191
1192   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193   | --x-incl | --x-inc | --x-in | --x-i)
1194     ac_prev=x_includes ;;
1195   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197     x_includes=$ac_optarg ;;
1198
1199   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201     ac_prev=x_libraries ;;
1202   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204     x_libraries=$ac_optarg ;;
1205
1206   -*) { echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208    { (exit 1); exit 1; }; }
1209     ;;
1210
1211   *=*)
1212     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216    { (exit 1); exit 1; }; }
1217     eval $ac_envvar=\$ac_optarg
1218     export $ac_envvar ;;
1219
1220   *)
1221     # FIXME: should be removed in autoconf 3.0.
1222     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226     ;;
1227
1228   esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233   { echo "$as_me: error: missing argument to $ac_option" >&2
1234    { (exit 1); exit 1; }; }
1235 fi
1236
1237 # Be sure to have absolute directory names.
1238 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239                 datadir sysconfdir sharedstatedir localstatedir includedir \
1240                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241                 libdir localedir mandir
1242 do
1243   eval ac_val=\$$ac_var
1244   case $ac_val in
1245     [\\/$]* | ?:[\\/]* )  continue;;
1246     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247   esac
1248   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1249    { (exit 1); exit 1; }; }
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264     If a cross compiler is detected then cross compile mode will be used." >&2
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   { echo "$as_me: error: Working directory cannot be determined" >&2
1280    { (exit 1); exit 1; }; }
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282   { echo "$as_me: error: pwd does not report name of working directory" >&2
1283    { (exit 1); exit 1; }; }
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288   ac_srcdir_defaulted=yes
1289   # Try the directory containing this script, then the parent directory.
1290   ac_confdir=`$as_dirname -- "$0" ||
1291 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292          X"$0" : 'X\(//\)[^/]' \| \
1293          X"$0" : 'X\(//\)$' \| \
1294          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1295 echo X"$0" |
1296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)[^/].*/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\).*/{
1309             s//\1/
1310             q
1311           }
1312           s/.*/./; q'`
1313   srcdir=$ac_confdir
1314   if test ! -r "$srcdir/$ac_unique_file"; then
1315     srcdir=..
1316   fi
1317 else
1318   ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1323    { (exit 1); exit 1; }; }
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1328    { (exit 1); exit 1; }; }
1329         pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332   srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_env_${ac_var}_value=\$${ac_var}
1343   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351   # Omit some internal or obsolete options to make the list less imposing.
1352   # This message is too long to be a string in the A/UX 3.1 sh.
1353   cat <<_ACEOF
1354 \`configure' configures this package to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364   -h, --help              display this help and exit
1365       --help=short        display options specific to this package
1366       --help=recursive    display the short help of all the included packages
1367   -V, --version           display version information and exit
1368   -q, --quiet, --silent   do not print \`checking...' messages
1369       --cache-file=FILE   cache test results in FILE [disabled]
1370   -C, --config-cache      alias for \`--cache-file=config.cache'
1371   -n, --no-create         do not create output files
1372       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375   --prefix=PREFIX         install architecture-independent files in PREFIX
1376                           [$ac_default_prefix]
1377   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                           [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388   --bindir=DIR           user executables [EPREFIX/bin]
1389   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1390   --libexecdir=DIR       program executables [EPREFIX/libexec]
1391   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1392   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1393   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1394   --libdir=DIR           object code libraries [EPREFIX/lib]
1395   --includedir=DIR       C header files [PREFIX/include]
1396   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1397   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1398   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1399   --infodir=DIR          info documentation [DATAROOTDIR/info]
1400   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1401   --mandir=DIR           man documentation [DATAROOTDIR/man]
1402   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1403   --htmldir=DIR          html documentation [DOCDIR]
1404   --dvidir=DIR           dvi documentation [DOCDIR]
1405   --pdfdir=DIR           pdf documentation [DOCDIR]
1406   --psdir=DIR            ps documentation [DOCDIR]
1407 _ACEOF
1408
1409   cat <<\_ACEOF
1410
1411 X features:
1412   --x-includes=DIR    X include files are in DIR
1413   --x-libraries=DIR   X library files are in DIR
1414
1415 System types:
1416   --build=BUILD     configure for building on BUILD [guessed]
1417   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428   --disable-nls           do not use Native Language Support
1429   --disable-rpath         do not hardcode runtime library paths
1430   --enable-gnome          enable build of gnome-console GUI disabled
1431   --enable-wx-console     enable build of wxWidgets console disabled
1432   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1433   --enable-smartalloc     enable smartalloc debugging support disabled
1434   --enable-static-tools   enable static tape tools disabled
1435   --enable-static-fd      enable static File daemon disabled
1436   --enable-static-sd      enable static Storage daemon disabled
1437   --enable-static-dir     enable static Director disabled
1438   --enable-static-cons    enable static Console disabled
1439   --enable-client-only    build client (File daemon) only disabled
1440   --enable-build-dird     enable building of dird (Director) enabled
1441   --enable-build-stored   enable building of stored (Storage daemon) enabled
1442   --enable-ipv6             enable ipv6 support enabled
1443
1444   --disable-readline      disable readline support disable
1445
1446   --disable-largefile     omit support for large files
1447
1448 Optional Packages:
1449   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1452   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1453   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1454   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1455   --without-libintl-prefix     don't search for libintl in includedir and libdir
1456   --with-included-gettext use the GNU gettext library included here
1457  --with-readline=DIR             specify readline library directory
1458
1459   --with-python=DIR       Include Python support.  DIR is the Python base
1460                           install directory, default is to search through
1461                           a number of common places for the Python files.
1462   --with-tcp-wrappers=DIR        enable tcpwrappers support
1463   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1464   --with-working-dir=PATH        specify path of Bacula working directory
1465   --with-scriptdir=PATH    specify path of Bacula scripts directory
1466   --with-dump-email=EMAIL        dump email address
1467   --with-job-email=EMAIL         job output email address
1468   --with-smtp-host=HOST          SMTP mail host address
1469   --with-pid-dir=PATH            specify location of Bacula pid files
1470   --with-subsys-dir=PATH         specify location of Bacula subsys file
1471   --with-baseport=PORT           specify base port address for daemons
1472   --with-dir-password=PASSWORD   specify Director's password
1473   --with-fd-password=PASSWORD    specify Client's password
1474   --with-sd-password=PASSWORD    specify Storage daemon's password
1475   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1476   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1477   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1478   --with-dir-user=USER           specify user for Director daemon
1479   --with-dir-group=GROUP                 specify group for Director daemon
1480   --with-sd-user=USER            specify user for Storage daemon
1481   --with-sd-group=GROUP          specify group for Storage daemon
1482   --with-fd-user=USER            specify user for File daemon
1483   --with-fd-group=GROUP          specify group for File daemon
1484   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1485   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
1486                           base install directory, defaults to /usr/local/pgsql
1487
1488   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
1489                           install directory, default is to search through
1490                           a number of common places for the MySQL files.
1491
1492   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
1493                           install directory, default is to search through
1494                           a number of common places for the MySQL files.
1495
1496   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
1497                           install directory, default is to search through
1498                           a number of common places for the SQLite3 files.
1499
1500   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
1501                           install directory, default is to search through
1502                           a number of common places for the SQLite files.
1503   --with-x                use the X Window System
1504
1505 Some influential environment variables:
1506   CC          C compiler command
1507   CFLAGS      C compiler flags
1508   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509               nonstandard directory <lib dir>
1510   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511               you have headers in a nonstandard directory <include dir>
1512   CXX         C++ compiler command
1513   CXXFLAGS    C++ compiler flags
1514   CPP         C preprocessor
1515   WXCONFIG    wx-config command. On some systems, you must set it to
1516               wx-config-2.6 to use wxWidgets 2.6.
1517   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1518   XMKMF       Path to xmkmf, Makefile generator for X Window System
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" || continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 configure
1584 generated by GNU Autoconf 2.60
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591   exit
1592 fi
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1596
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.60.  Invocation command line was
1599
1600   $ $0 $@
1601
1602 _ACEOF
1603 exec 5>>config.log
1604 {
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1609
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1618
1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1626
1627 _ASUNAME
1628
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1637
1638 } >&5
1639
1640 cat >&5 <<_ACEOF
1641
1642
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1646
1647 _ACEOF
1648
1649
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1660 do
1661   for ac_arg
1662   do
1663     case $ac_arg in
1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666     | -silent | --silent | --silen | --sile | --sil)
1667       continue ;;
1668     *\'*)
1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670     esac
1671     case $ac_pass in
1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673     2)
1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675       if test $ac_must_keep_next = true; then
1676         ac_must_keep_next=false # Got value, back to normal.
1677       else
1678         case $ac_arg in
1679           *=* | --config-cache | -C | -disable-* | --disable-* \
1680           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682           | -with-* | --with-* | -without-* | --without-* | --x)
1683             case "$ac_configure_args0 " in
1684               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685             esac
1686             ;;
1687           -* ) ac_must_keep_next=true ;;
1688         esac
1689       fi
1690       ac_configure_args="$ac_configure_args '$ac_arg'"
1691       ;;
1692     esac
1693   done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log.  We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704   # Save into config.log some information that might help in debugging.
1705   {
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713     echo
1714     # The following way of writing the cache mishandles newlines in values,
1715 (
1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717     eval ac_val=\$$ac_var
1718     case $ac_val in #(
1719     *${as_nl}*)
1720       case $ac_var in #(
1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723       esac
1724       case $ac_var in #(
1725       _ | IFS | as_nl) ;; #(
1726       *) $as_unset $ac_var ;;
1727       esac ;;
1728     esac
1729   done
1730   (set) 2>&1 |
1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732     *${as_nl}ac_space=\ *)
1733       sed -n \
1734         "s/'\''/'\''\\\\'\'''\''/g;
1735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736       ;; #(
1737     *)
1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739       ;;
1740     esac |
1741     sort
1742 )
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750     echo
1751     for ac_var in $ac_subst_vars
1752     do
1753       eval ac_val=\$$ac_var
1754       case $ac_val in
1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756       esac
1757       echo "$ac_var='\''$ac_val'\''"
1758     done | sort
1759     echo
1760
1761     if test -n "$ac_subst_files"; then
1762       cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767       echo
1768       for ac_var in $ac_subst_files
1769       do
1770         eval ac_val=\$$ac_var
1771         case $ac_val in
1772         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773         esac
1774         echo "$ac_var='\''$ac_val'\''"
1775       done | sort
1776       echo
1777     fi
1778
1779     if test -s confdefs.h; then
1780       cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785       echo
1786       cat confdefs.h
1787       echo
1788     fi
1789     test "$ac_signal" != 0 &&
1790       echo "$as_me: caught signal $ac_signal"
1791     echo "$as_me: exit $exit_status"
1792   } >&5
1793   rm -f core *.core core.conftest.* &&
1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795     exit $exit_status
1796 ' 0
1797 for ac_signal in 1 2 13 15; do
1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1801
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1804
1805 # Predefined preprocessor variables.
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1830
1831
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835   set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 else
1839   set x "$ac_default_prefix/share/config.site" \
1840         "$ac_default_prefix/etc/config.site"
1841 fi
1842 shift
1843 for ac_site_file
1844 do
1845   if test -r "$ac_site_file"; then
1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848     sed 's/^/| /' "$ac_site_file" >&5
1849     . "$ac_site_file"
1850   fi
1851 done
1852
1853 if test -r "$cache_file"; then
1854   # Some versions of bash will fail to source /dev/null (special
1855   # files actually), so we avoid doing that.
1856   if test -f "$cache_file"; then
1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1859     case $cache_file in
1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861       *)                      . "./$cache_file";;
1862     esac
1863   fi
1864 else
1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1867   >$cache_file
1868 fi
1869
1870 # Check that the precious variables saved in the cache have kept the same
1871 # value.
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875   eval ac_new_set=\$ac_env_${ac_var}_set
1876   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877   eval ac_new_val=\$ac_env_${ac_var}_value
1878   case $ac_old_set,$ac_new_set in
1879     set,)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,set)
1884       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886       ac_cache_corrupted=: ;;
1887     ,);;
1888     *)
1889       if test "x$ac_old_val" != "x$ac_new_val"; then
1890         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1893 echo "$as_me:   former value:  $ac_old_val" >&2;}
1894         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1895 echo "$as_me:   current value: $ac_new_val" >&2;}
1896         ac_cache_corrupted=:
1897       fi;;
1898   esac
1899   # Pass precious variables to config.status.
1900   if test "$ac_new_set" = set; then
1901     case $ac_new_val in
1902     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903     *) ac_arg=$ac_var=$ac_new_val ;;
1904     esac
1905     case " $ac_configure_args " in
1906       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1907       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908     esac
1909   fi
1910 done
1911 if $ac_cache_corrupted; then
1912   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916    { (exit 1); exit 1; }; }
1917 fi
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942 BUILD_DIR=`pwd`
1943 cd ..
1944 TOP_DIR=`pwd`
1945 cd ${BUILD_DIR}
1946
1947
1948 ac_aux_dir=
1949 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1950   if test -f "$ac_dir/install-sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install-sh -c"
1953     break
1954   elif test -f "$ac_dir/install.sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install.sh -c"
1957     break
1958   elif test -f "$ac_dir/shtool"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/shtool install -c"
1961     break
1962   fi
1963 done
1964 if test -z "$ac_aux_dir"; then
1965   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1977
1978
1979 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1980
1981
1982
1983
1984
1985 for ac_prog in true
1986 do
1987   # Extract the first word of "$ac_prog", so it can be a program name with args.
1988 set dummy $ac_prog; ac_word=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   case $TRUEPRG in
1995   [\\/]* | ?:[\\/]*)
1996   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1997   ;;
1998   *)
1999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   for ac_exec_ext in '' $ac_executable_extensions; do
2005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2006     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012 IFS=$as_save_IFS
2013
2014   ;;
2015 esac
2016 fi
2017 TRUEPRG=$ac_cv_path_TRUEPRG
2018 if test -n "$TRUEPRG"; then
2019   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2020 echo "${ECHO_T}$TRUEPRG" >&6; }
2021 else
2022   { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2024 fi
2025
2026
2027   test -n "$TRUEPRG" && break
2028 done
2029 test -n "$TRUEPRG" || TRUEPRG=":"
2030
2031 for ac_prog in false
2032 do
2033   # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy $ac_prog; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   case $FALSEPRG in
2041   [\\/]* | ?:[\\/]*)
2042   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2043   ;;
2044   *)
2045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060   ;;
2061 esac
2062 fi
2063 FALSEPRG=$ac_cv_path_FALSEPRG
2064 if test -n "$FALSEPRG"; then
2065   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2066 echo "${ECHO_T}$FALSEPRG" >&6; }
2067 else
2068   { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2070 fi
2071
2072
2073   test -n "$FALSEPRG" && break
2074 done
2075 test -n "$FALSEPRG" || FALSEPRG=":"
2076
2077
2078 #AC_CANONICAL_HOST
2079
2080 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2081 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2082 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2083 echo "configuring for bacula $VERSION ($DATE)"
2084
2085
2086
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 if test -n "$ac_tool_prefix"; then
2093   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   if test -n "$CC"; then
2101   ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118 fi
2119 fi
2120 CC=$ac_cv_prog_CC
2121 if test -n "$CC"; then
2122   { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2124 else
2125   { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2127 fi
2128
2129
2130 fi
2131 if test -z "$ac_cv_prog_CC"; then
2132   ac_ct_CC=$CC
2133   # Extract the first word of "gcc", so it can be a program name with args.
2134 set dummy gcc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$ac_ct_CC"; then
2141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2150     ac_cv_prog_ac_ct_CC="gcc"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6; }
2164 else
2165   { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2167 fi
2168
2169   if test "x$ac_ct_CC" = x; then
2170     CC=""
2171   else
2172     case $cross_compiling:$ac_tool_warned in
2173 yes:)
2174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet.  If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&5
2177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet.  If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2180 ac_tool_warned=yes ;;
2181 esac
2182     CC=$ac_ct_CC
2183   fi
2184 else
2185   CC="$ac_cv_prog_CC"
2186 fi
2187
2188 if test -z "$CC"; then
2189           if test -n "$ac_tool_prefix"; then
2190     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}cc; ac_word=$2
2192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 if test "${ac_cv_prog_CC+set}" = set; then
2195   echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197   if test -n "$CC"; then
2198   ac_cv_prog_CC="$CC" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2207     ac_cv_prog_CC="${ac_tool_prefix}cc"
2208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219   { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 fi
2225
2226
2227   fi
2228 fi
2229 if test -z "$CC"; then
2230   # Extract the first word of "cc", so it can be a program name with args.
2231 set dummy cc; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$CC"; then
2238   ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240   ac_prog_rejected=no
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2248     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2249        ac_prog_rejected=yes
2250        continue
2251      fi
2252     ac_cv_prog_CC="cc"
2253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254     break 2
2255   fi
2256 done
2257 done
2258 IFS=$as_save_IFS
2259
2260 if test $ac_prog_rejected = yes; then
2261   # We found a bogon in the path, so make sure we never use it.
2262   set dummy $ac_cv_prog_CC
2263   shift
2264   if test $# != 0; then
2265     # We chose a different compiler from the bogus one.
2266     # However, it has the same basename, so the bogon will be chosen
2267     # first if we set CC to just the basename; use the full file name.
2268     shift
2269     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2270   fi
2271 fi
2272 fi
2273 fi
2274 CC=$ac_cv_prog_CC
2275 if test -n "$CC"; then
2276   { echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6; }
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 fi
2282
2283
2284 fi
2285 if test -z "$CC"; then
2286   if test -n "$ac_tool_prefix"; then
2287   for ac_prog in cl.exe
2288   do
2289     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_prog_CC+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   if test -n "$CC"; then
2297   ac_cv_prog_CC="$CC" # Let the user override the test.
2298 else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   for ac_exec_ext in '' $ac_executable_extensions; do
2305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2306     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308     break 2
2309   fi
2310 done
2311 done
2312 IFS=$as_save_IFS
2313
2314 fi
2315 fi
2316 CC=$ac_cv_prog_CC
2317 if test -n "$CC"; then
2318   { echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6; }
2320 else
2321   { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2323 fi
2324
2325
2326     test -n "$CC" && break
2327   done
2328 fi
2329 if test -z "$CC"; then
2330   ac_ct_CC=$CC
2331   for ac_prog in cl.exe
2332 do
2333   # Extract the first word of "$ac_prog", so it can be a program name with args.
2334 set dummy $ac_prog; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -n "$ac_ct_CC"; then
2341   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348   for ac_exec_ext in '' $ac_executable_extensions; do
2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2350     ac_cv_prog_ac_ct_CC="$ac_prog"
2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2361 if test -n "$ac_ct_CC"; then
2362   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2363 echo "${ECHO_T}$ac_ct_CC" >&6; }
2364 else
2365   { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 fi
2368
2369
2370   test -n "$ac_ct_CC" && break
2371 done
2372
2373   if test "x$ac_ct_CC" = x; then
2374     CC=""
2375   else
2376     case $cross_compiling:$ac_tool_warned in
2377 yes:)
2378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet.  If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&5
2381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet.  If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384 ac_tool_warned=yes ;;
2385 esac
2386     CC=$ac_ct_CC
2387   fi
2388 fi
2389
2390 fi
2391
2392
2393 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: no acceptable C compiler found in \$PATH
2396 See \`config.log' for more details." >&2;}
2397    { (exit 1); exit 1; }; }
2398
2399 # Provide some information about the compiler.
2400 echo "$as_me:$LINENO: checking for C compiler version" >&5
2401 ac_compiler=`set X $ac_compile; echo $2`
2402 { (ac_try="$ac_compiler --version >&5"
2403 case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408   (eval "$ac_compiler --version >&5") 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }
2412 { (ac_try="$ac_compiler -v >&5"
2413 case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_compiler -v >&5") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }
2422 { (ac_try="$ac_compiler -V >&5"
2423 case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428   (eval "$ac_compiler -V >&5") 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }
2432
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 ac_clean_files_save=$ac_clean_files
2449 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2450 # Try to create an executable without -o first, disregard a.out.
2451 # It will help us diagnose broken compilers, and finding out an intuition
2452 # of exeext.
2453 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2454 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2455 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2456 #
2457 # List of possible output files, starting from the most likely.
2458 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2459 # only as a last resort.  b.out is created by i960 compilers.
2460 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2461 #
2462 # The IRIX 6 linker writes into existing files which may not be
2463 # executable, retaining their permissions.  Remove them first so a
2464 # subsequent execution test works.
2465 ac_rmfiles=
2466 for ac_file in $ac_files
2467 do
2468   case $ac_file in
2469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2470     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2471   esac
2472 done
2473 rm -f $ac_rmfiles
2474
2475 if { (ac_try="$ac_link_default"
2476 case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_link_default") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; then
2485   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2486 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2487 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2488 # so that the user can short-circuit this test for compilers unknown to
2489 # Autoconf.
2490 for ac_file in $ac_files
2491 do
2492   test -f "$ac_file" || continue
2493   case $ac_file in
2494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2495         ;;
2496     [ab].out )
2497         # We found the default executable, but exeext='' is most
2498         # certainly right.
2499         break;;
2500     *.* )
2501         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2502         then :; else
2503            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504         fi
2505         # We set ac_cv_exeext here because the later test for it is not
2506         # safe: cross compilers may not add the suffix if given an `-o'
2507         # argument, so we may need to know it at that point already.
2508         # Even if this section looks crufty: it has the advantage of
2509         # actually working.
2510         break;;
2511     * )
2512         break;;
2513   esac
2514 done
2515 test "$ac_cv_exeext" = no && ac_cv_exeext=
2516
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&2;}
2525    { (exit 77); exit 77; }; }
2526 fi
2527
2528 ac_exeext=$ac_cv_exeext
2529 { echo "$as_me:$LINENO: result: $ac_file" >&5
2530 echo "${ECHO_T}$ac_file" >&6; }
2531
2532 # Check that the compiler produces executables we can run.  If not, either
2533 # the compiler is broken, or we cross compile.
2534 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2535 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2536 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2537 # If not cross compiling, check that we can run a simple program.
2538 if test "$cross_compiling" != yes; then
2539   if { ac_try='./$ac_file'
2540   { (case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545   (eval "$ac_try") 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549     cross_compiling=no
2550   else
2551     if test "$cross_compiling" = maybe; then
2552         cross_compiling=yes
2553     else
2554         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2555 If you meant to cross compile, use \`--host'.
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: cannot run C compiled programs.
2558 If you meant to cross compile, use \`--host'.
2559 See \`config.log' for more details." >&2;}
2560    { (exit 1); exit 1; }; }
2561     fi
2562   fi
2563 fi
2564 { echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6; }
2566
2567 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2568 ac_clean_files=$ac_clean_files_save
2569 # Check that the compiler produces executables we can run.  If not, either
2570 # the compiler is broken, or we cross compile.
2571 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2572 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2573 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2574 echo "${ECHO_T}$cross_compiling" >&6; }
2575
2576 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2577 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2578 if { (ac_try="$ac_link"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_link") 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; then
2588   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2589 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2590 # work properly (i.e., refer to `conftest.exe'), while it won't with
2591 # `rm'.
2592 for ac_file in conftest.exe conftest conftest.*; do
2593   test -f "$ac_file" || continue
2594   case $ac_file in
2595     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2597           break;;
2598     * ) break;;
2599   esac
2600 done
2601 else
2602   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&2;}
2606    { (exit 1); exit 1; }; }
2607 fi
2608
2609 rm -f conftest$ac_cv_exeext
2610 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2611 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2612
2613 rm -f conftest.$ac_ext
2614 EXEEXT=$ac_cv_exeext
2615 ac_exeext=$EXEEXT
2616 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2617 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2618 if test "${ac_cv_objext+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.o conftest.obj
2637 if { (ac_try="$ac_compile"
2638 case "(($ac_try" in
2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640   *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643   (eval "$ac_compile") 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; then
2647   for ac_file in conftest.o conftest.obj conftest.*; do
2648   test -f "$ac_file" || continue;
2649   case $ac_file in
2650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2651     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2652        break;;
2653   esac
2654 done
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&2;}
2663    { (exit 1); exit 1; }; }
2664 fi
2665
2666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2667 fi
2668 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669 echo "${ECHO_T}$ac_cv_objext" >&6; }
2670 OBJEXT=$ac_cv_objext
2671 ac_objext=$OBJEXT
2672 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687 #ifndef __GNUC__
2688        choke me
2689 #endif
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2710   { (case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_try") 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; } &&
2719          { ac_try='test -s conftest.$ac_objext'
2720   { (case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725   (eval "$ac_try") 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; }; then
2729   ac_compiler_gnu=yes
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734         ac_compiler_gnu=no
2735 fi
2736
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2739
2740 fi
2741 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2742 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2743 GCC=`test $ac_compiler_gnu = yes && echo yes`
2744 ac_test_CFLAGS=${CFLAGS+set}
2745 ac_save_CFLAGS=$CFLAGS
2746 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2747 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_cc_g+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   ac_save_c_werror_flag=$ac_c_werror_flag
2752    ac_c_werror_flag=yes
2753    ac_cv_prog_cc_g=no
2754    CFLAGS="-g"
2755    cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761
2762 int
2763 main ()
2764 {
2765
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777   (eval "$ac_compile") 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2785   { (case "(($ac_try" in
2786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787   *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790   (eval "$ac_try") 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_try") 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   ac_cv_prog_cc_g=yes
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809         CFLAGS=""
2810       cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816
2817 int
2818 main ()
2819 {
2820
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_compile") 2>conftest.er1
2833   ac_status=$?
2834   grep -v '^ *+' conftest.er1 >conftest.err
2835   rm -f conftest.er1
2836   cat conftest.err >&5
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); } &&
2839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2840   { (case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845   (eval "$ac_try") 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; } &&
2849          { ac_try='test -s conftest.$ac_objext'
2850   { (case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_try") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859   :
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864         ac_c_werror_flag=$ac_save_c_werror_flag
2865          CFLAGS="-g"
2866          cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h.  */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h.  */
2872
2873 int
2874 main ()
2875 {
2876
2877   ;
2878   return 0;
2879 }
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compile") 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } &&
2895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2896   { (case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_try") 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }; } &&
2905          { ac_try='test -s conftest.$ac_objext'
2906   { (case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_try") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; }; then
2915   ac_cv_prog_cc_g=yes
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920
2921 fi
2922
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924 fi
2925
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2927 fi
2928
2929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930    ac_c_werror_flag=$ac_save_c_werror_flag
2931 fi
2932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2933 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2934 if test "$ac_test_CFLAGS" = set; then
2935   CFLAGS=$ac_save_CFLAGS
2936 elif test $ac_cv_prog_cc_g = yes; then
2937   if test "$GCC" = yes; then
2938     CFLAGS="-g -O2"
2939   else
2940     CFLAGS="-g"
2941   fi
2942 else
2943   if test "$GCC" = yes; then
2944     CFLAGS="-O2"
2945   else
2946     CFLAGS=
2947   fi
2948 fi
2949 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2950 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_cc_c89+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   ac_cv_prog_cc_c89=no
2955 ac_save_CC=$CC
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h.  */
2962 #include <stdarg.h>
2963 #include <stdio.h>
2964 #include <sys/types.h>
2965 #include <sys/stat.h>
2966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2967 struct buf { int x; };
2968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2969 static char *e (p, i)
2970      char **p;
2971      int i;
2972 {
2973   return p[i];
2974 }
2975 static char *f (char * (*g) (char **, int), char **p, ...)
2976 {
2977   char *s;
2978   va_list v;
2979   va_start (v,p);
2980   s = g (p, va_arg (v,int));
2981   va_end (v);
2982   return s;
2983 }
2984
2985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2986    function prototypes and stuff, but not '\xHH' hex character constants.
2987    These don't provoke an error unfortunately, instead are silently treated
2988    as 'x'.  The following induces an error, until -std is added to get
2989    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2990    array size at least.  It's necessary to write '\x00'==0 to get something
2991    that's true only with -std.  */
2992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2993
2994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2995    inside strings and character constants.  */
2996 #define FOO(x) 'x'
2997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2998
2999 int test (int i, double x);
3000 struct s1 {int (*f) (int a);};
3001 struct s2 {int (*f) (double a);};
3002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3003 int argc;
3004 char **argv;
3005 int
3006 main ()
3007 {
3008 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3014         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3015 do
3016   CC="$ac_save_CC $ac_arg"
3017   rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } &&
3031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3032   { (case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_try") 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; } &&
3041          { ac_try='test -s conftest.$ac_objext'
3042   { (case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_try") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; }; then
3051   ac_cv_prog_cc_c89=$ac_arg
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056
3057 fi
3058
3059 rm -f core conftest.err conftest.$ac_objext
3060   test "x$ac_cv_prog_cc_c89" != "xno" && break
3061 done
3062 rm -f conftest.$ac_ext
3063 CC=$ac_save_CC
3064
3065 fi
3066 # AC_CACHE_VAL
3067 case "x$ac_cv_prog_cc_c89" in
3068   x)
3069     { echo "$as_me:$LINENO: result: none needed" >&5
3070 echo "${ECHO_T}none needed" >&6; } ;;
3071   xno)
3072     { echo "$as_me:$LINENO: result: unsupported" >&5
3073 echo "${ECHO_T}unsupported" >&6; } ;;
3074   *)
3075     CC="$CC $ac_cv_prog_cc_c89"
3076     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3077 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3078 esac
3079
3080
3081 ac_ext=c
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086
3087 ac_ext=cpp
3088 ac_cpp='$CXXCPP $CPPFLAGS'
3089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3092 if test -z "$CXX"; then
3093   if test -n "$CCC"; then
3094     CXX=$CCC
3095   else
3096     if test -n "$ac_tool_prefix"; then
3097   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3098   do
3099     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_CXX+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   if test -n "$CXX"; then
3107   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114   for ac_exec_ext in '' $ac_executable_extensions; do
3115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3116     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 CXX=$ac_cv_prog_CXX
3127 if test -n "$CXX"; then
3128   { echo "$as_me:$LINENO: result: $CXX" >&5
3129 echo "${ECHO_T}$CXX" >&6; }
3130 else
3131   { echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6; }
3133 fi
3134
3135
3136     test -n "$CXX" && break
3137   done
3138 fi
3139 if test -z "$CXX"; then
3140   ac_ct_CXX=$CXX
3141   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3142 do
3143   # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy $ac_prog; ac_word=$2
3145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150   if test -n "$ac_ct_CXX"; then
3151   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158   for ac_exec_ext in '' $ac_executable_extensions; do
3159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3160     ac_cv_prog_ac_ct_CXX="$ac_prog"
3161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162     break 2
3163   fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3171 if test -n "$ac_ct_CXX"; then
3172   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3173 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3174 else
3175   { echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6; }
3177 fi
3178
3179
3180   test -n "$ac_ct_CXX" && break
3181 done
3182
3183   if test "x$ac_ct_CXX" = x; then
3184     CXX="g++"
3185   else
3186     case $cross_compiling:$ac_tool_warned in
3187 yes:)
3188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3189 whose name does not start with the host triplet.  If you think this
3190 configuration is useful to you, please write to autoconf@gnu.org." >&5
3191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3192 whose name does not start with the host triplet.  If you think this
3193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3194 ac_tool_warned=yes ;;
3195 esac
3196     CXX=$ac_ct_CXX
3197   fi
3198 fi
3199
3200   fi
3201 fi
3202 # Provide some information about the compiler.
3203 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3204 ac_compiler=`set X $ac_compile; echo $2`
3205 { (ac_try="$ac_compiler --version >&5"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_compiler --version >&5") 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }
3215 { (ac_try="$ac_compiler -v >&5"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compiler -v >&5") 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }
3225 { (ac_try="$ac_compiler -V >&5"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_compiler -V >&5") 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }
3235
3236 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3237 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3238 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h.  */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251 #ifndef __GNUC__
3252        choke me
3253 #endif
3254
3255   ;
3256   return 0;
3257 }
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3261 case "(($ac_try" in
3262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263   *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266   (eval "$ac_compile") 2>conftest.er1
3267   ac_status=$?
3268   grep -v '^ *+' conftest.er1 >conftest.err
3269   rm -f conftest.er1
3270   cat conftest.err >&5
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); } &&
3273          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3274   { (case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_try") 2>&5
3280   ac_status=$?
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }; } &&
3283          { ac_try='test -s conftest.$ac_objext'
3284   { (case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289   (eval "$ac_try") 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_compiler_gnu=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298         ac_compiler_gnu=no
3299 fi
3300
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3303
3304 fi
3305 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3307 GXX=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CXXFLAGS=${CXXFLAGS+set}
3309 ac_save_CXXFLAGS=$CXXFLAGS
3310 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3311 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_cxx_g+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3316    ac_cxx_werror_flag=yes
3317    ac_cv_prog_cxx_g=no
3318    CXXFLAGS="-g"
3319    cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_compile") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } &&
3348          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3349   { (case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354   (eval "$ac_try") 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; } &&
3358          { ac_try='test -s conftest.$ac_objext'
3359   { (case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364   (eval "$ac_try") 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368   ac_cv_prog_cxx_g=yes
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373         CXXFLAGS=""
3374       cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380
3381 int
3382 main ()
3383 {
3384
3385   ;
3386   return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compile") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } &&
3403          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3404   { (case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_try") 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }; } &&
3413          { ac_try='test -s conftest.$ac_objext'
3414   { (case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419   (eval "$ac_try") 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }; }; then
3423   :
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3429          CXXFLAGS="-g"
3430          cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436
3437 int
3438 main ()
3439 {
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_compile") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } &&
3459          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3460   { (case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465   (eval "$ac_try") 2>&5
3466   ac_status=$?
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); }; } &&
3469          { ac_try='test -s conftest.$ac_objext'
3470   { (case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475   (eval "$ac_try") 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }; }; then
3479   ac_cv_prog_cxx_g=yes
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484
3485 fi
3486
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 fi
3489
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 fi
3492
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3495 fi
3496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3497 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3498 if test "$ac_test_CXXFLAGS" = set; then
3499   CXXFLAGS=$ac_save_CXXFLAGS
3500 elif test $ac_cv_prog_cxx_g = yes; then
3501   if test "$GXX" = yes; then
3502     CXXFLAGS="-g -O2"
3503   else
3504     CXXFLAGS="-g"
3505   fi
3506 else
3507   if test "$GXX" = yes; then
3508     CXXFLAGS="-O2"
3509   else
3510     CXXFLAGS=
3511   fi
3512 fi
3513 ac_ext=c
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518
3519 if test "x$CC" != xcc; then
3520   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3521 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3522 else
3523   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3524 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3525 fi
3526 set dummy $CC; ac_cc=`echo $2 |
3527                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3528 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 # Make sure it works both with $CC and with simple cc.
3547 # We do the test twice because some compilers refuse to overwrite an
3548 # existing .o file with -o, though they will create one.
3549 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3550 rm -f conftest2.*
3551 if { (case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556   (eval "$ac_try") 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } &&
3560    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_try") 2>&5
3566   ac_status=$?
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); };
3569 then
3570   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3571   if test "x$CC" != xcc; then
3572     # Test first that cc exists at all.
3573     if { ac_try='cc -c conftest.$ac_ext >&5'
3574   { (case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579   (eval "$ac_try") 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; }; then
3583       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3584       rm -f conftest2.*
3585       if { (case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_try") 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } &&
3594          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599   (eval "$ac_try") 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); };
3603       then
3604         # cc works too.
3605         :
3606       else
3607         # cc exists but doesn't like -o.
3608         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3609       fi
3610     fi
3611   fi
3612 else
3613   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3614 fi
3615 rm -f core conftest*
3616
3617 fi
3618 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3619   { echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6; }
3621 else
3622   { echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6; }
3624
3625 cat >>confdefs.h <<\_ACEOF
3626 #define NO_MINUS_C_MINUS_O 1
3627 _ACEOF
3628
3629 fi
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3637 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640   CPP=
3641 fi
3642 if test -z "$CPP"; then
3643   if test "${ac_cv_prog_CPP+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646       # Double quotes because CPP needs to be expanded
3647     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3648     do
3649       ac_preproc_ok=false
3650 for ac_c_preproc_warn_flag in '' yes
3651 do
3652   # Use a header file that comes with gcc, so configuring glibc
3653   # with a fresh cross-compiler works.
3654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3655   # <limits.h> exists even on freestanding compilers.
3656   # On the NeXT, cc -E runs the code through the compiler's parser,
3657   # not just through cpp. "Syntax error" is here to catch this case.
3658   cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h.  */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h.  */
3664 #ifdef __STDC__
3665 # include <limits.h>
3666 #else
3667 # include <assert.h>
3668 #endif
3669                      Syntax error
3670 _ACEOF
3671 if { (ac_try="$ac_cpp conftest.$ac_ext"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } >/dev/null; then
3684   if test -s conftest.err; then
3685     ac_cpp_err=$ac_c_preproc_warn_flag
3686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3687   else
3688     ac_cpp_err=
3689   fi
3690 else
3691   ac_cpp_err=yes
3692 fi
3693 if test -z "$ac_cpp_err"; then
3694   :
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699   # Broken: fails on valid input.
3700 continue
3701 fi
3702
3703 rm -f conftest.err conftest.$ac_ext
3704
3705   # OK, works on sane cases.  Now check whether nonexistent headers
3706   # can be detected and how.
3707   cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h.  */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h.  */
3713 #include <ac_nonexistent.h>
3714 _ACEOF
3715 if { (ac_try="$ac_cpp conftest.$ac_ext"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } >/dev/null; then
3728   if test -s conftest.err; then
3729     ac_cpp_err=$ac_c_preproc_warn_flag
3730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3731   else
3732     ac_cpp_err=
3733   fi
3734 else
3735   ac_cpp_err=yes
3736 fi
3737 if test -z "$ac_cpp_err"; then
3738   # Broken: success on invalid input.
3739 continue
3740 else
3741   echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744   # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3747 fi
3748
3749 rm -f conftest.err conftest.$ac_ext
3750
3751 done
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then
3755   break
3756 fi
3757
3758     done
3759     ac_cv_prog_CPP=$CPP
3760
3761 fi
3762   CPP=$ac_cv_prog_CPP
3763 else
3764   ac_cv_prog_CPP=$CPP
3765 fi
3766 { echo "$as_me:$LINENO: result: $CPP" >&5
3767 echo "${ECHO_T}$CPP" >&6; }
3768 ac_preproc_ok=false
3769 for ac_c_preproc_warn_flag in '' yes
3770 do
3771   # Use a header file that comes with gcc, so configuring glibc
3772   # with a fresh cross-compiler works.
3773   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774   # <limits.h> exists even on freestanding compilers.
3775   # On the NeXT, cc -E runs the code through the compiler's parser,
3776   # not just through cpp. "Syntax error" is here to catch this case.
3777   cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 #ifdef __STDC__
3784 # include <limits.h>
3785 #else
3786 # include <assert.h>
3787 #endif
3788                      Syntax error
3789 _ACEOF
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } >/dev/null; then
3803   if test -s conftest.err; then
3804     ac_cpp_err=$ac_c_preproc_warn_flag
3805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3806   else
3807     ac_cpp_err=
3808   fi
3809 else
3810   ac_cpp_err=yes
3811 fi
3812 if test -z "$ac_cpp_err"; then
3813   :
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818   # Broken: fails on valid input.
3819 continue
3820 fi
3821
3822 rm -f conftest.err conftest.$ac_ext
3823
3824   # OK, works on sane cases.  Now check whether nonexistent headers
3825   # can be detected and how.
3826   cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832 #include <ac_nonexistent.h>
3833 _ACEOF
3834 if { (ac_try="$ac_cpp conftest.$ac_ext"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3841   ac_status=$?
3842   grep -v '^ *+' conftest.er1 >conftest.err
3843   rm -f conftest.er1
3844   cat conftest.err >&5
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } >/dev/null; then
3847   if test -s conftest.err; then
3848     ac_cpp_err=$ac_c_preproc_warn_flag
3849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3850   else
3851     ac_cpp_err=
3852   fi
3853 else
3854   ac_cpp_err=yes
3855 fi
3856 if test -z "$ac_cpp_err"; then
3857   # Broken: success on invalid input.
3858 continue
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863   # Passes both tests.
3864 ac_preproc_ok=:
3865 break
3866 fi
3867
3868 rm -f conftest.err conftest.$ac_ext
3869
3870 done
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.err conftest.$ac_ext
3873 if $ac_preproc_ok; then
3874   :
3875 else
3876   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details." >&5
3878 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&2;}
3880    { (exit 1); exit 1; }; }
3881 fi
3882
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3891 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3892 if test "${ac_cv_path_GREP+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   # Extract the first word of "grep ggrep" to use in msg output
3896 if test -z "$GREP"; then
3897 set dummy grep ggrep; ac_prog_name=$2
3898 if test "${ac_cv_path_GREP+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   ac_path_GREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908   for ac_prog in grep ggrep; do
3909   for ac_exec_ext in '' $ac_executable_extensions; do
3910     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3911     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3912     # Check for GNU ac_path_GREP and select it if it is found.
3913   # Check for GNU $ac_path_GREP
3914 case `"$ac_path_GREP" --version 2>&1` in
3915 *GNU*)
3916   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3917 *)
3918   ac_count=0
3919   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3920   while :
3921   do
3922     cat "conftest.in" "conftest.in" >"conftest.tmp"
3923     mv "conftest.tmp" "conftest.in"
3924     cp "conftest.in" "conftest.nl"
3925     echo 'GREP' >> "conftest.nl"
3926     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928     ac_count=`expr $ac_count + 1`
3929     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3930       # Best one so far, save it but keep looking for a better one
3931       ac_cv_path_GREP="$ac_path_GREP"
3932       ac_path_GREP_max=$ac_count
3933     fi
3934     # 10*(2^10) chars as input seems more than enough
3935     test $ac_count -gt 10 && break
3936   done
3937   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 esac
3939
3940
3941     $ac_path_GREP_found && break 3
3942   done
3943 done
3944
3945 done
3946 IFS=$as_save_IFS
3947
3948
3949 fi
3950
3951 GREP="$ac_cv_path_GREP"
3952 if test -z "$GREP"; then
3953   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3954 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3955    { (exit 1); exit 1; }; }
3956 fi
3957
3958 else
3959   ac_cv_path_GREP=$GREP
3960 fi
3961
3962
3963 fi
3964 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3965 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3966  GREP="$ac_cv_path_GREP"
3967
3968
3969 { echo "$as_me:$LINENO: checking for egrep" >&5
3970 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3971 if test "${ac_cv_path_EGREP+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3975    then ac_cv_path_EGREP="$GREP -E"
3976    else
3977      # Extract the first word of "egrep" to use in msg output
3978 if test -z "$EGREP"; then
3979 set dummy egrep; ac_prog_name=$2
3980 if test "${ac_cv_path_EGREP+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   ac_path_EGREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990   for ac_prog in egrep; do
3991   for ac_exec_ext in '' $ac_executable_extensions; do
3992     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3993     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3994     # Check for GNU ac_path_EGREP and select it if it is found.
3995   # Check for GNU $ac_path_EGREP
3996 case `"$ac_path_EGREP" --version 2>&1` in
3997 *GNU*)
3998   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3999 *)
4000   ac_count=0
4001   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4002   while :
4003   do
4004     cat "conftest.in" "conftest.in" >"conftest.tmp"
4005     mv "conftest.tmp" "conftest.in"
4006     cp "conftest.in" "conftest.nl"
4007     echo 'EGREP' >> "conftest.nl"
4008     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010     ac_count=`expr $ac_count + 1`
4011     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4012       # Best one so far, save it but keep looking for a better one
4013       ac_cv_path_EGREP="$ac_path_EGREP"
4014       ac_path_EGREP_max=$ac_count
4015     fi
4016     # 10*(2^10) chars as input seems more than enough
4017     test $ac_count -gt 10 && break
4018   done
4019   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4021
4022
4023     $ac_path_EGREP_found && break 3
4024   done
4025 done
4026
4027 done
4028 IFS=$as_save_IFS
4029
4030
4031 fi
4032
4033 EGREP="$ac_cv_path_EGREP"
4034 if test -z "$EGREP"; then
4035   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037    { (exit 1); exit 1; }; }
4038 fi
4039
4040 else
4041   ac_cv_path_EGREP=$EGREP
4042 fi
4043
4044
4045    fi
4046 fi
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4049  EGREP="$ac_cv_path_EGREP"
4050
4051
4052 if test $ac_cv_c_compiler_gnu = yes; then
4053     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4054 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4055 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058     ac_pattern="Autoconf.*'x'"
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 #include <sgtty.h>
4066 Autoconf TIOCGETP
4067 _ACEOF
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4070   ac_cv_prog_gcc_traditional=yes
4071 else
4072   ac_cv_prog_gcc_traditional=no
4073 fi
4074 rm -f conftest*
4075
4076
4077   if test $ac_cv_prog_gcc_traditional = no; then
4078     cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 #include <termio.h>
4085 Autoconf TCGETA
4086 _ACEOF
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4089   ac_cv_prog_gcc_traditional=yes
4090 fi
4091 rm -f conftest*
4092
4093   fi
4094 fi
4095 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4096 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4097   if test $ac_cv_prog_gcc_traditional = yes; then
4098     CC="$CC -traditional"
4099   fi
4100 fi
4101
4102 BASECC=`basename $CC`
4103 have_gcc=no
4104 if test "x$BASECC" = xgcc; then
4105    cat >>confdefs.h <<\_ACEOF
4106 #define HAVE_GCC 1
4107 _ACEOF
4108
4109    have_gcc=yes
4110 fi
4111 # Extract the first word of "$CXX", so it can be a program name with args.
4112 set dummy $CXX; ac_word=$2
4113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4115 if test "${ac_cv_path_CXX+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   case $CXX in
4119   [\\/]* | ?:[\\/]*)
4120   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4121   ;;
4122   *)
4123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4130     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4139   ;;
4140 esac
4141 fi
4142 CXX=$ac_cv_path_CXX
4143 if test -n "$CXX"; then
4144   { echo "$as_me:$LINENO: result: $CXX" >&5
4145 echo "${ECHO_T}$CXX" >&6; }
4146 else
4147   { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4149 fi
4150
4151
4152 if test ! -e $CXX; then
4153    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4154 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4155    { (exit 1); exit 1; }; }
4156 fi
4157
4158 # Find a good install program.  We prefer a C program (faster),
4159 # so one script is as good as another.  But avoid the broken or
4160 # incompatible versions:
4161 # SysV /etc/install, /usr/sbin/install
4162 # SunOS /usr/etc/install
4163 # IRIX /sbin/install
4164 # AIX /bin/install
4165 # AmigaOS /C/install, which installs bootblocks on floppy discs
4166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4169 # OS/2's system install, which has a completely different semantic
4170 # ./install, which can be erroneously created by make from ./install.sh.
4171 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4172 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4173 if test -z "$INSTALL"; then
4174 if test "${ac_cv_path_install+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4179 do
4180   IFS=$as_save_IFS
4181   test -z "$as_dir" && as_dir=.
4182   # Account for people who put trailing slashes in PATH elements.
4183 case $as_dir/ in
4184   ./ | .// | /cC/* | \
4185   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4186   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4187   /usr/ucb/* ) ;;
4188   *)
4189     # OSF1 and SCO ODT 3.0 have their own names for install.
4190     # Don't use installbsd from OSF since it installs stuff as root
4191     # by default.
4192     for ac_prog in ginstall scoinst install; do
4193       for ac_exec_ext in '' $ac_executable_extensions; do
4194         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4195           if test $ac_prog = install &&
4196             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4197             # AIX install.  It has an incompatible calling convention.
4198             :
4199           elif test $ac_prog = install &&
4200             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4201             # program-specific install script used by HP pwplus--don't use.
4202             :
4203           else
4204             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4205             break 3
4206           fi
4207         fi
4208       done
4209     done
4210     ;;
4211 esac
4212 done
4213 IFS=$as_save_IFS
4214
4215
4216 fi
4217   if test "${ac_cv_path_install+set}" = set; then
4218     INSTALL=$ac_cv_path_install
4219   else
4220     # As a last resort, use the slow shell script.  Don't cache a
4221     # value for INSTALL within a source directory, because that will
4222     # break other packages using the cache if that directory is
4223     # removed, or if the value is a relative name.
4224     INSTALL=$ac_install_sh
4225   fi
4226 fi
4227 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4228 echo "${ECHO_T}$INSTALL" >&6; }
4229
4230 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4231 # It thinks the first close brace ends the variable substitution.
4232 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4233
4234 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4235
4236 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4237
4238 if test -n "$ac_tool_prefix"; then
4239   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4240 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_RANLIB+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   if test -n "$RANLIB"; then
4247   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   for ac_exec_ext in '' $ac_executable_extensions; do
4255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4256     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264 fi
4265 fi
4266 RANLIB=$ac_cv_prog_RANLIB
4267 if test -n "$RANLIB"; then
4268   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4269 echo "${ECHO_T}$RANLIB" >&6; }
4270 else
4271   { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4273 fi
4274
4275
4276 fi
4277 if test -z "$ac_cv_prog_RANLIB"; then
4278   ac_ct_RANLIB=$RANLIB
4279   # Extract the first word of "ranlib", so it can be a program name with args.
4280 set dummy ranlib; ac_word=$2
4281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   if test -n "$ac_ct_RANLIB"; then
4287   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4291 do
4292   IFS=$as_save_IFS
4293   test -z "$as_dir" && as_dir=.
4294   for ac_exec_ext in '' $ac_executable_extensions; do
4295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4296     ac_cv_prog_ac_ct_RANLIB="ranlib"
4297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298     break 2
4299   fi
4300 done
4301 done
4302 IFS=$as_save_IFS
4303
4304 fi
4305 fi
4306 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4307 if test -n "$ac_ct_RANLIB"; then
4308   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4309 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4310 else
4311   { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4313 fi
4314
4315   if test "x$ac_ct_RANLIB" = x; then
4316     RANLIB=":"
4317   else
4318     case $cross_compiling:$ac_tool_warned in
4319 yes:)
4320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4321 whose name does not start with the host triplet.  If you think this
4322 configuration is useful to you, please write to autoconf@gnu.org." >&5
4323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4324 whose name does not start with the host triplet.  If you think this
4325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4326 ac_tool_warned=yes ;;
4327 esac
4328     RANLIB=$ac_ct_RANLIB
4329   fi
4330 else
4331   RANLIB="$ac_cv_prog_RANLIB"
4332 fi
4333
4334 # Extract the first word of "mv", so it can be a program name with args.
4335 set dummy mv; ac_word=$2
4336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338 if test "${ac_cv_path_MV+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   case $MV in
4342   [\\/]* | ?:[\\/]*)
4343   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4344   ;;
4345   *)
4346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349   IFS=$as_save_IFS
4350   test -z "$as_dir" && as_dir=.
4351   for ac_exec_ext in '' $ac_executable_extensions; do
4352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4353     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355     break 2
4356   fi
4357 done
4358 done
4359 IFS=$as_save_IFS
4360
4361   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4362   ;;
4363 esac
4364 fi
4365 MV=$ac_cv_path_MV
4366 if test -n "$MV"; then
4367   { echo "$as_me:$LINENO: result: $MV" >&5
4368 echo "${ECHO_T}$MV" >&6; }
4369 else
4370   { echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6; }
4372 fi
4373
4374
4375 # Extract the first word of "rm", so it can be a program name with args.
4376 set dummy rm; ac_word=$2
4377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 if test "${ac_cv_path_RM+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   case $RM in
4383   [\\/]* | ?:[\\/]*)
4384   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4385   ;;
4386   *)
4387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392   for ac_exec_ext in '' $ac_executable_extensions; do
4393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4403   ;;
4404 esac
4405 fi
4406 RM=$ac_cv_path_RM
4407 if test -n "$RM"; then
4408   { echo "$as_me:$LINENO: result: $RM" >&5
4409 echo "${ECHO_T}$RM" >&6; }
4410 else
4411   { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4413 fi
4414
4415
4416 # Extract the first word of "cp", so it can be a program name with args.
4417 set dummy cp; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_path_CP+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   case $CP in
4424   [\\/]* | ?:[\\/]*)
4425   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4426   ;;
4427   *)
4428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4444   ;;
4445 esac
4446 fi
4447 CP=$ac_cv_path_CP
4448 if test -n "$CP"; then
4449   { echo "$as_me:$LINENO: result: $CP" >&5
4450 echo "${ECHO_T}$CP" >&6; }
4451 else
4452   { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }
4454 fi
4455
4456
4457 # Extract the first word of "sed", so it can be a program name with args.
4458 set dummy sed; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_path_SED+set}" = set; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   case $SED in
4465   [\\/]* | ?:[\\/]*)
4466   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4467   ;;
4468   *)
4469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474   for ac_exec_ext in '' $ac_executable_extensions; do
4475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481 done
4482 IFS=$as_save_IFS
4483
4484   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4485   ;;
4486 esac
4487 fi
4488 SED=$ac_cv_path_SED
4489 if test -n "$SED"; then
4490   { echo "$as_me:$LINENO: result: $SED" >&5
4491 echo "${ECHO_T}$SED" >&6; }
4492 else
4493   { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 fi
4496
4497
4498 # Extract the first word of "echo", so it can be a program name with args.
4499 set dummy echo; ac_word=$2
4500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4502 if test "${ac_cv_path_ECHO+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   case $ECHO in
4506   [\\/]* | ?:[\\/]*)
4507   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4508   ;;
4509   *)
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4517     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4526   ;;
4527 esac
4528 fi
4529 ECHO=$ac_cv_path_ECHO
4530 if test -n "$ECHO"; then
4531   { echo "$as_me:$LINENO: result: $ECHO" >&5
4532 echo "${ECHO_T}$ECHO" >&6; }
4533 else
4534   { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4536 fi
4537
4538
4539 # Extract the first word of "cmp", so it can be a program name with args.
4540 set dummy cmp; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_path_CMP+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   case $CMP in
4547   [\\/]* | ?:[\\/]*)
4548   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4549   ;;
4550   *)
4551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556   for ac_exec_ext in '' $ac_executable_extensions; do
4557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4558     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563 done
4564 IFS=$as_save_IFS
4565
4566   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4567   ;;
4568 esac
4569 fi
4570 CMP=$ac_cv_path_CMP
4571 if test -n "$CMP"; then
4572   { echo "$as_me:$LINENO: result: $CMP" >&5
4573 echo "${ECHO_T}$CMP" >&6; }
4574 else
4575   { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4577 fi
4578
4579
4580 # Extract the first word of "tbl", so it can be a program name with args.
4581 set dummy tbl; ac_word=$2
4582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584 if test "${ac_cv_path_TBL+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   case $TBL in
4588   [\\/]* | ?:[\\/]*)
4589   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4590   ;;
4591   *)
4592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597   for ac_exec_ext in '' $ac_executable_extensions; do
4598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604 done
4605 IFS=$as_save_IFS
4606
4607   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4608   ;;
4609 esac
4610 fi
4611 TBL=$ac_cv_path_TBL
4612 if test -n "$TBL"; then
4613   { echo "$as_me:$LINENO: result: $TBL" >&5
4614 echo "${ECHO_T}$TBL" >&6; }
4615 else
4616   { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4618 fi
4619
4620
4621 # Extract the first word of "ar", so it can be a program name with args.
4622 set dummy ar; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_path_AR+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   case $AR in
4629   [\\/]* | ?:[\\/]*)
4630   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4631   ;;
4632   *)
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638   for ac_exec_ext in '' $ac_executable_extensions; do
4639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4640     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645 done
4646 IFS=$as_save_IFS
4647
4648   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4649   ;;
4650 esac
4651 fi
4652 AR=$ac_cv_path_AR
4653 if test -n "$AR"; then
4654   { echo "$as_me:$LINENO: result: $AR" >&5
4655 echo "${ECHO_T}$AR" >&6; }
4656 else
4657   { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4659 fi
4660
4661
4662 # Extract the first word of "openssl", so it can be a program name with args.
4663 set dummy openssl; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_path_OPENSSL+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   case $OPENSSL in
4670   [\\/]* | ?:[\\/]*)
4671   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4672   ;;
4673   *)
4674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4681     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4690   ;;
4691 esac
4692 fi
4693 OPENSSL=$ac_cv_path_OPENSSL
4694 if test -n "$OPENSSL"; then
4695   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4696 echo "${ECHO_T}$OPENSSL" >&6; }
4697 else
4698   { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700 fi
4701
4702
4703 # Extract the first word of "mtx", so it can be a program name with args.
4704 set dummy mtx; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_path_MTX+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   case $MTX in
4711   [\\/]* | ?:[\\/]*)
4712   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4713   ;;
4714   *)
4715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
4719   test -z "$as_dir" && as_dir=.
4720   for ac_exec_ext in '' $ac_executable_extensions; do
4721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4722     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724     break 2
4725   fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4731   ;;
4732 esac
4733 fi
4734 MTX=$ac_cv_path_MTX
4735 if test -n "$MTX"; then
4736   { echo "$as_me:$LINENO: result: $MTX" >&5
4737 echo "${ECHO_T}$MTX" >&6; }
4738 else
4739   { echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6; }
4741 fi
4742
4743
4744 # Extract the first word of "dd", so it can be a program name with args.
4745 set dummy dd; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_path_DD+set}" = set; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   case $DD in
4752   [\\/]* | ?:[\\/]*)
4753   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4754   ;;
4755   *)
4756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759   IFS=$as_save_IFS
4760   test -z "$as_dir" && as_dir=.
4761   for ac_exec_ext in '' $ac_executable_extensions; do
4762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4763     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765     break 2
4766   fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4772   ;;
4773 esac
4774 fi
4775 DD=$ac_cv_path_DD
4776 if test -n "$DD"; then
4777   { echo "$as_me:$LINENO: result: $DD" >&5
4778 echo "${ECHO_T}$DD" >&6; }
4779 else
4780   { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4782 fi
4783
4784
4785 # Extract the first word of "mkisofs", so it can be a program name with args.
4786 set dummy mkisofs; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_path_MKISOFS+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   case $MKISOFS in
4793   [\\/]* | ?:[\\/]*)
4794   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4795   ;;
4796   *)
4797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802   for ac_exec_ext in '' $ac_executable_extensions; do
4803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4804     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4813   ;;
4814 esac
4815 fi
4816 MKISOFS=$ac_cv_path_MKISOFS
4817 if test -n "$MKISOFS"; then
4818   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4819 echo "${ECHO_T}$MKISOFS" >&6; }
4820 else
4821   { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4823 fi
4824
4825
4826 # Extract the first word of "python", so it can be a program name with args.
4827 set dummy python; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_path_PYTHON+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   case $PYTHON in
4834   [\\/]* | ?:[\\/]*)
4835   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4836   ;;
4837   *)
4838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   for ac_exec_ext in '' $ac_executable_extensions; do
4844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850 done
4851 IFS=$as_save_IFS
4852
4853   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4854   ;;
4855 esac
4856 fi
4857 PYTHON=$ac_cv_path_PYTHON
4858 if test -n "$PYTHON"; then
4859   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4860 echo "${ECHO_T}$PYTHON" >&6; }
4861 else
4862   { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4864 fi
4865
4866
4867 # Extract the first word of "growisofs", so it can be a program name with args.
4868 set dummy growisofs; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   case $GROWISOFS in
4875   [\\/]* | ?:[\\/]*)
4876   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4877   ;;
4878   *)
4879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4881 do
4882   IFS=$as_save_IFS
4883   test -z "$as_dir" && as_dir=.
4884   for ac_exec_ext in '' $ac_executable_extensions; do
4885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4886     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888     break 2
4889   fi
4890 done
4891 done
4892 IFS=$as_save_IFS
4893
4894   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4895   ;;
4896 esac
4897 fi
4898 GROWISOFS=$ac_cv_path_GROWISOFS
4899 if test -n "$GROWISOFS"; then
4900   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4901 echo "${ECHO_T}$GROWISOFS" >&6; }
4902 else
4903   { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4905 fi
4906
4907
4908 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4909 set dummy dvd+rw-mediainfo; ac_word=$2
4910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4912 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915   case $DVDRWMEDIAINFO in
4916   [\\/]* | ?:[\\/]*)
4917   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4918   ;;
4919   *)
4920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925   for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932 done
4933 IFS=$as_save_IFS
4934
4935   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4936   ;;
4937 esac
4938 fi
4939 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4940 if test -n "$DVDRWMEDIAINFO"; then
4941   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4942 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4943 else
4944   { echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6; }
4946 fi
4947
4948
4949 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4950 set dummy dvd+rw-format; ac_word=$2
4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4954   echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956   case $DVDRWFORMAT in
4957   [\\/]* | ?:[\\/]*)
4958   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4959   ;;
4960   *)
4961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966   for ac_exec_ext in '' $ac_executable_extensions; do
4967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4968     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973 done
4974 IFS=$as_save_IFS
4975
4976   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4977   ;;
4978 esac
4979 fi
4980 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4981 if test -n "$DVDRWFORMAT"; then
4982   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4983 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4984 else
4985   { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4987 fi
4988
4989
4990 # Extract the first word of "pkg-config", so it can be a program name with args.
4991 set dummy pkg-config; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   case $PKGCONFIG in
4998   [\\/]* | ?:[\\/]*)
4999   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5000   ;;
5001   *)
5002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007   for ac_exec_ext in '' $ac_executable_extensions; do
5008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5009     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014 done
5015 IFS=$as_save_IFS
5016
5017   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5018   ;;
5019 esac
5020 fi
5021 PKGCONFIG=$ac_cv_path_PKGCONFIG
5022 if test -n "$PKGCONFIG"; then
5023   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5024 echo "${ECHO_T}$PKGCONFIG" >&6; }
5025 else
5026   { echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6; }
5028 fi
5029
5030
5031
5032 if test "x$WXCONFIG" = x; then
5033   WXCONFIG=wx-config
5034 fi
5035 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5036 set dummy ${WXCONFIG}; ac_word=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042   case $WXCONFIG in
5043   [\\/]* | ?:[\\/]*)
5044   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5045   ;;
5046   *)
5047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052   for ac_exec_ext in '' $ac_executable_extensions; do
5053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5054     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059 done
5060 IFS=$as_save_IFS
5061
5062   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5063   ;;
5064 esac
5065 fi
5066 WXCONFIG=$ac_cv_path_WXCONFIG
5067 if test -n "$WXCONFIG"; then
5068   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5069 echo "${ECHO_T}$WXCONFIG" >&6; }
5070 else
5071   { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5073 fi
5074
5075
5076
5077 # Extract the first word of "cdrecord", so it can be a program name with args.
5078 set dummy cdrecord; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_path_CDRECORD+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   case $CDRECORD in
5085   [\\/]* | ?:[\\/]*)
5086   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5087   ;;
5088   *)
5089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094   for ac_exec_ext in '' $ac_executable_extensions; do
5095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5096     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5105   ;;
5106 esac
5107 fi
5108 CDRECORD=$ac_cv_path_CDRECORD
5109 if test -n "$CDRECORD"; then
5110   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5111 echo "${ECHO_T}$CDRECORD" >&6; }
5112 else
5113   { echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6; }
5115 fi
5116
5117
5118 # Extract the first word of "pidof", so it can be a program name with args.
5119 set dummy pidof; ac_word=$2
5120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_path_PIDOF+set}" = set; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125   case $PIDOF in
5126   [\\/]* | ?:[\\/]*)
5127   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5128   ;;
5129   *)
5130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135   for ac_exec_ext in '' $ac_executable_extensions; do
5136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5137     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5146   ;;
5147 esac
5148 fi
5149 PIDOF=$ac_cv_path_PIDOF
5150 if test -n "$PIDOF"; then
5151   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5152 echo "${ECHO_T}$PIDOF" >&6; }
5153 else
5154   { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5156 fi
5157
5158
5159 for ac_prog in gawk mawk nawk awk
5160 do
5161   # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_prog_AWK+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   if test -n "$AWK"; then
5169   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5178     ac_cv_prog_AWK="$ac_prog"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 AWK=$ac_cv_prog_AWK
5189 if test -n "$AWK"; then
5190   { echo "$as_me:$LINENO: result: $AWK" >&5
5191 echo "${ECHO_T}$AWK" >&6; }
5192 else
5193   { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5195 fi
5196
5197
5198   test -n "$AWK" && break
5199 done
5200
5201 # Some AWK programs fail, so test it and warn the user
5202 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5203       { if ((prog == $2) || (("(" prog ")") == $2) ||
5204            (("" prog "") == $2) ||
5205            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5206 else
5207   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5208    The regex engine of $AWK is too broken to be used you
5209    might want to install GNU AWK.
5210    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5211 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5212    The regex engine of $AWK is too broken to be used you
5213    might want to install GNU AWK.
5214    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5215    { (exit 1); exit 1; }; }
5216 fi
5217 THE_AWK=$AWK
5218 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5219 set dummy $THE_AWK; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_AWK+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   case $AWK in
5226   [\\/]* | ?:[\\/]*)
5227   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5228   ;;
5229   *)
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5237     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243 IFS=$as_save_IFS
5244
5245   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5246   ;;
5247 esac
5248 fi
5249 AWK=$ac_cv_path_AWK
5250 if test -n "$AWK"; then
5251   { echo "$as_me:$LINENO: result: $AWK" >&5
5252 echo "${ECHO_T}$AWK" >&6; }
5253 else
5254   { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5256 fi
5257
5258
5259
5260 test -n "$ARFLAG" || ARFLAGS="cr"
5261
5262
5263 MAKE_SHELL=/bin/sh
5264
5265
5266
5267
5268
5269
5270
5271 # Make sure we can run config.sub.
5272 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5273   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5274 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5275    { (exit 1); exit 1; }; }
5276
5277 { echo "$as_me:$LINENO: checking build system type" >&5
5278 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5279 if test "${ac_cv_build+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   ac_build_alias=$build_alias
5283 test "x$ac_build_alias" = x &&
5284   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5285 test "x$ac_build_alias" = x &&
5286   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5287 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5288    { (exit 1); exit 1; }; }
5289 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5290   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5291 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5292    { (exit 1); exit 1; }; }
5293
5294 fi
5295 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5296 echo "${ECHO_T}$ac_cv_build" >&6; }
5297 case $ac_cv_build in
5298 *-*-*) ;;
5299 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5300 echo "$as_me: error: invalid value of canonical build" >&2;}
5301    { (exit 1); exit 1; }; };;
5302 esac
5303 build=$ac_cv_build
5304 ac_save_IFS=$IFS; IFS='-'
5305 set x $ac_cv_build
5306 shift
5307 build_cpu=$1
5308 build_vendor=$2
5309 shift; shift
5310 # Remember, the first character of IFS is used to create $*,
5311 # except with old shells:
5312 build_os=$*
5313 IFS=$ac_save_IFS
5314 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5315
5316
5317
5318 { echo "$as_me:$LINENO: checking host system type" >&5
5319 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5320 if test "${ac_cv_host+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   if test "x$host_alias" = x; then
5324   ac_cv_host=$ac_cv_build
5325 else
5326   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5327     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5328 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5329    { (exit 1); exit 1; }; }
5330 fi
5331
5332 fi
5333 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5334 echo "${ECHO_T}$ac_cv_host" >&6; }
5335 case $ac_cv_host in
5336 *-*-*) ;;
5337 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5338 echo "$as_me: error: invalid value of canonical host" >&2;}
5339    { (exit 1); exit 1; }; };;
5340 esac
5341 host=$ac_cv_host
5342 ac_save_IFS=$IFS; IFS='-'
5343 set x $ac_cv_host
5344 shift
5345 host_cpu=$1
5346 host_vendor=$2
5347 shift; shift
5348 # Remember, the first character of IFS is used to create $*,
5349 # except with old shells:
5350 host_os=$*
5351 IFS=$ac_save_IFS
5352 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5353
5354
5355 case $host_os in
5356   *cygwin* ) CYGWIN=yes;;
5357          * ) CYGWIN=no;;
5358 esac
5359
5360 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5361 then
5362
5363
5364 if $TRUEPRG; then
5365   HAVE_SUN_OS_TRUE=
5366   HAVE_SUN_OS_FALSE='#'
5367 else
5368   HAVE_SUN_OS_TRUE='#'
5369   HAVE_SUN_OS_FALSE=
5370 fi
5371         cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_SUN_OS 1
5373 _ACEOF
5374
5375 else
5376
5377
5378 if $FALSEPRG; then
5379   HAVE_SUN_OS_TRUE=
5380   HAVE_SUN_OS_FALSE='#'
5381 else
5382   HAVE_SUN_OS_TRUE='#'
5383   HAVE_SUN_OS_FALSE=
5384 fi
5385 fi
5386
5387 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5388 then
5389
5390
5391 if $TRUEPRG; then
5392   HAVE_OSF1_OS_TRUE=
5393   HAVE_OSF1_OS_FALSE='#'
5394 else
5395   HAVE_OSF1_OS_TRUE='#'
5396   HAVE_OSF1_OS_FALSE=
5397 fi
5398         cat >>confdefs.h <<\_ACEOF
5399 #define HAVE_OSF1_OS 1
5400 _ACEOF
5401
5402 else
5403
5404
5405 if $FALSEPRG; then
5406   HAVE_OSF1_OS_TRUE=
5407   HAVE_OSF1_OS_FALSE='#'
5408 else
5409   HAVE_OSF1_OS_TRUE='#'
5410   HAVE_OSF1_OS_FALSE=
5411 fi
5412 fi
5413
5414 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5415 then
5416
5417
5418 if $TRUEPRG; then
5419   HAVE_AIX_OS_TRUE=
5420   HAVE_AIX_OS_FALSE='#'
5421 else
5422   HAVE_AIX_OS_TRUE='#'
5423   HAVE_AIX_OS_FALSE=
5424 fi
5425         cat >>confdefs.h <<\_ACEOF
5426 #define HAVE_AIX_OS 1
5427 _ACEOF
5428
5429 else
5430
5431
5432 if $FALSEPRG; then
5433   HAVE_AIX_OS_TRUE=
5434   HAVE_AIX_OS_FALSE='#'
5435 else
5436   HAVE_AIX_OS_TRUE='#'
5437   HAVE_AIX_OS_FALSE=
5438 fi
5439 fi
5440
5441 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5442 then
5443
5444
5445 if $TRUEPRG; then
5446   HAVE_HPUX_OS_TRUE=
5447   HAVE_HPUX_OS_FALSE='#'
5448 else
5449   HAVE_HPUX_OS_TRUE='#'
5450   HAVE_HPUX_OS_FALSE=
5451 fi
5452         cat >>confdefs.h <<\_ACEOF
5453 #define HAVE_HPUX_OS 1
5454 _ACEOF
5455
5456 else
5457
5458
5459 if $FALSEPRG; then
5460   HAVE_HPUX_OS_TRUE=
5461   HAVE_HPUX_OS_FALSE='#'
5462 else
5463   HAVE_HPUX_OS_TRUE='#'
5464   HAVE_HPUX_OS_FALSE=
5465 fi
5466 fi
5467
5468 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5469 then
5470
5471
5472 if $TRUEPRG; then
5473   HAVE_LINUX_OS_TRUE=
5474   HAVE_LINUX_OS_FALSE='#'
5475 else
5476   HAVE_LINUX_OS_TRUE='#'
5477   HAVE_LINUX_OS_FALSE=
5478 fi
5479         cat >>confdefs.h <<\_ACEOF
5480 #define HAVE_LINUX_OS 1
5481 _ACEOF
5482
5483 else
5484
5485
5486 if $FALSEPRG; then
5487   HAVE_LINUX_OS_TRUE=
5488   HAVE_LINUX_OS_FALSE='#'
5489 else
5490   HAVE_LINUX_OS_TRUE='#'
5491   HAVE_LINUX_OS_FALSE=
5492 fi
5493 fi
5494
5495 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5496 then
5497
5498
5499 if $TRUEPRG; then
5500   HAVE_FREEBSD_OS_TRUE=
5501   HAVE_FREEBSD_OS_FALSE='#'
5502 else
5503   HAVE_FREEBSD_OS_TRUE='#'
5504   HAVE_FREEBSD_OS_FALSE=
5505 fi
5506         cat >>confdefs.h <<\_ACEOF
5507 #define HAVE_FREEBSD_OS 1
5508 _ACEOF
5509
5510 else
5511
5512
5513 if $FALSEPRG; then
5514   HAVE_FREEBSD_OS_TRUE=
5515   HAVE_FREEBSD_OS_FALSE='#'
5516 else
5517   HAVE_FREEBSD_OS_TRUE='#'
5518   HAVE_FREEBSD_OS_FALSE=
5519 fi
5520 fi
5521
5522 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5523 then
5524
5525
5526 if $TRUEPRG; then
5527   HAVE_NETBSD_OS_TRUE=
5528   HAVE_NETBSD_OS_FALSE='#'
5529 else
5530   HAVE_NETBSD_OS_TRUE='#'
5531   HAVE_NETBSD_OS_FALSE=
5532 fi
5533         cat >>confdefs.h <<\_ACEOF
5534 #define HAVE_NETBSD_OS 1
5535 _ACEOF
5536
5537 else
5538
5539
5540 if $FALSEPRG; then
5541   HAVE_NETBSD_OS_TRUE=
5542   HAVE_NETBSD_OS_FALSE='#'
5543 else
5544   HAVE_NETBSD_OS_TRUE='#'
5545   HAVE_NETBSD_OS_FALSE=
5546 fi
5547 fi
5548
5549 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5550 then
5551
5552
5553 if $TRUEPRG; then
5554   HAVE_OPENBSD_OS_TRUE=
5555   HAVE_OPENBSD_OS_FALSE='#'
5556 else
5557   HAVE_OPENBSD_OS_TRUE='#'
5558   HAVE_OPENBSD_OS_FALSE=
5559 fi
5560         cat >>confdefs.h <<\_ACEOF
5561 #define HAVE_OPENBSD_OS 1
5562 _ACEOF
5563
5564 else
5565
5566
5567 if $FALSEPRG; then
5568   HAVE_OPENBSD_OS_TRUE=
5569   HAVE_OPENBSD_OS_FALSE='#'
5570 else
5571   HAVE_OPENBSD_OS_TRUE='#'
5572   HAVE_OPENBSD_OS_FALSE=
5573 fi
5574 fi
5575
5576 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5577 then
5578
5579
5580 if $TRUEPRG; then
5581   HAVE_BSDI_OS_TRUE=
5582   HAVE_BSDI_OS_FALSE='#'
5583 else
5584   HAVE_BSDI_OS_TRUE='#'
5585   HAVE_BSDI_OS_FALSE=
5586 fi
5587         cat >>confdefs.h <<\_ACEOF
5588 #define HAVE_BSDI_OS 1
5589 _ACEOF
5590
5591 else
5592
5593
5594 if $FALSEPRG; then
5595   HAVE_BSDI_OS_TRUE=
5596   HAVE_BSDI_OS_FALSE='#'
5597 else
5598   HAVE_BSDI_OS_TRUE='#'
5599   HAVE_BSDI_OS_FALSE=
5600 fi
5601 fi
5602
5603 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5604 then
5605
5606
5607 if $TRUEPRG; then
5608   HAVE_SGI_OS_TRUE=
5609   HAVE_SGI_OS_FALSE='#'
5610 else
5611   HAVE_SGI_OS_TRUE='#'
5612   HAVE_SGI_OS_FALSE=
5613 fi
5614         cat >>confdefs.h <<\_ACEOF
5615 #define HAVE_SGI_OS 1
5616 _ACEOF
5617
5618 else
5619
5620
5621 if $FALSEPRG; then
5622   HAVE_SGI_OS_TRUE=
5623   HAVE_SGI_OS_FALSE='#'
5624 else
5625   HAVE_SGI_OS_TRUE='#'
5626   HAVE_SGI_OS_FALSE=
5627 fi
5628 fi
5629
5630 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5631 then
5632
5633
5634 if $TRUEPRG; then
5635   HAVE_IRIX_OS_TRUE=
5636   HAVE_IRIX_OS_FALSE='#'
5637 else
5638   HAVE_IRIX_OS_TRUE='#'
5639   HAVE_IRIX_OS_FALSE=
5640 fi
5641         cat >>confdefs.h <<\_ACEOF
5642 #define HAVE_IRIX_OS 1
5643 _ACEOF
5644
5645 else
5646
5647
5648 if $FALSEPRG; then
5649   HAVE_IRIX_OS_TRUE=
5650   HAVE_IRIX_OS_FALSE='#'
5651 else
5652   HAVE_IRIX_OS_TRUE='#'
5653   HAVE_IRIX_OS_FALSE=
5654 fi
5655 fi
5656
5657 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5658 then
5659
5660
5661 if $TRUEPRG; then
5662   HAVE_DARWIN_OS_TRUE=
5663   HAVE_DARWIN_OS_FALSE='#'
5664 else
5665   HAVE_DARWIN_OS_TRUE='#'
5666   HAVE_DARWIN_OS_FALSE=
5667 fi
5668     cat >>confdefs.h <<\_ACEOF
5669 #define HAVE_DARWIN_OS 1
5670 _ACEOF
5671
5672 else
5673
5674
5675 if $FALSEPRG; then
5676   HAVE_DARWIN_OS_TRUE=
5677   HAVE_DARWIN_OS_FALSE='#'
5678 else
5679   HAVE_DARWIN_OS_TRUE='#'
5680   HAVE_DARWIN_OS_FALSE=
5681 fi
5682 fi
5683
5684
5685 # -----------------------------------------------------------
5686 # ----------------------------------------------------------
5687 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5688 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5689 if test "x$DISTNAME" != "x"
5690 then
5691         echo "distname set to $DISTNAME"
5692 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5693 then
5694         DISTNAME=alpha
5695 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5696 then
5697         DISTNAME=aix
5698 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5699 then
5700         DISTNAME=hpux
5701 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5702 then
5703         DISTNAME=solaris
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5705 then
5706         DISTNAME=freebsd
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5708 then
5709         DISTNAME=netbsd
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5711 then
5712         DISTNAME=openbsd
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5714 then
5715         DISTNAME=irix
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5717 then
5718         DISTNAME=bsdi
5719 elif test -f /etc/SuSE-release
5720 then
5721         DISTNAME=suse
5722 elif test -d /etc/SuSEconfig
5723 then
5724         DISTNAME=suse5
5725 elif test -f /etc/mandrake-release
5726 then
5727         DISTNAME=mandrake
5728 elif test -f /etc/whitebox-release
5729 then
5730        DISTNAME=redhat
5731 elif test -f /etc/redhat-release
5732 then
5733         DISTNAME=redhat
5734 elif test -f /etc/gentoo-release
5735 then
5736         DISTNAME=gentoo
5737 elif test -f /etc/debian_version
5738 then
5739         DISTNAME=debian
5740 elif test -f /etc/slackware-version
5741 then
5742         DISTNAME=slackware
5743 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5744 then
5745     DISTNAME=darwin
5746 elif test -f /etc/engarde-version
5747 then
5748         DISTNAME=engarde
5749 elif test "$CYGWIN" = yes
5750 then
5751         DISTNAME=cygwin
5752         cat >>confdefs.h <<\_ACEOF
5753 #define HAVE_CYGWIN 1
5754 _ACEOF
5755
5756 else
5757         DISTNAME=unknown
5758 fi
5759 { echo "$as_me:$LINENO: result: done" >&5
5760 echo "${ECHO_T}done" >&6; }
5761
5762
5763 # --------------------------------------------------
5764 # Suppport for gettext (translations)
5765 # By default, $datadir is ${prefix}/share
5766 # --------------------------------------------------
5767 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5769 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5770 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   cat >conftest.make <<\_ACEOF
5774 SHELL = /bin/sh
5775 all:
5776         @echo '@@@%%%=$(MAKE)=@@@%%%'
5777 _ACEOF
5778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5780   *@@@%%%=?*=@@@%%%*)
5781     eval ac_cv_prog_make_${ac_make}_set=yes;;
5782   *)
5783     eval ac_cv_prog_make_${ac_make}_set=no;;
5784 esac
5785 rm -f conftest.make
5786 fi
5787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5788   { echo "$as_me:$LINENO: result: yes" >&5
5789 echo "${ECHO_T}yes" >&6; }
5790   SET_MAKE=
5791 else
5792   { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5794   SET_MAKE="MAKE=${MAKE-make}"
5795 fi
5796
5797
5798
5799         MKINSTALLDIRS=
5800   if test -n "$ac_aux_dir"; then
5801     case "$ac_aux_dir" in
5802       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5803       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5804     esac
5805   fi
5806   if test -z "$MKINSTALLDIRS"; then
5807     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5808   fi
5809
5810
5811
5812   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5813 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5814     # Check whether --enable-nls was given.
5815 if test "${enable_nls+set}" = set; then
5816   enableval=$enable_nls; USE_NLS=$enableval
5817 else
5818   USE_NLS=yes
5819 fi
5820
5821   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5822 echo "${ECHO_T}$USE_NLS" >&6; }
5823
5824
5825
5826
5827
5828
5829 # Prepare PATH_SEPARATOR.
5830 # The user is always right.
5831 if test "${PATH_SEPARATOR+set}" != set; then
5832   echo "#! /bin/sh" >conf$$.sh
5833   echo  "exit 0"   >>conf$$.sh
5834   chmod +x conf$$.sh
5835   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5836     PATH_SEPARATOR=';'
5837   else
5838     PATH_SEPARATOR=:
5839   fi
5840   rm -f conf$$.sh
5841 fi
5842
5843 # Find out how to test for executable files. Don't use a zero-byte file,
5844 # as systems may use methods other than mode bits to determine executability.
5845 cat >conf$$.file <<_ASEOF
5846 #! /bin/sh
5847 exit 0
5848 _ASEOF
5849 chmod +x conf$$.file
5850 if test -x conf$$.file >/dev/null 2>&1; then
5851   ac_executable_p="test -x"
5852 else
5853   ac_executable_p="test -f"
5854 fi
5855 rm -f conf$$.file
5856
5857 # Extract the first word of "msgfmt", so it can be a program name with args.
5858 set dummy msgfmt; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_MSGFMT+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   case "$MSGFMT" in
5865   [\\/]* | ?:[\\/]*)
5866     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5867     ;;
5868   *)
5869     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5870     for ac_dir in $PATH; do
5871       IFS="$ac_save_IFS"
5872       test -z "$ac_dir" && ac_dir=.
5873       for ac_exec_ext in '' $ac_executable_extensions; do
5874         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5875           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5876           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5877      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5878             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5879             break 2
5880           fi
5881         fi
5882       done
5883     done
5884     IFS="$ac_save_IFS"
5885   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5886     ;;
5887 esac
5888 fi
5889 MSGFMT="$ac_cv_path_MSGFMT"
5890 if test "$MSGFMT" != ":"; then
5891   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5892 echo "${ECHO_T}$MSGFMT" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5899 set dummy gmsgfmt; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   case $GMSGFMT in
5906   [\\/]* | ?:[\\/]*)
5907   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5908   ;;
5909   *)
5910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5917     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5926   ;;
5927 esac
5928 fi
5929 GMSGFMT=$ac_cv_path_GMSGFMT
5930 if test -n "$GMSGFMT"; then
5931   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5932 echo "${ECHO_T}$GMSGFMT" >&6; }
5933 else
5934   { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5936 fi
5937
5938
5939
5940
5941 # Prepare PATH_SEPARATOR.
5942 # The user is always right.
5943 if test "${PATH_SEPARATOR+set}" != set; then
5944   echo "#! /bin/sh" >conf$$.sh
5945   echo  "exit 0"   >>conf$$.sh
5946   chmod +x conf$$.sh
5947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948     PATH_SEPARATOR=';'
5949   else
5950     PATH_SEPARATOR=:
5951   fi
5952   rm -f conf$$.sh
5953 fi
5954
5955 # Find out how to test for executable files. Don't use a zero-byte file,
5956 # as systems may use methods other than mode bits to determine executability.
5957 cat >conf$$.file <<_ASEOF
5958 #! /bin/sh
5959 exit 0
5960 _ASEOF
5961 chmod +x conf$$.file
5962 if test -x conf$$.file >/dev/null 2>&1; then
5963   ac_executable_p="test -x"
5964 else
5965   ac_executable_p="test -f"
5966 fi
5967 rm -f conf$$.file
5968
5969 # Extract the first word of "xgettext", so it can be a program name with args.
5970 set dummy xgettext; ac_word=$2
5971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   case "$XGETTEXT" in
5977   [\\/]* | ?:[\\/]*)
5978     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5979     ;;
5980   *)
5981     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5982     for ac_dir in $PATH; do
5983       IFS="$ac_save_IFS"
5984       test -z "$ac_dir" && ac_dir=.
5985       for ac_exec_ext in '' $ac_executable_extensions; do
5986         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5987           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5988           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5989      (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
5990             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5991             break 2
5992           fi
5993         fi
5994       done
5995     done
5996     IFS="$ac_save_IFS"
5997   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5998     ;;
5999 esac
6000 fi
6001 XGETTEXT="$ac_cv_path_XGETTEXT"
6002 if test "$XGETTEXT" != ":"; then
6003   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6004 echo "${ECHO_T}$XGETTEXT" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008 fi
6009
6010     rm -f messages.po
6011
6012
6013 # Prepare PATH_SEPARATOR.
6014 # The user is always right.
6015 if test "${PATH_SEPARATOR+set}" != set; then
6016   echo "#! /bin/sh" >conf$$.sh
6017   echo  "exit 0"   >>conf$$.sh
6018   chmod +x conf$$.sh
6019   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6020     PATH_SEPARATOR=';'
6021   else
6022     PATH_SEPARATOR=:
6023   fi
6024   rm -f conf$$.sh
6025 fi
6026
6027 # Find out how to test for executable files. Don't use a zero-byte file,
6028 # as systems may use methods other than mode bits to determine executability.
6029 cat >conf$$.file <<_ASEOF
6030 #! /bin/sh
6031 exit 0
6032 _ASEOF
6033 chmod +x conf$$.file
6034 if test -x conf$$.file >/dev/null 2>&1; then
6035   ac_executable_p="test -x"
6036 else
6037   ac_executable_p="test -f"
6038 fi
6039 rm -f conf$$.file
6040
6041 # Extract the first word of "msgmerge", so it can be a program name with args.
6042 set dummy msgmerge; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   case "$MSGMERGE" in
6049   [\\/]* | ?:[\\/]*)
6050     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6051     ;;
6052   *)
6053     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6054     for ac_dir in $PATH; do
6055       IFS="$ac_save_IFS"
6056       test -z "$ac_dir" && ac_dir=.
6057       for ac_exec_ext in '' $ac_executable_extensions; do
6058         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6059           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6060           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6061             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6062             break 2
6063           fi
6064         fi
6065       done
6066     done
6067     IFS="$ac_save_IFS"
6068   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6069     ;;
6070 esac
6071 fi
6072 MSGMERGE="$ac_cv_path_MSGMERGE"
6073 if test "$MSGMERGE" != ":"; then
6074   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6075 echo "${ECHO_T}$MSGMERGE" >&6; }
6076 else
6077   { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6079 fi
6080
6081
6082       if test "$GMSGFMT" != ":"; then
6083             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6084        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6085       : ;
6086     else
6087       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6088       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6089 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6090       GMSGFMT=":"
6091     fi
6092   fi
6093
6094       if test "$XGETTEXT" != ":"; then
6095             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6096        (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
6097       : ;
6098     else
6099       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6100 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6101       XGETTEXT=":"
6102     fi
6103         rm -f messages.po
6104   fi
6105
6106   ac_config_commands="$ac_config_commands default-1"
6107
6108
6109
6110       if test "X$prefix" = "XNONE"; then
6111     acl_final_prefix="$ac_default_prefix"
6112   else
6113     acl_final_prefix="$prefix"
6114   fi
6115   if test "X$exec_prefix" = "XNONE"; then
6116     acl_final_exec_prefix='${prefix}'
6117   else
6118     acl_final_exec_prefix="$exec_prefix"
6119   fi
6120   acl_save_prefix="$prefix"
6121   prefix="$acl_final_prefix"
6122   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6123   prefix="$acl_save_prefix"
6124
6125
6126 # Check whether --with-gnu-ld was given.
6127 if test "${with_gnu_ld+set}" = set; then
6128   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6129 else
6130   with_gnu_ld=no
6131 fi
6132
6133 # Prepare PATH_SEPARATOR.
6134 # The user is always right.
6135 if test "${PATH_SEPARATOR+set}" != set; then
6136   echo "#! /bin/sh" >conf$$.sh
6137   echo  "exit 0"   >>conf$$.sh
6138   chmod +x conf$$.sh
6139   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6140     PATH_SEPARATOR=';'
6141   else
6142     PATH_SEPARATOR=:
6143   fi
6144   rm -f conf$$.sh
6145 fi
6146 ac_prog=ld
6147 if test "$GCC" = yes; then
6148   # Check if gcc -print-prog-name=ld gives a path.
6149   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6150 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6151   case $host in
6152   *-*-mingw*)
6153     # gcc leaves a trailing carriage return which upsets mingw
6154     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6155   *)
6156     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6157   esac
6158   case $ac_prog in
6159     # Accept absolute paths.
6160     [\\/]* | [A-Za-z]:[\\/]*)
6161       re_direlt='/[^/][^/]*/\.\./'
6162       # Canonicalize the path of ld
6163       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6164       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6165         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6166       done
6167       test -z "$LD" && LD="$ac_prog"
6168       ;;
6169   "")
6170     # If it fails, then pretend we aren't using GCC.
6171     ac_prog=ld
6172     ;;
6173   *)
6174     # If it is relative, then search for the first ld in PATH.
6175     with_gnu_ld=unknown
6176     ;;
6177   esac
6178 elif test "$with_gnu_ld" = yes; then
6179   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6180 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6183 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6184 fi
6185 if test "${acl_cv_path_LD+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   if test -z "$LD"; then
6189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6190   for ac_dir in $PATH; do
6191     test -z "$ac_dir" && ac_dir=.
6192     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6193       acl_cv_path_LD="$ac_dir/$ac_prog"
6194       # Check to see if the program is GNU ld.  I'd rather use --version,
6195       # but apparently some GNU ld's only accept -v.
6196       # Break only if it was the GNU/non-GNU ld that we prefer.
6197       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6198       *GNU* | *'with BFD'*)
6199         test "$with_gnu_ld" != no && break ;;
6200       *)
6201         test "$with_gnu_ld" != yes && break ;;
6202       esac
6203     fi
6204   done
6205   IFS="$ac_save_ifs"
6206 else
6207   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6208 fi
6209 fi
6210
6211 LD="$acl_cv_path_LD"
6212 if test -n "$LD"; then
6213   { echo "$as_me:$LINENO: result: $LD" >&5
6214 echo "${ECHO_T}$LD" >&6; }
6215 else
6216   { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6218 fi
6219 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6220 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6221    { (exit 1); exit 1; }; }
6222 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6223 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6224 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6228 case `$LD -v 2>&1 </dev/null` in
6229 *GNU* | *'with BFD'*)
6230   acl_cv_prog_gnu_ld=yes ;;
6231 *)
6232   acl_cv_prog_gnu_ld=no ;;
6233 esac
6234 fi
6235 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6236 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6237 with_gnu_ld=$acl_cv_prog_gnu_ld
6238
6239
6240
6241
6242                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6243 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6244 if test "${acl_cv_rpath+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247
6248     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6249     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6250     . ./conftest.sh
6251     rm -f ./conftest.sh
6252     acl_cv_rpath=done
6253
6254 fi
6255 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6256 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6257   wl="$acl_cv_wl"
6258   libext="$acl_cv_libext"
6259   shlibext="$acl_cv_shlibext"
6260   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6261   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6262   hardcode_direct="$acl_cv_hardcode_direct"
6263   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6264     # Check whether --enable-rpath was given.
6265 if test "${enable_rpath+set}" = set; then
6266   enableval=$enable_rpath; :
6267 else
6268   enable_rpath=yes
6269 fi
6270
6271
6272
6273
6274
6275
6276
6277
6278     use_additional=yes
6279
6280   acl_save_prefix="$prefix"
6281   prefix="$acl_final_prefix"
6282   acl_save_exec_prefix="$exec_prefix"
6283   exec_prefix="$acl_final_exec_prefix"
6284
6285     eval additional_includedir=\"$includedir\"
6286     eval additional_libdir=\"$libdir\"
6287
6288   exec_prefix="$acl_save_exec_prefix"
6289   prefix="$acl_save_prefix"
6290
6291
6292 # Check whether --with-libiconv-prefix was given.
6293 if test "${with_libiconv_prefix+set}" = set; then
6294   withval=$with_libiconv_prefix;
6295     if test "X$withval" = "Xno"; then
6296       use_additional=no
6297     else
6298       if test "X$withval" = "X"; then
6299
6300   acl_save_prefix="$prefix"
6301   prefix="$acl_final_prefix"
6302   acl_save_exec_prefix="$exec_prefix"
6303   exec_prefix="$acl_final_exec_prefix"
6304
6305           eval additional_includedir=\"$includedir\"
6306           eval additional_libdir=\"$libdir\"
6307
6308   exec_prefix="$acl_save_exec_prefix"
6309   prefix="$acl_save_prefix"
6310
6311       else
6312         additional_includedir="$withval/include"
6313         additional_libdir="$withval/lib"
6314       fi
6315     fi
6316
6317 fi
6318
6319       LIBICONV=
6320   LTLIBICONV=
6321   INCICONV=
6322   rpathdirs=
6323   ltrpathdirs=
6324   names_already_handled=
6325   names_next_round='iconv '
6326   while test -n "$names_next_round"; do
6327     names_this_round="$names_next_round"
6328     names_next_round=
6329     for name in $names_this_round; do
6330       already_handled=
6331       for n in $names_already_handled; do
6332         if test "$n" = "$name"; then
6333           already_handled=yes
6334           break
6335         fi
6336       done
6337       if test -z "$already_handled"; then
6338         names_already_handled="$names_already_handled $name"
6339                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6340         eval value=\"\$HAVE_LIB$uppername\"
6341         if test -n "$value"; then
6342           if test "$value" = yes; then
6343             eval value=\"\$LIB$uppername\"
6344             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6345             eval value=\"\$LTLIB$uppername\"
6346             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6347           else
6348                                     :
6349           fi
6350         else
6351                               found_dir=
6352           found_la=
6353           found_so=
6354           found_a=
6355           if test $use_additional = yes; then
6356             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6357               found_dir="$additional_libdir"
6358               found_so="$additional_libdir/lib$name.$shlibext"
6359               if test -f "$additional_libdir/lib$name.la"; then
6360                 found_la="$additional_libdir/lib$name.la"
6361               fi
6362             else
6363               if test -f "$additional_libdir/lib$name.$libext"; then
6364                 found_dir="$additional_libdir"
6365                 found_a="$additional_libdir/lib$name.$libext"
6366                 if test -f "$additional_libdir/lib$name.la"; then
6367                   found_la="$additional_libdir/lib$name.la"
6368                 fi
6369               fi
6370             fi
6371           fi
6372           if test "X$found_dir" = "X"; then
6373             for x in $LDFLAGS $LTLIBICONV; do
6374
6375   acl_save_prefix="$prefix"
6376   prefix="$acl_final_prefix"
6377   acl_save_exec_prefix="$exec_prefix"
6378   exec_prefix="$acl_final_exec_prefix"
6379   eval x=\"$x\"
6380   exec_prefix="$acl_save_exec_prefix"
6381   prefix="$acl_save_prefix"
6382
6383               case "$x" in
6384                 -L*)
6385                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6386                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6387                     found_dir="$dir"
6388                     found_so="$dir/lib$name.$shlibext"
6389                     if test -f "$dir/lib$name.la"; then
6390                       found_la="$dir/lib$name.la"
6391                     fi
6392                   else
6393                     if test -f "$dir/lib$name.$libext"; then
6394                       found_dir="$dir"
6395                       found_a="$dir/lib$name.$libext"
6396                       if test -f "$dir/lib$name.la"; then
6397                         found_la="$dir/lib$name.la"
6398                       fi
6399                     fi
6400                   fi
6401                   ;;
6402               esac
6403               if test "X$found_dir" != "X"; then
6404                 break
6405               fi
6406             done
6407           fi
6408           if test "X$found_dir" != "X"; then
6409                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6410             if test "X$found_so" != "X"; then
6411                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6412                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6413               else
6414                                                                                 haveit=
6415                 for x in $ltrpathdirs; do
6416                   if test "X$x" = "X$found_dir"; then
6417                     haveit=yes
6418                     break
6419                   fi
6420                 done
6421                 if test -z "$haveit"; then
6422                   ltrpathdirs="$ltrpathdirs $found_dir"
6423                 fi
6424                                 if test "$hardcode_direct" = yes; then
6425                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6426                 else
6427                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6428                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6429                                                             haveit=
6430                     for x in $rpathdirs; do
6431                       if test "X$x" = "X$found_dir"; then
6432                         haveit=yes
6433                         break
6434                       fi
6435                     done
6436                     if test -z "$haveit"; then
6437                       rpathdirs="$rpathdirs $found_dir"
6438                     fi
6439                   else
6440                                                                                 haveit=
6441                     for x in $LDFLAGS $LIBICONV; do
6442
6443   acl_save_prefix="$prefix"
6444   prefix="$acl_final_prefix"
6445   acl_save_exec_prefix="$exec_prefix"
6446   exec_prefix="$acl_final_exec_prefix"
6447   eval x=\"$x\"
6448   exec_prefix="$acl_save_exec_prefix"
6449   prefix="$acl_save_prefix"
6450
6451                       if test "X$x" = "X-L$found_dir"; then
6452                         haveit=yes
6453                         break
6454                       fi
6455                     done
6456                     if test -z "$haveit"; then
6457                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6458                     fi
6459                     if test "$hardcode_minus_L" != no; then
6460                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6461                     else
6462                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6463                     fi
6464                   fi
6465                 fi
6466               fi
6467             else
6468               if test "X$found_a" != "X"; then
6469                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6470               else
6471                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6472               fi
6473             fi
6474                         additional_includedir=
6475             case "$found_dir" in
6476               */lib | */lib/)
6477                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6478                 additional_includedir="$basedir/include"
6479                 ;;
6480             esac
6481             if test "X$additional_includedir" != "X"; then
6482                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6483                 haveit=
6484                 if test "X$additional_includedir" = "X/usr/local/include"; then
6485                   if test -n "$GCC"; then
6486                     case $host_os in
6487                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6488                     esac
6489                   fi
6490                 fi
6491                 if test -z "$haveit"; then
6492                   for x in $CPPFLAGS $INCICONV; do
6493
6494   acl_save_prefix="$prefix"
6495   prefix="$acl_final_prefix"
6496   acl_save_exec_prefix="$exec_prefix"
6497   exec_prefix="$acl_final_exec_prefix"
6498   eval x=\"$x\"
6499   exec_prefix="$acl_save_exec_prefix"
6500   prefix="$acl_save_prefix"
6501
6502                     if test "X$x" = "X-I$additional_includedir"; then
6503                       haveit=yes
6504                       break
6505                     fi
6506                   done
6507                   if test -z "$haveit"; then
6508                     if test -d "$additional_includedir"; then
6509                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6510                     fi
6511                   fi
6512                 fi
6513               fi
6514             fi
6515                         if test -n "$found_la"; then
6516                                                         save_libdir="$libdir"
6517               case "$found_la" in
6518                 */* | *\\*) . "$found_la" ;;
6519                 *) . "./$found_la" ;;
6520               esac
6521               libdir="$save_libdir"
6522                             for dep in $dependency_libs; do
6523                 case "$dep" in
6524                   -L*)
6525                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6526                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6527                       haveit=
6528                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6529                         if test -n "$GCC"; then
6530                           case $host_os in
6531                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6532                           esac
6533                         fi
6534                       fi
6535                       if test -z "$haveit"; then
6536                         haveit=
6537                         for x in $LDFLAGS $LIBICONV; do
6538
6539   acl_save_prefix="$prefix"
6540   prefix="$acl_final_prefix"
6541   acl_save_exec_prefix="$exec_prefix"
6542   exec_prefix="$acl_final_exec_prefix"
6543   eval x=\"$x\"
6544   exec_prefix="$acl_save_exec_prefix"
6545   prefix="$acl_save_prefix"
6546
6547                           if test "X$x" = "X-L$additional_libdir"; then
6548                             haveit=yes
6549                             break
6550                           fi
6551                         done
6552                         if test -z "$haveit"; then
6553                           if test -d "$additional_libdir"; then
6554                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6555                           fi
6556                         fi
6557                         haveit=
6558                         for x in $LDFLAGS $LTLIBICONV; do
6559
6560   acl_save_prefix="$prefix"
6561   prefix="$acl_final_prefix"
6562   acl_save_exec_prefix="$exec_prefix"
6563   exec_prefix="$acl_final_exec_prefix"
6564   eval x=\"$x\"
6565   exec_prefix="$acl_save_exec_prefix"
6566   prefix="$acl_save_prefix"
6567
6568                           if test "X$x" = "X-L$additional_libdir"; then
6569                             haveit=yes
6570                             break
6571                           fi
6572                         done
6573                         if test -z "$haveit"; then
6574                           if test -d "$additional_libdir"; then
6575                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6576                           fi
6577                         fi
6578                       fi
6579                     fi
6580                     ;;
6581                   -R*)
6582                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6583                     if test "$enable_rpath" != no; then
6584                                                                   haveit=
6585                       for x in $rpathdirs; do
6586                         if test "X$x" = "X$dir"; then
6587                           haveit=yes
6588                           break
6589                         fi
6590                       done
6591                       if test -z "$haveit"; then
6592                         rpathdirs="$rpathdirs $dir"
6593                       fi
6594                                                                   haveit=
6595                       for x in $ltrpathdirs; do
6596                         if test "X$x" = "X$dir"; then
6597                           haveit=yes
6598                           break
6599                         fi
6600                       done
6601                       if test -z "$haveit"; then
6602                         ltrpathdirs="$ltrpathdirs $dir"
6603                       fi
6604                     fi
6605                     ;;
6606                   -l*)
6607                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6608                     ;;
6609                   *.la)
6610                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6611                     ;;
6612                   *)
6613                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6614                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6615                     ;;
6616                 esac
6617               done
6618             fi
6619           else
6620                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6621             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6622           fi
6623         fi
6624       fi
6625     done
6626   done
6627   if test "X$rpathdirs" != "X"; then
6628     if test -n "$hardcode_libdir_separator"; then
6629                         alldirs=
6630       for found_dir in $rpathdirs; do
6631         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6632       done
6633             acl_save_libdir="$libdir"
6634       libdir="$alldirs"
6635       eval flag=\"$hardcode_libdir_flag_spec\"
6636       libdir="$acl_save_libdir"
6637       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6638     else
6639             for found_dir in $rpathdirs; do
6640         acl_save_libdir="$libdir"
6641         libdir="$found_dir"
6642         eval flag=\"$hardcode_libdir_flag_spec\"
6643         libdir="$acl_save_libdir"
6644         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6645       done
6646     fi
6647   fi
6648   if test "X$ltrpathdirs" != "X"; then
6649             for found_dir in $ltrpathdirs; do
6650       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6651     done
6652   fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6672 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6673 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   gt_save_CPPFLAGS="$CPPFLAGS"
6677      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6678      gt_save_LIBS="$LIBS"
6679      LIBS="$LIBS -framework CoreFoundation"
6680      cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h.  */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h.  */
6686 #include <CFPreferences.h>
6687 int
6688 main ()
6689 {
6690 CFPreferencesCopyAppValue(NULL, NULL)
6691   ;
6692   return 0;
6693 }
6694 _ACEOF
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (ac_try="$ac_link"
6697 case "(($ac_try" in
6698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699   *) ac_try_echo=$ac_try;;
6700 esac
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702   (eval "$ac_link") 2>conftest.er1
6703   ac_status=$?
6704   grep -v '^ *+' conftest.er1 >conftest.err
6705   rm -f conftest.er1
6706   cat conftest.err >&5
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); } &&
6709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6710   { (case "(($ac_try" in
6711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712   *) ac_try_echo=$ac_try;;
6713 esac
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715   (eval "$ac_try") 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; } &&
6719          { ac_try='test -s conftest$ac_exeext'
6720   { (case "(($ac_try" in
6721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722   *) ac_try_echo=$ac_try;;
6723 esac
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725   (eval "$ac_try") 2>&5
6726   ac_status=$?
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }; }; then
6729   gt_cv_func_CFPreferencesCopyAppValue=yes
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734         gt_cv_func_CFPreferencesCopyAppValue=no
6735 fi
6736
6737 rm -f core conftest.err conftest.$ac_objext \
6738       conftest$ac_exeext conftest.$ac_ext
6739      CPPFLAGS="$gt_save_CPPFLAGS"
6740      LIBS="$gt_save_LIBS"
6741 fi
6742 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6743 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6744   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6745
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6748 _ACEOF
6749
6750   fi
6751     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6752 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6753 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   gt_save_CPPFLAGS="$CPPFLAGS"
6757      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6758      gt_save_LIBS="$LIBS"
6759      LIBS="$LIBS -framework CoreFoundation"
6760      cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h.  */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h.  */
6766 #include <CFLocale.h>
6767 int
6768 main ()
6769 {
6770 CFLocaleCopyCurrent();
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (ac_try="$ac_link"
6777 case "(($ac_try" in
6778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779   *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782   (eval "$ac_link") 2>conftest.er1
6783   ac_status=$?
6784   grep -v '^ *+' conftest.er1 >conftest.err
6785   rm -f conftest.er1
6786   cat conftest.err >&5
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6790   { (case "(($ac_try" in
6791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792   *) ac_try_echo=$ac_try;;
6793 esac
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795   (eval "$ac_try") 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; } &&
6799          { ac_try='test -s conftest$ac_exeext'
6800   { (case "(($ac_try" in
6801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802   *) ac_try_echo=$ac_try;;
6803 esac
6804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805   (eval "$ac_try") 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; }; then
6809   gt_cv_func_CFLocaleCopyCurrent=yes
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814         gt_cv_func_CFLocaleCopyCurrent=no
6815 fi
6816
6817 rm -f core conftest.err conftest.$ac_objext \
6818       conftest$ac_exeext conftest.$ac_ext
6819      CPPFLAGS="$gt_save_CPPFLAGS"
6820      LIBS="$gt_save_LIBS"
6821 fi
6822 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6823 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6824   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_CFLOCALECOPYCURRENT 1
6828 _ACEOF
6829
6830   fi
6831   INTL_MACOSX_LIBS=
6832   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6833     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6834   fi
6835
6836
6837
6838
6839   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6840 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6841     # Check whether --enable-nls was given.
6842 if test "${enable_nls+set}" = set; then
6843   enableval=$enable_nls; USE_NLS=$enableval
6844 else
6845   USE_NLS=yes
6846 fi
6847
6848   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6849 echo "${ECHO_T}$USE_NLS" >&6; }
6850
6851
6852
6853
6854   LIBINTL=
6855   LTLIBINTL=
6856   POSUB=
6857
6858     if test "$USE_NLS" = "yes"; then
6859     gt_use_preinstalled_gnugettext=no
6860
6861
6862
6863
6864
6865
6866         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6867 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6868 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877 #include <libintl.h>
6878 extern int _nl_msg_cat_cntr;
6879 extern int *_nl_domain_bindings;
6880 int
6881 main ()
6882 {
6883 bindtextdomain ("", "");
6884 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6885   ;
6886   return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (ac_try="$ac_link"
6891 case "(($ac_try" in
6892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893   *) ac_try_echo=$ac_try;;
6894 esac
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896   (eval "$ac_link") 2>conftest.er1
6897   ac_status=$?
6898   grep -v '^ *+' conftest.er1 >conftest.err
6899   rm -f conftest.er1
6900   cat conftest.err >&5
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } &&
6903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6904   { (case "(($ac_try" in
6905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906   *) ac_try_echo=$ac_try;;
6907 esac
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909   (eval "$ac_try") 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; } &&
6913          { ac_try='test -s conftest$ac_exeext'
6914   { (case "(($ac_try" in
6915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916   *) ac_try_echo=$ac_try;;
6917 esac
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919   (eval "$ac_try") 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; }; then
6923   gt_cv_func_gnugettext1_libc=yes
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928         gt_cv_func_gnugettext1_libc=no
6929 fi
6930
6931 rm -f core conftest.err conftest.$ac_objext \
6932       conftest$ac_exeext conftest.$ac_ext
6933 fi
6934 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6935 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6936
6937         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6938
6939
6940
6941
6942
6943           am_save_CPPFLAGS="$CPPFLAGS"
6944
6945   for element in $INCICONV; do
6946     haveit=
6947     for x in $CPPFLAGS; do
6948
6949   acl_save_prefix="$prefix"
6950   prefix="$acl_final_prefix"
6951   acl_save_exec_prefix="$exec_prefix"
6952   exec_prefix="$acl_final_exec_prefix"
6953   eval x=\"$x\"
6954   exec_prefix="$acl_save_exec_prefix"
6955   prefix="$acl_save_prefix"
6956
6957       if test "X$x" = "X$element"; then
6958         haveit=yes
6959         break
6960       fi
6961     done
6962     if test -z "$haveit"; then
6963       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6964     fi
6965   done
6966
6967
6968   { echo "$as_me:$LINENO: checking for iconv" >&5
6969 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6970 if test "${am_cv_func_iconv+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973
6974     am_cv_func_iconv="no, consider installing GNU libiconv"
6975     am_cv_lib_iconv=no
6976     cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h.  */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h.  */
6982 #include <stdlib.h>
6983 #include <iconv.h>
6984 int
6985 main ()
6986 {
6987 iconv_t cd = iconv_open("","");
6988        iconv(cd,NULL,NULL,NULL,NULL);
6989        iconv_close(cd);
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6996 case "(($ac_try" in
6997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998   *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001   (eval "$ac_link") 2>conftest.er1
7002   ac_status=$?
7003   grep -v '^ *+' conftest.er1 >conftest.err
7004   rm -f conftest.er1
7005   cat conftest.err >&5
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); } &&
7008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7009   { (case "(($ac_try" in
7010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011   *) ac_try_echo=$ac_try;;
7012 esac
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014   (eval "$ac_try") 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (case "(($ac_try" in
7020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021   *) ac_try_echo=$ac_try;;
7022 esac
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024   (eval "$ac_try") 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; }; then
7028   am_cv_func_iconv=yes
7029 else
7030   echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033
7034 fi
7035
7036 rm -f core conftest.err conftest.$ac_objext \
7037       conftest$ac_exeext conftest.$ac_ext
7038     if test "$am_cv_func_iconv" != yes; then
7039       am_save_LIBS="$LIBS"
7040       LIBS="$LIBS $LIBICONV"
7041       cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047 #include <stdlib.h>
7048 #include <iconv.h>
7049 int
7050 main ()
7051 {
7052 iconv_t cd = iconv_open("","");
7053          iconv(cd,NULL,NULL,NULL,NULL);
7054          iconv_close(cd);
7055   ;
7056   return 0;
7057 }
7058 _ACEOF
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (ac_try="$ac_link"
7061 case "(($ac_try" in
7062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063   *) ac_try_echo=$ac_try;;
7064 esac
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066   (eval "$ac_link") 2>conftest.er1
7067   ac_status=$?
7068   grep -v '^ *+' conftest.er1 >conftest.err
7069   rm -f conftest.er1
7070   cat conftest.err >&5
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7074   { (case "(($ac_try" in
7075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076   *) ac_try_echo=$ac_try;;
7077 esac
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079   (eval "$ac_try") 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; } &&
7083          { ac_try='test -s conftest$ac_exeext'
7084   { (case "(($ac_try" in
7085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086   *) ac_try_echo=$ac_try;;
7087 esac
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089   (eval "$ac_try") 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); }; }; then
7093   am_cv_lib_iconv=yes
7094         am_cv_func_iconv=yes
7095 else
7096   echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7098
7099
7100 fi
7101
7102 rm -f core conftest.err conftest.$ac_objext \
7103       conftest$ac_exeext conftest.$ac_ext
7104       LIBS="$am_save_LIBS"
7105     fi
7106
7107 fi
7108 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7109 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7110   if test "$am_cv_func_iconv" = yes; then
7111
7112 cat >>confdefs.h <<\_ACEOF
7113 #define HAVE_ICONV 1
7114 _ACEOF
7115
7116   fi
7117   if test "$am_cv_lib_iconv" = yes; then
7118     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7119 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7120     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7121 echo "${ECHO_T}$LIBICONV" >&6; }
7122   else
7123             CPPFLAGS="$am_save_CPPFLAGS"
7124     LIBICONV=
7125     LTLIBICONV=
7126   fi
7127
7128
7129
7130
7131
7132
7133     use_additional=yes
7134
7135   acl_save_prefix="$prefix"
7136   prefix="$acl_final_prefix"
7137   acl_save_exec_prefix="$exec_prefix"
7138   exec_prefix="$acl_final_exec_prefix"
7139
7140     eval additional_includedir=\"$includedir\"
7141     eval additional_libdir=\"$libdir\"
7142
7143   exec_prefix="$acl_save_exec_prefix"
7144   prefix="$acl_save_prefix"
7145
7146
7147 # Check whether --with-libintl-prefix was given.
7148 if test "${with_libintl_prefix+set}" = set; then
7149   withval=$with_libintl_prefix;
7150     if test "X$withval" = "Xno"; then
7151       use_additional=no
7152     else
7153       if test "X$withval" = "X"; then
7154
7155   acl_save_prefix="$prefix"
7156   prefix="$acl_final_prefix"
7157   acl_save_exec_prefix="$exec_prefix"
7158   exec_prefix="$acl_final_exec_prefix"
7159
7160           eval additional_includedir=\"$includedir\"
7161           eval additional_libdir=\"$libdir\"
7162
7163   exec_prefix="$acl_save_exec_prefix"
7164   prefix="$acl_save_prefix"
7165
7166       else
7167         additional_includedir="$withval/include"
7168         additional_libdir="$withval/lib"
7169       fi
7170     fi
7171
7172 fi
7173
7174       LIBINTL=
7175   LTLIBINTL=
7176   INCINTL=
7177   rpathdirs=
7178   ltrpathdirs=
7179   names_already_handled=
7180   names_next_round='intl '
7181   while test -n "$names_next_round"; do
7182     names_this_round="$names_next_round"
7183     names_next_round=
7184     for name in $names_this_round; do
7185       already_handled=
7186       for n in $names_already_handled; do
7187         if test "$n" = "$name"; then
7188           already_handled=yes
7189           break
7190         fi
7191       done
7192       if test -z "$already_handled"; then
7193         names_already_handled="$names_already_handled $name"
7194                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7195         eval value=\"\$HAVE_LIB$uppername\"
7196         if test -n "$value"; then
7197           if test "$value" = yes; then
7198             eval value=\"\$LIB$uppername\"
7199             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7200             eval value=\"\$LTLIB$uppername\"
7201             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7202           else
7203                                     :
7204           fi
7205         else
7206                               found_dir=
7207           found_la=
7208           found_so=
7209           found_a=
7210           if test $use_additional = yes; then
7211             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7212               found_dir="$additional_libdir"
7213               found_so="$additional_libdir/lib$name.$shlibext"
7214               if test -f "$additional_libdir/lib$name.la"; then
7215                 found_la="$additional_libdir/lib$name.la"
7216               fi
7217             else
7218               if test -f "$additional_libdir/lib$name.$libext"; then
7219                 found_dir="$additional_libdir"
7220                 found_a="$additional_libdir/lib$name.$libext"
7221                 if test -f "$additional_libdir/lib$name.la"; then
7222                   found_la="$additional_libdir/lib$name.la"
7223                 fi
7224               fi
7225             fi
7226           fi
7227           if test "X$found_dir" = "X"; then
7228             for x in $LDFLAGS $LTLIBINTL; do
7229
7230   acl_save_prefix="$prefix"
7231   prefix="$acl_final_prefix"
7232   acl_save_exec_prefix="$exec_prefix"
7233   exec_prefix="$acl_final_exec_prefix"
7234   eval x=\"$x\"
7235   exec_prefix="$acl_save_exec_prefix"
7236   prefix="$acl_save_prefix"
7237
7238               case "$x" in
7239                 -L*)
7240                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7241                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7242                     found_dir="$dir"
7243                     found_so="$dir/lib$name.$shlibext"
7244                     if test -f "$dir/lib$name.la"; then
7245                       found_la="$dir/lib$name.la"
7246                     fi
7247                   else
7248                     if test -f "$dir/lib$name.$libext"; then
7249                       found_dir="$dir"
7250                       found_a="$dir/lib$name.$libext"
7251                       if test -f "$dir/lib$name.la"; then
7252                         found_la="$dir/lib$name.la"
7253                       fi
7254                     fi
7255                   fi
7256                   ;;
7257               esac
7258               if test "X$found_dir" != "X"; then
7259                 break
7260               fi
7261             done
7262           fi
7263           if test "X$found_dir" != "X"; then
7264                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7265             if test "X$found_so" != "X"; then
7266                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7267                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7268               else
7269                                                                                 haveit=
7270                 for x in $ltrpathdirs; do
7271                   if test "X$x" = "X$found_dir"; then
7272                     haveit=yes
7273                     break
7274                   fi
7275                 done
7276                 if test -z "$haveit"; then
7277                   ltrpathdirs="$ltrpathdirs $found_dir"
7278                 fi
7279                                 if test "$hardcode_direct" = yes; then
7280                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7281                 else
7282                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7283                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7284                                                             haveit=
7285                     for x in $rpathdirs; do
7286                       if test "X$x" = "X$found_dir"; then
7287                         haveit=yes
7288                         break
7289                       fi
7290                     done
7291                     if test -z "$haveit"; then
7292                       rpathdirs="$rpathdirs $found_dir"
7293                     fi
7294                   else
7295                                                                                 haveit=
7296                     for x in $LDFLAGS $LIBINTL; do
7297
7298   acl_save_prefix="$prefix"
7299   prefix="$acl_final_prefix"
7300   acl_save_exec_prefix="$exec_prefix"
7301   exec_prefix="$acl_final_exec_prefix"
7302   eval x=\"$x\"
7303   exec_prefix="$acl_save_exec_prefix"
7304   prefix="$acl_save_prefix"
7305
7306                       if test "X$x" = "X-L$found_dir"; then
7307                         haveit=yes
7308                         break
7309                       fi
7310                     done
7311                     if test -z "$haveit"; then
7312                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7313                     fi
7314                     if test "$hardcode_minus_L" != no; then
7315                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7316                     else
7317                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7318                     fi
7319                   fi
7320                 fi
7321               fi
7322             else
7323               if test "X$found_a" != "X"; then
7324                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7325               else
7326                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7327               fi
7328             fi
7329                         additional_includedir=
7330             case "$found_dir" in
7331               */lib | */lib/)
7332                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7333                 additional_includedir="$basedir/include"
7334                 ;;
7335             esac
7336             if test "X$additional_includedir" != "X"; then
7337                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7338                 haveit=
7339                 if test "X$additional_includedir" = "X/usr/local/include"; then
7340                   if test -n "$GCC"; then
7341                     case $host_os in
7342                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7343                     esac
7344                   fi
7345                 fi
7346                 if test -z "$haveit"; then
7347                   for x in $CPPFLAGS $INCINTL; do
7348
7349   acl_save_prefix="$prefix"
7350   prefix="$acl_final_prefix"
7351   acl_save_exec_prefix="$exec_prefix"
7352   exec_prefix="$acl_final_exec_prefix"
7353   eval x=\"$x\"
7354   exec_prefix="$acl_save_exec_prefix"
7355   prefix="$acl_save_prefix"
7356
7357                     if test "X$x" = "X-I$additional_includedir"; then
7358                       haveit=yes
7359                       break
7360                     fi
7361                   done
7362                   if test -z "$haveit"; then
7363                     if test -d "$additional_includedir"; then
7364                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7365                     fi
7366                   fi
7367                 fi
7368               fi
7369             fi
7370                         if test -n "$found_la"; then
7371                                                         save_libdir="$libdir"
7372               case "$found_la" in
7373                 */* | *\\*) . "$found_la" ;;
7374                 *) . "./$found_la" ;;
7375               esac
7376               libdir="$save_libdir"
7377                             for dep in $dependency_libs; do
7378                 case "$dep" in
7379                   -L*)
7380                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7381                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7382                       haveit=
7383                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7384                         if test -n "$GCC"; then
7385                           case $host_os in
7386                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7387                           esac
7388                         fi
7389                       fi
7390                       if test -z "$haveit"; then
7391                         haveit=
7392                         for x in $LDFLAGS $LIBINTL; do
7393
7394   acl_save_prefix="$prefix"
7395   prefix="$acl_final_prefix"
7396   acl_save_exec_prefix="$exec_prefix"
7397   exec_prefix="$acl_final_exec_prefix"
7398   eval x=\"$x\"
7399   exec_prefix="$acl_save_exec_prefix"
7400   prefix="$acl_save_prefix"
7401
7402                           if test "X$x" = "X-L$additional_libdir"; then
7403                             haveit=yes
7404                             break
7405                           fi
7406                         done
7407                         if test -z "$haveit"; then
7408                           if test -d "$additional_libdir"; then
7409                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7410                           fi
7411                         fi
7412                         haveit=
7413                         for x in $LDFLAGS $LTLIBINTL; do
7414
7415   acl_save_prefix="$prefix"
7416   prefix="$acl_final_prefix"
7417   acl_save_exec_prefix="$exec_prefix"
7418   exec_prefix="$acl_final_exec_prefix"
7419   eval x=\"$x\"
7420   exec_prefix="$acl_save_exec_prefix"
7421   prefix="$acl_save_prefix"
7422
7423                           if test "X$x" = "X-L$additional_libdir"; then
7424                             haveit=yes
7425                             break
7426                           fi
7427                         done
7428                         if test -z "$haveit"; then
7429                           if test -d "$additional_libdir"; then
7430                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7431                           fi
7432                         fi
7433                       fi
7434                     fi
7435                     ;;
7436                   -R*)
7437                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7438                     if test "$enable_rpath" != no; then
7439                                                                   haveit=
7440                       for x in $rpathdirs; do
7441                         if test "X$x" = "X$dir"; then
7442                           haveit=yes
7443                           break
7444                         fi
7445                       done
7446                       if test -z "$haveit"; then
7447                         rpathdirs="$rpathdirs $dir"
7448                       fi
7449                                                                   haveit=
7450                       for x in $ltrpathdirs; do
7451                         if test "X$x" = "X$dir"; then
7452                           haveit=yes
7453                           break
7454                         fi
7455                       done
7456                       if test -z "$haveit"; then
7457                         ltrpathdirs="$ltrpathdirs $dir"
7458                       fi
7459                     fi
7460                     ;;
7461                   -l*)
7462                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7463                     ;;
7464                   *.la)
7465                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7466                     ;;
7467                   *)
7468                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7469                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7470                     ;;
7471                 esac
7472               done
7473             fi
7474           else
7475                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7476             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7477           fi
7478         fi
7479       fi
7480     done
7481   done
7482   if test "X$rpathdirs" != "X"; then
7483     if test -n "$hardcode_libdir_separator"; then
7484                         alldirs=
7485       for found_dir in $rpathdirs; do
7486         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7487       done
7488             acl_save_libdir="$libdir"
7489       libdir="$alldirs"
7490       eval flag=\"$hardcode_libdir_flag_spec\"
7491       libdir="$acl_save_libdir"
7492       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7493     else
7494             for found_dir in $rpathdirs; do
7495         acl_save_libdir="$libdir"
7496         libdir="$found_dir"
7497         eval flag=\"$hardcode_libdir_flag_spec\"
7498         libdir="$acl_save_libdir"
7499         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7500       done
7501     fi
7502   fi
7503   if test "X$ltrpathdirs" != "X"; then
7504             for found_dir in $ltrpathdirs; do
7505       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7506     done
7507   fi
7508
7509           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7510 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7511 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   gt_save_CPPFLAGS="$CPPFLAGS"
7515             CPPFLAGS="$CPPFLAGS $INCINTL"
7516             gt_save_LIBS="$LIBS"
7517             LIBS="$LIBS $LIBINTL"
7518                         cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h.  */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h.  */
7524 #include <libintl.h>
7525 extern int _nl_msg_cat_cntr;
7526 extern
7527 #ifdef __cplusplus
7528 "C"
7529 #endif
7530 const char *_nl_expand_alias (const char *);
7531 int
7532 main ()
7533 {
7534 bindtextdomain ("", "");
7535 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (ac_try="$ac_link"
7542 case "(($ac_try" in
7543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544   *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547   (eval "$ac_link") 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } &&
7554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7555   { (case "(($ac_try" in
7556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557   *) ac_try_echo=$ac_try;;
7558 esac
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560   (eval "$ac_try") 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; } &&
7564          { ac_try='test -s conftest$ac_exeext'
7565   { (case "(($ac_try" in
7566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567   *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570   (eval "$ac_try") 2>&5
7571   ac_status=$?
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); }; }; then
7574   gt_cv_func_gnugettext1_libintl=yes
7575 else
7576   echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579         gt_cv_func_gnugettext1_libintl=no
7580 fi
7581
7582 rm -f core conftest.err conftest.$ac_objext \
7583       conftest$ac_exeext conftest.$ac_ext
7584                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7585               LIBS="$LIBS $LIBICONV"
7586               cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592 #include <libintl.h>
7593 extern int _nl_msg_cat_cntr;
7594 extern
7595 #ifdef __cplusplus
7596 "C"
7597 #endif
7598 const char *_nl_expand_alias (const char *);
7599 int
7600 main ()
7601 {
7602 bindtextdomain ("", "");
7603 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7604   ;
7605   return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (ac_try="$ac_link"
7610 case "(($ac_try" in
7611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612   *) ac_try_echo=$ac_try;;
7613 esac
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615   (eval "$ac_link") 2>conftest.er1
7616   ac_status=$?
7617   grep -v '^ *+' conftest.er1 >conftest.err
7618   rm -f conftest.er1
7619   cat conftest.err >&5
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7623   { (case "(($ac_try" in
7624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625   *) ac_try_echo=$ac_try;;
7626 esac
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628   (eval "$ac_try") 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); }; } &&
7632          { ac_try='test -s conftest$ac_exeext'
7633   { (case "(($ac_try" in
7634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635   *) ac_try_echo=$ac_try;;
7636 esac
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638   (eval "$ac_try") 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642   LIBINTL="$LIBINTL $LIBICONV"
7643                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7644                 gt_cv_func_gnugettext1_libintl=yes
7645
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650
7651 fi
7652
7653 rm -f core conftest.err conftest.$ac_objext \
7654       conftest$ac_exeext conftest.$ac_ext
7655             fi
7656             CPPFLAGS="$gt_save_CPPFLAGS"
7657             LIBS="$gt_save_LIBS"
7658 fi
7659 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7660 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7661         fi
7662
7663                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7664            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7665                 && test "$PACKAGE" != gettext-runtime \
7666                 && test "$PACKAGE" != gettext-tools; }; then
7667           gt_use_preinstalled_gnugettext=yes
7668         else
7669                     LIBINTL=
7670           LTLIBINTL=
7671           INCINTL=
7672         fi
7673
7674
7675
7676     if test -n "$INTL_MACOSX_LIBS"; then
7677       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7678          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7679                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7680         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7681       fi
7682     fi
7683
7684     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7685        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7686
7687 cat >>confdefs.h <<\_ACEOF
7688 #define ENABLE_NLS 1
7689 _ACEOF
7690
7691     else
7692       USE_NLS=no
7693     fi
7694   fi
7695
7696   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7697 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7698   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7699 echo "${ECHO_T}$USE_NLS" >&6; }
7700   if test "$USE_NLS" = "yes"; then
7701     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7702 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7703     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7704       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7705         gt_source="external libintl"
7706       else
7707         gt_source="libc"
7708       fi
7709     else
7710       gt_source="included intl directory"
7711     fi
7712     { echo "$as_me:$LINENO: result: $gt_source" >&5
7713 echo "${ECHO_T}$gt_source" >&6; }
7714   fi
7715
7716   if test "$USE_NLS" = "yes"; then
7717
7718     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7719       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7720         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7721 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7722         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7723 echo "${ECHO_T}$LIBINTL" >&6; }
7724
7725   for element in $INCINTL; do
7726     haveit=
7727     for x in $CPPFLAGS; do
7728
7729   acl_save_prefix="$prefix"
7730   prefix="$acl_final_prefix"
7731   acl_save_exec_prefix="$exec_prefix"
7732   exec_prefix="$acl_final_exec_prefix"
7733   eval x=\"$x\"
7734   exec_prefix="$acl_save_exec_prefix"
7735   prefix="$acl_save_prefix"
7736
7737       if test "X$x" = "X$element"; then
7738         haveit=yes
7739         break
7740       fi
7741     done
7742     if test -z "$haveit"; then
7743       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7744     fi
7745   done
7746
7747       fi
7748
7749
7750 cat >>confdefs.h <<\_ACEOF
7751 #define HAVE_GETTEXT 1
7752 _ACEOF
7753
7754
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_DCGETTEXT 1
7757 _ACEOF
7758
7759     fi
7760
7761         POSUB=po
7762   fi
7763
7764
7765
7766     INTLLIBS="$LIBINTL"
7767
7768
7769
7770
7771
7772
7773 if test x${prefix} = xNONE ; then
7774    if test `eval echo ${datadir}` = NONE/share ; then
7775       datadir=/usr/share
7776    fi
7777 fi
7778
7779 # ------------------------------------------------------------------
7780 #  If the user has not set --prefix, we set our default to nothing.
7781 #  In this case, if the user has not set --sysconfdir, we set it
7782 #  to the package default of /etc/bacula.  If either --prefix or
7783 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7784 # ------------------------------------------------------------------
7785 if test x${prefix} = xNONE ; then
7786     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7787         sysconfdir=/etc/bacula
7788     fi
7789     prefix=
7790 fi
7791 sysconfdir=`eval echo ${sysconfdir}`
7792 datadir=`eval echo ${datadir}`
7793 localedir=`eval echo ${datadir}/locale`
7794 cat >>confdefs.h <<_ACEOF
7795 #define LOCALEDIR "$localedir"
7796 _ACEOF
7797
7798 cat >>confdefs.h <<_ACEOF
7799 #define SYSCONFDIR "$sysconfdir"
7800 _ACEOF
7801
7802
7803 # -------------------------------------------------------------------------
7804 #  If the user has not set --exec-prefix, we default to ${prefix}
7805 # -------------------------------------------------------------------------
7806 if test x${exec_prefix} = xNONE ; then
7807     exec_prefix=${prefix}
7808 fi
7809
7810 # ------------------------------------------------------------------
7811 # If the user has not set --sbindir, we set our default as /sbin
7812 # ------------------------------------------------------------------
7813 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7814     sbindir=${exec_prefix}/sbin
7815 fi
7816 sbindir=`eval echo ${sbindir}`
7817
7818 # -------------------------------------------------------------------------
7819 #  If the user has not set --mandir, we default to /usr/share/man
7820 # -------------------------------------------------------------------------
7821 if test x$mandir = x'${prefix}/man' ; then
7822    mandir=/usr/share/man
7823 fi
7824
7825
7826 # ------------------------------------------------------------------
7827 # All list of languages for which a translation exist. Each
7828 #  language is separated by a space.
7829 # ------------------------------------------------------------------
7830 ALL_LINGUAS=""
7831
7832 for ac_prog in msgfmt
7833 do
7834   # Extract the first word of "$ac_prog", so it can be a program name with args.
7835 set dummy $ac_prog; ac_word=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_path_MSGFMT+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   case $MSGFMT in
7842   [\\/]* | ?:[\\/]*)
7843   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7844   ;;
7845   *)
7846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851   for ac_exec_ext in '' $ac_executable_extensions; do
7852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7853     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861   ;;
7862 esac
7863 fi
7864 MSGFMT=$ac_cv_path_MSGFMT
7865 if test -n "$MSGFMT"; then
7866   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7867 echo "${ECHO_T}$MSGFMT" >&6; }
7868 else
7869   { echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6; }
7871 fi
7872
7873
7874   test -n "$MSGFMT" && break
7875 done
7876 test -n "$MSGFMT" || MSGFMT="no"
7877
7878 if test "$MSGFMT" = "no"
7879 then
7880    echo 'msgfmt program not found, disabling NLS !'
7881    USE_NLS=no
7882    USE_INCLUDED_LIBINTL=no
7883 #else
7884
7885     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7886 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7887 if test "${ac_cv_gnu_library_2+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896
7897 #include <features.h>
7898 #ifdef __GNU_LIBRARY__
7899  #if (__GLIBC__ >= 2)
7900   Lucky GNU user
7901  #endif
7902 #endif
7903
7904 _ACEOF
7905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7906   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7907   ac_cv_gnu_library_2=yes
7908 else
7909   ac_cv_gnu_library_2=no
7910 fi
7911 rm -f conftest*
7912
7913
7914
7915 fi
7916 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7917 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7918
7919     GLIBC2="$ac_cv_gnu_library_2"
7920
7921
7922
7923         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7924 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7925 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   ac_check_lib_save_LIBS=$LIBS
7929 LIBS="-lcposix  $LIBS"
7930 cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936
7937 /* Override any GCC internal prototype to avoid an error.
7938    Use char because int might match the return type of a GCC
7939    builtin and then its argument prototype would still apply.  */
7940 #ifdef __cplusplus
7941 extern "C"
7942 #endif
7943 char strerror ();
7944 int
7945 main ()
7946 {
7947 return strerror ();
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7954 case "(($ac_try" in
7955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956   *) ac_try_echo=$ac_try;;
7957 esac
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959   (eval "$ac_link") 2>conftest.er1
7960   ac_status=$?
7961   grep -v '^ *+' conftest.er1 >conftest.err
7962   rm -f conftest.er1
7963   cat conftest.err >&5
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } &&
7966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967   { (case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_try") 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; } &&
7976          { ac_try='test -s conftest$ac_exeext'
7977   { (case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_try") 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; }; then
7986   ac_cv_lib_cposix_strerror=yes
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991         ac_cv_lib_cposix_strerror=no
7992 fi
7993
7994 rm -f core conftest.err conftest.$ac_objext \
7995       conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7997 fi
7998 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7999 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8000 if test $ac_cv_lib_cposix_strerror = yes; then
8001   LIBS="$LIBS -lcposix"
8002 fi
8003
8004
8005
8006 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8008 if test "${ac_cv_header_stdc+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h.  */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h.  */
8017 #include <stdlib.h>
8018 #include <stdarg.h>
8019 #include <string.h>
8020 #include <float.h>
8021
8022 int
8023 main ()
8024 {
8025
8026   ;
8027   return 0;
8028 }
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8032 case "(($ac_try" in
8033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034   *) ac_try_echo=$ac_try;;
8035 esac
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037   (eval "$ac_compile") 2>conftest.er1
8038   ac_status=$?
8039   grep -v '^ *+' conftest.er1 >conftest.err
8040   rm -f conftest.er1
8041   cat conftest.err >&5
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } &&
8044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8045   { (case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050   (eval "$ac_try") 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; } &&
8054          { ac_try='test -s conftest.$ac_objext'
8055   { (case "(($ac_try" in
8056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057   *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060   (eval "$ac_try") 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   ac_cv_header_stdc=yes
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069         ac_cv_header_stdc=no
8070 fi
8071
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073
8074 if test $ac_cv_header_stdc = yes; then
8075   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8076   cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 #include <string.h>
8083
8084 _ACEOF
8085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8086   $EGREP "memchr" >/dev/null 2>&1; then
8087   :
8088 else
8089   ac_cv_header_stdc=no
8090 fi
8091 rm -f conftest*
8092
8093 fi
8094
8095 if test $ac_cv_header_stdc = yes; then
8096   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 #include <stdlib.h>
8104
8105 _ACEOF
8106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8107   $EGREP "free" >/dev/null 2>&1; then
8108   :
8109 else
8110   ac_cv_header_stdc=no
8111 fi
8112 rm -f conftest*
8113
8114 fi
8115
8116 if test $ac_cv_header_stdc = yes; then
8117   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8118   if test "$cross_compiling" = yes; then
8119   :
8120 else
8121   cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 #include <ctype.h>
8128 #include <stdlib.h>
8129 #if ((' ' & 0x0FF) == 0x020)
8130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8132 #else
8133 # define ISLOWER(c) \
8134                    (('a' <= (c) && (c) <= 'i') \
8135                      || ('j' <= (c) && (c) <= 'r') \
8136                      || ('s' <= (c) && (c) <= 'z'))
8137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8138 #endif
8139
8140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8141 int
8142 main ()
8143 {
8144   int i;
8145   for (i = 0; i < 256; i++)
8146     if (XOR (islower (i), ISLOWER (i))
8147         || toupper (i) != TOUPPER (i))
8148       return 2;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest$ac_exeext
8153 if { (ac_try="$ac_link"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_link") 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8163   { (case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_try") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   :
8173 else
8174   echo "$as_me: program exited with status $ac_status" >&5
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 ( exit $ac_status )
8179 ac_cv_header_stdc=no
8180 fi
8181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8182 fi
8183
8184
8185 fi
8186 fi
8187 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8188 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8189 if test $ac_cv_header_stdc = yes; then
8190
8191 cat >>confdefs.h <<\_ACEOF
8192 #define STDC_HEADERS 1
8193 _ACEOF
8194
8195 fi
8196
8197 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8199 if test "${ac_cv_c_const+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208
8209 int
8210 main ()
8211 {
8212 /* FIXME: Include the comments suggested by Paul. */
8213 #ifndef __cplusplus
8214   /* Ultrix mips cc rejects this.  */
8215   typedef int charset[2];
8216   const charset x;
8217   /* SunOS 4.1.1 cc rejects this.  */
8218   char const *const *ccp;
8219   char **p;
8220   /* NEC SVR4.0.2 mips cc rejects this.  */
8221   struct point {int x, y;};
8222   static struct point const zero = {0,0};
8223   /* AIX XL C 1.02.0.0 rejects this.
8224      It does not let you subtract one const X* pointer from another in
8225      an arm of an if-expression whose if-part is not a constant
8226      expression */
8227   const char *g = "string";
8228   ccp = &g + (g ? g-g : 0);
8229   /* HPUX 7.0 cc rejects these. */
8230   ++ccp;
8231   p = (char**) ccp;
8232   ccp = (char const *const *) p;
8233   { /* SCO 3.2v4 cc rejects this.  */
8234     char *t;
8235     char const *s = 0 ? (char *) 0 : (char const *) 0;
8236
8237     *t++ = 0;
8238     if (s) return 0;
8239   }
8240   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8241     int x[] = {25, 17};
8242     const int *foo = &x[0];
8243     ++foo;
8244   }
8245   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8246     typedef const int *iptr;
8247     iptr p = 0;
8248     ++p;
8249   }
8250   { /* AIX XL C 1.02.0.0 rejects this saying
8251        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8252     struct s { int j; const int *ap[3]; };
8253     struct s *b; b->j = 5;
8254   }
8255   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8256     const int foo = 10;
8257     if (!foo) return 0;
8258   }
8259   return !x[0] && !zero.x;
8260 #endif
8261
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273   (eval "$ac_compile") 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } &&
8280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8281   { (case "(($ac_try" in
8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283   *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286   (eval "$ac_try") 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; } &&
8290          { ac_try='test -s conftest.$ac_objext'
8291   { (case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_try") 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; }; then
8300   ac_cv_c_const=yes
8301 else
8302   echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305         ac_cv_c_const=no
8306 fi
8307
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8311 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8312 if test $ac_cv_c_const = no; then
8313
8314 cat >>confdefs.h <<\_ACEOF
8315 #define const
8316 _ACEOF
8317
8318 fi
8319
8320
8321   { echo "$as_me:$LINENO: checking for signed" >&5
8322 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8323 if test "${bh_cv_c_signed+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h.  */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h.  */
8332
8333 int
8334 main ()
8335 {
8336 signed char x;
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8343 case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_compile") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } &&
8355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356   { (case "(($ac_try" in
8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358   *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361   (eval "$ac_try") 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; } &&
8365          { ac_try='test -s conftest.$ac_objext'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   bh_cv_c_signed=yes
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380         bh_cv_c_signed=no
8381 fi
8382
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8386 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8387   if test $bh_cv_c_signed = no; then
8388
8389 cat >>confdefs.h <<\_ACEOF
8390 #define signed
8391 _ACEOF
8392
8393   fi
8394
8395 { echo "$as_me:$LINENO: checking for inline" >&5
8396 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8397 if test "${ac_cv_c_inline+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   ac_cv_c_inline=no
8401 for ac_kw in inline __inline__ __inline; do
8402   cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408 #ifndef __cplusplus
8409 typedef int foo_t;
8410 static $ac_kw foo_t static_foo () {return 0; }
8411 $ac_kw foo_t foo () {return 0; }
8412 #endif
8413
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8417 case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422   (eval "$ac_compile") 2>conftest.er1
8423   ac_status=$?
8424   grep -v '^ *+' conftest.er1 >conftest.err
8425   rm -f conftest.er1
8426   cat conftest.err >&5
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } &&
8429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8430   { (case "(($ac_try" in
8431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432   *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435   (eval "$ac_try") 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); }; } &&
8439          { ac_try='test -s conftest.$ac_objext'
8440   { (case "(($ac_try" in
8441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442   *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445   (eval "$ac_try") 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   ac_cv_c_inline=$ac_kw
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454
8455 fi
8456
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458   test "$ac_cv_c_inline" != no && break
8459 done
8460
8461 fi
8462 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8463 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8464
8465
8466 case $ac_cv_c_inline in
8467   inline | yes) ;;
8468   *)
8469     case $ac_cv_c_inline in
8470       no) ac_val=;;
8471       *) ac_val=$ac_cv_c_inline;;
8472     esac
8473     cat >>confdefs.h <<_ACEOF
8474 #ifndef __cplusplus
8475 #define inline $ac_val
8476 #endif
8477 _ACEOF
8478     ;;
8479 esac
8480
8481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8492                   inttypes.h stdint.h unistd.h
8493 do
8494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506 $ac_includes_default
8507
8508 #include <$ac_header>
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_compile") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525   { (case "(($ac_try" in
8526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527   *) ac_try_echo=$ac_try;;
8528 esac
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530   (eval "$ac_try") 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; } &&
8534          { ac_try='test -s conftest.$ac_objext'
8535   { (case "(($ac_try" in
8536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537   *) ac_try_echo=$ac_try;;
8538 esac
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540   (eval "$ac_try") 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   eval "$as_ac_Header=yes"
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549         eval "$as_ac_Header=no"
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 fi
8554 ac_res=`eval echo '${'$as_ac_Header'}'`
8555                { echo "$as_me:$LINENO: result: $ac_res" >&5
8556 echo "${ECHO_T}$ac_res" >&6; }
8557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558   cat >>confdefs.h <<_ACEOF
8559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560 _ACEOF
8561
8562 fi
8563
8564 done
8565
8566
8567 { echo "$as_me:$LINENO: checking for off_t" >&5
8568 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8569 if test "${ac_cv_type_off_t+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578 $ac_includes_default
8579 typedef off_t ac__type_new_;
8580 int
8581 main ()
8582 {
8583 if ((ac__type_new_ *) 0)
8584   return 0;
8585 if (sizeof (ac__type_new_))
8586   return 0;
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_compile") 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } &&
8605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606   { (case "(($ac_try" in
8607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608   *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611   (eval "$ac_try") 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; } &&
8615          { ac_try='test -s conftest.$ac_objext'
8616   { (case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_try") 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   ac_cv_type_off_t=yes
8626 else
8627   echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630         ac_cv_type_off_t=no
8631 fi
8632
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8636 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8637 if test $ac_cv_type_off_t = yes; then
8638   :
8639 else
8640
8641 cat >>confdefs.h <<_ACEOF
8642 #define off_t long int
8643 _ACEOF
8644
8645 fi
8646
8647 { echo "$as_me:$LINENO: checking for size_t" >&5
8648 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8649 if test "${ac_cv_type_size_t+set}" = set; then
8650   echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652   cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h.  */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h.  */
8658 $ac_includes_default
8659 typedef size_t ac__type_new_;
8660 int
8661 main ()
8662 {
8663 if ((ac__type_new_ *) 0)
8664   return 0;
8665 if (sizeof (ac__type_new_))
8666   return 0;
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675   *) ac_try_echo=$ac_try;;
8676 esac
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678   (eval "$ac_compile") 2>conftest.er1
8679   ac_status=$?
8680   grep -v '^ *+' conftest.er1 >conftest.err
8681   rm -f conftest.er1
8682   cat conftest.err >&5
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } &&
8685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686   { (case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_try") 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest.$ac_objext'
8696   { (case "(($ac_try" in
8697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698   *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701   (eval "$ac_try") 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   ac_cv_type_size_t=yes
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710         ac_cv_type_size_t=no
8711 fi
8712
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8716 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8717 if test $ac_cv_type_size_t = yes; then
8718   :
8719 else
8720
8721 cat >>confdefs.h <<_ACEOF
8722 #define size_t unsigned int
8723 _ACEOF
8724
8725 fi
8726
8727
8728   { echo "$as_me:$LINENO: checking for long long" >&5
8729 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8730 if test "${ac_cv_type_long_long+set}" = set; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733   cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739 long long ll = 1LL; int i = 63;
8740 int
8741 main ()
8742 {
8743 long long llmax = (long long) -1;
8744      return ll << i | ll >> i | llmax / ll | llmax % ll;
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8751 case "(($ac_try" in
8752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753   *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756   (eval "$ac_link") 2>conftest.er1
8757   ac_status=$?
8758   grep -v '^ *+' conftest.er1 >conftest.err
8759   rm -f conftest.er1
8760   cat conftest.err >&5
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } &&
8763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8764   { (case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769   (eval "$ac_try") 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; } &&
8773          { ac_try='test -s conftest$ac_exeext'
8774   { (case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_try") 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   ac_cv_type_long_long=yes
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788         ac_cv_type_long_long=no
8789 fi
8790
8791 rm -f core conftest.err conftest.$ac_objext \
8792       conftest$ac_exeext conftest.$ac_ext
8793 fi
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8795 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8796   if test $ac_cv_type_long_long = yes; then
8797
8798 cat >>confdefs.h <<\_ACEOF
8799 #define HAVE_LONG_LONG 1
8800 _ACEOF
8801
8802   fi
8803
8804
8805   { echo "$as_me:$LINENO: checking for long double" >&5
8806 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8807 if test "${gt_cv_c_long_double+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810   if test "$GCC" = yes; then
8811        gt_cv_c_long_double=yes
8812      else
8813        cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819
8820          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8821          long double foo = 0.0;
8822          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8823          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8824
8825 int
8826 main ()
8827 {
8828
8829   ;
8830   return 0;
8831 }
8832 _ACEOF
8833 rm -f conftest.$ac_objext
8834 if { (ac_try="$ac_compile"
8835 case "(($ac_try" in
8836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837   *) ac_try_echo=$ac_try;;
8838 esac
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840   (eval "$ac_compile") 2>conftest.er1
8841   ac_status=$?
8842   grep -v '^ *+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } &&
8847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8848   { (case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_try") 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; } &&
8857          { ac_try='test -s conftest.$ac_objext'
8858   { (case "(($ac_try" in
8859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860   *) ac_try_echo=$ac_try;;
8861 esac
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863   (eval "$ac_try") 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; }; then
8867   gt_cv_c_long_double=yes
8868 else
8869   echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872         gt_cv_c_long_double=no
8873 fi
8874
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876      fi
8877 fi
8878 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8879 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8880   if test $gt_cv_c_long_double = yes; then
8881
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_LONG_DOUBLE 1
8884 _ACEOF
8885
8886   fi
8887
8888
8889   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8890 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8891 if test "${gt_cv_c_wchar_t+set}" = set; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894   cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900 #include <stddef.h>
8901        wchar_t foo = (wchar_t)'\0';
8902 int
8903 main ()
8904 {
8905
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8912 case "(($ac_try" in
8913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914   *) ac_try_echo=$ac_try;;
8915 esac
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917   (eval "$ac_compile") 2>conftest.er1
8918   ac_status=$?
8919   grep -v '^ *+' conftest.er1 >conftest.err
8920   rm -f conftest.er1
8921   cat conftest.err >&5
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); } &&
8924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8925   { (case "(($ac_try" in
8926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927   *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930   (eval "$ac_try") 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; } &&
8934          { ac_try='test -s conftest.$ac_objext'
8935   { (case "(($ac_try" in
8936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937   *) ac_try_echo=$ac_try;;
8938 esac
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940   (eval "$ac_try") 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); }; }; then
8944   gt_cv_c_wchar_t=yes
8945 else
8946   echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949         gt_cv_c_wchar_t=no
8950 fi
8951
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8955 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8956   if test $gt_cv_c_wchar_t = yes; then
8957
8958 cat >>confdefs.h <<\_ACEOF
8959 #define HAVE_WCHAR_T 1
8960 _ACEOF
8961
8962   fi
8963
8964
8965   { echo "$as_me:$LINENO: checking for wint_t" >&5
8966 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8967 if test "${gt_cv_c_wint_t+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970   cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h.  */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h.  */
8976 #include <wchar.h>
8977        wint_t foo = (wchar_t)'\0';
8978 int
8979 main ()
8980 {
8981
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext
8987 if { (ac_try="$ac_compile"
8988 case "(($ac_try" in
8989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990   *) ac_try_echo=$ac_try;;
8991 esac
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993   (eval "$ac_compile") 2>conftest.er1
8994   ac_status=$?
8995   grep -v '^ *+' conftest.er1 >conftest.err
8996   rm -f conftest.er1
8997   cat conftest.err >&5
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } &&
9000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9001   { (case "(($ac_try" in
9002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003   *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006   (eval "$ac_try") 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; } &&
9010          { ac_try='test -s conftest.$ac_objext'
9011   { (case "(($ac_try" in
9012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013   *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016   (eval "$ac_try") 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; }; then
9020   gt_cv_c_wint_t=yes
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025         gt_cv_c_wint_t=no
9026 fi
9027
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 fi
9030 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9031 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9032   if test $gt_cv_c_wint_t = yes; then
9033
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_WINT_T 1
9036 _ACEOF
9037
9038   fi
9039
9040
9041   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9042 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9043 if test "${gl_cv_header_inttypes_h+set}" = set; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h.  */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h.  */
9052 #include <sys/types.h>
9053 #include <inttypes.h>
9054 int
9055 main ()
9056 {
9057 uintmax_t i = (uintmax_t) -1;
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_compile") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9077   { (case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082   (eval "$ac_try") 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; } &&
9086          { ac_try='test -s conftest.$ac_objext'
9087   { (case "(($ac_try" in
9088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089   *) ac_try_echo=$ac_try;;
9090 esac
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092   (eval "$ac_try") 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   gl_cv_header_inttypes_h=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101         gl_cv_header_inttypes_h=no
9102 fi
9103
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 fi
9106 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9107 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9108   if test $gl_cv_header_inttypes_h = yes; then
9109
9110 cat >>confdefs.h <<_ACEOF
9111 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9112 _ACEOF
9113
9114   fi
9115
9116
9117   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9118 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9119 if test "${gl_cv_header_stdint_h+set}" = set; then
9120   echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122   cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128 #include <sys/types.h>
9129 #include <stdint.h>
9130 int
9131 main ()
9132 {
9133 uintmax_t i = (uintmax_t) -1;
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 rm -f conftest.$ac_objext
9139 if { (ac_try="$ac_compile"
9140 case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_compile") 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153   { (case "(($ac_try" in
9154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155   *) ac_try_echo=$ac_try;;
9156 esac
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158   (eval "$ac_try") 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; } &&
9162          { ac_try='test -s conftest.$ac_objext'
9163   { (case "(($ac_try" in
9164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165   *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168   (eval "$ac_try") 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   gl_cv_header_stdint_h=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177         gl_cv_header_stdint_h=no
9178 fi
9179
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9181 fi
9182 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9183 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9184   if test $gl_cv_header_stdint_h = yes; then
9185
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_STDINT_H_WITH_UINTMAX 1
9188 _ACEOF
9189
9190   fi
9191
9192
9193
9194
9195   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9196 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9197 if test "${gt_cv_c_intmax_t+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h.  */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h.  */
9206
9207 #include <stddef.h>
9208 #include <stdlib.h>
9209 #if HAVE_STDINT_H_WITH_UINTMAX
9210 #include <stdint.h>
9211 #endif
9212 #if HAVE_INTTYPES_H_WITH_UINTMAX
9213 #include <inttypes.h>
9214 #endif
9215
9216 int
9217 main ()
9218 {
9219 intmax_t x = -1;
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext
9225 if { (ac_try="$ac_compile"
9226 case "(($ac_try" in
9227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228   *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231   (eval "$ac_compile") 2>conftest.er1
9232   ac_status=$?
9233   grep -v '^ *+' conftest.er1 >conftest.err
9234   rm -f conftest.er1
9235   cat conftest.err >&5
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } &&
9238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9239   { (case "(($ac_try" in
9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241   *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244   (eval "$ac_try") 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; } &&
9248          { ac_try='test -s conftest.$ac_objext'
9249   { (case "(($ac_try" in
9250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251   *) ac_try_echo=$ac_try;;
9252 esac
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254   (eval "$ac_try") 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   gt_cv_c_intmax_t=yes
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263         gt_cv_c_intmax_t=no
9264 fi
9265
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267 fi
9268 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9269 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9270   if test $gt_cv_c_intmax_t = yes; then
9271
9272 cat >>confdefs.h <<\_ACEOF
9273 #define HAVE_INTMAX_T 1
9274 _ACEOF
9275
9276   fi
9277
9278
9279
9280   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9281 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9282 if test "${gt_cv_func_printf_posix+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285
9286       if test "$cross_compiling" = yes; then
9287
9288         cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h.  */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h.  */
9294
9295 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9296   notposix
9297 #endif
9298
9299 _ACEOF
9300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9301   $EGREP "notposix" >/dev/null 2>&1; then
9302   gt_cv_func_printf_posix="guessing no"
9303 else
9304   gt_cv_func_printf_posix="guessing yes"
9305 fi
9306 rm -f conftest*
9307
9308
9309 else
9310   cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316
9317 #include <stdio.h>
9318 #include <string.h>
9319 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9320    dollar expansion (possibly an autoconf bug).  */
9321 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9322 static char buf[100];
9323 int main ()
9324 {
9325   sprintf (buf, format, 33, 55);
9326   return (strcmp (buf, "55 33") != 0);
9327 }
9328 _ACEOF
9329 rm -f conftest$ac_exeext
9330 if { (ac_try="$ac_link"
9331 case "(($ac_try" in
9332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333   *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336   (eval "$ac_link") 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9340   { (case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_try") 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   gt_cv_func_printf_posix=yes
9350 else
9351   echo "$as_me: program exited with status $ac_status" >&5
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355 ( exit $ac_status )
9356 gt_cv_func_printf_posix=no
9357 fi
9358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9359 fi
9360
9361
9362
9363 fi
9364 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9365 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9366   case $gt_cv_func_printf_posix in
9367     *yes)
9368
9369 cat >>confdefs.h <<\_ACEOF
9370 #define HAVE_POSIX_PRINTF 1
9371 _ACEOF
9372
9373       ;;
9374   esac
9375
9376 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9377 # for constant arguments.  Useless!
9378 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9379 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9380 if test "${ac_cv_working_alloca_h+set}" = set; then
9381   echo $ECHO_N "(cached) $ECHO_C" >&6
9382 else
9383   cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h.  */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h.  */
9389 #include <alloca.h>
9390 int
9391 main ()
9392 {
9393 char *p = (char *) alloca (2 * sizeof (int));
9394                           if (p) return 0;
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (ac_try="$ac_link"
9401 case "(($ac_try" in
9402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403   *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406   (eval "$ac_link") 2>conftest.er1
9407   ac_status=$?
9408   grep -v '^ *+' conftest.er1 >conftest.err
9409   rm -f conftest.er1
9410   cat conftest.err >&5
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9414   { (case "(($ac_try" in
9415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416   *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419   (eval "$ac_try") 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); }; } &&
9423          { ac_try='test -s conftest$ac_exeext'
9424   { (case "(($ac_try" in
9425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426   *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429   (eval "$ac_try") 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; }; then
9433   ac_cv_working_alloca_h=yes
9434 else
9435   echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438         ac_cv_working_alloca_h=no
9439 fi
9440
9441 rm -f core conftest.err conftest.$ac_objext \
9442       conftest$ac_exeext conftest.$ac_ext
9443 fi
9444 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9445 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9446 if test $ac_cv_working_alloca_h = yes; then
9447
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_ALLOCA_H 1
9450 _ACEOF
9451
9452 fi
9453
9454 { echo "$as_me:$LINENO: checking for alloca" >&5
9455 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9456 if test "${ac_cv_func_alloca_works+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459   cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h.  */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h.  */
9465 #ifdef __GNUC__
9466 # define alloca __builtin_alloca
9467 #else
9468 # ifdef _MSC_VER
9469 #  include <malloc.h>
9470 #  define alloca _alloca
9471 # else
9472 #  if HAVE_ALLOCA_H
9473 #   include <alloca.h>
9474 #  else
9475 #   ifdef _AIX
9476  #pragma alloca
9477 #   else
9478 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9479 char *alloca ();
9480 #    endif
9481 #   endif
9482 #  endif
9483 # endif
9484 #endif
9485
9486 int
9487 main ()
9488 {
9489 char *p = (char *) alloca (1);
9490                                     if (p) return 0;
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9497 case "(($ac_try" in
9498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499   *) ac_try_echo=$ac_try;;
9500 esac
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502   (eval "$ac_link") 2>conftest.er1
9503   ac_status=$?
9504   grep -v '^ *+' conftest.er1 >conftest.err
9505   rm -f conftest.er1
9506   cat conftest.err >&5
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } &&
9509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510   { (case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_try") 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); }; } &&
9519          { ac_try='test -s conftest$ac_exeext'
9520   { (case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525   (eval "$ac_try") 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }; }; then
9529   ac_cv_func_alloca_works=yes
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534         ac_cv_func_alloca_works=no
9535 fi
9536
9537 rm -f core conftest.err conftest.$ac_objext \
9538       conftest$ac_exeext conftest.$ac_ext
9539 fi
9540 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9541 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9542
9543 if test $ac_cv_func_alloca_works = yes; then
9544
9545 cat >>confdefs.h <<\_ACEOF
9546 #define HAVE_ALLOCA 1
9547 _ACEOF
9548
9549 else
9550   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9551 # that cause trouble.  Some versions do not even contain alloca or
9552 # contain a buggy version.  If you still want to use their alloca,
9553 # use ar to extract alloca.o from them instead of compiling alloca.c.
9554
9555 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define C_ALLOCA 1
9559 _ACEOF
9560
9561
9562 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9563 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9564 if test "${ac_cv_os_cray+set}" = set; then
9565   echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567   cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 #if defined CRAY && ! defined CRAY2
9574 webecray
9575 #else
9576 wenotbecray
9577 #endif
9578
9579 _ACEOF
9580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9581   $EGREP "webecray" >/dev/null 2>&1; then
9582   ac_cv_os_cray=yes
9583 else
9584   ac_cv_os_cray=no
9585 fi
9586 rm -f conftest*
9587
9588 fi
9589 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9590 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9591 if test $ac_cv_os_cray = yes; then
9592   for ac_func in _getb67 GETB67 getb67; do
9593     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9597   echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599   cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9607 #define $ac_func innocuous_$ac_func
9608
9609 /* System header to define __stub macros and hopefully few prototypes,
9610     which can conflict with char $ac_func (); below.
9611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612     <limits.h> exists even on freestanding compilers.  */
9613
9614 #ifdef __STDC__
9615 # include <limits.h>
9616 #else
9617 # include <assert.h>
9618 #endif
9619
9620 #undef $ac_func
9621
9622 /* Override any GCC internal prototype to avoid an error.
9623    Use char because int might match the return type of a GCC
9624    builtin and then its argument prototype would still apply.  */
9625 #ifdef __cplusplus
9626 extern "C"
9627 #endif
9628 char $ac_func ();
9629 /* The GNU C library defines this for functions which it implements
9630     to always fail with ENOSYS.  Some functions are actually named
9631     something starting with __ and the normal name is an alias.  */
9632 #if defined __stub_$ac_func || defined __stub___$ac_func
9633 choke me
9634 #endif
9635
9636 int
9637 main ()
9638 {
9639 return $ac_func ();
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9646 case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651   (eval "$ac_link") 2>conftest.er1
9652   ac_status=$?
9653   grep -v '^ *+' conftest.er1 >conftest.err
9654   rm -f conftest.er1
9655   cat conftest.err >&5
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } &&
9658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659   { (case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_try") 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_try") 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   eval "$as_ac_var=yes"
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683         eval "$as_ac_var=no"
9684 fi
9685
9686 rm -f core conftest.err conftest.$ac_objext \
9687       conftest$ac_exeext conftest.$ac_ext
9688 fi
9689 ac_res=`eval echo '${'$as_ac_var'}'`
9690                { echo "$as_me:$LINENO: result: $ac_res" >&5
9691 echo "${ECHO_T}$ac_res" >&6; }
9692 if test `eval echo '${'$as_ac_var'}'` = yes; then
9693
9694 cat >>confdefs.h <<_ACEOF
9695 #define CRAY_STACKSEG_END $ac_func
9696 _ACEOF
9697
9698     break
9699 fi
9700
9701   done
9702 fi
9703
9704 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9705 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9706 if test "${ac_cv_c_stack_direction+set}" = set; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709   if test "$cross_compiling" = yes; then
9710   ac_cv_c_stack_direction=0
9711 else
9712   cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h.  */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h.  */
9718 $ac_includes_default
9719 int
9720 find_stack_direction ()
9721 {
9722   static char *addr = 0;
9723   auto char dummy;
9724   if (addr == 0)
9725     {
9726       addr = &dummy;
9727       return find_stack_direction ();
9728     }
9729   else
9730     return (&dummy > addr) ? 1 : -1;
9731 }
9732
9733 int
9734 main ()
9735 {
9736   return find_stack_direction () < 0;
9737 }
9738 _ACEOF
9739 rm -f conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9741 case "(($ac_try" in
9742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743   *) ac_try_echo=$ac_try;;
9744 esac
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746   (eval "$ac_link") 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9750   { (case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_try") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; }; then
9759   ac_cv_c_stack_direction=1
9760 else
9761   echo "$as_me: program exited with status $ac_status" >&5
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 ( exit $ac_status )
9766 ac_cv_c_stack_direction=-1
9767 fi
9768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9769 fi
9770
9771
9772 fi
9773 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9774 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9775
9776 cat >>confdefs.h <<_ACEOF
9777 #define STACK_DIRECTION $ac_cv_c_stack_direction
9778 _ACEOF
9779
9780
9781 fi
9782
9783
9784
9785 for ac_header in stdlib.h unistd.h
9786 do
9787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9789   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 fi
9794 ac_res=`eval echo '${'$as_ac_Header'}'`
9795                { echo "$as_me:$LINENO: result: $ac_res" >&5
9796 echo "${ECHO_T}$ac_res" >&6; }
9797 else
9798   # Is the header compilable?
9799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h.  */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h.  */
9807 $ac_includes_default
9808 #include <$ac_header>
9809 _ACEOF
9810 rm -f conftest.$ac_objext
9811 if { (ac_try="$ac_compile"
9812 case "(($ac_try" in
9813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814   *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817   (eval "$ac_compile") 2>conftest.er1
9818   ac_status=$?
9819   grep -v '^ *+' conftest.er1 >conftest.err
9820   rm -f conftest.er1
9821   cat conftest.err >&5
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } &&
9824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9825   { (case "(($ac_try" in
9826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827   *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830   (eval "$ac_try") 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; } &&
9834          { ac_try='test -s conftest.$ac_objext'
9835   { (case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_try") 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ac_header_compiler=yes
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849         ac_header_compiler=no
9850 fi
9851
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9854 echo "${ECHO_T}$ac_header_compiler" >&6; }
9855
9856 # Is the header present?
9857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h.  */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h.  */
9865 #include <$ac_header>
9866 _ACEOF
9867 if { (ac_try="$ac_cpp conftest.$ac_ext"
9868 case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } >/dev/null; then
9880   if test -s conftest.err; then
9881     ac_cpp_err=$ac_c_preproc_warn_flag
9882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9883   else
9884     ac_cpp_err=
9885   fi
9886 else
9887   ac_cpp_err=yes
9888 fi
9889 if test -z "$ac_cpp_err"; then
9890   ac_header_preproc=yes
9891 else
9892   echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895   ac_header_preproc=no
9896 fi
9897
9898 rm -f conftest.err conftest.$ac_ext
9899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9900 echo "${ECHO_T}$ac_header_preproc" >&6; }
9901
9902 # So?  What about this header?
9903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9904   yes:no: )
9905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9909     ac_header_preproc=yes
9910     ;;
9911   no:yes:* )
9912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9924
9925     ;;
9926 esac
9927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   eval "$as_ac_Header=\$ac_header_preproc"
9933 fi
9934 ac_res=`eval echo '${'$as_ac_Header'}'`
9935                { echo "$as_me:$LINENO: result: $ac_res" >&5
9936 echo "${ECHO_T}$ac_res" >&6; }
9937
9938 fi
9939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9940   cat >>confdefs.h <<_ACEOF
9941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9942 _ACEOF
9943
9944 fi
9945
9946 done
9947
9948
9949 for ac_func in getpagesize
9950 do
9951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h.  */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h.  */
9963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9965 #define $ac_func innocuous_$ac_func
9966
9967 /* System header to define __stub macros and hopefully few prototypes,
9968     which can conflict with char $ac_func (); below.
9969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970     <limits.h> exists even on freestanding compilers.  */
9971
9972 #ifdef __STDC__
9973 # include <limits.h>
9974 #else
9975 # include <assert.h>
9976 #endif
9977
9978 #undef $ac_func
9979
9980 /* Override any GCC internal prototype to avoid an error.
9981    Use char because int might match the return type of a GCC
9982    builtin and then its argument prototype would still apply.  */
9983 #ifdef __cplusplus
9984 extern "C"
9985 #endif
9986 char $ac_func ();
9987 /* The GNU C library defines this for functions which it implements
9988     to always fail with ENOSYS.  Some functions are actually named
9989     something starting with __ and the normal name is an alias.  */
9990 #if defined __stub_$ac_func || defined __stub___$ac_func
9991 choke me
9992 #endif
9993
9994 int
9995 main ()
9996 {
9997 return $ac_func ();
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_link") 2>conftest.er1
10010   ac_status=$?
10011   grep -v '^ *+' conftest.er1 >conftest.err
10012   rm -f conftest.er1
10013   cat conftest.err >&5
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } &&
10016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10017   { (case "(($ac_try" in
10018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019   *) ac_try_echo=$ac_try;;
10020 esac
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022   (eval "$ac_try") 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; } &&
10026          { ac_try='test -s conftest$ac_exeext'
10027   { (case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_try") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   eval "$as_ac_var=yes"
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041         eval "$as_ac_var=no"
10042 fi
10043
10044 rm -f core conftest.err conftest.$ac_objext \
10045       conftest$ac_exeext conftest.$ac_ext
10046 fi
10047 ac_res=`eval echo '${'$as_ac_var'}'`
10048                { echo "$as_me:$LINENO: result: $ac_res" >&5
10049 echo "${ECHO_T}$ac_res" >&6; }
10050 if test `eval echo '${'$as_ac_var'}'` = yes; then
10051   cat >>confdefs.h <<_ACEOF
10052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10053 _ACEOF
10054
10055 fi
10056 done
10057
10058 { echo "$as_me:$LINENO: checking for working mmap" >&5
10059 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10060 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10061   echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063   if test "$cross_compiling" = yes; then
10064   ac_cv_func_mmap_fixed_mapped=no
10065 else
10066   cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h.  */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h.  */
10072 $ac_includes_default
10073 /* malloc might have been renamed as rpl_malloc. */
10074 #undef malloc
10075
10076 /* Thanks to Mike Haertel and Jim Avera for this test.
10077    Here is a matrix of mmap possibilities:
10078         mmap private not fixed
10079         mmap private fixed at somewhere currently unmapped
10080         mmap private fixed at somewhere already mapped
10081         mmap shared not fixed
10082         mmap shared fixed at somewhere currently unmapped
10083         mmap shared fixed at somewhere already mapped
10084    For private mappings, we should verify that changes cannot be read()
10085    back from the file, nor mmap's back from the file at a different
10086    address.  (There have been systems where private was not correctly
10087    implemented like the infamous i386 svr4.0, and systems where the
10088    VM page cache was not coherent with the file system buffer cache
10089    like early versions of FreeBSD and possibly contemporary NetBSD.)
10090    For shared mappings, we should conversely verify that changes get
10091    propagated back to all the places they're supposed to be.
10092
10093    Grep wants private fixed already mapped.
10094    The main things grep needs to know about mmap are:
10095    * does it exist and is it safe to write into the mmap'd area
10096    * how to use it (BSD variants)  */
10097
10098 #include <fcntl.h>
10099 #include <sys/mman.h>
10100
10101 #if !STDC_HEADERS && !HAVE_STDLIB_H
10102 char *malloc ();
10103 #endif
10104
10105 /* This mess was copied from the GNU getpagesize.h.  */
10106 #if !HAVE_GETPAGESIZE
10107 /* Assume that all systems that can run configure have sys/param.h.  */
10108 # if !HAVE_SYS_PARAM_H
10109 #  define HAVE_SYS_PARAM_H 1
10110 # endif
10111
10112 # ifdef _SC_PAGESIZE
10113 #  define getpagesize() sysconf(_SC_PAGESIZE)
10114 # else /* no _SC_PAGESIZE */
10115 #  if HAVE_SYS_PARAM_H
10116 #   include <sys/param.h>
10117 #   ifdef EXEC_PAGESIZE
10118 #    define getpagesize() EXEC_PAGESIZE
10119 #   else /* no EXEC_PAGESIZE */
10120 #    ifdef NBPG
10121 #     define getpagesize() NBPG * CLSIZE
10122 #     ifndef CLSIZE
10123 #      define CLSIZE 1
10124 #     endif /* no CLSIZE */
10125 #    else /* no NBPG */
10126 #     ifdef NBPC
10127 #      define getpagesize() NBPC
10128 #     else /* no NBPC */
10129 #      ifdef PAGESIZE
10130 #       define getpagesize() PAGESIZE
10131 #      endif /* PAGESIZE */
10132 #     endif /* no NBPC */
10133 #    endif /* no NBPG */
10134 #   endif /* no EXEC_PAGESIZE */
10135 #  else /* no HAVE_SYS_PARAM_H */
10136 #   define getpagesize() 8192   /* punt totally */
10137 #  endif /* no HAVE_SYS_PARAM_H */
10138 # endif /* no _SC_PAGESIZE */
10139
10140 #endif /* no HAVE_GETPAGESIZE */
10141
10142 int
10143 main ()
10144 {
10145   char *data, *data2, *data3;
10146   int i, pagesize;
10147   int fd;
10148
10149   pagesize = getpagesize ();
10150
10151   /* First, make a file with some known garbage in it. */
10152   data = (char *) malloc (pagesize);
10153   if (!data)
10154     return 1;
10155   for (i = 0; i < pagesize; ++i)
10156     *(data + i) = rand ();
10157   umask (0);
10158   fd = creat ("conftest.mmap", 0600);
10159   if (fd < 0)
10160     return 1;
10161   if (write (fd, data, pagesize) != pagesize)
10162     return 1;
10163   close (fd);
10164
10165   /* Next, try to mmap the file at a fixed address which already has
10166      something else allocated at it.  If we can, also make sure that
10167      we see the same garbage.  */
10168   fd = open ("conftest.mmap", O_RDWR);
10169   if (fd < 0)
10170     return 1;
10171   data2 = (char *) malloc (2 * pagesize);
10172   if (!data2)
10173     return 1;
10174   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10175   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10176                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10177     return 1;
10178   for (i = 0; i < pagesize; ++i)
10179     if (*(data + i) != *(data2 + i))
10180       return 1;
10181
10182   /* Finally, make sure that changes to the mapped area do not
10183      percolate back to the file as seen by read().  (This is a bug on
10184      some variants of i386 svr4.0.)  */
10185   for (i = 0; i < pagesize; ++i)
10186     *(data2 + i) = *(data2 + i) + 1;
10187   data3 = (char *) malloc (pagesize);
10188   if (!data3)
10189     return 1;
10190   if (read (fd, data3, pagesize) != pagesize)
10191     return 1;
10192   for (i = 0; i < pagesize; ++i)
10193     if (*(data + i) != *(data3 + i))
10194       return 1;
10195   close (fd);
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest$ac_exeext
10200 if { (ac_try="$ac_link"
10201 case "(($ac_try" in
10202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203   *) ac_try_echo=$ac_try;;
10204 esac
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206   (eval "$ac_link") 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10210   { (case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215   (eval "$ac_try") 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_func_mmap_fixed_mapped=yes
10220 else
10221   echo "$as_me: program exited with status $ac_status" >&5
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 ( exit $ac_status )
10226 ac_cv_func_mmap_fixed_mapped=no
10227 fi
10228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10229 fi
10230
10231
10232 fi
10233 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10234 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10235 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10236
10237 cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_MMAP 1
10239 _ACEOF
10240
10241 fi
10242 rm -f conftest.mmap
10243
10244
10245     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10246 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10247 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256
10257 #include <features.h>
10258 #ifdef __GNU_LIBRARY__
10259  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10260   Lucky GNU user
10261  #endif
10262 #endif
10263
10264 _ACEOF
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10267   ac_cv_gnu_library_2_1=yes
10268 else
10269   ac_cv_gnu_library_2_1=no
10270 fi
10271 rm -f conftest*
10272
10273
10274
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10277 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10278
10279     GLIBC21="$ac_cv_gnu_library_2_1"
10280
10281
10282
10283
10284   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10285 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10286 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289
10290       if test "$cross_compiling" = yes; then
10291
10292           # Guess based on the CPU.
10293           case "$host_cpu" in
10294             alpha* | i3456786 | m68k | s390*)
10295               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10296             *)
10297               gt_cv_int_divbyzero_sigfpe="guessing no";;
10298           esac
10299
10300 else
10301   cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h.  */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h.  */
10307
10308 #include <stdlib.h>
10309 #include <signal.h>
10310
10311 static void
10312 #ifdef __cplusplus
10313 sigfpe_handler (int sig)
10314 #else
10315 sigfpe_handler (sig) int sig;
10316 #endif
10317 {
10318   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10319   exit (sig != SIGFPE);
10320 }
10321
10322 int x = 1;
10323 int y = 0;
10324 int z;
10325 int nan;
10326
10327 int main ()
10328 {
10329   signal (SIGFPE, sigfpe_handler);
10330 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10331 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10332   signal (SIGTRAP, sigfpe_handler);
10333 #endif
10334 /* Linux/SPARC yields signal SIGILL.  */
10335 #if defined (__sparc__) && defined (__linux__)
10336   signal (SIGILL, sigfpe_handler);
10337 #endif
10338
10339   z = x / y;
10340   nan = y / y;
10341   exit (1);
10342 }
10343
10344 _ACEOF
10345 rm -f conftest$ac_exeext
10346 if { (ac_try="$ac_link"
10347 case "(($ac_try" in
10348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349   *) ac_try_echo=$ac_try;;
10350 esac
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352   (eval "$ac_link") 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10356   { (case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361   (eval "$ac_try") 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   gt_cv_int_divbyzero_sigfpe=yes
10366 else
10367   echo "$as_me: program exited with status $ac_status" >&5
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ( exit $ac_status )
10372 gt_cv_int_divbyzero_sigfpe=no
10373 fi
10374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10375 fi
10376
10377
10378
10379 fi
10380 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10381 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10382   case "$gt_cv_int_divbyzero_sigfpe" in
10383     *yes) value=1;;
10384     *) value=0;;
10385   esac
10386
10387 cat >>confdefs.h <<_ACEOF
10388 #define INTDIV0_RAISES_SIGFPE $value
10389 _ACEOF
10390
10391
10392
10393   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10394 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10395 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10396   echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398   cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404 unsigned long long ull = 1ULL; int i = 63;
10405 int
10406 main ()
10407 {
10408 unsigned long long ullmax = (unsigned long long) -1;
10409      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10410   ;
10411   return 0;
10412 }
10413 _ACEOF
10414 rm -f conftest.$ac_objext conftest$ac_exeext
10415 if { (ac_try="$ac_link"
10416 case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421   (eval "$ac_link") 2>conftest.er1
10422   ac_status=$?
10423   grep -v '^ *+' conftest.er1 >conftest.err
10424   rm -f conftest.er1
10425   cat conftest.err >&5
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); } &&
10428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10429   { (case "(($ac_try" in
10430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431   *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434   (eval "$ac_try") 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; } &&
10438          { ac_try='test -s conftest$ac_exeext'
10439   { (case "(($ac_try" in
10440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441   *) ac_try_echo=$ac_try;;
10442 esac
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444   (eval "$ac_try") 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); }; }; then
10448   ac_cv_type_unsigned_long_long=yes
10449 else
10450   echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453         ac_cv_type_unsigned_long_long=no
10454 fi
10455
10456 rm -f core conftest.err conftest.$ac_objext \
10457       conftest$ac_exeext conftest.$ac_ext
10458 fi
10459 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10460 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10461   if test $ac_cv_type_unsigned_long_long = yes; then
10462
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_UNSIGNED_LONG_LONG 1
10465 _ACEOF
10466
10467   fi
10468
10469
10470
10471
10472   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10473
10474     test $ac_cv_type_unsigned_long_long = yes \
10475       && ac_type='unsigned long long' \
10476       || ac_type='unsigned long'
10477
10478 cat >>confdefs.h <<_ACEOF
10479 #define uintmax_t $ac_type
10480 _ACEOF
10481
10482   else
10483
10484 cat >>confdefs.h <<\_ACEOF
10485 #define HAVE_UINTMAX_T 1
10486 _ACEOF
10487
10488   fi
10489
10490
10491   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10492 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10493 if test "${gt_cv_header_inttypes_h+set}" = set; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496
10497     cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503 #include <sys/types.h>
10504 #include <inttypes.h>
10505 int
10506 main ()
10507 {
10508
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext
10514 if { (ac_try="$ac_compile"
10515 case "(($ac_try" in
10516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517   *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520   (eval "$ac_compile") 2>conftest.er1
10521   ac_status=$?
10522   grep -v '^ *+' conftest.er1 >conftest.err
10523   rm -f conftest.er1
10524   cat conftest.err >&5
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } &&
10527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528   { (case "(($ac_try" in
10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530   *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533   (eval "$ac_try") 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; } &&
10537          { ac_try='test -s conftest.$ac_objext'
10538   { (case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_try") 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); }; }; then
10547   gt_cv_header_inttypes_h=yes
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552         gt_cv_header_inttypes_h=no
10553 fi
10554
10555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556
10557 fi
10558 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10559 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10560   if test $gt_cv_header_inttypes_h = yes; then
10561
10562 cat >>confdefs.h <<_ACEOF
10563 #define HAVE_INTTYPES_H 1
10564 _ACEOF
10565
10566   fi
10567
10568
10569
10570   if test $gt_cv_header_inttypes_h = yes; then
10571     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10572 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10573 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10574   echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576
10577         cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583 #include <inttypes.h>
10584 #ifdef PRId32
10585 char *p = PRId32;
10586 #endif
10587
10588 int
10589 main ()
10590 {
10591
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600   *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603   (eval "$ac_compile") 2>conftest.er1
10604   ac_status=$?
10605   grep -v '^ *+' conftest.er1 >conftest.err
10606   rm -f conftest.er1
10607   cat conftest.err >&5
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } &&
10610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10611   { (case "(($ac_try" in
10612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613   *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616   (eval "$ac_try") 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; } &&
10620          { ac_try='test -s conftest.$ac_objext'
10621   { (case "(($ac_try" in
10622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623   *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626   (eval "$ac_try") 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); }; }; then
10630   gt_cv_inttypes_pri_broken=no
10631 else
10632   echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635         gt_cv_inttypes_pri_broken=yes
10636 fi
10637
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639
10640 fi
10641 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10642 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10643   fi
10644   if test "$gt_cv_inttypes_pri_broken" = yes; then
10645
10646 cat >>confdefs.h <<_ACEOF
10647 #define PRI_MACROS_BROKEN 1
10648 _ACEOF
10649
10650   fi
10651
10652
10653
10654 for ac_header in stdint.h
10655 do
10656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 fi
10663 ac_res=`eval echo '${'$as_ac_Header'}'`
10664                { echo "$as_me:$LINENO: result: $ac_res" >&5
10665 echo "${ECHO_T}$ac_res" >&6; }
10666 else
10667   # Is the header compilable?
10668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676 $ac_includes_default
10677 #include <$ac_header>
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (ac_try="$ac_compile"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_compile") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } &&
10693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10694   { (case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_try") 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; } &&
10703          { ac_try='test -s conftest.$ac_objext'
10704   { (case "(($ac_try" in
10705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706   *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709   (eval "$ac_try") 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; }; then
10713   ac_header_compiler=yes
10714 else
10715   echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718         ac_header_compiler=no
10719 fi
10720
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6; }
10724
10725 # Is the header present?
10726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 #include <$ac_header>
10735 _ACEOF
10736 if { (ac_try="$ac_cpp conftest.$ac_ext"
10737 case "(($ac_try" in
10738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739   *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743   ac_status=$?
10744   grep -v '^ *+' conftest.er1 >conftest.err
10745   rm -f conftest.er1
10746   cat conftest.err >&5
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); } >/dev/null; then
10749   if test -s conftest.err; then
10750     ac_cpp_err=$ac_c_preproc_warn_flag
10751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10752   else
10753     ac_cpp_err=
10754   fi
10755 else
10756   ac_cpp_err=yes
10757 fi
10758 if test -z "$ac_cpp_err"; then
10759   ac_header_preproc=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764   ac_header_preproc=no
10765 fi
10766
10767 rm -f conftest.err conftest.$ac_ext
10768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6; }
10770
10771 # So?  What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10773   yes:no: )
10774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778     ac_header_preproc=yes
10779     ;;
10780   no:yes:* )
10781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10793
10794     ;;
10795 esac
10796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801   eval "$as_ac_Header=\$ac_header_preproc"
10802 fi
10803 ac_res=`eval echo '${'$as_ac_Header'}'`
10804                { echo "$as_me:$LINENO: result: $ac_res" >&5
10805 echo "${ECHO_T}$ac_res" >&6; }
10806
10807 fi
10808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10809   cat >>confdefs.h <<_ACEOF
10810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10811 _ACEOF
10812
10813 fi
10814
10815 done
10816
10817     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10818 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10819   result=
10820   cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h.  */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h.  */
10826
10827 #include <limits.h>
10828 #if HAVE_STDINT_H
10829 #include <stdint.h>
10830 #endif
10831 #ifdef SIZE_MAX
10832 Found it
10833 #endif
10834
10835 _ACEOF
10836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10837   $EGREP "Found it" >/dev/null 2>&1; then
10838   result=yes
10839 fi
10840 rm -f conftest*
10841
10842   if test -z "$result"; then
10843                     if test "$cross_compiling" = yes; then
10844   # Depending upon the size, compute the lo and hi bounds.
10845 cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 #include <stddef.h>
10852 int
10853 main ()
10854 {
10855 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10856 test_array [0] = 0
10857
10858   ;
10859   return 0;
10860 }
10861 _ACEOF
10862 rm -f conftest.$ac_objext
10863 if { (ac_try="$ac_compile"
10864 case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_compile") 2>conftest.er1
10870   ac_status=$?
10871   grep -v '^ *+' conftest.er1 >conftest.err
10872   rm -f conftest.er1
10873   cat conftest.err >&5
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } &&
10876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10877   { (case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882   (eval "$ac_try") 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; } &&
10886          { ac_try='test -s conftest.$ac_objext'
10887   { (case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_try") 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; }; then
10896   ac_lo=0 ac_mid=0
10897   while :; do
10898     cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 #include <stddef.h>
10905 int
10906 main ()
10907 {
10908 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10909 test_array [0] = 0
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (ac_try="$ac_compile"
10917 case "(($ac_try" in
10918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919   *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922   (eval "$ac_compile") 2>conftest.er1
10923   ac_status=$?
10924   grep -v '^ *+' conftest.er1 >conftest.err
10925   rm -f conftest.er1
10926   cat conftest.err >&5
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } &&
10929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10930   { (case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935   (eval "$ac_try") 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); }; } &&
10939          { ac_try='test -s conftest.$ac_objext'
10940   { (case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945   (eval "$ac_try") 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; }; then
10949   ac_hi=$ac_mid; break
10950 else
10951   echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10953
10954         ac_lo=`expr $ac_mid + 1`
10955                         if test $ac_lo -le $ac_mid; then
10956                           ac_lo= ac_hi=
10957                           break
10958                         fi
10959                         ac_mid=`expr 2 '*' $ac_mid + 1`
10960 fi
10961
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963   done
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968         cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974 #include <stddef.h>
10975 int
10976 main ()
10977 {
10978 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10979 test_array [0] = 0
10980
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_compile") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000   { (case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_try") 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; } &&
11009          { ac_try='test -s conftest.$ac_objext'
11010   { (case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_try") 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_hi=-1 ac_mid=-1
11020   while :; do
11021     cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 #include <stddef.h>
11028 int
11029 main ()
11030 {
11031 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11032 test_array [0] = 0
11033
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext
11039 if { (ac_try="$ac_compile"
11040 case "(($ac_try" in
11041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042   *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045   (eval "$ac_compile") 2>conftest.er1
11046   ac_status=$?
11047   grep -v '^ *+' conftest.er1 >conftest.err
11048   rm -f conftest.er1
11049   cat conftest.err >&5
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } &&
11052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053   { (case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_try") 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; } &&
11062          { ac_try='test -s conftest.$ac_objext'
11063   { (case "(($ac_try" in
11064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065   *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068   (eval "$ac_try") 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; }; then
11072   ac_lo=$ac_mid; break
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077         ac_hi=`expr '(' $ac_mid ')' - 1`
11078                         if test $ac_mid -le $ac_hi; then
11079                           ac_lo= ac_hi=
11080                           break
11081                         fi
11082                         ac_mid=`expr 2 '*' $ac_mid`
11083 fi
11084
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086   done
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091         ac_lo= ac_hi=
11092 fi
11093
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 # Binary search between lo and hi bounds.
11099 while test "x$ac_lo" != "x$ac_hi"; do
11100   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11101   cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 #include <stddef.h>
11108 int
11109 main ()
11110 {
11111 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11112 test_array [0] = 0
11113
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 rm -f conftest.$ac_objext
11119 if { (ac_try="$ac_compile"
11120 case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_compile") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133   { (case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_try") 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; } &&
11142          { ac_try='test -s conftest.$ac_objext'
11143   { (case "(($ac_try" in
11144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145   *) ac_try_echo=$ac_try;;
11146 esac
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148   (eval "$ac_try") 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   ac_hi=$ac_mid
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157         ac_lo=`expr '(' $ac_mid ')' + 1`
11158 fi
11159
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 done
11162 case $ac_lo in
11163 ?*) res_hi=$ac_lo;;
11164 '') result=? ;;
11165 esac
11166 else
11167   cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 #include <stddef.h>
11174 static long int longval () { return ~(size_t)0 / 10; }
11175 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11176 #include <stdio.h>
11177 #include <stdlib.h>
11178 int
11179 main ()
11180 {
11181
11182   FILE *f = fopen ("conftest.val", "w");
11183   if (! f)
11184     return 1;
11185   if ((~(size_t)0 / 10) < 0)
11186     {
11187       long int i = longval ();
11188       if (i != (~(size_t)0 / 10))
11189         return 1;
11190       fprintf (f, "%ld\n", i);
11191     }
11192   else
11193     {
11194       unsigned long int i = ulongval ();
11195       if (i != (~(size_t)0 / 10))
11196         return 1;
11197       fprintf (f, "%lu\n", i);
11198     }
11199   return ferror (f) || fclose (f) != 0;
11200
11201   ;
11202   return 0;
11203 }
11204 _ACEOF
11205 rm -f conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209   *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212   (eval "$ac_link") 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11216   { (case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_try") 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; }; then
11225   res_hi=`cat conftest.val`
11226 else
11227   echo "$as_me: program exited with status $ac_status" >&5
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 ( exit $ac_status )
11232 result=?
11233 fi
11234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11235 fi
11236 rm -f conftest.val
11237     if test "$cross_compiling" = yes; then
11238   # Depending upon the size, compute the lo and hi bounds.
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h.  */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h.  */
11245 #include <stddef.h>
11246 int
11247 main ()
11248 {
11249 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11250 test_array [0] = 0
11251
11252   ;
11253   return 0;
11254 }
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (ac_try="$ac_compile"
11258 case "(($ac_try" in
11259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260   *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263   (eval "$ac_compile") 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11271   { (case "(($ac_try" in
11272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273   *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276   (eval "$ac_try") 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; } &&
11280          { ac_try='test -s conftest.$ac_objext'
11281   { (case "(($ac_try" in
11282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283   *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286   (eval "$ac_try") 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   ac_lo=0 ac_mid=0
11291   while :; do
11292     cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h.  */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h.  */
11298 #include <stddef.h>
11299 int
11300 main ()
11301 {
11302 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11303 test_array [0] = 0
11304
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 rm -f conftest.$ac_objext
11310 if { (ac_try="$ac_compile"
11311 case "(($ac_try" in
11312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313   *) ac_try_echo=$ac_try;;
11314 esac
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316   (eval "$ac_compile") 2>conftest.er1
11317   ac_status=$?
11318   grep -v '^ *+' conftest.er1 >conftest.err
11319   rm -f conftest.er1
11320   cat conftest.err >&5
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } &&
11323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324   { (case "(($ac_try" in
11325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326   *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329   (eval "$ac_try") 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; } &&
11333          { ac_try='test -s conftest.$ac_objext'
11334   { (case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_try") 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; }; then
11343   ac_hi=$ac_mid; break
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348         ac_lo=`expr $ac_mid + 1`
11349                         if test $ac_lo -le $ac_mid; then
11350                           ac_lo= ac_hi=
11351                           break
11352                         fi
11353                         ac_mid=`expr 2 '*' $ac_mid + 1`
11354 fi
11355
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357   done
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362         cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h.  */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h.  */
11368 #include <stddef.h>
11369 int
11370 main ()
11371 {
11372 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11373 test_array [0] = 0
11374
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (ac_try="$ac_compile"
11381 case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_compile") 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } &&
11393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11394   { (case "(($ac_try" in
11395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396   *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399   (eval "$ac_try") 2>&5
11400   ac_status=$?
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); }; } &&
11403          { ac_try='test -s conftest.$ac_objext'
11404   { (case "(($ac_try" in
11405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406   *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409   (eval "$ac_try") 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   ac_hi=-1 ac_mid=-1
11414   while :; do
11415     cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 #include <stddef.h>
11422 int
11423 main ()
11424 {
11425 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11426 test_array [0] = 0
11427
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (ac_try="$ac_compile"
11434 case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_compile") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447   { (case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_try") 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; } &&
11456          { ac_try='test -s conftest.$ac_objext'
11457   { (case "(($ac_try" in
11458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459   *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462   (eval "$ac_try") 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; }; then
11466   ac_lo=$ac_mid; break
11467 else
11468   echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11470
11471         ac_hi=`expr '(' $ac_mid ')' - 1`
11472                         if test $ac_mid -le $ac_hi; then
11473                           ac_lo= ac_hi=
11474                           break
11475                         fi
11476                         ac_mid=`expr 2 '*' $ac_mid`
11477 fi
11478
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480   done
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485         ac_lo= ac_hi=
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11492 # Binary search between lo and hi bounds.
11493 while test "x$ac_lo" != "x$ac_hi"; do
11494   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11495   cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <stddef.h>
11502 int
11503 main ()
11504 {
11505 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11506 test_array [0] = 0
11507
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (ac_try="$ac_compile"
11514 case "(($ac_try" in
11515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516   *) ac_try_echo=$ac_try;;
11517 esac
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519   (eval "$ac_compile") 2>conftest.er1
11520   ac_status=$?
11521   grep -v '^ *+' conftest.er1 >conftest.err
11522   rm -f conftest.er1
11523   cat conftest.err >&5
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } &&
11526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11527   { (case "(($ac_try" in
11528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529   *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532   (eval "$ac_try") 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; } &&
11536          { ac_try='test -s conftest.$ac_objext'
11537   { (case "(($ac_try" in
11538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539   *) ac_try_echo=$ac_try;;
11540 esac
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542   (eval "$ac_try") 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); }; }; then
11546   ac_hi=$ac_mid
11547 else
11548   echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11550
11551         ac_lo=`expr '(' $ac_mid ')' + 1`
11552 fi
11553
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 done
11556 case $ac_lo in
11557 ?*) res_lo=$ac_lo;;
11558 '') result=? ;;
11559 esac
11560 else
11561   cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 #include <stddef.h>
11568 static long int longval () { return ~(size_t)0 % 10; }
11569 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11570 #include <stdio.h>
11571 #include <stdlib.h>
11572 int
11573 main ()
11574 {
11575
11576   FILE *f = fopen ("conftest.val", "w");
11577   if (! f)
11578     return 1;
11579   if ((~(size_t)0 % 10) < 0)
11580     {
11581       long int i = longval ();
11582       if (i != (~(size_t)0 % 10))
11583         return 1;
11584       fprintf (f, "%ld\n", i);
11585     }
11586   else
11587     {
11588       unsigned long int i = ulongval ();
11589       if (i != (~(size_t)0 % 10))
11590         return 1;
11591       fprintf (f, "%lu\n", i);
11592     }
11593   return ferror (f) || fclose (f) != 0;
11594
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest$ac_exeext
11600 if { (ac_try="$ac_link"
11601 case "(($ac_try" in
11602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603   *) ac_try_echo=$ac_try;;
11604 esac
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606   (eval "$ac_link") 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11610   { (case "(($ac_try" in
11611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612   *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615   (eval "$ac_try") 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; }; then
11619   res_lo=`cat conftest.val`
11620 else
11621   echo "$as_me: program exited with status $ac_status" >&5
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625 ( exit $ac_status )
11626 result=?
11627 fi
11628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11629 fi
11630 rm -f conftest.val
11631     if test "$cross_compiling" = yes; then
11632   # Depending upon the size, compute the lo and hi bounds.
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h.  */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h.  */
11639 #include <stddef.h>
11640 int
11641 main ()
11642 {
11643 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11644 test_array [0] = 0
11645
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 rm -f conftest.$ac_objext
11651 if { (ac_try="$ac_compile"
11652 case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_compile") 2>conftest.er1
11658   ac_status=$?
11659   grep -v '^ *+' conftest.er1 >conftest.err
11660   rm -f conftest.er1
11661   cat conftest.err >&5
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } &&
11664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665   { (case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_try") 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; } &&
11674          { ac_try='test -s conftest.$ac_objext'
11675   { (case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_try") 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   ac_lo=0 ac_mid=0
11685   while :; do
11686     cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 #include <stddef.h>
11693 int
11694 main ()
11695 {
11696 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11697 test_array [0] = 0
11698
11699   ;
11700   return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext
11704 if { (ac_try="$ac_compile"
11705 case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_compile") 2>conftest.er1
11711   ac_status=$?
11712   grep -v '^ *+' conftest.er1 >conftest.err
11713   rm -f conftest.er1
11714   cat conftest.err >&5
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); } &&
11717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718   { (case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_try") 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); }; } &&
11727          { ac_try='test -s conftest.$ac_objext'
11728   { (case "(($ac_try" in
11729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730   *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733   (eval "$ac_try") 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; }; then
11737   ac_hi=$ac_mid; break
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742         ac_lo=`expr $ac_mid + 1`
11743                         if test $ac_lo -le $ac_mid; then
11744                           ac_lo= ac_hi=
11745                           break
11746                         fi
11747                         ac_mid=`expr 2 '*' $ac_mid + 1`
11748 fi
11749
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751   done
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756         cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762 #include <stddef.h>
11763 int
11764 main ()
11765 {
11766 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11767 test_array [0] = 0
11768
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780   (eval "$ac_compile") 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788   { (case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793   (eval "$ac_try") 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; } &&
11797          { ac_try='test -s conftest.$ac_objext'
11798   { (case "(($ac_try" in
11799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800   *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803   (eval "$ac_try") 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   ac_hi=-1 ac_mid=-1
11808   while :; do
11809     cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 #include <stddef.h>
11816 int
11817 main ()
11818 {
11819 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11820 test_array [0] = 0
11821
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830   *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833   (eval "$ac_compile") 2>conftest.er1
11834   ac_status=$?
11835   grep -v '^ *+' conftest.er1 >conftest.err
11836   rm -f conftest.er1
11837   cat conftest.err >&5
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } &&
11840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841   { (case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_try") 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; } &&
11850          { ac_try='test -s conftest.$ac_objext'
11851   { (case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_try") 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; }; then
11860   ac_lo=$ac_mid; break
11861 else
11862   echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865         ac_hi=`expr '(' $ac_mid ')' - 1`
11866                         if test $ac_mid -le $ac_hi; then
11867                           ac_lo= ac_hi=
11868                           break
11869                         fi
11870                         ac_mid=`expr 2 '*' $ac_mid`
11871 fi
11872
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874   done
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879         ac_lo= ac_hi=
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 # Binary search between lo and hi bounds.
11887 while test "x$ac_lo" != "x$ac_hi"; do
11888   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11889   cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h.  */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h.  */
11895 #include <stddef.h>
11896 int
11897 main ()
11898 {
11899 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11900 test_array [0] = 0
11901
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910   *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913   (eval "$ac_compile") 2>conftest.er1
11914   ac_status=$?
11915   grep -v '^ *+' conftest.er1 >conftest.err
11916   rm -f conftest.er1
11917   cat conftest.err >&5
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); } &&
11920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11921   { (case "(($ac_try" in
11922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923   *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926   (eval "$ac_try") 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; } &&
11930          { ac_try='test -s conftest.$ac_objext'
11931   { (case "(($ac_try" in
11932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933   *) ac_try_echo=$ac_try;;
11934 esac
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936   (eval "$ac_try") 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); }; }; then
11940   ac_hi=$ac_mid
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945         ac_lo=`expr '(' $ac_mid ')' + 1`
11946 fi
11947
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 done
11950 case $ac_lo in
11951 ?*) fits_in_uint=$ac_lo;;
11952 '') result=? ;;
11953 esac
11954 else
11955   cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961 #include <stddef.h>
11962 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11963 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11964 #include <stdio.h>
11965 #include <stdlib.h>
11966 int
11967 main ()
11968 {
11969
11970   FILE *f = fopen ("conftest.val", "w");
11971   if (! f)
11972     return 1;
11973   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11974     {
11975       long int i = longval ();
11976       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11977         return 1;
11978       fprintf (f, "%ld\n", i);
11979     }
11980   else
11981     {
11982       unsigned long int i = ulongval ();
11983       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11984         return 1;
11985       fprintf (f, "%lu\n", i);
11986     }
11987   return ferror (f) || fclose (f) != 0;
11988
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_link") 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12004   { (case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009   (eval "$ac_try") 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; }; then
12013   fits_in_uint=`cat conftest.val`
12014 else
12015   echo "$as_me: program exited with status $ac_status" >&5
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ( exit $ac_status )
12020 result=?
12021 fi
12022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12023 fi
12024 rm -f conftest.val
12025     if test "$fits_in_uint" = 1; then
12026                   cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032 #include <stddef.h>
12033         extern size_t foo;
12034         extern unsigned long foo;
12035
12036 int
12037 main ()
12038 {
12039
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051   (eval "$ac_compile") 2>conftest.er1
12052   ac_status=$?
12053   grep -v '^ *+' conftest.er1 >conftest.err
12054   rm -f conftest.er1
12055   cat conftest.err >&5
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } &&
12058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12059   { (case "(($ac_try" in
12060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061   *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064   (eval "$ac_try") 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; } &&
12068          { ac_try='test -s conftest.$ac_objext'
12069   { (case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_try") 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   fits_in_uint=0
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083
12084 fi
12085
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087     fi
12088     if test -z "$result"; then
12089       if test "$fits_in_uint" = 1; then
12090         result="$res_hi$res_lo"U
12091       else
12092         result="$res_hi$res_lo"UL
12093       fi
12094     else
12095             result='~(size_t)0'
12096     fi
12097   fi
12098   { echo "$as_me:$LINENO: result: $result" >&5
12099 echo "${ECHO_T}$result" >&6; }
12100   if test "$result" != yes; then
12101
12102 cat >>confdefs.h <<_ACEOF
12103 #define SIZE_MAX $result
12104 _ACEOF
12105
12106   fi
12107
12108
12109
12110
12111
12112 for ac_header in stdint.h
12113 do
12114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119   echo $ECHO_N "(cached) $ECHO_C" >&6
12120 fi
12121 ac_res=`eval echo '${'$as_ac_Header'}'`
12122                { echo "$as_me:$LINENO: result: $ac_res" >&5
12123 echo "${ECHO_T}$ac_res" >&6; }
12124 else
12125   # Is the header compilable?
12126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 $ac_includes_default
12135 #include <$ac_header>
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (ac_try="$ac_compile"
12139 case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_compile") 2>conftest.er1
12145   ac_status=$?
12146   grep -v '^ *+' conftest.er1 >conftest.err
12147   rm -f conftest.er1
12148   cat conftest.err >&5
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } &&
12151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12152   { (case "(($ac_try" in
12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154   *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157   (eval "$ac_try") 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); }; } &&
12161          { ac_try='test -s conftest.$ac_objext'
12162   { (case "(($ac_try" in
12163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164   *) ac_try_echo=$ac_try;;
12165 esac
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167   (eval "$ac_try") 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; }; then
12171   ac_header_compiler=yes
12172 else
12173   echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176         ac_header_compiler=no
12177 fi
12178
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12181 echo "${ECHO_T}$ac_header_compiler" >&6; }
12182
12183 # Is the header present?
12184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h.  */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h.  */
12192 #include <$ac_header>
12193 _ACEOF
12194 if { (ac_try="$ac_cpp conftest.$ac_ext"
12195 case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } >/dev/null; then
12207   if test -s conftest.err; then
12208     ac_cpp_err=$ac_c_preproc_warn_flag
12209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12210   else
12211     ac_cpp_err=
12212   fi
12213 else
12214   ac_cpp_err=yes
12215 fi
12216 if test -z "$ac_cpp_err"; then
12217   ac_header_preproc=yes
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222   ac_header_preproc=no
12223 fi
12224
12225 rm -f conftest.err conftest.$ac_ext
12226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227 echo "${ECHO_T}$ac_header_preproc" >&6; }
12228
12229 # So?  What about this header?
12230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231   yes:no: )
12232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12236     ac_header_preproc=yes
12237     ;;
12238   no:yes:* )
12239     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12242 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12245     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12246 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12249     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12251
12252     ;;
12253 esac
12254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   eval "$as_ac_Header=\$ac_header_preproc"
12260 fi
12261 ac_res=`eval echo '${'$as_ac_Header'}'`
12262                { echo "$as_me:$LINENO: result: $ac_res" >&5
12263 echo "${ECHO_T}$ac_res" >&6; }
12264
12265 fi
12266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12267   cat >>confdefs.h <<_ACEOF
12268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12269 _ACEOF
12270
12271 fi
12272
12273 done
12274
12275
12276
12277
12278
12279
12280
12281
12282   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12283 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12284 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293 $ac_includes_default
12294 typedef ptrdiff_t ac__type_new_;
12295 int
12296 main ()
12297 {
12298 if ((ac__type_new_ *) 0)
12299   return 0;
12300 if (sizeof (ac__type_new_))
12301   return 0;
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 rm -f conftest.$ac_objext
12307 if { (ac_try="$ac_compile"
12308 case "(($ac_try" in
12309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310   *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313   (eval "$ac_compile") 2>conftest.er1
12314   ac_status=$?
12315   grep -v '^ *+' conftest.er1 >conftest.err
12316   rm -f conftest.er1
12317   cat conftest.err >&5
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } &&
12320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12321   { (case "(($ac_try" in
12322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323   *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326   (eval "$ac_try") 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; } &&
12330          { ac_try='test -s conftest.$ac_objext'
12331   { (case "(($ac_try" in
12332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333   *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336   (eval "$ac_try") 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); }; }; then
12340   ac_cv_type_ptrdiff_t=yes
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345         ac_cv_type_ptrdiff_t=no
12346 fi
12347
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 fi
12350 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12351 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12352 if test $ac_cv_type_ptrdiff_t = yes; then
12353   :
12354 else
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define ptrdiff_t long
12358 _ACEOF
12359
12360
12361 fi
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12374 stdlib.h string.h unistd.h sys/param.h
12375 do
12376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12378   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 fi
12383 ac_res=`eval echo '${'$as_ac_Header'}'`
12384                { echo "$as_me:$LINENO: result: $ac_res" >&5
12385 echo "${ECHO_T}$ac_res" >&6; }
12386 else
12387   # Is the header compilable?
12388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 $ac_includes_default
12397 #include <$ac_header>
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (ac_try="$ac_compile"
12401 case "(($ac_try" in
12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403   *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406   (eval "$ac_compile") 2>conftest.er1
12407   ac_status=$?
12408   grep -v '^ *+' conftest.er1 >conftest.err
12409   rm -f conftest.er1
12410   cat conftest.err >&5
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } &&
12413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12414   { (case "(($ac_try" in
12415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416   *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419   (eval "$ac_try") 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; } &&
12423          { ac_try='test -s conftest.$ac_objext'
12424   { (case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_try") 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   ac_header_compiler=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438         ac_header_compiler=no
12439 fi
12440
12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12443 echo "${ECHO_T}$ac_header_compiler" >&6; }
12444
12445 # Is the header present?
12446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454 #include <$ac_header>
12455 _ACEOF
12456 if { (ac_try="$ac_cpp conftest.$ac_ext"
12457 case "(($ac_try" in
12458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459   *) ac_try_echo=$ac_try;;
12460 esac
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12463   ac_status=$?
12464   grep -v '^ *+' conftest.er1 >conftest.err
12465   rm -f conftest.er1
12466   cat conftest.err >&5
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } >/dev/null; then
12469   if test -s conftest.err; then
12470     ac_cpp_err=$ac_c_preproc_warn_flag
12471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12472   else
12473     ac_cpp_err=
12474   fi
12475 else
12476   ac_cpp_err=yes
12477 fi
12478 if test -z "$ac_cpp_err"; then
12479   ac_header_preproc=yes
12480 else
12481   echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484   ac_header_preproc=no
12485 fi
12486
12487 rm -f conftest.err conftest.$ac_ext
12488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12489 echo "${ECHO_T}$ac_header_preproc" >&6; }
12490
12491 # So?  What about this header?
12492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12493   yes:no: )
12494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12498     ac_header_preproc=yes
12499     ;;
12500   no:yes:* )
12501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12513
12514     ;;
12515 esac
12516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   eval "$as_ac_Header=\$ac_header_preproc"
12522 fi
12523 ac_res=`eval echo '${'$as_ac_Header'}'`
12524                { echo "$as_me:$LINENO: result: $ac_res" >&5
12525 echo "${ECHO_T}$ac_res" >&6; }
12526
12527 fi
12528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12529   cat >>confdefs.h <<_ACEOF
12530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12531 _ACEOF
12532
12533 fi
12534
12535 done
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12561 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12562 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12563 __fsetlocking
12564 do
12565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12569   echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571   cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12579 #define $ac_func innocuous_$ac_func
12580
12581 /* System header to define __stub macros and hopefully few prototypes,
12582     which can conflict with char $ac_func (); below.
12583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584     <limits.h> exists even on freestanding compilers.  */
12585
12586 #ifdef __STDC__
12587 # include <limits.h>
12588 #else
12589 # include <assert.h>
12590 #endif
12591
12592 #undef $ac_func
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595    Use char because int might match the return type of a GCC
12596    builtin and then its argument prototype would still apply.  */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char $ac_func ();
12601 /* The GNU C library defines this for functions which it implements
12602     to always fail with ENOSYS.  Some functions are actually named
12603     something starting with __ and the normal name is an alias.  */
12604 #if defined __stub_$ac_func || defined __stub___$ac_func
12605 choke me
12606 #endif
12607
12608 int
12609 main ()
12610 {
12611 return $ac_func ();
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_link") 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } &&
12630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631   { (case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest$ac_exeext'
12641   { (case "(($ac_try" in
12642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643   *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646   (eval "$ac_try") 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; }; then
12650   eval "$as_ac_var=yes"
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655         eval "$as_ac_var=no"
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext \
12659       conftest$ac_exeext conftest.$ac_ext
12660 fi
12661 ac_res=`eval echo '${'$as_ac_var'}'`
12662                { echo "$as_me:$LINENO: result: $ac_res" >&5
12663 echo "${ECHO_T}$ac_res" >&6; }
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665   cat >>confdefs.h <<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 _ACEOF
12668
12669 fi
12670 done
12671
12672
12673
12674   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12675 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12676 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12677   echo $ECHO_N "(cached) $ECHO_C" >&6
12678 else
12679   cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h.  */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h.  */
12685 #include <stdio.h>
12686 int
12687 main ()
12688 {
12689
12690 #ifndef _snprintf
12691   char *p = (char *) _snprintf;
12692 #endif
12693
12694   ;
12695   return 0;
12696 }
12697 _ACEOF
12698 rm -f conftest.$ac_objext
12699 if { (ac_try="$ac_compile"
12700 case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_compile") 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } &&
12712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12713   { (case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_try") 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; } &&
12722          { ac_try='test -s conftest.$ac_objext'
12723   { (case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_try") 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; }; then
12732   ac_cv_have_decl__snprintf=yes
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737         ac_cv_have_decl__snprintf=no
12738 fi
12739
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 fi
12742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12743 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12744   if test $ac_cv_have_decl__snprintf = yes; then
12745     gt_value=1
12746   else
12747     gt_value=0
12748   fi
12749
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_DECL__SNPRINTF $gt_value
12752 _ACEOF
12753
12754
12755
12756   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12757 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12758 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767 #include <stdio.h>
12768 int
12769 main ()
12770 {
12771
12772 #ifndef _snwprintf
12773   char *p = (char *) _snwprintf;
12774 #endif
12775
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_compile") 2>conftest.er1
12788   ac_status=$?
12789   grep -v '^ *+' conftest.er1 >conftest.err
12790   rm -f conftest.er1
12791   cat conftest.err >&5
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } &&
12794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795   { (case "(($ac_try" in
12796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797   *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800   (eval "$ac_try") 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); }; } &&
12804          { ac_try='test -s conftest.$ac_objext'
12805   { (case "(($ac_try" in
12806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807   *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810   (eval "$ac_try") 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814   ac_cv_have_decl__snwprintf=yes
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819         ac_cv_have_decl__snwprintf=no
12820 fi
12821
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 fi
12824 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12825 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12826   if test $ac_cv_have_decl__snwprintf = yes; then
12827     gt_value=1
12828   else
12829     gt_value=0
12830   fi
12831
12832 cat >>confdefs.h <<_ACEOF
12833 #define HAVE_DECL__SNWPRINTF $gt_value
12834 _ACEOF
12835
12836
12837
12838
12839   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12840 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12841 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844   cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 #include <stdio.h>
12851 int
12852 main ()
12853 {
12854
12855 #ifndef feof_unlocked
12856   char *p = (char *) feof_unlocked;
12857 #endif
12858
12859   ;
12860   return 0;
12861 }
12862 _ACEOF
12863 rm -f conftest.$ac_objext
12864 if { (ac_try="$ac_compile"
12865 case "(($ac_try" in
12866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867   *) ac_try_echo=$ac_try;;
12868 esac
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870   (eval "$ac_compile") 2>conftest.er1
12871   ac_status=$?
12872   grep -v '^ *+' conftest.er1 >conftest.err
12873   rm -f conftest.er1
12874   cat conftest.err >&5
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } &&
12877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12878   { (case "(($ac_try" in
12879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880   *) ac_try_echo=$ac_try;;
12881 esac
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883   (eval "$ac_try") 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); }; } &&
12887          { ac_try='test -s conftest.$ac_objext'
12888   { (case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893   (eval "$ac_try") 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); }; }; then
12897   ac_cv_have_decl_feof_unlocked=yes
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902         ac_cv_have_decl_feof_unlocked=no
12903 fi
12904
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 fi
12907 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12908 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12909   if test $ac_cv_have_decl_feof_unlocked = yes; then
12910     gt_value=1
12911   else
12912     gt_value=0
12913   fi
12914
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12917 _ACEOF
12918
12919
12920
12921   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12922 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12923 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12924   echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926   cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h.  */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h.  */
12932 #include <stdio.h>
12933 int
12934 main ()
12935 {
12936
12937 #ifndef fgets_unlocked
12938   char *p = (char *) fgets_unlocked;
12939 #endif
12940
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (ac_try="$ac_compile"
12947 case "(($ac_try" in
12948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949   *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952   (eval "$ac_compile") 2>conftest.er1
12953   ac_status=$?
12954   grep -v '^ *+' conftest.er1 >conftest.err
12955   rm -f conftest.er1
12956   cat conftest.err >&5
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); } &&
12959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12960   { (case "(($ac_try" in
12961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962   *) ac_try_echo=$ac_try;;
12963 esac
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965   (eval "$ac_try") 2>&5
12966   ac_status=$?
12967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); }; } &&
12969          { ac_try='test -s conftest.$ac_objext'
12970   { (case "(($ac_try" in
12971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972   *) ac_try_echo=$ac_try;;
12973 esac
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975   (eval "$ac_try") 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; }; then
12979   ac_cv_have_decl_fgets_unlocked=yes
12980 else
12981   echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12983
12984         ac_cv_have_decl_fgets_unlocked=no
12985 fi
12986
12987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 fi
12989 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12990 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12991   if test $ac_cv_have_decl_fgets_unlocked = yes; then
12992     gt_value=1
12993   else
12994     gt_value=0
12995   fi
12996
12997 cat >>confdefs.h <<_ACEOF
12998 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12999 _ACEOF
13000
13001
13002
13003   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13004 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13005 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13006   echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008   cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 #include <stdio.h>
13015 int
13016 main ()
13017 {
13018
13019 #ifndef getc_unlocked
13020   char *p = (char *) getc_unlocked;
13021 #endif
13022
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 rm -f conftest.$ac_objext
13028 if { (ac_try="$ac_compile"
13029 case "(($ac_try" in
13030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031   *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034   (eval "$ac_compile") 2>conftest.er1
13035   ac_status=$?
13036   grep -v '^ *+' conftest.er1 >conftest.err
13037   rm -f conftest.er1
13038   cat conftest.err >&5
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } &&
13041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13042   { (case "(($ac_try" in
13043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044   *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047   (eval "$ac_try") 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; } &&
13051          { ac_try='test -s conftest.$ac_objext'
13052   { (case "(($ac_try" in
13053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054   *) ac_try_echo=$ac_try;;
13055 esac
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057   (eval "$ac_try") 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); }; }; then
13061   ac_cv_have_decl_getc_unlocked=yes
13062 else
13063   echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066         ac_cv_have_decl_getc_unlocked=no
13067 fi
13068
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13070 fi
13071 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13072 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13073   if test $ac_cv_have_decl_getc_unlocked = yes; then
13074     gt_value=1
13075   else
13076     gt_value=0
13077   fi
13078
13079 cat >>confdefs.h <<_ACEOF
13080 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13081 _ACEOF
13082
13083
13084
13085   case $gt_cv_func_printf_posix in
13086     *yes) HAVE_POSIX_PRINTF=1 ;;
13087     *) HAVE_POSIX_PRINTF=0 ;;
13088   esac
13089
13090   if test "$ac_cv_func_asprintf" = yes; then
13091     HAVE_ASPRINTF=1
13092   else
13093     HAVE_ASPRINTF=0
13094   fi
13095
13096   if test "$ac_cv_func_snprintf" = yes; then
13097     HAVE_SNPRINTF=1
13098   else
13099     HAVE_SNPRINTF=0
13100   fi
13101
13102   if test "$ac_cv_func_wprintf" = yes; then
13103     HAVE_WPRINTF=1
13104   else
13105     HAVE_WPRINTF=0
13106   fi
13107
13108
13109
13110
13111
13112
13113
13114           am_save_CPPFLAGS="$CPPFLAGS"
13115
13116   for element in $INCICONV; do
13117     haveit=
13118     for x in $CPPFLAGS; do
13119
13120   acl_save_prefix="$prefix"
13121   prefix="$acl_final_prefix"
13122   acl_save_exec_prefix="$exec_prefix"
13123   exec_prefix="$acl_final_exec_prefix"
13124   eval x=\"$x\"
13125   exec_prefix="$acl_save_exec_prefix"
13126   prefix="$acl_save_prefix"
13127
13128       if test "X$x" = "X$element"; then
13129         haveit=yes
13130         break
13131       fi
13132     done
13133     if test -z "$haveit"; then
13134       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13135     fi
13136   done
13137
13138
13139   { echo "$as_me:$LINENO: checking for iconv" >&5
13140 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13141 if test "${am_cv_func_iconv+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144
13145     am_cv_func_iconv="no, consider installing GNU libiconv"
13146     am_cv_lib_iconv=no
13147     cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 #include <stdlib.h>
13154 #include <iconv.h>
13155 int
13156 main ()
13157 {
13158 iconv_t cd = iconv_open("","");
13159        iconv(cd,NULL,NULL,NULL,NULL);
13160        iconv_close(cd);
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_link") 2>conftest.er1
13173   ac_status=$?
13174   grep -v '^ *+' conftest.er1 >conftest.err
13175   rm -f conftest.er1
13176   cat conftest.err >&5
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } &&
13179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180   { (case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_try") 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; } &&
13189          { ac_try='test -s conftest$ac_exeext'
13190   { (case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_try") 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   am_cv_func_iconv=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext \
13208       conftest$ac_exeext conftest.$ac_ext
13209     if test "$am_cv_func_iconv" != yes; then
13210       am_save_LIBS="$LIBS"
13211       LIBS="$LIBS $LIBICONV"
13212       cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 #include <stdlib.h>
13219 #include <iconv.h>
13220 int
13221 main ()
13222 {
13223 iconv_t cd = iconv_open("","");
13224          iconv(cd,NULL,NULL,NULL,NULL);
13225          iconv_close(cd);
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_link") 2>conftest.er1
13238   ac_status=$?
13239   grep -v '^ *+' conftest.er1 >conftest.err
13240   rm -f conftest.er1
13241   cat conftest.err >&5
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } &&
13244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245   { (case "(($ac_try" in
13246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247   *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250   (eval "$ac_try") 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; } &&
13254          { ac_try='test -s conftest$ac_exeext'
13255   { (case "(($ac_try" in
13256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257   *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260   (eval "$ac_try") 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   am_cv_lib_iconv=yes
13265         am_cv_func_iconv=yes
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext \
13274       conftest$ac_exeext conftest.$ac_ext
13275       LIBS="$am_save_LIBS"
13276     fi
13277
13278 fi
13279 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13280 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13281   if test "$am_cv_func_iconv" = yes; then
13282
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_ICONV 1
13285 _ACEOF
13286
13287   fi
13288   if test "$am_cv_lib_iconv" = yes; then
13289     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13290 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13291     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13292 echo "${ECHO_T}$LIBICONV" >&6; }
13293   else
13294             CPPFLAGS="$am_save_CPPFLAGS"
13295     LIBICONV=
13296     LTLIBICONV=
13297   fi
13298
13299
13300
13301   if test "$am_cv_func_iconv" = yes; then
13302     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13303 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13304     if test "${am_cv_proto_iconv+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307
13308       cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h.  */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h.  */
13314
13315 #include <stdlib.h>
13316 #include <iconv.h>
13317 extern
13318 #ifdef __cplusplus
13319 "C"
13320 #endif
13321 #if defined(__STDC__) || defined(__cplusplus)
13322 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13323 #else
13324 size_t iconv();
13325 #endif
13326
13327 int
13328 main ()
13329 {
13330
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_compile") 2>conftest.er1
13343   ac_status=$?
13344   grep -v '^ *+' conftest.er1 >conftest.err
13345   rm -f conftest.er1
13346   cat conftest.err >&5
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } &&
13349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13350   { (case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_try") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; } &&
13359          { ac_try='test -s conftest.$ac_objext'
13360   { (case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365   (eval "$ac_try") 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); }; }; then
13369   am_cv_proto_iconv_arg1=""
13370 else
13371   echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13373
13374         am_cv_proto_iconv_arg1="const"
13375 fi
13376
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378       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);"
13379 fi
13380
13381     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13382     { echo "$as_me:$LINENO: result: ${ac_t:-
13383          }$am_cv_proto_iconv" >&5
13384 echo "${ECHO_T}${ac_t:-
13385          }$am_cv_proto_iconv" >&6; }
13386
13387 cat >>confdefs.h <<_ACEOF
13388 #define ICONV_CONST $am_cv_proto_iconv_arg1
13389 _ACEOF
13390
13391   fi
13392
13393
13394   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13395 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13396 if test "${am_cv_langinfo_codeset+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 #include <langinfo.h>
13406 int
13407 main ()
13408 {
13409 char* cs = nl_langinfo(CODESET);
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_link") 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13429   { (case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434   (eval "$ac_try") 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; } &&
13438          { ac_try='test -s conftest$ac_exeext'
13439   { (case "(($ac_try" in
13440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441   *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444   (eval "$ac_try") 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   am_cv_langinfo_codeset=yes
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453         am_cv_langinfo_codeset=no
13454 fi
13455
13456 rm -f core conftest.err conftest.$ac_objext \
13457       conftest$ac_exeext conftest.$ac_ext
13458
13459 fi
13460 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13461 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13462   if test $am_cv_langinfo_codeset = yes; then
13463
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_LANGINFO_CODESET 1
13466 _ACEOF
13467
13468   fi
13469
13470   if test $ac_cv_header_locale_h = yes; then
13471
13472   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13473 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13474 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h.  */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h.  */
13483 #include <locale.h>
13484 int
13485 main ()
13486 {
13487 return LC_MESSAGES
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_link") 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } &&
13506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507   { (case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_try") 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; } &&
13516          { ac_try='test -s conftest$ac_exeext'
13517   { (case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_try") 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; }; then
13526   gt_cv_val_LC_MESSAGES=yes
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531         gt_cv_val_LC_MESSAGES=no
13532 fi
13533
13534 rm -f core conftest.err conftest.$ac_objext \
13535       conftest$ac_exeext conftest.$ac_ext
13536 fi
13537 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13538 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13539   if test $gt_cv_val_LC_MESSAGES = yes; then
13540
13541 cat >>confdefs.h <<\_ACEOF
13542 #define HAVE_LC_MESSAGES 1
13543 _ACEOF
13544
13545   fi
13546
13547   fi
13548
13549   if test -n "$INTL_MACOSX_LIBS"; then
13550     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13551   fi
13552
13553                       for ac_prog in bison
13554 do
13555   # Extract the first word of "$ac_prog", so it can be a program name with args.
13556 set dummy $ac_prog; ac_word=$2
13557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13559 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13560   echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562   if test -n "$INTLBISON"; then
13563   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568   IFS=$as_save_IFS
13569   test -z "$as_dir" && as_dir=.
13570   for ac_exec_ext in '' $ac_executable_extensions; do
13571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13572     ac_cv_prog_INTLBISON="$ac_prog"
13573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13574     break 2
13575   fi
13576 done
13577 done
13578 IFS=$as_save_IFS
13579
13580 fi
13581 fi
13582 INTLBISON=$ac_cv_prog_INTLBISON
13583 if test -n "$INTLBISON"; then
13584   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13585 echo "${ECHO_T}$INTLBISON" >&6; }
13586 else
13587   { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13589 fi
13590
13591
13592   test -n "$INTLBISON" && break
13593 done
13594
13595   if test -z "$INTLBISON"; then
13596     ac_verc_fail=yes
13597   else
13598         { echo "$as_me:$LINENO: checking version of bison" >&5
13599 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13600     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13601     case $ac_prog_version in
13602       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13603       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13604          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13605       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13606     esac
13607     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13608 echo "${ECHO_T}$ac_prog_version" >&6; }
13609   fi
13610   if test $ac_verc_fail = yes; then
13611     INTLBISON=:
13612   fi
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13630 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13631 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   gt_save_CPPFLAGS="$CPPFLAGS"
13635      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13636      gt_save_LIBS="$LIBS"
13637      LIBS="$LIBS -framework CoreFoundation"
13638      cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <CFPreferences.h>
13645 int
13646 main ()
13647 {
13648 CFPreferencesCopyAppValue(NULL, NULL)
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 rm -f conftest.$ac_objext conftest$ac_exeext
13654 if { (ac_try="$ac_link"
13655 case "(($ac_try" in
13656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657   *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660   (eval "$ac_link") 2>conftest.er1
13661   ac_status=$?
13662   grep -v '^ *+' conftest.er1 >conftest.err
13663   rm -f conftest.er1
13664   cat conftest.err >&5
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); } &&
13667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13668   { (case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673   (eval "$ac_try") 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; } &&
13677          { ac_try='test -s conftest$ac_exeext'
13678   { (case "(($ac_try" in
13679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680   *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683   (eval "$ac_try") 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; }; then
13687   gt_cv_func_CFPreferencesCopyAppValue=yes
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692         gt_cv_func_CFPreferencesCopyAppValue=no
13693 fi
13694
13695 rm -f core conftest.err conftest.$ac_objext \
13696       conftest$ac_exeext conftest.$ac_ext
13697      CPPFLAGS="$gt_save_CPPFLAGS"
13698      LIBS="$gt_save_LIBS"
13699 fi
13700 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13701 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13702   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13703
13704 cat >>confdefs.h <<\_ACEOF
13705 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13706 _ACEOF
13707
13708   fi
13709     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13710 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13711 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13712   echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714   gt_save_CPPFLAGS="$CPPFLAGS"
13715      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13716      gt_save_LIBS="$LIBS"
13717      LIBS="$LIBS -framework CoreFoundation"
13718      cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724 #include <CFLocale.h>
13725 int
13726 main ()
13727 {
13728 CFLocaleCopyCurrent();
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (ac_try="$ac_link"
13735 case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_link") 2>conftest.er1
13741   ac_status=$?
13742   grep -v '^ *+' conftest.er1 >conftest.err
13743   rm -f conftest.er1
13744   cat conftest.err >&5
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } &&
13747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748   { (case "(($ac_try" in
13749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750   *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753   (eval "$ac_try") 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; } &&
13757          { ac_try='test -s conftest$ac_exeext'
13758   { (case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763   (eval "$ac_try") 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   gt_cv_func_CFLocaleCopyCurrent=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772         gt_cv_func_CFLocaleCopyCurrent=no
13773 fi
13774
13775 rm -f core conftest.err conftest.$ac_objext \
13776       conftest$ac_exeext conftest.$ac_ext
13777      CPPFLAGS="$gt_save_CPPFLAGS"
13778      LIBS="$gt_save_LIBS"
13779 fi
13780 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13781 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13782   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13783
13784 cat >>confdefs.h <<\_ACEOF
13785 #define HAVE_CFLOCALECOPYCURRENT 1
13786 _ACEOF
13787
13788   fi
13789   INTL_MACOSX_LIBS=
13790   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13791     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13792   fi
13793
13794
13795
13796
13797   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13798 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13799     # Check whether --enable-nls was given.
13800 if test "${enable_nls+set}" = set; then
13801   enableval=$enable_nls; USE_NLS=$enableval
13802 else
13803   USE_NLS=yes
13804 fi
13805
13806   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13807 echo "${ECHO_T}$USE_NLS" >&6; }
13808
13809
13810
13811
13812     BUILD_INCLUDED_LIBINTL=no
13813     USE_INCLUDED_LIBINTL=no
13814
13815   LIBINTL=
13816   LTLIBINTL=
13817   POSUB=
13818
13819     if test "$USE_NLS" = "yes"; then
13820     gt_use_preinstalled_gnugettext=no
13821
13822       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13823 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13824
13825 # Check whether --with-included-gettext was given.
13826 if test "${with_included_gettext+set}" = set; then
13827   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13828 else
13829   nls_cv_force_use_gnu_gettext=no
13830 fi
13831
13832       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13833 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13834
13835       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13836       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13837
13838
13839
13840
13841
13842
13843         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13844 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13845 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854 #include <libintl.h>
13855 extern int _nl_msg_cat_cntr;
13856 extern int *_nl_domain_bindings;
13857 int
13858 main ()
13859 {
13860 bindtextdomain ("", "");
13861 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13862   ;
13863   return 0;
13864 }
13865 _ACEOF
13866 rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (ac_try="$ac_link"
13868 case "(($ac_try" in
13869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870   *) ac_try_echo=$ac_try;;
13871 esac
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873   (eval "$ac_link") 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881   { (case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_try") 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; } &&
13890          { ac_try='test -s conftest$ac_exeext'
13891   { (case "(($ac_try" in
13892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893   *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896   (eval "$ac_try") 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   gt_cv_func_gnugettext1_libc=yes
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905         gt_cv_func_gnugettext1_libc=no
13906 fi
13907
13908 rm -f core conftest.err conftest.$ac_objext \
13909       conftest$ac_exeext conftest.$ac_ext
13910 fi
13911 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13912 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13913
13914         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13915
13916
13917
13918     use_additional=yes
13919
13920   acl_save_prefix="$prefix"
13921   prefix="$acl_final_prefix"
13922   acl_save_exec_prefix="$exec_prefix"
13923   exec_prefix="$acl_final_exec_prefix"
13924
13925     eval additional_includedir=\"$includedir\"
13926     eval additional_libdir=\"$libdir\"
13927
13928   exec_prefix="$acl_save_exec_prefix"
13929   prefix="$acl_save_prefix"
13930
13931
13932 # Check whether --with-libintl-prefix was given.
13933 if test "${with_libintl_prefix+set}" = set; then
13934   withval=$with_libintl_prefix;
13935     if test "X$withval" = "Xno"; then
13936       use_additional=no
13937     else
13938       if test "X$withval" = "X"; then
13939
13940   acl_save_prefix="$prefix"
13941   prefix="$acl_final_prefix"
13942   acl_save_exec_prefix="$exec_prefix"
13943   exec_prefix="$acl_final_exec_prefix"
13944
13945           eval additional_includedir=\"$includedir\"
13946           eval additional_libdir=\"$libdir\"
13947
13948   exec_prefix="$acl_save_exec_prefix"
13949   prefix="$acl_save_prefix"
13950
13951       else
13952         additional_includedir="$withval/include"
13953         additional_libdir="$withval/lib"
13954       fi
13955     fi
13956
13957 fi
13958
13959       LIBINTL=
13960   LTLIBINTL=
13961   INCINTL=
13962   rpathdirs=
13963   ltrpathdirs=
13964   names_already_handled=
13965   names_next_round='intl '
13966   while test -n "$names_next_round"; do
13967     names_this_round="$names_next_round"
13968     names_next_round=
13969     for name in $names_this_round; do
13970       already_handled=
13971       for n in $names_already_handled; do
13972         if test "$n" = "$name"; then
13973           already_handled=yes
13974           break
13975         fi
13976       done
13977       if test -z "$already_handled"; then
13978         names_already_handled="$names_already_handled $name"
13979                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13980         eval value=\"\$HAVE_LIB$uppername\"
13981         if test -n "$value"; then
13982           if test "$value" = yes; then
13983             eval value=\"\$LIB$uppername\"
13984             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13985             eval value=\"\$LTLIB$uppername\"
13986             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13987           else
13988                                     :
13989           fi
13990         else
13991                               found_dir=
13992           found_la=
13993           found_so=
13994           found_a=
13995           if test $use_additional = yes; then
13996             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13997               found_dir="$additional_libdir"
13998               found_so="$additional_libdir/lib$name.$shlibext"
13999               if test -f "$additional_libdir/lib$name.la"; then
14000                 found_la="$additional_libdir/lib$name.la"
14001               fi
14002             else
14003               if test -f "$additional_libdir/lib$name.$libext"; then
14004                 found_dir="$additional_libdir"
14005                 found_a="$additional_libdir/lib$name.$libext"
14006                 if test -f "$additional_libdir/lib$name.la"; then
14007                   found_la="$additional_libdir/lib$name.la"
14008                 fi
14009               fi
14010             fi
14011           fi
14012           if test "X$found_dir" = "X"; then
14013             for x in $LDFLAGS $LTLIBINTL; do
14014
14015   acl_save_prefix="$prefix"
14016   prefix="$acl_final_prefix"
14017   acl_save_exec_prefix="$exec_prefix"
14018   exec_prefix="$acl_final_exec_prefix"
14019   eval x=\"$x\"
14020   exec_prefix="$acl_save_exec_prefix"
14021   prefix="$acl_save_prefix"
14022
14023               case "$x" in
14024                 -L*)
14025                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14026                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14027                     found_dir="$dir"
14028                     found_so="$dir/lib$name.$shlibext"
14029                     if test -f "$dir/lib$name.la"; then
14030                       found_la="$dir/lib$name.la"
14031                     fi
14032                   else
14033                     if test -f "$dir/lib$name.$libext"; then
14034                       found_dir="$dir"
14035                       found_a="$dir/lib$name.$libext"
14036                       if test -f "$dir/lib$name.la"; then
14037                         found_la="$dir/lib$name.la"
14038                       fi
14039                     fi
14040                   fi
14041                   ;;
14042               esac
14043               if test "X$found_dir" != "X"; then
14044                 break
14045               fi
14046             done
14047           fi
14048           if test "X$found_dir" != "X"; then
14049                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14050             if test "X$found_so" != "X"; then
14051                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14052                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14053               else
14054                                                                                 haveit=
14055                 for x in $ltrpathdirs; do
14056                   if test "X$x" = "X$found_dir"; then
14057                     haveit=yes
14058                     break
14059                   fi
14060                 done
14061                 if test -z "$haveit"; then
14062                   ltrpathdirs="$ltrpathdirs $found_dir"
14063                 fi
14064                                 if test "$hardcode_direct" = yes; then
14065                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14066                 else
14067                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14068                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14069                                                             haveit=
14070                     for x in $rpathdirs; do
14071                       if test "X$x" = "X$found_dir"; then
14072                         haveit=yes
14073                         break
14074                       fi
14075                     done
14076                     if test -z "$haveit"; then
14077                       rpathdirs="$rpathdirs $found_dir"
14078                     fi
14079                   else
14080                                                                                 haveit=
14081                     for x in $LDFLAGS $LIBINTL; do
14082
14083   acl_save_prefix="$prefix"
14084   prefix="$acl_final_prefix"
14085   acl_save_exec_prefix="$exec_prefix"
14086   exec_prefix="$acl_final_exec_prefix"
14087   eval x=\"$x\"
14088   exec_prefix="$acl_save_exec_prefix"
14089   prefix="$acl_save_prefix"
14090
14091                       if test "X$x" = "X-L$found_dir"; then
14092                         haveit=yes
14093                         break
14094                       fi
14095                     done
14096                     if test -z "$haveit"; then
14097                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14098                     fi
14099                     if test "$hardcode_minus_L" != no; then
14100                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14101                     else
14102                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14103                     fi
14104                   fi
14105                 fi
14106               fi
14107             else
14108               if test "X$found_a" != "X"; then
14109                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14110               else
14111                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14112               fi
14113             fi
14114                         additional_includedir=
14115             case "$found_dir" in
14116               */lib | */lib/)
14117                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14118                 additional_includedir="$basedir/include"
14119                 ;;
14120             esac
14121             if test "X$additional_includedir" != "X"; then
14122                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14123                 haveit=
14124                 if test "X$additional_includedir" = "X/usr/local/include"; then
14125                   if test -n "$GCC"; then
14126                     case $host_os in
14127                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14128                     esac
14129                   fi
14130                 fi
14131                 if test -z "$haveit"; then
14132                   for x in $CPPFLAGS $INCINTL; do
14133
14134   acl_save_prefix="$prefix"
14135   prefix="$acl_final_prefix"
14136   acl_save_exec_prefix="$exec_prefix"
14137   exec_prefix="$acl_final_exec_prefix"
14138   eval x=\"$x\"
14139   exec_prefix="$acl_save_exec_prefix"
14140   prefix="$acl_save_prefix"
14141
14142                     if test "X$x" = "X-I$additional_includedir"; then
14143                       haveit=yes
14144                       break
14145                     fi
14146                   done
14147                   if test -z "$haveit"; then
14148                     if test -d "$additional_includedir"; then
14149                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14150                     fi
14151                   fi
14152                 fi
14153               fi
14154             fi
14155                         if test -n "$found_la"; then
14156                                                         save_libdir="$libdir"
14157               case "$found_la" in
14158                 */* | *\\*) . "$found_la" ;;
14159                 *) . "./$found_la" ;;
14160               esac
14161               libdir="$save_libdir"
14162                             for dep in $dependency_libs; do
14163                 case "$dep" in
14164                   -L*)
14165                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14166                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14167                       haveit=
14168                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14169                         if test -n "$GCC"; then
14170                           case $host_os in
14171                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14172                           esac
14173                         fi
14174                       fi
14175                       if test -z "$haveit"; then
14176                         haveit=
14177                         for x in $LDFLAGS $LIBINTL; do
14178
14179   acl_save_prefix="$prefix"
14180   prefix="$acl_final_prefix"
14181   acl_save_exec_prefix="$exec_prefix"
14182   exec_prefix="$acl_final_exec_prefix"
14183   eval x=\"$x\"
14184   exec_prefix="$acl_save_exec_prefix"
14185   prefix="$acl_save_prefix"
14186
14187                           if test "X$x" = "X-L$additional_libdir"; then
14188                             haveit=yes
14189                             break
14190                           fi
14191                         done
14192                         if test -z "$haveit"; then
14193                           if test -d "$additional_libdir"; then
14194                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14195                           fi
14196                         fi
14197                         haveit=
14198                         for x in $LDFLAGS $LTLIBINTL; do
14199
14200   acl_save_prefix="$prefix"
14201   prefix="$acl_final_prefix"
14202   acl_save_exec_prefix="$exec_prefix"
14203   exec_prefix="$acl_final_exec_prefix"
14204   eval x=\"$x\"
14205   exec_prefix="$acl_save_exec_prefix"
14206   prefix="$acl_save_prefix"
14207
14208                           if test "X$x" = "X-L$additional_libdir"; then
14209                             haveit=yes
14210                             break
14211                           fi
14212                         done
14213                         if test -z "$haveit"; then
14214                           if test -d "$additional_libdir"; then
14215                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14216                           fi
14217                         fi
14218                       fi
14219                     fi
14220                     ;;
14221                   -R*)
14222                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14223                     if test "$enable_rpath" != no; then
14224                                                                   haveit=
14225                       for x in $rpathdirs; do
14226                         if test "X$x" = "X$dir"; then
14227                           haveit=yes
14228                           break
14229                         fi
14230                       done
14231                       if test -z "$haveit"; then
14232                         rpathdirs="$rpathdirs $dir"
14233                       fi
14234                                                                   haveit=
14235                       for x in $ltrpathdirs; do
14236                         if test "X$x" = "X$dir"; then
14237                           haveit=yes
14238                           break
14239                         fi
14240                       done
14241                       if test -z "$haveit"; then
14242                         ltrpathdirs="$ltrpathdirs $dir"
14243                       fi
14244                     fi
14245                     ;;
14246                   -l*)
14247                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14248                     ;;
14249                   *.la)
14250                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14251                     ;;
14252                   *)
14253                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14254                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14255                     ;;
14256                 esac
14257               done
14258             fi
14259           else
14260                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14261             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14262           fi
14263         fi
14264       fi
14265     done
14266   done
14267   if test "X$rpathdirs" != "X"; then
14268     if test -n "$hardcode_libdir_separator"; then
14269                         alldirs=
14270       for found_dir in $rpathdirs; do
14271         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14272       done
14273             acl_save_libdir="$libdir"
14274       libdir="$alldirs"
14275       eval flag=\"$hardcode_libdir_flag_spec\"
14276       libdir="$acl_save_libdir"
14277       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14278     else
14279             for found_dir in $rpathdirs; do
14280         acl_save_libdir="$libdir"
14281         libdir="$found_dir"
14282         eval flag=\"$hardcode_libdir_flag_spec\"
14283         libdir="$acl_save_libdir"
14284         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14285       done
14286     fi
14287   fi
14288   if test "X$ltrpathdirs" != "X"; then
14289             for found_dir in $ltrpathdirs; do
14290       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14291     done
14292   fi
14293
14294           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14295 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14296 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14297   echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299   gt_save_CPPFLAGS="$CPPFLAGS"
14300             CPPFLAGS="$CPPFLAGS $INCINTL"
14301             gt_save_LIBS="$LIBS"
14302             LIBS="$LIBS $LIBINTL"
14303                         cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h.  */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h.  */
14309 #include <libintl.h>
14310 extern int _nl_msg_cat_cntr;
14311 extern
14312 #ifdef __cplusplus
14313 "C"
14314 #endif
14315 const char *_nl_expand_alias (const char *);
14316 int
14317 main ()
14318 {
14319 bindtextdomain ("", "");
14320 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_link") 2>conftest.er1
14333   ac_status=$?
14334   grep -v '^ *+' conftest.er1 >conftest.err
14335   rm -f conftest.er1
14336   cat conftest.err >&5
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } &&
14339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14340   { (case "(($ac_try" in
14341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342   *) ac_try_echo=$ac_try;;
14343 esac
14344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345   (eval "$ac_try") 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; } &&
14349          { ac_try='test -s conftest$ac_exeext'
14350   { (case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355   (eval "$ac_try") 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359   gt_cv_func_gnugettext1_libintl=yes
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364         gt_cv_func_gnugettext1_libintl=no
14365 fi
14366
14367 rm -f core conftest.err conftest.$ac_objext \
14368       conftest$ac_exeext conftest.$ac_ext
14369                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14370               LIBS="$LIBS $LIBICONV"
14371               cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377 #include <libintl.h>
14378 extern int _nl_msg_cat_cntr;
14379 extern
14380 #ifdef __cplusplus
14381 "C"
14382 #endif
14383 const char *_nl_expand_alias (const char *);
14384 int
14385 main ()
14386 {
14387 bindtextdomain ("", "");
14388 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_link") 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } &&
14407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14408   { (case "(($ac_try" in
14409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410   *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413   (eval "$ac_try") 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); }; } &&
14417          { ac_try='test -s conftest$ac_exeext'
14418   { (case "(($ac_try" in
14419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420   *) ac_try_echo=$ac_try;;
14421 esac
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423   (eval "$ac_try") 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); }; }; then
14427   LIBINTL="$LIBINTL $LIBICONV"
14428                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14429                 gt_cv_func_gnugettext1_libintl=yes
14430
14431 else
14432   echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435
14436 fi
14437
14438 rm -f core conftest.err conftest.$ac_objext \
14439       conftest$ac_exeext conftest.$ac_ext
14440             fi
14441             CPPFLAGS="$gt_save_CPPFLAGS"
14442             LIBS="$gt_save_LIBS"
14443 fi
14444 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14445 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14446         fi
14447
14448                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14449            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14450                 && test "$PACKAGE" != gettext-runtime \
14451                 && test "$PACKAGE" != gettext-tools; }; then
14452           gt_use_preinstalled_gnugettext=yes
14453         else
14454                     LIBINTL=
14455           LTLIBINTL=
14456           INCINTL=
14457         fi
14458
14459
14460         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14461                               nls_cv_use_gnu_gettext=yes
14462         fi
14463       fi
14464
14465       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14466                 BUILD_INCLUDED_LIBINTL=yes
14467         USE_INCLUDED_LIBINTL=yes
14468         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14469         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14470         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14471       fi
14472
14473       CATOBJEXT=
14474       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14475          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14476                 CATOBJEXT=.gmo
14477       fi
14478
14479
14480     if test -n "$INTL_MACOSX_LIBS"; then
14481       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14482          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14483                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14484         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14485       fi
14486     fi
14487
14488     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14489        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14490
14491 cat >>confdefs.h <<\_ACEOF
14492 #define ENABLE_NLS 1
14493 _ACEOF
14494
14495     else
14496       USE_NLS=no
14497     fi
14498   fi
14499
14500   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14501 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14502   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14503 echo "${ECHO_T}$USE_NLS" >&6; }
14504   if test "$USE_NLS" = "yes"; then
14505     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14506 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14507     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14508       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14509         gt_source="external libintl"
14510       else
14511         gt_source="libc"
14512       fi
14513     else
14514       gt_source="included intl directory"
14515     fi
14516     { echo "$as_me:$LINENO: result: $gt_source" >&5
14517 echo "${ECHO_T}$gt_source" >&6; }
14518   fi
14519
14520   if test "$USE_NLS" = "yes"; then
14521
14522     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14523       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14524         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14525 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14526         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14527 echo "${ECHO_T}$LIBINTL" >&6; }
14528
14529   for element in $INCINTL; do
14530     haveit=
14531     for x in $CPPFLAGS; do
14532
14533   acl_save_prefix="$prefix"
14534   prefix="$acl_final_prefix"
14535   acl_save_exec_prefix="$exec_prefix"
14536   exec_prefix="$acl_final_exec_prefix"
14537   eval x=\"$x\"
14538   exec_prefix="$acl_save_exec_prefix"
14539   prefix="$acl_save_prefix"
14540
14541       if test "X$x" = "X$element"; then
14542         haveit=yes
14543         break
14544       fi
14545     done
14546     if test -z "$haveit"; then
14547       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14548     fi
14549   done
14550
14551       fi
14552
14553
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_GETTEXT 1
14556 _ACEOF
14557
14558
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_DCGETTEXT 1
14561 _ACEOF
14562
14563     fi
14564
14565         POSUB=po
14566   fi
14567
14568
14569             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14570       BUILD_INCLUDED_LIBINTL=yes
14571     fi
14572
14573
14574
14575
14576
14577         nls_cv_header_intl=
14578     nls_cv_header_libgt=
14579
14580         DATADIRNAME=share
14581
14582
14583         INSTOBJEXT=.mo
14584
14585
14586         GENCAT=gencat
14587
14588
14589         INTLOBJS=
14590     if test "$USE_INCLUDED_LIBINTL" = yes; then
14591       INTLOBJS="\$(GETTOBJS)"
14592     fi
14593
14594
14595         INTL_LIBTOOL_SUFFIX_PREFIX=
14596
14597
14598
14599     INTLLIBS="$LIBINTL"
14600
14601
14602
14603
14604
14605
14606 fi
14607
14608
14609 support_mysql=no
14610 support_sqlite=no
14611 support_sqlite3=no
14612 support_postgresql=no
14613 support_smartalloc=yes
14614 support_readline=yes
14615 support_conio=yes
14616 support_gnome=no
14617 support_wx_console=no
14618 support_tls=no
14619 support_crypto=no
14620 gnome_version=
14621 wx_version=
14622 support_static_tools=no
14623 support_static_fd=no
14624 support_static_sd=no
14625 support_static_dir=no
14626 support_static_cons=no
14627 support_python=no
14628 build_client_only=no
14629 build_dird=yes
14630 build_stored=yes
14631 cats=
14632 db_name=Internal
14633 DB_NAME=bdb
14634
14635
14636 # -------------------------------------------
14637 # gnome (default off)
14638 # -------------------------------------------
14639 # Check whether --enable-gnome was given.
14640 if test "${enable_gnome+set}" = set; then
14641   enableval=$enable_gnome; if test x$enableval = xyes; then
14642     support_gnome=yes
14643   fi
14644 fi
14645
14646
14647 GNOME_DIR=
14648 if test x$support_gnome = xyes; then
14649   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14650   pkg=$?
14651   if test $pkg = 0; then
14652      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14653      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14654      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14655      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14656
14657
14658
14659
14660      GNOME_DIR=src/gnome2-console
14661      gnome_version="Version 2.x"
14662   else
14663      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14664 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14665    { (exit 1); exit 1; }; }
14666   fi
14667 fi
14668
14669
14670
14671 # -------------------------------------------
14672 # wx-console (default off)
14673 # -------------------------------------------
14674 # Check whether --enable-wx-console was given.
14675 if test "${enable_wx_console+set}" = set; then
14676   enableval=$enable_wx_console; if test x$enableval = xyes; then
14677     support_wx_console=yes
14678   fi
14679 fi
14680
14681
14682 WX_DIR=
14683 if test x$support_wx_console = xyes; then
14684   abc=`$WXCONFIG $WXFLAGS --cppflags`
14685   pkg=$?
14686   if test $pkg = 0; then
14687      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14688      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14689      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14690
14691
14692
14693      WX_DIR=src/wx-console
14694   else
14695      echo " "
14696      echo "wx-config program not found. wx-console disabled."
14697      echo " "
14698      support_wx_console=no
14699   fi
14700 fi
14701
14702
14703
14704 # -------------------------------------------
14705 # tray-monitor (default off)
14706 # -------------------------------------------
14707 # Check whether --enable-tray-monitor was given.
14708 if test "${enable_tray_monitor+set}" = set; then
14709   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14710     support_tray_monitor=yes
14711   fi
14712 fi
14713
14714
14715 TRAY_MONITOR_DIR=
14716 if test x$support_tray_monitor = xyes; then
14717   abc=`$PKGCONFIG --exists gtk+-2.0`
14718   pkg=$?
14719   if test $pkg = 0; then
14720      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14721      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14722
14723
14724      TRAY_MONITOR_DIR=src/tray-monitor
14725      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14726      pkg=$?
14727      if test $pkg = 0; then
14728      cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_GTK_2_4 1
14730 _ACEOF
14731
14732      fi
14733   fi
14734 fi
14735
14736
14737 # -------------------------------------------
14738 # smartalloc (default off)
14739 # -------------------------------------------
14740 # Check whether --enable-smartalloc was given.
14741 if test "${enable_smartalloc+set}" = set; then
14742   enableval=$enable_smartalloc; if test x$enableval = xno; then
14743     support_smartalloc=no
14744   fi
14745 fi
14746
14747
14748 if test x$support_smartalloc = xyes; then
14749    cat >>confdefs.h <<\_ACEOF
14750 #define SMARTALLOC 1
14751 _ACEOF
14752
14753 fi
14754
14755 # -------------------------------------------
14756 # static-tools (default off)
14757 # -------------------------------------------
14758 # Check whether --enable-static-tools was given.
14759 if test "${enable_static_tools+set}" = set; then
14760   enableval=$enable_static_tools; if test x$enableval = xyes; then
14761      support_static_tools=yes
14762    fi
14763 fi
14764
14765
14766 TTOOL_LDFLAGS=
14767 if test x$support_static_tools = xyes; then
14768    TTOOL_LDFLAGS="-static"
14769 fi
14770
14771
14772 # -------------------------------------------
14773 # static-fd    (default off)
14774 # -------------------------------------------
14775 # Check whether --enable-static-fd was given.
14776 if test "${enable_static_fd+set}" = set; then
14777   enableval=$enable_static_fd; if test x$enableval = xyes; then
14778      support_static_fd=yes
14779    fi
14780 fi
14781
14782
14783 STATIC_FD=
14784 if test x$support_static_fd = xyes; then
14785    STATIC_FD="static-bacula-fd"
14786 fi
14787
14788
14789 # -------------------------------------------
14790 # static-sd    (default off)
14791 # -------------------------------------------
14792 # Check whether --enable-static-sd was given.
14793 if test "${enable_static_sd+set}" = set; then
14794   enableval=$enable_static_sd; if test x$enableval = xyes; then
14795      support_static_sd=yes
14796    fi
14797 fi
14798
14799
14800 STATIC_SD=
14801 if test x$support_static_sd = xyes; then
14802    STATIC_SD="static-bacula-sd"
14803 fi
14804
14805
14806 # -------------------------------------------
14807 # static-dir   (default off)
14808 # -------------------------------------------
14809 # Check whether --enable-static-dir was given.
14810 if test "${enable_static_dir+set}" = set; then
14811   enableval=$enable_static_dir; if test x$enableval = xyes; then
14812      support_static_dir=yes
14813    fi
14814 fi
14815
14816
14817 STATIC_DIR=
14818 if test x$support_static_dir = xyes; then
14819    STATIC_DIR="static-bacula-dir"
14820 fi
14821
14822
14823 # -------------------------------------------
14824 # static-cons  (default off)
14825 # -------------------------------------------
14826 # Check whether --enable-static-cons was given.
14827 if test "${enable_static_cons+set}" = set; then
14828   enableval=$enable_static_cons; if test x$enableval = xyes; then
14829      support_static_cons=yes
14830    fi
14831 fi
14832
14833
14834 STATIC_CONS=
14835 STATIC_GNOME_CONS=
14836 STATIC_WX_CONS=
14837 if test x$support_static_cons = xyes; then
14838    STATIC_CONS="static-bconsole"
14839    STATIC_GNOME_CONS="static-gnome-console"
14840    STATIC_WX_CONS="static-wx-console"
14841 fi
14842
14843
14844
14845
14846 # -------------------------------------------
14847 # client_only  (default off)
14848 # -------------------------------------------
14849 # Check whether --enable-client-only was given.
14850 if test "${enable_client_only+set}" = set; then
14851   enableval=$enable_client_only; if test x$enableval = xyes; then
14852       build_client_only=yes
14853       db_name=None
14854       DB_NAME=none
14855    fi
14856 fi
14857
14858 if test x$build_client_only = xno; then
14859    ALL_DIRS="subdirs"
14860 else
14861    ALL_DIRS=""
14862 fi
14863
14864
14865 # -------------------------------------------
14866 # director  (default on)
14867 # -------------------------------------------
14868 # Check whether --enable-build-dird was given.
14869 if test "${enable_build_dird+set}" = set; then
14870   enableval=$enable_build_dird; if test x$enableval = xno; then
14871       build_dird=no
14872    fi
14873 fi
14874
14875 if test x$build_dird = xyes; then
14876    DIRD_DIR="src/dird"
14877    DIR_TOOLS="DIRTOOLS"
14878 else
14879    DIRD_DIR=""
14880    DIR_TOOLS="NODIRTOOLS"
14881 fi
14882
14883
14884
14885 # -------------------------------------------
14886 # stored  (default on)
14887 # -------------------------------------------
14888 # Check whether --enable-build-stored was given.
14889 if test "${enable_build_stored+set}" = set; then
14890   enableval=$enable_build_stored; if test x$enableval = xno; then
14891       build_stored=no
14892    fi
14893 fi
14894
14895 if test x$build_stored = xyes; then
14896    STORED_DIR="src/stored"
14897 else
14898    STORED_DIR=""
14899 fi
14900
14901
14902 # ---------------------------------------------------
14903 # Check for IPv6 support
14904 # ---------------------------------------------------
14905 # this allows you to turn it completely off
14906 support_ipv6=yes
14907 # Check whether --enable-ipv6 was given.
14908 if test "${enable_ipv6+set}" = set; then
14909   enableval=$enable_ipv6; if test x$enableval = xno; then
14910      support_ipv6=no
14911   fi
14912
14913 fi
14914
14915
14916 if test x$support_ipv6 = xyes; then
14917     cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h.  */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h.  */
14923  #include <sys/types.h>
14924 #include <sys/socket.h>
14925 #include <netinet/in.h>
14926 int
14927 main ()
14928 {
14929 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14930   ;
14931   return 0;
14932 }
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (ac_try="$ac_link"
14936 case "(($ac_try" in
14937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938   *) ac_try_echo=$ac_try;;
14939 esac
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941   (eval "$ac_link") 2>conftest.er1
14942   ac_status=$?
14943   grep -v '^ *+' conftest.er1 >conftest.err
14944   rm -f conftest.er1
14945   cat conftest.err >&5
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); } &&
14948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14949   { (case "(($ac_try" in
14950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951   *) ac_try_echo=$ac_try;;
14952 esac
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954   (eval "$ac_try") 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); }; } &&
14958          { ac_try='test -s conftest$ac_exeext'
14959   { (case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_try") 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; }; then
14968   support_ipv6=yes
14969 else
14970   echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973         support_ipv6=no
14974 fi
14975
14976 rm -f core conftest.err conftest.$ac_objext \
14977       conftest$ac_exeext conftest.$ac_ext
14978 fi
14979
14980 if test x$support_ipv6 = xyes; then
14981
14982 cat >>confdefs.h <<\_ACEOF
14983 #define HAVE_IPV6 1
14984 _ACEOF
14985
14986 fi
14987
14988
14989
14990 got_conio="no"
14991 if test x$support_conio = xyes; then
14992    if test "${ac_cv_header_termcap_h+set}" = set; then
14993   { echo "$as_me:$LINENO: checking for termcap.h" >&5
14994 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14995 if test "${ac_cv_header_termcap_h+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 fi
14998 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14999 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15000 else
15001   # Is the header compilable?
15002 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15003 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 $ac_includes_default
15011 #include <termcap.h>
15012 _ACEOF
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_compile") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028   { (case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_try") 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; } &&
15037          { ac_try='test -s conftest.$ac_objext'
15038   { (case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_try") 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047   ac_header_compiler=yes
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052         ac_header_compiler=no
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6; }
15058
15059 # Is the header present?
15060 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15061 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 #include <termcap.h>
15069 _ACEOF
15070 if { (ac_try="$ac_cpp conftest.$ac_ext"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } >/dev/null; then
15083   if test -s conftest.err; then
15084     ac_cpp_err=$ac_c_preproc_warn_flag
15085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15086   else
15087     ac_cpp_err=
15088   fi
15089 else
15090   ac_cpp_err=yes
15091 fi
15092 if test -z "$ac_cpp_err"; then
15093   ac_header_preproc=yes
15094 else
15095   echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098   ac_header_preproc=no
15099 fi
15100
15101 rm -f conftest.err conftest.$ac_ext
15102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103 echo "${ECHO_T}$ac_header_preproc" >&6; }
15104
15105 # So?  What about this header?
15106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107   yes:no: )
15108     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15109 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15110     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15111 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15112     ac_header_preproc=yes
15113     ;;
15114   no:yes:* )
15115     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15116 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15117     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15118 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15119     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15120 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15121     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15122 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15123     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15124 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15125     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15126 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15127
15128     ;;
15129 esac
15130 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15131 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15132 if test "${ac_cv_header_termcap_h+set}" = set; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135   ac_cv_header_termcap_h=$ac_header_preproc
15136 fi
15137 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15138 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15139
15140 fi
15141 if test $ac_cv_header_termcap_h = yes; then
15142    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15143 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15144 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   ac_check_lib_save_LIBS=$LIBS
15148 LIBS="-ltermcap  $LIBS"
15149 cat >conftest.$ac_ext <<_ACEOF
15150 /* confdefs.h.  */
15151 _ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h.  */
15155
15156 /* Override any GCC internal prototype to avoid an error.
15157    Use char because int might match the return type of a GCC
15158    builtin and then its argument prototype would still apply.  */
15159 #ifdef __cplusplus
15160 extern "C"
15161 #endif
15162 char tgetent ();
15163 int
15164 main ()
15165 {
15166 return tgetent ();
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 rm -f conftest.$ac_objext conftest$ac_exeext
15172 if { (ac_try="$ac_link"
15173 case "(($ac_try" in
15174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175   *) ac_try_echo=$ac_try;;
15176 esac
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178   (eval "$ac_link") 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15186   { (case "(($ac_try" in
15187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188   *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191   (eval "$ac_try") 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; } &&
15195          { ac_try='test -s conftest$ac_exeext'
15196   { (case "(($ac_try" in
15197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198   *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201   (eval "$ac_try") 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; }; then
15205   ac_cv_lib_termcap_tgetent=yes
15206 else
15207   echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210         ac_cv_lib_termcap_tgetent=no
15211 fi
15212
15213 rm -f core conftest.err conftest.$ac_objext \
15214       conftest$ac_exeext conftest.$ac_ext
15215 LIBS=$ac_check_lib_save_LIBS
15216 fi
15217 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15218 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15219 if test $ac_cv_lib_termcap_tgetent = yes; then
15220    CONS_LIBS="-ltermcap"
15221          CONS_OBJ="conio.o"
15222          CONS_SRC="conio.c"
15223          got_conio="yes"
15224          support_readline=no
15225
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_CONIO 1
15228 _ACEOF
15229
15230
15231 else
15232    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15233 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15234 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15235   echo $ECHO_N "(cached) $ECHO_C" >&6
15236 else
15237   ac_check_lib_save_LIBS=$LIBS
15238 LIBS="-lncurses  $LIBS"
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245
15246 /* Override any GCC internal prototype to avoid an error.
15247    Use char because int might match the return type of a GCC
15248    builtin and then its argument prototype would still apply.  */
15249 #ifdef __cplusplus
15250 extern "C"
15251 #endif
15252 char tgetent ();
15253 int
15254 main ()
15255 {
15256 return tgetent ();
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268   (eval "$ac_link") 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } &&
15275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15276   { (case "(($ac_try" in
15277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278   *) ac_try_echo=$ac_try;;
15279 esac
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281   (eval "$ac_try") 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; } &&
15285          { ac_try='test -s conftest$ac_exeext'
15286   { (case "(($ac_try" in
15287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288   *) ac_try_echo=$ac_try;;
15289 esac
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291   (eval "$ac_try") 2>&5
15292   ac_status=$?
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); }; }; then
15295   ac_cv_lib_ncurses_tgetent=yes
15296 else
15297   echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300         ac_cv_lib_ncurses_tgetent=no
15301 fi
15302
15303 rm -f core conftest.err conftest.$ac_objext \
15304       conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_check_lib_save_LIBS
15306 fi
15307 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15308 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15309 if test $ac_cv_lib_ncurses_tgetent = yes; then
15310    CONS_LIBS="-lncurses"
15311            CONS_OBJ="conio.o"
15312            CONS_SRC="conio.c"
15313            got_conio="yes"
15314            support_readline=no
15315
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_CONIO 1
15318 _ACEOF
15319
15320
15321 fi
15322
15323
15324 fi
15325
15326
15327 else
15328
15329
15330 for ac_header in curses.h
15331 do
15332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15334   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15337   echo $ECHO_N "(cached) $ECHO_C" >&6
15338 fi
15339 ac_res=`eval echo '${'$as_ac_Header'}'`
15340                { echo "$as_me:$LINENO: result: $ac_res" >&5
15341 echo "${ECHO_T}$ac_res" >&6; }
15342 else
15343   # Is the header compilable?
15344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h.  */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h.  */
15352 $ac_includes_default
15353 #include <$ac_header>
15354 _ACEOF
15355 rm -f conftest.$ac_objext
15356 if { (ac_try="$ac_compile"
15357 case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_compile") 2>conftest.er1
15363   ac_status=$?
15364   grep -v '^ *+' conftest.er1 >conftest.err
15365   rm -f conftest.er1
15366   cat conftest.err >&5
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); } &&
15369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15370   { (case "(($ac_try" in
15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372   *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375   (eval "$ac_try") 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }; } &&
15379          { ac_try='test -s conftest.$ac_objext'
15380   { (case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385   (eval "$ac_try") 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; }; then
15389   ac_header_compiler=yes
15390 else
15391   echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15393
15394         ac_header_compiler=no
15395 fi
15396
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15399 echo "${ECHO_T}$ac_header_compiler" >&6; }
15400
15401 # Is the header present?
15402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h.  */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h.  */
15410 #include <$ac_header>
15411 _ACEOF
15412 if { (ac_try="$ac_cpp conftest.$ac_ext"
15413 case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15419   ac_status=$?
15420   grep -v '^ *+' conftest.er1 >conftest.err
15421   rm -f conftest.er1
15422   cat conftest.err >&5
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); } >/dev/null; then
15425   if test -s conftest.err; then
15426     ac_cpp_err=$ac_c_preproc_warn_flag
15427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15428   else
15429     ac_cpp_err=
15430   fi
15431 else
15432   ac_cpp_err=yes
15433 fi
15434 if test -z "$ac_cpp_err"; then
15435   ac_header_preproc=yes
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440   ac_header_preproc=no
15441 fi
15442
15443 rm -f conftest.err conftest.$ac_ext
15444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15445 echo "${ECHO_T}$ac_header_preproc" >&6; }
15446
15447 # So?  What about this header?
15448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15449   yes:no: )
15450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15454     ac_header_preproc=yes
15455     ;;
15456   no:yes:* )
15457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15469
15470     ;;
15471 esac
15472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   eval "$as_ac_Header=\$ac_header_preproc"
15478 fi
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480                { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15482
15483 fi
15484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15485   cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15487 _ACEOF
15488
15489 fi
15490
15491 done
15492
15493          { echo "$as_me:$LINENO: checking for term.h" >&5
15494 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15495 if test "${ac_cv_header_term_h+set}" = set; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498   cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504 #if HAVE_CURSES_H
15505 #include <curses.h>
15506 #endif
15507
15508
15509 #include <term.h>
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (ac_try="$ac_compile"
15513 case "(($ac_try" in
15514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515   *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518   (eval "$ac_compile") 2>conftest.er1
15519   ac_status=$?
15520   grep -v '^ *+' conftest.er1 >conftest.err
15521   rm -f conftest.er1
15522   cat conftest.err >&5
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } &&
15525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15526   { (case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_try") 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); }; } &&
15535          { ac_try='test -s conftest.$ac_objext'
15536   { (case "(($ac_try" in
15537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538   *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541   (eval "$ac_try") 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; }; then
15545   ac_cv_header_term_h=yes
15546 else
15547   echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550         ac_cv_header_term_h=no
15551 fi
15552
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15554 fi
15555 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15556 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15557 if test $ac_cv_header_term_h = yes; then
15558    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15559 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15560 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563   ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lcurses  $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571
15572 /* Override any GCC internal prototype to avoid an error.
15573    Use char because int might match the return type of a GCC
15574    builtin and then its argument prototype would still apply.  */
15575 #ifdef __cplusplus
15576 extern "C"
15577 #endif
15578 char tgetent ();
15579 int
15580 main ()
15581 {
15582 return tgetent ();
15583   ;
15584   return 0;
15585 }
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (ac_try="$ac_link"
15589 case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_link") 2>conftest.er1
15595   ac_status=$?
15596   grep -v '^ *+' conftest.er1 >conftest.err
15597   rm -f conftest.er1
15598   cat conftest.err >&5
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); } &&
15601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15602   { (case "(($ac_try" in
15603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604   *) ac_try_echo=$ac_try;;
15605 esac
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607   (eval "$ac_try") 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); }; } &&
15611          { ac_try='test -s conftest$ac_exeext'
15612   { (case "(($ac_try" in
15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614   *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617   (eval "$ac_try") 2>&5
15618   ac_status=$?
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); }; }; then
15621   ac_cv_lib_curses_tgetent=yes
15622 else
15623   echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626         ac_cv_lib_curses_tgetent=no
15627 fi
15628
15629 rm -f core conftest.err conftest.$ac_objext \
15630       conftest$ac_exeext conftest.$ac_ext
15631 LIBS=$ac_check_lib_save_LIBS
15632 fi
15633 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15634 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15635 if test $ac_cv_lib_curses_tgetent = yes; then
15636    CONS_LIBS="-lcurses"
15637                    CONS_OBJ="conio.o"
15638                    CONS_SRC="conio.c"
15639                    got_conio="yes"
15640                    support_readline=no
15641
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE_CONIO 1
15644 _ACEOF
15645
15646
15647 fi
15648
15649
15650 else
15651    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15652 fi
15653
15654
15655
15656 fi
15657
15658
15659 fi
15660
15661
15662 # ---------------------------------------------------
15663 # Check for readline support/directory (default off)
15664 # ---------------------------------------------------
15665 # this allows you to turn it completely off
15666 # Check whether --enable-readline was given.
15667 if test "${enable_readline+set}" = set; then
15668   enableval=$enable_readline; if test x$enableval = xno; then
15669     support_readline=no
15670   fi
15671 fi
15672
15673
15674 got_readline="no"
15675 READLINE_SRC=
15676 if test x$support_readline = xyes; then
15677
15678 # Check whether --with-readline was given.
15679 if test "${with_readline+set}" = set; then
15680   withval=$with_readline;
15681         case "$with_readline" in
15682         no) : ;;
15683         yes|*)
15684           if test -f ${with_readline}/readline.h; then
15685              CONS_INC="-I${with_readline}"
15686              CONS_LDFLAGS="-L$with_readline"
15687           elif test -f ${with_readline}/include/readline/readline.h; then
15688              CONS_INC="-I${with_readline}/include/readline"
15689              CONS_LDFLAGS="-L${with_readline}/lib"
15690              with_readline="${with_readline}/include/readline"
15691           else
15692              with_readline="/usr/include/readline"
15693           fi
15694           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15697 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 fi
15701 ac_res=`eval echo '${'$as_ac_Header'}'`
15702                { echo "$as_me:$LINENO: result: $ac_res" >&5
15703 echo "${ECHO_T}$ac_res" >&6; }
15704 else
15705   # Is the header compilable?
15706 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15707 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714 $ac_includes_default
15715 #include <${with_readline}/readline.h>
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724   (eval "$ac_compile") 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732   { (case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_try") 2>&5
15738   ac_status=$?
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); }; } &&
15741          { ac_try='test -s conftest.$ac_objext'
15742   { (case "(($ac_try" in
15743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744   *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747   (eval "$ac_try") 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; }; then
15751   ac_header_compiler=yes
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756         ac_header_compiler=no
15757 fi
15758
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15761 echo "${ECHO_T}$ac_header_compiler" >&6; }
15762
15763 # Is the header present?
15764 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15765 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772 #include <${with_readline}/readline.h>
15773 _ACEOF
15774 if { (ac_try="$ac_cpp conftest.$ac_ext"
15775 case "(($ac_try" in
15776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777   *) ac_try_echo=$ac_try;;
15778 esac
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15781   ac_status=$?
15782   grep -v '^ *+' conftest.er1 >conftest.err
15783   rm -f conftest.er1
15784   cat conftest.err >&5
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } >/dev/null; then
15787   if test -s conftest.err; then
15788     ac_cpp_err=$ac_c_preproc_warn_flag
15789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15790   else
15791     ac_cpp_err=
15792   fi
15793 else
15794   ac_cpp_err=yes
15795 fi
15796 if test -z "$ac_cpp_err"; then
15797   ac_header_preproc=yes
15798 else
15799   echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802   ac_header_preproc=no
15803 fi
15804
15805 rm -f conftest.err conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15807 echo "${ECHO_T}$ac_header_preproc" >&6; }
15808
15809 # So?  What about this header?
15810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15811   yes:no: )
15812     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15813 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15814     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15815 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15816     ac_header_preproc=yes
15817     ;;
15818   no:yes:* )
15819     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15820 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15821     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15822 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15823     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15824 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15825     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15826 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15827     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15828 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15830 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15831
15832     ;;
15833 esac
15834 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15835 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839   eval "$as_ac_Header=\$ac_header_preproc"
15840 fi
15841 ac_res=`eval echo '${'$as_ac_Header'}'`
15842                { echo "$as_me:$LINENO: result: $ac_res" >&5
15843 echo "${ECHO_T}$ac_res" >&6; }
15844
15845 fi
15846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15847    cat >>confdefs.h <<\_ACEOF
15848 #define HAVE_READLINE 1
15849 _ACEOF
15850
15851                CONS_LIBS="-lreadline -lhistory -ltermcap"
15852                got_readline="yes"
15853
15854 else
15855    echo " "
15856                echo "readline.h not found. readline turned off ..."
15857                echo " "
15858
15859
15860 fi
15861
15862
15863           ;;
15864         esac
15865
15866 else
15867
15868        # check for standard readline library
15869        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15870   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15871 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15872 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15873   echo $ECHO_N "(cached) $ECHO_C" >&6
15874 fi
15875 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15876 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15877 else
15878   # Is the header compilable?
15879 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15880 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h.  */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h.  */
15887 $ac_includes_default
15888 #include </usr/include/readline/readline.h>
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (ac_try="$ac_compile"
15892 case "(($ac_try" in
15893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894   *) ac_try_echo=$ac_try;;
15895 esac
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897   (eval "$ac_compile") 2>conftest.er1
15898   ac_status=$?
15899   grep -v '^ *+' conftest.er1 >conftest.err
15900   rm -f conftest.er1
15901   cat conftest.err >&5
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } &&
15904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15905   { (case "(($ac_try" in
15906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907   *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910   (eval "$ac_try") 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; } &&
15914          { ac_try='test -s conftest.$ac_objext'
15915   { (case "(($ac_try" in
15916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917   *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920   (eval "$ac_try") 2>&5
15921   ac_status=$?
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); }; }; then
15924   ac_header_compiler=yes
15925 else
15926   echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15928
15929         ac_header_compiler=no
15930 fi
15931
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15934 echo "${ECHO_T}$ac_header_compiler" >&6; }
15935
15936 # Is the header present?
15937 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15938 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h.  */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h.  */
15945 #include </usr/include/readline/readline.h>
15946 _ACEOF
15947 if { (ac_try="$ac_cpp conftest.$ac_ext"
15948 case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } >/dev/null; then
15960   if test -s conftest.err; then
15961     ac_cpp_err=$ac_c_preproc_warn_flag
15962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15963   else
15964     ac_cpp_err=
15965   fi
15966 else
15967   ac_cpp_err=yes
15968 fi
15969 if test -z "$ac_cpp_err"; then
15970   ac_header_preproc=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975   ac_header_preproc=no
15976 fi
15977
15978 rm -f conftest.err conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15980 echo "${ECHO_T}$ac_header_preproc" >&6; }
15981
15982 # So?  What about this header?
15983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15984   yes:no: )
15985     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15986 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15987     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
15988 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
15989     ac_header_preproc=yes
15990     ;;
15991   no:yes:* )
15992     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
15993 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
15994     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
15995 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
15996     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
15997 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
15998     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15999 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16000     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16001 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16002     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16003 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16004
16005     ;;
16006 esac
16007 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16008 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16009 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16010   echo $ECHO_N "(cached) $ECHO_C" >&6
16011 else
16012   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16013 fi
16014 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16015 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16016
16017 fi
16018 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16019    cat >>confdefs.h <<\_ACEOF
16020 #define HAVE_READLINE 1
16021 _ACEOF
16022
16023            got_readline="yes"
16024            CONS_INC="-I/usr/include/readline"
16025            CONS_LIBS="-lreadline -ltermcap"
16026
16027 else
16028
16029            # Did not find standard library, so try Bacula's default
16030             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16032   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16033 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 fi
16037 ac_res=`eval echo '${'$as_ac_Header'}'`
16038                { echo "$as_me:$LINENO: result: $ac_res" >&5
16039 echo "${ECHO_T}$ac_res" >&6; }
16040 else
16041   # Is the header compilable?
16042 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16043 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h.  */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h.  */
16050 $ac_includes_default
16051 #include <${TOP_DIR}/depkgs/readline/readline.h>
16052 _ACEOF
16053 rm -f conftest.$ac_objext
16054 if { (ac_try="$ac_compile"
16055 case "(($ac_try" in
16056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057   *) ac_try_echo=$ac_try;;
16058 esac
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060   (eval "$ac_compile") 2>conftest.er1
16061   ac_status=$?
16062   grep -v '^ *+' conftest.er1 >conftest.err
16063   rm -f conftest.er1
16064   cat conftest.err >&5
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); } &&
16067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16068   { (case "(($ac_try" in
16069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070   *) ac_try_echo=$ac_try;;
16071 esac
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073   (eval "$ac_try") 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); }; } &&
16077          { ac_try='test -s conftest.$ac_objext'
16078   { (case "(($ac_try" in
16079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080   *) ac_try_echo=$ac_try;;
16081 esac
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083   (eval "$ac_try") 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; }; then
16087   ac_header_compiler=yes
16088 else
16089   echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092         ac_header_compiler=no
16093 fi
16094
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16097 echo "${ECHO_T}$ac_header_compiler" >&6; }
16098
16099 # Is the header present?
16100 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16101 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16102 cat >conftest.$ac_ext <<_ACEOF
16103 /* confdefs.h.  */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h.  */
16108 #include <${TOP_DIR}/depkgs/readline/readline.h>
16109 _ACEOF
16110 if { (ac_try="$ac_cpp conftest.$ac_ext"
16111 case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16117   ac_status=$?
16118   grep -v '^ *+' conftest.er1 >conftest.err
16119   rm -f conftest.er1
16120   cat conftest.err >&5
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); } >/dev/null; then
16123   if test -s conftest.err; then
16124     ac_cpp_err=$ac_c_preproc_warn_flag
16125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16126   else
16127     ac_cpp_err=
16128   fi
16129 else
16130   ac_cpp_err=yes
16131 fi
16132 if test -z "$ac_cpp_err"; then
16133   ac_header_preproc=yes
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138   ac_header_preproc=no
16139 fi
16140
16141 rm -f conftest.err conftest.$ac_ext
16142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16143 echo "${ECHO_T}$ac_header_preproc" >&6; }
16144
16145 # So?  What about this header?
16146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16147   yes:no: )
16148     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16149 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16150     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16151 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16152     ac_header_preproc=yes
16153     ;;
16154   no:yes:* )
16155     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16156 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16157     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16158 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16159     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16160 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16161     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16162 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16163     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16164 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16165     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16166 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16167
16168     ;;
16169 esac
16170 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16171 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16173   echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175   eval "$as_ac_Header=\$ac_header_preproc"
16176 fi
16177 ac_res=`eval echo '${'$as_ac_Header'}'`
16178                { echo "$as_me:$LINENO: result: $ac_res" >&5
16179 echo "${ECHO_T}$ac_res" >&6; }
16180
16181 fi
16182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16183    cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_READLINE 1
16185 _ACEOF
16186
16187                  got_readline="yes"
16188                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16189                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16190                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16191                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16192
16193 else
16194    echo " "
16195                 echo "readline.h not found. readline turned off ..."
16196                 echo " "
16197
16198
16199 fi
16200
16201
16202
16203
16204 fi
16205
16206
16207
16208
16209 fi
16210
16211 fi
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222 # Minimal stuff for readline Makefile configuration
16223 MAKE_SHELL=/bin/sh
16224
16225 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16226 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16227 if test "${ac_cv_header_stat_broken+set}" = set; then
16228   echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230   cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 #include <sys/types.h>
16237 #include <sys/stat.h>
16238
16239 #if defined S_ISBLK && defined S_IFDIR
16240 # if S_ISBLK (S_IFDIR)
16241 You lose.
16242 # endif
16243 #endif
16244
16245 #if defined S_ISBLK && defined S_IFCHR
16246 # if S_ISBLK (S_IFCHR)
16247 You lose.
16248 # endif
16249 #endif
16250
16251 #if defined S_ISLNK && defined S_IFREG
16252 # if S_ISLNK (S_IFREG)
16253 You lose.
16254 # endif
16255 #endif
16256
16257 #if defined S_ISSOCK && defined S_IFREG
16258 # if S_ISSOCK (S_IFREG)
16259 You lose.
16260 # endif
16261 #endif
16262
16263 _ACEOF
16264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16265   $EGREP "You lose" >/dev/null 2>&1; then
16266   ac_cv_header_stat_broken=yes
16267 else
16268   ac_cv_header_stat_broken=no
16269 fi
16270 rm -f conftest*
16271
16272 fi
16273 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16274 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16275 if test $ac_cv_header_stat_broken = yes; then
16276
16277 cat >>confdefs.h <<\_ACEOF
16278 #define STAT_MACROS_BROKEN 1
16279 _ACEOF
16280
16281 fi
16282
16283
16284
16285
16286
16287
16288 ac_header_dirent=no
16289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16290   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16291 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296   cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h.  */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h.  */
16302 #include <sys/types.h>
16303 #include <$ac_hdr>
16304
16305 int
16306 main ()
16307 {
16308 if ((DIR *) 0)
16309 return 0;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_compile") 2>conftest.er1
16322   ac_status=$?
16323   grep -v '^ *+' conftest.er1 >conftest.err
16324   rm -f conftest.er1
16325   cat conftest.err >&5
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } &&
16328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16329   { (case "(($ac_try" in
16330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331   *) ac_try_echo=$ac_try;;
16332 esac
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334   (eval "$ac_try") 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; } &&
16338          { ac_try='test -s conftest.$ac_objext'
16339   { (case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344   (eval "$ac_try") 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   eval "$as_ac_Header=yes"
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353         eval "$as_ac_Header=no"
16354 fi
16355
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 fi
16358 ac_res=`eval echo '${'$as_ac_Header'}'`
16359                { echo "$as_me:$LINENO: result: $ac_res" >&5
16360 echo "${ECHO_T}$ac_res" >&6; }
16361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16362   cat >>confdefs.h <<_ACEOF
16363 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16364 _ACEOF
16365
16366 ac_header_dirent=$ac_hdr; break
16367 fi
16368
16369 done
16370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16371 if test $ac_header_dirent = dirent.h; then
16372   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16374 if test "${ac_cv_search_opendir+set}" = set; then
16375   echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377   ac_func_search_save_LIBS=$LIBS
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h.  */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h.  */
16384
16385 /* Override any GCC internal prototype to avoid an error.
16386    Use char because int might match the return type of a GCC
16387    builtin and then its argument prototype would still apply.  */
16388 #ifdef __cplusplus
16389 extern "C"
16390 #endif
16391 char opendir ();
16392 int
16393 main ()
16394 {
16395 return opendir ();
16396   ;
16397   return 0;
16398 }
16399 _ACEOF
16400 for ac_lib in '' dir; do
16401   if test -z "$ac_lib"; then
16402     ac_res="none required"
16403   else
16404     ac_res=-l$ac_lib
16405     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16406   fi
16407   rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411   *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414   (eval "$ac_link") 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16422   { (case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_try") 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; } &&
16431          { ac_try='test -s conftest$ac_exeext'
16432   { (case "(($ac_try" in
16433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434   *) ac_try_echo=$ac_try;;
16435 esac
16436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16437   (eval "$ac_try") 2>&5
16438   ac_status=$?
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); }; }; then
16441   ac_cv_search_opendir=$ac_res
16442 else
16443   echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext \
16450       conftest$ac_exeext
16451   if test "${ac_cv_search_opendir+set}" = set; then
16452   break
16453 fi
16454 done
16455 if test "${ac_cv_search_opendir+set}" = set; then
16456   :
16457 else
16458   ac_cv_search_opendir=no
16459 fi
16460 rm conftest.$ac_ext
16461 LIBS=$ac_func_search_save_LIBS
16462 fi
16463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16465 ac_res=$ac_cv_search_opendir
16466 if test "$ac_res" != no; then
16467   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16468
16469 fi
16470
16471 else
16472   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16473 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16474 if test "${ac_cv_search_opendir+set}" = set; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   ac_func_search_save_LIBS=$LIBS
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484
16485 /* Override any GCC internal prototype to avoid an error.
16486    Use char because int might match the return type of a GCC
16487    builtin and then its argument prototype would still apply.  */
16488 #ifdef __cplusplus
16489 extern "C"
16490 #endif
16491 char opendir ();
16492 int
16493 main ()
16494 {
16495 return opendir ();
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 for ac_lib in '' x; do
16501   if test -z "$ac_lib"; then
16502     ac_res="none required"
16503   else
16504     ac_res=-l$ac_lib
16505     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16506   fi
16507   rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_link") 2>conftest.er1
16515   ac_status=$?
16516   grep -v '^ *+' conftest.er1 >conftest.err
16517   rm -f conftest.er1
16518   cat conftest.err >&5
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); } &&
16521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16522   { (case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_try") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; } &&
16531          { ac_try='test -s conftest$ac_exeext'
16532   { (case "(($ac_try" in
16533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534   *) ac_try_echo=$ac_try;;
16535 esac
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537   (eval "$ac_try") 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_cv_search_opendir=$ac_res
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546
16547 fi
16548
16549 rm -f core conftest.err conftest.$ac_objext \
16550       conftest$ac_exeext
16551   if test "${ac_cv_search_opendir+set}" = set; then
16552   break
16553 fi
16554 done
16555 if test "${ac_cv_search_opendir+set}" = set; then
16556   :
16557 else
16558   ac_cv_search_opendir=no
16559 fi
16560 rm conftest.$ac_ext
16561 LIBS=$ac_func_search_save_LIBS
16562 fi
16563 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16564 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16565 ac_res=$ac_cv_search_opendir
16566 if test "$ac_res" != no; then
16567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16568
16569 fi
16570
16571 fi
16572
16573
16574
16575
16576
16577
16578
16579
16580 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16581 do
16582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16596 #define $ac_func innocuous_$ac_func
16597
16598 /* System header to define __stub macros and hopefully few prototypes,
16599     which can conflict with char $ac_func (); below.
16600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16601     <limits.h> exists even on freestanding compilers.  */
16602
16603 #ifdef __STDC__
16604 # include <limits.h>
16605 #else
16606 # include <assert.h>
16607 #endif
16608
16609 #undef $ac_func
16610
16611 /* Override any GCC internal prototype to avoid an error.
16612    Use char because int might match the return type of a GCC
16613    builtin and then its argument prototype would still apply.  */
16614 #ifdef __cplusplus
16615 extern "C"
16616 #endif
16617 char $ac_func ();
16618 /* The GNU C library defines this for functions which it implements
16619     to always fail with ENOSYS.  Some functions are actually named
16620     something starting with __ and the normal name is an alias.  */
16621 #if defined __stub_$ac_func || defined __stub___$ac_func
16622 choke me
16623 #endif
16624
16625 int
16626 main ()
16627 {
16628 return $ac_func ();
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_link") 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; } &&
16657          { ac_try='test -s conftest$ac_exeext'
16658   { (case "(($ac_try" in
16659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660   *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663   (eval "$ac_try") 2>&5
16664   ac_status=$?
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); }; }; then
16667   eval "$as_ac_var=yes"
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         eval "$as_ac_var=no"
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext \
16676       conftest$ac_exeext conftest.$ac_ext
16677 fi
16678 ac_res=`eval echo '${'$as_ac_var'}'`
16679                { echo "$as_me:$LINENO: result: $ac_res" >&5
16680 echo "${ECHO_T}$ac_res" >&6; }
16681 if test `eval echo '${'$as_ac_var'}'` = yes; then
16682   cat >>confdefs.h <<_ACEOF
16683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16684 _ACEOF
16685
16686 fi
16687 done
16688
16689
16690
16691 for ac_func in nanosleep nl_langinfo
16692 do
16693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16697   echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699   cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h.  */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h.  */
16705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16707 #define $ac_func innocuous_$ac_func
16708
16709 /* System header to define __stub macros and hopefully few prototypes,
16710     which can conflict with char $ac_func (); below.
16711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712     <limits.h> exists even on freestanding compilers.  */
16713
16714 #ifdef __STDC__
16715 # include <limits.h>
16716 #else
16717 # include <assert.h>
16718 #endif
16719
16720 #undef $ac_func
16721
16722 /* Override any GCC internal prototype to avoid an error.
16723    Use char because int might match the return type of a GCC
16724    builtin and then its argument prototype would still apply.  */
16725 #ifdef __cplusplus
16726 extern "C"
16727 #endif
16728 char $ac_func ();
16729 /* The GNU C library defines this for functions which it implements
16730     to always fail with ENOSYS.  Some functions are actually named
16731     something starting with __ and the normal name is an alias.  */
16732 #if defined __stub_$ac_func || defined __stub___$ac_func
16733 choke me
16734 #endif
16735
16736 int
16737 main ()
16738 {
16739 return $ac_func ();
16740   ;
16741   return 0;
16742 }
16743 _ACEOF
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (ac_try="$ac_link"
16746 case "(($ac_try" in
16747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748   *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751   (eval "$ac_link") 2>conftest.er1
16752   ac_status=$?
16753   grep -v '^ *+' conftest.er1 >conftest.err
16754   rm -f conftest.er1
16755   cat conftest.err >&5
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } &&
16758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16759   { (case "(($ac_try" in
16760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761   *) ac_try_echo=$ac_try;;
16762 esac
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764   (eval "$ac_try") 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; } &&
16768          { ac_try='test -s conftest$ac_exeext'
16769   { (case "(($ac_try" in
16770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771   *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774   (eval "$ac_try") 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; }; then
16778   eval "$as_ac_var=yes"
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783         eval "$as_ac_var=no"
16784 fi
16785
16786 rm -f core conftest.err conftest.$ac_objext \
16787       conftest$ac_exeext conftest.$ac_ext
16788 fi
16789 ac_res=`eval echo '${'$as_ac_var'}'`
16790                { echo "$as_me:$LINENO: result: $ac_res" >&5
16791 echo "${ECHO_T}$ac_res" >&6; }
16792 if test `eval echo '${'$as_ac_var'}'` = yes; then
16793   cat >>confdefs.h <<_ACEOF
16794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16795 _ACEOF
16796
16797 fi
16798 done
16799
16800
16801 for ac_header in varargs.h
16802 do
16803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16805   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16808   echo $ECHO_N "(cached) $ECHO_C" >&6
16809 fi
16810 ac_res=`eval echo '${'$as_ac_Header'}'`
16811                { echo "$as_me:$LINENO: result: $ac_res" >&5
16812 echo "${ECHO_T}$ac_res" >&6; }
16813 else
16814   # Is the header compilable?
16815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823 $ac_includes_default
16824 #include <$ac_header>
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841   { (case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_try") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; } &&
16850          { ac_try='test -s conftest.$ac_objext'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; }; then
16860   ac_header_compiler=yes
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865         ac_header_compiler=no
16866 fi
16867
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16870 echo "${ECHO_T}$ac_header_compiler" >&6; }
16871
16872 # Is the header present?
16873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16875 cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881 #include <$ac_header>
16882 _ACEOF
16883 if { (ac_try="$ac_cpp conftest.$ac_ext"
16884 case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16890   ac_status=$?
16891   grep -v '^ *+' conftest.er1 >conftest.err
16892   rm -f conftest.er1
16893   cat conftest.err >&5
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); } >/dev/null; then
16896   if test -s conftest.err; then
16897     ac_cpp_err=$ac_c_preproc_warn_flag
16898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16899   else
16900     ac_cpp_err=
16901   fi
16902 else
16903   ac_cpp_err=yes
16904 fi
16905 if test -z "$ac_cpp_err"; then
16906   ac_header_preproc=yes
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911   ac_header_preproc=no
16912 fi
16913
16914 rm -f conftest.err conftest.$ac_ext
16915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16916 echo "${ECHO_T}$ac_header_preproc" >&6; }
16917
16918 # So?  What about this header?
16919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16920   yes:no: )
16921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16925     ac_header_preproc=yes
16926     ;;
16927   no:yes:* )
16928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16940
16941     ;;
16942 esac
16943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   eval "$as_ac_Header=\$ac_header_preproc"
16949 fi
16950 ac_res=`eval echo '${'$as_ac_Header'}'`
16951                { echo "$as_me:$LINENO: result: $ac_res" >&5
16952 echo "${ECHO_T}$ac_res" >&6; }
16953
16954 fi
16955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16956   cat >>confdefs.h <<_ACEOF
16957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16958 _ACEOF
16959
16960 fi
16961
16962 done
16963
16964
16965 # End of readline/conio stuff
16966 # -----------------------------------------------------------------------
16967
16968 # -----------------------------------------------------------------------
16969 #  Check for Python support
16970 #
16971 { echo "$as_me:$LINENO: checking for Python support" >&5
16972 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
16973
16974 # Check whether --with-python was given.
16975 if test "${with_python+set}" = set; then
16976   withval=$with_python;
16977   PYTHON_INCDIR=
16978   PYTHON_LIBS=
16979   if test "$withval" != "no"; then
16980      if test "$withval" = "yes"; then
16981         for python_root in /usr /usr/local /usr/sfw; do
16982           for ver in python2.2 python2.3 python2.4 python2.5; do
16983              if test -f $python_root/include/${ver}/Python.h; then
16984                 PYTHON_INCDIR=-I$python_root/include/${ver}
16985                 if test -d $python_root/lib64/${ver}/config; then
16986                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
16987                 else
16988                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
16989                 fi
16990                 break
16991              fi
16992           done
16993         done
16994         if test x$PYTHON_INCDIR = x; then
16995           if test -f $prefix/include/Python.h; then
16996              PYTHON_INCDIR=-I$prefix/include
16997              if test -d $prefix/lib64/config; then
16998                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
16999              else
17000                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17001              fi
17002           else
17003            { echo "$as_me:$LINENO: result: no" >&5
17004 echo "${ECHO_T}no" >&6; }
17005            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17006 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17007    { (exit 1); exit 1; }; }
17008           fi
17009         fi
17010      else
17011         if test -f $withval/Python.h; then
17012            PYTHON_INCDIR=-I$withval
17013            PYTHON_LIBS="-L$withval/config -lpython"
17014         elif test -f $withval/include/Python.h; then
17015            PYTHON_INCDIR=-I$withval/include
17016            if test -d $withval/lib64/config; then
17017               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17018            else
17019               PYTHON_LIBS="-L$withval/lib/config -lpython"
17020            fi
17021         elif test -f $withval/include/python/Python.h; then
17022            PYTHON_INCDIR=-I$withval/include/python
17023            if test -d $withval/lib64/python/config; then
17024               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17025            else
17026               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17027            fi
17028         else
17029            { echo "$as_me:$LINENO: result: no" >&5
17030 echo "${ECHO_T}no" >&6; }
17031            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17032 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17033    { (exit 1); exit 1; }; }
17034         fi
17035      fi
17036      cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_PYTHON 1
17038 _ACEOF
17039
17040      { echo "$as_me:$LINENO: result: yes" >&5
17041 echo "${ECHO_T}yes" >&6; }
17042      support_python=yes
17043      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17044 echo "$as_me: checking for more Python libs" >&6;}
17045      saved_LIBS="$LIBS"; LIBS=
17046      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17047 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17048 if test "${ac_cv_search_shm_open+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051   ac_func_search_save_LIBS=$LIBS
17052 cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h.  */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h.  */
17058
17059 /* Override any GCC internal prototype to avoid an error.
17060    Use char because int might match the return type of a GCC
17061    builtin and then its argument prototype would still apply.  */
17062 #ifdef __cplusplus
17063 extern "C"
17064 #endif
17065 char shm_open ();
17066 int
17067 main ()
17068 {
17069 return shm_open ();
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 for ac_lib in '' rt; do
17075   if test -z "$ac_lib"; then
17076     ac_res="none required"
17077   else
17078     ac_res=-l$ac_lib
17079     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17080   fi
17081   rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085   *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088   (eval "$ac_link") 2>conftest.er1
17089   ac_status=$?
17090   grep -v '^ *+' conftest.er1 >conftest.err
17091   rm -f conftest.er1
17092   cat conftest.err >&5
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } &&
17095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; } &&
17105          { ac_try='test -s conftest$ac_exeext'
17106   { (case "(($ac_try" in
17107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108   *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111   (eval "$ac_try") 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; }; then
17115   ac_cv_search_shm_open=$ac_res
17116 else
17117   echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17119
17120
17121 fi
17122
17123 rm -f core conftest.err conftest.$ac_objext \
17124       conftest$ac_exeext
17125   if test "${ac_cv_search_shm_open+set}" = set; then
17126   break
17127 fi
17128 done
17129 if test "${ac_cv_search_shm_open+set}" = set; then
17130   :
17131 else
17132   ac_cv_search_shm_open=no
17133 fi
17134 rm conftest.$ac_ext
17135 LIBS=$ac_func_search_save_LIBS
17136 fi
17137 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17138 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17139 ac_res=$ac_cv_search_shm_open
17140 if test "$ac_res" != no; then
17141   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17142
17143 fi
17144
17145
17146 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17147 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17148 if test "${ac_cv_lib_util_openpty+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lutil  $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159
17160 /* Override any GCC internal prototype to avoid an error.
17161    Use char because int might match the return type of a GCC
17162    builtin and then its argument prototype would still apply.  */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char openpty ();
17167 int
17168 main ()
17169 {
17170 return openpty ();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179   *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182   (eval "$ac_link") 2>conftest.er1
17183   ac_status=$?
17184   grep -v '^ *+' conftest.er1 >conftest.err
17185   rm -f conftest.er1
17186   cat conftest.err >&5
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } &&
17189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190   { (case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_try") 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; } &&
17199          { ac_try='test -s conftest$ac_exeext'
17200   { (case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205   (eval "$ac_try") 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; }; then
17209   ac_cv_lib_util_openpty=yes
17210 else
17211   echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214         ac_cv_lib_util_openpty=no
17215 fi
17216
17217 rm -f core conftest.err conftest.$ac_objext \
17218       conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17220 fi
17221 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17222 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17223 if test $ac_cv_lib_util_openpty = yes; then
17224   cat >>confdefs.h <<_ACEOF
17225 #define HAVE_LIBUTIL 1
17226 _ACEOF
17227
17228   LIBS="-lutil $LIBS"
17229
17230 fi
17231
17232      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17233      LIBS="$saved_LIBS"
17234   else
17235      { echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6; }
17237   fi
17238
17239 else
17240
17241   { echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6; }
17243
17244 fi
17245
17246
17247
17248
17249 #
17250 # Find where sockets are (especially for Solaris)
17251 # Do this before the TCP Wrappers test since tcp wrappers
17252 # uses the socket library and some linkers are stupid.
17253 #
17254 { echo "$as_me:$LINENO: checking for socket" >&5
17255 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17256 if test "${ac_cv_func_socket+set}" = set; then
17257   echo $ECHO_N "(cached) $ECHO_C" >&6
17258 else
17259   cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h.  */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h.  */
17265 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17267 #define socket innocuous_socket
17268
17269 /* System header to define __stub macros and hopefully few prototypes,
17270     which can conflict with char socket (); below.
17271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272     <limits.h> exists even on freestanding compilers.  */
17273
17274 #ifdef __STDC__
17275 # include <limits.h>
17276 #else
17277 # include <assert.h>
17278 #endif
17279
17280 #undef socket
17281
17282 /* Override any GCC internal prototype to avoid an error.
17283    Use char because int might match the return type of a GCC
17284    builtin and then its argument prototype would still apply.  */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char socket ();
17289 /* The GNU C library defines this for functions which it implements
17290     to always fail with ENOSYS.  Some functions are actually named
17291     something starting with __ and the normal name is an alias.  */
17292 #if defined __stub_socket || defined __stub___socket
17293 choke me
17294 #endif
17295
17296 int
17297 main ()
17298 {
17299 return socket ();
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308   *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311   (eval "$ac_link") 2>conftest.er1
17312   ac_status=$?
17313   grep -v '^ *+' conftest.er1 >conftest.err
17314   rm -f conftest.er1
17315   cat conftest.err >&5
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } &&
17318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17328          { ac_try='test -s conftest$ac_exeext'
17329   { (case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334   (eval "$ac_try") 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; }; then
17338   ac_cv_func_socket=yes
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343         ac_cv_func_socket=no
17344 fi
17345
17346 rm -f core conftest.err conftest.$ac_objext \
17347       conftest$ac_exeext conftest.$ac_ext
17348 fi
17349 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17350 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17351 if test $ac_cv_func_socket = yes; then
17352   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17353 echo "${ECHO_T}using libc's socket" >&6; }
17354 else
17355
17356 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17357 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17358 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17359   echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361   ac_check_lib_save_LIBS=$LIBS
17362 LIBS="-lxnet  $LIBS"
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369
17370 /* Override any GCC internal prototype to avoid an error.
17371    Use char because int might match the return type of a GCC
17372    builtin and then its argument prototype would still apply.  */
17373 #ifdef __cplusplus
17374 extern "C"
17375 #endif
17376 char socket ();
17377 int
17378 main ()
17379 {
17380 return socket ();
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_link") 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } &&
17399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400   { (case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_try") 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest$ac_exeext'
17410   { (case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415   (eval "$ac_try") 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }; }; then
17419   ac_cv_lib_xnet_socket=yes
17420 else
17421   echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424         ac_cv_lib_xnet_socket=no
17425 fi
17426
17427 rm -f core conftest.err conftest.$ac_objext \
17428       conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS
17430 fi
17431 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17432 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17433 if test $ac_cv_lib_xnet_socket = yes; then
17434   cat >>confdefs.h <<_ACEOF
17435 #define HAVE_LIBXNET 1
17436 _ACEOF
17437
17438   LIBS="-lxnet $LIBS"
17439
17440 fi
17441
17442
17443 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17444 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17445 if test "${ac_cv_lib_socket_socket+set}" = set; then
17446   echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448   ac_check_lib_save_LIBS=$LIBS
17449 LIBS="-lsocket  $LIBS"
17450 cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h.  */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h.  */
17456
17457 /* Override any GCC internal prototype to avoid an error.
17458    Use char because int might match the return type of a GCC
17459    builtin and then its argument prototype would still apply.  */
17460 #ifdef __cplusplus
17461 extern "C"
17462 #endif
17463 char socket ();
17464 int
17465 main ()
17466 {
17467 return socket ();
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476   *) ac_try_echo=$ac_try;;
17477 esac
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479   (eval "$ac_link") 2>conftest.er1
17480   ac_status=$?
17481   grep -v '^ *+' conftest.er1 >conftest.err
17482   rm -f conftest.er1
17483   cat conftest.err >&5
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); } &&
17486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487   { (case "(($ac_try" in
17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489   *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492   (eval "$ac_try") 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); }; } &&
17496          { ac_try='test -s conftest$ac_exeext'
17497   { (case "(($ac_try" in
17498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499   *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502   (eval "$ac_try") 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; }; then
17506   ac_cv_lib_socket_socket=yes
17507 else
17508   echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511         ac_cv_lib_socket_socket=no
17512 fi
17513
17514 rm -f core conftest.err conftest.$ac_objext \
17515       conftest$ac_exeext conftest.$ac_ext
17516 LIBS=$ac_check_lib_save_LIBS
17517 fi
17518 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17519 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17520 if test $ac_cv_lib_socket_socket = yes; then
17521   cat >>confdefs.h <<_ACEOF
17522 #define HAVE_LIBSOCKET 1
17523 _ACEOF
17524
17525   LIBS="-lsocket $LIBS"
17526
17527 fi
17528
17529
17530 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17531 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17532 if test "${ac_cv_lib_inet_socket+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535   ac_check_lib_save_LIBS=$LIBS
17536 LIBS="-linet  $LIBS"
17537 cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543
17544 /* Override any GCC internal prototype to avoid an error.
17545    Use char because int might match the return type of a GCC
17546    builtin and then its argument prototype would still apply.  */
17547 #ifdef __cplusplus
17548 extern "C"
17549 #endif
17550 char socket ();
17551 int
17552 main ()
17553 {
17554 return socket ();
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (ac_try="$ac_link"
17561 case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_link") 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574   { (case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_try") 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest$ac_exeext'
17584   { (case "(($ac_try" in
17585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586   *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589   (eval "$ac_try") 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   ac_cv_lib_inet_socket=yes
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598         ac_cv_lib_inet_socket=no
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext \
17602       conftest$ac_exeext conftest.$ac_ext
17603 LIBS=$ac_check_lib_save_LIBS
17604 fi
17605 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17606 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17607 if test $ac_cv_lib_inet_socket = yes; then
17608   cat >>confdefs.h <<_ACEOF
17609 #define HAVE_LIBINET 1
17610 _ACEOF
17611
17612   LIBS="-linet $LIBS"
17613
17614 fi
17615
17616 fi
17617
17618
17619
17620 # -----------------------------------------------------------
17621 # Check whether user wants TCP wrappers support (default off)
17622 # -----------------------------------------------------------
17623 TCPW_MSG="no"
17624 WRAPLIBS=""
17625
17626 # Check whether --with-tcp-wrappers was given.
17627 if test "${with_tcp_wrappers+set}" = set; then
17628   withval=$with_tcp_wrappers;
17629     if test "x$withval" != "xno" ; then
17630        saved_LIBS="$LIBS"
17631        LIBS="$saved_LIBS -lwrap"
17632        { echo "$as_me:$LINENO: checking for libwrap" >&5
17633 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17634        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17635 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17636 if test "${ac_cv_search_nanosleep+set}" = set; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639   ac_func_search_save_LIBS=$LIBS
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646
17647 /* Override any GCC internal prototype to avoid an error.
17648    Use char because int might match the return type of a GCC
17649    builtin and then its argument prototype would still apply.  */
17650 #ifdef __cplusplus
17651 extern "C"
17652 #endif
17653 char nanosleep ();
17654 int
17655 main ()
17656 {
17657 return nanosleep ();
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 for ac_lib in '' rt; do
17663   if test -z "$ac_lib"; then
17664     ac_res="none required"
17665   else
17666     ac_res=-l$ac_lib
17667     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17668   fi
17669   rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (ac_try="$ac_link"
17671 case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_link") 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } &&
17683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17684   { (case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_try") 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; } &&
17693          { ac_try='test -s conftest$ac_exeext'
17694   { (case "(($ac_try" in
17695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696   *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699   (eval "$ac_try") 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; }; then
17703   ac_cv_search_nanosleep=$ac_res
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708
17709 fi
17710
17711 rm -f core conftest.err conftest.$ac_objext \
17712       conftest$ac_exeext
17713   if test "${ac_cv_search_nanosleep+set}" = set; then
17714   break
17715 fi
17716 done
17717 if test "${ac_cv_search_nanosleep+set}" = set; then
17718   :
17719 else
17720   ac_cv_search_nanosleep=no
17721 fi
17722 rm conftest.$ac_ext
17723 LIBS=$ac_func_search_save_LIBS
17724 fi
17725 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17726 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17727 ac_res=$ac_cv_search_nanosleep
17728 if test "$ac_res" != no; then
17729   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17730
17731 fi
17732
17733        cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739  #include <sys/types.h>
17740             #include <tcpd.h>
17741              int deny_severity = 0;
17742              int allow_severity = 0;
17743              struct request_info *req;
17744 int
17745 main ()
17746 {
17747  hosts_access(req);
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756   *) ac_try_echo=$ac_try;;
17757 esac
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759   (eval "$ac_link") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } &&
17766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767   { (case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772   (eval "$ac_try") 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; } &&
17776          { ac_try='test -s conftest$ac_exeext'
17777   { (case "(($ac_try" in
17778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779   *) ac_try_echo=$ac_try;;
17780 esac
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782   (eval "$ac_try") 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; }; then
17786
17787             { echo "$as_me:$LINENO: result: yes" >&5
17788 echo "${ECHO_T}yes" >&6; }
17789             cat >>confdefs.h <<\_ACEOF
17790 #define HAVE_LIBWRAP 1
17791 _ACEOF
17792
17793             TCPW_MSG="yes"
17794             LIBS="$saved_LIBS"
17795             WRAPLIBS="-lwrap"
17796
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801
17802             LIBS="$saved_LIBS -lwrap -lnsl"
17803             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17804             cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810  #include <sys/types.h>
17811                  #include <tcpd.h>
17812                  int deny_severity = 0;
17813                  int allow_severity = 0;
17814                  struct request_info *req;
17815 int
17816 main ()
17817 {
17818  hosts_access(req);
17819   ;
17820   return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_link") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838   { (case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_try") 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; } &&
17847          { ac_try='test -s conftest$ac_exeext'
17848   { (case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_try") 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; }; then
17857
17858                  { echo "$as_me:$LINENO: result: yes" >&5
17859 echo "${ECHO_T}yes" >&6; }
17860                  cat >>confdefs.h <<\_ACEOF
17861 #define HAVE_LIBWRAP 1
17862 _ACEOF
17863
17864                  TCPW_MSG="yes"
17865                  LIBS="$saved_LIBS"
17866                  WRAPLIBS="-lwrap"
17867
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17873 echo "$as_me: error: *** libwrap missing" >&2;}
17874    { (exit 1); exit 1; }; }
17875
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext \
17879       conftest$ac_exeext conftest.$ac_ext
17880
17881 fi
17882
17883 rm -f core conftest.err conftest.$ac_objext \
17884       conftest$ac_exeext conftest.$ac_ext
17885     fi
17886
17887
17888 fi
17889
17890
17891 # -----------------------------------------------------------
17892 # Check whether OpenSSL is available
17893 # -----------------------------------------------------------
17894 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17895 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17896
17897 # Check whether --with-openssl was given.
17898 if test "${with_openssl+set}" = set; then
17899   withval=$with_openssl; with_openssl_directory=${withval}
17900 fi
17901
17902
17903 if test "x$with_openssl_directory" != "x"; then
17904         OPENSSL_LIBS="-lssl -lcrypto"
17905         OPENSSL_INC=""
17906
17907         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17908                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17909                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17910         fi
17911
17912         saved_LIBS="${LIBS}"
17913         saved_CFLAGS="${CFLAGS}"
17914         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17915         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17916
17917         cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923  #include <openssl/ssl.h>
17924 int
17925 main ()
17926 {
17927  CRYPTO_set_id_callback(NULL);
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (ac_try="$ac_link"
17934 case "(($ac_try" in
17935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936   *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939   (eval "$ac_link") 2>conftest.er1
17940   ac_status=$?
17941   grep -v '^ *+' conftest.er1 >conftest.err
17942   rm -f conftest.er1
17943   cat conftest.err >&5
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); } &&
17946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947   { (case "(($ac_try" in
17948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949   *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952   (eval "$ac_try") 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; } &&
17956          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17966
17967                         support_tls="yes"
17968                         support_crypto="yes"
17969
17970 else
17971   echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974          support_tls="no"
17975
17976 fi
17977
17978 rm -f core conftest.err conftest.$ac_objext \
17979       conftest$ac_exeext conftest.$ac_ext
17980
17981         cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h.  */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h.  */
17987  #include <openssl/evp.h>
17988 int
17989 main ()
17990 {
17991  EVP_sha512();
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_link") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } &&
18010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; } &&
18020          { ac_try='test -s conftest$ac_exeext'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030    ac_cv_openssl_sha2="yes"
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035          ac_cv_openssl_sha2="no"
18036
18037 fi
18038
18039 rm -f core conftest.err conftest.$ac_objext \
18040       conftest$ac_exeext conftest.$ac_ext
18041
18042         LIBS="${saved_LIBS}"
18043         CFLAGS="${saved_CFLAGS}"
18044
18045         if test "$support_tls" = "yes"; then
18046
18047 cat >>confdefs.h <<\_ACEOF
18048 #define HAVE_OPENSSL 1
18049 _ACEOF
18050
18051
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE_TLS 1
18054 _ACEOF
18055
18056
18057 cat >>confdefs.h <<\_ACEOF
18058 #define HAVE_CRYPTO 1
18059 _ACEOF
18060
18061         fi
18062
18063         if test "$ac_cv_openssl_sha2" = "yes"; then
18064
18065 cat >>confdefs.h <<\_ACEOF
18066 #define HAVE_SHA2 1
18067 _ACEOF
18068
18069         fi
18070 else
18071         support_tls="no"
18072         support_crypto="no"
18073         OPENSSL_LIBS=""
18074         OPENSSL_INC=""
18075 fi
18076
18077 { echo "$as_me:$LINENO: result: $support_tls" >&5
18078 echo "${ECHO_T}$support_tls" >&6; }
18079
18080
18081
18082
18083 # -----------------------------------------------------------
18084 # Python and OpenSSL are using dlopen
18085 # -----------------------------------------------------------
18086
18087 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18088    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18089 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18090 if test "${ac_cv_search_dlopen+set}" = set; then
18091   echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093   ac_func_search_save_LIBS=$LIBS
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100
18101 /* Override any GCC internal prototype to avoid an error.
18102    Use char because int might match the return type of a GCC
18103    builtin and then its argument prototype would still apply.  */
18104 #ifdef __cplusplus
18105 extern "C"
18106 #endif
18107 char dlopen ();
18108 int
18109 main ()
18110 {
18111 return dlopen ();
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 for ac_lib in '' dl; do
18117   if test -z "$ac_lib"; then
18118     ac_res="none required"
18119   else
18120     ac_res=-l$ac_lib
18121     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18122   fi
18123   rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_link") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } &&
18137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18138   { (case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_try") 2>&5
18144   ac_status=$?
18145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); }; } &&
18147          { ac_try='test -s conftest$ac_exeext'
18148   { (case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_try") 2>&5
18154   ac_status=$?
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); }; }; then
18157   ac_cv_search_dlopen=$ac_res
18158 else
18159   echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18161
18162
18163 fi
18164
18165 rm -f core conftest.err conftest.$ac_objext \
18166       conftest$ac_exeext
18167   if test "${ac_cv_search_dlopen+set}" = set; then
18168   break
18169 fi
18170 done
18171 if test "${ac_cv_search_dlopen+set}" = set; then
18172   :
18173 else
18174   ac_cv_search_dlopen=no
18175 fi
18176 rm conftest.$ac_ext
18177 LIBS=$ac_func_search_save_LIBS
18178 fi
18179 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18180 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18181 ac_res=$ac_cv_search_dlopen
18182 if test "$ac_res" != no; then
18183   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18184
18185 fi
18186
18187 fi
18188
18189 # ------------------------------------------
18190 # Where to place working dir
18191 # ------------------------------------------
18192 working_dir=`eval echo ${prefix}/var/bacula/working`
18193
18194 # Check whether --with-working-dir was given.
18195 if test "${with_working_dir+set}" = set; then
18196   withval=$with_working_dir;
18197        if test "x$withval" != "xno" ; then
18198               working_dir=$withval
18199        fi
18200
18201
18202 fi
18203
18204
18205
18206
18207
18208 # ------------------------------------------
18209 # Where to place scriptdir (script files)
18210 # ------------------------------------------
18211 scriptdir=`eval echo ${sysconfdir}`
18212
18213 # Check whether --with-scriptdir was given.
18214 if test "${with_scriptdir+set}" = set; then
18215   withval=$with_scriptdir;
18216        if test "x$withval" != "xno" ; then
18217               scriptdir=$withval
18218        fi
18219
18220
18221 fi
18222
18223
18224
18225
18226
18227 # ------------------------------------------
18228 # Where to send dump email
18229 # ------------------------------------------
18230 dump_email=root@localhost
18231
18232 # Check whether --with-dump-email was given.
18233 if test "${with_dump_email+set}" = set; then
18234   withval=$with_dump_email;
18235        if test "x$withval" != "xno" ; then
18236               dump_email=$withval
18237        fi
18238
18239
18240 fi
18241
18242
18243
18244
18245 # ------------------------------------------
18246 # Where to send job email
18247 # ------------------------------------------
18248 job_email=root@localhost
18249
18250 # Check whether --with-job-email was given.
18251 if test "${with_job_email+set}" = set; then
18252   withval=$with_job_email;
18253        if test "x$withval" != "xno" ; then
18254               job_email=$withval
18255        fi
18256
18257
18258 fi
18259
18260
18261
18262
18263 # ------------------------------------------
18264 # Where to find smtp host
18265 # ------------------------------------------
18266 smtp_host=localhost
18267
18268 # Check whether --with-smtp_host was given.
18269 if test "${with_smtp_host+set}" = set; then
18270   withval=$with_smtp_host;
18271        if test "x$withval" != "xno" ; then
18272               smtp_host=$withval
18273        fi
18274
18275
18276 fi
18277
18278
18279
18280
18281
18282 # ------------------------------------
18283 # Where to place pid files
18284 # ------------------------------------
18285 piddir=/var/run
18286
18287 # Check whether --with-pid-dir was given.
18288 if test "${with_pid_dir+set}" = set; then
18289   withval=$with_pid_dir;
18290         if test "x$withval" != "xno" ; then
18291             piddir=$withval
18292         fi
18293
18294
18295 fi
18296
18297
18298 cat >>confdefs.h <<_ACEOF
18299 #define _PATH_BACULA_PIDDIR "$piddir"
18300 _ACEOF
18301
18302
18303
18304
18305 # ------------------------------------
18306 # Where to place subsys "lock file"
18307 # ------------------------------------
18308 subsysdir=/var/run/subsys
18309
18310 # Check whether --with-subsys-dir was given.
18311 if test "${with_subsys_dir+set}" = set; then
18312   withval=$with_subsys_dir;
18313         if test "x$withval" != "xno" ; then
18314             subsysdir=$withval
18315         fi
18316
18317
18318 fi
18319
18320
18321
18322
18323
18324
18325 # ------------------------------------
18326 # Where to start assigning ports
18327 # ------------------------------------
18328 baseport=9101
18329
18330 # Check whether --with-baseport was given.
18331 if test "${with_baseport+set}" = set; then
18332   withval=$with_baseport;
18333         if test "x$withval" != "xno" ; then
18334              baseport=$withval
18335         fi
18336
18337
18338 fi
18339
18340
18341
18342 dir_port=`expr $baseport`
18343 fd_port=`expr $baseport + 1`
18344 sd_port=`expr $fd_port + 1`
18345
18346
18347
18348
18349
18350
18351 # ------------------------------------------
18352 # Generate passwords
18353 # ------------------------------------------
18354 dir_password=
18355
18356 # Check whether --with-dir-password was given.
18357 if test "${with_dir_password+set}" = set; then
18358   withval=$with_dir_password;
18359        if test "x$withval" != "xno" ; then
18360            dir_password=$withval
18361        fi
18362
18363
18364 fi
18365
18366
18367 if test "x$dir_password" = "x" ; then
18368    if test "x$OPENSSL" = "xnone" ; then
18369       key=`autoconf/randpass 33`
18370    else
18371       key=`openssl rand -base64 33`
18372    fi
18373    dir_password=$key
18374 fi
18375
18376 fd_password=
18377
18378 # Check whether --with-fd-password was given.
18379 if test "${with_fd_password+set}" = set; then
18380   withval=$with_fd_password;
18381        if test "x$withval" != "xno" ; then
18382            fd_password=$withval
18383        fi
18384
18385
18386 fi
18387
18388
18389 if test "x$fd_password" = "x" ; then
18390    if test "x$OPENSSL" = "xnone" ; then
18391       key=`autoconf/randpass 37`
18392    else
18393       key=`openssl rand -base64 33`
18394    fi
18395    fd_password=$key
18396 fi
18397
18398 sd_password=
18399
18400 # Check whether --with-sd-password was given.
18401 if test "${with_sd_password+set}" = set; then
18402   withval=$with_sd_password;
18403        if test "x$withval" != "xno" ; then
18404            sd_password=$withval
18405        fi
18406
18407
18408 fi
18409
18410
18411 if test "x$sd_password" = "x" ; then
18412    if test "x$OPENSSL" = "xnone" ; then
18413       key=`autoconf/randpass 41`
18414    else
18415       key=`openssl rand -base64 33`
18416    fi
18417    sd_password=$key
18418 fi
18419
18420 mon_dir_password=
18421
18422 # Check whether --with-mon-dir-password was given.
18423 if test "${with_mon_dir_password+set}" = set; then
18424   withval=$with_mon_dir_password;
18425        if test "x$withval" != "xno" ; then
18426            mon_dir_password=$withval
18427        fi
18428
18429
18430 fi
18431
18432
18433 if test "x$mon_dir_password" = "x" ; then
18434    if test "x$OPENSSL" = "xnone" ; then
18435       key=`autoconf/randpass 33`
18436    else
18437       key=`openssl rand -base64 33`
18438    fi
18439    mon_dir_password=$key
18440 fi
18441
18442 mon_fd_password=
18443
18444 # Check whether --with-mon-fd-password was given.
18445 if test "${with_mon_fd_password+set}" = set; then
18446   withval=$with_mon_fd_password;
18447        if test "x$withval" != "xno" ; then
18448            mon_fd_password=$withval
18449        fi
18450
18451
18452 fi
18453
18454
18455 if test "x$mon_fd_password" = "x" ; then
18456    if test "x$OPENSSL" = "xnone" ; then
18457       key=`autoconf/randpass 37`
18458    else
18459       key=`openssl rand -base64 33`
18460    fi
18461    mon_fd_password=$key
18462 fi
18463
18464 mon_sd_password=
18465
18466 # Check whether --with-mon-sd-password was given.
18467 if test "${with_mon_sd_password+set}" = set; then
18468   withval=$with_mon_sd_password;
18469        if test "x$withval" != "xno" ; then
18470            mon_sd_password=$withval
18471        fi
18472
18473
18474 fi
18475
18476
18477 if test "x$mon_sd_password" = "x" ; then
18478    if test "x$OPENSSL" = "xnone" ; then
18479       key=`autoconf/randpass 41`
18480    else
18481       key=`openssl rand -base64 33`
18482    fi
18483    mon_sd_password=$key
18484 fi
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494 #
18495 # Handle users and groups for each daemon
18496 #
18497 dir_user=
18498
18499 # Check whether --with-dir_user was given.
18500 if test "${with_dir_user+set}" = set; then
18501   withval=$with_dir_user;
18502         if test "x$withval" != "x" ; then
18503              dir_user=$withval
18504         fi
18505
18506
18507 fi
18508
18509
18510 dir_group=
18511
18512 # Check whether --with-dir_group was given.
18513 if test "${with_dir_group+set}" = set; then
18514   withval=$with_dir_group;
18515         if test "x$withval" != "x" ; then
18516              dir_group=$withval
18517         fi
18518
18519
18520 fi
18521
18522
18523 sd_user=
18524
18525 # Check whether --with-sd_user was given.
18526 if test "${with_sd_user+set}" = set; then
18527   withval=$with_sd_user;
18528         if test "x$withval" != "x" ; then
18529              sd_user=$withval
18530         fi
18531
18532
18533 fi
18534
18535
18536 sd_group=
18537
18538 # Check whether --with-sd_group was given.
18539 if test "${with_sd_group+set}" = set; then
18540   withval=$with_sd_group;
18541         if test "x$withval" != "x" ; then
18542              sd_group=$withval
18543         fi
18544
18545
18546 fi
18547
18548
18549 fd_user=
18550
18551 # Check whether --with-fd_user was given.
18552 if test "${with_fd_user+set}" = set; then
18553   withval=$with_fd_user;
18554         if test "x$withval" != "x" ; then
18555              fd_user=$withval
18556         fi
18557
18558
18559 fi
18560
18561
18562 fd_group=
18563
18564 # Check whether --with-fd_group was given.
18565 if test "${with_fd_group+set}" = set; then
18566   withval=$with_fd_group;
18567         if test "x$withval" != "x" ; then
18568              fd_group=$withval
18569         fi
18570
18571
18572 fi
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585 #
18586 # allow setting default executable permissions
18587 #
18588 SBINPERM=0754
18589
18590 # Check whether --with-sbin-perm was given.
18591 if test "${with_sbin_perm+set}" = set; then
18592   withval=$with_sbin_perm;
18593         if test "x$withval" != "x" ; then
18594             SBINPERM=$withval
18595         fi
18596
18597
18598 fi
18599
18600
18601
18602
18603 # ------------------------------------------------
18604 # Bacula check for various SQL database engines
18605 # ------------------------------------------------
18606
18607 db_found=no
18608 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18609 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18610
18611 # Check whether --with-postgresql was given.
18612 if test "${with_postgresql+set}" = set; then
18613   withval=$with_postgresql;
18614   if test "$withval" != "no"; then
18615       if test "$db_found" = "yes"; then
18616           { echo "$as_me:$LINENO: result: error" >&5
18617 echo "${ECHO_T}error" >&6; }
18618           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18619 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18620    { (exit 1); exit 1; }; };
18621       fi
18622       if test "$withval" = "yes"; then
18623           PG_CONFIG=`which pg_config`
18624           if test -n "$PG_CONFIG";then
18625               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18626               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18627               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18628           elif test -f /usr/local/include/libpq-fe.h; then
18629               POSTGRESQL_INCDIR=/usr/local/include
18630               if test -d /usr/local/lib64; then
18631                  POSTGRESQL_LIBDIR=/usr/local/lib64
18632               else
18633                  POSTGRESQL_LIBDIR=/usr/local/lib
18634               fi
18635               POSTGRESQL_BINDIR=/usr/local/bin
18636           elif test -f /usr/include/libpq-fe.h; then
18637               POSTGRESQL_INCDIR=/usr/include
18638               if test -d /usr/lib64; then
18639                  POSTGRESQL_LIBDIR=/usr/lib64
18640               else
18641                  POSTGRESQL_LIBDIR=/usr/lib
18642               fi
18643               POSTGRESQL_BINDIR=/usr/bin
18644           elif test -f /usr/include/pgsql/libpq-fe.h; then
18645               POSTGRESQL_INCDIR=/usr/include/pgsql
18646               if test -d /usr/lib64/pgsql; then
18647                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18648               else
18649                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18650               fi
18651               POSTGRESQL_BINDIR=/usr/bin
18652           elif test -f /usr/include/postgresql/libpq-fe.h; then
18653               POSTGRESQL_INCDIR=/usr/include/postgresql
18654               if test -d /usr/lib64/postgresql; then
18655                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18656               else
18657                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18658               fi
18659               POSTGRESQL_BINDIR=/usr/bin
18660           else
18661               { echo "$as_me:$LINENO: result: no" >&5
18662 echo "${ECHO_T}no" >&6; }
18663               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18664 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18665    { (exit 1); exit 1; }; }
18666           fi
18667       elif test -f $withval/include/libpq-fe.h; then
18668           POSTGRESQL_INCDIR=$withval/include
18669           POSTGRESQL_LIBDIR=$withval/lib
18670           POSTGRESQL_BINDIR=$withval/bin
18671       elif test -f $withval/include/postgresql/libpq-fe.h; then
18672           POSTGRESQL_INCDIR=$withval/include/postgresql
18673      if test -d $withval/lib64; then
18674          POSTGRESQL_LIBDIR=$withval/lib64
18675      else
18676          POSTGRESQL_LIBDIR=$withval/lib
18677      fi
18678           POSTGRESQL_BINDIR=$withval/bin
18679       else
18680           { echo "$as_me:$LINENO: result: no" >&5
18681 echo "${ECHO_T}no" >&6; }
18682           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18683 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18684    { (exit 1); exit 1; }; }
18685       fi
18686       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18687       { echo "$as_me:$LINENO: checking for crypt" >&5
18688 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18689 if test "${ac_cv_func_crypt+set}" = set; then
18690   echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692   cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18700 #define crypt innocuous_crypt
18701
18702 /* System header to define __stub macros and hopefully few prototypes,
18703     which can conflict with char crypt (); below.
18704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705     <limits.h> exists even on freestanding compilers.  */
18706
18707 #ifdef __STDC__
18708 # include <limits.h>
18709 #else
18710 # include <assert.h>
18711 #endif
18712
18713 #undef crypt
18714
18715 /* Override any GCC internal prototype to avoid an error.
18716    Use char because int might match the return type of a GCC
18717    builtin and then its argument prototype would still apply.  */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char crypt ();
18722 /* The GNU C library defines this for functions which it implements
18723     to always fail with ENOSYS.  Some functions are actually named
18724     something starting with __ and the normal name is an alias.  */
18725 #if defined __stub_crypt || defined __stub___crypt
18726 choke me
18727 #endif
18728
18729 int
18730 main ()
18731 {
18732 return crypt ();
18733   ;
18734   return 0;
18735 }
18736 _ACEOF
18737 rm -f conftest.$ac_objext conftest$ac_exeext
18738 if { (ac_try="$ac_link"
18739 case "(($ac_try" in
18740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741   *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744   (eval "$ac_link") 2>conftest.er1
18745   ac_status=$?
18746   grep -v '^ *+' conftest.er1 >conftest.err
18747   rm -f conftest.er1
18748   cat conftest.err >&5
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); } &&
18751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752   { (case "(($ac_try" in
18753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754   *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757   (eval "$ac_try") 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; } &&
18761          { ac_try='test -s conftest$ac_exeext'
18762   { (case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_try") 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   ac_cv_func_crypt=yes
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776         ac_cv_func_crypt=no
18777 fi
18778
18779 rm -f core conftest.err conftest.$ac_objext \
18780       conftest$ac_exeext conftest.$ac_ext
18781 fi
18782 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18783 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18784 if test $ac_cv_func_crypt = yes; then
18785   :
18786 else
18787   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18788 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18789 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   ac_check_lib_save_LIBS=$LIBS
18793 LIBS="-lcrypt  $LIBS"
18794 cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800
18801 /* Override any GCC internal prototype to avoid an error.
18802    Use char because int might match the return type of a GCC
18803    builtin and then its argument prototype would still apply.  */
18804 #ifdef __cplusplus
18805 extern "C"
18806 #endif
18807 char crypt ();
18808 int
18809 main ()
18810 {
18811 return crypt ();
18812   ;
18813   return 0;
18814 }
18815 _ACEOF
18816 rm -f conftest.$ac_objext conftest$ac_exeext
18817 if { (ac_try="$ac_link"
18818 case "(($ac_try" in
18819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820   *) ac_try_echo=$ac_try;;
18821 esac
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823   (eval "$ac_link") 2>conftest.er1
18824   ac_status=$?
18825   grep -v '^ *+' conftest.er1 >conftest.err
18826   rm -f conftest.er1
18827   cat conftest.err >&5
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); } &&
18830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18831   { (case "(($ac_try" in
18832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833   *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836   (eval "$ac_try") 2>&5
18837   ac_status=$?
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); }; } &&
18840          { ac_try='test -s conftest$ac_exeext'
18841   { (case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_try") 2>&5
18847   ac_status=$?
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); }; }; then
18850   ac_cv_lib_crypt_crypt=yes
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855         ac_cv_lib_crypt_crypt=no
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext \
18859       conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18861 fi
18862 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18863 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18864 if test $ac_cv_lib_crypt_crypt = yes; then
18865   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
18866 fi
18867
18868 fi
18869
18870       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
18871       SQL_LFLAGS=$POSTGRESQL_LFLAGS
18872       SQL_BINDIR=$POSTGRESQL_BINDIR
18873       cat >>confdefs.h <<\_ACEOF
18874 #define HAVE_POSTGRESQL 1
18875 _ACEOF
18876
18877       { echo "$as_me:$LINENO: result: yes" >&5
18878 echo "${ECHO_T}yes" >&6; }
18879       db_found=yes
18880       support_postgresql=yes
18881       db_name=PostgreSQL
18882       DB_NAME=postgresql
18883   else
18884       { echo "$as_me:$LINENO: result: no" >&5
18885 echo "${ECHO_T}no" >&6; }
18886   fi
18887
18888 else
18889
18890   { echo "$as_me:$LINENO: result: no" >&5
18891 echo "${ECHO_T}no" >&6; }
18892
18893 fi
18894
18895
18896
18897
18898
18899
18900
18901
18902 db_found=no
18903 { echo "$as_me:$LINENO: checking for MySQL support" >&5
18904 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
18905
18906 # Check whether --with-mysql was given.
18907 if test "${with_mysql+set}" = set; then
18908   withval=$with_mysql;
18909   if test "$withval" != "no"; then
18910         if test "$withval" = "yes"; then
18911            if test -f /usr/local/mysql/include/mysql/mysql.h; then
18912                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
18913                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
18914                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
18915                    else
18916                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
18917                    fi
18918                    MYSQL_BINDIR=/usr/local/mysql/bin
18919            elif test -f /usr/include/mysql/mysql.h; then
18920                    MYSQL_INCDIR=/usr/include/mysql
18921                    if test -f /usr/lib64/mysql/libmysqlclient.a; then
18922                            MYSQL_LIBDIR=/usr/lib64/mysql
18923                    else
18924                            MYSQL_LIBDIR=/usr/lib/mysql
18925                    fi
18926                    MYSQL_BINDIR=/usr/bin
18927            elif test -f /usr/include/mysql.h; then
18928                    MYSQL_INCDIR=/usr/include
18929                    if test -f /usr/lib64/libmysqlclient.a; then
18930                            MYSQL_LIBDIR=/usr/lib64
18931                    else
18932                            MYSQL_LIBDIR=/usr/lib
18933                    fi
18934                    MYSQL_BINDIR=/usr/bin
18935            elif test -f /usr/local/include/mysql/mysql.h; then
18936                    MYSQL_INCDIR=/usr/local/include/mysql
18937                    if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
18938                            MYSQL_LIBDIR=/usr/local/lib64/mysql
18939                    else
18940                            MYSQL_LIBDIR=/usr/local/lib/mysql
18941                    fi
18942                    MYSQL_BINDIR=/usr/local/bin
18943            elif test -f /usr/local/include/mysql.h; then
18944                    MYSQL_INCDIR=/usr/local/include
18945                    if test -f /usr/local/lib64/libmysqlclient.a; then
18946                            MYSQL_LIBDIR=/usr/local/lib64
18947                    else
18948                            MYSQL_LIBDIR=/usr/local/lib
18949                    fi
18950                    MYSQL_BINDIR=/usr/local/bin
18951            else
18952               { echo "$as_me:$LINENO: result: no" >&5
18953 echo "${ECHO_T}no" >&6; }
18954               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
18955 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
18956    { (exit 1); exit 1; }; }
18957            fi
18958         else
18959            if test -f $withval/include/mysql/mysql.h; then
18960               MYSQL_INCDIR=$withval/include/mysql
18961               if test -f $withval/lib64/mysql/libmysqlclient.a; then
18962                  MYSQL_LIBDIR=$withval/lib64/mysql
18963               else
18964                  MYSQL_LIBDIR=$withval/lib/mysql
18965                  # Solaris ...
18966                  if test -f $withval/lib/libmysqlclient.so; then
18967                     MYSQL_LIBDIR=$withval/lib
18968                  fi
18969               fi
18970               MYSQL_BINDIR=$withval/bin
18971            elif test -f $withval/include/mysql.h; then
18972               MYSQL_INCDIR=$withval/include
18973               if test -f "$withval/lib64/libmysqlclient.a"; then
18974                  MYSQL_LIBDIR=$withval/lib64
18975               else
18976                  MYSQL_LIBDIR=$withval/lib
18977               fi
18978               MYSQL_BINDIR=$withval/bin
18979            else
18980               { echo "$as_me:$LINENO: result: no" >&5
18981 echo "${ECHO_T}no" >&6; }
18982               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
18983 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
18984    { (exit 1); exit 1; }; }
18985            fi
18986         fi
18987     SQL_INCLUDE=-I$MYSQL_INCDIR
18988     if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
18989        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
18990        cat >>confdefs.h <<\_ACEOF
18991 #define HAVE_THREAD_SAFE_MYSQL 1
18992 _ACEOF
18993
18994     else
18995        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
18996     fi
18997     SQL_BINDIR=$MYSQL_BINDIR
18998
18999     cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_MYSQL 1
19001 _ACEOF
19002
19003     { echo "$as_me:$LINENO: result: yes" >&5
19004 echo "${ECHO_T}yes" >&6; }
19005     db_found=yes
19006     support_mysql=yes
19007     db_name=MySQL
19008     DB_NAME=mysql
19009
19010   else
19011         { echo "$as_me:$LINENO: result: no" >&5
19012 echo "${ECHO_T}no" >&6; }
19013   fi
19014
19015
19016 fi
19017
19018
19019
19020 # Check whether --with-embedded-mysql was given.
19021 if test "${with_embedded_mysql+set}" = set; then
19022   withval=$with_embedded_mysql;
19023   if test "$withval" != "no"; then
19024         if test "$withval" = "yes"; then
19025                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19026                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19027                         if test -d /usr/local/mysql/lib64/mysql; then
19028                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19029                         else
19030                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19031                         fi
19032                         MYSQL_BINDIR=/usr/local/mysql/bin
19033                 elif test -f /usr/include/mysql/mysql.h; then
19034                         MYSQL_INCDIR=/usr/include/mysql
19035                         if test -d /usr/lib64/mysql; then
19036                                 MYSQL_LIBDIR=/usr/lib64/mysql
19037                         else
19038                                 MYSQL_LIBDIR=/usr/lib/mysql
19039                         fi
19040                         MYSQL_BINDIR=/usr/bin
19041                 elif test -f /usr/include/mysql.h; then
19042                         MYSQL_INCDIR=/usr/include
19043                         if test -d /usr/lib64; then
19044                                 MYSQL_LIBDIR=/usr/lib64
19045                         else
19046                                 MYSQL_LIBDIR=/usr/lib
19047                         fi
19048                         MYSQL_BINDIR=/usr/bin
19049                 elif test -f /usr/local/include/mysql/mysql.h; then
19050                         MYSQL_INCDIR=/usr/local/include/mysql
19051                         if test -d /usr/local/lib64/mysql; then
19052                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19053                         else
19054                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19055                         fi
19056                         MYSQL_BINDIR=/usr/local/bin
19057                 elif test -f /usr/local/include/mysql.h; then
19058                         MYSQL_INCDIR=/usr/local/include
19059                         if test -d /usr/local/lib64; then
19060                                 MYSQL_LIBDIR=/usr/local/lib64
19061                         else
19062                                 MYSQL_LIBDIR=/usr/local/lib
19063                         fi
19064                         MYSQL_BINDIR=/usr/local/bin
19065                 else
19066                    { echo "$as_me:$LINENO: result: no" >&5
19067 echo "${ECHO_T}no" >&6; }
19068                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19069 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19070    { (exit 1); exit 1; }; }
19071                 fi
19072         else
19073                 if test -f $withval/include/mysql/mysql.h; then
19074                         MYSQL_INCDIR=$withval/include/mysql
19075                         if test -d $withval/lib64/mysql; then
19076                                 MYSQL_LIBDIR=$withval/lib64/mysql
19077                         else
19078                                 MYSQL_LIBDIR=$withval/lib/mysql
19079                         fi
19080                         MYSQL_BINDIR=$withval/bin
19081                 elif test -f $withval/include/mysql.h; then
19082                         MYSQL_INCDIR=$withval/include
19083                         if test -d $withval/lib64; then
19084                                 MYSQL_LIBDIR=$withval/lib64
19085                         else
19086                                 MYSQL_LIBDIR=$withval/lib
19087                         fi
19088                         MYSQL_BINDIR=$withval/bin
19089                 else
19090                    { echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6; }
19092                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19093 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19094    { (exit 1); exit 1; }; }
19095                 fi
19096         fi
19097     SQL_INCLUDE=-I$MYSQL_INCDIR
19098     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19099     SQL_BINDIR=$MYSQL_BINDIR
19100
19101     cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_MYSQL 1
19103 _ACEOF
19104
19105     cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_EMBEDDED_MYSQL 1
19107 _ACEOF
19108
19109     { echo "$as_me:$LINENO: result: yes" >&5
19110 echo "${ECHO_T}yes" >&6; }
19111     db_found=yes
19112     support_mysql=yes
19113     db_name=MySQL
19114     DB_NAME=mysql
19115
19116   else
19117         { echo "$as_me:$LINENO: result: no" >&5
19118 echo "${ECHO_T}no" >&6; }
19119   fi
19120
19121
19122 fi
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133 db_found=no
19134 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19135 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19136
19137 # Check whether --with-sqlite3 was given.
19138 if test "${with_sqlite3+set}" = set; then
19139   withval=$with_sqlite3;
19140   if test "$withval" != "no"; then
19141      if test "$withval" = "yes"; then
19142         if test -f /usr/local/include/sqlite3.h; then
19143            SQLITE_INCDIR=/usr/local/include
19144            if test -d /usr/local/lib64; then
19145               SQLITE_LIBDIR=/usr/local/lib64
19146            else
19147               SQLITE_LIBDIR=/usr/local/lib
19148            fi
19149            SQLITE_BINDIR=/usr/local/bin
19150         elif test -f /usr/include/sqlite3.h; then
19151            SQLITE_INCDIR=/usr/include
19152            if test -d /usr/lib64; then
19153               SQLITE_LIBDIR=/usr/lib64
19154            else
19155               SQLITE_LIBDIR=/usr/lib
19156            fi
19157            SQLITE_BINDIR=/usr/bin
19158         elif test -f $prefix/include/sqlite3.h; then
19159            SQLITE_INCDIR=$prefix/include
19160            if test -d $prefix/lib64; then
19161               SQLITE_LIBDIR=$prefix/lib64
19162            else
19163               SQLITE_LIBDIR=$prefix/lib
19164            fi
19165            SQLITE_BINDIR=$prefix/bin
19166         else
19167            { echo "$as_me:$LINENO: result: no" >&5
19168 echo "${ECHO_T}no" >&6; }
19169            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19170 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19171    { (exit 1); exit 1; }; }
19172         fi
19173      else
19174         if test -f $withval/sqlite3.h; then
19175            SQLITE_INCDIR=$withval
19176            SQLITE_LIBDIR=$withval
19177            SQLITE_BINDIR=$withval
19178         elif test -f $withval/include/sqlite3.h; then
19179            SQLITE_INCDIR=$withval/include
19180            if test -d $withval/lib64; then
19181               SQLITE_LIBDIR=$withval/lib64
19182            else
19183               SQLITE_LIBDIR=$withval/lib
19184            fi
19185            SQLITE_BINDIR=$withval/bin
19186         else
19187            { echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6; }
19189            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19190 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19191    { (exit 1); exit 1; }; }
19192         fi
19193      fi
19194      SQL_INCLUDE=-I$SQLITE_INCDIR
19195      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19196      SQL_BINDIR=$SQLITE_BINDIR
19197
19198      cat >>confdefs.h <<\_ACEOF
19199 #define HAVE_SQLITE3 1
19200 _ACEOF
19201
19202      { echo "$as_me:$LINENO: result: yes" >&5
19203 echo "${ECHO_T}yes" >&6; }
19204      db_found=yes
19205      support_sqlite3=yes
19206      db_name=SQLite3
19207      DB_NAME=sqlite3
19208
19209   else
19210      { echo "$as_me:$LINENO: result: no" >&5
19211 echo "${ECHO_T}no" >&6; }
19212   fi
19213
19214 else
19215
19216   { echo "$as_me:$LINENO: result: no" >&5
19217 echo "${ECHO_T}no" >&6; }
19218
19219 fi
19220
19221
19222
19223
19224
19225
19226
19227
19228 db_found=no
19229 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19230 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19231
19232 # Check whether --with-sqlite was given.
19233 if test "${with_sqlite+set}" = set; then
19234   withval=$with_sqlite;
19235   if test "$withval" != "no"; then
19236      if test "$withval" = "yes"; then
19237         if test -f /usr/local/include/sqlite.h; then
19238            SQLITE_INCDIR=/usr/local/include
19239            if test -d /usr/local/lib64; then
19240               SQLITE_LIBDIR=/usr/local/lib64
19241            else
19242               SQLITE_LIBDIR=/usr/local/lib
19243            fi
19244            SQLITE_BINDIR=/usr/local/bin
19245         elif test -f /usr/include/sqlite.h; then
19246            SQLITE_INCDIR=/usr/include
19247            if test -d /usr/lib64; then
19248               SQLITE_LIBDIR=/usr/lib64
19249            else
19250               SQLITE_LIBDIR=/usr/lib
19251            fi
19252            SQLITE_BINDIR=/usr/bin
19253         elif test -f $prefix/include/sqlite.h; then
19254            SQLITE_INCDIR=$prefix/include
19255            if test -d $prefix/lib64; then
19256               SQLITE_LIBDIR=$prefix/lib64
19257            else
19258               SQLITE_LIBDIR=$prefix/lib
19259            fi
19260            SQLITE_BINDIR=$prefix/bin
19261         else
19262            { echo "$as_me:$LINENO: result: no" >&5
19263 echo "${ECHO_T}no" >&6; }
19264            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19265 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19266    { (exit 1); exit 1; }; }
19267         fi
19268      else
19269         if test -f $withval/sqlite.h; then
19270            SQLITE_INCDIR=$withval
19271            SQLITE_LIBDIR=$withval
19272            SQLITE_BINDIR=$withval
19273         elif test -f $withval/include/sqlite.h; then
19274            SQLITE_INCDIR=$withval/include
19275            if test -d $withval/lib64; then
19276               SQLITE_LIBDIR=$withval/lib64
19277            else
19278               SQLITE_LIBDIR=$withval/lib
19279            fi
19280            SQLITE_BINDIR=$withval/bin
19281         else
19282            { echo "$as_me:$LINENO: result: no" >&5
19283 echo "${ECHO_T}no" >&6; }
19284            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19285 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19286    { (exit 1); exit 1; }; }
19287         fi
19288      fi
19289      SQL_INCLUDE=-I$SQLITE_INCDIR
19290      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19291      SQL_BINDIR=$SQLITE_BINDIR
19292
19293      cat >>confdefs.h <<\_ACEOF
19294 #define HAVE_SQLITE 1
19295 _ACEOF
19296
19297      { echo "$as_me:$LINENO: result: yes" >&5
19298 echo "${ECHO_T}yes" >&6; }
19299      db_found=yes
19300      support_sqlite=yes
19301      db_name=SQLite
19302      DB_NAME=sqlite
19303
19304   else
19305      { echo "$as_me:$LINENO: result: no" >&5
19306 echo "${ECHO_T}no" >&6; }
19307   fi
19308
19309 else
19310
19311   { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19313
19314 fi
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define PROTOTYPES 1
19327 _ACEOF
19328
19329
19330 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19331     if test -z "$CCOPTS"; then
19332         CCOPTS='-g -O2 -Wall'
19333     fi
19334     CFLAGS="$CCOPTS"
19335 fi
19336
19337
19338
19339
19340 largefile_support="no"
19341
19342    # Check whether --enable-largefile was given.
19343 if test "${enable_largefile+set}" = set; then
19344   enableval=$enable_largefile;
19345 fi
19346
19347    if test "$enable_largefile" != no; then
19348      if test -n "$ac_tool_prefix"; then
19349   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19350 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19353 if test "${ac_cv_prog_GETCONF+set}" = set; then
19354   echo $ECHO_N "(cached) $ECHO_C" >&6
19355 else
19356   if test -n "$GETCONF"; then
19357   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19358 else
19359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19360 for as_dir in $PATH
19361 do
19362   IFS=$as_save_IFS
19363   test -z "$as_dir" && as_dir=.
19364   for ac_exec_ext in '' $ac_executable_extensions; do
19365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19366     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19368     break 2
19369   fi
19370 done
19371 done
19372 IFS=$as_save_IFS
19373
19374 fi
19375 fi
19376 GETCONF=$ac_cv_prog_GETCONF
19377 if test -n "$GETCONF"; then
19378   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19379 echo "${ECHO_T}$GETCONF" >&6; }
19380 else
19381   { echo "$as_me:$LINENO: result: no" >&5
19382 echo "${ECHO_T}no" >&6; }
19383 fi
19384
19385
19386 fi
19387 if test -z "$ac_cv_prog_GETCONF"; then
19388   ac_ct_GETCONF=$GETCONF
19389   # Extract the first word of "getconf", so it can be a program name with args.
19390 set dummy getconf; ac_word=$2
19391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19393 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   if test -n "$ac_ct_GETCONF"; then
19397   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19398 else
19399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19400 for as_dir in $PATH
19401 do
19402   IFS=$as_save_IFS
19403   test -z "$as_dir" && as_dir=.
19404   for ac_exec_ext in '' $ac_executable_extensions; do
19405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19406     ac_cv_prog_ac_ct_GETCONF="getconf"
19407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19408     break 2
19409   fi
19410 done
19411 done
19412 IFS=$as_save_IFS
19413
19414 fi
19415 fi
19416 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19417 if test -n "$ac_ct_GETCONF"; then
19418   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19419 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19420 else
19421   { echo "$as_me:$LINENO: result: no" >&5
19422 echo "${ECHO_T}no" >&6; }
19423 fi
19424
19425   if test "x$ac_ct_GETCONF" = x; then
19426     GETCONF=""
19427   else
19428     case $cross_compiling:$ac_tool_warned in
19429 yes:)
19430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19431 whose name does not start with the host triplet.  If you think this
19432 configuration is useful to you, please write to autoconf@gnu.org." >&5
19433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19434 whose name does not start with the host triplet.  If you think this
19435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19436 ac_tool_warned=yes ;;
19437 esac
19438     GETCONF=$ac_ct_GETCONF
19439   fi
19440 else
19441   GETCONF="$ac_cv_prog_GETCONF"
19442 fi
19443
19444      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19445 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19446 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19447   echo $ECHO_N "(cached) $ECHO_C" >&6
19448 else
19449   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19450         ac_cv_sys_largefile_CFLAGS=no
19451         case "$host_os" in
19452            # IRIX 6.2 and later require cc -n32.
19453            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19454              if test "$GCC" != yes; then
19455                ac_cv_sys_largefile_CFLAGS=-n32
19456              fi
19457              ac_save_CC="$CC"
19458              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19459              cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465
19466 int
19467 main ()
19468 {
19469
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478   *) ac_try_echo=$ac_try;;
19479 esac
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481   (eval "$ac_link") 2>conftest.er1
19482   ac_status=$?
19483   grep -v '^ *+' conftest.er1 >conftest.err
19484   rm -f conftest.er1
19485   cat conftest.err >&5
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); } &&
19488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19489   { (case "(($ac_try" in
19490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491   *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494   (eval "$ac_try") 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; } &&
19498          { ac_try='test -s conftest$ac_exeext'
19499   { (case "(($ac_try" in
19500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501   *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504   (eval "$ac_try") 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; }; then
19508   :
19509 else
19510   echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513         ac_cv_sys_largefile_CFLAGS=no
19514 fi
19515
19516 rm -f core conftest.err conftest.$ac_objext \
19517       conftest$ac_exeext conftest.$ac_ext
19518              CC="$ac_save_CC"
19519            esac
19520       }
19521 fi
19522 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19523 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19524      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19525 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19526 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19527   echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19530         ac_cv_sys_largefile_LDFLAGS=no
19531
19532       }
19533 fi
19534 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19535 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19536      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19537 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19538 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19539   echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19542         ac_cv_sys_largefile_LIBS=no
19543
19544       }
19545 fi
19546 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19547 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19548
19549      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19550        case "$ac_flag" in
19551        no) ;;
19552        -D_FILE_OFFSET_BITS=*) ;;
19553        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19554        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19555        -D?* | -I?*)
19556          case "$ac_flag" in
19557    no) ;;
19558    ?*)
19559      case "$CPPFLAGS" in
19560      '') CPPFLAGS="$ac_flag" ;;
19561      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19562      esac ;;
19563    esac ;;
19564        *)
19565          case "$ac_flag" in
19566    no) ;;
19567    ?*)
19568      case "$CFLAGS" in
19569      '') CFLAGS="$ac_flag" ;;
19570      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19571      esac ;;
19572    esac ;;
19573        esac
19574      done
19575      case "$ac_cv_sys_largefile_LDFLAGS" in
19576    no) ;;
19577    ?*)
19578      case "$LDFLAGS" in
19579      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19580      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19581      esac ;;
19582    esac
19583      case "$ac_cv_sys_largefile_LIBS" in
19584    no) ;;
19585    ?*)
19586      case "$LIBS" in
19587      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19588      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19589      esac ;;
19590    esac
19591      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19592 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19593 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   ac_cv_sys_file_offset_bits=no
19597       ac_cv_sys_file_offset_bits=64
19598       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19599         case "$ac_flag" in
19600         -D_FILE_OFFSET_BITS)
19601           ac_cv_sys_file_offset_bits=1 ;;
19602         -D_FILE_OFFSET_BITS=*)
19603           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19604         esac
19605       done
19606
19607 fi
19608 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19609 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19610    if test "$ac_cv_sys_file_offset_bits" != no; then
19611
19612 cat >>confdefs.h <<_ACEOF
19613 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19614 _ACEOF
19615
19616    fi
19617      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19618 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19619 if test "${ac_cv_sys_largefile_source+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   ac_cv_sys_largefile_source=no
19623       ac_cv_sys_largefile_source=1
19624       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19625         case "$ac_flag" in
19626         -D_LARGEFILE_SOURCE)
19627           ac_cv_sys_largefile_source=1 ;;
19628         -D_LARGEFILE_SOURCE=*)
19629           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19630         esac
19631       done
19632
19633 fi
19634 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19635 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19636    if test "$ac_cv_sys_largefile_source" != no; then
19637
19638 cat >>confdefs.h <<_ACEOF
19639 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19640 _ACEOF
19641
19642    fi
19643      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19644 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19645 if test "${ac_cv_sys_large_files+set}" = set; then
19646   echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648   ac_cv_sys_large_files=no
19649       ac_cv_sys_large_files=1
19650       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19651         case "$ac_flag" in
19652         -D_LARGE_FILES)
19653           ac_cv_sys_large_files=1 ;;
19654         -D_LARGE_FILES=*)
19655           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19656         esac
19657       done
19658
19659 fi
19660 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19661 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19662    if test "$ac_cv_sys_large_files" != no; then
19663
19664 cat >>confdefs.h <<_ACEOF
19665 #define _LARGE_FILES $ac_cv_sys_large_files
19666 _ACEOF
19667
19668    fi
19669    fi
19670
19671
19672
19673 { echo "$as_me:$LINENO: checking for X" >&5
19674 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19675
19676
19677 # Check whether --with-x was given.
19678 if test "${with_x+set}" = set; then
19679   withval=$with_x;
19680 fi
19681
19682 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19683 if test "x$with_x" = xno; then
19684   # The user explicitly disabled X.
19685   have_x=disabled
19686 else
19687   case $x_includes,$x_libraries in #(
19688     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19689 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19690    { (exit 1); exit 1; }; };; #(
19691     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19692   echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694   # One or both of the vars are not set, and there is no cached value.
19695 ac_x_includes=no ac_x_libraries=no
19696 rm -f -r conftest.dir
19697 if mkdir conftest.dir; then
19698   cd conftest.dir
19699   cat >Imakefile <<'_ACEOF'
19700 incroot:
19701         @echo incroot='${INCROOT}'
19702 usrlibdir:
19703         @echo usrlibdir='${USRLIBDIR}'
19704 libdir:
19705         @echo libdir='${LIBDIR}'
19706 _ACEOF
19707   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19708     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19709     for ac_var in incroot usrlibdir libdir; do
19710       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19711     done
19712     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19713     for ac_extension in a so sl; do
19714       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19715          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19716         ac_im_usrlibdir=$ac_im_libdir; break
19717       fi
19718     done
19719     # Screen out bogus values from the imake configuration.  They are
19720     # bogus both because they are the default anyway, and because
19721     # using them would break gcc on systems where it needs fixed includes.
19722     case $ac_im_incroot in
19723         /usr/include) ac_x_includes= ;;
19724         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19725     esac
19726     case $ac_im_usrlibdir in
19727         /usr/lib | /lib) ;;
19728         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19729     esac
19730   fi
19731   cd ..
19732   rm -f -r conftest.dir
19733 fi
19734
19735 # Standard set of common directories for X headers.
19736 # Check X11 before X11Rn because it is often a symlink to the current release.
19737 ac_x_header_dirs='
19738 /usr/X11/include
19739 /usr/X11R6/include
19740 /usr/X11R5/include
19741 /usr/X11R4/include
19742
19743 /usr/include/X11
19744 /usr/include/X11R6
19745 /usr/include/X11R5
19746 /usr/include/X11R4
19747
19748 /usr/local/X11/include
19749 /usr/local/X11R6/include
19750 /usr/local/X11R5/include
19751 /usr/local/X11R4/include
19752
19753 /usr/local/include/X11
19754 /usr/local/include/X11R6
19755 /usr/local/include/X11R5
19756 /usr/local/include/X11R4
19757
19758 /usr/X386/include
19759 /usr/x386/include
19760 /usr/XFree86/include/X11
19761
19762 /usr/include
19763 /usr/local/include
19764 /usr/unsupported/include
19765 /usr/athena/include
19766 /usr/local/x11r5/include
19767 /usr/lpp/Xamples/include
19768
19769 /usr/openwin/include
19770 /usr/openwin/share/include'
19771
19772 if test "$ac_x_includes" = no; then
19773   # Guess where to find include files, by looking for Xlib.h.
19774   # First, try using that file with no special directory specified.
19775   cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781 #include <X11/Xlib.h>
19782 _ACEOF
19783 if { (ac_try="$ac_cpp conftest.$ac_ext"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } >/dev/null; then
19796   if test -s conftest.err; then
19797     ac_cpp_err=$ac_c_preproc_warn_flag
19798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19799   else
19800     ac_cpp_err=
19801   fi
19802 else
19803   ac_cpp_err=yes
19804 fi
19805 if test -z "$ac_cpp_err"; then
19806   # We can compile using X headers with no special include directory.
19807 ac_x_includes=
19808 else
19809   echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812   for ac_dir in $ac_x_header_dirs; do
19813   if test -r "$ac_dir/X11/Xlib.h"; then
19814     ac_x_includes=$ac_dir
19815     break
19816   fi
19817 done
19818 fi
19819
19820 rm -f conftest.err conftest.$ac_ext
19821 fi # $ac_x_includes = no
19822
19823 if test "$ac_x_libraries" = no; then
19824   # Check for the libraries.
19825   # See if we find them without any special options.
19826   # Don't add to $LIBS permanently.
19827   ac_save_LIBS=$LIBS
19828   LIBS="-lXt $LIBS"
19829   cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h.  */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h.  */
19835 #include <X11/Xlib.h>
19836 int
19837 main ()
19838 {
19839 XrmInitialize ()
19840   ;
19841   return 0;
19842 }
19843 _ACEOF
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (ac_try="$ac_link"
19846 case "(($ac_try" in
19847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848   *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851   (eval "$ac_link") 2>conftest.er1
19852   ac_status=$?
19853   grep -v '^ *+' conftest.er1 >conftest.err
19854   rm -f conftest.er1
19855   cat conftest.err >&5
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } &&
19858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19859   { (case "(($ac_try" in
19860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861   *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864   (eval "$ac_try") 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; } &&
19868          { ac_try='test -s conftest$ac_exeext'
19869   { (case "(($ac_try" in
19870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871   *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874   (eval "$ac_try") 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; }; then
19878   LIBS=$ac_save_LIBS
19879 # We can link X programs with no special library path.
19880 ac_x_libraries=
19881 else
19882   echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885         LIBS=$ac_save_LIBS
19886 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19887 do
19888   # Don't even attempt the hair of trying to link an X program!
19889   for ac_extension in a so sl; do
19890     if test -r "$ac_dir/libXt.$ac_extension"; then
19891       ac_x_libraries=$ac_dir
19892       break 2
19893     fi
19894   done
19895 done
19896 fi
19897
19898 rm -f core conftest.err conftest.$ac_objext \
19899       conftest$ac_exeext conftest.$ac_ext
19900 fi # $ac_x_libraries = no
19901
19902 case $ac_x_includes,$ac_x_libraries in #(
19903   no,* | *,no | *\'*)
19904     # Didn't find X, or a directory has "'" in its name.
19905     ac_cv_have_x="have_x=no";; #(
19906   *)
19907     # Record where we found X for the cache.
19908     ac_cv_have_x="have_x=yes\
19909         ac_x_includes='$ac_x_includes'\
19910         ac_x_libraries='$ac_x_libraries'"
19911 esac
19912 fi
19913 ;; #(
19914     *) have_x=yes;;
19915   esac
19916   eval "$ac_cv_have_x"
19917 fi # $with_x != no
19918
19919 if test "$have_x" != yes; then
19920   { echo "$as_me:$LINENO: result: $have_x" >&5
19921 echo "${ECHO_T}$have_x" >&6; }
19922   no_x=yes
19923 else
19924   # If each of the values was on the command line, it overrides each guess.
19925   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19926   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19927   # Update the cache value to reflect the command line values.
19928   ac_cv_have_x="have_x=yes\
19929         ac_x_includes='$x_includes'\
19930         ac_x_libraries='$x_libraries'"
19931   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19932 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19933 fi
19934
19935 if test "$no_x" = yes; then
19936   # Not all programs may use this symbol, but it does not hurt to define it.
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define X_DISPLAY_MISSING 1
19940 _ACEOF
19941
19942   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19943 else
19944   if test -n "$x_includes"; then
19945     X_CFLAGS="$X_CFLAGS -I$x_includes"
19946   fi
19947
19948   # It would also be nice to do this for all -L options, not just this one.
19949   if test -n "$x_libraries"; then
19950     X_LIBS="$X_LIBS -L$x_libraries"
19951     # For Solaris; some versions of Sun CC require a space after -R and
19952     # others require no space.  Words are not sufficient . . . .
19953     case `(uname -sr) 2>/dev/null` in
19954     "SunOS 5"*)
19955       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19956 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19957       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19958       cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964
19965 int
19966 main ()
19967 {
19968
19969   ;
19970   return 0;
19971 }
19972 _ACEOF
19973 rm -f conftest.$ac_objext conftest$ac_exeext
19974 if { (ac_try="$ac_link"
19975 case "(($ac_try" in
19976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977   *) ac_try_echo=$ac_try;;
19978 esac
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980   (eval "$ac_link") 2>conftest.er1
19981   ac_status=$?
19982   grep -v '^ *+' conftest.er1 >conftest.err
19983   rm -f conftest.er1
19984   cat conftest.err >&5
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } &&
19987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19988   { (case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_try") 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; } &&
19997          { ac_try='test -s conftest$ac_exeext'
19998   { (case "(($ac_try" in
19999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000   *) ac_try_echo=$ac_try;;
20001 esac
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003   (eval "$ac_try") 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; }; then
20007   ac_R_nospace=yes
20008 else
20009   echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012         ac_R_nospace=no
20013 fi
20014
20015 rm -f core conftest.err conftest.$ac_objext \
20016       conftest$ac_exeext conftest.$ac_ext
20017       if test $ac_R_nospace = yes; then
20018         { echo "$as_me:$LINENO: result: no" >&5
20019 echo "${ECHO_T}no" >&6; }
20020         X_LIBS="$X_LIBS -R$x_libraries"
20021       else
20022         LIBS="$ac_xsave_LIBS -R $x_libraries"
20023         cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029
20030 int
20031 main ()
20032 {
20033
20034   ;
20035   return 0;
20036 }
20037 _ACEOF
20038 rm -f conftest.$ac_objext conftest$ac_exeext
20039 if { (ac_try="$ac_link"
20040 case "(($ac_try" in
20041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042   *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045   (eval "$ac_link") 2>conftest.er1
20046   ac_status=$?
20047   grep -v '^ *+' conftest.er1 >conftest.err
20048   rm -f conftest.er1
20049   cat conftest.err >&5
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); } &&
20052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20053   { (case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_try") 2>&5
20059   ac_status=$?
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); }; } &&
20062          { ac_try='test -s conftest$ac_exeext'
20063   { (case "(($ac_try" in
20064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065   *) ac_try_echo=$ac_try;;
20066 esac
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068   (eval "$ac_try") 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; }; then
20072   ac_R_space=yes
20073 else
20074   echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077         ac_R_space=no
20078 fi
20079
20080 rm -f core conftest.err conftest.$ac_objext \
20081       conftest$ac_exeext conftest.$ac_ext
20082         if test $ac_R_space = yes; then
20083           { echo "$as_me:$LINENO: result: yes" >&5
20084 echo "${ECHO_T}yes" >&6; }
20085           X_LIBS="$X_LIBS -R $x_libraries"
20086         else
20087           { echo "$as_me:$LINENO: result: neither works" >&5
20088 echo "${ECHO_T}neither works" >&6; }
20089         fi
20090       fi
20091       LIBS=$ac_xsave_LIBS
20092     esac
20093   fi
20094
20095   # Check for system-dependent libraries X programs must link with.
20096   # Do this before checking for the system-independent R6 libraries
20097   # (-lICE), since we may need -lsocket or whatever for X linking.
20098
20099   if test "$ISC" = yes; then
20100     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20101   else
20102     # Martyn Johnson says this is needed for Ultrix, if the X
20103     # libraries were built with DECnet support.  And Karl Berry says
20104     # the Alpha needs dnet_stub (dnet does not exist).
20105     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20106     cat >conftest.$ac_ext <<_ACEOF
20107 /* confdefs.h.  */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h.  */
20112
20113 /* Override any GCC internal prototype to avoid an error.
20114    Use char because int might match the return type of a GCC
20115    builtin and then its argument prototype would still apply.  */
20116 #ifdef __cplusplus
20117 extern "C"
20118 #endif
20119 char XOpenDisplay ();
20120 int
20121 main ()
20122 {
20123 return XOpenDisplay ();
20124   ;
20125   return 0;
20126 }
20127 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143   { (case "(($ac_try" in
20144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145   *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148   (eval "$ac_try") 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; } &&
20152          { ac_try='test -s conftest$ac_exeext'
20153   { (case "(($ac_try" in
20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155   *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158   (eval "$ac_try") 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   :
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20168 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20170   echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172   ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-ldnet  $LIBS"
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h.  */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h.  */
20180
20181 /* Override any GCC internal prototype to avoid an error.
20182    Use char because int might match the return type of a GCC
20183    builtin and then its argument prototype would still apply.  */
20184 #ifdef __cplusplus
20185 extern "C"
20186 #endif
20187 char dnet_ntoa ();
20188 int
20189 main ()
20190 {
20191 return dnet_ntoa ();
20192   ;
20193   return 0;
20194 }
20195 _ACEOF
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200   *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203   (eval "$ac_link") 2>conftest.er1
20204   ac_status=$?
20205   grep -v '^ *+' conftest.er1 >conftest.err
20206   rm -f conftest.er1
20207   cat conftest.err >&5
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } &&
20210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20211   { (case "(($ac_try" in
20212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213   *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216   (eval "$ac_try") 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; } &&
20220          { ac_try='test -s conftest$ac_exeext'
20221   { (case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_try") 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; }; then
20230   ac_cv_lib_dnet_dnet_ntoa=yes
20231 else
20232   echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235         ac_cv_lib_dnet_dnet_ntoa=no
20236 fi
20237
20238 rm -f core conftest.err conftest.$ac_objext \
20239       conftest$ac_exeext conftest.$ac_ext
20240 LIBS=$ac_check_lib_save_LIBS
20241 fi
20242 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20243 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20244 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20245   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20246 fi
20247
20248     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20249       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20250 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   ac_check_lib_save_LIBS=$LIBS
20255 LIBS="-ldnet_stub  $LIBS"
20256 cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262
20263 /* Override any GCC internal prototype to avoid an error.
20264    Use char because int might match the return type of a GCC
20265    builtin and then its argument prototype would still apply.  */
20266 #ifdef __cplusplus
20267 extern "C"
20268 #endif
20269 char dnet_ntoa ();
20270 int
20271 main ()
20272 {
20273 return dnet_ntoa ();
20274   ;
20275   return 0;
20276 }
20277 _ACEOF
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_link") 2>conftest.er1
20286   ac_status=$?
20287   grep -v '^ *+' conftest.er1 >conftest.err
20288   rm -f conftest.er1
20289   cat conftest.err >&5
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } &&
20292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20293   { (case "(($ac_try" in
20294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295   *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298   (eval "$ac_try") 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; } &&
20302          { ac_try='test -s conftest$ac_exeext'
20303   { (case "(($ac_try" in
20304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305   *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308   (eval "$ac_try") 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); }; }; then
20312   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20313 else
20314   echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20316
20317         ac_cv_lib_dnet_stub_dnet_ntoa=no
20318 fi
20319
20320 rm -f core conftest.err conftest.$ac_objext \
20321       conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20323 fi
20324 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20325 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20326 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20327   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20328 fi
20329
20330     fi
20331 fi
20332
20333 rm -f core conftest.err conftest.$ac_objext \
20334       conftest$ac_exeext conftest.$ac_ext
20335     LIBS="$ac_xsave_LIBS"
20336
20337     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20338     # to get the SysV transport functions.
20339     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20340     # needs -lnsl.
20341     # The nsl library prevents programs from opening the X display
20342     # on Irix 5.2, according to T.E. Dickey.
20343     # The functions gethostbyname, getservbyname, and inet_addr are
20344     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20345     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20346 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20347 if test "${ac_cv_func_gethostbyname+set}" = set; then
20348   echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350   cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20358 #define gethostbyname innocuous_gethostbyname
20359
20360 /* System header to define __stub macros and hopefully few prototypes,
20361     which can conflict with char gethostbyname (); below.
20362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20363     <limits.h> exists even on freestanding compilers.  */
20364
20365 #ifdef __STDC__
20366 # include <limits.h>
20367 #else
20368 # include <assert.h>
20369 #endif
20370
20371 #undef gethostbyname
20372
20373 /* Override any GCC internal prototype to avoid an error.
20374    Use char because int might match the return type of a GCC
20375    builtin and then its argument prototype would still apply.  */
20376 #ifdef __cplusplus
20377 extern "C"
20378 #endif
20379 char gethostbyname ();
20380 /* The GNU C library defines this for functions which it implements
20381     to always fail with ENOSYS.  Some functions are actually named
20382     something starting with __ and the normal name is an alias.  */
20383 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20384 choke me
20385 #endif
20386
20387 int
20388 main ()
20389 {
20390 return gethostbyname ();
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399   *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402   (eval "$ac_link") 2>conftest.er1
20403   ac_status=$?
20404   grep -v '^ *+' conftest.er1 >conftest.err
20405   rm -f conftest.er1
20406   cat conftest.err >&5
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); } &&
20409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20410   { (case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_try") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; } &&
20419          { ac_try='test -s conftest$ac_exeext'
20420   { (case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_try") 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_cv_func_gethostbyname=yes
20430 else
20431   echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434         ac_cv_func_gethostbyname=no
20435 fi
20436
20437 rm -f core conftest.err conftest.$ac_objext \
20438       conftest$ac_exeext conftest.$ac_ext
20439 fi
20440 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20441 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20442
20443     if test $ac_cv_func_gethostbyname = no; then
20444       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20445 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449   ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-lnsl  $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h.  */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h.  */
20457
20458 /* Override any GCC internal prototype to avoid an error.
20459    Use char because int might match the return type of a GCC
20460    builtin and then its argument prototype would still apply.  */
20461 #ifdef __cplusplus
20462 extern "C"
20463 #endif
20464 char gethostbyname ();
20465 int
20466 main ()
20467 {
20468 return gethostbyname ();
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_link") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } &&
20487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488   { (case "(($ac_try" in
20489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490   *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493   (eval "$ac_try") 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; } &&
20497          { ac_try='test -s conftest$ac_exeext'
20498   { (case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503   (eval "$ac_try") 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507   ac_cv_lib_nsl_gethostbyname=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512         ac_cv_lib_nsl_gethostbyname=no
20513 fi
20514
20515 rm -f core conftest.err conftest.$ac_objext \
20516       conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20518 fi
20519 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20520 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20521 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20522   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20523 fi
20524
20525       if test $ac_cv_lib_nsl_gethostbyname = no; then
20526         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20527 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20528 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531   ac_check_lib_save_LIBS=$LIBS
20532 LIBS="-lbsd  $LIBS"
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539
20540 /* Override any GCC internal prototype to avoid an error.
20541    Use char because int might match the return type of a GCC
20542    builtin and then its argument prototype would still apply.  */
20543 #ifdef __cplusplus
20544 extern "C"
20545 #endif
20546 char gethostbyname ();
20547 int
20548 main ()
20549 {
20550 return gethostbyname ();
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_link") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } &&
20569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570   { (case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_try") 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; } &&
20579          { ac_try='test -s conftest$ac_exeext'
20580   { (case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_try") 2>&5
20586   ac_status=$?
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); }; }; then
20589   ac_cv_lib_bsd_gethostbyname=yes
20590 else
20591   echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594         ac_cv_lib_bsd_gethostbyname=no
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext \
20598       conftest$ac_exeext conftest.$ac_ext
20599 LIBS=$ac_check_lib_save_LIBS
20600 fi
20601 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20602 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20603 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20604   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20605 fi
20606
20607       fi
20608     fi
20609
20610     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20611     # socket/setsockopt and other routines are undefined under SCO ODT
20612     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20613     # on later versions), says Simon Leinen: it contains gethostby*
20614     # variants that don't use the name server (or something).  -lsocket
20615     # must be given before -lnsl if both are needed.  We assume that
20616     # if connect needs -lnsl, so does gethostbyname.
20617     { echo "$as_me:$LINENO: checking for connect" >&5
20618 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20619 if test "${ac_cv_func_connect+set}" = set; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622   cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20630 #define connect innocuous_connect
20631
20632 /* System header to define __stub macros and hopefully few prototypes,
20633     which can conflict with char connect (); below.
20634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20635     <limits.h> exists even on freestanding compilers.  */
20636
20637 #ifdef __STDC__
20638 # include <limits.h>
20639 #else
20640 # include <assert.h>
20641 #endif
20642
20643 #undef connect
20644
20645 /* Override any GCC internal prototype to avoid an error.
20646    Use char because int might match the return type of a GCC
20647    builtin and then its argument prototype would still apply.  */
20648 #ifdef __cplusplus
20649 extern "C"
20650 #endif
20651 char connect ();
20652 /* The GNU C library defines this for functions which it implements
20653     to always fail with ENOSYS.  Some functions are actually named
20654     something starting with __ and the normal name is an alias.  */
20655 #if defined __stub_connect || defined __stub___connect
20656 choke me
20657 #endif
20658
20659 int
20660 main ()
20661 {
20662 return connect ();
20663   ;
20664   return 0;
20665 }
20666 _ACEOF
20667 rm -f conftest.$ac_objext conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671   *) ac_try_echo=$ac_try;;
20672 esac
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674   (eval "$ac_link") 2>conftest.er1
20675   ac_status=$?
20676   grep -v '^ *+' conftest.er1 >conftest.err
20677   rm -f conftest.er1
20678   cat conftest.err >&5
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); } &&
20681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682   { (case "(($ac_try" in
20683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684   *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687   (eval "$ac_try") 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); }; } &&
20691          { ac_try='test -s conftest$ac_exeext'
20692   { (case "(($ac_try" in
20693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694   *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697   (eval "$ac_try") 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; }; then
20701   ac_cv_func_connect=yes
20702 else
20703   echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706         ac_cv_func_connect=no
20707 fi
20708
20709 rm -f core conftest.err conftest.$ac_objext \
20710       conftest$ac_exeext conftest.$ac_ext
20711 fi
20712 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20713 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20714
20715     if test $ac_cv_func_connect = no; then
20716       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20717 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20718 if test "${ac_cv_lib_socket_connect+set}" = set; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   ac_check_lib_save_LIBS=$LIBS
20722 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729
20730 /* Override any GCC internal prototype to avoid an error.
20731    Use char because int might match the return type of a GCC
20732    builtin and then its argument prototype would still apply.  */
20733 #ifdef __cplusplus
20734 extern "C"
20735 #endif
20736 char connect ();
20737 int
20738 main ()
20739 {
20740 return connect ();
20741   ;
20742   return 0;
20743 }
20744 _ACEOF
20745 rm -f conftest.$ac_objext conftest$ac_exeext
20746 if { (ac_try="$ac_link"
20747 case "(($ac_try" in
20748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749   *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752   (eval "$ac_link") 2>conftest.er1
20753   ac_status=$?
20754   grep -v '^ *+' conftest.er1 >conftest.err
20755   rm -f conftest.er1
20756   cat conftest.err >&5
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); } &&
20759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20760   { (case "(($ac_try" in
20761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762   *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765   (eval "$ac_try") 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; } &&
20769          { ac_try='test -s conftest$ac_exeext'
20770   { (case "(($ac_try" in
20771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772   *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775   (eval "$ac_try") 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779   ac_cv_lib_socket_connect=yes
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784         ac_cv_lib_socket_connect=no
20785 fi
20786
20787 rm -f core conftest.err conftest.$ac_objext \
20788       conftest$ac_exeext conftest.$ac_ext
20789 LIBS=$ac_check_lib_save_LIBS
20790 fi
20791 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20792 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20793 if test $ac_cv_lib_socket_connect = yes; then
20794   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20795 fi
20796
20797     fi
20798
20799     # Guillermo Gomez says -lposix is necessary on A/UX.
20800     { echo "$as_me:$LINENO: checking for remove" >&5
20801 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20802 if test "${ac_cv_func_remove+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20813 #define remove innocuous_remove
20814
20815 /* System header to define __stub macros and hopefully few prototypes,
20816     which can conflict with char remove (); below.
20817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20818     <limits.h> exists even on freestanding compilers.  */
20819
20820 #ifdef __STDC__
20821 # include <limits.h>
20822 #else
20823 # include <assert.h>
20824 #endif
20825
20826 #undef remove
20827
20828 /* Override any GCC internal prototype to avoid an error.
20829    Use char because int might match the return type of a GCC
20830    builtin and then its argument prototype would still apply.  */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 char remove ();
20835 /* The GNU C library defines this for functions which it implements
20836     to always fail with ENOSYS.  Some functions are actually named
20837     something starting with __ and the normal name is an alias.  */
20838 #if defined __stub_remove || defined __stub___remove
20839 choke me
20840 #endif
20841
20842 int
20843 main ()
20844 {
20845 return remove ();
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (ac_try="$ac_link"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_link") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } &&
20864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20865   { (case "(($ac_try" in
20866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867   *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870   (eval "$ac_try") 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); }; } &&
20874          { ac_try='test -s conftest$ac_exeext'
20875   { (case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_try") 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); }; }; then
20884   ac_cv_func_remove=yes
20885 else
20886   echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889         ac_cv_func_remove=no
20890 fi
20891
20892 rm -f core conftest.err conftest.$ac_objext \
20893       conftest$ac_exeext conftest.$ac_ext
20894 fi
20895 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20896 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20897
20898     if test $ac_cv_func_remove = no; then
20899       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20900 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20901 if test "${ac_cv_lib_posix_remove+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904   ac_check_lib_save_LIBS=$LIBS
20905 LIBS="-lposix  $LIBS"
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h.  */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h.  */
20912
20913 /* Override any GCC internal prototype to avoid an error.
20914    Use char because int might match the return type of a GCC
20915    builtin and then its argument prototype would still apply.  */
20916 #ifdef __cplusplus
20917 extern "C"
20918 #endif
20919 char remove ();
20920 int
20921 main ()
20922 {
20923 return remove ();
20924   ;
20925   return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest.$ac_objext conftest$ac_exeext
20929 if { (ac_try="$ac_link"
20930 case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_link") 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } &&
20942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20943   { (case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948   (eval "$ac_try") 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; } &&
20952          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20962   ac_cv_lib_posix_remove=yes
20963 else
20964   echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967         ac_cv_lib_posix_remove=no
20968 fi
20969
20970 rm -f core conftest.err conftest.$ac_objext \
20971       conftest$ac_exeext conftest.$ac_ext
20972 LIBS=$ac_check_lib_save_LIBS
20973 fi
20974 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20975 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20976 if test $ac_cv_lib_posix_remove = yes; then
20977   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20978 fi
20979
20980     fi
20981
20982     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20983     { echo "$as_me:$LINENO: checking for shmat" >&5
20984 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
20985 if test "${ac_cv_func_shmat+set}" = set; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988   cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20996 #define shmat innocuous_shmat
20997
20998 /* System header to define __stub macros and hopefully few prototypes,
20999     which can conflict with char shmat (); below.
21000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21001     <limits.h> exists even on freestanding compilers.  */
21002
21003 #ifdef __STDC__
21004 # include <limits.h>
21005 #else
21006 # include <assert.h>
21007 #endif
21008
21009 #undef shmat
21010
21011 /* Override any GCC internal prototype to avoid an error.
21012    Use char because int might match the return type of a GCC
21013    builtin and then its argument prototype would still apply.  */
21014 #ifdef __cplusplus
21015 extern "C"
21016 #endif
21017 char shmat ();
21018 /* The GNU C library defines this for functions which it implements
21019     to always fail with ENOSYS.  Some functions are actually named
21020     something starting with __ and the normal name is an alias.  */
21021 #if defined __stub_shmat || defined __stub___shmat
21022 choke me
21023 #endif
21024
21025 int
21026 main ()
21027 {
21028 return shmat ();
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest.$ac_objext conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037   *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040   (eval "$ac_link") 2>conftest.er1
21041   ac_status=$?
21042   grep -v '^ *+' conftest.er1 >conftest.err
21043   rm -f conftest.er1
21044   cat conftest.err >&5
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); } &&
21047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21048   { (case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_try") 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; } &&
21057          { ac_try='test -s conftest$ac_exeext'
21058   { (case "(($ac_try" in
21059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060   *) ac_try_echo=$ac_try;;
21061 esac
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063   (eval "$ac_try") 2>&5
21064   ac_status=$?
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); }; }; then
21067   ac_cv_func_shmat=yes
21068 else
21069   echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072         ac_cv_func_shmat=no
21073 fi
21074
21075 rm -f core conftest.err conftest.$ac_objext \
21076       conftest$ac_exeext conftest.$ac_ext
21077 fi
21078 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21079 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21080
21081     if test $ac_cv_func_shmat = no; then
21082       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21083 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21084 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21085   echo $ECHO_N "(cached) $ECHO_C" >&6
21086 else
21087   ac_check_lib_save_LIBS=$LIBS
21088 LIBS="-lipc  $LIBS"
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095
21096 /* Override any GCC internal prototype to avoid an error.
21097    Use char because int might match the return type of a GCC
21098    builtin and then its argument prototype would still apply.  */
21099 #ifdef __cplusplus
21100 extern "C"
21101 #endif
21102 char shmat ();
21103 int
21104 main ()
21105 {
21106 return shmat ();
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 rm -f conftest.$ac_objext conftest$ac_exeext
21112 if { (ac_try="$ac_link"
21113 case "(($ac_try" in
21114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115   *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118   (eval "$ac_link") 2>conftest.er1
21119   ac_status=$?
21120   grep -v '^ *+' conftest.er1 >conftest.err
21121   rm -f conftest.er1
21122   cat conftest.err >&5
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } &&
21125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21126   { (case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_try") 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; } &&
21135          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21145   ac_cv_lib_ipc_shmat=yes
21146 else
21147   echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150         ac_cv_lib_ipc_shmat=no
21151 fi
21152
21153 rm -f core conftest.err conftest.$ac_objext \
21154       conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21156 fi
21157 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21158 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21159 if test $ac_cv_lib_ipc_shmat = yes; then
21160   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21161 fi
21162
21163     fi
21164   fi
21165
21166   # Check for libraries that X11R6 Xt/Xaw programs need.
21167   ac_save_LDFLAGS=$LDFLAGS
21168   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21169   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21170   # check for ICE first), but we must link in the order -lSM -lICE or
21171   # we get undefined symbols.  So assume we have SM if we have ICE.
21172   # These have to be linked with before -lX11, unlike the other
21173   # libraries we check for below, so use a different variable.
21174   # John Interrante, Karl Berry
21175   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21176 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21177 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21178   echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180   ac_check_lib_save_LIBS=$LIBS
21181 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188
21189 /* Override any GCC internal prototype to avoid an error.
21190    Use char because int might match the return type of a GCC
21191    builtin and then its argument prototype would still apply.  */
21192 #ifdef __cplusplus
21193 extern "C"
21194 #endif
21195 char IceConnectionNumber ();
21196 int
21197 main ()
21198 {
21199 return IceConnectionNumber ();
21200   ;
21201   return 0;
21202 }
21203 _ACEOF
21204 rm -f conftest.$ac_objext conftest$ac_exeext
21205 if { (ac_try="$ac_link"
21206 case "(($ac_try" in
21207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208   *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211   (eval "$ac_link") 2>conftest.er1
21212   ac_status=$?
21213   grep -v '^ *+' conftest.er1 >conftest.err
21214   rm -f conftest.er1
21215   cat conftest.err >&5
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); } &&
21218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21219   { (case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_try") 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); }; } &&
21228          { ac_try='test -s conftest$ac_exeext'
21229   { (case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234   (eval "$ac_try") 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); }; }; then
21238   ac_cv_lib_ICE_IceConnectionNumber=yes
21239 else
21240   echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243         ac_cv_lib_ICE_IceConnectionNumber=no
21244 fi
21245
21246 rm -f core conftest.err conftest.$ac_objext \
21247       conftest$ac_exeext conftest.$ac_ext
21248 LIBS=$ac_check_lib_save_LIBS
21249 fi
21250 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21251 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21252 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21253   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21254 fi
21255
21256   LDFLAGS=$ac_save_LDFLAGS
21257
21258 fi
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288 for ac_header in \
21289         assert.h \
21290         fcntl.h \
21291         grp.h \
21292         pwd.h \
21293         libc.h \
21294         limits.h \
21295         stdarg.h \
21296         stdlib.h \
21297         stdint.h \
21298         string.h \
21299         termios.h \
21300         termcap.h \
21301         term.h \
21302         unistd.h \
21303         sys/bitypes.h \
21304         sys/byteorder.h \
21305         sys/ioctl.h \
21306         sys/select.h \
21307         sys/sockio.h \
21308         sys/time.h \
21309         sys/socket.h \
21310         arpa/nameser.h \
21311         resolv.h \
21312         mtio.h \
21313         sys/mtio.h \
21314         sys/tape.h \
21315         regex.h \
21316
21317 do
21318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21323   echo $ECHO_N "(cached) $ECHO_C" >&6
21324 fi
21325 ac_res=`eval echo '${'$as_ac_Header'}'`
21326                { echo "$as_me:$LINENO: result: $ac_res" >&5
21327 echo "${ECHO_T}$ac_res" >&6; }
21328 else
21329   # Is the header compilable?
21330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21332 cat >conftest.$ac_ext <<_ACEOF
21333 /* confdefs.h.  */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h.  */
21338 $ac_includes_default
21339 #include <$ac_header>
21340 _ACEOF
21341 rm -f conftest.$ac_objext
21342 if { (ac_try="$ac_compile"
21343 case "(($ac_try" in
21344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345   *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348   (eval "$ac_compile") 2>conftest.er1
21349   ac_status=$?
21350   grep -v '^ *+' conftest.er1 >conftest.err
21351   rm -f conftest.er1
21352   cat conftest.err >&5
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } &&
21355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21356   { (case "(($ac_try" in
21357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358   *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361   (eval "$ac_try") 2>&5
21362   ac_status=$?
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); }; } &&
21365          { ac_try='test -s conftest.$ac_objext'
21366   { (case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_try") 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; }; then
21375   ac_header_compiler=yes
21376 else
21377   echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380         ac_header_compiler=no
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21385 echo "${ECHO_T}$ac_header_compiler" >&6; }
21386
21387 # Is the header present?
21388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21390 cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h.  */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h.  */
21396 #include <$ac_header>
21397 _ACEOF
21398 if { (ac_try="$ac_cpp conftest.$ac_ext"
21399 case "(($ac_try" in
21400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401   *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21405   ac_status=$?
21406   grep -v '^ *+' conftest.er1 >conftest.err
21407   rm -f conftest.er1
21408   cat conftest.err >&5
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); } >/dev/null; then
21411   if test -s conftest.err; then
21412     ac_cpp_err=$ac_c_preproc_warn_flag
21413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21414   else
21415     ac_cpp_err=
21416   fi
21417 else
21418   ac_cpp_err=yes
21419 fi
21420 if test -z "$ac_cpp_err"; then
21421   ac_header_preproc=yes
21422 else
21423   echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21425
21426   ac_header_preproc=no
21427 fi
21428
21429 rm -f conftest.err conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21431 echo "${ECHO_T}$ac_header_preproc" >&6; }
21432
21433 # So?  What about this header?
21434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21435   yes:no: )
21436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21440     ac_header_preproc=yes
21441     ;;
21442   no:yes:* )
21443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21455
21456     ;;
21457 esac
21458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21461   echo $ECHO_N "(cached) $ECHO_C" >&6
21462 else
21463   eval "$as_ac_Header=\$ac_header_preproc"
21464 fi
21465 ac_res=`eval echo '${'$as_ac_Header'}'`
21466                { echo "$as_me:$LINENO: result: $ac_res" >&5
21467 echo "${ECHO_T}$ac_res" >&6; }
21468
21469 fi
21470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21471   cat >>confdefs.h <<_ACEOF
21472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21473 _ACEOF
21474
21475 fi
21476
21477 done
21478
21479 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21480 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21481 if test "${ac_cv_header_stdc+set}" = set; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490 #include <stdlib.h>
21491 #include <stdarg.h>
21492 #include <string.h>
21493 #include <float.h>
21494
21495 int
21496 main ()
21497 {
21498
21499   ;
21500   return 0;
21501 }
21502 _ACEOF
21503 rm -f conftest.$ac_objext
21504 if { (ac_try="$ac_compile"
21505 case "(($ac_try" in
21506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507   *) ac_try_echo=$ac_try;;
21508 esac
21509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510   (eval "$ac_compile") 2>conftest.er1
21511   ac_status=$?
21512   grep -v '^ *+' conftest.er1 >conftest.err
21513   rm -f conftest.er1
21514   cat conftest.err >&5
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } &&
21517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21518   { (case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_try") 2>&5
21524   ac_status=$?
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); }; } &&
21527          { ac_try='test -s conftest.$ac_objext'
21528   { (case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533   (eval "$ac_try") 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); }; }; then
21537   ac_cv_header_stdc=yes
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542         ac_cv_header_stdc=no
21543 fi
21544
21545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21546
21547 if test $ac_cv_header_stdc = yes; then
21548   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21549   cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 #include <string.h>
21556
21557 _ACEOF
21558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21559   $EGREP "memchr" >/dev/null 2>&1; then
21560   :
21561 else
21562   ac_cv_header_stdc=no
21563 fi
21564 rm -f conftest*
21565
21566 fi
21567
21568 if test $ac_cv_header_stdc = yes; then
21569   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21570   cat >conftest.$ac_ext <<_ACEOF
21571 /* confdefs.h.  */
21572 _ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h.  */
21576 #include <stdlib.h>
21577
21578 _ACEOF
21579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21580   $EGREP "free" >/dev/null 2>&1; then
21581   :
21582 else
21583   ac_cv_header_stdc=no
21584 fi
21585 rm -f conftest*
21586
21587 fi
21588
21589 if test $ac_cv_header_stdc = yes; then
21590   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21591   if test "$cross_compiling" = yes; then
21592   :
21593 else
21594   cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 #include <ctype.h>
21601 #include <stdlib.h>
21602 #if ((' ' & 0x0FF) == 0x020)
21603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21605 #else
21606 # define ISLOWER(c) \
21607                    (('a' <= (c) && (c) <= 'i') \
21608                      || ('j' <= (c) && (c) <= 'r') \
21609                      || ('s' <= (c) && (c) <= 'z'))
21610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21611 #endif
21612
21613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21614 int
21615 main ()
21616 {
21617   int i;
21618   for (i = 0; i < 256; i++)
21619     if (XOR (islower (i), ISLOWER (i))
21620         || toupper (i) != TOUPPER (i))
21621       return 2;
21622   return 0;
21623 }
21624 _ACEOF
21625 rm -f conftest$ac_exeext
21626 if { (ac_try="$ac_link"
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_link") 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21636   { (case "(($ac_try" in
21637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638   *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641   (eval "$ac_try") 2>&5
21642   ac_status=$?
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); }; }; then
21645   :
21646 else
21647   echo "$as_me: program exited with status $ac_status" >&5
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 ( exit $ac_status )
21652 ac_cv_header_stdc=no
21653 fi
21654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21655 fi
21656
21657
21658 fi
21659 fi
21660 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21661 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21662 if test $ac_cv_header_stdc = yes; then
21663
21664 cat >>confdefs.h <<\_ACEOF
21665 #define STDC_HEADERS 1
21666 _ACEOF
21667
21668 fi
21669
21670 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21671 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21672 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21673   echo $ECHO_N "(cached) $ECHO_C" >&6
21674 else
21675   cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681 #include <sys/types.h>
21682 int
21683 main ()
21684 {
21685 return makedev(0, 0);
21686   ;
21687   return 0;
21688 }
21689 _ACEOF
21690 rm -f conftest.$ac_objext conftest$ac_exeext
21691 if { (ac_try="$ac_link"
21692 case "(($ac_try" in
21693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694   *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697   (eval "$ac_link") 2>conftest.er1
21698   ac_status=$?
21699   grep -v '^ *+' conftest.er1 >conftest.err
21700   rm -f conftest.er1
21701   cat conftest.err >&5
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } &&
21704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21705   { (case "(($ac_try" in
21706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707   *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710   (eval "$ac_try") 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; } &&
21714          { ac_try='test -s conftest$ac_exeext'
21715   { (case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_try") 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; }; then
21724   ac_cv_header_sys_types_h_makedev=yes
21725 else
21726   echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21728
21729         ac_cv_header_sys_types_h_makedev=no
21730 fi
21731
21732 rm -f core conftest.err conftest.$ac_objext \
21733       conftest$ac_exeext conftest.$ac_ext
21734
21735 fi
21736 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21737 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21738
21739 if test $ac_cv_header_sys_types_h_makedev = no; then
21740 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21741   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21742 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21743 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21744   echo $ECHO_N "(cached) $ECHO_C" >&6
21745 fi
21746 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21747 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21748 else
21749   # Is the header compilable?
21750 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21751 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758 $ac_includes_default
21759 #include <sys/mkdev.h>
21760 _ACEOF
21761 rm -f conftest.$ac_objext
21762 if { (ac_try="$ac_compile"
21763 case "(($ac_try" in
21764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765   *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768   (eval "$ac_compile") 2>conftest.er1
21769   ac_status=$?
21770   grep -v '^ *+' conftest.er1 >conftest.err
21771   rm -f conftest.er1
21772   cat conftest.err >&5
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } &&
21775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; } &&
21785          { ac_try='test -s conftest.$ac_objext'
21786   { (case "(($ac_try" in
21787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788   *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791   (eval "$ac_try") 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); }; }; then
21795   ac_header_compiler=yes
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         ac_header_compiler=no
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21805 echo "${ECHO_T}$ac_header_compiler" >&6; }
21806
21807 # Is the header present?
21808 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21809 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21810 cat >conftest.$ac_ext <<_ACEOF
21811 /* confdefs.h.  */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h.  */
21816 #include <sys/mkdev.h>
21817 _ACEOF
21818 if { (ac_try="$ac_cpp conftest.$ac_ext"
21819 case "(($ac_try" in
21820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821   *) ac_try_echo=$ac_try;;
21822 esac
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21825   ac_status=$?
21826   grep -v '^ *+' conftest.er1 >conftest.err
21827   rm -f conftest.er1
21828   cat conftest.err >&5
21829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830   (exit $ac_status); } >/dev/null; then
21831   if test -s conftest.err; then
21832     ac_cpp_err=$ac_c_preproc_warn_flag
21833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21834   else
21835     ac_cpp_err=
21836   fi
21837 else
21838   ac_cpp_err=yes
21839 fi
21840 if test -z "$ac_cpp_err"; then
21841   ac_header_preproc=yes
21842 else
21843   echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21845
21846   ac_header_preproc=no
21847 fi
21848
21849 rm -f conftest.err conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21851 echo "${ECHO_T}$ac_header_preproc" >&6; }
21852
21853 # So?  What about this header?
21854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21855   yes:no: )
21856     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
21857 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21858     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
21859 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
21860     ac_header_preproc=yes
21861     ;;
21862   no:yes:* )
21863     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
21864 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
21865     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
21866 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
21867     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
21868 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
21869     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
21870 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21871     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
21872 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
21873     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
21874 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
21875
21876     ;;
21877 esac
21878 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21879 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21880 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21881   echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883   ac_cv_header_sys_mkdev_h=$ac_header_preproc
21884 fi
21885 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21886 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21887
21888 fi
21889 if test $ac_cv_header_sys_mkdev_h = yes; then
21890
21891 cat >>confdefs.h <<\_ACEOF
21892 #define MAJOR_IN_MKDEV 1
21893 _ACEOF
21894
21895 fi
21896
21897
21898
21899   if test $ac_cv_header_sys_mkdev_h = no; then
21900     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21901   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
21902 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
21903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 fi
21906 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
21907 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
21908 else
21909   # Is the header compilable?
21910 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
21911 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 $ac_includes_default
21919 #include <sys/sysmacros.h>
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925   *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928   (eval "$ac_compile") 2>conftest.er1
21929   ac_status=$?
21930   grep -v '^ *+' conftest.er1 >conftest.err
21931   rm -f conftest.er1
21932   cat conftest.err >&5
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); } &&
21935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21936   { (case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941   (eval "$ac_try") 2>&5
21942   ac_status=$?
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); }; } &&
21945          { ac_try='test -s conftest.$ac_objext'
21946   { (case "(($ac_try" in
21947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948   *) ac_try_echo=$ac_try;;
21949 esac
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951   (eval "$ac_try") 2>&5
21952   ac_status=$?
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); }; }; then
21955   ac_header_compiler=yes
21956 else
21957   echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21959
21960         ac_header_compiler=no
21961 fi
21962
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965 echo "${ECHO_T}$ac_header_compiler" >&6; }
21966
21967 # Is the header present?
21968 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
21969 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 #include <sys/sysmacros.h>
21977 _ACEOF
21978 if { (ac_try="$ac_cpp conftest.$ac_ext"
21979 case "(($ac_try" in
21980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981   *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } >/dev/null; then
21991   if test -s conftest.err; then
21992     ac_cpp_err=$ac_c_preproc_warn_flag
21993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21994   else
21995     ac_cpp_err=
21996   fi
21997 else
21998   ac_cpp_err=yes
21999 fi
22000 if test -z "$ac_cpp_err"; then
22001   ac_header_preproc=yes
22002 else
22003   echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006   ac_header_preproc=no
22007 fi
22008
22009 rm -f conftest.err conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22011 echo "${ECHO_T}$ac_header_preproc" >&6; }
22012
22013 # So?  What about this header?
22014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22015   yes:no: )
22016     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22017 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22018     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22019 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22020     ac_header_preproc=yes
22021     ;;
22022   no:yes:* )
22023     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22024 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22025     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22026 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22028 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22029     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22030 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22031     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22032 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22033     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22034 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22035
22036     ;;
22037 esac
22038 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22039 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22040 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22041   echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22044 fi
22045 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22046 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22047
22048 fi
22049 if test $ac_cv_header_sys_sysmacros_h = yes; then
22050
22051 cat >>confdefs.h <<\_ACEOF
22052 #define MAJOR_IN_SYSMACROS 1
22053 _ACEOF
22054
22055 fi
22056
22057
22058   fi
22059 fi
22060
22061
22062
22063
22064
22065
22066 ac_header_dirent=no
22067 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22068   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22069 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22070 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 else
22074   cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080 #include <sys/types.h>
22081 #include <$ac_hdr>
22082
22083 int
22084 main ()
22085 {
22086 if ((DIR *) 0)
22087 return 0;
22088   ;
22089   return 0;
22090 }
22091 _ACEOF
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096   *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099   (eval "$ac_compile") 2>conftest.er1
22100   ac_status=$?
22101   grep -v '^ *+' conftest.er1 >conftest.err
22102   rm -f conftest.er1
22103   cat conftest.err >&5
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); } &&
22106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22107   { (case "(($ac_try" in
22108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109   *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112   (eval "$ac_try") 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; } &&
22116          { ac_try='test -s conftest.$ac_objext'
22117   { (case "(($ac_try" in
22118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119   *) ac_try_echo=$ac_try;;
22120 esac
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122   (eval "$ac_try") 2>&5
22123   ac_status=$?
22124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125   (exit $ac_status); }; }; then
22126   eval "$as_ac_Header=yes"
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131         eval "$as_ac_Header=no"
22132 fi
22133
22134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 fi
22136 ac_res=`eval echo '${'$as_ac_Header'}'`
22137                { echo "$as_me:$LINENO: result: $ac_res" >&5
22138 echo "${ECHO_T}$ac_res" >&6; }
22139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22140   cat >>confdefs.h <<_ACEOF
22141 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22142 _ACEOF
22143
22144 ac_header_dirent=$ac_hdr; break
22145 fi
22146
22147 done
22148 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22149 if test $ac_header_dirent = dirent.h; then
22150   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22151 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22152 if test "${ac_cv_search_opendir+set}" = set; then
22153   echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155   ac_func_search_save_LIBS=$LIBS
22156 cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h.  */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h.  */
22162
22163 /* Override any GCC internal prototype to avoid an error.
22164    Use char because int might match the return type of a GCC
22165    builtin and then its argument prototype would still apply.  */
22166 #ifdef __cplusplus
22167 extern "C"
22168 #endif
22169 char opendir ();
22170 int
22171 main ()
22172 {
22173 return opendir ();
22174   ;
22175   return 0;
22176 }
22177 _ACEOF
22178 for ac_lib in '' dir; do
22179   if test -z "$ac_lib"; then
22180     ac_res="none required"
22181   else
22182     ac_res=-l$ac_lib
22183     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22184   fi
22185   rm -f conftest.$ac_objext conftest$ac_exeext
22186 if { (ac_try="$ac_link"
22187 case "(($ac_try" in
22188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189   *) ac_try_echo=$ac_try;;
22190 esac
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192   (eval "$ac_link") 2>conftest.er1
22193   ac_status=$?
22194   grep -v '^ *+' conftest.er1 >conftest.err
22195   rm -f conftest.er1
22196   cat conftest.err >&5
22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); } &&
22199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22200   { (case "(($ac_try" in
22201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202   *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205   (eval "$ac_try") 2>&5
22206   ac_status=$?
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); }; } &&
22209          { ac_try='test -s conftest$ac_exeext'
22210   { (case "(($ac_try" in
22211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212   *) ac_try_echo=$ac_try;;
22213 esac
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215   (eval "$ac_try") 2>&5
22216   ac_status=$?
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); }; }; then
22219   ac_cv_search_opendir=$ac_res
22220 else
22221   echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22223
22224
22225 fi
22226
22227 rm -f core conftest.err conftest.$ac_objext \
22228       conftest$ac_exeext
22229   if test "${ac_cv_search_opendir+set}" = set; then
22230   break
22231 fi
22232 done
22233 if test "${ac_cv_search_opendir+set}" = set; then
22234   :
22235 else
22236   ac_cv_search_opendir=no
22237 fi
22238 rm conftest.$ac_ext
22239 LIBS=$ac_func_search_save_LIBS
22240 fi
22241 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22242 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22243 ac_res=$ac_cv_search_opendir
22244 if test "$ac_res" != no; then
22245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22246
22247 fi
22248
22249 else
22250   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22252 if test "${ac_cv_search_opendir+set}" = set; then
22253   echo $ECHO_N "(cached) $ECHO_C" >&6
22254 else
22255   ac_func_search_save_LIBS=$LIBS
22256 cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h.  */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h.  */
22262
22263 /* Override any GCC internal prototype to avoid an error.
22264    Use char because int might match the return type of a GCC
22265    builtin and then its argument prototype would still apply.  */
22266 #ifdef __cplusplus
22267 extern "C"
22268 #endif
22269 char opendir ();
22270 int
22271 main ()
22272 {
22273 return opendir ();
22274   ;
22275   return 0;
22276 }
22277 _ACEOF
22278 for ac_lib in '' x; do
22279   if test -z "$ac_lib"; then
22280     ac_res="none required"
22281   else
22282     ac_res=-l$ac_lib
22283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22284   fi
22285   rm -f conftest.$ac_objext conftest$ac_exeext
22286 if { (ac_try="$ac_link"
22287 case "(($ac_try" in
22288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289   *) ac_try_echo=$ac_try;;
22290 esac
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292   (eval "$ac_link") 2>conftest.er1
22293   ac_status=$?
22294   grep -v '^ *+' conftest.er1 >conftest.err
22295   rm -f conftest.er1
22296   cat conftest.err >&5
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); } &&
22299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22300   { (case "(($ac_try" in
22301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302   *) ac_try_echo=$ac_try;;
22303 esac
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305   (eval "$ac_try") 2>&5
22306   ac_status=$?
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); }; } &&
22309          { ac_try='test -s conftest$ac_exeext'
22310   { (case "(($ac_try" in
22311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312   *) ac_try_echo=$ac_try;;
22313 esac
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315   (eval "$ac_try") 2>&5
22316   ac_status=$?
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); }; }; then
22319   ac_cv_search_opendir=$ac_res
22320 else
22321   echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22323
22324
22325 fi
22326
22327 rm -f core conftest.err conftest.$ac_objext \
22328       conftest$ac_exeext
22329   if test "${ac_cv_search_opendir+set}" = set; then
22330   break
22331 fi
22332 done
22333 if test "${ac_cv_search_opendir+set}" = set; then
22334   :
22335 else
22336   ac_cv_search_opendir=no
22337 fi
22338 rm conftest.$ac_ext
22339 LIBS=$ac_func_search_save_LIBS
22340 fi
22341 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22342 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22343 ac_res=$ac_cv_search_opendir
22344 if test "$ac_res" != no; then
22345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22346
22347 fi
22348
22349 fi
22350
22351 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22352 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22353 if test "${ac_cv_header_stat_broken+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356   cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362 #include <sys/types.h>
22363 #include <sys/stat.h>
22364
22365 #if defined S_ISBLK && defined S_IFDIR
22366 # if S_ISBLK (S_IFDIR)
22367 You lose.
22368 # endif
22369 #endif
22370
22371 #if defined S_ISBLK && defined S_IFCHR
22372 # if S_ISBLK (S_IFCHR)
22373 You lose.
22374 # endif
22375 #endif
22376
22377 #if defined S_ISLNK && defined S_IFREG
22378 # if S_ISLNK (S_IFREG)
22379 You lose.
22380 # endif
22381 #endif
22382
22383 #if defined S_ISSOCK && defined S_IFREG
22384 # if S_ISSOCK (S_IFREG)
22385 You lose.
22386 # endif
22387 #endif
22388
22389 _ACEOF
22390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22391   $EGREP "You lose" >/dev/null 2>&1; then
22392   ac_cv_header_stat_broken=yes
22393 else
22394   ac_cv_header_stat_broken=no
22395 fi
22396 rm -f conftest*
22397
22398 fi
22399 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22400 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22401 if test $ac_cv_header_stat_broken = yes; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define STAT_MACROS_BROKEN 1
22405 _ACEOF
22406
22407 fi
22408
22409 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22410 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22411 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22412   echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414   cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 #include <sys/types.h>
22421 #include <sys/wait.h>
22422 #ifndef WEXITSTATUS
22423 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22424 #endif
22425 #ifndef WIFEXITED
22426 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22427 #endif
22428
22429 int
22430 main ()
22431 {
22432   int s;
22433   wait (&s);
22434   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22435   ;
22436   return 0;
22437 }
22438 _ACEOF
22439 rm -f conftest.$ac_objext
22440 if { (ac_try="$ac_compile"
22441 case "(($ac_try" in
22442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443   *) ac_try_echo=$ac_try;;
22444 esac
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446   (eval "$ac_compile") 2>conftest.er1
22447   ac_status=$?
22448   grep -v '^ *+' conftest.er1 >conftest.err
22449   rm -f conftest.er1
22450   cat conftest.err >&5
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); } &&
22453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22454   { (case "(($ac_try" in
22455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456   *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459   (eval "$ac_try") 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; } &&
22463          { ac_try='test -s conftest.$ac_objext'
22464   { (case "(($ac_try" in
22465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466   *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469   (eval "$ac_try") 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); }; }; then
22473   ac_cv_header_sys_wait_h=yes
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478         ac_cv_header_sys_wait_h=no
22479 fi
22480
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 fi
22483 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22484 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22485 if test $ac_cv_header_sys_wait_h = yes; then
22486
22487 cat >>confdefs.h <<\_ACEOF
22488 #define HAVE_SYS_WAIT_H 1
22489 _ACEOF
22490
22491 fi
22492
22493 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22494 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22495 if test "${ac_cv_header_time+set}" = set; then
22496   echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498   cat >conftest.$ac_ext <<_ACEOF
22499 /* confdefs.h.  */
22500 _ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h.  */
22504 #include <sys/types.h>
22505 #include <sys/time.h>
22506 #include <time.h>
22507
22508 int
22509 main ()
22510 {
22511 if ((struct tm *) 0)
22512 return 0;
22513   ;
22514   return 0;
22515 }
22516 _ACEOF
22517 rm -f conftest.$ac_objext
22518 if { (ac_try="$ac_compile"
22519 case "(($ac_try" in
22520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521   *) ac_try_echo=$ac_try;;
22522 esac
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524   (eval "$ac_compile") 2>conftest.er1
22525   ac_status=$?
22526   grep -v '^ *+' conftest.er1 >conftest.err
22527   rm -f conftest.er1
22528   cat conftest.err >&5
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } &&
22531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22532   { (case "(($ac_try" in
22533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534   *) ac_try_echo=$ac_try;;
22535 esac
22536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22537   (eval "$ac_try") 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); }; } &&
22541          { ac_try='test -s conftest.$ac_objext'
22542   { (case "(($ac_try" in
22543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544   *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547   (eval "$ac_try") 2>&5
22548   ac_status=$?
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); }; }; then
22551   ac_cv_header_time=yes
22552 else
22553   echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556         ac_cv_header_time=no
22557 fi
22558
22559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 fi
22561 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22562 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22563 if test $ac_cv_header_time = yes; then
22564
22565 cat >>confdefs.h <<\_ACEOF
22566 #define TIME_WITH_SYS_TIME 1
22567 _ACEOF
22568
22569 fi
22570
22571 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22572 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22573 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22574   echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576   cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h.  */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h.  */
22582 $ac_includes_default
22583 int
22584 main ()
22585 {
22586 static struct stat ac_aggr;
22587 if (ac_aggr.st_blksize)
22588 return 0;
22589   ;
22590   return 0;
22591 }
22592 _ACEOF
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597   *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600   (eval "$ac_compile") 2>conftest.er1
22601   ac_status=$?
22602   grep -v '^ *+' conftest.er1 >conftest.err
22603   rm -f conftest.er1
22604   cat conftest.err >&5
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); } &&
22607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22608   { (case "(($ac_try" in
22609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610   *) ac_try_echo=$ac_try;;
22611 esac
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613   (eval "$ac_try") 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; } &&
22617          { ac_try='test -s conftest.$ac_objext'
22618   { (case "(($ac_try" in
22619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620   *) ac_try_echo=$ac_try;;
22621 esac
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623   (eval "$ac_try") 2>&5
22624   ac_status=$?
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); }; }; then
22627   ac_cv_member_struct_stat_st_blksize=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 $ac_includes_default
22639 int
22640 main ()
22641 {
22642 static struct stat ac_aggr;
22643 if (sizeof ac_aggr.st_blksize)
22644 return 0;
22645   ;
22646   return 0;
22647 }
22648 _ACEOF
22649 rm -f conftest.$ac_objext
22650 if { (ac_try="$ac_compile"
22651 case "(($ac_try" in
22652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22653   *) ac_try_echo=$ac_try;;
22654 esac
22655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22656   (eval "$ac_compile") 2>conftest.er1
22657   ac_status=$?
22658   grep -v '^ *+' conftest.er1 >conftest.err
22659   rm -f conftest.er1
22660   cat conftest.err >&5
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); } &&
22663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22664   { (case "(($ac_try" in
22665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666   *) ac_try_echo=$ac_try;;
22667 esac
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669   (eval "$ac_try") 2>&5
22670   ac_status=$?
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); }; } &&
22673          { ac_try='test -s conftest.$ac_objext'
22674   { (case "(($ac_try" in
22675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676   *) ac_try_echo=$ac_try;;
22677 esac
22678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679   (eval "$ac_try") 2>&5
22680   ac_status=$?
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); }; }; then
22683   ac_cv_member_struct_stat_st_blksize=yes
22684 else
22685   echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688         ac_cv_member_struct_stat_st_blksize=no
22689 fi
22690
22691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 fi
22693
22694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 fi
22696 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22697 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22698 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22699
22700 cat >>confdefs.h <<_ACEOF
22701 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22702 _ACEOF
22703
22704
22705 cat >>confdefs.h <<\_ACEOF
22706 #define HAVE_ST_BLKSIZE 1
22707 _ACEOF
22708
22709 fi
22710
22711
22712 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22713 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22714 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22715   echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22717   cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h.  */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h.  */
22723 $ac_includes_default
22724 int
22725 main ()
22726 {
22727 static struct stat ac_aggr;
22728 if (ac_aggr.st_blocks)
22729 return 0;
22730   ;
22731   return 0;
22732 }
22733 _ACEOF
22734 rm -f conftest.$ac_objext
22735 if { (ac_try="$ac_compile"
22736 case "(($ac_try" in
22737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738   *) ac_try_echo=$ac_try;;
22739 esac
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741   (eval "$ac_compile") 2>conftest.er1
22742   ac_status=$?
22743   grep -v '^ *+' conftest.er1 >conftest.err
22744   rm -f conftest.er1
22745   cat conftest.err >&5
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); } &&
22748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22749   { (case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_try") 2>&5
22755   ac_status=$?
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); }; } &&
22758          { ac_try='test -s conftest.$ac_objext'
22759   { (case "(($ac_try" in
22760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761   *) ac_try_echo=$ac_try;;
22762 esac
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764   (eval "$ac_try") 2>&5
22765   ac_status=$?
22766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767   (exit $ac_status); }; }; then
22768   ac_cv_member_struct_stat_st_blocks=yes
22769 else
22770   echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22772
22773         cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h.  */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h.  */
22779 $ac_includes_default
22780 int
22781 main ()
22782 {
22783 static struct stat ac_aggr;
22784 if (sizeof ac_aggr.st_blocks)
22785 return 0;
22786   ;
22787   return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest.$ac_objext
22791 if { (ac_try="$ac_compile"
22792 case "(($ac_try" in
22793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794   *) ac_try_echo=$ac_try;;
22795 esac
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797   (eval "$ac_compile") 2>conftest.er1
22798   ac_status=$?
22799   grep -v '^ *+' conftest.er1 >conftest.err
22800   rm -f conftest.er1
22801   cat conftest.err >&5
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); } &&
22804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22805   { (case "(($ac_try" in
22806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807   *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810   (eval "$ac_try") 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); }; } &&
22814          { ac_try='test -s conftest.$ac_objext'
22815   { (case "(($ac_try" in
22816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817   *) ac_try_echo=$ac_try;;
22818 esac
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820   (eval "$ac_try") 2>&5
22821   ac_status=$?
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); }; }; then
22824   ac_cv_member_struct_stat_st_blocks=yes
22825 else
22826   echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829         ac_cv_member_struct_stat_st_blocks=no
22830 fi
22831
22832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22833 fi
22834
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836 fi
22837 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22838 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22839 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22840
22841 cat >>confdefs.h <<_ACEOF
22842 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22843 _ACEOF
22844
22845
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_ST_BLOCKS 1
22848 _ACEOF
22849
22850 else
22851   case " $LIBOBJS " in
22852   *" fileblocks.$ac_objext "* ) ;;
22853   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22854  ;;
22855 esac
22856
22857 fi
22858
22859
22860 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22861 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22862 if test "${ac_cv_struct_tm+set}" = set; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865   cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h.  */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h.  */
22871 #include <sys/types.h>
22872 #include <time.h>
22873
22874 int
22875 main ()
22876 {
22877 struct tm *tp; tp->tm_sec;
22878   ;
22879   return 0;
22880 }
22881 _ACEOF
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886   *) ac_try_echo=$ac_try;;
22887 esac
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889   (eval "$ac_compile") 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } &&
22896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22897   { (case "(($ac_try" in
22898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899   *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902   (eval "$ac_try") 2>&5
22903   ac_status=$?
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); }; } &&
22906          { ac_try='test -s conftest.$ac_objext'
22907   { (case "(($ac_try" in
22908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909   *) ac_try_echo=$ac_try;;
22910 esac
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912   (eval "$ac_try") 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); }; }; then
22916   ac_cv_struct_tm=time.h
22917 else
22918   echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921         ac_cv_struct_tm=sys/time.h
22922 fi
22923
22924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 fi
22926 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22927 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22928 if test $ac_cv_struct_tm = sys/time.h; then
22929
22930 cat >>confdefs.h <<\_ACEOF
22931 #define TM_IN_SYS_TIME 1
22932 _ACEOF
22933
22934 fi
22935
22936 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22937 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22938 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22939   echo $ECHO_N "(cached) $ECHO_C" >&6
22940 else
22941   cat >conftest.$ac_ext <<_ACEOF
22942 /* confdefs.h.  */
22943 _ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h.  */
22947 #include <sys/types.h>
22948 #include <$ac_cv_struct_tm>
22949
22950
22951 int
22952 main ()
22953 {
22954 static struct tm ac_aggr;
22955 if (ac_aggr.tm_zone)
22956 return 0;
22957   ;
22958   return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965   *) ac_try_echo=$ac_try;;
22966 esac
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968   (eval "$ac_compile") 2>conftest.er1
22969   ac_status=$?
22970   grep -v '^ *+' conftest.er1 >conftest.err
22971   rm -f conftest.er1
22972   cat conftest.err >&5
22973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974   (exit $ac_status); } &&
22975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22976   { (case "(($ac_try" in
22977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978   *) ac_try_echo=$ac_try;;
22979 esac
22980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22981   (eval "$ac_try") 2>&5
22982   ac_status=$?
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); }; } &&
22985          { ac_try='test -s conftest.$ac_objext'
22986   { (case "(($ac_try" in
22987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988   *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991   (eval "$ac_try") 2>&5
22992   ac_status=$?
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); }; }; then
22995   ac_cv_member_struct_tm_tm_zone=yes
22996 else
22997   echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
22999
23000         cat >conftest.$ac_ext <<_ACEOF
23001 /* confdefs.h.  */
23002 _ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h.  */
23006 #include <sys/types.h>
23007 #include <$ac_cv_struct_tm>
23008
23009
23010 int
23011 main ()
23012 {
23013 static struct tm ac_aggr;
23014 if (sizeof ac_aggr.tm_zone)
23015 return 0;
23016   ;
23017   return 0;
23018 }
23019 _ACEOF
23020 rm -f conftest.$ac_objext
23021 if { (ac_try="$ac_compile"
23022 case "(($ac_try" in
23023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024   *) ac_try_echo=$ac_try;;
23025 esac
23026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23027   (eval "$ac_compile") 2>conftest.er1
23028   ac_status=$?
23029   grep -v '^ *+' conftest.er1 >conftest.err
23030   rm -f conftest.er1
23031   cat conftest.err >&5
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); } &&
23034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23035   { (case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_try") 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; } &&
23044          { ac_try='test -s conftest.$ac_objext'
23045   { (case "(($ac_try" in
23046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047   *) ac_try_echo=$ac_try;;
23048 esac
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050   (eval "$ac_try") 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }; }; then
23054   ac_cv_member_struct_tm_tm_zone=yes
23055 else
23056   echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23058
23059         ac_cv_member_struct_tm_tm_zone=no
23060 fi
23061
23062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063 fi
23064
23065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 fi
23067 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23068 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23069 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23070
23071 cat >>confdefs.h <<_ACEOF
23072 #define HAVE_STRUCT_TM_TM_ZONE 1
23073 _ACEOF
23074
23075
23076 fi
23077
23078 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23079
23080 cat >>confdefs.h <<\_ACEOF
23081 #define HAVE_TM_ZONE 1
23082 _ACEOF
23083
23084 else
23085   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23086 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23087 if test "${ac_cv_have_decl_tzname+set}" = set; then
23088   echo $ECHO_N "(cached) $ECHO_C" >&6
23089 else
23090   cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h.  */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h.  */
23096 #include <time.h>
23097
23098 int
23099 main ()
23100 {
23101 #ifndef tzname
23102   char *p = (char *) tzname;
23103   return !p;
23104 #endif
23105
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114   *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117   (eval "$ac_compile") 2>conftest.er1
23118   ac_status=$?
23119   grep -v '^ *+' conftest.er1 >conftest.err
23120   rm -f conftest.er1
23121   cat conftest.err >&5
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); } &&
23124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23125   { (case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_try") 2>&5
23131   ac_status=$?
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); }; } &&
23134          { ac_try='test -s conftest.$ac_objext'
23135   { (case "(($ac_try" in
23136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137   *) ac_try_echo=$ac_try;;
23138 esac
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140   (eval "$ac_try") 2>&5
23141   ac_status=$?
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); }; }; then
23144   ac_cv_have_decl_tzname=yes
23145 else
23146   echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23148
23149         ac_cv_have_decl_tzname=no
23150 fi
23151
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153 fi
23154 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23155 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23156 if test $ac_cv_have_decl_tzname = yes; then
23157
23158 cat >>confdefs.h <<_ACEOF
23159 #define HAVE_DECL_TZNAME 1
23160 _ACEOF
23161
23162
23163 else
23164   cat >>confdefs.h <<_ACEOF
23165 #define HAVE_DECL_TZNAME 0
23166 _ACEOF
23167
23168
23169 fi
23170
23171
23172   { echo "$as_me:$LINENO: checking for tzname" >&5
23173 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23174 if test "${ac_cv_var_tzname+set}" = set; then
23175   echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23177   cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h.  */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h.  */
23183 #include <time.h>
23184 #if !HAVE_DECL_TZNAME
23185 extern char *tzname[];
23186 #endif
23187
23188 int
23189 main ()
23190 {
23191 return tzname[0][0];
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest.$ac_objext conftest$ac_exeext
23197 if { (ac_try="$ac_link"
23198 case "(($ac_try" in
23199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200   *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203   (eval "$ac_link") 2>conftest.er1
23204   ac_status=$?
23205   grep -v '^ *+' conftest.er1 >conftest.err
23206   rm -f conftest.er1
23207   cat conftest.err >&5
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); } &&
23210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23211   { (case "(($ac_try" in
23212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213   *) ac_try_echo=$ac_try;;
23214 esac
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216   (eval "$ac_try") 2>&5
23217   ac_status=$?
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); }; } &&
23220          { ac_try='test -s conftest$ac_exeext'
23221   { (case "(($ac_try" in
23222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223   *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226   (eval "$ac_try") 2>&5
23227   ac_status=$?
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); }; }; then
23230   ac_cv_var_tzname=yes
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235         ac_cv_var_tzname=no
23236 fi
23237
23238 rm -f core conftest.err conftest.$ac_objext \
23239       conftest$ac_exeext conftest.$ac_ext
23240 fi
23241 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23242 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23243   if test $ac_cv_var_tzname = yes; then
23244
23245 cat >>confdefs.h <<\_ACEOF
23246 #define HAVE_TZNAME 1
23247 _ACEOF
23248
23249   fi
23250 fi
23251
23252
23253 { echo "$as_me:$LINENO: checking for utime.h" >&5
23254 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23255 if test "${ba_cv_header_utime_h+set}" = set; then
23256   echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258   cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h.  */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h.  */
23264
23265 #include <sys/types.h>
23266 #include <utime.h>
23267 int
23268 main ()
23269 {
23270 struct utimbuf foo
23271   ;
23272   return 0;
23273 }
23274 _ACEOF
23275 rm -f conftest.$ac_objext
23276 if { (ac_try="$ac_compile"
23277 case "(($ac_try" in
23278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279   *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282   (eval "$ac_compile") 2>conftest.er1
23283   ac_status=$?
23284   grep -v '^ *+' conftest.er1 >conftest.err
23285   rm -f conftest.er1
23286   cat conftest.err >&5
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); } &&
23289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23290   { (case "(($ac_try" in
23291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292   *) ac_try_echo=$ac_try;;
23293 esac
23294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23295   (eval "$ac_try") 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; } &&
23299          { ac_try='test -s conftest.$ac_objext'
23300   { (case "(($ac_try" in
23301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302   *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305   (eval "$ac_try") 2>&5
23306   ac_status=$?
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); }; }; then
23309   ba_cv_header_utime_h=yes
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314         ba_cv_header_utime_h=no
23315 fi
23316
23317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318 fi
23319 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23320 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23321 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_UTIME_H 1
23323 _ACEOF
23324
23325
23326 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23327 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23328 if test "${ba_cv_header_socklen_t+set}" = set; then
23329   echo $ECHO_N "(cached) $ECHO_C" >&6
23330 else
23331   cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337
23338 #include <sys/types.h>
23339 #include <sys/socket.h>
23340 int
23341 main ()
23342 {
23343 socklen_t x
23344   ;
23345   return 0;
23346 }
23347 _ACEOF
23348 rm -f conftest.$ac_objext
23349 if { (ac_try="$ac_compile"
23350 case "(($ac_try" in
23351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352   *) ac_try_echo=$ac_try;;
23353 esac
23354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23355   (eval "$ac_compile") 2>conftest.er1
23356   ac_status=$?
23357   grep -v '^ *+' conftest.er1 >conftest.err
23358   rm -f conftest.er1
23359   cat conftest.err >&5
23360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361   (exit $ac_status); } &&
23362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23363   { (case "(($ac_try" in
23364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365   *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368   (eval "$ac_try") 2>&5
23369   ac_status=$?
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); }; } &&
23372          { ac_try='test -s conftest.$ac_objext'
23373   { (case "(($ac_try" in
23374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375   *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378   (eval "$ac_try") 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); }; }; then
23382   ba_cv_header_socklen_t=yes
23383 else
23384   echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23386
23387         ba_cv_header_socklen_t=no
23388 fi
23389
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391 fi
23392 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23393 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23394 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_SOCKLEN_T 1
23396 _ACEOF
23397
23398
23399 { echo "$as_me:$LINENO: checking for bigendian" >&5
23400 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23401 if test "${ba_cv_bigendian+set}" = set; then
23402   echo $ECHO_N "(cached) $ECHO_C" >&6
23403 else
23404   if test "$cross_compiling" = yes; then
23405   ba_cv_bigendian=no
23406 else
23407   cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h.  */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h.  */
23413 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23414 _ACEOF
23415 rm -f conftest$ac_exeext
23416 if { (ac_try="$ac_link"
23417 case "(($ac_try" in
23418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419   *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422   (eval "$ac_link") 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23426   { (case "(($ac_try" in
23427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428   *) ac_try_echo=$ac_try;;
23429 esac
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431   (eval "$ac_try") 2>&5
23432   ac_status=$?
23433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434   (exit $ac_status); }; }; then
23435   ba_cv_bigendian=yes
23436 else
23437   echo "$as_me: program exited with status $ac_status" >&5
23438 echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23440
23441 ( exit $ac_status )
23442 ba_cv_bigendian=no
23443 fi
23444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23445 fi
23446
23447
23448 fi
23449 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23450 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23451 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23452 #define HAVE_BIGENDIAN 1
23453 _ACEOF
23454
23455
23456 ac_ext=cpp
23457 ac_cpp='$CXXCPP $CPPFLAGS'
23458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23461
23462
23463 { echo "$as_me:$LINENO: checking for typeof" >&5
23464 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23465 if test "${ba_cv_have_typeof+set}" = set; then
23466   echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468   if test "$cross_compiling" = yes; then
23469   ba_cv_have_typeof=no
23470 else
23471   cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h.  */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h.  */
23477 main(){char *a = 0; a = (typeof a)a;}
23478 _ACEOF
23479 rm -f conftest$ac_exeext
23480 if { (ac_try="$ac_link"
23481 case "(($ac_try" in
23482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483   *) ac_try_echo=$ac_try;;
23484 esac
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486   (eval "$ac_link") 2>&5
23487   ac_status=$?
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23490   { (case "(($ac_try" in
23491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492   *) ac_try_echo=$ac_try;;
23493 esac
23494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23495   (eval "$ac_try") 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; }; then
23499   ba_cv_have_typeof=yes
23500 else
23501   echo "$as_me: program exited with status $ac_status" >&5
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505 ( exit $ac_status )
23506 ba_cv_have_typeof=no
23507 fi
23508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23509 fi
23510
23511
23512 fi
23513 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23514 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23515 test $ba_cv_have_typeof = yes &&
23516 cat >>confdefs.h <<\_ACEOF
23517 #define HAVE_TYPEOF 1
23518 _ACEOF
23519
23520 ac_ext=c
23521 ac_cpp='$CPP $CPPFLAGS'
23522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23525
23526
23527 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23528 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23529 if test "${ac_cv_c_const+set}" = set; then
23530   echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532   cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h.  */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h.  */
23538
23539 int
23540 main ()
23541 {
23542 /* FIXME: Include the comments suggested by Paul. */
23543 #ifndef __cplusplus
23544   /* Ultrix mips cc rejects this.  */
23545   typedef int charset[2];
23546   const charset x;
23547   /* SunOS 4.1.1 cc rejects this.  */
23548   char const *const *ccp;
23549   char **p;
23550   /* NEC SVR4.0.2 mips cc rejects this.  */
23551   struct point {int x, y;};
23552   static struct point const zero = {0,0};
23553   /* AIX XL C 1.02.0.0 rejects this.
23554      It does not let you subtract one const X* pointer from another in
23555      an arm of an if-expression whose if-part is not a constant
23556      expression */
23557   const char *g = "string";
23558   ccp = &g + (g ? g-g : 0);
23559   /* HPUX 7.0 cc rejects these. */
23560   ++ccp;
23561   p = (char**) ccp;
23562   ccp = (char const *const *) p;
23563   { /* SCO 3.2v4 cc rejects this.  */
23564     char *t;
23565     char const *s = 0 ? (char *) 0 : (char const *) 0;
23566
23567     *t++ = 0;
23568     if (s) return 0;
23569   }
23570   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23571     int x[] = {25, 17};
23572     const int *foo = &x[0];
23573     ++foo;
23574   }
23575   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23576     typedef const int *iptr;
23577     iptr p = 0;
23578     ++p;
23579   }
23580   { /* AIX XL C 1.02.0.0 rejects this saying
23581        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23582     struct s { int j; const int *ap[3]; };
23583     struct s *b; b->j = 5;
23584   }
23585   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23586     const int foo = 10;
23587     if (!foo) return 0;
23588   }
23589   return !x[0] && !zero.x;
23590 #endif
23591
23592   ;
23593   return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600   *) ac_try_echo=$ac_try;;
23601 esac
23602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603   (eval "$ac_compile") 2>conftest.er1
23604   ac_status=$?
23605   grep -v '^ *+' conftest.er1 >conftest.err
23606   rm -f conftest.er1
23607   cat conftest.err >&5
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); } &&
23610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23611   { (case "(($ac_try" in
23612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23613   *) ac_try_echo=$ac_try;;
23614 esac
23615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23616   (eval "$ac_try") 2>&5
23617   ac_status=$?
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); }; } &&
23620          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
23627   ac_status=$?
23628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629   (exit $ac_status); }; }; then
23630   ac_cv_c_const=yes
23631 else
23632   echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23634
23635         ac_cv_c_const=no
23636 fi
23637
23638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23639 fi
23640 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23641 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23642 if test $ac_cv_c_const = no; then
23643
23644 cat >>confdefs.h <<\_ACEOF
23645 #define const
23646 _ACEOF
23647
23648 fi
23649
23650
23651
23652 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23653 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23654 fstype=no
23655 # The order of these tests is important.
23656 cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662 #include <sys/statvfs.h>
23663 #include <sys/fstyp.h>
23664 _ACEOF
23665 if { (ac_try="$ac_cpp conftest.$ac_ext"
23666 case "(($ac_try" in
23667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668   *) ac_try_echo=$ac_try;;
23669 esac
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23672   ac_status=$?
23673   grep -v '^ *+' conftest.er1 >conftest.err
23674   rm -f conftest.er1
23675   cat conftest.err >&5
23676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677   (exit $ac_status); } >/dev/null; then
23678   if test -s conftest.err; then
23679     ac_cpp_err=$ac_c_preproc_warn_flag
23680     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23681   else
23682     ac_cpp_err=
23683   fi
23684 else
23685   ac_cpp_err=yes
23686 fi
23687 if test -z "$ac_cpp_err"; then
23688   cat >>confdefs.h <<\_ACEOF
23689 #define FSTYPE_STATVFS 1
23690 _ACEOF
23691  fstype=SVR4
23692 else
23693   echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696
23697 fi
23698
23699 rm -f conftest.err conftest.$ac_ext
23700 if test $fstype = no; then
23701 cat >conftest.$ac_ext <<_ACEOF
23702 /* confdefs.h.  */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h.  */
23707 #include <sys/statfs.h>
23708 #include <sys/fstyp.h>
23709 _ACEOF
23710 if { (ac_try="$ac_cpp conftest.$ac_ext"
23711 case "(($ac_try" in
23712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713   *) ac_try_echo=$ac_try;;
23714 esac
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23717   ac_status=$?
23718   grep -v '^ *+' conftest.er1 >conftest.err
23719   rm -f conftest.er1
23720   cat conftest.err >&5
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); } >/dev/null; then
23723   if test -s conftest.err; then
23724     ac_cpp_err=$ac_c_preproc_warn_flag
23725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23726   else
23727     ac_cpp_err=
23728   fi
23729 else
23730   ac_cpp_err=yes
23731 fi
23732 if test -z "$ac_cpp_err"; then
23733   cat >>confdefs.h <<\_ACEOF
23734 #define FSTYPE_USG_STATFS 1
23735 _ACEOF
23736  fstype=SVR3
23737 else
23738   echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741
23742 fi
23743
23744 rm -f conftest.err conftest.$ac_ext
23745 fi
23746 if test $fstype = no; then
23747 cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h.  */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h.  */
23753 #include <sys/statfs.h>
23754 #include <sys/vmount.h>
23755 _ACEOF
23756 if { (ac_try="$ac_cpp conftest.$ac_ext"
23757 case "(($ac_try" in
23758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759   *) ac_try_echo=$ac_try;;
23760 esac
23761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23763   ac_status=$?
23764   grep -v '^ *+' conftest.er1 >conftest.err
23765   rm -f conftest.er1
23766   cat conftest.err >&5
23767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768   (exit $ac_status); } >/dev/null; then
23769   if test -s conftest.err; then
23770     ac_cpp_err=$ac_c_preproc_warn_flag
23771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23772   else
23773     ac_cpp_err=
23774   fi
23775 else
23776   ac_cpp_err=yes
23777 fi
23778 if test -z "$ac_cpp_err"; then
23779   cat >>confdefs.h <<\_ACEOF
23780 #define FSTYPE_AIX_STATFS 1
23781 _ACEOF
23782  fstype=AIX
23783 else
23784   echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23786
23787
23788 fi
23789
23790 rm -f conftest.err conftest.$ac_ext
23791 fi
23792 if test $fstype = no; then
23793 cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799 #include <mntent.h>
23800 _ACEOF
23801 if { (ac_try="$ac_cpp conftest.$ac_ext"
23802 case "(($ac_try" in
23803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804   *) ac_try_echo=$ac_try;;
23805 esac
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23808   ac_status=$?
23809   grep -v '^ *+' conftest.er1 >conftest.err
23810   rm -f conftest.er1
23811   cat conftest.err >&5
23812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813   (exit $ac_status); } >/dev/null; then
23814   if test -s conftest.err; then
23815     ac_cpp_err=$ac_c_preproc_warn_flag
23816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23817   else
23818     ac_cpp_err=
23819   fi
23820 else
23821   ac_cpp_err=yes
23822 fi
23823 if test -z "$ac_cpp_err"; then
23824   cat >>confdefs.h <<\_ACEOF
23825 #define FSTYPE_MNTENT 1
23826 _ACEOF
23827  fstype=4.3BSD
23828 else
23829   echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23831
23832
23833 fi
23834
23835 rm -f conftest.err conftest.$ac_ext
23836 fi
23837 if test $fstype = no; then
23838 cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h.  */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h.  */
23844 #include <sys/mount.h>
23845
23846 _ACEOF
23847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23848   $EGREP "f_type;" >/dev/null 2>&1; then
23849   cat >>confdefs.h <<\_ACEOF
23850 #define FSTYPE_STATFS 1
23851 _ACEOF
23852  fstype=4.4BSD/OSF1
23853 fi
23854 rm -f conftest*
23855
23856 fi
23857 if test $fstype = no; then
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h.  */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h.  */
23864 #include <sys/mount.h>
23865 #include <sys/fs_types.h>
23866 _ACEOF
23867 if { (ac_try="$ac_cpp conftest.$ac_ext"
23868 case "(($ac_try" in
23869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870   *) ac_try_echo=$ac_try;;
23871 esac
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23874   ac_status=$?
23875   grep -v '^ *+' conftest.er1 >conftest.err
23876   rm -f conftest.er1
23877   cat conftest.err >&5
23878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879   (exit $ac_status); } >/dev/null; then
23880   if test -s conftest.err; then
23881     ac_cpp_err=$ac_c_preproc_warn_flag
23882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23883   else
23884     ac_cpp_err=
23885   fi
23886 else
23887   ac_cpp_err=yes
23888 fi
23889 if test -z "$ac_cpp_err"; then
23890   cat >>confdefs.h <<\_ACEOF
23891 #define FSTYPE_GETMNT 1
23892 _ACEOF
23893  fstype=Ultrix
23894 else
23895   echo "$as_me: failed program was:" >&5
23896 sed 's/^/| /' conftest.$ac_ext >&5
23897
23898
23899 fi
23900
23901 rm -f conftest.err conftest.$ac_ext
23902 fi
23903 { echo "$as_me:$LINENO: result: $fstype" >&5
23904 echo "${ECHO_T}$fstype" >&6; }
23905
23906 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23907   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
23908 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
23909 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23910   echo $ECHO_N "(cached) $ECHO_C" >&6
23911 fi
23912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
23913 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
23914 else
23915   # Is the header compilable?
23916 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
23917 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
23918 cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h.  */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h.  */
23924 $ac_includes_default
23925 #include <sys/statvfs.h>
23926 _ACEOF
23927 rm -f conftest.$ac_objext
23928 if { (ac_try="$ac_compile"
23929 case "(($ac_try" in
23930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931   *) ac_try_echo=$ac_try;;
23932 esac
23933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934   (eval "$ac_compile") 2>conftest.er1
23935   ac_status=$?
23936   grep -v '^ *+' conftest.er1 >conftest.err
23937   rm -f conftest.er1
23938   cat conftest.err >&5
23939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940   (exit $ac_status); } &&
23941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23942   { (case "(($ac_try" in
23943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944   *) ac_try_echo=$ac_try;;
23945 esac
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947   (eval "$ac_try") 2>&5
23948   ac_status=$?
23949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950   (exit $ac_status); }; } &&
23951          { ac_try='test -s conftest.$ac_objext'
23952   { (case "(($ac_try" in
23953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954   *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957   (eval "$ac_try") 2>&5
23958   ac_status=$?
23959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960   (exit $ac_status); }; }; then
23961   ac_header_compiler=yes
23962 else
23963   echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23965
23966         ac_header_compiler=no
23967 fi
23968
23969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23971 echo "${ECHO_T}$ac_header_compiler" >&6; }
23972
23973 # Is the header present?
23974 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
23975 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h.  */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h.  */
23982 #include <sys/statvfs.h>
23983 _ACEOF
23984 if { (ac_try="$ac_cpp conftest.$ac_ext"
23985 case "(($ac_try" in
23986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987   *) ac_try_echo=$ac_try;;
23988 esac
23989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23991   ac_status=$?
23992   grep -v '^ *+' conftest.er1 >conftest.err
23993   rm -f conftest.er1
23994   cat conftest.err >&5
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); } >/dev/null; then
23997   if test -s conftest.err; then
23998     ac_cpp_err=$ac_c_preproc_warn_flag
23999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24000   else
24001     ac_cpp_err=
24002   fi
24003 else
24004   ac_cpp_err=yes
24005 fi
24006 if test -z "$ac_cpp_err"; then
24007   ac_header_preproc=yes
24008 else
24009   echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24011
24012   ac_header_preproc=no
24013 fi
24014
24015 rm -f conftest.err conftest.$ac_ext
24016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24017 echo "${ECHO_T}$ac_header_preproc" >&6; }
24018
24019 # So?  What about this header?
24020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24021   yes:no: )
24022     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24023 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24024     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24025 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24026     ac_header_preproc=yes
24027     ;;
24028   no:yes:* )
24029     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24030 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24031     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24032 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24033     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24034 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24035     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24036 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24037     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24038 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24039     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24040 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24041
24042     ;;
24043 esac
24044 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24045 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24046 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24047   echo $ECHO_N "(cached) $ECHO_C" >&6
24048 else
24049   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24050 fi
24051 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24052 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24053
24054 fi
24055 if test $ac_cv_header_sys_statvfs_h = yes; then
24056
24057 cat >>confdefs.h <<\_ACEOF
24058 #define HAVE_SYS_STATVFS_H 1
24059 _ACEOF
24060
24061 fi
24062
24063
24064
24065 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24066 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24067 if test "${ac_cv_type_signal+set}" = set; then
24068   echo $ECHO_N "(cached) $ECHO_C" >&6
24069 else
24070   cat >conftest.$ac_ext <<_ACEOF
24071 /* confdefs.h.  */
24072 _ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h.  */
24076 #include <sys/types.h>
24077 #include <signal.h>
24078
24079 int
24080 main ()
24081 {
24082 return *(signal (0, 0)) (0) == 1;
24083   ;
24084   return 0;
24085 }
24086 _ACEOF
24087 rm -f conftest.$ac_objext
24088 if { (ac_try="$ac_compile"
24089 case "(($ac_try" in
24090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091   *) ac_try_echo=$ac_try;;
24092 esac
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094   (eval "$ac_compile") 2>conftest.er1
24095   ac_status=$?
24096   grep -v '^ *+' conftest.er1 >conftest.err
24097   rm -f conftest.er1
24098   cat conftest.err >&5
24099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100   (exit $ac_status); } &&
24101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24102   { (case "(($ac_try" in
24103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104   *) ac_try_echo=$ac_try;;
24105 esac
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107   (eval "$ac_try") 2>&5
24108   ac_status=$?
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); }; } &&
24111          { ac_try='test -s conftest.$ac_objext'
24112   { (case "(($ac_try" in
24113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114   *) ac_try_echo=$ac_try;;
24115 esac
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117   (eval "$ac_try") 2>&5
24118   ac_status=$?
24119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120   (exit $ac_status); }; }; then
24121   ac_cv_type_signal=int
24122 else
24123   echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24125
24126         ac_cv_type_signal=void
24127 fi
24128
24129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24130 fi
24131 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24132 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24133
24134 cat >>confdefs.h <<_ACEOF
24135 #define RETSIGTYPE $ac_cv_type_signal
24136 _ACEOF
24137
24138
24139
24140   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24141 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24142   if test "${bash_cv_signal_vintage+set}" = set; then
24143   echo $ECHO_N "(cached) $ECHO_C" >&6
24144 else
24145
24146     cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152 #include <signal.h>
24153 int
24154 main ()
24155 {
24156
24157       sigset_t ss;
24158       struct sigaction sa;
24159       sigemptyset(&ss); sigsuspend(&ss);
24160       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24161       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24162
24163   ;
24164   return 0;
24165 }
24166 _ACEOF
24167 rm -f conftest.$ac_objext conftest$ac_exeext
24168 if { (ac_try="$ac_link"
24169 case "(($ac_try" in
24170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24171   *) ac_try_echo=$ac_try;;
24172 esac
24173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24174   (eval "$ac_link") 2>conftest.er1
24175   ac_status=$?
24176   grep -v '^ *+' conftest.er1 >conftest.err
24177   rm -f conftest.er1
24178   cat conftest.err >&5
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); } &&
24181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24182   { (case "(($ac_try" in
24183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184   *) ac_try_echo=$ac_try;;
24185 esac
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187   (eval "$ac_try") 2>&5
24188   ac_status=$?
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); }; } &&
24191          { ac_try='test -s conftest$ac_exeext'
24192   { (case "(($ac_try" in
24193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194   *) ac_try_echo=$ac_try;;
24195 esac
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197   (eval "$ac_try") 2>&5
24198   ac_status=$?
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); }; }; then
24201   bash_cv_signal_vintage="posix"
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206
24207       cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h.  */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h.  */
24213 #include <signal.h>
24214 int
24215 main ()
24216 {
24217
24218           int mask = sigmask(SIGINT);
24219           sigsetmask(mask); sigblock(mask); sigpause(mask);
24220
24221   ;
24222   return 0;
24223 }
24224 _ACEOF
24225 rm -f conftest.$ac_objext conftest$ac_exeext
24226 if { (ac_try="$ac_link"
24227 case "(($ac_try" in
24228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229   *) ac_try_echo=$ac_try;;
24230 esac
24231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24232   (eval "$ac_link") 2>conftest.er1
24233   ac_status=$?
24234   grep -v '^ *+' conftest.er1 >conftest.err
24235   rm -f conftest.er1
24236   cat conftest.err >&5
24237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238   (exit $ac_status); } &&
24239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24240   { (case "(($ac_try" in
24241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242   *) ac_try_echo=$ac_try;;
24243 esac
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245   (eval "$ac_try") 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); }; } &&
24249          { ac_try='test -s conftest$ac_exeext'
24250   { (case "(($ac_try" in
24251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252   *) ac_try_echo=$ac_try;;
24253 esac
24254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24255   (eval "$ac_try") 2>&5
24256   ac_status=$?
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); }; }; then
24259   bash_cv_signal_vintage="4.2bsd"
24260 else
24261   echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264
24265         cat >conftest.$ac_ext <<_ACEOF
24266 /* confdefs.h.  */
24267 _ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h.  */
24271
24272           #include <signal.h>
24273           RETSIGTYPE foo() { }
24274 int
24275 main ()
24276 {
24277
24278                   int mask = sigmask(SIGINT);
24279                   sigset(SIGINT, foo); sigrelse(SIGINT);
24280                   sighold(SIGINT); sigpause(SIGINT);
24281
24282   ;
24283   return 0;
24284 }
24285 _ACEOF
24286 rm -f conftest.$ac_objext conftest$ac_exeext
24287 if { (ac_try="$ac_link"
24288 case "(($ac_try" in
24289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290   *) ac_try_echo=$ac_try;;
24291 esac
24292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293   (eval "$ac_link") 2>conftest.er1
24294   ac_status=$?
24295   grep -v '^ *+' conftest.er1 >conftest.err
24296   rm -f conftest.er1
24297   cat conftest.err >&5
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); } &&
24300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24301   { (case "(($ac_try" in
24302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303   *) ac_try_echo=$ac_try;;
24304 esac
24305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306   (eval "$ac_try") 2>&5
24307   ac_status=$?
24308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309   (exit $ac_status); }; } &&
24310          { ac_try='test -s conftest$ac_exeext'
24311   { (case "(($ac_try" in
24312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313   *) ac_try_echo=$ac_try;;
24314 esac
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316   (eval "$ac_try") 2>&5
24317   ac_status=$?
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); }; }; then
24320   bash_cv_signal_vintage="svr3"
24321 else
24322   echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24324
24325         bash_cv_signal_vintage="v7"
24326
24327 fi
24328
24329 rm -f core conftest.err conftest.$ac_objext \
24330       conftest$ac_exeext conftest.$ac_ext
24331
24332 fi
24333
24334 rm -f core conftest.err conftest.$ac_objext \
24335       conftest$ac_exeext conftest.$ac_ext
24336
24337 fi
24338
24339 rm -f core conftest.err conftest.$ac_objext \
24340       conftest$ac_exeext conftest.$ac_ext
24341
24342 fi
24343
24344   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24345 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24346   if test "$bash_cv_signal_vintage" = "posix"; then
24347     cat >>confdefs.h <<\_ACEOF
24348 #define HAVE_POSIX_SIGNALS 1
24349 _ACEOF
24350
24351   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24352     cat >>confdefs.h <<\_ACEOF
24353 #define HAVE_BSD_SIGNALS 1
24354 _ACEOF
24355
24356   elif test "$bash_cv_signal_vintage" = "svr3"; then
24357     cat >>confdefs.h <<\_ACEOF
24358 #define HAVE_USG_SIGHOLD 1
24359 _ACEOF
24360
24361   fi
24362
24363 { echo "$as_me:$LINENO: checking for mode_t" >&5
24364 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24365 if test "${ac_cv_type_mode_t+set}" = set; then
24366   echo $ECHO_N "(cached) $ECHO_C" >&6
24367 else
24368   cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h.  */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h.  */
24374 $ac_includes_default
24375 typedef mode_t ac__type_new_;
24376 int
24377 main ()
24378 {
24379 if ((ac__type_new_ *) 0)
24380   return 0;
24381 if (sizeof (ac__type_new_))
24382   return 0;
24383   ;
24384   return 0;
24385 }
24386 _ACEOF
24387 rm -f conftest.$ac_objext
24388 if { (ac_try="$ac_compile"
24389 case "(($ac_try" in
24390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391   *) ac_try_echo=$ac_try;;
24392 esac
24393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24394   (eval "$ac_compile") 2>conftest.er1
24395   ac_status=$?
24396   grep -v '^ *+' conftest.er1 >conftest.err
24397   rm -f conftest.er1
24398   cat conftest.err >&5
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); } &&
24401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24402   { (case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407   (eval "$ac_try") 2>&5
24408   ac_status=$?
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); }; } &&
24411          { ac_try='test -s conftest.$ac_objext'
24412   { (case "(($ac_try" in
24413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414   *) ac_try_echo=$ac_try;;
24415 esac
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417   (eval "$ac_try") 2>&5
24418   ac_status=$?
24419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420   (exit $ac_status); }; }; then
24421   ac_cv_type_mode_t=yes
24422 else
24423   echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24425
24426         ac_cv_type_mode_t=no
24427 fi
24428
24429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24430 fi
24431 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24432 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24433 if test $ac_cv_type_mode_t = yes; then
24434   :
24435 else
24436
24437 cat >>confdefs.h <<_ACEOF
24438 #define mode_t int
24439 _ACEOF
24440
24441 fi
24442
24443 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24444 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24445 if test "${ac_cv_type_uid_t+set}" = set; then
24446   echo $ECHO_N "(cached) $ECHO_C" >&6
24447 else
24448   cat >conftest.$ac_ext <<_ACEOF
24449 /* confdefs.h.  */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h.  */
24454 #include <sys/types.h>
24455
24456 _ACEOF
24457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24458   $EGREP "uid_t" >/dev/null 2>&1; then
24459   ac_cv_type_uid_t=yes
24460 else
24461   ac_cv_type_uid_t=no
24462 fi
24463 rm -f conftest*
24464
24465 fi
24466 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24467 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24468 if test $ac_cv_type_uid_t = no; then
24469
24470 cat >>confdefs.h <<\_ACEOF
24471 #define uid_t int
24472 _ACEOF
24473
24474
24475 cat >>confdefs.h <<\_ACEOF
24476 #define gid_t int
24477 _ACEOF
24478
24479 fi
24480
24481 { echo "$as_me:$LINENO: checking for size_t" >&5
24482 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24483 if test "${ac_cv_type_size_t+set}" = set; then
24484   echo $ECHO_N "(cached) $ECHO_C" >&6
24485 else
24486   cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h.  */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h.  */
24492 $ac_includes_default
24493 typedef size_t ac__type_new_;
24494 int
24495 main ()
24496 {
24497 if ((ac__type_new_ *) 0)
24498   return 0;
24499 if (sizeof (ac__type_new_))
24500   return 0;
24501   ;
24502   return 0;
24503 }
24504 _ACEOF
24505 rm -f conftest.$ac_objext
24506 if { (ac_try="$ac_compile"
24507 case "(($ac_try" in
24508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509   *) ac_try_echo=$ac_try;;
24510 esac
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512   (eval "$ac_compile") 2>conftest.er1
24513   ac_status=$?
24514   grep -v '^ *+' conftest.er1 >conftest.err
24515   rm -f conftest.er1
24516   cat conftest.err >&5
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } &&
24519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24520   { (case "(($ac_try" in
24521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24522   *) ac_try_echo=$ac_try;;
24523 esac
24524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24525   (eval "$ac_try") 2>&5
24526   ac_status=$?
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); }; } &&
24529          { ac_try='test -s conftest.$ac_objext'
24530   { (case "(($ac_try" in
24531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532   *) ac_try_echo=$ac_try;;
24533 esac
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535   (eval "$ac_try") 2>&5
24536   ac_status=$?
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); }; }; then
24539   ac_cv_type_size_t=yes
24540 else
24541   echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.$ac_ext >&5
24543
24544         ac_cv_type_size_t=no
24545 fi
24546
24547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24548 fi
24549 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24550 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24551 if test $ac_cv_type_size_t = yes; then
24552   :
24553 else
24554
24555 cat >>confdefs.h <<_ACEOF
24556 #define size_t unsigned int
24557 _ACEOF
24558
24559 fi
24560
24561 { echo "$as_me:$LINENO: checking for pid_t" >&5
24562 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24563 if test "${ac_cv_type_pid_t+set}" = set; then
24564   echo $ECHO_N "(cached) $ECHO_C" >&6
24565 else
24566   cat >conftest.$ac_ext <<_ACEOF
24567 /* confdefs.h.  */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h.  */
24572 $ac_includes_default
24573 typedef pid_t ac__type_new_;
24574 int
24575 main ()
24576 {
24577 if ((ac__type_new_ *) 0)
24578   return 0;
24579 if (sizeof (ac__type_new_))
24580   return 0;
24581   ;
24582   return 0;
24583 }
24584 _ACEOF
24585 rm -f conftest.$ac_objext
24586 if { (ac_try="$ac_compile"
24587 case "(($ac_try" in
24588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589   *) ac_try_echo=$ac_try;;
24590 esac
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592   (eval "$ac_compile") 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } &&
24599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24600   { (case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_try") 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; } &&
24609          { ac_try='test -s conftest.$ac_objext'
24610   { (case "(($ac_try" in
24611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612   *) ac_try_echo=$ac_try;;
24613 esac
24614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24615   (eval "$ac_try") 2>&5
24616   ac_status=$?
24617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618   (exit $ac_status); }; }; then
24619   ac_cv_type_pid_t=yes
24620 else
24621   echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24623
24624         ac_cv_type_pid_t=no
24625 fi
24626
24627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24628 fi
24629 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24630 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24631 if test $ac_cv_type_pid_t = yes; then
24632   :
24633 else
24634
24635 cat >>confdefs.h <<_ACEOF
24636 #define pid_t int
24637 _ACEOF
24638
24639 fi
24640
24641 { echo "$as_me:$LINENO: checking for off_t" >&5
24642 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24643 if test "${ac_cv_type_off_t+set}" = set; then
24644   echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646   cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h.  */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h.  */
24652 $ac_includes_default
24653 typedef off_t ac__type_new_;
24654 int
24655 main ()
24656 {
24657 if ((ac__type_new_ *) 0)
24658   return 0;
24659 if (sizeof (ac__type_new_))
24660   return 0;
24661   ;
24662   return 0;
24663 }
24664 _ACEOF
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669   *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672   (eval "$ac_compile") 2>conftest.er1
24673   ac_status=$?
24674   grep -v '^ *+' conftest.er1 >conftest.err
24675   rm -f conftest.er1
24676   cat conftest.err >&5
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); } &&
24679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24680   { (case "(($ac_try" in
24681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682   *) ac_try_echo=$ac_try;;
24683 esac
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685   (eval "$ac_try") 2>&5
24686   ac_status=$?
24687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688   (exit $ac_status); }; } &&
24689          { ac_try='test -s conftest.$ac_objext'
24690   { (case "(($ac_try" in
24691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692   *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695   (eval "$ac_try") 2>&5
24696   ac_status=$?
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); }; }; then
24699   ac_cv_type_off_t=yes
24700 else
24701   echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704         ac_cv_type_off_t=no
24705 fi
24706
24707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24708 fi
24709 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24710 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24711 if test $ac_cv_type_off_t = yes; then
24712   :
24713 else
24714
24715 cat >>confdefs.h <<_ACEOF
24716 #define off_t long int
24717 _ACEOF
24718
24719 fi
24720
24721 { echo "$as_me:$LINENO: checking for ino_t" >&5
24722 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24723 if test "${ac_cv_type_ino_t+set}" = set; then
24724   echo $ECHO_N "(cached) $ECHO_C" >&6
24725 else
24726   cat >conftest.$ac_ext <<_ACEOF
24727 /* confdefs.h.  */
24728 _ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h.  */
24732 $ac_includes_default
24733 typedef ino_t ac__type_new_;
24734 int
24735 main ()
24736 {
24737 if ((ac__type_new_ *) 0)
24738   return 0;
24739 if (sizeof (ac__type_new_))
24740   return 0;
24741   ;
24742   return 0;
24743 }
24744 _ACEOF
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749   *) ac_try_echo=$ac_try;;
24750 esac
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752   (eval "$ac_compile") 2>conftest.er1
24753   ac_status=$?
24754   grep -v '^ *+' conftest.er1 >conftest.err
24755   rm -f conftest.er1
24756   cat conftest.err >&5
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); } &&
24759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24760   { (case "(($ac_try" in
24761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762   *) ac_try_echo=$ac_try;;
24763 esac
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765   (eval "$ac_try") 2>&5
24766   ac_status=$?
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); }; } &&
24769          { ac_try='test -s conftest.$ac_objext'
24770   { (case "(($ac_try" in
24771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772   *) ac_try_echo=$ac_try;;
24773 esac
24774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24775   (eval "$ac_try") 2>&5
24776   ac_status=$?
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); }; }; then
24779   ac_cv_type_ino_t=yes
24780 else
24781   echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24783
24784         ac_cv_type_ino_t=no
24785 fi
24786
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788 fi
24789 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24790 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24791 if test $ac_cv_type_ino_t = yes; then
24792   :
24793 else
24794
24795 cat >>confdefs.h <<_ACEOF
24796 #define ino_t unsigned long
24797 _ACEOF
24798
24799 fi
24800
24801 { echo "$as_me:$LINENO: checking for dev_t" >&5
24802 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24803 if test "${ac_cv_type_dev_t+set}" = set; then
24804   echo $ECHO_N "(cached) $ECHO_C" >&6
24805 else
24806   cat >conftest.$ac_ext <<_ACEOF
24807 /* confdefs.h.  */
24808 _ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h.  */
24812 $ac_includes_default
24813 typedef dev_t ac__type_new_;
24814 int
24815 main ()
24816 {
24817 if ((ac__type_new_ *) 0)
24818   return 0;
24819 if (sizeof (ac__type_new_))
24820   return 0;
24821   ;
24822   return 0;
24823 }
24824 _ACEOF
24825 rm -f conftest.$ac_objext
24826 if { (ac_try="$ac_compile"
24827 case "(($ac_try" in
24828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829   *) ac_try_echo=$ac_try;;
24830 esac
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832   (eval "$ac_compile") 2>conftest.er1
24833   ac_status=$?
24834   grep -v '^ *+' conftest.er1 >conftest.err
24835   rm -f conftest.er1
24836   cat conftest.err >&5
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); } &&
24839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24840   { (case "(($ac_try" in
24841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842   *) ac_try_echo=$ac_try;;
24843 esac
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845   (eval "$ac_try") 2>&5
24846   ac_status=$?
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); }; } &&
24849          { ac_try='test -s conftest.$ac_objext'
24850   { (case "(($ac_try" in
24851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852   *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855   (eval "$ac_try") 2>&5
24856   ac_status=$?
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); }; }; then
24859   ac_cv_type_dev_t=yes
24860 else
24861   echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864         ac_cv_type_dev_t=no
24865 fi
24866
24867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24868 fi
24869 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
24870 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
24871 if test $ac_cv_type_dev_t = yes; then
24872   :
24873 else
24874
24875 cat >>confdefs.h <<_ACEOF
24876 #define dev_t unsigned long
24877 _ACEOF
24878
24879 fi
24880
24881 { echo "$as_me:$LINENO: checking for daddr_t" >&5
24882 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
24883 if test "${ac_cv_type_daddr_t+set}" = set; then
24884   echo $ECHO_N "(cached) $ECHO_C" >&6
24885 else
24886   cat >conftest.$ac_ext <<_ACEOF
24887 /* confdefs.h.  */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h.  */
24892 $ac_includes_default
24893 typedef daddr_t ac__type_new_;
24894 int
24895 main ()
24896 {
24897 if ((ac__type_new_ *) 0)
24898   return 0;
24899 if (sizeof (ac__type_new_))
24900   return 0;
24901   ;
24902   return 0;
24903 }
24904 _ACEOF
24905 rm -f conftest.$ac_objext
24906 if { (ac_try="$ac_compile"
24907 case "(($ac_try" in
24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909   *) ac_try_echo=$ac_try;;
24910 esac
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912   (eval "$ac_compile") 2>conftest.er1
24913   ac_status=$?
24914   grep -v '^ *+' conftest.er1 >conftest.err
24915   rm -f conftest.er1
24916   cat conftest.err >&5
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); } &&
24919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24920   { (case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_try") 2>&5
24926   ac_status=$?
24927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928   (exit $ac_status); }; } &&
24929          { ac_try='test -s conftest.$ac_objext'
24930   { (case "(($ac_try" in
24931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24932   *) ac_try_echo=$ac_try;;
24933 esac
24934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24935   (eval "$ac_try") 2>&5
24936   ac_status=$?
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); }; }; then
24939   ac_cv_type_daddr_t=yes
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         ac_cv_type_daddr_t=no
24945 fi
24946
24947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 fi
24949 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
24950 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
24951 if test $ac_cv_type_daddr_t = yes; then
24952   :
24953 else
24954
24955 cat >>confdefs.h <<_ACEOF
24956 #define daddr_t long
24957 _ACEOF
24958
24959 fi
24960
24961 { echo "$as_me:$LINENO: checking for major_t" >&5
24962 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
24963 if test "${ac_cv_type_major_t+set}" = set; then
24964   echo $ECHO_N "(cached) $ECHO_C" >&6
24965 else
24966   cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h.  */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h.  */
24972 $ac_includes_default
24973 typedef major_t ac__type_new_;
24974 int
24975 main ()
24976 {
24977 if ((ac__type_new_ *) 0)
24978   return 0;
24979 if (sizeof (ac__type_new_))
24980   return 0;
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 rm -f conftest.$ac_objext
24986 if { (ac_try="$ac_compile"
24987 case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_compile") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } &&
24999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25000   { (case "(($ac_try" in
25001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002   *) ac_try_echo=$ac_try;;
25003 esac
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005   (eval "$ac_try") 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); }; } &&
25009          { ac_try='test -s conftest.$ac_objext'
25010   { (case "(($ac_try" in
25011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012   *) ac_try_echo=$ac_try;;
25013 esac
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015   (eval "$ac_try") 2>&5
25016   ac_status=$?
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); }; }; then
25019   ac_cv_type_major_t=yes
25020 else
25021   echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024         ac_cv_type_major_t=no
25025 fi
25026
25027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25028 fi
25029 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25030 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25031 if test $ac_cv_type_major_t = yes; then
25032   :
25033 else
25034
25035 cat >>confdefs.h <<_ACEOF
25036 #define major_t int
25037 _ACEOF
25038
25039 fi
25040
25041 { echo "$as_me:$LINENO: checking for minor_t" >&5
25042 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25043 if test "${ac_cv_type_minor_t+set}" = set; then
25044   echo $ECHO_N "(cached) $ECHO_C" >&6
25045 else
25046   cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h.  */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h.  */
25052 $ac_includes_default
25053 typedef minor_t ac__type_new_;
25054 int
25055 main ()
25056 {
25057 if ((ac__type_new_ *) 0)
25058   return 0;
25059 if (sizeof (ac__type_new_))
25060   return 0;
25061   ;
25062   return 0;
25063 }
25064 _ACEOF
25065 rm -f conftest.$ac_objext
25066 if { (ac_try="$ac_compile"
25067 case "(($ac_try" in
25068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069   *) ac_try_echo=$ac_try;;
25070 esac
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072   (eval "$ac_compile") 2>conftest.er1
25073   ac_status=$?
25074   grep -v '^ *+' conftest.er1 >conftest.err
25075   rm -f conftest.er1
25076   cat conftest.err >&5
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); } &&
25079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25080   { (case "(($ac_try" in
25081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082   *) ac_try_echo=$ac_try;;
25083 esac
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085   (eval "$ac_try") 2>&5
25086   ac_status=$?
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); }; } &&
25089          { ac_try='test -s conftest.$ac_objext'
25090   { (case "(($ac_try" in
25091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25092   *) ac_try_echo=$ac_try;;
25093 esac
25094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25095   (eval "$ac_try") 2>&5
25096   ac_status=$?
25097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); }; }; then
25099   ac_cv_type_minor_t=yes
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104         ac_cv_type_minor_t=no
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108 fi
25109 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25110 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25111 if test $ac_cv_type_minor_t = yes; then
25112   :
25113 else
25114
25115 cat >>confdefs.h <<_ACEOF
25116 #define minor_t int
25117 _ACEOF
25118
25119 fi
25120
25121 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25122 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25123 if test "${ac_cv_type_ssize_t+set}" = set; then
25124   echo $ECHO_N "(cached) $ECHO_C" >&6
25125 else
25126   cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132 $ac_includes_default
25133 typedef ssize_t ac__type_new_;
25134 int
25135 main ()
25136 {
25137 if ((ac__type_new_ *) 0)
25138   return 0;
25139 if (sizeof (ac__type_new_))
25140   return 0;
25141   ;
25142   return 0;
25143 }
25144 _ACEOF
25145 rm -f conftest.$ac_objext
25146 if { (ac_try="$ac_compile"
25147 case "(($ac_try" in
25148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149   *) ac_try_echo=$ac_try;;
25150 esac
25151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25152   (eval "$ac_compile") 2>conftest.er1
25153   ac_status=$?
25154   grep -v '^ *+' conftest.er1 >conftest.err
25155   rm -f conftest.er1
25156   cat conftest.err >&5
25157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158   (exit $ac_status); } &&
25159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25160   { (case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165   (eval "$ac_try") 2>&5
25166   ac_status=$?
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); }; } &&
25169          { ac_try='test -s conftest.$ac_objext'
25170   { (case "(($ac_try" in
25171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172   *) ac_try_echo=$ac_try;;
25173 esac
25174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175   (eval "$ac_try") 2>&5
25176   ac_status=$?
25177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); }; }; then
25179   ac_cv_type_ssize_t=yes
25180 else
25181   echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.$ac_ext >&5
25183
25184         ac_cv_type_ssize_t=no
25185 fi
25186
25187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25188 fi
25189 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25190 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25191 if test $ac_cv_type_ssize_t = yes; then
25192   :
25193 else
25194
25195 cat >>confdefs.h <<_ACEOF
25196 #define ssize_t int
25197 _ACEOF
25198
25199 fi
25200
25201 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25202 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25203 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25204   echo $ECHO_N "(cached) $ECHO_C" >&6
25205 else
25206   cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h.  */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h.  */
25212 $ac_includes_default
25213 int
25214 main ()
25215 {
25216 static struct stat ac_aggr;
25217 if (ac_aggr.st_blocks)
25218 return 0;
25219   ;
25220   return 0;
25221 }
25222 _ACEOF
25223 rm -f conftest.$ac_objext
25224 if { (ac_try="$ac_compile"
25225 case "(($ac_try" in
25226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227   *) ac_try_echo=$ac_try;;
25228 esac
25229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25230   (eval "$ac_compile") 2>conftest.er1
25231   ac_status=$?
25232   grep -v '^ *+' conftest.er1 >conftest.err
25233   rm -f conftest.er1
25234   cat conftest.err >&5
25235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); } &&
25237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25238   { (case "(($ac_try" in
25239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240   *) ac_try_echo=$ac_try;;
25241 esac
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243   (eval "$ac_try") 2>&5
25244   ac_status=$?
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); }; } &&
25247          { ac_try='test -s conftest.$ac_objext'
25248   { (case "(($ac_try" in
25249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250   *) ac_try_echo=$ac_try;;
25251 esac
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253   (eval "$ac_try") 2>&5
25254   ac_status=$?
25255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256   (exit $ac_status); }; }; then
25257   ac_cv_member_struct_stat_st_blocks=yes
25258 else
25259   echo "$as_me: failed program was:" >&5
25260 sed 's/^/| /' conftest.$ac_ext >&5
25261
25262         cat >conftest.$ac_ext <<_ACEOF
25263 /* confdefs.h.  */
25264 _ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h.  */
25268 $ac_includes_default
25269 int
25270 main ()
25271 {
25272 static struct stat ac_aggr;
25273 if (sizeof ac_aggr.st_blocks)
25274 return 0;
25275   ;
25276   return 0;
25277 }
25278 _ACEOF
25279 rm -f conftest.$ac_objext
25280 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25287   ac_status=$?
25288   grep -v '^ *+' conftest.er1 >conftest.err
25289   rm -f conftest.er1
25290   cat conftest.err >&5
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); } &&
25293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25294   { (case "(($ac_try" in
25295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296   *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299   (eval "$ac_try") 2>&5
25300   ac_status=$?
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); }; } &&
25303          { ac_try='test -s conftest.$ac_objext'
25304   { (case "(($ac_try" in
25305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306   *) ac_try_echo=$ac_try;;
25307 esac
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309   (eval "$ac_try") 2>&5
25310   ac_status=$?
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); }; }; then
25313   ac_cv_member_struct_stat_st_blocks=yes
25314 else
25315   echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318         ac_cv_member_struct_stat_st_blocks=no
25319 fi
25320
25321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322 fi
25323
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 fi
25326 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25327 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25328 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25329
25330 cat >>confdefs.h <<_ACEOF
25331 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25332 _ACEOF
25333
25334
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_ST_BLOCKS 1
25337 _ACEOF
25338
25339 else
25340   case " $LIBOBJS " in
25341   *" fileblocks.$ac_objext "* ) ;;
25342   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25343  ;;
25344 esac
25345
25346 fi
25347
25348
25349 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25350 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25351 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25352   echo $ECHO_N "(cached) $ECHO_C" >&6
25353 else
25354   cat >conftest.$ac_ext <<_ACEOF
25355 /* confdefs.h.  */
25356 _ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h.  */
25360 $ac_includes_default
25361 int
25362 main ()
25363 {
25364 static struct stat ac_aggr;
25365 if (ac_aggr.st_rdev)
25366 return 0;
25367   ;
25368   return 0;
25369 }
25370 _ACEOF
25371 rm -f conftest.$ac_objext
25372 if { (ac_try="$ac_compile"
25373 case "(($ac_try" in
25374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25375   *) ac_try_echo=$ac_try;;
25376 esac
25377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25378   (eval "$ac_compile") 2>conftest.er1
25379   ac_status=$?
25380   grep -v '^ *+' conftest.er1 >conftest.err
25381   rm -f conftest.er1
25382   cat conftest.err >&5
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); } &&
25385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25386   { (case "(($ac_try" in
25387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25388   *) ac_try_echo=$ac_try;;
25389 esac
25390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25391   (eval "$ac_try") 2>&5
25392   ac_status=$?
25393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394   (exit $ac_status); }; } &&
25395          { ac_try='test -s conftest.$ac_objext'
25396   { (case "(($ac_try" in
25397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398   *) ac_try_echo=$ac_try;;
25399 esac
25400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25401   (eval "$ac_try") 2>&5
25402   ac_status=$?
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); }; }; then
25405   ac_cv_member_struct_stat_st_rdev=yes
25406 else
25407   echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25409
25410         cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416 $ac_includes_default
25417 int
25418 main ()
25419 {
25420 static struct stat ac_aggr;
25421 if (sizeof ac_aggr.st_rdev)
25422 return 0;
25423   ;
25424   return 0;
25425 }
25426 _ACEOF
25427 rm -f conftest.$ac_objext
25428 if { (ac_try="$ac_compile"
25429 case "(($ac_try" in
25430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431   *) ac_try_echo=$ac_try;;
25432 esac
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434   (eval "$ac_compile") 2>conftest.er1
25435   ac_status=$?
25436   grep -v '^ *+' conftest.er1 >conftest.err
25437   rm -f conftest.er1
25438   cat conftest.err >&5
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); } &&
25441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25442   { (case "(($ac_try" in
25443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444   *) ac_try_echo=$ac_try;;
25445 esac
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447   (eval "$ac_try") 2>&5
25448   ac_status=$?
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); }; } &&
25451          { ac_try='test -s conftest.$ac_objext'
25452   { (case "(($ac_try" in
25453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454   *) ac_try_echo=$ac_try;;
25455 esac
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457   (eval "$ac_try") 2>&5
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; }; then
25461   ac_cv_member_struct_stat_st_rdev=yes
25462 else
25463   echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25465
25466         ac_cv_member_struct_stat_st_rdev=no
25467 fi
25468
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25470 fi
25471
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473 fi
25474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25475 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25476 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25477
25478 cat >>confdefs.h <<_ACEOF
25479 #define HAVE_STRUCT_STAT_ST_RDEV 1
25480 _ACEOF
25481
25482
25483 cat >>confdefs.h <<\_ACEOF
25484 #define HAVE_ST_RDEV 1
25485 _ACEOF
25486
25487 fi
25488
25489
25490 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25491 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25492 if test "${ac_cv_struct_tm+set}" = set; then
25493   echo $ECHO_N "(cached) $ECHO_C" >&6
25494 else
25495   cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25501 #include <sys/types.h>
25502 #include <time.h>
25503
25504 int
25505 main ()
25506 {
25507 struct tm *tp; tp->tm_sec;
25508   ;
25509   return 0;
25510 }
25511 _ACEOF
25512 rm -f conftest.$ac_objext
25513 if { (ac_try="$ac_compile"
25514 case "(($ac_try" in
25515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516   *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519   (eval "$ac_compile") 2>conftest.er1
25520   ac_status=$?
25521   grep -v '^ *+' conftest.er1 >conftest.err
25522   rm -f conftest.er1
25523   cat conftest.err >&5
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); } &&
25526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25527   { (case "(($ac_try" in
25528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25529   *) ac_try_echo=$ac_try;;
25530 esac
25531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25532   (eval "$ac_try") 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; } &&
25536          { ac_try='test -s conftest.$ac_objext'
25537   { (case "(($ac_try" in
25538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539   *) ac_try_echo=$ac_try;;
25540 esac
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542   (eval "$ac_try") 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; }; then
25546   ac_cv_struct_tm=time.h
25547 else
25548   echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551         ac_cv_struct_tm=sys/time.h
25552 fi
25553
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555 fi
25556 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25557 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25558 if test $ac_cv_struct_tm = sys/time.h; then
25559
25560 cat >>confdefs.h <<\_ACEOF
25561 #define TM_IN_SYS_TIME 1
25562 _ACEOF
25563
25564 fi
25565
25566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25568 if test "${ac_cv_c_const+set}" = set; then
25569   echo $ECHO_N "(cached) $ECHO_C" >&6
25570 else
25571   cat >conftest.$ac_ext <<_ACEOF
25572 /* confdefs.h.  */
25573 _ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h.  */
25577
25578 int
25579 main ()
25580 {
25581 /* FIXME: Include the comments suggested by Paul. */
25582 #ifndef __cplusplus
25583   /* Ultrix mips cc rejects this.  */
25584   typedef int charset[2];
25585   const charset x;
25586   /* SunOS 4.1.1 cc rejects this.  */
25587   char const *const *ccp;
25588   char **p;
25589   /* NEC SVR4.0.2 mips cc rejects this.  */
25590   struct point {int x, y;};
25591   static struct point const zero = {0,0};
25592   /* AIX XL C 1.02.0.0 rejects this.
25593      It does not let you subtract one const X* pointer from another in
25594      an arm of an if-expression whose if-part is not a constant
25595      expression */
25596   const char *g = "string";
25597   ccp = &g + (g ? g-g : 0);
25598   /* HPUX 7.0 cc rejects these. */
25599   ++ccp;
25600   p = (char**) ccp;
25601   ccp = (char const *const *) p;
25602   { /* SCO 3.2v4 cc rejects this.  */
25603     char *t;
25604     char const *s = 0 ? (char *) 0 : (char const *) 0;
25605
25606     *t++ = 0;
25607     if (s) return 0;
25608   }
25609   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25610     int x[] = {25, 17};
25611     const int *foo = &x[0];
25612     ++foo;
25613   }
25614   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25615     typedef const int *iptr;
25616     iptr p = 0;
25617     ++p;
25618   }
25619   { /* AIX XL C 1.02.0.0 rejects this saying
25620        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25621     struct s { int j; const int *ap[3]; };
25622     struct s *b; b->j = 5;
25623   }
25624   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25625     const int foo = 10;
25626     if (!foo) return 0;
25627   }
25628   return !x[0] && !zero.x;
25629 #endif
25630
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 rm -f conftest.$ac_objext
25636 if { (ac_try="$ac_compile"
25637 case "(($ac_try" in
25638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639   *) ac_try_echo=$ac_try;;
25640 esac
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642   (eval "$ac_compile") 2>conftest.er1
25643   ac_status=$?
25644   grep -v '^ *+' conftest.er1 >conftest.err
25645   rm -f conftest.er1
25646   cat conftest.err >&5
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); } &&
25649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25650   { (case "(($ac_try" in
25651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25652   *) ac_try_echo=$ac_try;;
25653 esac
25654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25655   (eval "$ac_try") 2>&5
25656   ac_status=$?
25657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658   (exit $ac_status); }; } &&
25659          { ac_try='test -s conftest.$ac_objext'
25660   { (case "(($ac_try" in
25661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25662   *) ac_try_echo=$ac_try;;
25663 esac
25664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25665   (eval "$ac_try") 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; }; then
25669   ac_cv_c_const=yes
25670 else
25671   echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25673
25674         ac_cv_c_const=no
25675 fi
25676
25677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678 fi
25679 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25680 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25681 if test $ac_cv_c_const = no; then
25682
25683 cat >>confdefs.h <<\_ACEOF
25684 #define const
25685 _ACEOF
25686
25687 fi
25688
25689
25690
25691 { echo "$as_me:$LINENO: checking for char" >&5
25692 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25693 if test "${ac_cv_type_char+set}" = set; then
25694   echo $ECHO_N "(cached) $ECHO_C" >&6
25695 else
25696   cat >conftest.$ac_ext <<_ACEOF
25697 /* confdefs.h.  */
25698 _ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h.  */
25702 $ac_includes_default
25703 typedef char ac__type_new_;
25704 int
25705 main ()
25706 {
25707 if ((ac__type_new_ *) 0)
25708   return 0;
25709 if (sizeof (ac__type_new_))
25710   return 0;
25711   ;
25712   return 0;
25713 }
25714 _ACEOF
25715 rm -f conftest.$ac_objext
25716 if { (ac_try="$ac_compile"
25717 case "(($ac_try" in
25718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719   *) ac_try_echo=$ac_try;;
25720 esac
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722   (eval "$ac_compile") 2>conftest.er1
25723   ac_status=$?
25724   grep -v '^ *+' conftest.er1 >conftest.err
25725   rm -f conftest.er1
25726   cat conftest.err >&5
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); } &&
25729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25730   { (case "(($ac_try" in
25731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25732   *) ac_try_echo=$ac_try;;
25733 esac
25734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25735   (eval "$ac_try") 2>&5
25736   ac_status=$?
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); }; } &&
25739          { ac_try='test -s conftest.$ac_objext'
25740   { (case "(($ac_try" in
25741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742   *) ac_try_echo=$ac_try;;
25743 esac
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745   (eval "$ac_try") 2>&5
25746   ac_status=$?
25747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748   (exit $ac_status); }; }; then
25749   ac_cv_type_char=yes
25750 else
25751   echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25753
25754         ac_cv_type_char=no
25755 fi
25756
25757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758 fi
25759 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25760 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25761
25762 { echo "$as_me:$LINENO: checking size of char" >&5
25763 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25764 if test "${ac_cv_sizeof_char+set}" = set; then
25765   echo $ECHO_N "(cached) $ECHO_C" >&6
25766 else
25767   if test "$ac_cv_type_char" = yes; then
25768   # The cast to long int works around a bug in the HP C Compiler
25769   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25770   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25771   # This bug is HP SR number 8606223364.
25772   if test "$cross_compiling" = yes; then
25773   # Depending upon the size, compute the lo and hi bounds.
25774 cat >conftest.$ac_ext <<_ACEOF
25775 /* confdefs.h.  */
25776 _ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h.  */
25780 $ac_includes_default
25781                    typedef char ac__type_sizeof_;
25782 int
25783 main ()
25784 {
25785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25786 test_array [0] = 0
25787
25788   ;
25789   return 0;
25790 }
25791 _ACEOF
25792 rm -f conftest.$ac_objext
25793 if { (ac_try="$ac_compile"
25794 case "(($ac_try" in
25795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25796   *) ac_try_echo=$ac_try;;
25797 esac
25798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25799   (eval "$ac_compile") 2>conftest.er1
25800   ac_status=$?
25801   grep -v '^ *+' conftest.er1 >conftest.err
25802   rm -f conftest.er1
25803   cat conftest.err >&5
25804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805   (exit $ac_status); } &&
25806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25807   { (case "(($ac_try" in
25808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25809   *) ac_try_echo=$ac_try;;
25810 esac
25811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25812   (eval "$ac_try") 2>&5
25813   ac_status=$?
25814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815   (exit $ac_status); }; } &&
25816          { ac_try='test -s conftest.$ac_objext'
25817   { (case "(($ac_try" in
25818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819   *) ac_try_echo=$ac_try;;
25820 esac
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822   (eval "$ac_try") 2>&5
25823   ac_status=$?
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); }; }; then
25826   ac_lo=0 ac_mid=0
25827   while :; do
25828     cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h.  */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h.  */
25834 $ac_includes_default
25835                    typedef char ac__type_sizeof_;
25836 int
25837 main ()
25838 {
25839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25840 test_array [0] = 0
25841
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 rm -f conftest.$ac_objext
25847 if { (ac_try="$ac_compile"
25848 case "(($ac_try" in
25849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850   *) ac_try_echo=$ac_try;;
25851 esac
25852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25853   (eval "$ac_compile") 2>conftest.er1
25854   ac_status=$?
25855   grep -v '^ *+' conftest.er1 >conftest.err
25856   rm -f conftest.er1
25857   cat conftest.err >&5
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); } &&
25860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25861   { (case "(($ac_try" in
25862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863   *) ac_try_echo=$ac_try;;
25864 esac
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866   (eval "$ac_try") 2>&5
25867   ac_status=$?
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); }; } &&
25870          { ac_try='test -s conftest.$ac_objext'
25871   { (case "(($ac_try" in
25872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873   *) ac_try_echo=$ac_try;;
25874 esac
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876   (eval "$ac_try") 2>&5
25877   ac_status=$?
25878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); }; }; then
25880   ac_hi=$ac_mid; break
25881 else
25882   echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885         ac_lo=`expr $ac_mid + 1`
25886                         if test $ac_lo -le $ac_mid; then
25887                           ac_lo= ac_hi=
25888                           break
25889                         fi
25890                         ac_mid=`expr 2 '*' $ac_mid + 1`
25891 fi
25892
25893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25894   done
25895 else
25896   echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25898
25899         cat >conftest.$ac_ext <<_ACEOF
25900 /* confdefs.h.  */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h.  */
25905 $ac_includes_default
25906                    typedef char ac__type_sizeof_;
25907 int
25908 main ()
25909 {
25910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25911 test_array [0] = 0
25912
25913   ;
25914   return 0;
25915 }
25916 _ACEOF
25917 rm -f conftest.$ac_objext
25918 if { (ac_try="$ac_compile"
25919 case "(($ac_try" in
25920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921   *) ac_try_echo=$ac_try;;
25922 esac
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924   (eval "$ac_compile") 2>conftest.er1
25925   ac_status=$?
25926   grep -v '^ *+' conftest.er1 >conftest.err
25927   rm -f conftest.er1
25928   cat conftest.err >&5
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); } &&
25931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25932   { (case "(($ac_try" in
25933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25934   *) ac_try_echo=$ac_try;;
25935 esac
25936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25937   (eval "$ac_try") 2>&5
25938   ac_status=$?
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); }; } &&
25941          { ac_try='test -s conftest.$ac_objext'
25942   { (case "(($ac_try" in
25943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944   *) ac_try_echo=$ac_try;;
25945 esac
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947   (eval "$ac_try") 2>&5
25948   ac_status=$?
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); }; }; then
25951   ac_hi=-1 ac_mid=-1
25952   while :; do
25953     cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h.  */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h.  */
25959 $ac_includes_default
25960                    typedef char ac__type_sizeof_;
25961 int
25962 main ()
25963 {
25964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25965 test_array [0] = 0
25966
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 rm -f conftest.$ac_objext
25972 if { (ac_try="$ac_compile"
25973 case "(($ac_try" in
25974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25975   *) ac_try_echo=$ac_try;;
25976 esac
25977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25978   (eval "$ac_compile") 2>conftest.er1
25979   ac_status=$?
25980   grep -v '^ *+' conftest.er1 >conftest.err
25981   rm -f conftest.er1
25982   cat conftest.err >&5
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); } &&
25985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25986   { (case "(($ac_try" in
25987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988   *) ac_try_echo=$ac_try;;
25989 esac
25990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25991   (eval "$ac_try") 2>&5
25992   ac_status=$?
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); }; } &&
25995          { ac_try='test -s conftest.$ac_objext'
25996   { (case "(($ac_try" in
25997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998   *) ac_try_echo=$ac_try;;
25999 esac
26000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26001   (eval "$ac_try") 2>&5
26002   ac_status=$?
26003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004   (exit $ac_status); }; }; then
26005   ac_lo=$ac_mid; break
26006 else
26007   echo "$as_me: failed program was:" >&5
26008 sed 's/^/| /' conftest.$ac_ext >&5
26009
26010         ac_hi=`expr '(' $ac_mid ')' - 1`
26011                         if test $ac_mid -le $ac_hi; then
26012                           ac_lo= ac_hi=
26013                           break
26014                         fi
26015                         ac_mid=`expr 2 '*' $ac_mid`
26016 fi
26017
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019   done
26020 else
26021   echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024         ac_lo= ac_hi=
26025 fi
26026
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 fi
26029
26030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26031 # Binary search between lo and hi bounds.
26032 while test "x$ac_lo" != "x$ac_hi"; do
26033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26034   cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h.  */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h.  */
26040 $ac_includes_default
26041                    typedef char ac__type_sizeof_;
26042 int
26043 main ()
26044 {
26045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26046 test_array [0] = 0
26047
26048   ;
26049   return 0;
26050 }
26051 _ACEOF
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056   *) ac_try_echo=$ac_try;;
26057 esac
26058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26059   (eval "$ac_compile") 2>conftest.er1
26060   ac_status=$?
26061   grep -v '^ *+' conftest.er1 >conftest.err
26062   rm -f conftest.er1
26063   cat conftest.err >&5
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); } &&
26066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26067   { (case "(($ac_try" in
26068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069   *) ac_try_echo=$ac_try;;
26070 esac
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072   (eval "$ac_try") 2>&5
26073   ac_status=$?
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); }; } &&
26076          { ac_try='test -s conftest.$ac_objext'
26077   { (case "(($ac_try" in
26078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079   *) ac_try_echo=$ac_try;;
26080 esac
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082   (eval "$ac_try") 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; }; then
26086   ac_hi=$ac_mid
26087 else
26088   echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26090
26091         ac_lo=`expr '(' $ac_mid ')' + 1`
26092 fi
26093
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095 done
26096 case $ac_lo in
26097 ?*) ac_cv_sizeof_char=$ac_lo;;
26098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26099 See \`config.log' for more details." >&5
26100 echo "$as_me: error: cannot compute sizeof (char)
26101 See \`config.log' for more details." >&2;}
26102    { (exit 77); exit 77; }; } ;;
26103 esac
26104 else
26105   cat >conftest.$ac_ext <<_ACEOF
26106 /* confdefs.h.  */
26107 _ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h.  */
26111 $ac_includes_default
26112                    typedef char ac__type_sizeof_;
26113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26115 #include <stdio.h>
26116 #include <stdlib.h>
26117 int
26118 main ()
26119 {
26120
26121   FILE *f = fopen ("conftest.val", "w");
26122   if (! f)
26123     return 1;
26124   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26125     {
26126       long int i = longval ();
26127       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26128         return 1;
26129       fprintf (f, "%ld\n", i);
26130     }
26131   else
26132     {
26133       unsigned long int i = ulongval ();
26134       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26135         return 1;
26136       fprintf (f, "%lu\n", i);
26137     }
26138   return ferror (f) || fclose (f) != 0;
26139
26140   ;
26141   return 0;
26142 }
26143 _ACEOF
26144 rm -f conftest$ac_exeext
26145 if { (ac_try="$ac_link"
26146 case "(($ac_try" in
26147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148   *) ac_try_echo=$ac_try;;
26149 esac
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151   (eval "$ac_link") 2>&5
26152   ac_status=$?
26153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26155   { (case "(($ac_try" in
26156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157   *) ac_try_echo=$ac_try;;
26158 esac
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160   (eval "$ac_try") 2>&5
26161   ac_status=$?
26162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); }; }; then
26164   ac_cv_sizeof_char=`cat conftest.val`
26165 else
26166   echo "$as_me: program exited with status $ac_status" >&5
26167 echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26169
26170 ( exit $ac_status )
26171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26172 See \`config.log' for more details." >&5
26173 echo "$as_me: error: cannot compute sizeof (char)
26174 See \`config.log' for more details." >&2;}
26175    { (exit 77); exit 77; }; }
26176 fi
26177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26178 fi
26179 rm -f conftest.val
26180 else
26181   ac_cv_sizeof_char=0
26182 fi
26183 fi
26184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26185 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26186 cat >>confdefs.h <<_ACEOF
26187 #define SIZEOF_CHAR $ac_cv_sizeof_char
26188 _ACEOF
26189
26190
26191 { echo "$as_me:$LINENO: checking for short int" >&5
26192 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26193 if test "${ac_cv_type_short_int+set}" = set; then
26194   echo $ECHO_N "(cached) $ECHO_C" >&6
26195 else
26196   cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202 $ac_includes_default
26203 typedef short int ac__type_new_;
26204 int
26205 main ()
26206 {
26207 if ((ac__type_new_ *) 0)
26208   return 0;
26209 if (sizeof (ac__type_new_))
26210   return 0;
26211   ;
26212   return 0;
26213 }
26214 _ACEOF
26215 rm -f conftest.$ac_objext
26216 if { (ac_try="$ac_compile"
26217 case "(($ac_try" in
26218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219   *) ac_try_echo=$ac_try;;
26220 esac
26221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222   (eval "$ac_compile") 2>conftest.er1
26223   ac_status=$?
26224   grep -v '^ *+' conftest.er1 >conftest.err
26225   rm -f conftest.er1
26226   cat conftest.err >&5
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } &&
26229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26230   { (case "(($ac_try" in
26231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232   *) ac_try_echo=$ac_try;;
26233 esac
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235   (eval "$ac_try") 2>&5
26236   ac_status=$?
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); }; } &&
26239          { ac_try='test -s conftest.$ac_objext'
26240   { (case "(($ac_try" in
26241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242   *) ac_try_echo=$ac_try;;
26243 esac
26244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26245   (eval "$ac_try") 2>&5
26246   ac_status=$?
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); }; }; then
26249   ac_cv_type_short_int=yes
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26253
26254         ac_cv_type_short_int=no
26255 fi
26256
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 fi
26259 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26260 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26261
26262 { echo "$as_me:$LINENO: checking size of short int" >&5
26263 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26264 if test "${ac_cv_sizeof_short_int+set}" = set; then
26265   echo $ECHO_N "(cached) $ECHO_C" >&6
26266 else
26267   if test "$ac_cv_type_short_int" = yes; then
26268   # The cast to long int works around a bug in the HP C Compiler
26269   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26270   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26271   # This bug is HP SR number 8606223364.
26272   if test "$cross_compiling" = yes; then
26273   # Depending upon the size, compute the lo and hi bounds.
26274 cat >conftest.$ac_ext <<_ACEOF
26275 /* confdefs.h.  */
26276 _ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h.  */
26280 $ac_includes_default
26281                    typedef short int ac__type_sizeof_;
26282 int
26283 main ()
26284 {
26285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26286 test_array [0] = 0
26287
26288   ;
26289   return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext
26293 if { (ac_try="$ac_compile"
26294 case "(($ac_try" in
26295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296   *) ac_try_echo=$ac_try;;
26297 esac
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299   (eval "$ac_compile") 2>conftest.er1
26300   ac_status=$?
26301   grep -v '^ *+' conftest.er1 >conftest.err
26302   rm -f conftest.er1
26303   cat conftest.err >&5
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); } &&
26306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26307   { (case "(($ac_try" in
26308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309   *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312   (eval "$ac_try") 2>&5
26313   ac_status=$?
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); }; } &&
26316          { ac_try='test -s conftest.$ac_objext'
26317   { (case "(($ac_try" in
26318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319   *) ac_try_echo=$ac_try;;
26320 esac
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322   (eval "$ac_try") 2>&5
26323   ac_status=$?
26324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325   (exit $ac_status); }; }; then
26326   ac_lo=0 ac_mid=0
26327   while :; do
26328     cat >conftest.$ac_ext <<_ACEOF
26329 /* confdefs.h.  */
26330 _ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h.  */
26334 $ac_includes_default
26335                    typedef short int ac__type_sizeof_;
26336 int
26337 main ()
26338 {
26339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26340 test_array [0] = 0
26341
26342   ;
26343   return 0;
26344 }
26345 _ACEOF
26346 rm -f conftest.$ac_objext
26347 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26354   ac_status=$?
26355   grep -v '^ *+' conftest.er1 >conftest.err
26356   rm -f conftest.er1
26357   cat conftest.err >&5
26358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359   (exit $ac_status); } &&
26360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26361   { (case "(($ac_try" in
26362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363   *) ac_try_echo=$ac_try;;
26364 esac
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366   (eval "$ac_try") 2>&5
26367   ac_status=$?
26368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369   (exit $ac_status); }; } &&
26370          { ac_try='test -s conftest.$ac_objext'
26371   { (case "(($ac_try" in
26372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373   *) ac_try_echo=$ac_try;;
26374 esac
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376   (eval "$ac_try") 2>&5
26377   ac_status=$?
26378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379   (exit $ac_status); }; }; then
26380   ac_hi=$ac_mid; break
26381 else
26382   echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26384
26385         ac_lo=`expr $ac_mid + 1`
26386                         if test $ac_lo -le $ac_mid; then
26387                           ac_lo= ac_hi=
26388                           break
26389                         fi
26390                         ac_mid=`expr 2 '*' $ac_mid + 1`
26391 fi
26392
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26394   done
26395 else
26396   echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26398
26399         cat >conftest.$ac_ext <<_ACEOF
26400 /* confdefs.h.  */
26401 _ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h.  */
26405 $ac_includes_default
26406                    typedef short int ac__type_sizeof_;
26407 int
26408 main ()
26409 {
26410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26411 test_array [0] = 0
26412
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421   *) ac_try_echo=$ac_try;;
26422 esac
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424   (eval "$ac_compile") 2>conftest.er1
26425   ac_status=$?
26426   grep -v '^ *+' conftest.er1 >conftest.err
26427   rm -f conftest.er1
26428   cat conftest.err >&5
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); } &&
26431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26432   { (case "(($ac_try" in
26433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434   *) ac_try_echo=$ac_try;;
26435 esac
26436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26437   (eval "$ac_try") 2>&5
26438   ac_status=$?
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); }; } &&
26441          { ac_try='test -s conftest.$ac_objext'
26442   { (case "(($ac_try" in
26443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26444   *) ac_try_echo=$ac_try;;
26445 esac
26446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26447   (eval "$ac_try") 2>&5
26448   ac_status=$?
26449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450   (exit $ac_status); }; }; then
26451   ac_hi=-1 ac_mid=-1
26452   while :; do
26453     cat >conftest.$ac_ext <<_ACEOF
26454 /* confdefs.h.  */
26455 _ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h.  */
26459 $ac_includes_default
26460                    typedef short int ac__type_sizeof_;
26461 int
26462 main ()
26463 {
26464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26465 test_array [0] = 0
26466
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (ac_try="$ac_compile"
26473 case "(($ac_try" in
26474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475   *) ac_try_echo=$ac_try;;
26476 esac
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478   (eval "$ac_compile") 2>conftest.er1
26479   ac_status=$?
26480   grep -v '^ *+' conftest.er1 >conftest.err
26481   rm -f conftest.er1
26482   cat conftest.err >&5
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); } &&
26485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26486   { (case "(($ac_try" in
26487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488   *) ac_try_echo=$ac_try;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491   (eval "$ac_try") 2>&5
26492   ac_status=$?
26493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494   (exit $ac_status); }; } &&
26495          { ac_try='test -s conftest.$ac_objext'
26496   { (case "(($ac_try" in
26497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498   *) ac_try_echo=$ac_try;;
26499 esac
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501   (eval "$ac_try") 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); }; }; then
26505   ac_lo=$ac_mid; break
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510         ac_hi=`expr '(' $ac_mid ')' - 1`
26511                         if test $ac_mid -le $ac_hi; then
26512                           ac_lo= ac_hi=
26513                           break
26514                         fi
26515                         ac_mid=`expr 2 '*' $ac_mid`
26516 fi
26517
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519   done
26520 else
26521   echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26523
26524         ac_lo= ac_hi=
26525 fi
26526
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528 fi
26529
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 # Binary search between lo and hi bounds.
26532 while test "x$ac_lo" != "x$ac_hi"; do
26533   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26534   cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540 $ac_includes_default
26541                    typedef short int ac__type_sizeof_;
26542 int
26543 main ()
26544 {
26545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26546 test_array [0] = 0
26547
26548   ;
26549   return 0;
26550 }
26551 _ACEOF
26552 rm -f conftest.$ac_objext
26553 if { (ac_try="$ac_compile"
26554 case "(($ac_try" in
26555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26556   *) ac_try_echo=$ac_try;;
26557 esac
26558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26559   (eval "$ac_compile") 2>conftest.er1
26560   ac_status=$?
26561   grep -v '^ *+' conftest.er1 >conftest.err
26562   rm -f conftest.er1
26563   cat conftest.err >&5
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); } &&
26566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26567   { (case "(($ac_try" in
26568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569   *) ac_try_echo=$ac_try;;
26570 esac
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572   (eval "$ac_try") 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; } &&
26576          { ac_try='test -s conftest.$ac_objext'
26577   { (case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582   (eval "$ac_try") 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); }; }; then
26586   ac_hi=$ac_mid
26587 else
26588   echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26590
26591         ac_lo=`expr '(' $ac_mid ')' + 1`
26592 fi
26593
26594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26595 done
26596 case $ac_lo in
26597 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26599 See \`config.log' for more details." >&5
26600 echo "$as_me: error: cannot compute sizeof (short int)
26601 See \`config.log' for more details." >&2;}
26602    { (exit 77); exit 77; }; } ;;
26603 esac
26604 else
26605   cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611 $ac_includes_default
26612                    typedef short int ac__type_sizeof_;
26613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26615 #include <stdio.h>
26616 #include <stdlib.h>
26617 int
26618 main ()
26619 {
26620
26621   FILE *f = fopen ("conftest.val", "w");
26622   if (! f)
26623     return 1;
26624   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26625     {
26626       long int i = longval ();
26627       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26628         return 1;
26629       fprintf (f, "%ld\n", i);
26630     }
26631   else
26632     {
26633       unsigned long int i = ulongval ();
26634       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26635         return 1;
26636       fprintf (f, "%lu\n", i);
26637     }
26638   return ferror (f) || fclose (f) != 0;
26639
26640   ;
26641   return 0;
26642 }
26643 _ACEOF
26644 rm -f conftest$ac_exeext
26645 if { (ac_try="$ac_link"
26646 case "(($ac_try" in
26647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648   *) ac_try_echo=$ac_try;;
26649 esac
26650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651   (eval "$ac_link") 2>&5
26652   ac_status=$?
26653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26655   { (case "(($ac_try" in
26656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26657   *) ac_try_echo=$ac_try;;
26658 esac
26659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26660   (eval "$ac_try") 2>&5
26661   ac_status=$?
26662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); }; }; then
26664   ac_cv_sizeof_short_int=`cat conftest.val`
26665 else
26666   echo "$as_me: program exited with status $ac_status" >&5
26667 echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26669
26670 ( exit $ac_status )
26671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26672 See \`config.log' for more details." >&5
26673 echo "$as_me: error: cannot compute sizeof (short int)
26674 See \`config.log' for more details." >&2;}
26675    { (exit 77); exit 77; }; }
26676 fi
26677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26678 fi
26679 rm -f conftest.val
26680 else
26681   ac_cv_sizeof_short_int=0
26682 fi
26683 fi
26684 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26685 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26686 cat >>confdefs.h <<_ACEOF
26687 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26688 _ACEOF
26689
26690
26691 { echo "$as_me:$LINENO: checking for int" >&5
26692 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26693 if test "${ac_cv_type_int+set}" = set; then
26694   echo $ECHO_N "(cached) $ECHO_C" >&6
26695 else
26696   cat >conftest.$ac_ext <<_ACEOF
26697 /* confdefs.h.  */
26698 _ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h.  */
26702 $ac_includes_default
26703 typedef int ac__type_new_;
26704 int
26705 main ()
26706 {
26707 if ((ac__type_new_ *) 0)
26708   return 0;
26709 if (sizeof (ac__type_new_))
26710   return 0;
26711   ;
26712   return 0;
26713 }
26714 _ACEOF
26715 rm -f conftest.$ac_objext
26716 if { (ac_try="$ac_compile"
26717 case "(($ac_try" in
26718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26719   *) ac_try_echo=$ac_try;;
26720 esac
26721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26722   (eval "$ac_compile") 2>conftest.er1
26723   ac_status=$?
26724   grep -v '^ *+' conftest.er1 >conftest.err
26725   rm -f conftest.er1
26726   cat conftest.err >&5
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); } &&
26729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26730   { (case "(($ac_try" in
26731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732   *) ac_try_echo=$ac_try;;
26733 esac
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735   (eval "$ac_try") 2>&5
26736   ac_status=$?
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); }; } &&
26739          { ac_try='test -s conftest.$ac_objext'
26740   { (case "(($ac_try" in
26741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742   *) ac_try_echo=$ac_try;;
26743 esac
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745   (eval "$ac_try") 2>&5
26746   ac_status=$?
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); }; }; then
26749   ac_cv_type_int=yes
26750 else
26751   echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.$ac_ext >&5
26753
26754         ac_cv_type_int=no
26755 fi
26756
26757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26758 fi
26759 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26760 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26761
26762 { echo "$as_me:$LINENO: checking size of int" >&5
26763 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26764 if test "${ac_cv_sizeof_int+set}" = set; then
26765   echo $ECHO_N "(cached) $ECHO_C" >&6
26766 else
26767   if test "$ac_cv_type_int" = yes; then
26768   # The cast to long int works around a bug in the HP C Compiler
26769   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26770   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26771   # This bug is HP SR number 8606223364.
26772   if test "$cross_compiling" = yes; then
26773   # Depending upon the size, compute the lo and hi bounds.
26774 cat >conftest.$ac_ext <<_ACEOF
26775 /* confdefs.h.  */
26776 _ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h.  */
26780 $ac_includes_default
26781                    typedef int ac__type_sizeof_;
26782 int
26783 main ()
26784 {
26785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26786 test_array [0] = 0
26787
26788   ;
26789   return 0;
26790 }
26791 _ACEOF
26792 rm -f conftest.$ac_objext
26793 if { (ac_try="$ac_compile"
26794 case "(($ac_try" in
26795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796   *) ac_try_echo=$ac_try;;
26797 esac
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799   (eval "$ac_compile") 2>conftest.er1
26800   ac_status=$?
26801   grep -v '^ *+' conftest.er1 >conftest.err
26802   rm -f conftest.er1
26803   cat conftest.err >&5
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); } &&
26806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26807   { (case "(($ac_try" in
26808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809   *) ac_try_echo=$ac_try;;
26810 esac
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812   (eval "$ac_try") 2>&5
26813   ac_status=$?
26814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815   (exit $ac_status); }; } &&
26816          { ac_try='test -s conftest.$ac_objext'
26817   { (case "(($ac_try" in
26818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819   *) ac_try_echo=$ac_try;;
26820 esac
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822   (eval "$ac_try") 2>&5
26823   ac_status=$?
26824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825   (exit $ac_status); }; }; then
26826   ac_lo=0 ac_mid=0
26827   while :; do
26828     cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h.  */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h.  */
26834 $ac_includes_default
26835                    typedef int ac__type_sizeof_;
26836 int
26837 main ()
26838 {
26839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26840 test_array [0] = 0
26841
26842   ;
26843   return 0;
26844 }
26845 _ACEOF
26846 rm -f conftest.$ac_objext
26847 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26854   ac_status=$?
26855   grep -v '^ *+' conftest.er1 >conftest.err
26856   rm -f conftest.er1
26857   cat conftest.err >&5
26858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); } &&
26860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26861   { (case "(($ac_try" in
26862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26863   *) ac_try_echo=$ac_try;;
26864 esac
26865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26866   (eval "$ac_try") 2>&5
26867   ac_status=$?
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); }; } &&
26870          { ac_try='test -s conftest.$ac_objext'
26871   { (case "(($ac_try" in
26872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873   *) ac_try_echo=$ac_try;;
26874 esac
26875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876   (eval "$ac_try") 2>&5
26877   ac_status=$?
26878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879   (exit $ac_status); }; }; then
26880   ac_hi=$ac_mid; break
26881 else
26882   echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26884
26885         ac_lo=`expr $ac_mid + 1`
26886                         if test $ac_lo -le $ac_mid; then
26887                           ac_lo= ac_hi=
26888                           break
26889                         fi
26890                         ac_mid=`expr 2 '*' $ac_mid + 1`
26891 fi
26892
26893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894   done
26895 else
26896   echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26898
26899         cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905 $ac_includes_default
26906                    typedef int ac__type_sizeof_;
26907 int
26908 main ()
26909 {
26910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26911 test_array [0] = 0
26912
26913   ;
26914   return 0;
26915 }
26916 _ACEOF
26917 rm -f conftest.$ac_objext
26918 if { (ac_try="$ac_compile"
26919 case "(($ac_try" in
26920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921   *) ac_try_echo=$ac_try;;
26922 esac
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924   (eval "$ac_compile") 2>conftest.er1
26925   ac_status=$?
26926   grep -v '^ *+' conftest.er1 >conftest.err
26927   rm -f conftest.er1
26928   cat conftest.err >&5
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); } &&
26931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26932   { (case "(($ac_try" in
26933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26934   *) ac_try_echo=$ac_try;;
26935 esac
26936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26937   (eval "$ac_try") 2>&5
26938   ac_status=$?
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); }; } &&
26941          { ac_try='test -s conftest.$ac_objext'
26942   { (case "(($ac_try" in
26943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944   *) ac_try_echo=$ac_try;;
26945 esac
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947   (eval "$ac_try") 2>&5
26948   ac_status=$?
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); }; }; then
26951   ac_hi=-1 ac_mid=-1
26952   while :; do
26953     cat >conftest.$ac_ext <<_ACEOF
26954 /* confdefs.h.  */
26955 _ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h.  */
26959 $ac_includes_default
26960                    typedef int ac__type_sizeof_;
26961 int
26962 main ()
26963 {
26964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26965 test_array [0] = 0
26966
26967   ;
26968   return 0;
26969 }
26970 _ACEOF
26971 rm -f conftest.$ac_objext
26972 if { (ac_try="$ac_compile"
26973 case "(($ac_try" in
26974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975   *) ac_try_echo=$ac_try;;
26976 esac
26977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978   (eval "$ac_compile") 2>conftest.er1
26979   ac_status=$?
26980   grep -v '^ *+' conftest.er1 >conftest.err
26981   rm -f conftest.er1
26982   cat conftest.err >&5
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); } &&
26985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26986   { (case "(($ac_try" in
26987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988   *) ac_try_echo=$ac_try;;
26989 esac
26990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991   (eval "$ac_try") 2>&5
26992   ac_status=$?
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); }; } &&
26995          { ac_try='test -s conftest.$ac_objext'
26996   { (case "(($ac_try" in
26997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998   *) ac_try_echo=$ac_try;;
26999 esac
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001   (eval "$ac_try") 2>&5
27002   ac_status=$?
27003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004   (exit $ac_status); }; }; then
27005   ac_lo=$ac_mid; break
27006 else
27007   echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27009
27010         ac_hi=`expr '(' $ac_mid ')' - 1`
27011                         if test $ac_mid -le $ac_hi; then
27012                           ac_lo= ac_hi=
27013                           break
27014                         fi
27015                         ac_mid=`expr 2 '*' $ac_mid`
27016 fi
27017
27018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27019   done
27020 else
27021   echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27023
27024         ac_lo= ac_hi=
27025 fi
27026
27027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27028 fi
27029
27030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27031 # Binary search between lo and hi bounds.
27032 while test "x$ac_lo" != "x$ac_hi"; do
27033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27034   cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h.  */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h.  */
27040 $ac_includes_default
27041                    typedef int ac__type_sizeof_;
27042 int
27043 main ()
27044 {
27045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27046 test_array [0] = 0
27047
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056   *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059   (eval "$ac_compile") 2>conftest.er1
27060   ac_status=$?
27061   grep -v '^ *+' conftest.er1 >conftest.err
27062   rm -f conftest.er1
27063   cat conftest.err >&5
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } &&
27066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27067   { (case "(($ac_try" in
27068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27069   *) ac_try_echo=$ac_try;;
27070 esac
27071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27072   (eval "$ac_try") 2>&5
27073   ac_status=$?
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); }; } &&
27076          { ac_try='test -s conftest.$ac_objext'
27077   { (case "(($ac_try" in
27078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27079   *) ac_try_echo=$ac_try;;
27080 esac
27081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27082   (eval "$ac_try") 2>&5
27083   ac_status=$?
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); }; }; then
27086   ac_hi=$ac_mid
27087 else
27088   echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27090
27091         ac_lo=`expr '(' $ac_mid ')' + 1`
27092 fi
27093
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27095 done
27096 case $ac_lo in
27097 ?*) ac_cv_sizeof_int=$ac_lo;;
27098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27099 See \`config.log' for more details." >&5
27100 echo "$as_me: error: cannot compute sizeof (int)
27101 See \`config.log' for more details." >&2;}
27102    { (exit 77); exit 77; }; } ;;
27103 esac
27104 else
27105   cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h.  */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h.  */
27111 $ac_includes_default
27112                    typedef int ac__type_sizeof_;
27113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27115 #include <stdio.h>
27116 #include <stdlib.h>
27117 int
27118 main ()
27119 {
27120
27121   FILE *f = fopen ("conftest.val", "w");
27122   if (! f)
27123     return 1;
27124   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27125     {
27126       long int i = longval ();
27127       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27128         return 1;
27129       fprintf (f, "%ld\n", i);
27130     }
27131   else
27132     {
27133       unsigned long int i = ulongval ();
27134       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27135         return 1;
27136       fprintf (f, "%lu\n", i);
27137     }
27138   return ferror (f) || fclose (f) != 0;
27139
27140   ;
27141   return 0;
27142 }
27143 _ACEOF
27144 rm -f conftest$ac_exeext
27145 if { (ac_try="$ac_link"
27146 case "(($ac_try" in
27147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148   *) ac_try_echo=$ac_try;;
27149 esac
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151   (eval "$ac_link") 2>&5
27152   ac_status=$?
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27155   { (case "(($ac_try" in
27156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157   *) ac_try_echo=$ac_try;;
27158 esac
27159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160   (eval "$ac_try") 2>&5
27161   ac_status=$?
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); }; }; then
27164   ac_cv_sizeof_int=`cat conftest.val`
27165 else
27166   echo "$as_me: program exited with status $ac_status" >&5
27167 echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.$ac_ext >&5
27169
27170 ( exit $ac_status )
27171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27172 See \`config.log' for more details." >&5
27173 echo "$as_me: error: cannot compute sizeof (int)
27174 See \`config.log' for more details." >&2;}
27175    { (exit 77); exit 77; }; }
27176 fi
27177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27178 fi
27179 rm -f conftest.val
27180 else
27181   ac_cv_sizeof_int=0
27182 fi
27183 fi
27184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27185 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27186 cat >>confdefs.h <<_ACEOF
27187 #define SIZEOF_INT $ac_cv_sizeof_int
27188 _ACEOF
27189
27190
27191 { echo "$as_me:$LINENO: checking for long int" >&5
27192 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27193 if test "${ac_cv_type_long_int+set}" = set; then
27194   echo $ECHO_N "(cached) $ECHO_C" >&6
27195 else
27196   cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h.  */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h.  */
27202 $ac_includes_default
27203 typedef long int ac__type_new_;
27204 int
27205 main ()
27206 {
27207 if ((ac__type_new_ *) 0)
27208   return 0;
27209 if (sizeof (ac__type_new_))
27210   return 0;
27211   ;
27212   return 0;
27213 }
27214 _ACEOF
27215 rm -f conftest.$ac_objext
27216 if { (ac_try="$ac_compile"
27217 case "(($ac_try" in
27218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27219   *) ac_try_echo=$ac_try;;
27220 esac
27221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27222   (eval "$ac_compile") 2>conftest.er1
27223   ac_status=$?
27224   grep -v '^ *+' conftest.er1 >conftest.err
27225   rm -f conftest.er1
27226   cat conftest.err >&5
27227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228   (exit $ac_status); } &&
27229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27230   { (case "(($ac_try" in
27231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232   *) ac_try_echo=$ac_try;;
27233 esac
27234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235   (eval "$ac_try") 2>&5
27236   ac_status=$?
27237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238   (exit $ac_status); }; } &&
27239          { ac_try='test -s conftest.$ac_objext'
27240   { (case "(($ac_try" in
27241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242   *) ac_try_echo=$ac_try;;
27243 esac
27244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27245   (eval "$ac_try") 2>&5
27246   ac_status=$?
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); }; }; then
27249   ac_cv_type_long_int=yes
27250 else
27251   echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27253
27254         ac_cv_type_long_int=no
27255 fi
27256
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258 fi
27259 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27260 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27261
27262 { echo "$as_me:$LINENO: checking size of long int" >&5
27263 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27264 if test "${ac_cv_sizeof_long_int+set}" = set; then
27265   echo $ECHO_N "(cached) $ECHO_C" >&6
27266 else
27267   if test "$ac_cv_type_long_int" = yes; then
27268   # The cast to long int works around a bug in the HP C Compiler
27269   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27270   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27271   # This bug is HP SR number 8606223364.
27272   if test "$cross_compiling" = yes; then
27273   # Depending upon the size, compute the lo and hi bounds.
27274 cat >conftest.$ac_ext <<_ACEOF
27275 /* confdefs.h.  */
27276 _ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h.  */
27280 $ac_includes_default
27281                    typedef long int ac__type_sizeof_;
27282 int
27283 main ()
27284 {
27285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27286 test_array [0] = 0
27287
27288   ;
27289   return 0;
27290 }
27291 _ACEOF
27292 rm -f conftest.$ac_objext
27293 if { (ac_try="$ac_compile"
27294 case "(($ac_try" in
27295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296   *) ac_try_echo=$ac_try;;
27297 esac
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299   (eval "$ac_compile") 2>conftest.er1
27300   ac_status=$?
27301   grep -v '^ *+' conftest.er1 >conftest.err
27302   rm -f conftest.er1
27303   cat conftest.err >&5
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } &&
27306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27307   { (case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_try") 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; } &&
27316          { ac_try='test -s conftest.$ac_objext'
27317   { (case "(($ac_try" in
27318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319   *) ac_try_echo=$ac_try;;
27320 esac
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322   (eval "$ac_try") 2>&5
27323   ac_status=$?
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); }; }; then
27326   ac_lo=0 ac_mid=0
27327   while :; do
27328     cat >conftest.$ac_ext <<_ACEOF
27329 /* confdefs.h.  */
27330 _ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h.  */
27334 $ac_includes_default
27335                    typedef long int ac__type_sizeof_;
27336 int
27337 main ()
27338 {
27339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27340 test_array [0] = 0
27341
27342   ;
27343   return 0;
27344 }
27345 _ACEOF
27346 rm -f conftest.$ac_objext
27347 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } &&
27360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27361   { (case "(($ac_try" in
27362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363   *) ac_try_echo=$ac_try;;
27364 esac
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366   (eval "$ac_try") 2>&5
27367   ac_status=$?
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); }; } &&
27370          { ac_try='test -s conftest.$ac_objext'
27371   { (case "(($ac_try" in
27372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27373   *) ac_try_echo=$ac_try;;
27374 esac
27375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27376   (eval "$ac_try") 2>&5
27377   ac_status=$?
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); }; }; then
27380   ac_hi=$ac_mid; break
27381 else
27382   echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27384
27385         ac_lo=`expr $ac_mid + 1`
27386                         if test $ac_lo -le $ac_mid; then
27387                           ac_lo= ac_hi=
27388                           break
27389                         fi
27390                         ac_mid=`expr 2 '*' $ac_mid + 1`
27391 fi
27392
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27394   done
27395 else
27396   echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27398
27399         cat >conftest.$ac_ext <<_ACEOF
27400 /* confdefs.h.  */
27401 _ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h.  */
27405 $ac_includes_default
27406                    typedef long int ac__type_sizeof_;
27407 int
27408 main ()
27409 {
27410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27411 test_array [0] = 0
27412
27413   ;
27414   return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext
27418 if { (ac_try="$ac_compile"
27419 case "(($ac_try" in
27420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421   *) ac_try_echo=$ac_try;;
27422 esac
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424   (eval "$ac_compile") 2>conftest.er1
27425   ac_status=$?
27426   grep -v '^ *+' conftest.er1 >conftest.err
27427   rm -f conftest.er1
27428   cat conftest.err >&5
27429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430   (exit $ac_status); } &&
27431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27432   { (case "(($ac_try" in
27433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434   *) ac_try_echo=$ac_try;;
27435 esac
27436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437   (eval "$ac_try") 2>&5
27438   ac_status=$?
27439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440   (exit $ac_status); }; } &&
27441          { ac_try='test -s conftest.$ac_objext'
27442   { (case "(($ac_try" in
27443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444   *) ac_try_echo=$ac_try;;
27445 esac
27446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447   (eval "$ac_try") 2>&5
27448   ac_status=$?
27449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450   (exit $ac_status); }; }; then
27451   ac_hi=-1 ac_mid=-1
27452   while :; do
27453     cat >conftest.$ac_ext <<_ACEOF
27454 /* confdefs.h.  */
27455 _ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h.  */
27459 $ac_includes_default
27460                    typedef long int ac__type_sizeof_;
27461 int
27462 main ()
27463 {
27464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27465 test_array [0] = 0
27466
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 rm -f conftest.$ac_objext
27472 if { (ac_try="$ac_compile"
27473 case "(($ac_try" in
27474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475   *) ac_try_echo=$ac_try;;
27476 esac
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478   (eval "$ac_compile") 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } &&
27485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486   { (case "(($ac_try" in
27487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488   *) ac_try_echo=$ac_try;;
27489 esac
27490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491   (eval "$ac_try") 2>&5
27492   ac_status=$?
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); }; } &&
27495          { ac_try='test -s conftest.$ac_objext'
27496   { (case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_try") 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; }; then
27505   ac_lo=$ac_mid; break
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510         ac_hi=`expr '(' $ac_mid ')' - 1`
27511                         if test $ac_mid -le $ac_hi; then
27512                           ac_lo= ac_hi=
27513                           break
27514                         fi
27515                         ac_mid=`expr 2 '*' $ac_mid`
27516 fi
27517
27518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27519   done
27520 else
27521   echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524         ac_lo= ac_hi=
27525 fi
27526
27527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27528 fi
27529
27530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27531 # Binary search between lo and hi bounds.
27532 while test "x$ac_lo" != "x$ac_hi"; do
27533   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27534   cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h.  */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h.  */
27540 $ac_includes_default
27541                    typedef long int ac__type_sizeof_;
27542 int
27543 main ()
27544 {
27545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27546 test_array [0] = 0
27547
27548   ;
27549   return 0;
27550 }
27551 _ACEOF
27552 rm -f conftest.$ac_objext
27553 if { (ac_try="$ac_compile"
27554 case "(($ac_try" in
27555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556   *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559   (eval "$ac_compile") 2>conftest.er1
27560   ac_status=$?
27561   grep -v '^ *+' conftest.er1 >conftest.err
27562   rm -f conftest.er1
27563   cat conftest.err >&5
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); } &&
27566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567   { (case "(($ac_try" in
27568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569   *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572   (eval "$ac_try") 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; } &&
27576          { ac_try='test -s conftest.$ac_objext'
27577   { (case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_try") 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   ac_hi=$ac_mid
27587 else
27588   echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591         ac_lo=`expr '(' $ac_mid ')' + 1`
27592 fi
27593
27594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27595 done
27596 case $ac_lo in
27597 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27599 See \`config.log' for more details." >&5
27600 echo "$as_me: error: cannot compute sizeof (long int)
27601 See \`config.log' for more details." >&2;}
27602    { (exit 77); exit 77; }; } ;;
27603 esac
27604 else
27605   cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h.  */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h.  */
27611 $ac_includes_default
27612                    typedef long int ac__type_sizeof_;
27613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27615 #include <stdio.h>
27616 #include <stdlib.h>
27617 int
27618 main ()
27619 {
27620
27621   FILE *f = fopen ("conftest.val", "w");
27622   if (! f)
27623     return 1;
27624   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27625     {
27626       long int i = longval ();
27627       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27628         return 1;
27629       fprintf (f, "%ld\n", i);
27630     }
27631   else
27632     {
27633       unsigned long int i = ulongval ();
27634       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27635         return 1;
27636       fprintf (f, "%lu\n", i);
27637     }
27638   return ferror (f) || fclose (f) != 0;
27639
27640   ;
27641   return 0;
27642 }
27643 _ACEOF
27644 rm -f conftest$ac_exeext
27645 if { (ac_try="$ac_link"
27646 case "(($ac_try" in
27647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27648   *) ac_try_echo=$ac_try;;
27649 esac
27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651   (eval "$ac_link") 2>&5
27652   ac_status=$?
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27655   { (case "(($ac_try" in
27656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27657   *) ac_try_echo=$ac_try;;
27658 esac
27659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27660   (eval "$ac_try") 2>&5
27661   ac_status=$?
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); }; }; then
27664   ac_cv_sizeof_long_int=`cat conftest.val`
27665 else
27666   echo "$as_me: program exited with status $ac_status" >&5
27667 echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27669
27670 ( exit $ac_status )
27671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27672 See \`config.log' for more details." >&5
27673 echo "$as_me: error: cannot compute sizeof (long int)
27674 See \`config.log' for more details." >&2;}
27675    { (exit 77); exit 77; }; }
27676 fi
27677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27678 fi
27679 rm -f conftest.val
27680 else
27681   ac_cv_sizeof_long_int=0
27682 fi
27683 fi
27684 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27685 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27686 cat >>confdefs.h <<_ACEOF
27687 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27688 _ACEOF
27689
27690
27691 { echo "$as_me:$LINENO: checking for long long int" >&5
27692 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27693 if test "${ac_cv_type_long_long_int+set}" = set; then
27694   echo $ECHO_N "(cached) $ECHO_C" >&6
27695 else
27696   cat >conftest.$ac_ext <<_ACEOF
27697 /* confdefs.h.  */
27698 _ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h.  */
27702 $ac_includes_default
27703 typedef long long int ac__type_new_;
27704 int
27705 main ()
27706 {
27707 if ((ac__type_new_ *) 0)
27708   return 0;
27709 if (sizeof (ac__type_new_))
27710   return 0;
27711   ;
27712   return 0;
27713 }
27714 _ACEOF
27715 rm -f conftest.$ac_objext
27716 if { (ac_try="$ac_compile"
27717 case "(($ac_try" in
27718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719   *) ac_try_echo=$ac_try;;
27720 esac
27721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722   (eval "$ac_compile") 2>conftest.er1
27723   ac_status=$?
27724   grep -v '^ *+' conftest.er1 >conftest.err
27725   rm -f conftest.er1
27726   cat conftest.err >&5
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); } &&
27729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27730   { (case "(($ac_try" in
27731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732   *) ac_try_echo=$ac_try;;
27733 esac
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735   (eval "$ac_try") 2>&5
27736   ac_status=$?
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); }; } &&
27739          { ac_try='test -s conftest.$ac_objext'
27740   { (case "(($ac_try" in
27741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742   *) ac_try_echo=$ac_try;;
27743 esac
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745   (eval "$ac_try") 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); }; }; then
27749   ac_cv_type_long_long_int=yes
27750 else
27751   echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27753
27754         ac_cv_type_long_long_int=no
27755 fi
27756
27757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758 fi
27759 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27760 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27761
27762 { echo "$as_me:$LINENO: checking size of long long int" >&5
27763 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27764 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27765   echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767   if test "$ac_cv_type_long_long_int" = yes; then
27768   # The cast to long int works around a bug in the HP C Compiler
27769   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27770   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27771   # This bug is HP SR number 8606223364.
27772   if test "$cross_compiling" = yes; then
27773   # Depending upon the size, compute the lo and hi bounds.
27774 cat >conftest.$ac_ext <<_ACEOF
27775 /* confdefs.h.  */
27776 _ACEOF
27777 cat confdefs.h >>conftest.$ac_ext
27778 cat >>conftest.$ac_ext <<_ACEOF
27779 /* end confdefs.h.  */
27780 $ac_includes_default
27781                    typedef long long int ac__type_sizeof_;
27782 int
27783 main ()
27784 {
27785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27786 test_array [0] = 0
27787
27788   ;
27789   return 0;
27790 }
27791 _ACEOF
27792 rm -f conftest.$ac_objext
27793 if { (ac_try="$ac_compile"
27794 case "(($ac_try" in
27795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796   *) ac_try_echo=$ac_try;;
27797 esac
27798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799   (eval "$ac_compile") 2>conftest.er1
27800   ac_status=$?
27801   grep -v '^ *+' conftest.er1 >conftest.err
27802   rm -f conftest.er1
27803   cat conftest.err >&5
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); } &&
27806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27807   { (case "(($ac_try" in
27808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809   *) ac_try_echo=$ac_try;;
27810 esac
27811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812   (eval "$ac_try") 2>&5
27813   ac_status=$?
27814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); }; } &&
27816          { ac_try='test -s conftest.$ac_objext'
27817   { (case "(($ac_try" in
27818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819   *) ac_try_echo=$ac_try;;
27820 esac
27821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822   (eval "$ac_try") 2>&5
27823   ac_status=$?
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); }; }; then
27826   ac_lo=0 ac_mid=0
27827   while :; do
27828     cat >conftest.$ac_ext <<_ACEOF
27829 /* confdefs.h.  */
27830 _ACEOF
27831 cat confdefs.h >>conftest.$ac_ext
27832 cat >>conftest.$ac_ext <<_ACEOF
27833 /* end confdefs.h.  */
27834 $ac_includes_default
27835                    typedef long long int ac__type_sizeof_;
27836 int
27837 main ()
27838 {
27839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27840 test_array [0] = 0
27841
27842   ;
27843   return 0;
27844 }
27845 _ACEOF
27846 rm -f conftest.$ac_objext
27847 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27854   ac_status=$?
27855   grep -v '^ *+' conftest.er1 >conftest.err
27856   rm -f conftest.er1
27857   cat conftest.err >&5
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } &&
27860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27861   { (case "(($ac_try" in
27862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863   *) ac_try_echo=$ac_try;;
27864 esac
27865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866   (eval "$ac_try") 2>&5
27867   ac_status=$?
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); }; } &&
27870          { ac_try='test -s conftest.$ac_objext'
27871   { (case "(($ac_try" in
27872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873   *) ac_try_echo=$ac_try;;
27874 esac
27875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876   (eval "$ac_try") 2>&5
27877   ac_status=$?
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); }; }; then
27880   ac_hi=$ac_mid; break
27881 else
27882   echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27884
27885         ac_lo=`expr $ac_mid + 1`
27886                         if test $ac_lo -le $ac_mid; then
27887                           ac_lo= ac_hi=
27888                           break
27889                         fi
27890                         ac_mid=`expr 2 '*' $ac_mid + 1`
27891 fi
27892
27893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27894   done
27895 else
27896   echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27898
27899         cat >conftest.$ac_ext <<_ACEOF
27900 /* confdefs.h.  */
27901 _ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h.  */
27905 $ac_includes_default
27906                    typedef long long int ac__type_sizeof_;
27907 int
27908 main ()
27909 {
27910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27911 test_array [0] = 0
27912
27913   ;
27914   return 0;
27915 }
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924   (eval "$ac_compile") 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } &&
27931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27932   { (case "(($ac_try" in
27933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934   *) ac_try_echo=$ac_try;;
27935 esac
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937   (eval "$ac_try") 2>&5
27938   ac_status=$?
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); }; } &&
27941          { ac_try='test -s conftest.$ac_objext'
27942   { (case "(($ac_try" in
27943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944   *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947   (eval "$ac_try") 2>&5
27948   ac_status=$?
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); }; }; then
27951   ac_hi=-1 ac_mid=-1
27952   while :; do
27953     cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h.  */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h.  */
27959 $ac_includes_default
27960                    typedef long long int ac__type_sizeof_;
27961 int
27962 main ()
27963 {
27964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27965 test_array [0] = 0
27966
27967   ;
27968   return 0;
27969 }
27970 _ACEOF
27971 rm -f conftest.$ac_objext
27972 if { (ac_try="$ac_compile"
27973 case "(($ac_try" in
27974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975   *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978   (eval "$ac_compile") 2>conftest.er1
27979   ac_status=$?
27980   grep -v '^ *+' conftest.er1 >conftest.err
27981   rm -f conftest.er1
27982   cat conftest.err >&5
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); } &&
27985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986   { (case "(($ac_try" in
27987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988   *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991   (eval "$ac_try") 2>&5
27992   ac_status=$?
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); }; } &&
27995          { ac_try='test -s conftest.$ac_objext'
27996   { (case "(($ac_try" in
27997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998   *) ac_try_echo=$ac_try;;
27999 esac
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001   (eval "$ac_try") 2>&5
28002   ac_status=$?
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); }; }; then
28005   ac_lo=$ac_mid; break
28006 else
28007   echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28009
28010         ac_hi=`expr '(' $ac_mid ')' - 1`
28011                         if test $ac_mid -le $ac_hi; then
28012                           ac_lo= ac_hi=
28013                           break
28014                         fi
28015                         ac_mid=`expr 2 '*' $ac_mid`
28016 fi
28017
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28019   done
28020 else
28021   echo "$as_me: failed program was:" >&5
28022 sed 's/^/| /' conftest.$ac_ext >&5
28023
28024         ac_lo= ac_hi=
28025 fi
28026
28027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28028 fi
28029
28030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28031 # Binary search between lo and hi bounds.
28032 while test "x$ac_lo" != "x$ac_hi"; do
28033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28034   cat >conftest.$ac_ext <<_ACEOF
28035 /* confdefs.h.  */
28036 _ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h.  */
28040 $ac_includes_default
28041                    typedef long long int ac__type_sizeof_;
28042 int
28043 main ()
28044 {
28045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28046 test_array [0] = 0
28047
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext
28053 if { (ac_try="$ac_compile"
28054 case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059   (eval "$ac_compile") 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067   { (case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_try") 2>&5
28073   ac_status=$?
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); }; } &&
28076          { ac_try='test -s conftest.$ac_objext'
28077   { (case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_try") 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   ac_hi=$ac_mid
28087 else
28088   echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091         ac_lo=`expr '(' $ac_mid ')' + 1`
28092 fi
28093
28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095 done
28096 case $ac_lo in
28097 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28099 See \`config.log' for more details." >&5
28100 echo "$as_me: error: cannot compute sizeof (long long int)
28101 See \`config.log' for more details." >&2;}
28102    { (exit 77); exit 77; }; } ;;
28103 esac
28104 else
28105   cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h.  */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h.  */
28111 $ac_includes_default
28112                    typedef long long int ac__type_sizeof_;
28113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28115 #include <stdio.h>
28116 #include <stdlib.h>
28117 int
28118 main ()
28119 {
28120
28121   FILE *f = fopen ("conftest.val", "w");
28122   if (! f)
28123     return 1;
28124   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28125     {
28126       long int i = longval ();
28127       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28128         return 1;
28129       fprintf (f, "%ld\n", i);
28130     }
28131   else
28132     {
28133       unsigned long int i = ulongval ();
28134       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28135         return 1;
28136       fprintf (f, "%lu\n", i);
28137     }
28138   return ferror (f) || fclose (f) != 0;
28139
28140   ;
28141   return 0;
28142 }
28143 _ACEOF
28144 rm -f conftest$ac_exeext
28145 if { (ac_try="$ac_link"
28146 case "(($ac_try" in
28147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148   *) ac_try_echo=$ac_try;;
28149 esac
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151   (eval "$ac_link") 2>&5
28152   ac_status=$?
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28155   { (case "(($ac_try" in
28156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157   *) ac_try_echo=$ac_try;;
28158 esac
28159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160   (eval "$ac_try") 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); }; }; then
28164   ac_cv_sizeof_long_long_int=`cat conftest.val`
28165 else
28166   echo "$as_me: program exited with status $ac_status" >&5
28167 echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170 ( exit $ac_status )
28171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28172 See \`config.log' for more details." >&5
28173 echo "$as_me: error: cannot compute sizeof (long long int)
28174 See \`config.log' for more details." >&2;}
28175    { (exit 77); exit 77; }; }
28176 fi
28177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28178 fi
28179 rm -f conftest.val
28180 else
28181   ac_cv_sizeof_long_long_int=0
28182 fi
28183 fi
28184 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28185 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28186 cat >>confdefs.h <<_ACEOF
28187 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28188 _ACEOF
28189
28190
28191 { echo "$as_me:$LINENO: checking for int *" >&5
28192 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28193 if test "${ac_cv_type_int_p+set}" = set; then
28194   echo $ECHO_N "(cached) $ECHO_C" >&6
28195 else
28196   cat >conftest.$ac_ext <<_ACEOF
28197 /* confdefs.h.  */
28198 _ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h.  */
28202 $ac_includes_default
28203 typedef int * ac__type_new_;
28204 int
28205 main ()
28206 {
28207 if ((ac__type_new_ *) 0)
28208   return 0;
28209 if (sizeof (ac__type_new_))
28210   return 0;
28211   ;
28212   return 0;
28213 }
28214 _ACEOF
28215 rm -f conftest.$ac_objext
28216 if { (ac_try="$ac_compile"
28217 case "(($ac_try" in
28218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219   *) ac_try_echo=$ac_try;;
28220 esac
28221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28222   (eval "$ac_compile") 2>conftest.er1
28223   ac_status=$?
28224   grep -v '^ *+' conftest.er1 >conftest.err
28225   rm -f conftest.er1
28226   cat conftest.err >&5
28227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228   (exit $ac_status); } &&
28229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28230   { (case "(($ac_try" in
28231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232   *) ac_try_echo=$ac_try;;
28233 esac
28234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28235   (eval "$ac_try") 2>&5
28236   ac_status=$?
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); }; } &&
28239          { ac_try='test -s conftest.$ac_objext'
28240   { (case "(($ac_try" in
28241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242   *) ac_try_echo=$ac_try;;
28243 esac
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245   (eval "$ac_try") 2>&5
28246   ac_status=$?
28247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248   (exit $ac_status); }; }; then
28249   ac_cv_type_int_p=yes
28250 else
28251   echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28253
28254         ac_cv_type_int_p=no
28255 fi
28256
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28258 fi
28259 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28260 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28261
28262 { echo "$as_me:$LINENO: checking size of int *" >&5
28263 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28264 if test "${ac_cv_sizeof_int_p+set}" = set; then
28265   echo $ECHO_N "(cached) $ECHO_C" >&6
28266 else
28267   if test "$ac_cv_type_int_p" = yes; then
28268   # The cast to long int works around a bug in the HP C Compiler
28269   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28270   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28271   # This bug is HP SR number 8606223364.
28272   if test "$cross_compiling" = yes; then
28273   # Depending upon the size, compute the lo and hi bounds.
28274 cat >conftest.$ac_ext <<_ACEOF
28275 /* confdefs.h.  */
28276 _ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h.  */
28280 $ac_includes_default
28281                    typedef int * ac__type_sizeof_;
28282 int
28283 main ()
28284 {
28285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28286 test_array [0] = 0
28287
28288   ;
28289   return 0;
28290 }
28291 _ACEOF
28292 rm -f conftest.$ac_objext
28293 if { (ac_try="$ac_compile"
28294 case "(($ac_try" in
28295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296   *) ac_try_echo=$ac_try;;
28297 esac
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299   (eval "$ac_compile") 2>conftest.er1
28300   ac_status=$?
28301   grep -v '^ *+' conftest.er1 >conftest.err
28302   rm -f conftest.er1
28303   cat conftest.err >&5
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); } &&
28306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28307   { (case "(($ac_try" in
28308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309   *) ac_try_echo=$ac_try;;
28310 esac
28311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312   (eval "$ac_try") 2>&5
28313   ac_status=$?
28314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); }; } &&
28316          { ac_try='test -s conftest.$ac_objext'
28317   { (case "(($ac_try" in
28318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319   *) ac_try_echo=$ac_try;;
28320 esac
28321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322   (eval "$ac_try") 2>&5
28323   ac_status=$?
28324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325   (exit $ac_status); }; }; then
28326   ac_lo=0 ac_mid=0
28327   while :; do
28328     cat >conftest.$ac_ext <<_ACEOF
28329 /* confdefs.h.  */
28330 _ACEOF
28331 cat confdefs.h >>conftest.$ac_ext
28332 cat >>conftest.$ac_ext <<_ACEOF
28333 /* end confdefs.h.  */
28334 $ac_includes_default
28335                    typedef int * ac__type_sizeof_;
28336 int
28337 main ()
28338 {
28339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28340 test_array [0] = 0
28341
28342   ;
28343   return 0;
28344 }
28345 _ACEOF
28346 rm -f conftest.$ac_objext
28347 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28354   ac_status=$?
28355   grep -v '^ *+' conftest.er1 >conftest.err
28356   rm -f conftest.er1
28357   cat conftest.err >&5
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); } &&
28360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28361   { (case "(($ac_try" in
28362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363   *) ac_try_echo=$ac_try;;
28364 esac
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366   (eval "$ac_try") 2>&5
28367   ac_status=$?
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); }; } &&
28370          { ac_try='test -s conftest.$ac_objext'
28371   { (case "(($ac_try" in
28372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373   *) ac_try_echo=$ac_try;;
28374 esac
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376   (eval "$ac_try") 2>&5
28377   ac_status=$?
28378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379   (exit $ac_status); }; }; then
28380   ac_hi=$ac_mid; break
28381 else
28382   echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28384
28385         ac_lo=`expr $ac_mid + 1`
28386                         if test $ac_lo -le $ac_mid; then
28387                           ac_lo= ac_hi=
28388                           break
28389                         fi
28390                         ac_mid=`expr 2 '*' $ac_mid + 1`
28391 fi
28392
28393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28394   done
28395 else
28396   echo "$as_me: failed program was:" >&5
28397 sed 's/^/| /' conftest.$ac_ext >&5
28398
28399         cat >conftest.$ac_ext <<_ACEOF
28400 /* confdefs.h.  */
28401 _ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h.  */
28405 $ac_includes_default
28406                    typedef int * ac__type_sizeof_;
28407 int
28408 main ()
28409 {
28410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28411 test_array [0] = 0
28412
28413   ;
28414   return 0;
28415 }
28416 _ACEOF
28417 rm -f conftest.$ac_objext
28418 if { (ac_try="$ac_compile"
28419 case "(($ac_try" in
28420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421   *) ac_try_echo=$ac_try;;
28422 esac
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424   (eval "$ac_compile") 2>conftest.er1
28425   ac_status=$?
28426   grep -v '^ *+' conftest.er1 >conftest.err
28427   rm -f conftest.er1
28428   cat conftest.err >&5
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); } &&
28431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28432   { (case "(($ac_try" in
28433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434   *) ac_try_echo=$ac_try;;
28435 esac
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437   (eval "$ac_try") 2>&5
28438   ac_status=$?
28439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440   (exit $ac_status); }; } &&
28441          { ac_try='test -s conftest.$ac_objext'
28442   { (case "(($ac_try" in
28443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444   *) ac_try_echo=$ac_try;;
28445 esac
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447   (eval "$ac_try") 2>&5
28448   ac_status=$?
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); }; }; then
28451   ac_hi=-1 ac_mid=-1
28452   while :; do
28453     cat >conftest.$ac_ext <<_ACEOF
28454 /* confdefs.h.  */
28455 _ACEOF
28456 cat confdefs.h >>conftest.$ac_ext
28457 cat >>conftest.$ac_ext <<_ACEOF
28458 /* end confdefs.h.  */
28459 $ac_includes_default
28460                    typedef int * ac__type_sizeof_;
28461 int
28462 main ()
28463 {
28464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28465 test_array [0] = 0
28466
28467   ;
28468   return 0;
28469 }
28470 _ACEOF
28471 rm -f conftest.$ac_objext
28472 if { (ac_try="$ac_compile"
28473 case "(($ac_try" in
28474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475   *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478   (eval "$ac_compile") 2>conftest.er1
28479   ac_status=$?
28480   grep -v '^ *+' conftest.er1 >conftest.err
28481   rm -f conftest.er1
28482   cat conftest.err >&5
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); } &&
28485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486   { (case "(($ac_try" in
28487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488   *) ac_try_echo=$ac_try;;
28489 esac
28490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491   (eval "$ac_try") 2>&5
28492   ac_status=$?
28493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494   (exit $ac_status); }; } &&
28495          { ac_try='test -s conftest.$ac_objext'
28496   { (case "(($ac_try" in
28497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498   *) ac_try_echo=$ac_try;;
28499 esac
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501   (eval "$ac_try") 2>&5
28502   ac_status=$?
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); }; }; then
28505   ac_lo=$ac_mid; break
28506 else
28507   echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28509
28510         ac_hi=`expr '(' $ac_mid ')' - 1`
28511                         if test $ac_mid -le $ac_hi; then
28512                           ac_lo= ac_hi=
28513                           break
28514                         fi
28515                         ac_mid=`expr 2 '*' $ac_mid`
28516 fi
28517
28518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28519   done
28520 else
28521   echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28523
28524         ac_lo= ac_hi=
28525 fi
28526
28527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528 fi
28529
28530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28531 # Binary search between lo and hi bounds.
28532 while test "x$ac_lo" != "x$ac_hi"; do
28533   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28534   cat >conftest.$ac_ext <<_ACEOF
28535 /* confdefs.h.  */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h.  */
28540 $ac_includes_default
28541                    typedef int * ac__type_sizeof_;
28542 int
28543 main ()
28544 {
28545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28546 test_array [0] = 0
28547
28548   ;
28549   return 0;
28550 }
28551 _ACEOF
28552 rm -f conftest.$ac_objext
28553 if { (ac_try="$ac_compile"
28554 case "(($ac_try" in
28555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556   *) ac_try_echo=$ac_try;;
28557 esac
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559   (eval "$ac_compile") 2>conftest.er1
28560   ac_status=$?
28561   grep -v '^ *+' conftest.er1 >conftest.err
28562   rm -f conftest.er1
28563   cat conftest.err >&5
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } &&
28566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28567   { (case "(($ac_try" in
28568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569   *) ac_try_echo=$ac_try;;
28570 esac
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572   (eval "$ac_try") 2>&5
28573   ac_status=$?
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); }; } &&
28576          { ac_try='test -s conftest.$ac_objext'
28577   { (case "(($ac_try" in
28578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579   *) ac_try_echo=$ac_try;;
28580 esac
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582   (eval "$ac_try") 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; }; then
28586   ac_hi=$ac_mid
28587 else
28588   echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591         ac_lo=`expr '(' $ac_mid ')' + 1`
28592 fi
28593
28594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28595 done
28596 case $ac_lo in
28597 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28599 See \`config.log' for more details." >&5
28600 echo "$as_me: error: cannot compute sizeof (int *)
28601 See \`config.log' for more details." >&2;}
28602    { (exit 77); exit 77; }; } ;;
28603 esac
28604 else
28605   cat >conftest.$ac_ext <<_ACEOF
28606 /* confdefs.h.  */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h.  */
28611 $ac_includes_default
28612                    typedef int * ac__type_sizeof_;
28613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28615 #include <stdio.h>
28616 #include <stdlib.h>
28617 int
28618 main ()
28619 {
28620
28621   FILE *f = fopen ("conftest.val", "w");
28622   if (! f)
28623     return 1;
28624   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28625     {
28626       long int i = longval ();
28627       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28628         return 1;
28629       fprintf (f, "%ld\n", i);
28630     }
28631   else
28632     {
28633       unsigned long int i = ulongval ();
28634       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28635         return 1;
28636       fprintf (f, "%lu\n", i);
28637     }
28638   return ferror (f) || fclose (f) != 0;
28639
28640   ;
28641   return 0;
28642 }
28643 _ACEOF
28644 rm -f conftest$ac_exeext
28645 if { (ac_try="$ac_link"
28646 case "(($ac_try" in
28647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648   *) ac_try_echo=$ac_try;;
28649 esac
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651   (eval "$ac_link") 2>&5
28652   ac_status=$?
28653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28655   { (case "(($ac_try" in
28656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657   *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660   (eval "$ac_try") 2>&5
28661   ac_status=$?
28662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663   (exit $ac_status); }; }; then
28664   ac_cv_sizeof_int_p=`cat conftest.val`
28665 else
28666   echo "$as_me: program exited with status $ac_status" >&5
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28669
28670 ( exit $ac_status )
28671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28672 See \`config.log' for more details." >&5
28673 echo "$as_me: error: cannot compute sizeof (int *)
28674 See \`config.log' for more details." >&2;}
28675    { (exit 77); exit 77; }; }
28676 fi
28677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28678 fi
28679 rm -f conftest.val
28680 else
28681   ac_cv_sizeof_int_p=0
28682 fi
28683 fi
28684 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28685 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28686 cat >>confdefs.h <<_ACEOF
28687 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28688 _ACEOF
28689
28690
28691
28692 # Check for sys/types.h types
28693 { echo "$as_me:$LINENO: checking for u_int type" >&5
28694 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28695 if test "${ac_cv_have_u_int+set}" = set; then
28696   echo $ECHO_N "(cached) $ECHO_C" >&6
28697 else
28698
28699     cat >conftest.$ac_ext <<_ACEOF
28700 /* confdefs.h.  */
28701 _ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h.  */
28705  #include <sys/types.h>
28706 int
28707 main ()
28708 {
28709  u_int a; a = 1;
28710   ;
28711   return 0;
28712 }
28713 _ACEOF
28714 rm -f conftest.$ac_objext
28715 if { (ac_try="$ac_compile"
28716 case "(($ac_try" in
28717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718   *) ac_try_echo=$ac_try;;
28719 esac
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721   (eval "$ac_compile") 2>conftest.er1
28722   ac_status=$?
28723   grep -v '^ *+' conftest.er1 >conftest.err
28724   rm -f conftest.er1
28725   cat conftest.err >&5
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); } &&
28728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28729   { (case "(($ac_try" in
28730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731   *) ac_try_echo=$ac_try;;
28732 esac
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734   (eval "$ac_try") 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; } &&
28738          { ac_try='test -s conftest.$ac_objext'
28739   { (case "(($ac_try" in
28740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741   *) ac_try_echo=$ac_try;;
28742 esac
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744   (eval "$ac_try") 2>&5
28745   ac_status=$?
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); }; }; then
28748    ac_cv_have_u_int="yes"
28749 else
28750   echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.$ac_ext >&5
28752
28753          ac_cv_have_u_int="no"
28754
28755 fi
28756
28757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28758
28759 fi
28760 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28761 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28762 if test "x$ac_cv_have_u_int" = "xyes" ; then
28763    cat >>confdefs.h <<\_ACEOF
28764 #define HAVE_U_INT 1
28765 _ACEOF
28766
28767    have_u_int=1
28768 fi
28769
28770 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28771 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28772 if test "${ac_cv_have_intmax_t+set}" = set; then
28773   echo $ECHO_N "(cached) $ECHO_C" >&6
28774 else
28775
28776    cat >conftest.$ac_ext <<_ACEOF
28777 /* confdefs.h.  */
28778 _ACEOF
28779 cat confdefs.h >>conftest.$ac_ext
28780 cat >>conftest.$ac_ext <<_ACEOF
28781 /* end confdefs.h.  */
28782  #include <sys/types.h>
28783 int
28784 main ()
28785 {
28786  intmax_t a; a = 1;
28787   ;
28788   return 0;
28789 }
28790 _ACEOF
28791 rm -f conftest.$ac_objext
28792 if { (ac_try="$ac_compile"
28793 case "(($ac_try" in
28794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795   *) ac_try_echo=$ac_try;;
28796 esac
28797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28798   (eval "$ac_compile") 2>conftest.er1
28799   ac_status=$?
28800   grep -v '^ *+' conftest.er1 >conftest.err
28801   rm -f conftest.er1
28802   cat conftest.err >&5
28803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804   (exit $ac_status); } &&
28805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28806   { (case "(($ac_try" in
28807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28808   *) ac_try_echo=$ac_try;;
28809 esac
28810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28811   (eval "$ac_try") 2>&5
28812   ac_status=$?
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); }; } &&
28815          { ac_try='test -s conftest.$ac_objext'
28816   { (case "(($ac_try" in
28817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28818   *) ac_try_echo=$ac_try;;
28819 esac
28820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28821   (eval "$ac_try") 2>&5
28822   ac_status=$?
28823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); }; }; then
28825    ac_cv_have_intmax_t="yes"
28826 else
28827   echo "$as_me: failed program was:" >&5
28828 sed 's/^/| /' conftest.$ac_ext >&5
28829
28830
28831          cat >conftest.$ac_ext <<_ACEOF
28832 /* confdefs.h.  */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h.  */
28837  #include <stdint.h>
28838 int
28839 main ()
28840 {
28841  intmax_t a; a = 1;
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 rm -f conftest.$ac_objext
28847 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28854   ac_status=$?
28855   grep -v '^ *+' conftest.er1 >conftest.err
28856   rm -f conftest.er1
28857   cat conftest.err >&5
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } &&
28860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28861   { (case "(($ac_try" in
28862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863   *) ac_try_echo=$ac_try;;
28864 esac
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866   (eval "$ac_try") 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; } &&
28870          { ac_try='test -s conftest.$ac_objext'
28871   { (case "(($ac_try" in
28872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28873   *) ac_try_echo=$ac_try;;
28874 esac
28875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28876   (eval "$ac_try") 2>&5
28877   ac_status=$?
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); }; }; then
28880    ac_cv_have_intmax_t="yes"
28881 else
28882   echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28884
28885          ac_cv_have_intmax_t="no"
28886
28887 fi
28888
28889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28890
28891
28892 fi
28893
28894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28895
28896
28897 fi
28898 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
28899 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
28900 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28901    cat >>confdefs.h <<\_ACEOF
28902 #define HAVE_INTMAX_T 1
28903 _ACEOF
28904
28905    have_intmax_t=1
28906 fi
28907
28908
28909 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
28910 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
28911 if test "${ac_cv_have_u_intmax_t+set}" = set; then
28912   echo $ECHO_N "(cached) $ECHO_C" >&6
28913 else
28914
28915    cat >conftest.$ac_ext <<_ACEOF
28916 /* confdefs.h.  */
28917 _ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h.  */
28921  #include <sys/types.h>
28922 int
28923 main ()
28924 {
28925  u_intmax_t a; a = 1;
28926   ;
28927   return 0;
28928 }
28929 _ACEOF
28930 rm -f conftest.$ac_objext
28931 if { (ac_try="$ac_compile"
28932 case "(($ac_try" in
28933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934   *) ac_try_echo=$ac_try;;
28935 esac
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937   (eval "$ac_compile") 2>conftest.er1
28938   ac_status=$?
28939   grep -v '^ *+' conftest.er1 >conftest.err
28940   rm -f conftest.er1
28941   cat conftest.err >&5
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); } &&
28944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28945   { (case "(($ac_try" in
28946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947   *) ac_try_echo=$ac_try;;
28948 esac
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950   (eval "$ac_try") 2>&5
28951   ac_status=$?
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); }; } &&
28954          { ac_try='test -s conftest.$ac_objext'
28955   { (case "(($ac_try" in
28956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28957   *) ac_try_echo=$ac_try;;
28958 esac
28959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28960   (eval "$ac_try") 2>&5
28961   ac_status=$?
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); }; }; then
28964    ac_cv_have_u_intmax_t="yes"
28965 else
28966   echo "$as_me: failed program was:" >&5
28967 sed 's/^/| /' conftest.$ac_ext >&5
28968
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 <stdint.h>
28977 int
28978 main ()
28979 {
28980  u_intmax_t 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_intmax_t="yes"
29020 else
29021   echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024          ac_cv_have_u_intmax_t="no"
29025
29026 fi
29027
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029
29030
29031 fi
29032
29033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034
29035 fi
29036 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29037 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29038 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29039    cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_U_INTMAX_T 1
29041 _ACEOF
29042
29043    have_u_intmax_t=1
29044 fi
29045
29046
29047 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29048 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29049 if test "${ac_cv_have_intxx_t+set}" = set; then
29050   echo $ECHO_N "(cached) $ECHO_C" >&6
29051 else
29052
29053    cat >conftest.$ac_ext <<_ACEOF
29054 /* confdefs.h.  */
29055 _ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h.  */
29059  #include <sys/types.h>
29060 int
29061 main ()
29062 {
29063  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29064   ;
29065   return 0;
29066 }
29067 _ACEOF
29068 rm -f conftest.$ac_objext
29069 if { (ac_try="$ac_compile"
29070 case "(($ac_try" in
29071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072   *) ac_try_echo=$ac_try;;
29073 esac
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075   (eval "$ac_compile") 2>conftest.er1
29076   ac_status=$?
29077   grep -v '^ *+' conftest.er1 >conftest.err
29078   rm -f conftest.er1
29079   cat conftest.err >&5
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); } &&
29082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29083   { (case "(($ac_try" in
29084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085   *) ac_try_echo=$ac_try;;
29086 esac
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088   (eval "$ac_try") 2>&5
29089   ac_status=$?
29090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091   (exit $ac_status); }; } &&
29092          { ac_try='test -s conftest.$ac_objext'
29093   { (case "(($ac_try" in
29094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095   *) ac_try_echo=$ac_try;;
29096 esac
29097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098   (eval "$ac_try") 2>&5
29099   ac_status=$?
29100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101   (exit $ac_status); }; }; then
29102    ac_cv_have_intxx_t="yes"
29103 else
29104   echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29106
29107          ac_cv_have_intxx_t="no"
29108
29109 fi
29110
29111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29112
29113 fi
29114 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29115 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29116 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29117    cat >>confdefs.h <<\_ACEOF
29118 #define HAVE_INTXX_T 1
29119 _ACEOF
29120
29121    have_intxx_t=1
29122 fi
29123
29124 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29125 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29126 if test "${ac_cv_have_int64_t+set}" = set; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129
29130    cat >conftest.$ac_ext <<_ACEOF
29131 /* confdefs.h.  */
29132 _ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h.  */
29136  #include <sys/types.h>
29137 int
29138 main ()
29139 {
29140  int64_t a; a = 1;
29141   ;
29142   return 0;
29143 }
29144 _ACEOF
29145 rm -f conftest.$ac_objext
29146 if { (ac_try="$ac_compile"
29147 case "(($ac_try" in
29148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29149   *) ac_try_echo=$ac_try;;
29150 esac
29151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29152   (eval "$ac_compile") 2>conftest.er1
29153   ac_status=$?
29154   grep -v '^ *+' conftest.er1 >conftest.err
29155   rm -f conftest.er1
29156   cat conftest.err >&5
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); } &&
29159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29160   { (case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_try") 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); }; } &&
29169          { ac_try='test -s conftest.$ac_objext'
29170   { (case "(($ac_try" in
29171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172   *) ac_try_echo=$ac_try;;
29173 esac
29174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175   (eval "$ac_try") 2>&5
29176   ac_status=$?
29177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178   (exit $ac_status); }; }; then
29179    ac_cv_have_int64_t="yes"
29180 else
29181   echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184          ac_cv_have_int64_t="no"
29185
29186 fi
29187
29188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29189
29190 fi
29191 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29192 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29193 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29194    cat >>confdefs.h <<\_ACEOF
29195 #define HAVE_INT64_T 1
29196 _ACEOF
29197
29198    have_int64_t=1
29199 fi
29200
29201 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29202 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29203 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29204   echo $ECHO_N "(cached) $ECHO_C" >&6
29205 else
29206
29207    cat >conftest.$ac_ext <<_ACEOF
29208 /* confdefs.h.  */
29209 _ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h.  */
29213  #include <sys/types.h>
29214 int
29215 main ()
29216 {
29217  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29218   ;
29219   return 0;
29220 }
29221 _ACEOF
29222 rm -f conftest.$ac_objext
29223 if { (ac_try="$ac_compile"
29224 case "(($ac_try" in
29225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226   *) ac_try_echo=$ac_try;;
29227 esac
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229   (eval "$ac_compile") 2>conftest.er1
29230   ac_status=$?
29231   grep -v '^ *+' conftest.er1 >conftest.err
29232   rm -f conftest.er1
29233   cat conftest.err >&5
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } &&
29236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237   { (case "(($ac_try" in
29238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239   *) ac_try_echo=$ac_try;;
29240 esac
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242   (eval "$ac_try") 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; } &&
29246          { ac_try='test -s conftest.$ac_objext'
29247   { (case "(($ac_try" in
29248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249   *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252   (eval "$ac_try") 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; }; then
29256    ac_cv_have_u_intxx_t="yes"
29257 else
29258   echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29260
29261          ac_cv_have_u_intxx_t="no"
29262
29263 fi
29264
29265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29266
29267 fi
29268 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29269 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29270 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29271    cat >>confdefs.h <<\_ACEOF
29272 #define HAVE_U_INTXX_T 1
29273 _ACEOF
29274
29275    have_u_intxx_t=1
29276 fi
29277
29278 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29279 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29280 if test "${ac_cv_have_u_int64_t+set}" = set; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283
29284    cat >conftest.$ac_ext <<_ACEOF
29285 /* confdefs.h.  */
29286 _ACEOF
29287 cat confdefs.h >>conftest.$ac_ext
29288 cat >>conftest.$ac_ext <<_ACEOF
29289 /* end confdefs.h.  */
29290  #include <sys/types.h>
29291 int
29292 main ()
29293 {
29294  u_int64_t a; a = 1;
29295   ;
29296   return 0;
29297 }
29298 _ACEOF
29299 rm -f conftest.$ac_objext
29300 if { (ac_try="$ac_compile"
29301 case "(($ac_try" in
29302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29303   *) ac_try_echo=$ac_try;;
29304 esac
29305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29306   (eval "$ac_compile") 2>conftest.er1
29307   ac_status=$?
29308   grep -v '^ *+' conftest.er1 >conftest.err
29309   rm -f conftest.er1
29310   cat conftest.err >&5
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); } &&
29313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29314   { (case "(($ac_try" in
29315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316   *) ac_try_echo=$ac_try;;
29317 esac
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319   (eval "$ac_try") 2>&5
29320   ac_status=$?
29321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322   (exit $ac_status); }; } &&
29323          { ac_try='test -s conftest.$ac_objext'
29324   { (case "(($ac_try" in
29325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326   *) ac_try_echo=$ac_try;;
29327 esac
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329   (eval "$ac_try") 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; }; then
29333    ac_cv_have_u_int64_t="yes"
29334 else
29335   echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29337
29338          ac_cv_have_u_int64_t="no"
29339
29340 fi
29341
29342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29343
29344 fi
29345 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29346 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29347 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29348    cat >>confdefs.h <<\_ACEOF
29349 #define HAVE_U_INT64_T 1
29350 _ACEOF
29351
29352    have_u_int64_t=1
29353 fi
29354
29355 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29356            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29357 then
29358    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29359 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29360    cat >conftest.$ac_ext <<_ACEOF
29361 /* confdefs.h.  */
29362 _ACEOF
29363 cat confdefs.h >>conftest.$ac_ext
29364 cat >>conftest.$ac_ext <<_ACEOF
29365 /* end confdefs.h.  */
29366  #include <sys/bitypes.h>
29367 int
29368 main ()
29369 {
29370  int8_t a; int16_t b; int32_t c;
29371         u_int8_t e; u_int16_t f; u_int32_t g;
29372         a = b = c = e = f = g = 1;
29373   ;
29374   return 0;
29375 }
29376 _ACEOF
29377 rm -f conftest.$ac_objext
29378 if { (ac_try="$ac_compile"
29379 case "(($ac_try" in
29380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29381   *) ac_try_echo=$ac_try;;
29382 esac
29383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29384   (eval "$ac_compile") 2>conftest.er1
29385   ac_status=$?
29386   grep -v '^ *+' conftest.er1 >conftest.err
29387   rm -f conftest.er1
29388   cat conftest.err >&5
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } &&
29391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29392   { (case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397   (eval "$ac_try") 2>&5
29398   ac_status=$?
29399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); }; } &&
29401          { ac_try='test -s conftest.$ac_objext'
29402   { (case "(($ac_try" in
29403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29404   *) ac_try_echo=$ac_try;;
29405 esac
29406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29407   (eval "$ac_try") 2>&5
29408   ac_status=$?
29409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410   (exit $ac_status); }; }; then
29411    cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_U_INTXX_T 1
29413 _ACEOF
29414
29415         cat >>confdefs.h <<\_ACEOF
29416 #define HAVE_INTXX_T 1
29417 _ACEOF
29418
29419         cat >>confdefs.h <<\_ACEOF
29420 #define HAVE_SYS_BITYPES_H 1
29421 _ACEOF
29422
29423         { echo "$as_me:$LINENO: result: yes" >&5
29424 echo "${ECHO_T}yes" >&6; }
29425 else
29426   echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29428
29429          { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29431
29432 fi
29433
29434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29435 fi
29436
29437 if test -z "$have_u_intxx_t" ; then
29438    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29439 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29440 if test "${ac_cv_have_uintxx_t+set}" = set; then
29441   echo $ECHO_N "(cached) $ECHO_C" >&6
29442 else
29443
29444       cat >conftest.$ac_ext <<_ACEOF
29445 /* confdefs.h.  */
29446 _ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h.  */
29450  #include <sys/types.h>
29451 int
29452 main ()
29453 {
29454  uint8_t a; uint16_t b;
29455            uint32_t c; a = b = c = 1;
29456   ;
29457   return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext
29461 if { (ac_try="$ac_compile"
29462 case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467   (eval "$ac_compile") 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } &&
29474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29475   { (case "(($ac_try" in
29476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477   *) ac_try_echo=$ac_try;;
29478 esac
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480   (eval "$ac_try") 2>&5
29481   ac_status=$?
29482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483   (exit $ac_status); }; } &&
29484          { ac_try='test -s conftest.$ac_objext'
29485   { (case "(($ac_try" in
29486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29487   *) ac_try_echo=$ac_try;;
29488 esac
29489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29490   (eval "$ac_try") 2>&5
29491   ac_status=$?
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); }; }; then
29494    ac_cv_have_uintxx_t="yes"
29495 else
29496   echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29498
29499          ac_cv_have_uintxx_t="no"
29500
29501 fi
29502
29503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29504
29505 fi
29506 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29507 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29508    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29509       cat >>confdefs.h <<\_ACEOF
29510 #define HAVE_UINTXX_T 1
29511 _ACEOF
29512
29513    fi
29514 fi
29515
29516 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29517           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29518 then
29519    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29520 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29521    cat >conftest.$ac_ext <<_ACEOF
29522 /* confdefs.h.  */
29523 _ACEOF
29524 cat confdefs.h >>conftest.$ac_ext
29525 cat >>conftest.$ac_ext <<_ACEOF
29526 /* end confdefs.h.  */
29527  #include <sys/bitypes.h>
29528 int
29529 main ()
29530 {
29531  int64_t a; u_int64_t b;
29532        a = b = 1;
29533   ;
29534   return 0;
29535 }
29536 _ACEOF
29537 rm -f conftest.$ac_objext
29538 if { (ac_try="$ac_compile"
29539 case "(($ac_try" in
29540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541   *) ac_try_echo=$ac_try;;
29542 esac
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544   (eval "$ac_compile") 2>conftest.er1
29545   ac_status=$?
29546   grep -v '^ *+' conftest.er1 >conftest.err
29547   rm -f conftest.er1
29548   cat conftest.err >&5
29549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); } &&
29551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29552   { (case "(($ac_try" in
29553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554   *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557   (eval "$ac_try") 2>&5
29558   ac_status=$?
29559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560   (exit $ac_status); }; } &&
29561          { ac_try='test -s conftest.$ac_objext'
29562   { (case "(($ac_try" in
29563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564   *) ac_try_echo=$ac_try;;
29565 esac
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567   (eval "$ac_try") 2>&5
29568   ac_status=$?
29569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570   (exit $ac_status); }; }; then
29571    cat >>confdefs.h <<\_ACEOF
29572 #define HAVE_U_INT64_T 1
29573 _ACEOF
29574
29575        cat >>confdefs.h <<\_ACEOF
29576 #define HAVE_INT64_T 1
29577 _ACEOF
29578
29579        { echo "$as_me:$LINENO: result: yes" >&5
29580 echo "${ECHO_T}yes" >&6; }
29581 else
29582   echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29584
29585          { echo "$as_me:$LINENO: result: no" >&5
29586 echo "${ECHO_T}no" >&6; }
29587
29588 fi
29589
29590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29591 fi
29592
29593 if (test -z "$have_uintxx_t" && \
29594           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29595 then
29596    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29597 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29598    cat >conftest.$ac_ext <<_ACEOF
29599 /* confdefs.h.  */
29600 _ACEOF
29601 cat confdefs.h >>conftest.$ac_ext
29602 cat >>conftest.$ac_ext <<_ACEOF
29603 /* end confdefs.h.  */
29604  #include <sys/bitypes.h>
29605 int
29606 main ()
29607 {
29608  uint8_t a; uint16_t b;
29609           uint32_t c; a = b = c = 1;
29610   ;
29611   return 0;
29612 }
29613 _ACEOF
29614 rm -f conftest.$ac_objext
29615 if { (ac_try="$ac_compile"
29616 case "(($ac_try" in
29617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29618   *) ac_try_echo=$ac_try;;
29619 esac
29620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29621   (eval "$ac_compile") 2>conftest.er1
29622   ac_status=$?
29623   grep -v '^ *+' conftest.er1 >conftest.err
29624   rm -f conftest.er1
29625   cat conftest.err >&5
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); } &&
29628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29629   { (case "(($ac_try" in
29630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631   *) ac_try_echo=$ac_try;;
29632 esac
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634   (eval "$ac_try") 2>&5
29635   ac_status=$?
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); }; } &&
29638          { ac_try='test -s conftest.$ac_objext'
29639   { (case "(($ac_try" in
29640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641   *) ac_try_echo=$ac_try;;
29642 esac
29643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29644   (eval "$ac_try") 2>&5
29645   ac_status=$?
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); }; }; then
29648    cat >>confdefs.h <<\_ACEOF
29649 #define HAVE_UINTXX_T 1
29650 _ACEOF
29651
29652        { echo "$as_me:$LINENO: result: yes" >&5
29653 echo "${ECHO_T}yes" >&6; }
29654 else
29655   echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29657
29658          { echo "$as_me:$LINENO: result: no" >&5
29659 echo "${ECHO_T}no" >&6; }
29660
29661 fi
29662
29663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664
29665 fi
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683 for ac_func in \
29684         fork \
29685         getcwd \
29686         gethostname \
29687         getpid \
29688         gettimeofday \
29689         setpgid \
29690         setpgrp \
29691         setsid \
29692         signal \
29693         strerror \
29694         strncmp \
29695         strncpy \
29696         vfprintf \
29697
29698 do
29699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29703   echo $ECHO_N "(cached) $ECHO_C" >&6
29704 else
29705   cat >conftest.$ac_ext <<_ACEOF
29706 /* confdefs.h.  */
29707 _ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h.  */
29711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29713 #define $ac_func innocuous_$ac_func
29714
29715 /* System header to define __stub macros and hopefully few prototypes,
29716     which can conflict with char $ac_func (); below.
29717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29718     <limits.h> exists even on freestanding compilers.  */
29719
29720 #ifdef __STDC__
29721 # include <limits.h>
29722 #else
29723 # include <assert.h>
29724 #endif
29725
29726 #undef $ac_func
29727
29728 /* Override any GCC internal prototype to avoid an error.
29729    Use char because int might match the return type of a GCC
29730    builtin and then its argument prototype would still apply.  */
29731 #ifdef __cplusplus
29732 extern "C"
29733 #endif
29734 char $ac_func ();
29735 /* The GNU C library defines this for functions which it implements
29736     to always fail with ENOSYS.  Some functions are actually named
29737     something starting with __ and the normal name is an alias.  */
29738 #if defined __stub_$ac_func || defined __stub___$ac_func
29739 choke me
29740 #endif
29741
29742 int
29743 main ()
29744 {
29745 return $ac_func ();
29746   ;
29747   return 0;
29748 }
29749 _ACEOF
29750 rm -f conftest.$ac_objext conftest$ac_exeext
29751 if { (ac_try="$ac_link"
29752 case "(($ac_try" in
29753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754   *) ac_try_echo=$ac_try;;
29755 esac
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757   (eval "$ac_link") 2>conftest.er1
29758   ac_status=$?
29759   grep -v '^ *+' conftest.er1 >conftest.err
29760   rm -f conftest.er1
29761   cat conftest.err >&5
29762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763   (exit $ac_status); } &&
29764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29765   { (case "(($ac_try" in
29766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767   *) ac_try_echo=$ac_try;;
29768 esac
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770   (eval "$ac_try") 2>&5
29771   ac_status=$?
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; } &&
29774          { ac_try='test -s conftest$ac_exeext'
29775   { (case "(($ac_try" in
29776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777   *) ac_try_echo=$ac_try;;
29778 esac
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780   (eval "$ac_try") 2>&5
29781   ac_status=$?
29782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783   (exit $ac_status); }; }; then
29784   eval "$as_ac_var=yes"
29785 else
29786   echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29788
29789         eval "$as_ac_var=no"
29790 fi
29791
29792 rm -f core conftest.err conftest.$ac_objext \
29793       conftest$ac_exeext conftest.$ac_ext
29794 fi
29795 ac_res=`eval echo '${'$as_ac_var'}'`
29796                { echo "$as_me:$LINENO: result: $ac_res" >&5
29797 echo "${ECHO_T}$ac_res" >&6; }
29798 if test `eval echo '${'$as_ac_var'}'` = yes; then
29799   cat >>confdefs.h <<_ACEOF
29800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29801 _ACEOF
29802
29803 else
29804   echo 'configure: cannot find needed function.'; exit 1
29805
29806 fi
29807 done
29808
29809
29810
29811 for ac_func in fchdir
29812 do
29813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29817   echo $ECHO_N "(cached) $ECHO_C" >&6
29818 else
29819   cat >conftest.$ac_ext <<_ACEOF
29820 /* confdefs.h.  */
29821 _ACEOF
29822 cat confdefs.h >>conftest.$ac_ext
29823 cat >>conftest.$ac_ext <<_ACEOF
29824 /* end confdefs.h.  */
29825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29827 #define $ac_func innocuous_$ac_func
29828
29829 /* System header to define __stub macros and hopefully few prototypes,
29830     which can conflict with char $ac_func (); below.
29831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29832     <limits.h> exists even on freestanding compilers.  */
29833
29834 #ifdef __STDC__
29835 # include <limits.h>
29836 #else
29837 # include <assert.h>
29838 #endif
29839
29840 #undef $ac_func
29841
29842 /* Override any GCC internal prototype to avoid an error.
29843    Use char because int might match the return type of a GCC
29844    builtin and then its argument prototype would still apply.  */
29845 #ifdef __cplusplus
29846 extern "C"
29847 #endif
29848 char $ac_func ();
29849 /* The GNU C library defines this for functions which it implements
29850     to always fail with ENOSYS.  Some functions are actually named
29851     something starting with __ and the normal name is an alias.  */
29852 #if defined __stub_$ac_func || defined __stub___$ac_func
29853 choke me
29854 #endif
29855
29856 int
29857 main ()
29858 {
29859 return $ac_func ();
29860   ;
29861   return 0;
29862 }
29863 _ACEOF
29864 rm -f conftest.$ac_objext conftest$ac_exeext
29865 if { (ac_try="$ac_link"
29866 case "(($ac_try" in
29867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868   *) ac_try_echo=$ac_try;;
29869 esac
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871   (eval "$ac_link") 2>conftest.er1
29872   ac_status=$?
29873   grep -v '^ *+' conftest.er1 >conftest.err
29874   rm -f conftest.er1
29875   cat conftest.err >&5
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); } &&
29878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29879   { (case "(($ac_try" in
29880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881   *) ac_try_echo=$ac_try;;
29882 esac
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884   (eval "$ac_try") 2>&5
29885   ac_status=$?
29886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887   (exit $ac_status); }; } &&
29888          { ac_try='test -s conftest$ac_exeext'
29889   { (case "(($ac_try" in
29890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891   *) ac_try_echo=$ac_try;;
29892 esac
29893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894   (eval "$ac_try") 2>&5
29895   ac_status=$?
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); }; }; then
29898   eval "$as_ac_var=yes"
29899 else
29900   echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903         eval "$as_ac_var=no"
29904 fi
29905
29906 rm -f core conftest.err conftest.$ac_objext \
29907       conftest$ac_exeext conftest.$ac_ext
29908 fi
29909 ac_res=`eval echo '${'$as_ac_var'}'`
29910                { echo "$as_me:$LINENO: result: $ac_res" >&5
29911 echo "${ECHO_T}$ac_res" >&6; }
29912 if test `eval echo '${'$as_ac_var'}'` = yes; then
29913   cat >>confdefs.h <<_ACEOF
29914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29915 _ACEOF
29916  cat >>confdefs.h <<\_ACEOF
29917 #define HAVE_FCHDIR 1
29918 _ACEOF
29919
29920 fi
29921 done
29922
29923
29924 for ac_func in strtoll
29925 do
29926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29930   echo $ECHO_N "(cached) $ECHO_C" >&6
29931 else
29932   cat >conftest.$ac_ext <<_ACEOF
29933 /* confdefs.h.  */
29934 _ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h.  */
29938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29940 #define $ac_func innocuous_$ac_func
29941
29942 /* System header to define __stub macros and hopefully few prototypes,
29943     which can conflict with char $ac_func (); below.
29944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29945     <limits.h> exists even on freestanding compilers.  */
29946
29947 #ifdef __STDC__
29948 # include <limits.h>
29949 #else
29950 # include <assert.h>
29951 #endif
29952
29953 #undef $ac_func
29954
29955 /* Override any GCC internal prototype to avoid an error.
29956    Use char because int might match the return type of a GCC
29957    builtin and then its argument prototype would still apply.  */
29958 #ifdef __cplusplus
29959 extern "C"
29960 #endif
29961 char $ac_func ();
29962 /* The GNU C library defines this for functions which it implements
29963     to always fail with ENOSYS.  Some functions are actually named
29964     something starting with __ and the normal name is an alias.  */
29965 #if defined __stub_$ac_func || defined __stub___$ac_func
29966 choke me
29967 #endif
29968
29969 int
29970 main ()
29971 {
29972 return $ac_func ();
29973   ;
29974   return 0;
29975 }
29976 _ACEOF
29977 rm -f conftest.$ac_objext conftest$ac_exeext
29978 if { (ac_try="$ac_link"
29979 case "(($ac_try" in
29980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29981   *) ac_try_echo=$ac_try;;
29982 esac
29983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29984   (eval "$ac_link") 2>conftest.er1
29985   ac_status=$?
29986   grep -v '^ *+' conftest.er1 >conftest.err
29987   rm -f conftest.er1
29988   cat conftest.err >&5
29989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990   (exit $ac_status); } &&
29991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29992   { (case "(($ac_try" in
29993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994   *) ac_try_echo=$ac_try;;
29995 esac
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997   (eval "$ac_try") 2>&5
29998   ac_status=$?
29999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000   (exit $ac_status); }; } &&
30001          { ac_try='test -s conftest$ac_exeext'
30002   { (case "(($ac_try" in
30003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004   *) ac_try_echo=$ac_try;;
30005 esac
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007   (eval "$ac_try") 2>&5
30008   ac_status=$?
30009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010   (exit $ac_status); }; }; then
30011   eval "$as_ac_var=yes"
30012 else
30013   echo "$as_me: failed program was:" >&5
30014 sed 's/^/| /' conftest.$ac_ext >&5
30015
30016         eval "$as_ac_var=no"
30017 fi
30018
30019 rm -f core conftest.err conftest.$ac_objext \
30020       conftest$ac_exeext conftest.$ac_ext
30021 fi
30022 ac_res=`eval echo '${'$as_ac_var'}'`
30023                { echo "$as_me:$LINENO: result: $ac_res" >&5
30024 echo "${ECHO_T}$ac_res" >&6; }
30025 if test `eval echo '${'$as_ac_var'}'` = yes; then
30026   cat >>confdefs.h <<_ACEOF
30027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30028 _ACEOF
30029  cat >>confdefs.h <<\_ACEOF
30030 #define HAVE_STRTOLL 1
30031 _ACEOF
30032
30033 fi
30034 done
30035
30036
30037
30038 for ac_func in chflags
30039 do
30040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30044   echo $ECHO_N "(cached) $ECHO_C" >&6
30045 else
30046   cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30054 #define $ac_func innocuous_$ac_func
30055
30056 /* System header to define __stub macros and hopefully few prototypes,
30057     which can conflict with char $ac_func (); below.
30058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30059     <limits.h> exists even on freestanding compilers.  */
30060
30061 #ifdef __STDC__
30062 # include <limits.h>
30063 #else
30064 # include <assert.h>
30065 #endif
30066
30067 #undef $ac_func
30068
30069 /* Override any GCC internal prototype to avoid an error.
30070    Use char because int might match the return type of a GCC
30071    builtin and then its argument prototype would still apply.  */
30072 #ifdef __cplusplus
30073 extern "C"
30074 #endif
30075 char $ac_func ();
30076 /* The GNU C library defines this for functions which it implements
30077     to always fail with ENOSYS.  Some functions are actually named
30078     something starting with __ and the normal name is an alias.  */
30079 #if defined __stub_$ac_func || defined __stub___$ac_func
30080 choke me
30081 #endif
30082
30083 int
30084 main ()
30085 {
30086 return $ac_func ();
30087   ;
30088   return 0;
30089 }
30090 _ACEOF
30091 rm -f conftest.$ac_objext conftest$ac_exeext
30092 if { (ac_try="$ac_link"
30093 case "(($ac_try" in
30094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095   *) ac_try_echo=$ac_try;;
30096 esac
30097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098   (eval "$ac_link") 2>conftest.er1
30099   ac_status=$?
30100   grep -v '^ *+' conftest.er1 >conftest.err
30101   rm -f conftest.er1
30102   cat conftest.err >&5
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); } &&
30105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30106   { (case "(($ac_try" in
30107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30108   *) ac_try_echo=$ac_try;;
30109 esac
30110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30111   (eval "$ac_try") 2>&5
30112   ac_status=$?
30113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114   (exit $ac_status); }; } &&
30115          { ac_try='test -s conftest$ac_exeext'
30116   { (case "(($ac_try" in
30117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118   *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121   (eval "$ac_try") 2>&5
30122   ac_status=$?
30123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); }; }; then
30125   eval "$as_ac_var=yes"
30126 else
30127   echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30129
30130         eval "$as_ac_var=no"
30131 fi
30132
30133 rm -f core conftest.err conftest.$ac_objext \
30134       conftest$ac_exeext conftest.$ac_ext
30135 fi
30136 ac_res=`eval echo '${'$as_ac_var'}'`
30137                { echo "$as_me:$LINENO: result: $ac_res" >&5
30138 echo "${ECHO_T}$ac_res" >&6; }
30139 if test `eval echo '${'$as_ac_var'}'` = yes; then
30140   cat >>confdefs.h <<_ACEOF
30141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30142 _ACEOF
30143
30144 fi
30145 done
30146
30147
30148
30149
30150
30151
30152 for ac_func in snprintf vsnprintf gethostid fseeko
30153 do
30154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30158   echo $ECHO_N "(cached) $ECHO_C" >&6
30159 else
30160   cat >conftest.$ac_ext <<_ACEOF
30161 /* confdefs.h.  */
30162 _ACEOF
30163 cat confdefs.h >>conftest.$ac_ext
30164 cat >>conftest.$ac_ext <<_ACEOF
30165 /* end confdefs.h.  */
30166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30168 #define $ac_func innocuous_$ac_func
30169
30170 /* System header to define __stub macros and hopefully few prototypes,
30171     which can conflict with char $ac_func (); below.
30172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30173     <limits.h> exists even on freestanding compilers.  */
30174
30175 #ifdef __STDC__
30176 # include <limits.h>
30177 #else
30178 # include <assert.h>
30179 #endif
30180
30181 #undef $ac_func
30182
30183 /* Override any GCC internal prototype to avoid an error.
30184    Use char because int might match the return type of a GCC
30185    builtin and then its argument prototype would still apply.  */
30186 #ifdef __cplusplus
30187 extern "C"
30188 #endif
30189 char $ac_func ();
30190 /* The GNU C library defines this for functions which it implements
30191     to always fail with ENOSYS.  Some functions are actually named
30192     something starting with __ and the normal name is an alias.  */
30193 #if defined __stub_$ac_func || defined __stub___$ac_func
30194 choke me
30195 #endif
30196
30197 int
30198 main ()
30199 {
30200 return $ac_func ();
30201   ;
30202   return 0;
30203 }
30204 _ACEOF
30205 rm -f conftest.$ac_objext conftest$ac_exeext
30206 if { (ac_try="$ac_link"
30207 case "(($ac_try" in
30208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209   *) ac_try_echo=$ac_try;;
30210 esac
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212   (eval "$ac_link") 2>conftest.er1
30213   ac_status=$?
30214   grep -v '^ *+' conftest.er1 >conftest.err
30215   rm -f conftest.er1
30216   cat conftest.err >&5
30217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218   (exit $ac_status); } &&
30219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30220   { (case "(($ac_try" in
30221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222   *) ac_try_echo=$ac_try;;
30223 esac
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225   (eval "$ac_try") 2>&5
30226   ac_status=$?
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); }; } &&
30229          { ac_try='test -s conftest$ac_exeext'
30230   { (case "(($ac_try" in
30231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30232   *) ac_try_echo=$ac_try;;
30233 esac
30234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30235   (eval "$ac_try") 2>&5
30236   ac_status=$?
30237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238   (exit $ac_status); }; }; then
30239   eval "$as_ac_var=yes"
30240 else
30241   echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30243
30244         eval "$as_ac_var=no"
30245 fi
30246
30247 rm -f core conftest.err conftest.$ac_objext \
30248       conftest$ac_exeext conftest.$ac_ext
30249 fi
30250 ac_res=`eval echo '${'$as_ac_var'}'`
30251                { echo "$as_me:$LINENO: result: $ac_res" >&5
30252 echo "${ECHO_T}$ac_res" >&6; }
30253 if test `eval echo '${'$as_ac_var'}'` = yes; then
30254   cat >>confdefs.h <<_ACEOF
30255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30256 _ACEOF
30257
30258 fi
30259 done
30260
30261
30262
30263
30264
30265
30266 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30267 do
30268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30272   echo $ECHO_N "(cached) $ECHO_C" >&6
30273 else
30274   cat >conftest.$ac_ext <<_ACEOF
30275 /* confdefs.h.  */
30276 _ACEOF
30277 cat confdefs.h >>conftest.$ac_ext
30278 cat >>conftest.$ac_ext <<_ACEOF
30279 /* end confdefs.h.  */
30280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30282 #define $ac_func innocuous_$ac_func
30283
30284 /* System header to define __stub macros and hopefully few prototypes,
30285     which can conflict with char $ac_func (); below.
30286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30287     <limits.h> exists even on freestanding compilers.  */
30288
30289 #ifdef __STDC__
30290 # include <limits.h>
30291 #else
30292 # include <assert.h>
30293 #endif
30294
30295 #undef $ac_func
30296
30297 /* Override any GCC internal prototype to avoid an error.
30298    Use char because int might match the return type of a GCC
30299    builtin and then its argument prototype would still apply.  */
30300 #ifdef __cplusplus
30301 extern "C"
30302 #endif
30303 char $ac_func ();
30304 /* The GNU C library defines this for functions which it implements
30305     to always fail with ENOSYS.  Some functions are actually named
30306     something starting with __ and the normal name is an alias.  */
30307 #if defined __stub_$ac_func || defined __stub___$ac_func
30308 choke me
30309 #endif
30310
30311 int
30312 main ()
30313 {
30314 return $ac_func ();
30315   ;
30316   return 0;
30317 }
30318 _ACEOF
30319 rm -f conftest.$ac_objext conftest$ac_exeext
30320 if { (ac_try="$ac_link"
30321 case "(($ac_try" in
30322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30323   *) ac_try_echo=$ac_try;;
30324 esac
30325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30326   (eval "$ac_link") 2>conftest.er1
30327   ac_status=$?
30328   grep -v '^ *+' conftest.er1 >conftest.err
30329   rm -f conftest.er1
30330   cat conftest.err >&5
30331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332   (exit $ac_status); } &&
30333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30334   { (case "(($ac_try" in
30335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336   *) ac_try_echo=$ac_try;;
30337 esac
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339   (eval "$ac_try") 2>&5
30340   ac_status=$?
30341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342   (exit $ac_status); }; } &&
30343          { ac_try='test -s conftest$ac_exeext'
30344   { (case "(($ac_try" in
30345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346   *) ac_try_echo=$ac_try;;
30347 esac
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349   (eval "$ac_try") 2>&5
30350   ac_status=$?
30351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); }; }; then
30353   eval "$as_ac_var=yes"
30354 else
30355   echo "$as_me: failed program was:" >&5
30356 sed 's/^/| /' conftest.$ac_ext >&5
30357
30358         eval "$as_ac_var=no"
30359 fi
30360
30361 rm -f core conftest.err conftest.$ac_objext \
30362       conftest$ac_exeext conftest.$ac_ext
30363 fi
30364 ac_res=`eval echo '${'$as_ac_var'}'`
30365                { echo "$as_me:$LINENO: result: $ac_res" >&5
30366 echo "${ECHO_T}$ac_res" >&6; }
30367 if test `eval echo '${'$as_ac_var'}'` = yes; then
30368   cat >>confdefs.h <<_ACEOF
30369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30370 _ACEOF
30371
30372 fi
30373 done
30374
30375
30376 # If resolver functions are not in libc check for -lnsl or -lresolv.
30377 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30378 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30379 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30380   echo $ECHO_N "(cached) $ECHO_C" >&6
30381 else
30382   cat >conftest.$ac_ext <<_ACEOF
30383 /* confdefs.h.  */
30384 _ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h.  */
30388 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30390 #define gethostbyname_r innocuous_gethostbyname_r
30391
30392 /* System header to define __stub macros and hopefully few prototypes,
30393     which can conflict with char gethostbyname_r (); below.
30394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30395     <limits.h> exists even on freestanding compilers.  */
30396
30397 #ifdef __STDC__
30398 # include <limits.h>
30399 #else
30400 # include <assert.h>
30401 #endif
30402
30403 #undef gethostbyname_r
30404
30405 /* Override any GCC internal prototype to avoid an error.
30406    Use char because int might match the return type of a GCC
30407    builtin and then its argument prototype would still apply.  */
30408 #ifdef __cplusplus
30409 extern "C"
30410 #endif
30411 char gethostbyname_r ();
30412 /* The GNU C library defines this for functions which it implements
30413     to always fail with ENOSYS.  Some functions are actually named
30414     something starting with __ and the normal name is an alias.  */
30415 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30416 choke me
30417 #endif
30418
30419 int
30420 main ()
30421 {
30422 return gethostbyname_r ();
30423   ;
30424   return 0;
30425 }
30426 _ACEOF
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (ac_try="$ac_link"
30429 case "(($ac_try" in
30430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431   *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434   (eval "$ac_link") 2>conftest.er1
30435   ac_status=$?
30436   grep -v '^ *+' conftest.er1 >conftest.err
30437   rm -f conftest.er1
30438   cat conftest.err >&5
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); } &&
30441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442   { (case "(($ac_try" in
30443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444   *) ac_try_echo=$ac_try;;
30445 esac
30446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447   (eval "$ac_try") 2>&5
30448   ac_status=$?
30449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450   (exit $ac_status); }; } &&
30451          { ac_try='test -s conftest$ac_exeext'
30452   { (case "(($ac_try" in
30453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454   *) ac_try_echo=$ac_try;;
30455 esac
30456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457   (eval "$ac_try") 2>&5
30458   ac_status=$?
30459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460   (exit $ac_status); }; }; then
30461   ac_cv_func_gethostbyname_r=yes
30462 else
30463   echo "$as_me: failed program was:" >&5
30464 sed 's/^/| /' conftest.$ac_ext >&5
30465
30466         ac_cv_func_gethostbyname_r=no
30467 fi
30468
30469 rm -f core conftest.err conftest.$ac_objext \
30470       conftest$ac_exeext conftest.$ac_ext
30471 fi
30472 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30473 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30474 if test $ac_cv_func_gethostbyname_r = yes; then
30475   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30476 echo "${ECHO_T}using libc's resolver" >&6; }
30477 else
30478
30479 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30480 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30481 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30482   echo $ECHO_N "(cached) $ECHO_C" >&6
30483 else
30484   ac_check_lib_save_LIBS=$LIBS
30485 LIBS="-lnsl  $LIBS"
30486 cat >conftest.$ac_ext <<_ACEOF
30487 /* confdefs.h.  */
30488 _ACEOF
30489 cat confdefs.h >>conftest.$ac_ext
30490 cat >>conftest.$ac_ext <<_ACEOF
30491 /* end confdefs.h.  */
30492
30493 /* Override any GCC internal prototype to avoid an error.
30494    Use char because int might match the return type of a GCC
30495    builtin and then its argument prototype would still apply.  */
30496 #ifdef __cplusplus
30497 extern "C"
30498 #endif
30499 char gethostbyname_r ();
30500 int
30501 main ()
30502 {
30503 return gethostbyname_r ();
30504   ;
30505   return 0;
30506 }
30507 _ACEOF
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (ac_try="$ac_link"
30510 case "(($ac_try" in
30511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512   *) ac_try_echo=$ac_try;;
30513 esac
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515   (eval "$ac_link") 2>conftest.er1
30516   ac_status=$?
30517   grep -v '^ *+' conftest.er1 >conftest.err
30518   rm -f conftest.er1
30519   cat conftest.err >&5
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); } &&
30522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30523   { (case "(($ac_try" in
30524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30525   *) ac_try_echo=$ac_try;;
30526 esac
30527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30528   (eval "$ac_try") 2>&5
30529   ac_status=$?
30530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531   (exit $ac_status); }; } &&
30532          { ac_try='test -s conftest$ac_exeext'
30533   { (case "(($ac_try" in
30534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30535   *) ac_try_echo=$ac_try;;
30536 esac
30537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30538   (eval "$ac_try") 2>&5
30539   ac_status=$?
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); }; }; then
30542   ac_cv_lib_nsl_gethostbyname_r=yes
30543 else
30544   echo "$as_me: failed program was:" >&5
30545 sed 's/^/| /' conftest.$ac_ext >&5
30546
30547         ac_cv_lib_nsl_gethostbyname_r=no
30548 fi
30549
30550 rm -f core conftest.err conftest.$ac_objext \
30551       conftest$ac_exeext conftest.$ac_ext
30552 LIBS=$ac_check_lib_save_LIBS
30553 fi
30554 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30555 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30556 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30557   cat >>confdefs.h <<_ACEOF
30558 #define HAVE_LIBNSL 1
30559 _ACEOF
30560
30561   LIBS="-lnsl $LIBS"
30562
30563 fi
30564
30565
30566 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30567 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30568 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30569   echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571   ac_check_lib_save_LIBS=$LIBS
30572 LIBS="-lresolv  $LIBS"
30573 cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h.  */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h.  */
30579
30580 /* Override any GCC internal prototype to avoid an error.
30581    Use char because int might match the return type of a GCC
30582    builtin and then its argument prototype would still apply.  */
30583 #ifdef __cplusplus
30584 extern "C"
30585 #endif
30586 char gethostbyname_r ();
30587 int
30588 main ()
30589 {
30590 return gethostbyname_r ();
30591   ;
30592   return 0;
30593 }
30594 _ACEOF
30595 rm -f conftest.$ac_objext conftest$ac_exeext
30596 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30603   ac_status=$?
30604   grep -v '^ *+' conftest.er1 >conftest.err
30605   rm -f conftest.er1
30606   cat conftest.err >&5
30607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608   (exit $ac_status); } &&
30609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30610   { (case "(($ac_try" in
30611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612   *) ac_try_echo=$ac_try;;
30613 esac
30614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615   (eval "$ac_try") 2>&5
30616   ac_status=$?
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); }; } &&
30619          { ac_try='test -s conftest$ac_exeext'
30620   { (case "(($ac_try" in
30621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622   *) ac_try_echo=$ac_try;;
30623 esac
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625   (eval "$ac_try") 2>&5
30626   ac_status=$?
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); }; }; then
30629   ac_cv_lib_resolv_gethostbyname_r=yes
30630 else
30631   echo "$as_me: failed program was:" >&5
30632 sed 's/^/| /' conftest.$ac_ext >&5
30633
30634         ac_cv_lib_resolv_gethostbyname_r=no
30635 fi
30636
30637 rm -f core conftest.err conftest.$ac_objext \
30638       conftest$ac_exeext conftest.$ac_ext
30639 LIBS=$ac_check_lib_save_LIBS
30640 fi
30641 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
30642 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
30643 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
30644   cat >>confdefs.h <<_ACEOF
30645 #define HAVE_LIBRESOLV 1
30646 _ACEOF
30647
30648   LIBS="-lresolv $LIBS"
30649
30650 fi
30651
30652 fi
30653
30654
30655
30656
30657
30658 for ac_func in inet_pton
30659 do
30660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30664   echo $ECHO_N "(cached) $ECHO_C" >&6
30665 else
30666   cat >conftest.$ac_ext <<_ACEOF
30667 /* confdefs.h.  */
30668 _ACEOF
30669 cat confdefs.h >>conftest.$ac_ext
30670 cat >>conftest.$ac_ext <<_ACEOF
30671 /* end confdefs.h.  */
30672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30674 #define $ac_func innocuous_$ac_func
30675
30676 /* System header to define __stub macros and hopefully few prototypes,
30677     which can conflict with char $ac_func (); below.
30678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30679     <limits.h> exists even on freestanding compilers.  */
30680
30681 #ifdef __STDC__
30682 # include <limits.h>
30683 #else
30684 # include <assert.h>
30685 #endif
30686
30687 #undef $ac_func
30688
30689 /* Override any GCC internal prototype to avoid an error.
30690    Use char because int might match the return type of a GCC
30691    builtin and then its argument prototype would still apply.  */
30692 #ifdef __cplusplus
30693 extern "C"
30694 #endif
30695 char $ac_func ();
30696 /* The GNU C library defines this for functions which it implements
30697     to always fail with ENOSYS.  Some functions are actually named
30698     something starting with __ and the normal name is an alias.  */
30699 #if defined __stub_$ac_func || defined __stub___$ac_func
30700 choke me
30701 #endif
30702
30703 int
30704 main ()
30705 {
30706 return $ac_func ();
30707   ;
30708   return 0;
30709 }
30710 _ACEOF
30711 rm -f conftest.$ac_objext conftest$ac_exeext
30712 if { (ac_try="$ac_link"
30713 case "(($ac_try" in
30714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715   *) ac_try_echo=$ac_try;;
30716 esac
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718   (eval "$ac_link") 2>conftest.er1
30719   ac_status=$?
30720   grep -v '^ *+' conftest.er1 >conftest.err
30721   rm -f conftest.er1
30722   cat conftest.err >&5
30723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724   (exit $ac_status); } &&
30725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30726   { (case "(($ac_try" in
30727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30728   *) ac_try_echo=$ac_try;;
30729 esac
30730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30731   (eval "$ac_try") 2>&5
30732   ac_status=$?
30733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734   (exit $ac_status); }; } &&
30735          { ac_try='test -s conftest$ac_exeext'
30736   { (case "(($ac_try" in
30737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738   *) ac_try_echo=$ac_try;;
30739 esac
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741   (eval "$ac_try") 2>&5
30742   ac_status=$?
30743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744   (exit $ac_status); }; }; then
30745   eval "$as_ac_var=yes"
30746 else
30747   echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30749
30750         eval "$as_ac_var=no"
30751 fi
30752
30753 rm -f core conftest.err conftest.$ac_objext \
30754       conftest$ac_exeext conftest.$ac_ext
30755 fi
30756 ac_res=`eval echo '${'$as_ac_var'}'`
30757                { echo "$as_me:$LINENO: result: $ac_res" >&5
30758 echo "${ECHO_T}$ac_res" >&6; }
30759 if test `eval echo '${'$as_ac_var'}'` = yes; then
30760   cat >>confdefs.h <<_ACEOF
30761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30762 _ACEOF
30763  cat >>confdefs.h <<\_ACEOF
30764 #define HAVE_INET_PTON 1
30765 _ACEOF
30766
30767 fi
30768 done
30769
30770
30771 for ac_func in inet_ntop
30772 do
30773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30777   echo $ECHO_N "(cached) $ECHO_C" >&6
30778 else
30779   cat >conftest.$ac_ext <<_ACEOF
30780 /* confdefs.h.  */
30781 _ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h.  */
30785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30787 #define $ac_func innocuous_$ac_func
30788
30789 /* System header to define __stub macros and hopefully few prototypes,
30790     which can conflict with char $ac_func (); below.
30791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30792     <limits.h> exists even on freestanding compilers.  */
30793
30794 #ifdef __STDC__
30795 # include <limits.h>
30796 #else
30797 # include <assert.h>
30798 #endif
30799
30800 #undef $ac_func
30801
30802 /* Override any GCC internal prototype to avoid an error.
30803    Use char because int might match the return type of a GCC
30804    builtin and then its argument prototype would still apply.  */
30805 #ifdef __cplusplus
30806 extern "C"
30807 #endif
30808 char $ac_func ();
30809 /* The GNU C library defines this for functions which it implements
30810     to always fail with ENOSYS.  Some functions are actually named
30811     something starting with __ and the normal name is an alias.  */
30812 #if defined __stub_$ac_func || defined __stub___$ac_func
30813 choke me
30814 #endif
30815
30816 int
30817 main ()
30818 {
30819 return $ac_func ();
30820   ;
30821   return 0;
30822 }
30823 _ACEOF
30824 rm -f conftest.$ac_objext conftest$ac_exeext
30825 if { (ac_try="$ac_link"
30826 case "(($ac_try" in
30827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828   *) ac_try_echo=$ac_try;;
30829 esac
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831   (eval "$ac_link") 2>conftest.er1
30832   ac_status=$?
30833   grep -v '^ *+' conftest.er1 >conftest.err
30834   rm -f conftest.er1
30835   cat conftest.err >&5
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); } &&
30838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30839   { (case "(($ac_try" in
30840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841   *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844   (eval "$ac_try") 2>&5
30845   ac_status=$?
30846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847   (exit $ac_status); }; } &&
30848          { ac_try='test -s conftest$ac_exeext'
30849   { (case "(($ac_try" in
30850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851   *) ac_try_echo=$ac_try;;
30852 esac
30853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854   (eval "$ac_try") 2>&5
30855   ac_status=$?
30856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857   (exit $ac_status); }; }; then
30858   eval "$as_ac_var=yes"
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863         eval "$as_ac_var=no"
30864 fi
30865
30866 rm -f core conftest.err conftest.$ac_objext \
30867       conftest$ac_exeext conftest.$ac_ext
30868 fi
30869 ac_res=`eval echo '${'$as_ac_var'}'`
30870                { echo "$as_me:$LINENO: result: $ac_res" >&5
30871 echo "${ECHO_T}$ac_res" >&6; }
30872 if test `eval echo '${'$as_ac_var'}'` = yes; then
30873   cat >>confdefs.h <<_ACEOF
30874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30875 _ACEOF
30876  cat >>confdefs.h <<\_ACEOF
30877 #define HAVE_INET_NTOP 1
30878 _ACEOF
30879
30880 fi
30881 done
30882
30883
30884 for ac_func in gethostbyname2
30885 do
30886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30890   echo $ECHO_N "(cached) $ECHO_C" >&6
30891 else
30892   cat >conftest.$ac_ext <<_ACEOF
30893 /* confdefs.h.  */
30894 _ACEOF
30895 cat confdefs.h >>conftest.$ac_ext
30896 cat >>conftest.$ac_ext <<_ACEOF
30897 /* end confdefs.h.  */
30898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30900 #define $ac_func innocuous_$ac_func
30901
30902 /* System header to define __stub macros and hopefully few prototypes,
30903     which can conflict with char $ac_func (); below.
30904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30905     <limits.h> exists even on freestanding compilers.  */
30906
30907 #ifdef __STDC__
30908 # include <limits.h>
30909 #else
30910 # include <assert.h>
30911 #endif
30912
30913 #undef $ac_func
30914
30915 /* Override any GCC internal prototype to avoid an error.
30916    Use char because int might match the return type of a GCC
30917    builtin and then its argument prototype would still apply.  */
30918 #ifdef __cplusplus
30919 extern "C"
30920 #endif
30921 char $ac_func ();
30922 /* The GNU C library defines this for functions which it implements
30923     to always fail with ENOSYS.  Some functions are actually named
30924     something starting with __ and the normal name is an alias.  */
30925 #if defined __stub_$ac_func || defined __stub___$ac_func
30926 choke me
30927 #endif
30928
30929 int
30930 main ()
30931 {
30932 return $ac_func ();
30933   ;
30934   return 0;
30935 }
30936 _ACEOF
30937 rm -f conftest.$ac_objext conftest$ac_exeext
30938 if { (ac_try="$ac_link"
30939 case "(($ac_try" in
30940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941   *) ac_try_echo=$ac_try;;
30942 esac
30943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30944   (eval "$ac_link") 2>conftest.er1
30945   ac_status=$?
30946   grep -v '^ *+' conftest.er1 >conftest.err
30947   rm -f conftest.er1
30948   cat conftest.err >&5
30949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950   (exit $ac_status); } &&
30951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30952   { (case "(($ac_try" in
30953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954   *) ac_try_echo=$ac_try;;
30955 esac
30956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957   (eval "$ac_try") 2>&5
30958   ac_status=$?
30959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960   (exit $ac_status); }; } &&
30961          { ac_try='test -s conftest$ac_exeext'
30962   { (case "(($ac_try" in
30963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30964   *) ac_try_echo=$ac_try;;
30965 esac
30966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30967   (eval "$ac_try") 2>&5
30968   ac_status=$?
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); }; }; then
30971   eval "$as_ac_var=yes"
30972 else
30973   echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976         eval "$as_ac_var=no"
30977 fi
30978
30979 rm -f core conftest.err conftest.$ac_objext \
30980       conftest$ac_exeext conftest.$ac_ext
30981 fi
30982 ac_res=`eval echo '${'$as_ac_var'}'`
30983                { echo "$as_me:$LINENO: result: $ac_res" >&5
30984 echo "${ECHO_T}$ac_res" >&6; }
30985 if test `eval echo '${'$as_ac_var'}'` = yes; then
30986   cat >>confdefs.h <<_ACEOF
30987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30988 _ACEOF
30989  cat >>confdefs.h <<\_ACEOF
30990 #define HAVE_GETHOSTBYNAME2 1
30991 _ACEOF
30992
30993 fi
30994 done
30995
30996
30997 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
30998 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
30999 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31000   echo $ECHO_N "(cached) $ECHO_C" >&6
31001 else
31002   cat >conftest.$ac_ext <<_ACEOF
31003 /* confdefs.h.  */
31004 _ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h.  */
31008 #include <sys/socket.h>
31009 int
31010 main ()
31011 {
31012 struct sockaddr s; s.sa_len;
31013   ;
31014   return 0;
31015 }
31016 _ACEOF
31017 rm -f conftest.$ac_objext
31018 if { (ac_try="$ac_compile"
31019 case "(($ac_try" in
31020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31021   *) ac_try_echo=$ac_try;;
31022 esac
31023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31024   (eval "$ac_compile") 2>conftest.er1
31025   ac_status=$?
31026   grep -v '^ *+' conftest.er1 >conftest.err
31027   rm -f conftest.er1
31028   cat conftest.err >&5
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); } &&
31031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31032   { (case "(($ac_try" in
31033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034   *) ac_try_echo=$ac_try;;
31035 esac
31036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037   (eval "$ac_try") 2>&5
31038   ac_status=$?
31039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040   (exit $ac_status); }; } &&
31041          { ac_try='test -s conftest.$ac_objext'
31042   { (case "(($ac_try" in
31043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31044   *) ac_try_echo=$ac_try;;
31045 esac
31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31047   (eval "$ac_try") 2>&5
31048   ac_status=$?
31049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050   (exit $ac_status); }; }; then
31051   ac_cv_struct_sockaddr_sa_len=yes
31052 else
31053   echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31055
31056         ac_cv_struct_sockaddr_sa_len=no
31057 fi
31058
31059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31060 fi
31061 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31062 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31063
31064  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31065
31066 cat >>confdefs.h <<\_ACEOF
31067 #define HAVE_SA_LEN 1
31068 _ACEOF
31069
31070  fi
31071
31072
31073
31074
31075
31076 for ac_func in strftime
31077 do
31078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31082   echo $ECHO_N "(cached) $ECHO_C" >&6
31083 else
31084   cat >conftest.$ac_ext <<_ACEOF
31085 /* confdefs.h.  */
31086 _ACEOF
31087 cat confdefs.h >>conftest.$ac_ext
31088 cat >>conftest.$ac_ext <<_ACEOF
31089 /* end confdefs.h.  */
31090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31092 #define $ac_func innocuous_$ac_func
31093
31094 /* System header to define __stub macros and hopefully few prototypes,
31095     which can conflict with char $ac_func (); below.
31096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31097     <limits.h> exists even on freestanding compilers.  */
31098
31099 #ifdef __STDC__
31100 # include <limits.h>
31101 #else
31102 # include <assert.h>
31103 #endif
31104
31105 #undef $ac_func
31106
31107 /* Override any GCC internal prototype to avoid an error.
31108    Use char because int might match the return type of a GCC
31109    builtin and then its argument prototype would still apply.  */
31110 #ifdef __cplusplus
31111 extern "C"
31112 #endif
31113 char $ac_func ();
31114 /* The GNU C library defines this for functions which it implements
31115     to always fail with ENOSYS.  Some functions are actually named
31116     something starting with __ and the normal name is an alias.  */
31117 #if defined __stub_$ac_func || defined __stub___$ac_func
31118 choke me
31119 #endif
31120
31121 int
31122 main ()
31123 {
31124 return $ac_func ();
31125   ;
31126   return 0;
31127 }
31128 _ACEOF
31129 rm -f conftest.$ac_objext conftest$ac_exeext
31130 if { (ac_try="$ac_link"
31131 case "(($ac_try" in
31132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31133   *) ac_try_echo=$ac_try;;
31134 esac
31135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31136   (eval "$ac_link") 2>conftest.er1
31137   ac_status=$?
31138   grep -v '^ *+' conftest.er1 >conftest.err
31139   rm -f conftest.er1
31140   cat conftest.err >&5
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); } &&
31143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31144   { (case "(($ac_try" in
31145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146   *) ac_try_echo=$ac_try;;
31147 esac
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149   (eval "$ac_try") 2>&5
31150   ac_status=$?
31151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152   (exit $ac_status); }; } &&
31153          { ac_try='test -s conftest$ac_exeext'
31154   { (case "(($ac_try" in
31155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156   *) ac_try_echo=$ac_try;;
31157 esac
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159   (eval "$ac_try") 2>&5
31160   ac_status=$?
31161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162   (exit $ac_status); }; }; then
31163   eval "$as_ac_var=yes"
31164 else
31165   echo "$as_me: failed program was:" >&5
31166 sed 's/^/| /' conftest.$ac_ext >&5
31167
31168         eval "$as_ac_var=no"
31169 fi
31170
31171 rm -f core conftest.err conftest.$ac_objext \
31172       conftest$ac_exeext conftest.$ac_ext
31173 fi
31174 ac_res=`eval echo '${'$as_ac_var'}'`
31175                { echo "$as_me:$LINENO: result: $ac_res" >&5
31176 echo "${ECHO_T}$ac_res" >&6; }
31177 if test `eval echo '${'$as_ac_var'}'` = yes; then
31178   cat >>confdefs.h <<_ACEOF
31179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31180 _ACEOF
31181
31182 else
31183   # strftime is in -lintl on SCO UNIX.
31184 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31185 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31186 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31187   echo $ECHO_N "(cached) $ECHO_C" >&6
31188 else
31189   ac_check_lib_save_LIBS=$LIBS
31190 LIBS="-lintl  $LIBS"
31191 cat >conftest.$ac_ext <<_ACEOF
31192 /* confdefs.h.  */
31193 _ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h.  */
31197
31198 /* Override any GCC internal prototype to avoid an error.
31199    Use char because int might match the return type of a GCC
31200    builtin and then its argument prototype would still apply.  */
31201 #ifdef __cplusplus
31202 extern "C"
31203 #endif
31204 char strftime ();
31205 int
31206 main ()
31207 {
31208 return strftime ();
31209   ;
31210   return 0;
31211 }
31212 _ACEOF
31213 rm -f conftest.$ac_objext conftest$ac_exeext
31214 if { (ac_try="$ac_link"
31215 case "(($ac_try" in
31216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217   *) ac_try_echo=$ac_try;;
31218 esac
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220   (eval "$ac_link") 2>conftest.er1
31221   ac_status=$?
31222   grep -v '^ *+' conftest.er1 >conftest.err
31223   rm -f conftest.er1
31224   cat conftest.err >&5
31225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226   (exit $ac_status); } &&
31227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31228   { (case "(($ac_try" in
31229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230   *) ac_try_echo=$ac_try;;
31231 esac
31232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31233   (eval "$ac_try") 2>&5
31234   ac_status=$?
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); }; } &&
31237          { ac_try='test -s conftest$ac_exeext'
31238   { (case "(($ac_try" in
31239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240   *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243   (eval "$ac_try") 2>&5
31244   ac_status=$?
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); }; }; then
31247   ac_cv_lib_intl_strftime=yes
31248 else
31249   echo "$as_me: failed program was:" >&5
31250 sed 's/^/| /' conftest.$ac_ext >&5
31251
31252         ac_cv_lib_intl_strftime=no
31253 fi
31254
31255 rm -f core conftest.err conftest.$ac_objext \
31256       conftest$ac_exeext conftest.$ac_ext
31257 LIBS=$ac_check_lib_save_LIBS
31258 fi
31259 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31260 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31261 if test $ac_cv_lib_intl_strftime = yes; then
31262   cat >>confdefs.h <<\_ACEOF
31263 #define HAVE_STRFTIME 1
31264 _ACEOF
31265
31266 LIBS="-lintl $LIBS"
31267 fi
31268
31269 fi
31270 done
31271
31272
31273 for ac_func in vprintf
31274 do
31275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31279   echo $ECHO_N "(cached) $ECHO_C" >&6
31280 else
31281   cat >conftest.$ac_ext <<_ACEOF
31282 /* confdefs.h.  */
31283 _ACEOF
31284 cat confdefs.h >>conftest.$ac_ext
31285 cat >>conftest.$ac_ext <<_ACEOF
31286 /* end confdefs.h.  */
31287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31289 #define $ac_func innocuous_$ac_func
31290
31291 /* System header to define __stub macros and hopefully few prototypes,
31292     which can conflict with char $ac_func (); below.
31293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31294     <limits.h> exists even on freestanding compilers.  */
31295
31296 #ifdef __STDC__
31297 # include <limits.h>
31298 #else
31299 # include <assert.h>
31300 #endif
31301
31302 #undef $ac_func
31303
31304 /* Override any GCC internal prototype to avoid an error.
31305    Use char because int might match the return type of a GCC
31306    builtin and then its argument prototype would still apply.  */
31307 #ifdef __cplusplus
31308 extern "C"
31309 #endif
31310 char $ac_func ();
31311 /* The GNU C library defines this for functions which it implements
31312     to always fail with ENOSYS.  Some functions are actually named
31313     something starting with __ and the normal name is an alias.  */
31314 #if defined __stub_$ac_func || defined __stub___$ac_func
31315 choke me
31316 #endif
31317
31318 int
31319 main ()
31320 {
31321 return $ac_func ();
31322   ;
31323   return 0;
31324 }
31325 _ACEOF
31326 rm -f conftest.$ac_objext conftest$ac_exeext
31327 if { (ac_try="$ac_link"
31328 case "(($ac_try" in
31329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330   *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333   (eval "$ac_link") 2>conftest.er1
31334   ac_status=$?
31335   grep -v '^ *+' conftest.er1 >conftest.err
31336   rm -f conftest.er1
31337   cat conftest.err >&5
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); } &&
31340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31341   { (case "(($ac_try" in
31342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343   *) ac_try_echo=$ac_try;;
31344 esac
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346   (eval "$ac_try") 2>&5
31347   ac_status=$?
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); }; } &&
31350          { ac_try='test -s conftest$ac_exeext'
31351   { (case "(($ac_try" in
31352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31353   *) ac_try_echo=$ac_try;;
31354 esac
31355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31356   (eval "$ac_try") 2>&5
31357   ac_status=$?
31358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359   (exit $ac_status); }; }; then
31360   eval "$as_ac_var=yes"
31361 else
31362   echo "$as_me: failed program was:" >&5
31363 sed 's/^/| /' conftest.$ac_ext >&5
31364
31365         eval "$as_ac_var=no"
31366 fi
31367
31368 rm -f core conftest.err conftest.$ac_objext \
31369       conftest$ac_exeext conftest.$ac_ext
31370 fi
31371 ac_res=`eval echo '${'$as_ac_var'}'`
31372                { echo "$as_me:$LINENO: result: $ac_res" >&5
31373 echo "${ECHO_T}$ac_res" >&6; }
31374 if test `eval echo '${'$as_ac_var'}'` = yes; then
31375   cat >>confdefs.h <<_ACEOF
31376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31377 _ACEOF
31378
31379 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31380 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31381 if test "${ac_cv_func__doprnt+set}" = set; then
31382   echo $ECHO_N "(cached) $ECHO_C" >&6
31383 else
31384   cat >conftest.$ac_ext <<_ACEOF
31385 /* confdefs.h.  */
31386 _ACEOF
31387 cat confdefs.h >>conftest.$ac_ext
31388 cat >>conftest.$ac_ext <<_ACEOF
31389 /* end confdefs.h.  */
31390 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31392 #define _doprnt innocuous__doprnt
31393
31394 /* System header to define __stub macros and hopefully few prototypes,
31395     which can conflict with char _doprnt (); below.
31396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31397     <limits.h> exists even on freestanding compilers.  */
31398
31399 #ifdef __STDC__
31400 # include <limits.h>
31401 #else
31402 # include <assert.h>
31403 #endif
31404
31405 #undef _doprnt
31406
31407 /* Override any GCC internal prototype to avoid an error.
31408    Use char because int might match the return type of a GCC
31409    builtin and then its argument prototype would still apply.  */
31410 #ifdef __cplusplus
31411 extern "C"
31412 #endif
31413 char _doprnt ();
31414 /* The GNU C library defines this for functions which it implements
31415     to always fail with ENOSYS.  Some functions are actually named
31416     something starting with __ and the normal name is an alias.  */
31417 #if defined __stub__doprnt || defined __stub____doprnt
31418 choke me
31419 #endif
31420
31421 int
31422 main ()
31423 {
31424 return _doprnt ();
31425   ;
31426   return 0;
31427 }
31428 _ACEOF
31429 rm -f conftest.$ac_objext conftest$ac_exeext
31430 if { (ac_try="$ac_link"
31431 case "(($ac_try" in
31432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433   *) ac_try_echo=$ac_try;;
31434 esac
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436   (eval "$ac_link") 2>conftest.er1
31437   ac_status=$?
31438   grep -v '^ *+' conftest.er1 >conftest.err
31439   rm -f conftest.er1
31440   cat conftest.err >&5
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); } &&
31443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31444   { (case "(($ac_try" in
31445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446   *) ac_try_echo=$ac_try;;
31447 esac
31448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449   (eval "$ac_try") 2>&5
31450   ac_status=$?
31451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452   (exit $ac_status); }; } &&
31453          { ac_try='test -s conftest$ac_exeext'
31454   { (case "(($ac_try" in
31455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31456   *) ac_try_echo=$ac_try;;
31457 esac
31458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31459   (eval "$ac_try") 2>&5
31460   ac_status=$?
31461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462   (exit $ac_status); }; }; then
31463   ac_cv_func__doprnt=yes
31464 else
31465   echo "$as_me: failed program was:" >&5
31466 sed 's/^/| /' conftest.$ac_ext >&5
31467
31468         ac_cv_func__doprnt=no
31469 fi
31470
31471 rm -f core conftest.err conftest.$ac_objext \
31472       conftest$ac_exeext conftest.$ac_ext
31473 fi
31474 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31475 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31476 if test $ac_cv_func__doprnt = yes; then
31477
31478 cat >>confdefs.h <<\_ACEOF
31479 #define HAVE_DOPRNT 1
31480 _ACEOF
31481
31482 fi
31483
31484 fi
31485 done
31486
31487
31488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31489 # for constant arguments.  Useless!
31490 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31491 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31492 if test "${ac_cv_working_alloca_h+set}" = set; then
31493   echo $ECHO_N "(cached) $ECHO_C" >&6
31494 else
31495   cat >conftest.$ac_ext <<_ACEOF
31496 /* confdefs.h.  */
31497 _ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h.  */
31501 #include <alloca.h>
31502 int
31503 main ()
31504 {
31505 char *p = (char *) alloca (2 * sizeof (int));
31506                           if (p) return 0;
31507   ;
31508   return 0;
31509 }
31510 _ACEOF
31511 rm -f conftest.$ac_objext conftest$ac_exeext
31512 if { (ac_try="$ac_link"
31513 case "(($ac_try" in
31514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515   *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518   (eval "$ac_link") 2>conftest.er1
31519   ac_status=$?
31520   grep -v '^ *+' conftest.er1 >conftest.err
31521   rm -f conftest.er1
31522   cat conftest.err >&5
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); } &&
31525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526   { (case "(($ac_try" in
31527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528   *) ac_try_echo=$ac_try;;
31529 esac
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531   (eval "$ac_try") 2>&5
31532   ac_status=$?
31533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534   (exit $ac_status); }; } &&
31535          { ac_try='test -s conftest$ac_exeext'
31536   { (case "(($ac_try" in
31537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538   *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541   (eval "$ac_try") 2>&5
31542   ac_status=$?
31543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); }; }; then
31545   ac_cv_working_alloca_h=yes
31546 else
31547   echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31549
31550         ac_cv_working_alloca_h=no
31551 fi
31552
31553 rm -f core conftest.err conftest.$ac_objext \
31554       conftest$ac_exeext conftest.$ac_ext
31555 fi
31556 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31557 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31558 if test $ac_cv_working_alloca_h = yes; then
31559
31560 cat >>confdefs.h <<\_ACEOF
31561 #define HAVE_ALLOCA_H 1
31562 _ACEOF
31563
31564 fi
31565
31566 { echo "$as_me:$LINENO: checking for alloca" >&5
31567 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31568 if test "${ac_cv_func_alloca_works+set}" = set; then
31569   echo $ECHO_N "(cached) $ECHO_C" >&6
31570 else
31571   cat >conftest.$ac_ext <<_ACEOF
31572 /* confdefs.h.  */
31573 _ACEOF
31574 cat confdefs.h >>conftest.$ac_ext
31575 cat >>conftest.$ac_ext <<_ACEOF
31576 /* end confdefs.h.  */
31577 #ifdef __GNUC__
31578 # define alloca __builtin_alloca
31579 #else
31580 # ifdef _MSC_VER
31581 #  include <malloc.h>
31582 #  define alloca _alloca
31583 # else
31584 #  if HAVE_ALLOCA_H
31585 #   include <alloca.h>
31586 #  else
31587 #   ifdef _AIX
31588  #pragma alloca
31589 #   else
31590 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31591 char *alloca ();
31592 #    endif
31593 #   endif
31594 #  endif
31595 # endif
31596 #endif
31597
31598 int
31599 main ()
31600 {
31601 char *p = (char *) alloca (1);
31602                                     if (p) return 0;
31603   ;
31604   return 0;
31605 }
31606 _ACEOF
31607 rm -f conftest.$ac_objext conftest$ac_exeext
31608 if { (ac_try="$ac_link"
31609 case "(($ac_try" in
31610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611   *) ac_try_echo=$ac_try;;
31612 esac
31613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614   (eval "$ac_link") 2>conftest.er1
31615   ac_status=$?
31616   grep -v '^ *+' conftest.er1 >conftest.err
31617   rm -f conftest.er1
31618   cat conftest.err >&5
31619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620   (exit $ac_status); } &&
31621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
31628   ac_status=$?
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); }; } &&
31631          { ac_try='test -s conftest$ac_exeext'
31632   { (case "(($ac_try" in
31633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634   *) ac_try_echo=$ac_try;;
31635 esac
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637   (eval "$ac_try") 2>&5
31638   ac_status=$?
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); }; }; then
31641   ac_cv_func_alloca_works=yes
31642 else
31643   echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31645
31646         ac_cv_func_alloca_works=no
31647 fi
31648
31649 rm -f core conftest.err conftest.$ac_objext \
31650       conftest$ac_exeext conftest.$ac_ext
31651 fi
31652 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31654
31655 if test $ac_cv_func_alloca_works = yes; then
31656
31657 cat >>confdefs.h <<\_ACEOF
31658 #define HAVE_ALLOCA 1
31659 _ACEOF
31660
31661 else
31662   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31663 # that cause trouble.  Some versions do not even contain alloca or
31664 # contain a buggy version.  If you still want to use their alloca,
31665 # use ar to extract alloca.o from them instead of compiling alloca.c.
31666
31667 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31668
31669 cat >>confdefs.h <<\_ACEOF
31670 #define C_ALLOCA 1
31671 _ACEOF
31672
31673
31674 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31676 if test "${ac_cv_os_cray+set}" = set; then
31677   echo $ECHO_N "(cached) $ECHO_C" >&6
31678 else
31679   cat >conftest.$ac_ext <<_ACEOF
31680 /* confdefs.h.  */
31681 _ACEOF
31682 cat confdefs.h >>conftest.$ac_ext
31683 cat >>conftest.$ac_ext <<_ACEOF
31684 /* end confdefs.h.  */
31685 #if defined CRAY && ! defined CRAY2
31686 webecray
31687 #else
31688 wenotbecray
31689 #endif
31690
31691 _ACEOF
31692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31693   $EGREP "webecray" >/dev/null 2>&1; then
31694   ac_cv_os_cray=yes
31695 else
31696   ac_cv_os_cray=no
31697 fi
31698 rm -f conftest*
31699
31700 fi
31701 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31702 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31703 if test $ac_cv_os_cray = yes; then
31704   for ac_func in _getb67 GETB67 getb67; do
31705     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31709   echo $ECHO_N "(cached) $ECHO_C" >&6
31710 else
31711   cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h.  */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h.  */
31717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31719 #define $ac_func innocuous_$ac_func
31720
31721 /* System header to define __stub macros and hopefully few prototypes,
31722     which can conflict with char $ac_func (); below.
31723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724     <limits.h> exists even on freestanding compilers.  */
31725
31726 #ifdef __STDC__
31727 # include <limits.h>
31728 #else
31729 # include <assert.h>
31730 #endif
31731
31732 #undef $ac_func
31733
31734 /* Override any GCC internal prototype to avoid an error.
31735    Use char because int might match the return type of a GCC
31736    builtin and then its argument prototype would still apply.  */
31737 #ifdef __cplusplus
31738 extern "C"
31739 #endif
31740 char $ac_func ();
31741 /* The GNU C library defines this for functions which it implements
31742     to always fail with ENOSYS.  Some functions are actually named
31743     something starting with __ and the normal name is an alias.  */
31744 #if defined __stub_$ac_func || defined __stub___$ac_func
31745 choke me
31746 #endif
31747
31748 int
31749 main ()
31750 {
31751 return $ac_func ();
31752   ;
31753   return 0;
31754 }
31755 _ACEOF
31756 rm -f conftest.$ac_objext conftest$ac_exeext
31757 if { (ac_try="$ac_link"
31758 case "(($ac_try" in
31759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760   *) ac_try_echo=$ac_try;;
31761 esac
31762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763   (eval "$ac_link") 2>conftest.er1
31764   ac_status=$?
31765   grep -v '^ *+' conftest.er1 >conftest.err
31766   rm -f conftest.er1
31767   cat conftest.err >&5
31768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769   (exit $ac_status); } &&
31770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31771   { (case "(($ac_try" in
31772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773   *) ac_try_echo=$ac_try;;
31774 esac
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776   (eval "$ac_try") 2>&5
31777   ac_status=$?
31778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779   (exit $ac_status); }; } &&
31780          { ac_try='test -s conftest$ac_exeext'
31781   { (case "(($ac_try" in
31782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783   *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786   (eval "$ac_try") 2>&5
31787   ac_status=$?
31788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789   (exit $ac_status); }; }; then
31790   eval "$as_ac_var=yes"
31791 else
31792   echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31794
31795         eval "$as_ac_var=no"
31796 fi
31797
31798 rm -f core conftest.err conftest.$ac_objext \
31799       conftest$ac_exeext conftest.$ac_ext
31800 fi
31801 ac_res=`eval echo '${'$as_ac_var'}'`
31802                { echo "$as_me:$LINENO: result: $ac_res" >&5
31803 echo "${ECHO_T}$ac_res" >&6; }
31804 if test `eval echo '${'$as_ac_var'}'` = yes; then
31805
31806 cat >>confdefs.h <<_ACEOF
31807 #define CRAY_STACKSEG_END $ac_func
31808 _ACEOF
31809
31810     break
31811 fi
31812
31813   done
31814 fi
31815
31816 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31817 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31818 if test "${ac_cv_c_stack_direction+set}" = set; then
31819   echo $ECHO_N "(cached) $ECHO_C" >&6
31820 else
31821   if test "$cross_compiling" = yes; then
31822   ac_cv_c_stack_direction=0
31823 else
31824   cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h.  */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h.  */
31830 $ac_includes_default
31831 int
31832 find_stack_direction ()
31833 {
31834   static char *addr = 0;
31835   auto char dummy;
31836   if (addr == 0)
31837     {
31838       addr = &dummy;
31839       return find_stack_direction ();
31840     }
31841   else
31842     return (&dummy > addr) ? 1 : -1;
31843 }
31844
31845 int
31846 main ()
31847 {
31848   return find_stack_direction () < 0;
31849 }
31850 _ACEOF
31851 rm -f conftest$ac_exeext
31852 if { (ac_try="$ac_link"
31853 case "(($ac_try" in
31854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855   *) ac_try_echo=$ac_try;;
31856 esac
31857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858   (eval "$ac_link") 2>&5
31859   ac_status=$?
31860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31862   { (case "(($ac_try" in
31863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864   *) ac_try_echo=$ac_try;;
31865 esac
31866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31867   (eval "$ac_try") 2>&5
31868   ac_status=$?
31869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870   (exit $ac_status); }; }; then
31871   ac_cv_c_stack_direction=1
31872 else
31873   echo "$as_me: program exited with status $ac_status" >&5
31874 echo "$as_me: failed program was:" >&5
31875 sed 's/^/| /' conftest.$ac_ext >&5
31876
31877 ( exit $ac_status )
31878 ac_cv_c_stack_direction=-1
31879 fi
31880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31881 fi
31882
31883
31884 fi
31885 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31886 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31887
31888 cat >>confdefs.h <<_ACEOF
31889 #define STACK_DIRECTION $ac_cv_c_stack_direction
31890 _ACEOF
31891
31892
31893 fi
31894
31895 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31896 # -lseq on Dynix/PTX, -lgen on Unixware.
31897 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31898 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
31899 if test "${ac_cv_search_getmntent+set}" = set; then
31900   echo $ECHO_N "(cached) $ECHO_C" >&6
31901 else
31902   ac_func_search_save_LIBS=$LIBS
31903 cat >conftest.$ac_ext <<_ACEOF
31904 /* confdefs.h.  */
31905 _ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h.  */
31909
31910 /* Override any GCC internal prototype to avoid an error.
31911    Use char because int might match the return type of a GCC
31912    builtin and then its argument prototype would still apply.  */
31913 #ifdef __cplusplus
31914 extern "C"
31915 #endif
31916 char getmntent ();
31917 int
31918 main ()
31919 {
31920 return getmntent ();
31921   ;
31922   return 0;
31923 }
31924 _ACEOF
31925 for ac_lib in '' sun seq gen; do
31926   if test -z "$ac_lib"; then
31927     ac_res="none required"
31928   else
31929     ac_res=-l$ac_lib
31930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31931   fi
31932   rm -f conftest.$ac_objext conftest$ac_exeext
31933 if { (ac_try="$ac_link"
31934 case "(($ac_try" in
31935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31936   *) ac_try_echo=$ac_try;;
31937 esac
31938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31939   (eval "$ac_link") 2>conftest.er1
31940   ac_status=$?
31941   grep -v '^ *+' conftest.er1 >conftest.err
31942   rm -f conftest.er1
31943   cat conftest.err >&5
31944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945   (exit $ac_status); } &&
31946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31947   { (case "(($ac_try" in
31948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949   *) ac_try_echo=$ac_try;;
31950 esac
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952   (eval "$ac_try") 2>&5
31953   ac_status=$?
31954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955   (exit $ac_status); }; } &&
31956          { ac_try='test -s conftest$ac_exeext'
31957   { (case "(($ac_try" in
31958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959   *) ac_try_echo=$ac_try;;
31960 esac
31961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962   (eval "$ac_try") 2>&5
31963   ac_status=$?
31964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965   (exit $ac_status); }; }; then
31966   ac_cv_search_getmntent=$ac_res
31967 else
31968   echo "$as_me: failed program was:" >&5
31969 sed 's/^/| /' conftest.$ac_ext >&5
31970
31971
31972 fi
31973
31974 rm -f core conftest.err conftest.$ac_objext \
31975       conftest$ac_exeext
31976   if test "${ac_cv_search_getmntent+set}" = set; then
31977   break
31978 fi
31979 done
31980 if test "${ac_cv_search_getmntent+set}" = set; then
31981   :
31982 else
31983   ac_cv_search_getmntent=no
31984 fi
31985 rm conftest.$ac_ext
31986 LIBS=$ac_func_search_save_LIBS
31987 fi
31988 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
31989 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
31990 ac_res=$ac_cv_search_getmntent
31991 if test "$ac_res" != no; then
31992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31993
31994 fi
31995
31996
31997 for ac_func in getmntent
31998 do
31999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32003   echo $ECHO_N "(cached) $ECHO_C" >&6
32004 else
32005   cat >conftest.$ac_ext <<_ACEOF
32006 /* confdefs.h.  */
32007 _ACEOF
32008 cat confdefs.h >>conftest.$ac_ext
32009 cat >>conftest.$ac_ext <<_ACEOF
32010 /* end confdefs.h.  */
32011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32013 #define $ac_func innocuous_$ac_func
32014
32015 /* System header to define __stub macros and hopefully few prototypes,
32016     which can conflict with char $ac_func (); below.
32017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32018     <limits.h> exists even on freestanding compilers.  */
32019
32020 #ifdef __STDC__
32021 # include <limits.h>
32022 #else
32023 # include <assert.h>
32024 #endif
32025
32026 #undef $ac_func
32027
32028 /* Override any GCC internal prototype to avoid an error.
32029    Use char because int might match the return type of a GCC
32030    builtin and then its argument prototype would still apply.  */
32031 #ifdef __cplusplus
32032 extern "C"
32033 #endif
32034 char $ac_func ();
32035 /* The GNU C library defines this for functions which it implements
32036     to always fail with ENOSYS.  Some functions are actually named
32037     something starting with __ and the normal name is an alias.  */
32038 #if defined __stub_$ac_func || defined __stub___$ac_func
32039 choke me
32040 #endif
32041
32042 int
32043 main ()
32044 {
32045 return $ac_func ();
32046   ;
32047   return 0;
32048 }
32049 _ACEOF
32050 rm -f conftest.$ac_objext conftest$ac_exeext
32051 if { (ac_try="$ac_link"
32052 case "(($ac_try" in
32053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054   *) ac_try_echo=$ac_try;;
32055 esac
32056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057   (eval "$ac_link") 2>conftest.er1
32058   ac_status=$?
32059   grep -v '^ *+' conftest.er1 >conftest.err
32060   rm -f conftest.er1
32061   cat conftest.err >&5
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); } &&
32064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32065   { (case "(($ac_try" in
32066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067   *) ac_try_echo=$ac_try;;
32068 esac
32069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070   (eval "$ac_try") 2>&5
32071   ac_status=$?
32072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073   (exit $ac_status); }; } &&
32074          { ac_try='test -s conftest$ac_exeext'
32075   { (case "(($ac_try" in
32076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077   *) ac_try_echo=$ac_try;;
32078 esac
32079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080   (eval "$ac_try") 2>&5
32081   ac_status=$?
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); }; }; then
32084   eval "$as_ac_var=yes"
32085 else
32086   echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32088
32089         eval "$as_ac_var=no"
32090 fi
32091
32092 rm -f core conftest.err conftest.$ac_objext \
32093       conftest$ac_exeext conftest.$ac_ext
32094 fi
32095 ac_res=`eval echo '${'$as_ac_var'}'`
32096                { echo "$as_me:$LINENO: result: $ac_res" >&5
32097 echo "${ECHO_T}$ac_res" >&6; }
32098 if test `eval echo '${'$as_ac_var'}'` = yes; then
32099   cat >>confdefs.h <<_ACEOF
32100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32101 _ACEOF
32102
32103 fi
32104 done
32105
32106
32107 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32108 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32109 if test "${ac_cv_func_closedir_void+set}" = set; then
32110   echo $ECHO_N "(cached) $ECHO_C" >&6
32111 else
32112   if test "$cross_compiling" = yes; then
32113   ac_cv_func_closedir_void=yes
32114 else
32115   cat >conftest.$ac_ext <<_ACEOF
32116 /* confdefs.h.  */
32117 _ACEOF
32118 cat confdefs.h >>conftest.$ac_ext
32119 cat >>conftest.$ac_ext <<_ACEOF
32120 /* end confdefs.h.  */
32121 $ac_includes_default
32122 #include <$ac_header_dirent>
32123 #ifndef __cplusplus
32124 int closedir ();
32125 #endif
32126
32127 int
32128 main ()
32129 {
32130 return closedir (opendir (".")) != 0;
32131   ;
32132   return 0;
32133 }
32134 _ACEOF
32135 rm -f conftest$ac_exeext
32136 if { (ac_try="$ac_link"
32137 case "(($ac_try" in
32138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32139   *) ac_try_echo=$ac_try;;
32140 esac
32141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32142   (eval "$ac_link") 2>&5
32143   ac_status=$?
32144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32146   { (case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_try") 2>&5
32152   ac_status=$?
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); }; }; then
32155   ac_cv_func_closedir_void=no
32156 else
32157   echo "$as_me: program exited with status $ac_status" >&5
32158 echo "$as_me: failed program was:" >&5
32159 sed 's/^/| /' conftest.$ac_ext >&5
32160
32161 ( exit $ac_status )
32162 ac_cv_func_closedir_void=yes
32163 fi
32164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32165 fi
32166
32167
32168 fi
32169 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32170 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32171 if test $ac_cv_func_closedir_void = yes; then
32172
32173 cat >>confdefs.h <<\_ACEOF
32174 #define CLOSEDIR_VOID 1
32175 _ACEOF
32176
32177 fi
32178
32179 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32180 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32181 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32182   echo $ECHO_N "(cached) $ECHO_C" >&6
32183 else
32184   if test "$cross_compiling" = yes; then
32185   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32186 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32187    { (exit 1); exit 1; }; }
32188 else
32189   cat >conftest.$ac_ext <<_ACEOF
32190 /* confdefs.h.  */
32191 _ACEOF
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h.  */
32195 $ac_includes_default
32196 int
32197 main ()
32198 {
32199 /* If this system has a BSD-style setpgrp which takes arguments,
32200   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32201   exit successfully. */
32202   return setpgrp (1,1) != -1;
32203   ;
32204   return 0;
32205 }
32206 _ACEOF
32207 rm -f conftest$ac_exeext
32208 if { (ac_try="$ac_link"
32209 case "(($ac_try" in
32210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211   *) ac_try_echo=$ac_try;;
32212 esac
32213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214   (eval "$ac_link") 2>&5
32215   ac_status=$?
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32218   { (case "(($ac_try" in
32219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220   *) ac_try_echo=$ac_try;;
32221 esac
32222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223   (eval "$ac_try") 2>&5
32224   ac_status=$?
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); }; }; then
32227   ac_cv_func_setpgrp_void=no
32228 else
32229   echo "$as_me: program exited with status $ac_status" >&5
32230 echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32232
32233 ( exit $ac_status )
32234 ac_cv_func_setpgrp_void=yes
32235 fi
32236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32237 fi
32238
32239
32240 fi
32241 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32242 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32243 if test $ac_cv_func_setpgrp_void = yes; then
32244
32245 cat >>confdefs.h <<\_ACEOF
32246 #define SETPGRP_VOID 1
32247 _ACEOF
32248
32249 fi
32250                       # AC_FUNC_FNMATCH    dnl use local version
32251
32252
32253 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32254 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32255 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32256   echo $ECHO_N "(cached) $ECHO_C" >&6
32257 else
32258   ac_check_lib_save_LIBS=$LIBS
32259 LIBS="-lintl  $LIBS"
32260 cat >conftest.$ac_ext <<_ACEOF
32261 /* confdefs.h.  */
32262 _ACEOF
32263 cat confdefs.h >>conftest.$ac_ext
32264 cat >>conftest.$ac_ext <<_ACEOF
32265 /* end confdefs.h.  */
32266
32267 /* Override any GCC internal prototype to avoid an error.
32268    Use char because int might match the return type of a GCC
32269    builtin and then its argument prototype would still apply.  */
32270 #ifdef __cplusplus
32271 extern "C"
32272 #endif
32273 char gettext ();
32274 int
32275 main ()
32276 {
32277 return gettext ();
32278   ;
32279   return 0;
32280 }
32281 _ACEOF
32282 rm -f conftest.$ac_objext conftest$ac_exeext
32283 if { (ac_try="$ac_link"
32284 case "(($ac_try" in
32285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286   *) ac_try_echo=$ac_try;;
32287 esac
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289   (eval "$ac_link") 2>conftest.er1
32290   ac_status=$?
32291   grep -v '^ *+' conftest.er1 >conftest.err
32292   rm -f conftest.er1
32293   cat conftest.err >&5
32294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295   (exit $ac_status); } &&
32296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32297   { (case "(($ac_try" in
32298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32299   *) ac_try_echo=$ac_try;;
32300 esac
32301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32302   (eval "$ac_try") 2>&5
32303   ac_status=$?
32304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305   (exit $ac_status); }; } &&
32306          { ac_try='test -s conftest$ac_exeext'
32307   { (case "(($ac_try" in
32308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309   *) ac_try_echo=$ac_try;;
32310 esac
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312   (eval "$ac_try") 2>&5
32313   ac_status=$?
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); }; }; then
32316   ac_cv_lib_intl_gettext=yes
32317 else
32318   echo "$as_me: failed program was:" >&5
32319 sed 's/^/| /' conftest.$ac_ext >&5
32320
32321         ac_cv_lib_intl_gettext=no
32322 fi
32323
32324 rm -f core conftest.err conftest.$ac_objext \
32325       conftest$ac_exeext conftest.$ac_ext
32326 LIBS=$ac_check_lib_save_LIBS
32327 fi
32328 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32329 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32330 if test $ac_cv_lib_intl_gettext = yes; then
32331   LIBS="$LIBS -lintl"
32332 fi
32333
32334
32335
32336
32337 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32338 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32339 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32340   echo $ECHO_N "(cached) $ECHO_C" >&6
32341 else
32342   ac_check_lib_save_LIBS=$LIBS
32343 LIBS="-lsun  $LIBS"
32344 cat >conftest.$ac_ext <<_ACEOF
32345 /* confdefs.h.  */
32346 _ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h.  */
32350
32351 /* Override any GCC internal prototype to avoid an error.
32352    Use char because int might match the return type of a GCC
32353    builtin and then its argument prototype would still apply.  */
32354 #ifdef __cplusplus
32355 extern "C"
32356 #endif
32357 char getpwnam ();
32358 int
32359 main ()
32360 {
32361 return getpwnam ();
32362   ;
32363   return 0;
32364 }
32365 _ACEOF
32366 rm -f conftest.$ac_objext conftest$ac_exeext
32367 if { (ac_try="$ac_link"
32368 case "(($ac_try" in
32369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370   *) ac_try_echo=$ac_try;;
32371 esac
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373   (eval "$ac_link") 2>conftest.er1
32374   ac_status=$?
32375   grep -v '^ *+' conftest.er1 >conftest.err
32376   rm -f conftest.er1
32377   cat conftest.err >&5
32378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379   (exit $ac_status); } &&
32380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32381   { (case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386   (eval "$ac_try") 2>&5
32387   ac_status=$?
32388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389   (exit $ac_status); }; } &&
32390          { ac_try='test -s conftest$ac_exeext'
32391   { (case "(($ac_try" in
32392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393   *) ac_try_echo=$ac_try;;
32394 esac
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396   (eval "$ac_try") 2>&5
32397   ac_status=$?
32398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399   (exit $ac_status); }; }; then
32400   ac_cv_lib_sun_getpwnam=yes
32401 else
32402   echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32404
32405         ac_cv_lib_sun_getpwnam=no
32406 fi
32407
32408 rm -f core conftest.err conftest.$ac_objext \
32409       conftest$ac_exeext conftest.$ac_ext
32410 LIBS=$ac_check_lib_save_LIBS
32411 fi
32412 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32413 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32414 if test $ac_cv_lib_sun_getpwnam = yes; then
32415   cat >>confdefs.h <<_ACEOF
32416 #define HAVE_LIBSUN 1
32417 _ACEOF
32418
32419   LIBS="-lsun $LIBS"
32420
32421 fi
32422
32423
32424
32425 for ac_header in zlib.h
32426 do
32427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32429   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32432   echo $ECHO_N "(cached) $ECHO_C" >&6
32433 fi
32434 ac_res=`eval echo '${'$as_ac_Header'}'`
32435                { echo "$as_me:$LINENO: result: $ac_res" >&5
32436 echo "${ECHO_T}$ac_res" >&6; }
32437 else
32438   # Is the header compilable?
32439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32441 cat >conftest.$ac_ext <<_ACEOF
32442 /* confdefs.h.  */
32443 _ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h.  */
32447 $ac_includes_default
32448 #include <$ac_header>
32449 _ACEOF
32450 rm -f conftest.$ac_objext
32451 if { (ac_try="$ac_compile"
32452 case "(($ac_try" in
32453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454   *) ac_try_echo=$ac_try;;
32455 esac
32456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457   (eval "$ac_compile") 2>conftest.er1
32458   ac_status=$?
32459   grep -v '^ *+' conftest.er1 >conftest.err
32460   rm -f conftest.er1
32461   cat conftest.err >&5
32462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463   (exit $ac_status); } &&
32464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32465   { (case "(($ac_try" in
32466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32467   *) ac_try_echo=$ac_try;;
32468 esac
32469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32470   (eval "$ac_try") 2>&5
32471   ac_status=$?
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); }; } &&
32474          { ac_try='test -s conftest.$ac_objext'
32475   { (case "(($ac_try" in
32476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32477   *) ac_try_echo=$ac_try;;
32478 esac
32479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32480   (eval "$ac_try") 2>&5
32481   ac_status=$?
32482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483   (exit $ac_status); }; }; then
32484   ac_header_compiler=yes
32485 else
32486   echo "$as_me: failed program was:" >&5
32487 sed 's/^/| /' conftest.$ac_ext >&5
32488
32489         ac_header_compiler=no
32490 fi
32491
32492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32494 echo "${ECHO_T}$ac_header_compiler" >&6; }
32495
32496 # Is the header present?
32497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32499 cat >conftest.$ac_ext <<_ACEOF
32500 /* confdefs.h.  */
32501 _ACEOF
32502 cat confdefs.h >>conftest.$ac_ext
32503 cat >>conftest.$ac_ext <<_ACEOF
32504 /* end confdefs.h.  */
32505 #include <$ac_header>
32506 _ACEOF
32507 if { (ac_try="$ac_cpp conftest.$ac_ext"
32508 case "(($ac_try" in
32509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510   *) ac_try_echo=$ac_try;;
32511 esac
32512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32514   ac_status=$?
32515   grep -v '^ *+' conftest.er1 >conftest.err
32516   rm -f conftest.er1
32517   cat conftest.err >&5
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); } >/dev/null; then
32520   if test -s conftest.err; then
32521     ac_cpp_err=$ac_c_preproc_warn_flag
32522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32523   else
32524     ac_cpp_err=
32525   fi
32526 else
32527   ac_cpp_err=yes
32528 fi
32529 if test -z "$ac_cpp_err"; then
32530   ac_header_preproc=yes
32531 else
32532   echo "$as_me: failed program was:" >&5
32533 sed 's/^/| /' conftest.$ac_ext >&5
32534
32535   ac_header_preproc=no
32536 fi
32537
32538 rm -f conftest.err conftest.$ac_ext
32539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32540 echo "${ECHO_T}$ac_header_preproc" >&6; }
32541
32542 # So?  What about this header?
32543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32544   yes:no: )
32545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32549     ac_header_preproc=yes
32550     ;;
32551   no:yes:* )
32552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32564
32565     ;;
32566 esac
32567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32570   echo $ECHO_N "(cached) $ECHO_C" >&6
32571 else
32572   eval "$as_ac_Header=\$ac_header_preproc"
32573 fi
32574 ac_res=`eval echo '${'$as_ac_Header'}'`
32575                { echo "$as_me:$LINENO: result: $ac_res" >&5
32576 echo "${ECHO_T}$ac_res" >&6; }
32577
32578 fi
32579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32580   cat >>confdefs.h <<_ACEOF
32581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32582 _ACEOF
32583
32584 fi
32585
32586 done
32587
32588 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32589 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32590 if test "${ac_cv_lib_z_deflate+set}" = set; then
32591   echo $ECHO_N "(cached) $ECHO_C" >&6
32592 else
32593   ac_check_lib_save_LIBS=$LIBS
32594 LIBS="-lz  $LIBS"
32595 cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601
32602 /* Override any GCC internal prototype to avoid an error.
32603    Use char because int might match the return type of a GCC
32604    builtin and then its argument prototype would still apply.  */
32605 #ifdef __cplusplus
32606 extern "C"
32607 #endif
32608 char deflate ();
32609 int
32610 main ()
32611 {
32612 return deflate ();
32613   ;
32614   return 0;
32615 }
32616 _ACEOF
32617 rm -f conftest.$ac_objext conftest$ac_exeext
32618 if { (ac_try="$ac_link"
32619 case "(($ac_try" in
32620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32621   *) ac_try_echo=$ac_try;;
32622 esac
32623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32624   (eval "$ac_link") 2>conftest.er1
32625   ac_status=$?
32626   grep -v '^ *+' conftest.er1 >conftest.err
32627   rm -f conftest.er1
32628   cat conftest.err >&5
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); } &&
32631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32632   { (case "(($ac_try" in
32633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634   *) ac_try_echo=$ac_try;;
32635 esac
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637   (eval "$ac_try") 2>&5
32638   ac_status=$?
32639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640   (exit $ac_status); }; } &&
32641          { ac_try='test -s conftest$ac_exeext'
32642   { (case "(($ac_try" in
32643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644   *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647   (eval "$ac_try") 2>&5
32648   ac_status=$?
32649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650   (exit $ac_status); }; }; then
32651   ac_cv_lib_z_deflate=yes
32652 else
32653   echo "$as_me: failed program was:" >&5
32654 sed 's/^/| /' conftest.$ac_ext >&5
32655
32656         ac_cv_lib_z_deflate=no
32657 fi
32658
32659 rm -f core conftest.err conftest.$ac_objext \
32660       conftest$ac_exeext conftest.$ac_ext
32661 LIBS=$ac_check_lib_save_LIBS
32662 fi
32663 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
32664 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
32665 if test $ac_cv_lib_z_deflate = yes; then
32666   FDLIBS="-lz"
32667 fi
32668
32669 have_zlib=no
32670 if test x$FDLIBS = x-lz; then
32671   cat >>confdefs.h <<\_ACEOF
32672 #define HAVE_LIBZ 1
32673 _ACEOF
32674
32675   have_zlib=yes
32676 fi
32677
32678 #
32679 # Check for ACL libraries
32680 #
32681 have_acl=no
32682 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32683   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32684 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32685 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32686   echo $ECHO_N "(cached) $ECHO_C" >&6
32687 fi
32688 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32689 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32690 else
32691   # Is the header compilable?
32692 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32693 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32694 cat >conftest.$ac_ext <<_ACEOF
32695 /* confdefs.h.  */
32696 _ACEOF
32697 cat confdefs.h >>conftest.$ac_ext
32698 cat >>conftest.$ac_ext <<_ACEOF
32699 /* end confdefs.h.  */
32700 $ac_includes_default
32701 #include <sys/acl.h>
32702 _ACEOF
32703 rm -f conftest.$ac_objext
32704 if { (ac_try="$ac_compile"
32705 case "(($ac_try" in
32706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707   *) ac_try_echo=$ac_try;;
32708 esac
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710   (eval "$ac_compile") 2>conftest.er1
32711   ac_status=$?
32712   grep -v '^ *+' conftest.er1 >conftest.err
32713   rm -f conftest.er1
32714   cat conftest.err >&5
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); } &&
32717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32718   { (case "(($ac_try" in
32719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720   *) ac_try_echo=$ac_try;;
32721 esac
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723   (eval "$ac_try") 2>&5
32724   ac_status=$?
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); }; } &&
32727          { ac_try='test -s conftest.$ac_objext'
32728   { (case "(($ac_try" in
32729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730   *) ac_try_echo=$ac_try;;
32731 esac
32732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733   (eval "$ac_try") 2>&5
32734   ac_status=$?
32735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736   (exit $ac_status); }; }; then
32737   ac_header_compiler=yes
32738 else
32739   echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32741
32742         ac_header_compiler=no
32743 fi
32744
32745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32747 echo "${ECHO_T}$ac_header_compiler" >&6; }
32748
32749 # Is the header present?
32750 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32751 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32752 cat >conftest.$ac_ext <<_ACEOF
32753 /* confdefs.h.  */
32754 _ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h.  */
32758 #include <sys/acl.h>
32759 _ACEOF
32760 if { (ac_try="$ac_cpp conftest.$ac_ext"
32761 case "(($ac_try" in
32762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763   *) ac_try_echo=$ac_try;;
32764 esac
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32767   ac_status=$?
32768   grep -v '^ *+' conftest.er1 >conftest.err
32769   rm -f conftest.er1
32770   cat conftest.err >&5
32771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772   (exit $ac_status); } >/dev/null; then
32773   if test -s conftest.err; then
32774     ac_cpp_err=$ac_c_preproc_warn_flag
32775     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32776   else
32777     ac_cpp_err=
32778   fi
32779 else
32780   ac_cpp_err=yes
32781 fi
32782 if test -z "$ac_cpp_err"; then
32783   ac_header_preproc=yes
32784 else
32785   echo "$as_me: failed program was:" >&5
32786 sed 's/^/| /' conftest.$ac_ext >&5
32787
32788   ac_header_preproc=no
32789 fi
32790
32791 rm -f conftest.err conftest.$ac_ext
32792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32793 echo "${ECHO_T}$ac_header_preproc" >&6; }
32794
32795 # So?  What about this header?
32796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32797   yes:no: )
32798     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32799 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32800     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
32801 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
32802     ac_header_preproc=yes
32803     ;;
32804   no:yes:* )
32805     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
32806 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
32807     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
32808 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
32809     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
32810 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
32811     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
32812 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32813     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
32814 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
32815     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
32816 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
32817
32818     ;;
32819 esac
32820 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32821 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32822 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   ac_cv_header_sys_acl_h=$ac_header_preproc
32826 fi
32827 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32828 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32829
32830 fi
32831
32832
32833 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
32834 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
32835 if test "${ac_cv_func_acl_get_file+set}" = set; then
32836   echo $ECHO_N "(cached) $ECHO_C" >&6
32837 else
32838   cat >conftest.$ac_ext <<_ACEOF
32839 /* confdefs.h.  */
32840 _ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h.  */
32844 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
32845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32846 #define acl_get_file innocuous_acl_get_file
32847
32848 /* System header to define __stub macros and hopefully few prototypes,
32849     which can conflict with char acl_get_file (); below.
32850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32851     <limits.h> exists even on freestanding compilers.  */
32852
32853 #ifdef __STDC__
32854 # include <limits.h>
32855 #else
32856 # include <assert.h>
32857 #endif
32858
32859 #undef acl_get_file
32860
32861 /* Override any GCC internal prototype to avoid an error.
32862    Use char because int might match the return type of a GCC
32863    builtin and then its argument prototype would still apply.  */
32864 #ifdef __cplusplus
32865 extern "C"
32866 #endif
32867 char acl_get_file ();
32868 /* The GNU C library defines this for functions which it implements
32869     to always fail with ENOSYS.  Some functions are actually named
32870     something starting with __ and the normal name is an alias.  */
32871 #if defined __stub_acl_get_file || defined __stub___acl_get_file
32872 choke me
32873 #endif
32874
32875 int
32876 main ()
32877 {
32878 return acl_get_file ();
32879   ;
32880   return 0;
32881 }
32882 _ACEOF
32883 rm -f conftest.$ac_objext conftest$ac_exeext
32884 if { (ac_try="$ac_link"
32885 case "(($ac_try" in
32886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887   *) ac_try_echo=$ac_try;;
32888 esac
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890   (eval "$ac_link") 2>conftest.er1
32891   ac_status=$?
32892   grep -v '^ *+' conftest.er1 >conftest.err
32893   rm -f conftest.er1
32894   cat conftest.err >&5
32895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896   (exit $ac_status); } &&
32897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32898   { (case "(($ac_try" in
32899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900   *) ac_try_echo=$ac_try;;
32901 esac
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903   (eval "$ac_try") 2>&5
32904   ac_status=$?
32905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906   (exit $ac_status); }; } &&
32907          { ac_try='test -s conftest$ac_exeext'
32908   { (case "(($ac_try" in
32909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32910   *) ac_try_echo=$ac_try;;
32911 esac
32912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32913   (eval "$ac_try") 2>&5
32914   ac_status=$?
32915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32916   (exit $ac_status); }; }; then
32917   ac_cv_func_acl_get_file=yes
32918 else
32919   echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32921
32922         ac_cv_func_acl_get_file=no
32923 fi
32924
32925 rm -f core conftest.err conftest.$ac_objext \
32926       conftest$ac_exeext conftest.$ac_ext
32927 fi
32928 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
32929 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
32930 if test $ac_cv_func_acl_get_file = yes; then
32931   have_acl=yes
32932 else
32933   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
32934 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
32935 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
32936   echo $ECHO_N "(cached) $ECHO_C" >&6
32937 else
32938   ac_check_lib_save_LIBS=$LIBS
32939 LIBS="-lacl  $LIBS"
32940 cat >conftest.$ac_ext <<_ACEOF
32941 /* confdefs.h.  */
32942 _ACEOF
32943 cat confdefs.h >>conftest.$ac_ext
32944 cat >>conftest.$ac_ext <<_ACEOF
32945 /* end confdefs.h.  */
32946
32947 /* Override any GCC internal prototype to avoid an error.
32948    Use char because int might match the return type of a GCC
32949    builtin and then its argument prototype would still apply.  */
32950 #ifdef __cplusplus
32951 extern "C"
32952 #endif
32953 char acl_get_file ();
32954 int
32955 main ()
32956 {
32957 return acl_get_file ();
32958   ;
32959   return 0;
32960 }
32961 _ACEOF
32962 rm -f conftest.$ac_objext conftest$ac_exeext
32963 if { (ac_try="$ac_link"
32964 case "(($ac_try" in
32965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966   *) ac_try_echo=$ac_try;;
32967 esac
32968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969   (eval "$ac_link") 2>conftest.er1
32970   ac_status=$?
32971   grep -v '^ *+' conftest.er1 >conftest.err
32972   rm -f conftest.er1
32973   cat conftest.err >&5
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); } &&
32976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32977   { (case "(($ac_try" in
32978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32979   *) ac_try_echo=$ac_try;;
32980 esac
32981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32982   (eval "$ac_try") 2>&5
32983   ac_status=$?
32984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985   (exit $ac_status); }; } &&
32986          { ac_try='test -s conftest$ac_exeext'
32987   { (case "(($ac_try" in
32988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32989   *) ac_try_echo=$ac_try;;
32990 esac
32991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32992   (eval "$ac_try") 2>&5
32993   ac_status=$?
32994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995   (exit $ac_status); }; }; then
32996   ac_cv_lib_acl_acl_get_file=yes
32997 else
32998   echo "$as_me: failed program was:" >&5
32999 sed 's/^/| /' conftest.$ac_ext >&5
33000
33001         ac_cv_lib_acl_acl_get_file=no
33002 fi
33003
33004 rm -f core conftest.err conftest.$ac_objext \
33005       conftest$ac_exeext conftest.$ac_ext
33006 LIBS=$ac_check_lib_save_LIBS
33007 fi
33008 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33009 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33010 if test $ac_cv_lib_acl_acl_get_file = yes; then
33011   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33012 else
33013   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33014 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33015 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33016   echo $ECHO_N "(cached) $ECHO_C" >&6
33017 else
33018   ac_check_lib_save_LIBS=$LIBS
33019 LIBS="-lsec  $LIBS"
33020 cat >conftest.$ac_ext <<_ACEOF
33021 /* confdefs.h.  */
33022 _ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h.  */
33026
33027 /* Override any GCC internal prototype to avoid an error.
33028    Use char because int might match the return type of a GCC
33029    builtin and then its argument prototype would still apply.  */
33030 #ifdef __cplusplus
33031 extern "C"
33032 #endif
33033 char acltotext ();
33034 int
33035 main ()
33036 {
33037 return acltotext ();
33038   ;
33039   return 0;
33040 }
33041 _ACEOF
33042 rm -f conftest.$ac_objext conftest$ac_exeext
33043 if { (ac_try="$ac_link"
33044 case "(($ac_try" in
33045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046   *) ac_try_echo=$ac_try;;
33047 esac
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049   (eval "$ac_link") 2>conftest.er1
33050   ac_status=$?
33051   grep -v '^ *+' conftest.er1 >conftest.err
33052   rm -f conftest.er1
33053   cat conftest.err >&5
33054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055   (exit $ac_status); } &&
33056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33057   { (case "(($ac_try" in
33058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059   *) ac_try_echo=$ac_try;;
33060 esac
33061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062   (eval "$ac_try") 2>&5
33063   ac_status=$?
33064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065   (exit $ac_status); }; } &&
33066          { ac_try='test -s conftest$ac_exeext'
33067   { (case "(($ac_try" in
33068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069   *) ac_try_echo=$ac_try;;
33070 esac
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072   (eval "$ac_try") 2>&5
33073   ac_status=$?
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); }; }; then
33076   ac_cv_lib_sec_acltotext=yes
33077 else
33078   echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33080
33081         ac_cv_lib_sec_acltotext=no
33082 fi
33083
33084 rm -f core conftest.err conftest.$ac_objext \
33085       conftest$ac_exeext conftest.$ac_ext
33086 LIBS=$ac_check_lib_save_LIBS
33087 fi
33088 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33089 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33090 if test $ac_cv_lib_sec_acltotext = yes; then
33091   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33092 fi
33093
33094
33095 fi
33096
33097
33098 fi
33099
33100 if test $have_acl = yes; then
33101    cat >>confdefs.h <<\_ACEOF
33102 #define HAVE_ACL 1
33103 _ACEOF
33104
33105 fi
33106
33107 PTHREAD_LIB=""
33108 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33109 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33110 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33111   echo $ECHO_N "(cached) $ECHO_C" >&6
33112 else
33113   ac_check_lib_save_LIBS=$LIBS
33114 LIBS="-lpthread  $LIBS"
33115 cat >conftest.$ac_ext <<_ACEOF
33116 /* confdefs.h.  */
33117 _ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h.  */
33121
33122 /* Override any GCC internal prototype to avoid an error.
33123    Use char because int might match the return type of a GCC
33124    builtin and then its argument prototype would still apply.  */
33125 #ifdef __cplusplus
33126 extern "C"
33127 #endif
33128 char pthread_create ();
33129 int
33130 main ()
33131 {
33132 return pthread_create ();
33133   ;
33134   return 0;
33135 }
33136 _ACEOF
33137 rm -f conftest.$ac_objext conftest$ac_exeext
33138 if { (ac_try="$ac_link"
33139 case "(($ac_try" in
33140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141   *) ac_try_echo=$ac_try;;
33142 esac
33143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144   (eval "$ac_link") 2>conftest.er1
33145   ac_status=$?
33146   grep -v '^ *+' conftest.er1 >conftest.err
33147   rm -f conftest.er1
33148   cat conftest.err >&5
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); } &&
33151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33152   { (case "(($ac_try" in
33153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154   *) ac_try_echo=$ac_try;;
33155 esac
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157   (eval "$ac_try") 2>&5
33158   ac_status=$?
33159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160   (exit $ac_status); }; } &&
33161          { ac_try='test -s conftest$ac_exeext'
33162   { (case "(($ac_try" in
33163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164   *) ac_try_echo=$ac_try;;
33165 esac
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167   (eval "$ac_try") 2>&5
33168   ac_status=$?
33169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170   (exit $ac_status); }; }; then
33171   ac_cv_lib_pthread_pthread_create=yes
33172 else
33173   echo "$as_me: failed program was:" >&5
33174 sed 's/^/| /' conftest.$ac_ext >&5
33175
33176         ac_cv_lib_pthread_pthread_create=no
33177 fi
33178
33179 rm -f core conftest.err conftest.$ac_objext \
33180       conftest$ac_exeext conftest.$ac_ext
33181 LIBS=$ac_check_lib_save_LIBS
33182 fi
33183 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33184 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33185 if test $ac_cv_lib_pthread_pthread_create = yes; then
33186   PTHREAD_LIB="-lpthread"
33187 else
33188   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33189 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33190 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33191   echo $ECHO_N "(cached) $ECHO_C" >&6
33192 else
33193   ac_check_lib_save_LIBS=$LIBS
33194 LIBS="-lpthreads  $LIBS"
33195 cat >conftest.$ac_ext <<_ACEOF
33196 /* confdefs.h.  */
33197 _ACEOF
33198 cat confdefs.h >>conftest.$ac_ext
33199 cat >>conftest.$ac_ext <<_ACEOF
33200 /* end confdefs.h.  */
33201
33202 /* Override any GCC internal prototype to avoid an error.
33203    Use char because int might match the return type of a GCC
33204    builtin and then its argument prototype would still apply.  */
33205 #ifdef __cplusplus
33206 extern "C"
33207 #endif
33208 char pthread_create ();
33209 int
33210 main ()
33211 {
33212 return pthread_create ();
33213   ;
33214   return 0;
33215 }
33216 _ACEOF
33217 rm -f conftest.$ac_objext conftest$ac_exeext
33218 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
33225   ac_status=$?
33226   grep -v '^ *+' conftest.er1 >conftest.err
33227   rm -f conftest.er1
33228   cat conftest.err >&5
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); } &&
33231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33232   { (case "(($ac_try" in
33233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234   *) ac_try_echo=$ac_try;;
33235 esac
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237   (eval "$ac_try") 2>&5
33238   ac_status=$?
33239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); }; } &&
33241          { ac_try='test -s conftest$ac_exeext'
33242   { (case "(($ac_try" in
33243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33244   *) ac_try_echo=$ac_try;;
33245 esac
33246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33247   (eval "$ac_try") 2>&5
33248   ac_status=$?
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); }; }; then
33251   ac_cv_lib_pthreads_pthread_create=yes
33252 else
33253   echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33255
33256         ac_cv_lib_pthreads_pthread_create=no
33257 fi
33258
33259 rm -f core conftest.err conftest.$ac_objext \
33260       conftest$ac_exeext conftest.$ac_ext
33261 LIBS=$ac_check_lib_save_LIBS
33262 fi
33263 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33264 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33265 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33266   PTHREAD_LIB="-lpthreads"
33267 else
33268   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33269 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33270 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33271   echo $ECHO_N "(cached) $ECHO_C" >&6
33272 else
33273   ac_check_lib_save_LIBS=$LIBS
33274 LIBS="-lc_r  $LIBS"
33275 cat >conftest.$ac_ext <<_ACEOF
33276 /* confdefs.h.  */
33277 _ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h.  */
33281
33282 /* Override any GCC internal prototype to avoid an error.
33283    Use char because int might match the return type of a GCC
33284    builtin and then its argument prototype would still apply.  */
33285 #ifdef __cplusplus
33286 extern "C"
33287 #endif
33288 char pthread_create ();
33289 int
33290 main ()
33291 {
33292 return pthread_create ();
33293   ;
33294   return 0;
33295 }
33296 _ACEOF
33297 rm -f conftest.$ac_objext conftest$ac_exeext
33298 if { (ac_try="$ac_link"
33299 case "(($ac_try" in
33300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33301   *) ac_try_echo=$ac_try;;
33302 esac
33303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33304   (eval "$ac_link") 2>conftest.er1
33305   ac_status=$?
33306   grep -v '^ *+' conftest.er1 >conftest.err
33307   rm -f conftest.er1
33308   cat conftest.err >&5
33309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310   (exit $ac_status); } &&
33311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33312   { (case "(($ac_try" in
33313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33314   *) ac_try_echo=$ac_try;;
33315 esac
33316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33317   (eval "$ac_try") 2>&5
33318   ac_status=$?
33319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320   (exit $ac_status); }; } &&
33321          { ac_try='test -s conftest$ac_exeext'
33322   { (case "(($ac_try" in
33323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324   *) ac_try_echo=$ac_try;;
33325 esac
33326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33327   (eval "$ac_try") 2>&5
33328   ac_status=$?
33329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330   (exit $ac_status); }; }; then
33331   ac_cv_lib_c_r_pthread_create=yes
33332 else
33333   echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.$ac_ext >&5
33335
33336         ac_cv_lib_c_r_pthread_create=no
33337 fi
33338
33339 rm -f core conftest.err conftest.$ac_objext \
33340       conftest$ac_exeext conftest.$ac_ext
33341 LIBS=$ac_check_lib_save_LIBS
33342 fi
33343 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33344 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33345 if test $ac_cv_lib_c_r_pthread_create = yes; then
33346   PTHREAD_LIB="-lc_r"
33347 else
33348   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33349 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33350 if test "${ac_cv_func_pthread_create+set}" = set; then
33351   echo $ECHO_N "(cached) $ECHO_C" >&6
33352 else
33353   cat >conftest.$ac_ext <<_ACEOF
33354 /* confdefs.h.  */
33355 _ACEOF
33356 cat confdefs.h >>conftest.$ac_ext
33357 cat >>conftest.$ac_ext <<_ACEOF
33358 /* end confdefs.h.  */
33359 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33361 #define pthread_create innocuous_pthread_create
33362
33363 /* System header to define __stub macros and hopefully few prototypes,
33364     which can conflict with char pthread_create (); below.
33365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33366     <limits.h> exists even on freestanding compilers.  */
33367
33368 #ifdef __STDC__
33369 # include <limits.h>
33370 #else
33371 # include <assert.h>
33372 #endif
33373
33374 #undef pthread_create
33375
33376 /* Override any GCC internal prototype to avoid an error.
33377    Use char because int might match the return type of a GCC
33378    builtin and then its argument prototype would still apply.  */
33379 #ifdef __cplusplus
33380 extern "C"
33381 #endif
33382 char pthread_create ();
33383 /* The GNU C library defines this for functions which it implements
33384     to always fail with ENOSYS.  Some functions are actually named
33385     something starting with __ and the normal name is an alias.  */
33386 #if defined __stub_pthread_create || defined __stub___pthread_create
33387 choke me
33388 #endif
33389
33390 int
33391 main ()
33392 {
33393 return pthread_create ();
33394   ;
33395   return 0;
33396 }
33397 _ACEOF
33398 rm -f conftest.$ac_objext conftest$ac_exeext
33399 if { (ac_try="$ac_link"
33400 case "(($ac_try" in
33401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402   *) ac_try_echo=$ac_try;;
33403 esac
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405   (eval "$ac_link") 2>conftest.er1
33406   ac_status=$?
33407   grep -v '^ *+' conftest.er1 >conftest.err
33408   rm -f conftest.er1
33409   cat conftest.err >&5
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); } &&
33412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33413   { (case "(($ac_try" in
33414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33415   *) ac_try_echo=$ac_try;;
33416 esac
33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33418   (eval "$ac_try") 2>&5
33419   ac_status=$?
33420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421   (exit $ac_status); }; } &&
33422          { ac_try='test -s conftest$ac_exeext'
33423   { (case "(($ac_try" in
33424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425   *) ac_try_echo=$ac_try;;
33426 esac
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428   (eval "$ac_try") 2>&5
33429   ac_status=$?
33430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431   (exit $ac_status); }; }; then
33432   ac_cv_func_pthread_create=yes
33433 else
33434   echo "$as_me: failed program was:" >&5
33435 sed 's/^/| /' conftest.$ac_ext >&5
33436
33437         ac_cv_func_pthread_create=no
33438 fi
33439
33440 rm -f core conftest.err conftest.$ac_objext \
33441       conftest$ac_exeext conftest.$ac_ext
33442 fi
33443 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33444 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33445
33446
33447 fi
33448
33449
33450 fi
33451
33452
33453 fi
33454
33455
33456
33457 cat >>confdefs.h <<\_ACEOF
33458 #define FDLIBS 1
33459 _ACEOF
33460
33461
33462
33463 CFLAGS=${CFLAGS--O}
33464
33465 if test x$have_gcc = xyes ; then
33466    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33467    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33468 fi
33469 LDFLAGS=${LDFLAGS--O}
33470 DB_LIBS="${SQL_LFLAGS}"
33471 CPPFLAGS="$CPPFLAGS"
33472 CFLAGS="$CFLAGS"
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489 OBJLIST=
33490
33491
33492 lld="lld"
33493 llu="llu"
33494
33495 WCFLAGS=
33496 WLDFLAGS=
33497
33498 #
33499 # Finally we set appropriate distribution specific
33500 #  variables and defaults
33501 #
33502 # PFILES are platform specific files
33503 PFILES="platforms/Makefile"
33504 PSCMD="ps -e"
33505 WIN32=
33506 MACOSX=
33507 hostname=`uname -n | cut -d '.' -f 1`
33508 if test x${hostname} = x ; then
33509   hostname="localhost"
33510 fi
33511 case "$DISTNAME" in
33512 aix)
33513         DISTVER=`uname -r`
33514         PSCMD="ps -e -o pid,comm"
33515         PFILES="${PFILES} \
33516            platforms/aix/Makefile"
33517         TAPEDRIVE="/dev/rmt0.1"
33518   ;;
33519 alpha)
33520         DISTVER=`uname -r`
33521         PTHREAD_LIB="-lpthread -lexc"
33522         if test "${CC}" = "gcc" ; then
33523            lld="lld"
33524            llu="llu"
33525         else
33526            lld="ld"
33527            llu="lu"
33528         fi
33529         TAPEDRIVE="/dev/nrmt0"
33530   ;;
33531 bsdi)
33532         DISTVER=`uname -a |awk '{print $3}'`
33533         TAPEDRIVE="/dev/nrmt0"
33534         PTHREAD_LIB="-pthread"
33535         CFLAGS="${CFLAGS} -pthread"
33536         PSCMD="ps -ax -o pid,command"
33537         lld="qd"
33538         llu="qu"
33539         PFILES="${PFILES} \
33540             platforms/bsdi/Makefile \
33541             platforms/bsdi/bacula-fd \
33542             platforms/bsdi/bacula-sd \
33543             platforms/bsdi/bacula-dir"
33544         largefile_support="yes"
33545   ;;
33546 cygwin)
33547         DISTVER=`uname -a |awk '{print $3}'`
33548         TAPEDRIVE="/dev/nrst0"
33549         WIN32=win32
33550         WCFLAGS="-mwindows"
33551         WLDFLAGS="-mwindows"
33552   ;;
33553 darwin)
33554         DISTVER=`uname -r`
33555         TAPEDRIVE="/dev/nst0"
33556         PSCMD="ps -e -o pid,command"
33557         MACOSX=macosx
33558         PFILES="${PFILES} \
33559            platforms/darwin/Makefile"
33560   ;;
33561 debian)
33562         DISTVER=`cat /etc/debian_version`
33563         TAPEDRIVE="/dev/nrst0"
33564         PSCMD="ps -e -o pid,command"
33565   ;;
33566 freebsd)
33567         DISTVER=`uname -a |awk '{print $3}'`
33568         VER=`echo $DISTVER | cut -c 1`
33569         if test x$VER = x4 ; then
33570            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33571            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33572         fi
33573         lld="qd"
33574         llu="qu"
33575         TAPEDRIVE="/dev/nrsa0"
33576         PSCMD="ps -ax -o pid,command"
33577         PFILES="${PFILES} \
33578             platforms/freebsd/Makefile \
33579             platforms/freebsd/bacula-fd \
33580             platforms/freebsd/bacula-sd \
33581             platforms/freebsd/bacula-dir"
33582         largefile_support="yes"
33583   ;;
33584 hpux)
33585         PSCMD="UNIX95=1 ps -e -o pid,comm"
33586         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33587         DISTVER=`uname -r`
33588         TAPEDRIVE="/dev/rmt/0hnb"
33589         PTHREAD_LIB="-lpthread"
33590         cat >>confdefs.h <<\_ACEOF
33591 #define _INCLUDE_LONGLONG 1
33592 _ACEOF
33593
33594   ;;
33595 irix)
33596         DISTVER=`uname -r`
33597         TAPEDRIVE="/dev/rmt/0cbn"
33598         PSCMD="ps -e -o pid,comm"
33599         PFILES="${PFILES} \
33600             platforms/irix/Makefile \
33601             platforms/irix/bacula-fd \
33602             platforms/irix/bacula-sd \
33603             platforms/irix/bacula-dir"
33604   ;;
33605 netbsd)
33606         DISTVER=`uname -a |awk '{print $3}'`
33607         lld="qd"
33608         llu="qu"
33609         TAPEDRIVE="/dev/nrst0"
33610         PSCMD="ps -ax -o pid,command"
33611         PTHREAD_LIB="-pthread"
33612         CFLAGS="${CFLAGS} -pthread"
33613   ;;
33614 openbsd)
33615         DISTVER=`uname -a |awk '{print $3}'`
33616         lld="qd"
33617         llu="qu"
33618         TAPEDRIVE="/dev/nrst0"
33619         PSCMD="ps -ax -o pid,command"
33620         PTHREAD_LIB="-pthread"
33621         CFLAGS="${CFLAGS} -pthread"
33622         PFILES="${PFILES} \
33623             platforms/openbsd/Makefile \
33624             platforms/openbsd/bacula-fd \
33625             platforms/openbsd/bacula-sd \
33626             platforms/openbsd/bacula-dir"
33627   ;;
33628 redhat)
33629         if test -f /etc/whitebox-release ; then
33630            f=/etc/whitebox-release
33631         else
33632            f=/etc/redhat-release
33633         fi
33634         if test `cat $f | grep release |\
33635                    cut -f 3 -d ' '`x = "Enterprise"x ; then
33636            DISTVER="Enterprise "`cat $f | grep release |\
33637                     cut -f 6 -d ' '`
33638         else
33639             DISTVER=`cat /etc/redhat-release | grep release |\
33640                      cut -f 5 -d ' '`
33641         fi
33642         TAPEDRIVE="/dev/nst0"
33643         PSCMD="ps -e -o pid,command"
33644         PFILES="${PFILES} \
33645             platforms/redhat/Makefile \
33646             platforms/redhat/bacula-fd \
33647             platforms/redhat/bacula-sd \
33648             platforms/redhat/bacula-dir \
33649             platforms/redhat/bacula.spec \
33650             "
33651   ;;
33652 mandrake)
33653         DISTVER=`cat /etc/mandrake-release | grep release |\
33654            cut -f 5 -d ' '`
33655         TAPEDRIVE="/dev/nst0"
33656         PSCMD="ps -e -o pid,command"
33657         PFILES="${PFILES} \
33658             platforms/mandrake/Makefile \
33659             platforms/mandrake/bacula-fd \
33660             platforms/mandrake/bacula-sd \
33661             platforms/mandrake/bacula-dir \
33662             platforms/mandrake/bacula.spec \
33663             "
33664   ;;
33665 gentoo)
33666         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
33667         TAPEDRIVE="/dev/nst0"
33668         PSCMD="ps -e -o pid,command"
33669         PFILES="${PFILES} \
33670             platforms/gentoo/Makefile \
33671          platforms/gentoo/bacula-init \
33672             platforms/gentoo/bacula-fd \
33673             platforms/gentoo/bacula-sd \
33674             platforms/gentoo/bacula-dir"
33675   ;;
33676 slackware)
33677         DISTVER=`cat /etc/slackware-version`
33678         TAPEDRIVE="/dev/nst0"
33679         PSCMD="ps -e -o pid,command"
33680         PFILES="${PFILES} \
33681             platforms/slackware/Makefile \
33682             platforms/slackware/rc.bacula-fd \
33683             platforms/slackware/rc.bacula-sd \
33684             platforms/slackware/rc.bacula-dir\
33685             platforms/slackware/functions.bacula"
33686   ;;
33687 solaris)
33688         DISTVER=`uname -r`
33689         TAPEDRIVE="/dev/rmt/0cbn"
33690         PSCMD="ps -e -o pid,comm"
33691         PFILES="${PFILES} \
33692             platforms/solaris/Makefile \
33693             platforms/solaris/bacula-fd \
33694             platforms/solaris/bacula-sd \
33695             platforms/solaris/bacula-dir"
33696         if test x$DISTVER = x5.6 ; then
33697             cat >>confdefs.h <<\_ACEOF
33698 #define HAVE_OLD_SOCKOPT 1
33699 _ACEOF
33700
33701         fi
33702         LIBS="$LIBS -lresolv"
33703   ;;
33704 suse)
33705         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
33706             cut -f 3 -d ' '`
33707         TAPEDRIVE="/dev/nst0"
33708         PSCMD="ps -e -o pid,command"
33709         PFILES="${PFILES} \
33710             platforms/suse/Makefile \
33711             platforms/suse/bacula-fd \
33712             platforms/suse/bacula-sd \
33713             platforms/suse/bacula-dir \
33714             platforms/suse/bacula \
33715             platforms/suse/bacula.spec"
33716   ;;
33717 suse5)
33718         DISTNAME=suse
33719         DISTVER=5.x
33720         TAPEDRIVE="/dev/nst0"
33721         PSCMD="ps -e -o pid,command"
33722         PFILES="${PFILES} \
33723             platforms/suse/Makefile \
33724             platforms/suse/bacula-fd \
33725             platforms/suse/bacula-sd \
33726             platforms/suse/bacula-dir"
33727   ;;
33728 unknown)
33729         DISTVER=unknown
33730         TAPEDRIVE="/dev/nst0"
33731   ;;
33732 *)
33733   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
33734   ;;
33735 esac
33736
33737
33738
33739 LIBS="$PTHREAD_LIB $LIBS"
33740
33741 cat >>confdefs.h <<_ACEOF
33742 #define lld "$lld"
33743 _ACEOF
33744
33745 cat >>confdefs.h <<_ACEOF
33746 #define llu "$llu"
33747 _ACEOF
33748
33749
33750
33751
33752
33753
33754
33755
33756 MCOMMON=./autoconf/Make.common
33757
33758
33759 if test "x${subsysdir}" = "x${sbindir}" ; then
33760    echo " "
33761    echo " "
33762    echo "You have set both --sbindir and --with-subsys-dir"
33763    echo "  equal to: ${subsysdir} "
33764    echo "This is not permitted. Please reconfigure."
33765    echo " "
33766    echo "Aborting configuration ..."
33767    echo " "
33768    echo " "
33769    exit 1
33770 fi
33771
33772 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/gnome-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 src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-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/pygtk-console/Makefile src/tools/Makefile po/Makefile.in $PFILES"
33773
33774 ac_config_commands="$ac_config_commands default"
33775
33776 cat >confcache <<\_ACEOF
33777 # This file is a shell script that caches the results of configure
33778 # tests run on this system so they can be shared between configure
33779 # scripts and configure runs, see configure's option --config-cache.
33780 # It is not useful on other systems.  If it contains results you don't
33781 # want to keep, you may remove or edit it.
33782 #
33783 # config.status only pays attention to the cache file if you give it
33784 # the --recheck option to rerun configure.
33785 #
33786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33788 # following values.
33789
33790 _ACEOF
33791
33792 # The following way of writing the cache mishandles newlines in values,
33793 # but we know of no workaround that is simple, portable, and efficient.
33794 # So, we kill variables containing newlines.
33795 # Ultrix sh set writes to stderr and can't be redirected directly,
33796 # and sets the high bit in the cache file unless we assign to the vars.
33797 (
33798   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33799     eval ac_val=\$$ac_var
33800     case $ac_val in #(
33801     *${as_nl}*)
33802       case $ac_var in #(
33803       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33805       esac
33806       case $ac_var in #(
33807       _ | IFS | as_nl) ;; #(
33808       *) $as_unset $ac_var ;;
33809       esac ;;
33810     esac
33811   done
33812
33813   (set) 2>&1 |
33814     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33815     *${as_nl}ac_space=\ *)
33816       # `set' does not quote correctly, so add quotes (double-quote
33817       # substitution turns \\\\ into \\, and sed turns \\ into \).
33818       sed -n \
33819         "s/'/'\\\\''/g;
33820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33821       ;; #(
33822     *)
33823       # `set' quotes correctly as required by POSIX, so do not add quotes.
33824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33825       ;;
33826     esac |
33827     sort
33828 ) |
33829   sed '
33830      /^ac_cv_env_/b end
33831      t clear
33832      :clear
33833      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33834      t end
33835      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33836      :end' >>confcache
33837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33838   if test -w "$cache_file"; then
33839     test "x$cache_file" != "x/dev/null" &&
33840       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33841 echo "$as_me: updating cache $cache_file" >&6;}
33842     cat confcache >$cache_file
33843   else
33844     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33845 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33846   fi
33847 fi
33848 rm -f confcache
33849
33850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33851 # Let make expand exec_prefix.
33852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33853
33854 DEFS=-DHAVE_CONFIG_H
33855
33856 ac_libobjs=
33857 ac_ltlibobjs=
33858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33859   # 1. Remove the extension, and $U if already installed.
33860   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33861   ac_i=`echo "$ac_i" | sed "$ac_script"`
33862   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33863   #    will be set to the directory where LIBOBJS objects are built.
33864   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33865   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33866 done
33867 LIBOBJS=$ac_libobjs
33868
33869 LTLIBOBJS=$ac_ltlibobjs
33870
33871
33872
33873 : ${CONFIG_STATUS=./config.status}
33874 ac_clean_files_save=$ac_clean_files
33875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33876 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33877 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33878 cat >$CONFIG_STATUS <<_ACEOF
33879 #! $SHELL
33880 # Generated by $as_me.
33881 # Run this file to recreate the current configuration.
33882 # Compiler output produced by configure, useful for debugging
33883 # configure, is in config.log if it exists.
33884
33885 debug=false
33886 ac_cs_recheck=false
33887 ac_cs_silent=false
33888 SHELL=\${CONFIG_SHELL-$SHELL}
33889 _ACEOF
33890
33891 cat >>$CONFIG_STATUS <<\_ACEOF
33892 ## --------------------- ##
33893 ## M4sh Initialization.  ##
33894 ## --------------------- ##
33895
33896 # Be Bourne compatible
33897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33898   emulate sh
33899   NULLCMD=:
33900   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33901   # is contrary to our usage.  Disable this feature.
33902   alias -g '${1+"$@"}'='"$@"'
33903   setopt NO_GLOB_SUBST
33904 else
33905   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33906 fi
33907 BIN_SH=xpg4; export BIN_SH # for Tru64
33908 DUALCASE=1; export DUALCASE # for MKS sh
33909
33910
33911 # PATH needs CR
33912 # Avoid depending upon Character Ranges.
33913 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33914 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33915 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33916 as_cr_digits='0123456789'
33917 as_cr_alnum=$as_cr_Letters$as_cr_digits
33918
33919 # The user is always right.
33920 if test "${PATH_SEPARATOR+set}" != set; then
33921   echo "#! /bin/sh" >conf$$.sh
33922   echo  "exit 0"   >>conf$$.sh
33923   chmod +x conf$$.sh
33924   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33925     PATH_SEPARATOR=';'
33926   else
33927     PATH_SEPARATOR=:
33928   fi
33929   rm -f conf$$.sh
33930 fi
33931
33932 # Support unset when possible.
33933 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33934   as_unset=unset
33935 else
33936   as_unset=false
33937 fi
33938
33939
33940 # IFS
33941 # We need space, tab and new line, in precisely that order.  Quoting is
33942 # there to prevent editors from complaining about space-tab.
33943 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33944 # splitting by setting IFS to empty value.)
33945 as_nl='
33946 '
33947 IFS=" ""        $as_nl"
33948
33949 # Find who we are.  Look in the path if we contain no directory separator.
33950 case $0 in
33951   *[\\/]* ) as_myself=$0 ;;
33952   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33953 for as_dir in $PATH
33954 do
33955   IFS=$as_save_IFS
33956   test -z "$as_dir" && as_dir=.
33957   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33958 done
33959 IFS=$as_save_IFS
33960
33961      ;;
33962 esac
33963 # We did not find ourselves, most probably we were run as `sh COMMAND'
33964 # in which case we are not to be found in the path.
33965 if test "x$as_myself" = x; then
33966   as_myself=$0
33967 fi
33968 if test ! -f "$as_myself"; then
33969   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33970   { (exit 1); exit 1; }
33971 fi
33972
33973 # Work around bugs in pre-3.0 UWIN ksh.
33974 for as_var in ENV MAIL MAILPATH
33975 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33976 done
33977 PS1='$ '
33978 PS2='> '
33979 PS4='+ '
33980
33981 # NLS nuisances.
33982 for as_var in \
33983   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33984   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33985   LC_TELEPHONE LC_TIME
33986 do
33987   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33988     eval $as_var=C; export $as_var
33989   else
33990     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33991   fi
33992 done
33993
33994 # Required to use basename.
33995 if expr a : '\(a\)' >/dev/null 2>&1 &&
33996    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33997   as_expr=expr
33998 else
33999   as_expr=false
34000 fi
34001
34002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34003   as_basename=basename
34004 else
34005   as_basename=false
34006 fi
34007
34008
34009 # Name of the executable.
34010 as_me=`$as_basename -- "$0" ||
34011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34012          X"$0" : 'X\(//\)$' \| \
34013          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34014 echo X/"$0" |
34015     sed '/^.*\/\([^/][^/]*\)\/*$/{
34016             s//\1/
34017             q
34018           }
34019           /^X\/\(\/\/\)$/{
34020             s//\1/
34021             q
34022           }
34023           /^X\/\(\/\).*/{
34024             s//\1/
34025             q
34026           }
34027           s/.*/./; q'`
34028
34029 # CDPATH.
34030 $as_unset CDPATH
34031
34032
34033
34034   as_lineno_1=$LINENO
34035   as_lineno_2=$LINENO
34036   test "x$as_lineno_1" != "x$as_lineno_2" &&
34037   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34038
34039   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34040   # uniformly replaced by the line number.  The first 'sed' inserts a
34041   # line-number line after each line using $LINENO; the second 'sed'
34042   # does the real work.  The second script uses 'N' to pair each
34043   # line-number line with the line containing $LINENO, and appends
34044   # trailing '-' during substitution so that $LINENO is not a special
34045   # case at line end.
34046   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34047   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34048   # E. McMahon (1931-1989) for sed's syntax.  :-)
34049   sed -n '
34050     p
34051     /[$]LINENO/=
34052   ' <$as_myself |
34053     sed '
34054       s/[$]LINENO.*/&-/
34055       t lineno
34056       b
34057       :lineno
34058       N
34059       :loop
34060       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34061       t loop
34062       s/-\n.*//
34063     ' >$as_me.lineno &&
34064   chmod +x "$as_me.lineno" ||
34065     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34066    { (exit 1); exit 1; }; }
34067
34068   # Don't try to exec as it changes $[0], causing all sort of problems
34069   # (the dirname of $[0] is not the place where we might find the
34070   # original and so on.  Autoconf is especially sensitive to this).
34071   . "./$as_me.lineno"
34072   # Exit status is that of the last command.
34073   exit
34074 }
34075
34076
34077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34078   as_dirname=dirname
34079 else
34080   as_dirname=false
34081 fi
34082
34083 ECHO_C= ECHO_N= ECHO_T=
34084 case `echo -n x` in
34085 -n*)
34086   case `echo 'x\c'` in
34087   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34088   *)   ECHO_C='\c';;
34089   esac;;
34090 *)
34091   ECHO_N='-n';;
34092 esac
34093
34094 if expr a : '\(a\)' >/dev/null 2>&1 &&
34095    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34096   as_expr=expr
34097 else
34098   as_expr=false
34099 fi
34100
34101 rm -f conf$$ conf$$.exe conf$$.file
34102 if test -d conf$$.dir; then
34103   rm -f conf$$.dir/conf$$.file
34104 else
34105   rm -f conf$$.dir
34106   mkdir conf$$.dir
34107 fi
34108 echo >conf$$.file
34109 if ln -s conf$$.file conf$$ 2>/dev/null; then
34110   as_ln_s='ln -s'
34111   # ... but there are two gotchas:
34112   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34113   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34114   # In both cases, we have to default to `cp -p'.
34115   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34116     as_ln_s='cp -p'
34117 elif ln conf$$.file conf$$ 2>/dev/null; then
34118   as_ln_s=ln
34119 else
34120   as_ln_s='cp -p'
34121 fi
34122 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34123 rmdir conf$$.dir 2>/dev/null
34124
34125 if mkdir -p . 2>/dev/null; then
34126   as_mkdir_p=:
34127 else
34128   test -d ./-p && rmdir ./-p
34129   as_mkdir_p=false
34130 fi
34131
34132 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34133 # systems may use methods other than mode bits to determine executability.
34134 cat >conf$$.file <<_ASEOF
34135 #! /bin/sh
34136 exit 0
34137 _ASEOF
34138 chmod +x conf$$.file
34139 if test -x conf$$.file >/dev/null 2>&1; then
34140   as_executable_p="test -x"
34141 else
34142   as_executable_p=:
34143 fi
34144 rm -f conf$$.file
34145
34146 # Sed expression to map a string onto a valid CPP name.
34147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34148
34149 # Sed expression to map a string onto a valid variable name.
34150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34151
34152
34153 exec 6>&1
34154
34155 # Save the log message, to keep $[0] and so on meaningful, and to
34156 # report actual input values of CONFIG_FILES etc. instead of their
34157 # values after options handling.
34158 ac_log="
34159 This file was extended by $as_me, which was
34160 generated by GNU Autoconf 2.60.  Invocation command line was
34161
34162   CONFIG_FILES    = $CONFIG_FILES
34163   CONFIG_HEADERS  = $CONFIG_HEADERS
34164   CONFIG_LINKS    = $CONFIG_LINKS
34165   CONFIG_COMMANDS = $CONFIG_COMMANDS
34166   $ $0 $@
34167
34168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34169 "
34170
34171 _ACEOF
34172
34173 cat >>$CONFIG_STATUS <<_ACEOF
34174 # Files that config.status was made for.
34175 config_files="$ac_config_files"
34176 config_headers="$ac_config_headers"
34177 config_commands="$ac_config_commands"
34178
34179 _ACEOF
34180
34181 cat >>$CONFIG_STATUS <<\_ACEOF
34182 ac_cs_usage="\
34183 \`$as_me' instantiates files from templates according to the
34184 current configuration.
34185
34186 Usage: $0 [OPTIONS] [FILE]...
34187
34188   -h, --help       print this help, then exit
34189   -V, --version    print version number, then exit
34190   -q, --quiet      do not print progress messages
34191   -d, --debug      don't remove temporary files
34192       --recheck    update $as_me by reconfiguring in the same conditions
34193   --file=FILE[:TEMPLATE]
34194                    instantiate the configuration file FILE
34195   --header=FILE[:TEMPLATE]
34196                    instantiate the configuration header FILE
34197
34198 Configuration files:
34199 $config_files
34200
34201 Configuration headers:
34202 $config_headers
34203
34204 Configuration commands:
34205 $config_commands
34206
34207 Report bugs to <bug-autoconf@gnu.org>."
34208
34209 _ACEOF
34210 cat >>$CONFIG_STATUS <<_ACEOF
34211 ac_cs_version="\\
34212 config.status
34213 configured by $0, generated by GNU Autoconf 2.60,
34214   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34215
34216 Copyright (C) 2006 Free Software Foundation, Inc.
34217 This config.status script is free software; the Free Software Foundation
34218 gives unlimited permission to copy, distribute and modify it."
34219
34220 ac_pwd='$ac_pwd'
34221 srcdir='$srcdir'
34222 INSTALL='$INSTALL'
34223 _ACEOF
34224
34225 cat >>$CONFIG_STATUS <<\_ACEOF
34226 # If no file are specified by the user, then we need to provide default
34227 # value.  By we need to know if files were specified by the user.
34228 ac_need_defaults=:
34229 while test $# != 0
34230 do
34231   case $1 in
34232   --*=*)
34233     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34234     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34235     ac_shift=:
34236     ;;
34237   *)
34238     ac_option=$1
34239     ac_optarg=$2
34240     ac_shift=shift
34241     ;;
34242   esac
34243
34244   case $ac_option in
34245   # Handling of the options.
34246   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34247     ac_cs_recheck=: ;;
34248   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34249     echo "$ac_cs_version"; exit ;;
34250   --debug | --debu | --deb | --de | --d | -d )
34251     debug=: ;;
34252   --file | --fil | --fi | --f )
34253     $ac_shift
34254     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34255     ac_need_defaults=false;;
34256   --header | --heade | --head | --hea )
34257     $ac_shift
34258     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34259     ac_need_defaults=false;;
34260   --he | --h)
34261     # Conflict between --help and --header
34262     { echo "$as_me: error: ambiguous option: $1
34263 Try \`$0 --help' for more information." >&2
34264    { (exit 1); exit 1; }; };;
34265   --help | --hel | -h )
34266     echo "$ac_cs_usage"; exit ;;
34267   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34268   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34269     ac_cs_silent=: ;;
34270
34271   # This is an error.
34272   -*) { echo "$as_me: error: unrecognized option: $1
34273 Try \`$0 --help' for more information." >&2
34274    { (exit 1); exit 1; }; } ;;
34275
34276   *) ac_config_targets="$ac_config_targets $1"
34277      ac_need_defaults=false ;;
34278
34279   esac
34280   shift
34281 done
34282
34283 ac_configure_extra_args=
34284
34285 if $ac_cs_silent; then
34286   exec 6>/dev/null
34287   ac_configure_extra_args="$ac_configure_extra_args --silent"
34288 fi
34289
34290 _ACEOF
34291 cat >>$CONFIG_STATUS <<_ACEOF
34292 if \$ac_cs_recheck; then
34293   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34294   CONFIG_SHELL=$SHELL
34295   export CONFIG_SHELL
34296   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34297 fi
34298
34299 _ACEOF
34300 cat >>$CONFIG_STATUS <<\_ACEOF
34301 exec 5>>config.log
34302 {
34303   echo
34304   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34305 ## Running $as_me. ##
34306 _ASBOX
34307   echo "$ac_log"
34308 } >&5
34309
34310 _ACEOF
34311 cat >>$CONFIG_STATUS <<_ACEOF
34312 #
34313 # INIT-COMMANDS
34314 #
34315 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34316     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34317     # from automake.
34318     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34319     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34320     LINGUAS="${LINGUAS-%UNSET%}"
34321
34322
34323 _ACEOF
34324
34325 cat >>$CONFIG_STATUS <<\_ACEOF
34326
34327 # Handling of arguments.
34328 for ac_config_target in $ac_config_targets
34329 do
34330   case $ac_config_target in
34331     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34332     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34333     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34334     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34335     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34336     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34337     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34338     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34339     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34340     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34341     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34342     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34343     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34344     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34345     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34346     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34347     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34348     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34349     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34350     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34351     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34352     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34353     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34354     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34355     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34356     "scripts/gnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
34357     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34358     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34359     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34360     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34361     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34362     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34363     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34364     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34365     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34366     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34367     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34368     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34369     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34370     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34371     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34372     "src/gnome2-console/gnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
34373     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34374     "src/wx-console/wx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
34375     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34376     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34377     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34378     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34379     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34380     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34381     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34382     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34383     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34384     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34385     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34386     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34387     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34388     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34389     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34390     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34391     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34392     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34393     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34394     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34395     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34396     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34397     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34398     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34399     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34400     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34401     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34402     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34403     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34404     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34405     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34406     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34407     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34408     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34409     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34410     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34411     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34412     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34413     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34414     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34415     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34416     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34417     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34418     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34419     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34420     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34421     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34422     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34423     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34424     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34425     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34426     "src/pygtk-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
34427     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34428     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34429     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34430     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34431
34432   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34433 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34434    { (exit 1); exit 1; }; };;
34435   esac
34436 done
34437
34438
34439 # If the user did not use the arguments to specify the items to instantiate,
34440 # then the envvar interface is used.  Set only those that are not.
34441 # We use the long form for the default assignment because of an extremely
34442 # bizarre bug on SunOS 4.1.3.
34443 if $ac_need_defaults; then
34444   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34445   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34446   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34447 fi
34448
34449 # Have a temporary directory for convenience.  Make it in the build tree
34450 # simply because there is no reason against having it here, and in addition,
34451 # creating and moving files from /tmp can sometimes cause problems.
34452 # Hook for its removal unless debugging.
34453 # Note that there is a small window in which the directory will not be cleaned:
34454 # after its creation but before its name has been assigned to `$tmp'.
34455 $debug ||
34456 {
34457   tmp=
34458   trap 'exit_status=$?
34459   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34460 ' 0
34461   trap '{ (exit 1); exit 1; }' 1 2 13 15
34462 }
34463 # Create a (secure) tmp directory for tmp files.
34464
34465 {
34466   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34467   test -n "$tmp" && test -d "$tmp"
34468 }  ||
34469 {
34470   tmp=./conf$$-$RANDOM
34471   (umask 077 && mkdir "$tmp")
34472 } ||
34473 {
34474    echo "$me: cannot create a temporary directory in ." >&2
34475    { (exit 1); exit 1; }
34476 }
34477
34478 #
34479 # Set up the sed scripts for CONFIG_FILES section.
34480 #
34481
34482 # No need to generate the scripts if there are no CONFIG_FILES.
34483 # This happens for instance when ./config.status config.h
34484 if test -n "$CONFIG_FILES"; then
34485
34486 _ACEOF
34487
34488 # Create sed commands to just substitute file output variables.
34489
34490 # Remaining file output variables are in a fragment that also has non-file
34491 # output varibles.
34492
34493
34494
34495 ac_delim='%!_!# '
34496 for ac_last_try in false false false false false :; do
34497   cat >conf$$subs.sed <<_ACEOF
34498 SHELL!$SHELL$ac_delim
34499 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34500 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34501 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34502 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34503 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34504 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34505 exec_prefix!$exec_prefix$ac_delim
34506 prefix!$prefix$ac_delim
34507 program_transform_name!$program_transform_name$ac_delim
34508 bindir!$bindir$ac_delim
34509 sbindir!$sbindir$ac_delim
34510 libexecdir!$libexecdir$ac_delim
34511 datarootdir!$datarootdir$ac_delim
34512 datadir!$datadir$ac_delim
34513 sysconfdir!$sysconfdir$ac_delim
34514 sharedstatedir!$sharedstatedir$ac_delim
34515 localstatedir!$localstatedir$ac_delim
34516 includedir!$includedir$ac_delim
34517 oldincludedir!$oldincludedir$ac_delim
34518 docdir!$docdir$ac_delim
34519 infodir!$infodir$ac_delim
34520 htmldir!$htmldir$ac_delim
34521 dvidir!$dvidir$ac_delim
34522 pdfdir!$pdfdir$ac_delim
34523 psdir!$psdir$ac_delim
34524 libdir!$libdir$ac_delim
34525 localedir!$localedir$ac_delim
34526 mandir!$mandir$ac_delim
34527 DEFS!$DEFS$ac_delim
34528 ECHO_C!$ECHO_C$ac_delim
34529 ECHO_N!$ECHO_N$ac_delim
34530 ECHO_T!$ECHO_T$ac_delim
34531 LIBS!$LIBS$ac_delim
34532 build_alias!$build_alias$ac_delim
34533 host_alias!$host_alias$ac_delim
34534 target_alias!$target_alias$ac_delim
34535 BUILD_DIR!$BUILD_DIR$ac_delim
34536 TOP_DIR!$TOP_DIR$ac_delim
34537 TRUEPRG!$TRUEPRG$ac_delim
34538 FALSEPRG!$FALSEPRG$ac_delim
34539 VERSION!$VERSION$ac_delim
34540 DATE!$DATE$ac_delim
34541 LSMDATE!$LSMDATE$ac_delim
34542 CC!$CC$ac_delim
34543 CFLAGS!$CFLAGS$ac_delim
34544 LDFLAGS!$LDFLAGS$ac_delim
34545 CPPFLAGS!$CPPFLAGS$ac_delim
34546 ac_ct_CC!$ac_ct_CC$ac_delim
34547 EXEEXT!$EXEEXT$ac_delim
34548 OBJEXT!$OBJEXT$ac_delim
34549 CXX!$CXX$ac_delim
34550 CXXFLAGS!$CXXFLAGS$ac_delim
34551 ac_ct_CXX!$ac_ct_CXX$ac_delim
34552 CPP!$CPP$ac_delim
34553 GREP!$GREP$ac_delim
34554 EGREP!$EGREP$ac_delim
34555 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34556 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34557 INSTALL_DATA!$INSTALL_DATA$ac_delim
34558 RANLIB!$RANLIB$ac_delim
34559 MV!$MV$ac_delim
34560 RM!$RM$ac_delim
34561 CP!$CP$ac_delim
34562 SED!$SED$ac_delim
34563 ECHO!$ECHO$ac_delim
34564 CMP!$CMP$ac_delim
34565 TBL!$TBL$ac_delim
34566 AR!$AR$ac_delim
34567 OPENSSL!$OPENSSL$ac_delim
34568 MTX!$MTX$ac_delim
34569 DD!$DD$ac_delim
34570 MKISOFS!$MKISOFS$ac_delim
34571 PYTHON!$PYTHON$ac_delim
34572 GROWISOFS!$GROWISOFS$ac_delim
34573 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34574 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34575 PKGCONFIG!$PKGCONFIG$ac_delim
34576 WXCONFIG!$WXCONFIG$ac_delim
34577 WXFLAGS!$WXFLAGS$ac_delim
34578 CDRECORD!$CDRECORD$ac_delim
34579 PIDOF!$PIDOF$ac_delim
34580 AWK!$AWK$ac_delim
34581 ARFLAGS!$ARFLAGS$ac_delim
34582 MAKE_SHELL!$MAKE_SHELL$ac_delim
34583 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34584 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34585 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34586 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34587 build!$build$ac_delim
34588 build_cpu!$build_cpu$ac_delim
34589 build_vendor!$build_vendor$ac_delim
34590 build_os!$build_os$ac_delim
34591 host!$host$ac_delim
34592 _ACEOF
34593
34594   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34595     break
34596   elif $ac_last_try; then
34597     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34598 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34599    { (exit 1); exit 1; }; }
34600   else
34601     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34602   fi
34603 done
34604
34605 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34606 if test -n "$ac_eof"; then
34607   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34608   ac_eof=`expr $ac_eof + 1`
34609 fi
34610
34611 cat >>$CONFIG_STATUS <<_ACEOF
34612 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34614 /^[      ]*@MCOMMON@[    ]*$/{
34615 r $MCOMMON
34616 d
34617 }
34618 _ACEOF
34619 sed '
34620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34621 s/^/s,@/; s/!/@,|#_!!_#|/
34622 :n
34623 t n
34624 s/'"$ac_delim"'$/,g/; t
34625 s/$/\\/; p
34626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34627 ' >>$CONFIG_STATUS <conf$$subs.sed
34628 rm -f conf$$subs.sed
34629 cat >>$CONFIG_STATUS <<_ACEOF
34630 CEOF$ac_eof
34631 _ACEOF
34632
34633
34634 ac_delim='%!_!# '
34635 for ac_last_try in false false false false false :; do
34636   cat >conf$$subs.sed <<_ACEOF
34637 host_cpu!$host_cpu$ac_delim
34638 host_vendor!$host_vendor$ac_delim
34639 host_os!$host_os$ac_delim
34640 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
34641 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
34642 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
34643 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
34644 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
34645 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
34646 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
34647 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
34648 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
34649 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
34650 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
34651 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
34652 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
34653 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
34654 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
34655 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
34656 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
34657 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
34658 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
34659 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
34660 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
34661 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
34662 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
34663 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
34664 SET_MAKE!$SET_MAKE$ac_delim
34665 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34666 USE_NLS!$USE_NLS$ac_delim
34667 MSGFMT!$MSGFMT$ac_delim
34668 GMSGFMT!$GMSGFMT$ac_delim
34669 XGETTEXT!$XGETTEXT$ac_delim
34670 MSGMERGE!$MSGMERGE$ac_delim
34671 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
34672 LIBICONV!$LIBICONV$ac_delim
34673 LTLIBICONV!$LTLIBICONV$ac_delim
34674 INTLLIBS!$INTLLIBS$ac_delim
34675 LIBINTL!$LIBINTL$ac_delim
34676 LTLIBINTL!$LTLIBINTL$ac_delim
34677 POSUB!$POSUB$ac_delim
34678 GLIBC2!$GLIBC2$ac_delim
34679 ALLOCA!$ALLOCA$ac_delim
34680 GLIBC21!$GLIBC21$ac_delim
34681 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34682 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34683 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34684 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34685 INTLBISON!$INTLBISON$ac_delim
34686 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34687 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34688 CATOBJEXT!$CATOBJEXT$ac_delim
34689 DATADIRNAME!$DATADIRNAME$ac_delim
34690 INSTOBJEXT!$INSTOBJEXT$ac_delim
34691 GENCAT!$GENCAT$ac_delim
34692 INTLOBJS!$INTLOBJS$ac_delim
34693 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34694 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
34695 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
34696 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
34697 GNOME_LIBS!$GNOME_LIBS$ac_delim
34698 GNOME_DIR!$GNOME_DIR$ac_delim
34699 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
34700 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
34701 WX_DIR!$WX_DIR$ac_delim
34702 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
34703 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
34704 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
34705 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
34706 STATIC_FD!$STATIC_FD$ac_delim
34707 STATIC_SD!$STATIC_SD$ac_delim
34708 STATIC_DIR!$STATIC_DIR$ac_delim
34709 STATIC_CONS!$STATIC_CONS$ac_delim
34710 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
34711 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
34712 ALL_DIRS!$ALL_DIRS$ac_delim
34713 DIRD_DIR!$DIRD_DIR$ac_delim
34714 DIR_TOOLS!$DIR_TOOLS$ac_delim
34715 STORED_DIR!$STORED_DIR$ac_delim
34716 CONS_INC!$CONS_INC$ac_delim
34717 CONS_OBJ!$CONS_OBJ$ac_delim
34718 CONS_SRC!$CONS_SRC$ac_delim
34719 CONS_LIBS!$CONS_LIBS$ac_delim
34720 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
34721 READLINE_SRC!$READLINE_SRC$ac_delim
34722 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
34723 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
34724 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
34725 OPENSSL_INC!$OPENSSL_INC$ac_delim
34726 working_dir!$working_dir$ac_delim
34727 scriptdir!$scriptdir$ac_delim
34728 dump_email!$dump_email$ac_delim
34729 job_email!$job_email$ac_delim
34730 smtp_host!$smtp_host$ac_delim
34731 piddir!$piddir$ac_delim
34732 subsysdir!$subsysdir$ac_delim
34733 baseport!$baseport$ac_delim
34734 _ACEOF
34735
34736   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34737     break
34738   elif $ac_last_try; then
34739     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34741    { (exit 1); exit 1; }; }
34742   else
34743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34744   fi
34745 done
34746
34747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34748 if test -n "$ac_eof"; then
34749   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34750   ac_eof=`expr $ac_eof + 1`
34751 fi
34752
34753 cat >>$CONFIG_STATUS <<_ACEOF
34754 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34756 _ACEOF
34757 sed '
34758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34759 s/^/s,@/; s/!/@,|#_!!_#|/
34760 :n
34761 t n
34762 s/'"$ac_delim"'$/,g/; t
34763 s/$/\\/; p
34764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34765 ' >>$CONFIG_STATUS <conf$$subs.sed
34766 rm -f conf$$subs.sed
34767 cat >>$CONFIG_STATUS <<_ACEOF
34768 CEOF$ac_eof
34769 _ACEOF
34770
34771
34772 ac_delim='%!_!# '
34773 for ac_last_try in false false false false false :; do
34774   cat >conf$$subs.sed <<_ACEOF
34775 dir_port!$dir_port$ac_delim
34776 fd_port!$fd_port$ac_delim
34777 sd_port!$sd_port$ac_delim
34778 dir_password!$dir_password$ac_delim
34779 fd_password!$fd_password$ac_delim
34780 sd_password!$sd_password$ac_delim
34781 mon_dir_password!$mon_dir_password$ac_delim
34782 mon_fd_password!$mon_fd_password$ac_delim
34783 mon_sd_password!$mon_sd_password$ac_delim
34784 dir_user!$dir_user$ac_delim
34785 dir_group!$dir_group$ac_delim
34786 sd_user!$sd_user$ac_delim
34787 sd_group!$sd_group$ac_delim
34788 fd_user!$fd_user$ac_delim
34789 fd_group!$fd_group$ac_delim
34790 SBINPERM!$SBINPERM$ac_delim
34791 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
34792 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
34793 SQL_BINDIR!$SQL_BINDIR$ac_delim
34794 cats!$cats$ac_delim
34795 DB_NAME!$DB_NAME$ac_delim
34796 GETCONF!$GETCONF$ac_delim
34797 XMKMF!$XMKMF$ac_delim
34798 X_CFLAGS!$X_CFLAGS$ac_delim
34799 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34800 X_LIBS!$X_LIBS$ac_delim
34801 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34802 LIBOBJS!$LIBOBJS$ac_delim
34803 FDLIBS!$FDLIBS$ac_delim
34804 DEBUG!$DEBUG$ac_delim
34805 DINCLUDE!$DINCLUDE$ac_delim
34806 DLIB!$DLIB$ac_delim
34807 DB_LIBS!$DB_LIBS$ac_delim
34808 WCFLAGS!$WCFLAGS$ac_delim
34809 WLDFLAGS!$WLDFLAGS$ac_delim
34810 WRAPLIBS!$WRAPLIBS$ac_delim
34811 OBJLIST!$OBJLIST$ac_delim
34812 hostname!$hostname$ac_delim
34813 TAPEDRIVE!$TAPEDRIVE$ac_delim
34814 PSCMD!$PSCMD$ac_delim
34815 WIN32!$WIN32$ac_delim
34816 MACOSX!$MACOSX$ac_delim
34817 DISTNAME!$DISTNAME$ac_delim
34818 DISTVER!$DISTVER$ac_delim
34819 LTLIBOBJS!$LTLIBOBJS$ac_delim
34820 _ACEOF
34821
34822   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
34823     break
34824   elif $ac_last_try; then
34825     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34826 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34827    { (exit 1); exit 1; }; }
34828   else
34829     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34830   fi
34831 done
34832
34833 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34834 if test -n "$ac_eof"; then
34835   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34836   ac_eof=`expr $ac_eof + 1`
34837 fi
34838
34839 cat >>$CONFIG_STATUS <<_ACEOF
34840 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34842 _ACEOF
34843 sed '
34844 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34845 s/^/s,@/; s/!/@,|#_!!_#|/
34846 :n
34847 t n
34848 s/'"$ac_delim"'$/,g/; t
34849 s/$/\\/; p
34850 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34851 ' >>$CONFIG_STATUS <conf$$subs.sed
34852 rm -f conf$$subs.sed
34853 cat >>$CONFIG_STATUS <<_ACEOF
34854 :end
34855 s/|#_!!_#|//g
34856 CEOF$ac_eof
34857 _ACEOF
34858
34859
34860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34862 # trailing colons and then remove the whole line if VPATH becomes empty
34863 # (actually we leave an empty line to preserve line numbers).
34864 if test "x$srcdir" = x.; then
34865   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34866 s/:*\$(srcdir):*/:/
34867 s/:*\${srcdir}:*/:/
34868 s/:*@srcdir@:*/:/
34869 s/^\([^=]*=[     ]*\):*/\1/
34870 s/:*$//
34871 s/^[^=]*=[       ]*$//
34872 }'
34873 fi
34874
34875 cat >>$CONFIG_STATUS <<\_ACEOF
34876 fi # test -n "$CONFIG_FILES"
34877
34878
34879 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34880 do
34881   case $ac_tag in
34882   :[FHLC]) ac_mode=$ac_tag; continue;;
34883   esac
34884   case $ac_mode$ac_tag in
34885   :[FHL]*:*);;
34886   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34887 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34888    { (exit 1); exit 1; }; };;
34889   :[FH]-) ac_tag=-:-;;
34890   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34891   esac
34892   ac_save_IFS=$IFS
34893   IFS=:
34894   set x $ac_tag
34895   IFS=$ac_save_IFS
34896   shift
34897   ac_file=$1
34898   shift
34899
34900   case $ac_mode in
34901   :L) ac_source=$1;;
34902   :[FH])
34903     ac_file_inputs=
34904     for ac_f
34905     do
34906       case $ac_f in
34907       -) ac_f="$tmp/stdin";;
34908       *) # Look for the file first in the build tree, then in the source tree
34909          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34910          # because $ac_f cannot contain `:'.
34911          test -f "$ac_f" ||
34912            case $ac_f in
34913            [\\/$]*) false;;
34914            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34915            esac ||
34916            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34917 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34918    { (exit 1); exit 1; }; };;
34919       esac
34920       ac_file_inputs="$ac_file_inputs $ac_f"
34921     done
34922
34923     # Let's still pretend it is `configure' which instantiates (i.e., don't
34924     # use $as_me), people would be surprised to read:
34925     #    /* config.h.  Generated by config.status.  */
34926     configure_input="Generated from "`IFS=:
34927           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34928     if test x"$ac_file" != x-; then
34929       configure_input="$ac_file.  $configure_input"
34930       { echo "$as_me:$LINENO: creating $ac_file" >&5
34931 echo "$as_me: creating $ac_file" >&6;}
34932     fi
34933
34934     case $ac_tag in
34935     *:-:* | *:-) cat >"$tmp/stdin";;
34936     esac
34937     ;;
34938   esac
34939
34940   ac_dir=`$as_dirname -- "$ac_file" ||
34941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34942          X"$ac_file" : 'X\(//\)[^/]' \| \
34943          X"$ac_file" : 'X\(//\)$' \| \
34944          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34945 echo X"$ac_file" |
34946     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34947             s//\1/
34948             q
34949           }
34950           /^X\(\/\/\)[^/].*/{
34951             s//\1/
34952             q
34953           }
34954           /^X\(\/\/\)$/{
34955             s//\1/
34956             q
34957           }
34958           /^X\(\/\).*/{
34959             s//\1/
34960             q
34961           }
34962           s/.*/./; q'`
34963   { as_dir="$ac_dir"
34964   case $as_dir in #(
34965   -*) as_dir=./$as_dir;;
34966   esac
34967   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34968     as_dirs=
34969     while :; do
34970       case $as_dir in #(
34971       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34972       *) as_qdir=$as_dir;;
34973       esac
34974       as_dirs="'$as_qdir' $as_dirs"
34975       as_dir=`$as_dirname -- "$as_dir" ||
34976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34977          X"$as_dir" : 'X\(//\)[^/]' \| \
34978          X"$as_dir" : 'X\(//\)$' \| \
34979          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34980 echo X"$as_dir" |
34981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34982             s//\1/
34983             q
34984           }
34985           /^X\(\/\/\)[^/].*/{
34986             s//\1/
34987             q
34988           }
34989           /^X\(\/\/\)$/{
34990             s//\1/
34991             q
34992           }
34993           /^X\(\/\).*/{
34994             s//\1/
34995             q
34996           }
34997           s/.*/./; q'`
34998       test -d "$as_dir" && break
34999     done
35000     test -z "$as_dirs" || eval "mkdir $as_dirs"
35001   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35002 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35003    { (exit 1); exit 1; }; }; }
35004   ac_builddir=.
35005
35006 case "$ac_dir" in
35007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35008 *)
35009   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35010   # A ".." for each directory in $ac_dir_suffix.
35011   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35012   case $ac_top_builddir_sub in
35013   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35014   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35015   esac ;;
35016 esac
35017 ac_abs_top_builddir=$ac_pwd
35018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35019 # for backward compatibility:
35020 ac_top_builddir=$ac_top_build_prefix
35021
35022 case $srcdir in
35023   .)  # We are building in place.
35024     ac_srcdir=.
35025     ac_top_srcdir=$ac_top_builddir_sub
35026     ac_abs_top_srcdir=$ac_pwd ;;
35027   [\\/]* | ?:[\\/]* )  # Absolute name.
35028     ac_srcdir=$srcdir$ac_dir_suffix;
35029     ac_top_srcdir=$srcdir
35030     ac_abs_top_srcdir=$srcdir ;;
35031   *) # Relative name.
35032     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35033     ac_top_srcdir=$ac_top_build_prefix$srcdir
35034     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35035 esac
35036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35037
35038
35039   case $ac_mode in
35040   :F)
35041   #
35042   # CONFIG_FILE
35043   #
35044
35045   case $INSTALL in
35046   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35047   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35048   esac
35049 _ACEOF
35050
35051 cat >>$CONFIG_STATUS <<\_ACEOF
35052 # If the template does not know about datarootdir, expand it.
35053 # FIXME: This hack should be removed a few years after 2.60.
35054 ac_datarootdir_hack=; ac_datarootdir_seen=
35055
35056 case `sed -n '/datarootdir/ {
35057   p
35058   q
35059 }
35060 /@datadir@/p
35061 /@docdir@/p
35062 /@infodir@/p
35063 /@localedir@/p
35064 /@mandir@/p
35065 ' $ac_file_inputs` in
35066 *datarootdir*) ac_datarootdir_seen=yes;;
35067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35068   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35069 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35070 _ACEOF
35071 cat >>$CONFIG_STATUS <<_ACEOF
35072   ac_datarootdir_hack='
35073   s&@datadir@&$datadir&g
35074   s&@docdir@&$docdir&g
35075   s&@infodir@&$infodir&g
35076   s&@localedir@&$localedir&g
35077   s&@mandir@&$mandir&g
35078     s&\\\${datarootdir}&$datarootdir&g' ;;
35079 esac
35080 _ACEOF
35081
35082 # Neutralize VPATH when `$srcdir' = `.'.
35083 # Shell code in configure.ac might set extrasub.
35084 # FIXME: do we really want to maintain this feature?
35085 cat >>$CONFIG_STATUS <<_ACEOF
35086   sed "$ac_vpsub
35087 $extrasub
35088 _ACEOF
35089 cat >>$CONFIG_STATUS <<\_ACEOF
35090 :t
35091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35092 s&@configure_input@&$configure_input&;t t
35093 s&@top_builddir@&$ac_top_builddir_sub&;t t
35094 s&@srcdir@&$ac_srcdir&;t t
35095 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35096 s&@top_srcdir@&$ac_top_srcdir&;t t
35097 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35098 s&@builddir@&$ac_builddir&;t t
35099 s&@abs_builddir@&$ac_abs_builddir&;t t
35100 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35101 s&@INSTALL@&$ac_INSTALL&;t t
35102 $ac_datarootdir_hack
35103 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35104
35105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35106   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35107   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35108   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35109 which seems to be undefined.  Please make sure it is defined." >&5
35110 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35111 which seems to be undefined.  Please make sure it is defined." >&2;}
35112
35113   rm -f "$tmp/stdin"
35114   case $ac_file in
35115   -) cat "$tmp/out"; rm -f "$tmp/out";;
35116   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35117   esac
35118  ;;
35119   :H)
35120   #
35121   # CONFIG_HEADER
35122   #
35123 _ACEOF
35124
35125 # Transform confdefs.h into a sed script `conftest.defines', that
35126 # substitutes the proper values into config.h.in to produce config.h.
35127 rm -f conftest.defines conftest.tail
35128 # First, append a space to every undef/define line, to ease matching.
35129 echo 's/$/ /' >conftest.defines
35130 # Then, protect against being on the right side of a sed subst, or in
35131 # an unquoted here document, in config.status.  If some macros were
35132 # called several times there might be several #defines for the same
35133 # symbol, which is useless.  But do not sort them, since the last
35134 # AC_DEFINE must be honored.
35135 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35136 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35137 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35138 # PARAMS is the parameter list in the macro definition--in most cases, it's
35139 # just an empty string.
35140 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35141 ac_dB='\\)[      (].*,\\1define\\2'
35142 ac_dC=' '
35143 ac_dD=' ,'
35144
35145 uniq confdefs.h |
35146   sed -n '
35147         t rset
35148         :rset
35149         s/^[     ]*#[    ]*define[       ][      ]*//
35150         t ok
35151         d
35152         :ok
35153         s/[\\&,]/\\&/g
35154         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35155         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35156   ' >>conftest.defines
35157
35158 # Remove the space that was appended to ease matching.
35159 # Then replace #undef with comments.  This is necessary, for
35160 # example, in the case of _POSIX_SOURCE, which is predefined and required
35161 # on some systems where configure will not decide to define it.
35162 # (The regexp can be short, since the line contains either #define or #undef.)
35163 echo 's/ $//
35164 s,^[     #]*u.*,/* & */,' >>conftest.defines
35165
35166 # Break up conftest.defines:
35167 ac_max_sed_lines=50
35168
35169 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35170 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35171 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35172 # et cetera.
35173 ac_in='$ac_file_inputs'
35174 ac_out='"$tmp/out1"'
35175 ac_nxt='"$tmp/out2"'
35176
35177 while :
35178 do
35179   # Write a here document:
35180     cat >>$CONFIG_STATUS <<_ACEOF
35181     # First, check the format of the line:
35182     cat >"\$tmp/defines.sed" <<\\CEOF
35183 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35184 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35185 b
35186 :def
35187 _ACEOF
35188   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35189   echo 'CEOF
35190     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35191   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35192   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35193   grep . conftest.tail >/dev/null || break
35194   rm -f conftest.defines
35195   mv conftest.tail conftest.defines
35196 done
35197 rm -f conftest.defines conftest.tail
35198
35199 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35200 cat >>$CONFIG_STATUS <<\_ACEOF
35201   if test x"$ac_file" != x-; then
35202     echo "/* $configure_input  */" >"$tmp/config.h"
35203     cat "$ac_result" >>"$tmp/config.h"
35204     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35205       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35206 echo "$as_me: $ac_file is unchanged" >&6;}
35207     else
35208       rm -f $ac_file
35209       mv "$tmp/config.h" $ac_file
35210     fi
35211   else
35212     echo "/* $configure_input  */"
35213     cat "$ac_result"
35214   fi
35215   rm -f "$tmp/out12"
35216  ;;
35217
35218   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35219 echo "$as_me: executing $ac_file commands" >&6;}
35220  ;;
35221   esac
35222
35223
35224   case $ac_file$ac_mode in
35225     "default-1":C)
35226     for ac_file in $CONFIG_FILES; do
35227       # Support "outfile[:infile[:infile...]]"
35228       case "$ac_file" in
35229         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35230       esac
35231       # PO directories have a Makefile.in generated from Makefile.in.in.
35232       case "$ac_file" in */Makefile.in)
35233         # Adjust a relative srcdir.
35234         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35235         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35236         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35237         # In autoconf-2.13 it is called $ac_given_srcdir.
35238         # In autoconf-2.50 it is called $srcdir.
35239         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35240         case "$ac_given_srcdir" in
35241           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35242           /*) top_srcdir="$ac_given_srcdir" ;;
35243           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35244         esac
35245         # Treat a directory as a PO directory if and only if it has a
35246         # POTFILES.in file. This allows packages to have multiple PO
35247         # directories under different names or in different locations.
35248         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35249           rm -f "$ac_dir/POTFILES"
35250           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35251           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35252           POMAKEFILEDEPS="POTFILES.in"
35253           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35254           # on $ac_dir but don't depend on user-specified configuration
35255           # parameters.
35256           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35257             # The LINGUAS file contains the set of available languages.
35258             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35259               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35260             fi
35261             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35262             # Hide the ALL_LINGUAS assigment from automake.
35263             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35264             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35265           else
35266             # The set of available languages was given in configure.in.
35267             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35268           fi
35269           # Compute POFILES
35270           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35271           # Compute UPDATEPOFILES
35272           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35273           # Compute DUMMYPOFILES
35274           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35275           # Compute GMOFILES
35276           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35277           case "$ac_given_srcdir" in
35278             .) srcdirpre= ;;
35279             *) srcdirpre='$(srcdir)/' ;;
35280           esac
35281           POFILES=
35282           UPDATEPOFILES=
35283           DUMMYPOFILES=
35284           GMOFILES=
35285           for lang in $ALL_LINGUAS; do
35286             POFILES="$POFILES $srcdirpre$lang.po"
35287             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35288             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35289             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35290           done
35291           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35292           # environment variable.
35293           INST_LINGUAS=
35294           if test -n "$ALL_LINGUAS"; then
35295             for presentlang in $ALL_LINGUAS; do
35296               useit=no
35297               if test "%UNSET%" != "$LINGUAS"; then
35298                 desiredlanguages="$LINGUAS"
35299               else
35300                 desiredlanguages="$ALL_LINGUAS"
35301               fi
35302               for desiredlang in $desiredlanguages; do
35303                 # Use the presentlang catalog if desiredlang is
35304                 #   a. equal to presentlang, or
35305                 #   b. a variant of presentlang (because in this case,
35306                 #      presentlang can be used as a fallback for messages
35307                 #      which are not translated in the desiredlang catalog).
35308                 case "$desiredlang" in
35309                   "$presentlang"*) useit=yes;;
35310                 esac
35311               done
35312               if test $useit = yes; then
35313                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35314               fi
35315             done
35316           fi
35317           CATALOGS=
35318           if test -n "$INST_LINGUAS"; then
35319             for lang in $INST_LINGUAS; do
35320               CATALOGS="$CATALOGS $lang.gmo"
35321             done
35322           fi
35323           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35324           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"
35325           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35326             if test -f "$f"; then
35327               case "$f" in
35328                 *.orig | *.bak | *~) ;;
35329                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35330               esac
35331             fi
35332           done
35333         fi
35334         ;;
35335       esac
35336     done ;;
35337     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35338  ;;
35339
35340   esac
35341 done # for ac_tag
35342
35343
35344 { (exit 0); exit 0; }
35345 _ACEOF
35346 chmod +x $CONFIG_STATUS
35347 ac_clean_files=$ac_clean_files_save
35348
35349
35350 # configure is writing to config.log, and then calls config.status.
35351 # config.status does its own redirection, appending to config.log.
35352 # Unfortunately, on DOS this fails, as config.log is still kept open
35353 # by configure, so config.status won't be able to write to it; its
35354 # output is simply discarded.  So we exec the FD to /dev/null,
35355 # effectively closing config.log, so it can be properly (re)opened and
35356 # appended to by config.status.  When coming back to configure, we
35357 # need to make the FD available again.
35358 if test "$no_create" != yes; then
35359   ac_cs_success=:
35360   ac_config_status_args=
35361   test "$silent" = yes &&
35362     ac_config_status_args="$ac_config_status_args --quiet"
35363   exec 5>/dev/null
35364   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35365   exec 5>>config.log
35366   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35367   # would make configure fail if this is the last instruction.
35368   $ac_cs_success || { (exit 1); exit 1; }
35369 fi
35370
35371
35372 cd scripts
35373 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35374 chmod 755 dvd-handler dvd-simulator
35375 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35376 cd ..
35377
35378 c=src/cats
35379
35380 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35381 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35382
35383 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35384 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35385
35386 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35387 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35388
35389 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35390 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35391
35392 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35393 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35394
35395 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35396 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35397
35398 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35399 chmod 755 $c/sqlite
35400 chmod 755 $c/mysql
35401
35402 chmod 755 src/win32/build-depkgs-mingw32
35403
35404 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35405    largefile_support="yes"
35406 fi
35407
35408 #
35409 # A whole lot of hand springs to get the compiler version.
35410 #  This is because gcc changed the output in version 3.0
35411 #
35412 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35413 if test "x${CCVERSION}" = "x" ; then
35414   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35415 fi
35416 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35417 if test x"${CXXVERSION}" = x ; then
35418   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35419 fi
35420
35421 if test "x${subsysdir}" = "x${sbindir}" ; then
35422    echo " "
35423    echo " "
35424    echo "You have set --sbindir and --with-subsys-dir"
35425    echo "  both equal to: ${subsysdir} "
35426    echo "  This is not permitted. Please reconfigure."
35427    echo " "
35428    echo "Aborting configuration ..."
35429    echo " "
35430    echo " "
35431    exit 1
35432 fi
35433
35434 if test "x${db_name}" = "xInternal" ; then
35435    echo " "
35436    echo " "
35437    echo "You have not specified either --enable-client-only or one of the"
35438    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35439    echo "  This is not permitted. Please reconfigure."
35440    echo " "
35441    echo "Aborting the configuration ..."
35442    echo " "
35443    echo " "
35444    exit 1
35445 fi
35446
35447 echo "
35448 Configuration on `date`:
35449
35450   Host:                       $host -- ${DISTNAME} ${DISTVER}
35451   Bacula version:             ${VERSION} (${DATE})
35452   Source code location:       ${srcdir}
35453   Install binaries:           ${sbindir}
35454   Install config files:       ${sysconfdir}
35455   Scripts directory:          ${scriptdir}
35456   Working directory:          ${working_dir}
35457   PID directory:              ${piddir}
35458   Subsys directory:           ${subsysdir}
35459   Man directory:              ${mandir}
35460   Data directory:             ${datadir}
35461   C Compiler:                 ${CC} ${CCVERSION}
35462   C++ Compiler:               ${CXX} ${CXXVERSION}
35463   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35464   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35465   Libraries:                  ${LIBS}
35466   Statically Linked Tools:    ${support_static_tools}
35467   Statically Linked FD:       ${support_static_fd}
35468   Statically Linked SD:       ${support_static_sd}
35469   Statically Linked DIR:      ${support_static_dir}
35470   Statically Linked CONS:     ${support_static_cons}
35471   Database type:              ${db_name}
35472   Database lib:               ${DB_LIBS}
35473
35474   Job Output Email:           ${job_email}
35475   Traceback Email:            ${dump_email}
35476   SMTP Host Address:          ${smtp_host}
35477
35478   Director Port:              ${dir_port}
35479   File daemon Port:           ${fd_port}
35480   Storage daemon Port:        ${sd_port}
35481
35482   Director User:              ${dir_user}
35483   Director Group:             ${dir_group}
35484   Storage Daemon User:        ${sd_user}
35485   Storage DaemonGroup:        ${sd_group}
35486   File Daemon User:           ${fd_user}
35487   File Daemon Group:          ${fd_group}
35488
35489   SQL binaries Directory      ${SQL_BINDIR}
35490
35491   Large file support:         $largefile_support
35492   Bacula conio support:       ${got_conio} ${CONS_LIBS}
35493   readline support:           ${got_readline} ${PRTREADLINE_SRC}
35494   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
35495   TLS support:                ${support_tls}
35496   Encryption support:         ${support_crypto}
35497   ZLIB support:               ${have_zlib}
35498   enable-smartalloc:          ${support_smartalloc}
35499   enable-gnome:               ${support_gnome} ${gnome_version}
35500   enable-wx-console:          ${support_wx_console} ${wx_version}
35501   enable-tray-monitor:        ${support_tray_monitor}
35502   client-only:                ${build_client_only}
35503   build-dird:                 ${build_dird}
35504   build-stored:               ${build_stored}
35505   ACL support:                ${have_acl}
35506   Python support:             ${support_python} ${PYTHON_LIBS}
35507
35508   " > config.out
35509
35510 cat config.out