]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
ebl Tweak bat for win32 (it segfault at home, but
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 BDB_CPPFLAGS
770 BDB_LIBS
771 GNOME_INCLUDEDIR
772 GNOMEUI_LIBS
773 GNOME_LIBDIR
774 GNOME_LIBS
775 GNOME_DIR
776 BAT_DIR
777 QWT_INC
778 QWT_LDFLAGS
779 QWT_LIB
780 QWT
781 WXCONS_CPPFLAGS
782 WXCONS_LDFLAGS
783 WX_DIR
784 TRAY_MONITOR_CPPFLAGS
785 TRAY_MONITOR_LDFLAGS
786 TRAY_MONITOR_DIR
787 TTOOL_LDFLAGS
788 STATIC_FD
789 STATIC_SD
790 STATIC_DIR
791 STATIC_CONS
792 STATIC_GNOME_CONS
793 STATIC_WX_CONS
794 ALL_DIRS
795 DIRD_DIR
796 DIR_TOOLS
797 STORED_DIR
798 CONS_INC
799 CONS_OBJ
800 CONS_SRC
801 CONS_LIBS
802 CONS_LDFLAGS
803 READLINE_SRC
804 PYTHON_LIBS
805 PYTHON_INCDIR
806 OPENSSL_LIBS
807 OPENSSL_INC
808 working_dir
809 archivedir
810 scriptdir
811 dump_email
812 job_email
813 smtp_host
814 piddir
815 subsysdir
816 baseport
817 dir_port
818 fd_port
819 sd_port
820 dir_password
821 fd_password
822 sd_password
823 mon_dir_password
824 mon_fd_password
825 mon_sd_password
826 db_name
827 db_user
828 db_password
829 db_port
830 dir_user
831 dir_group
832 sd_user
833 sd_group
834 fd_user
835 fd_group
836 SBINPERM
837 SQL_LFLAGS
838 SQL_INCLUDE
839 SQL_BINDIR
840 DBI_DBD_DRIVERDIR
841 uncomment_dbi
842 DB_PROG
843 DB_PROG_LIB
844 cats
845 DB_TYPE
846 GETCONF
847 XMKMF
848 X_CFLAGS
849 X_PRE_LIBS
850 X_LIBS
851 X_EXTRA_LIBS
852 LIBOBJS
853 FDLIBS
854 DEBUG
855 DINCLUDE
856 DLIB
857 DB_LIBS
858 WCFLAGS
859 WLDFLAGS
860 WRAPLIBS
861 OBJLIST
862 hostname
863 TAPEDRIVE
864 PSCMD
865 WIN32
866 MACOSX
867 DISTNAME
868 DISTVER
869 LTLIBOBJS'
870 ac_subst_files='MCOMMON'
871       ac_precious_vars='build_alias
872 host_alias
873 target_alias
874 CC
875 CFLAGS
876 LDFLAGS
877 LIBS
878 CPPFLAGS
879 CXX
880 CXXFLAGS
881 CCC
882 CPP
883 WXCONFIG
884 WXFLAGS
885 XMKMF'
886
887
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938   # If the previous option needs an argument, assign it.
939   if test -n "$ac_prev"; then
940     eval $ac_prev=\$ac_option
941     ac_prev=
942     continue
943   fi
944
945   case $ac_option in
946   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947   *)    ac_optarg=yes ;;
948   esac
949
950   # Accept the important Cygnus configure options, so we can diagnose typos.
951
952   case $ac_dashdash$ac_option in
953   --)
954     ac_dashdash=yes ;;
955
956   -bindir | --bindir | --bindi | --bind | --bin | --bi)
957     ac_prev=bindir ;;
958   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959     bindir=$ac_optarg ;;
960
961   -build | --build | --buil | --bui | --bu)
962     ac_prev=build_alias ;;
963   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964     build_alias=$ac_optarg ;;
965
966   -cache-file | --cache-file | --cache-fil | --cache-fi \
967   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968     ac_prev=cache_file ;;
969   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971     cache_file=$ac_optarg ;;
972
973   --config-cache | -C)
974     cache_file=config.cache ;;
975
976   -datadir | --datadir | --datadi | --datad)
977     ac_prev=datadir ;;
978   -datadir=* | --datadir=* | --datadi=* | --datad=*)
979     datadir=$ac_optarg ;;
980
981   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982   | --dataroo | --dataro | --datar)
983     ac_prev=datarootdir ;;
984   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986     datarootdir=$ac_optarg ;;
987
988   -disable-* | --disable-*)
989     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
992       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
993    { (exit 1); exit 1; }; }
994     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
995     eval enable_$ac_feature=no ;;
996
997   -docdir | --docdir | --docdi | --doc | --do)
998     ac_prev=docdir ;;
999   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000     docdir=$ac_optarg ;;
1001
1002   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003     ac_prev=dvidir ;;
1004   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005     dvidir=$ac_optarg ;;
1006
1007   -enable-* | --enable-*)
1008     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009     # Reject names that are not valid shell variable names.
1010     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012    { (exit 1); exit 1; }; }
1013     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014     eval enable_$ac_feature=\$ac_optarg ;;
1015
1016   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018   | --exec | --exe | --ex)
1019     ac_prev=exec_prefix ;;
1020   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022   | --exec=* | --exe=* | --ex=*)
1023     exec_prefix=$ac_optarg ;;
1024
1025   -gas | --gas | --ga | --g)
1026     # Obsolete; use --with-gas.
1027     with_gas=yes ;;
1028
1029   -help | --help | --hel | --he | -h)
1030     ac_init_help=long ;;
1031   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032     ac_init_help=recursive ;;
1033   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034     ac_init_help=short ;;
1035
1036   -host | --host | --hos | --ho)
1037     ac_prev=host_alias ;;
1038   -host=* | --host=* | --hos=* | --ho=*)
1039     host_alias=$ac_optarg ;;
1040
1041   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042     ac_prev=htmldir ;;
1043   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044   | --ht=*)
1045     htmldir=$ac_optarg ;;
1046
1047   -includedir | --includedir | --includedi | --included | --include \
1048   | --includ | --inclu | --incl | --inc)
1049     ac_prev=includedir ;;
1050   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051   | --includ=* | --inclu=* | --incl=* | --inc=*)
1052     includedir=$ac_optarg ;;
1053
1054   -infodir | --infodir | --infodi | --infod | --info | --inf)
1055     ac_prev=infodir ;;
1056   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057     infodir=$ac_optarg ;;
1058
1059   -libdir | --libdir | --libdi | --libd)
1060     ac_prev=libdir ;;
1061   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062     libdir=$ac_optarg ;;
1063
1064   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065   | --libexe | --libex | --libe)
1066     ac_prev=libexecdir ;;
1067   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068   | --libexe=* | --libex=* | --libe=*)
1069     libexecdir=$ac_optarg ;;
1070
1071   -localedir | --localedir | --localedi | --localed | --locale)
1072     ac_prev=localedir ;;
1073   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074     localedir=$ac_optarg ;;
1075
1076   -localstatedir | --localstatedir | --localstatedi | --localstated \
1077   | --localstate | --localstat | --localsta | --localst | --locals)
1078     ac_prev=localstatedir ;;
1079   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081     localstatedir=$ac_optarg ;;
1082
1083   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084     ac_prev=mandir ;;
1085   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086     mandir=$ac_optarg ;;
1087
1088   -nfp | --nfp | --nf)
1089     # Obsolete; use --without-fp.
1090     with_fp=no ;;
1091
1092   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093   | --no-cr | --no-c | -n)
1094     no_create=yes ;;
1095
1096   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098     no_recursion=yes ;;
1099
1100   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102   | --oldin | --oldi | --old | --ol | --o)
1103     ac_prev=oldincludedir ;;
1104   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107     oldincludedir=$ac_optarg ;;
1108
1109   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110     ac_prev=prefix ;;
1111   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112     prefix=$ac_optarg ;;
1113
1114   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115   | --program-pre | --program-pr | --program-p)
1116     ac_prev=program_prefix ;;
1117   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119     program_prefix=$ac_optarg ;;
1120
1121   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122   | --program-suf | --program-su | --program-s)
1123     ac_prev=program_suffix ;;
1124   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126     program_suffix=$ac_optarg ;;
1127
1128   -program-transform-name | --program-transform-name \
1129   | --program-transform-nam | --program-transform-na \
1130   | --program-transform-n | --program-transform- \
1131   | --program-transform | --program-transfor \
1132   | --program-transfo | --program-transf \
1133   | --program-trans | --program-tran \
1134   | --progr-tra | --program-tr | --program-t)
1135     ac_prev=program_transform_name ;;
1136   -program-transform-name=* | --program-transform-name=* \
1137   | --program-transform-nam=* | --program-transform-na=* \
1138   | --program-transform-n=* | --program-transform-=* \
1139   | --program-transform=* | --program-transfor=* \
1140   | --program-transfo=* | --program-transf=* \
1141   | --program-trans=* | --program-tran=* \
1142   | --progr-tra=* | --program-tr=* | --program-t=*)
1143     program_transform_name=$ac_optarg ;;
1144
1145   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146     ac_prev=pdfdir ;;
1147   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148     pdfdir=$ac_optarg ;;
1149
1150   -psdir | --psdir | --psdi | --psd | --ps)
1151     ac_prev=psdir ;;
1152   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153     psdir=$ac_optarg ;;
1154
1155   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156   | -silent | --silent | --silen | --sile | --sil)
1157     silent=yes ;;
1158
1159   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160     ac_prev=sbindir ;;
1161   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162   | --sbi=* | --sb=*)
1163     sbindir=$ac_optarg ;;
1164
1165   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167   | --sharedst | --shareds | --shared | --share | --shar \
1168   | --sha | --sh)
1169     ac_prev=sharedstatedir ;;
1170   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173   | --sha=* | --sh=*)
1174     sharedstatedir=$ac_optarg ;;
1175
1176   -site | --site | --sit)
1177     ac_prev=site ;;
1178   -site=* | --site=* | --sit=*)
1179     site=$ac_optarg ;;
1180
1181   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182     ac_prev=srcdir ;;
1183   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184     srcdir=$ac_optarg ;;
1185
1186   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187   | --syscon | --sysco | --sysc | --sys | --sy)
1188     ac_prev=sysconfdir ;;
1189   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191     sysconfdir=$ac_optarg ;;
1192
1193   -target | --target | --targe | --targ | --tar | --ta | --t)
1194     ac_prev=target_alias ;;
1195   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196     target_alias=$ac_optarg ;;
1197
1198   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199     verbose=yes ;;
1200
1201   -version | --version | --versio | --versi | --vers | -V)
1202     ac_init_version=: ;;
1203
1204   -with-* | --with-*)
1205     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206     # Reject names that are not valid shell variable names.
1207     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208       { echo "$as_me: error: invalid package name: $ac_package" >&2
1209    { (exit 1); exit 1; }; }
1210     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1211     eval with_$ac_package=\$ac_optarg ;;
1212
1213   -without-* | --without-*)
1214     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=no ;;
1221
1222   --x)
1223     # Obsolete; use --with-x.
1224     with_x=yes ;;
1225
1226   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227   | --x-incl | --x-inc | --x-in | --x-i)
1228     ac_prev=x_includes ;;
1229   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231     x_includes=$ac_optarg ;;
1232
1233   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235     ac_prev=x_libraries ;;
1236   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238     x_libraries=$ac_optarg ;;
1239
1240   -*) { echo "$as_me: error: unrecognized option: $ac_option
1241 Try \`$0 --help' for more information." >&2
1242    { (exit 1); exit 1; }; }
1243     ;;
1244
1245   *=*)
1246     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1249       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1250    { (exit 1); exit 1; }; }
1251     eval $ac_envvar=\$ac_optarg
1252     export $ac_envvar ;;
1253
1254   *)
1255     # FIXME: should be removed in autoconf 3.0.
1256     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260     ;;
1261
1262   esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267   { echo "$as_me: error: missing argument to $ac_option" >&2
1268    { (exit 1); exit 1; }; }
1269 fi
1270
1271 # Be sure to have absolute directory names.
1272 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273                 datadir sysconfdir sharedstatedir localstatedir includedir \
1274                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275                 libdir localedir mandir
1276 do
1277   eval ac_val=\$$ac_var
1278   case $ac_val in
1279     [\\/$]* | ?:[\\/]* )  continue;;
1280     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281   esac
1282   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1283    { (exit 1); exit 1; }; }
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295   if test "x$build_alias" = x; then
1296     cross_compiling=maybe
1297     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298     If a cross compiler is detected then cross compile mode will be used." >&2
1299   elif test "x$build_alias" != "x$host_alias"; then
1300     cross_compiling=yes
1301   fi
1302 fi
1303
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307 test "$silent" = yes && exec 6>/dev/null
1308
1309
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313   { echo "$as_me: error: Working directory cannot be determined" >&2
1314    { (exit 1); exit 1; }; }
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316   { echo "$as_me: error: pwd does not report name of working directory" >&2
1317    { (exit 1); exit 1; }; }
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322   ac_srcdir_defaulted=yes
1323   # Try the directory containing this script, then the parent directory.
1324   ac_confdir=`$as_dirname -- "$0" ||
1325 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326          X"$0" : 'X\(//\)[^/]' \| \
1327          X"$0" : 'X\(//\)$' \| \
1328          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1329 echo X"$0" |
1330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)[^/].*/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\).*/{
1343             s//\1/
1344             q
1345           }
1346           s/.*/./; q'`
1347   srcdir=$ac_confdir
1348   if test ! -r "$srcdir/$ac_unique_file"; then
1349     srcdir=..
1350   fi
1351 else
1352   ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1362    { (exit 1); exit 1; }; }
1363         pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366   srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376   eval ac_env_${ac_var}_value=\$${ac_var}
1377   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385   # Omit some internal or obsolete options to make the list less imposing.
1386   # This message is too long to be a string in the A/UX 3.1 sh.
1387   cat <<_ACEOF
1388 \`configure' configures this package to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE.  See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398   -h, --help              display this help and exit
1399       --help=short        display options specific to this package
1400       --help=recursive    display the short help of all the included packages
1401   -V, --version           display version information and exit
1402   -q, --quiet, --silent   do not print \`checking...' messages
1403       --cache-file=FILE   cache test results in FILE [disabled]
1404   -C, --config-cache      alias for \`--cache-file=config.cache'
1405   -n, --no-create         do not create output files
1406       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1407
1408 Installation directories:
1409   --prefix=PREFIX         install architecture-independent files in PREFIX
1410                           [$ac_default_prefix]
1411   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1412                           [PREFIX]
1413
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422   --bindir=DIR           user executables [EPREFIX/bin]
1423   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1424   --libexecdir=DIR       program executables [EPREFIX/libexec]
1425   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1426   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1427   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1428   --libdir=DIR           object code libraries [EPREFIX/lib]
1429   --includedir=DIR       C header files [PREFIX/include]
1430   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1431   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1432   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1433   --infodir=DIR          info documentation [DATAROOTDIR/info]
1434   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1435   --mandir=DIR           man documentation [DATAROOTDIR/man]
1436   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1437   --htmldir=DIR          html documentation [DOCDIR]
1438   --dvidir=DIR           dvi documentation [DOCDIR]
1439   --pdfdir=DIR           pdf documentation [DOCDIR]
1440   --psdir=DIR            ps documentation [DOCDIR]
1441 _ACEOF
1442
1443   cat <<\_ACEOF
1444
1445 X features:
1446   --x-includes=DIR    X include files are in DIR
1447   --x-libraries=DIR   X library files are in DIR
1448
1449 System types:
1450   --build=BUILD     configure for building on BUILD [guessed]
1451   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456
1457   cat <<\_ACEOF
1458
1459 Optional Features:
1460   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1461   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1462   --disable-nls           do not use Native Language Support
1463   --disable-rpath         do not hardcode runtime library paths
1464   --disable-libdb         disable build of accurate mode with libdb
1465   --enable-gnome          enable build of bgnome-console GUI disabled
1466   --enable-bat  enable build of bat Qt4 GUI disabled
1467   --enable-bwx-console     enable build of wxWidgets console disabled
1468   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1469   --enable-smartalloc     enable smartalloc debugging support disabled
1470   --enable-static-tools   enable static tape tools disabled
1471   --enable-static-fd      enable static File daemon disabled
1472   --enable-static-sd      enable static Storage daemon disabled
1473   --enable-static-dir     enable static Director disabled
1474   --enable-static-cons    enable static Console disabled
1475   --enable-client-only    build client (File daemon) only disabled
1476   --enable-build-dird     enable building of dird (Director) enabled
1477   --enable-build-stored   enable building of stored (Storage daemon) enabled
1478  --disable-conio disable conio support enabled
1479
1480   --enable-ipv6             enable ipv6 support enabled
1481
1482   --disable-readline      disable readline support disable
1483
1484         --enable-batch-insert       enable the DB batch insert code disabled
1485  --enable-batch-insert      enable the DB batch insert code disabled
1486   --disable-largefile     omit support for large files
1487
1488 Optional Packages:
1489   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1492   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1493   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1494   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1495   --without-libintl-prefix     don't search for libintl in includedir and libdir
1496   --with-included-gettext use the GNU gettext library included here
1497   --with-bdb-dir=DIR      Berkeley DB installation directory
1498  --with-qwt[=DIR]                 specify qwt library directory
1499  --with-readline[=DIR]         specify readline library directory
1500
1501   --with-python[=DIR]   Include Python support.  DIR is the Python base
1502                           install directory, default is to search through
1503                           a number of common places for the Python files.
1504   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1505   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1506   --with-working-dir=PATH        specify path of Bacula working directory
1507   --with-archivedir=PATH        specify path of SD archive directory
1508   --with-scriptdir=PATH    specify path of Bacula scripts directory
1509   --with-dump-email=EMAIL        dump email address
1510   --with-job-email=EMAIL         job output email address
1511   --with-smtp-host=HOST          SMTP mail host address
1512   --with-pid-dir=PATH            specify location of Bacula pid files
1513   --with-subsys-dir=PATH         specify location of Bacula subsys file
1514   --with-baseport=PORT           specify base port address for daemons
1515   --with-dir-password=PASSWORD   specify Director's password
1516   --with-fd-password=PASSWORD    specify Client's password
1517   --with-sd-password=PASSWORD    specify Storage daemon's password
1518   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1519   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1520   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1521   --with-db-name=DBNAME        specify database name (default bacula)
1522   --with-db-user=UNAME         specify database user (default bacula)
1523   --with-db-password=UNAME         specify database password (default *none*)
1524   --with-db-port=DBPORT            specify a database port (default null)
1525   --with-dir-user=USER           specify user for Director daemon
1526   --with-dir-group=GROUP                 specify group for Director daemon
1527   --with-sd-user=USER            specify user for Storage daemon
1528   --with-sd-group=GROUP          specify group for Storage daemon
1529   --with-fd-user=USER            specify user for File daemon
1530   --with-fd-group=GROUP          specify group for File daemon
1531   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1532   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1533                           base install directory, defaults to /usr/local/pgsql
1534
1535   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1536                           install directory, default is to search through
1537                           a number of common places for the MySQL files.
1538
1539   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1540                           install directory, default is to search through
1541                           a number of common places for the MySQL files.
1542
1543   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1544                           install directory, default is to search through
1545                           a number of common places for the SQLite3 files.
1546
1547   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1548                           install directory, default is to search through
1549                           a number of common places for the SQLite files.
1550
1551   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1552                           install directory, default is to search through
1553                           a number of common places for the DBI files.
1554
1555   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1556                           the one DBI driver like Mysql, Postgresql, others.
1557                           Default is to not configure any driver.
1558   --with-x                use the X Window System
1559
1560 Some influential environment variables:
1561   CC          C compiler command
1562   CFLAGS      C compiler flags
1563   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564               nonstandard directory <lib dir>
1565   LIBS        libraries to pass to the linker, e.g. -l<library>
1566   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CXX         C++ compiler command
1569   CXXFLAGS    C++ compiler flags
1570   CPP         C preprocessor
1571   WXCONFIG    wx-config command. On some systems, you must set it to
1572               wx-config-2.6 to use wxWidgets 2.6.
1573   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1574   XMKMF       Path to xmkmf, Makefile generator for X Window System
1575
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1578
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584   # If there are subdirs, report their specific --help.
1585   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586     test -d "$ac_dir" || continue
1587     ac_builddir=.
1588
1589 case "$ac_dir" in
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *)
1592   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1593   # A ".." for each directory in $ac_dir_suffix.
1594   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1595   case $ac_top_builddir_sub in
1596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598   esac ;;
1599 esac
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1604
1605 case $srcdir in
1606   .)  # We are building in place.
1607     ac_srcdir=.
1608     ac_top_srcdir=$ac_top_builddir_sub
1609     ac_abs_top_srcdir=$ac_pwd ;;
1610   [\\/]* | ?:[\\/]* )  # Absolute name.
1611     ac_srcdir=$srcdir$ac_dir_suffix;
1612     ac_top_srcdir=$srcdir
1613     ac_abs_top_srcdir=$srcdir ;;
1614   *) # Relative name.
1615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616     ac_top_srcdir=$ac_top_build_prefix$srcdir
1617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 esac
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
1621     cd "$ac_dir" || { ac_status=$?; continue; }
1622     # Check for guested configure.
1623     if test -f "$ac_srcdir/configure.gnu"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626     elif test -f "$ac_srcdir/configure"; then
1627       echo &&
1628       $SHELL "$ac_srcdir/configure" --help=recursive
1629     else
1630       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631     fi || ac_status=$?
1632     cd "$ac_pwd" || { ac_status=$?; break; }
1633   done
1634 fi
1635
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1638   cat <<\_ACEOF
1639 configure
1640 generated by GNU Autoconf 2.61
1641
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1646 _ACEOF
1647   exit
1648 fi
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1652
1653 It was created by $as_me, which was
1654 generated by GNU Autoconf 2.61.  Invocation command line was
1655
1656   $ $0 $@
1657
1658 _ACEOF
1659 exec 5>>config.log
1660 {
1661 cat <<_ASUNAME
1662 ## --------- ##
1663 ## Platform. ##
1664 ## --------- ##
1665
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1674
1675 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1676 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1679 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1680 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1681 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1682
1683 _ASUNAME
1684
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688   IFS=$as_save_IFS
1689   test -z "$as_dir" && as_dir=.
1690   echo "PATH: $as_dir"
1691 done
1692 IFS=$as_save_IFS
1693
1694 } >&5
1695
1696 cat >&5 <<_ACEOF
1697
1698
1699 ## ----------- ##
1700 ## Core tests. ##
1701 ## ----------- ##
1702
1703 _ACEOF
1704
1705
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_configure_args=
1712 ac_configure_args0=
1713 ac_configure_args1=
1714 ac_must_keep_next=false
1715 for ac_pass in 1 2
1716 do
1717   for ac_arg
1718   do
1719     case $ac_arg in
1720     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722     | -silent | --silent | --silen | --sile | --sil)
1723       continue ;;
1724     *\'*)
1725       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726     esac
1727     case $ac_pass in
1728     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729     2)
1730       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731       if test $ac_must_keep_next = true; then
1732         ac_must_keep_next=false # Got value, back to normal.
1733       else
1734         case $ac_arg in
1735           *=* | --config-cache | -C | -disable-* | --disable-* \
1736           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738           | -with-* | --with-* | -without-* | --without-* | --x)
1739             case "$ac_configure_args0 " in
1740               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741             esac
1742             ;;
1743           -* ) ac_must_keep_next=true ;;
1744         esac
1745       fi
1746       ac_configure_args="$ac_configure_args '$ac_arg'"
1747       ;;
1748     esac
1749   done
1750 done
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log.  We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760   # Save into config.log some information that might help in debugging.
1761   {
1762     echo
1763
1764     cat <<\_ASBOX
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1768 _ASBOX
1769     echo
1770     # The following way of writing the cache mishandles newlines in values,
1771 (
1772   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773     eval ac_val=\$$ac_var
1774     case $ac_val in #(
1775     *${as_nl}*)
1776       case $ac_var in #(
1777       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779       esac
1780       case $ac_var in #(
1781       _ | IFS | as_nl) ;; #(
1782       *) $as_unset $ac_var ;;
1783       esac ;;
1784     esac
1785   done
1786   (set) 2>&1 |
1787     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788     *${as_nl}ac_space=\ *)
1789       sed -n \
1790         "s/'\''/'\''\\\\'\'''\''/g;
1791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792       ;; #(
1793     *)
1794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795       ;;
1796     esac |
1797     sort
1798 )
1799     echo
1800
1801     cat <<\_ASBOX
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1805 _ASBOX
1806     echo
1807     for ac_var in $ac_subst_vars
1808     do
1809       eval ac_val=\$$ac_var
1810       case $ac_val in
1811       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812       esac
1813       echo "$ac_var='\''$ac_val'\''"
1814     done | sort
1815     echo
1816
1817     if test -n "$ac_subst_files"; then
1818       cat <<\_ASBOX
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1822 _ASBOX
1823       echo
1824       for ac_var in $ac_subst_files
1825       do
1826         eval ac_val=\$$ac_var
1827         case $ac_val in
1828         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829         esac
1830         echo "$ac_var='\''$ac_val'\''"
1831       done | sort
1832       echo
1833     fi
1834
1835     if test -s confdefs.h; then
1836       cat <<\_ASBOX
1837 ## ----------- ##
1838 ## confdefs.h. ##
1839 ## ----------- ##
1840 _ASBOX
1841       echo
1842       cat confdefs.h
1843       echo
1844     fi
1845     test "$ac_signal" != 0 &&
1846       echo "$as_me: caught signal $ac_signal"
1847     echo "$as_me: exit $exit_status"
1848   } >&5
1849   rm -f core *.core core.conftest.* &&
1850     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851     exit $exit_status
1852 ' 0
1853 for ac_signal in 1 2 13 15; do
1854   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1857
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1860
1861 # Predefined preprocessor variables.
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 _ACEOF
1886
1887
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891   set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 else
1895   set x "$ac_default_prefix/share/config.site" \
1896         "$ac_default_prefix/etc/config.site"
1897 fi
1898 shift
1899 for ac_site_file
1900 do
1901   if test -r "$ac_site_file"; then
1902     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904     sed 's/^/| /' "$ac_site_file" >&5
1905     . "$ac_site_file"
1906   fi
1907 done
1908
1909 if test -r "$cache_file"; then
1910   # Some versions of bash will fail to source /dev/null (special
1911   # files actually), so we avoid doing that.
1912   if test -f "$cache_file"; then
1913     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1915     case $cache_file in
1916       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917       *)                      . "./$cache_file";;
1918     esac
1919   fi
1920 else
1921   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1923   >$cache_file
1924 fi
1925
1926 # Check that the precious variables saved in the cache have kept the same
1927 # value.
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931   eval ac_new_set=\$ac_env_${ac_var}_set
1932   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933   eval ac_new_val=\$ac_env_${ac_var}_value
1934   case $ac_old_set,$ac_new_set in
1935     set,)
1936       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938       ac_cache_corrupted=: ;;
1939     ,set)
1940       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942       ac_cache_corrupted=: ;;
1943     ,);;
1944     *)
1945       if test "x$ac_old_val" != "x$ac_new_val"; then
1946         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1949 echo "$as_me:   former value:  $ac_old_val" >&2;}
1950         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1951 echo "$as_me:   current value: $ac_new_val" >&2;}
1952         ac_cache_corrupted=:
1953       fi;;
1954   esac
1955   # Pass precious variables to config.status.
1956   if test "$ac_new_set" = set; then
1957     case $ac_new_val in
1958     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     *) ac_arg=$ac_var=$ac_new_val ;;
1960     esac
1961     case " $ac_configure_args " in
1962       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964     esac
1965   fi
1966 done
1967 if $ac_cache_corrupted; then
1968   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972    { (exit 1); exit 1; }; }
1973 fi
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991 ac_ext=c
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996
1997
1998 BUILD_DIR=`pwd`
1999 cd ..
2000 TOP_DIR=`pwd`
2001 cd ${BUILD_DIR}
2002
2003
2004 ac_aux_dir=
2005 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2006   if test -f "$ac_dir/install-sh"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/install-sh -c"
2009     break
2010   elif test -f "$ac_dir/install.sh"; then
2011     ac_aux_dir=$ac_dir
2012     ac_install_sh="$ac_aux_dir/install.sh -c"
2013     break
2014   elif test -f "$ac_dir/shtool"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/shtool install -c"
2017     break
2018   fi
2019 done
2020 if test -z "$ac_aux_dir"; then
2021   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2023    { (exit 1); exit 1; }; }
2024 fi
2025
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2033
2034
2035 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2036
2037
2038
2039
2040
2041 for ac_prog in true
2042 do
2043   # Extract the first word of "$ac_prog", so it can be a program name with args.
2044 set dummy $ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   case $TRUEPRG in
2051   [\\/]* | ?:[\\/]*)
2052   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2053   ;;
2054   *)
2055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070   ;;
2071 esac
2072 fi
2073 TRUEPRG=$ac_cv_path_TRUEPRG
2074 if test -n "$TRUEPRG"; then
2075   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2076 echo "${ECHO_T}$TRUEPRG" >&6; }
2077 else
2078   { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2080 fi
2081
2082
2083   test -n "$TRUEPRG" && break
2084 done
2085 test -n "$TRUEPRG" || TRUEPRG=":"
2086
2087 for ac_prog in false
2088 do
2089   # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   case $FALSEPRG in
2097   [\\/]* | ?:[\\/]*)
2098   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2099   ;;
2100   *)
2101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114 IFS=$as_save_IFS
2115
2116   ;;
2117 esac
2118 fi
2119 FALSEPRG=$ac_cv_path_FALSEPRG
2120 if test -n "$FALSEPRG"; then
2121   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2122 echo "${ECHO_T}$FALSEPRG" >&6; }
2123 else
2124   { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2126 fi
2127
2128
2129   test -n "$FALSEPRG" && break
2130 done
2131 test -n "$FALSEPRG" || FALSEPRG=":"
2132
2133
2134
2135 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2136 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2137 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2138 echo "configuring for bacula $VERSION ($DATE)"
2139
2140
2141
2142 ac_ext=c
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147 if test -n "$ac_tool_prefix"; then
2148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171 IFS=$as_save_IFS
2172
2173 fi
2174 fi
2175 CC=$ac_cv_prog_CC
2176 if test -n "$CC"; then
2177   { echo "$as_me:$LINENO: result: $CC" >&5
2178 echo "${ECHO_T}$CC" >&6; }
2179 else
2180   { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2182 fi
2183
2184
2185 fi
2186 if test -z "$ac_cv_prog_CC"; then
2187   ac_ct_CC=$CC
2188   # Extract the first word of "gcc", so it can be a program name with args.
2189 set dummy gcc; ac_word=$2
2190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test -n "$ac_ct_CC"; then
2196   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201   IFS=$as_save_IFS
2202   test -z "$as_dir" && as_dir=.
2203   for ac_exec_ext in '' $ac_executable_extensions; do
2204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205     ac_cv_prog_ac_ct_CC="gcc"
2206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207     break 2
2208   fi
2209 done
2210 done
2211 IFS=$as_save_IFS
2212
2213 fi
2214 fi
2215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2216 if test -n "$ac_ct_CC"; then
2217   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2218 echo "${ECHO_T}$ac_ct_CC" >&6; }
2219 else
2220   { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2222 fi
2223
2224   if test "x$ac_ct_CC" = x; then
2225     CC=""
2226   else
2227     case $cross_compiling:$ac_tool_warned in
2228 yes:)
2229 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2230 whose name does not start with the host triplet.  If you think this
2231 configuration is useful to you, please write to autoconf@gnu.org." >&5
2232 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2233 whose name does not start with the host triplet.  If you think this
2234 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2235 ac_tool_warned=yes ;;
2236 esac
2237     CC=$ac_ct_CC
2238   fi
2239 else
2240   CC="$ac_cv_prog_CC"
2241 fi
2242
2243 if test -z "$CC"; then
2244           if test -n "$ac_tool_prefix"; then
2245     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}cc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   if test -n "$CC"; then
2253   ac_cv_prog_CC="$CC" # Let the user override the test.
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260   for ac_exec_ext in '' $ac_executable_extensions; do
2261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262     ac_cv_prog_CC="${ac_tool_prefix}cc"
2263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264     break 2
2265   fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270 fi
2271 fi
2272 CC=$ac_cv_prog_CC
2273 if test -n "$CC"; then
2274   { echo "$as_me:$LINENO: result: $CC" >&5
2275 echo "${ECHO_T}$CC" >&6; }
2276 else
2277   { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 fi
2280
2281
2282   fi
2283 fi
2284 if test -z "$CC"; then
2285   # Extract the first word of "cc", so it can be a program name with args.
2286 set dummy cc; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_CC+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$CC"; then
2293   ac_cv_prog_CC="$CC" # Let the user override the test.
2294 else
2295   ac_prog_rejected=no
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2304        ac_prog_rejected=yes
2305        continue
2306      fi
2307     ac_cv_prog_CC="cc"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2314
2315 if test $ac_prog_rejected = yes; then
2316   # We found a bogon in the path, so make sure we never use it.
2317   set dummy $ac_cv_prog_CC
2318   shift
2319   if test $# != 0; then
2320     # We chose a different compiler from the bogus one.
2321     # However, it has the same basename, so the bogon will be chosen
2322     # first if we set CC to just the basename; use the full file name.
2323     shift
2324     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2325   fi
2326 fi
2327 fi
2328 fi
2329 CC=$ac_cv_prog_CC
2330 if test -n "$CC"; then
2331   { echo "$as_me:$LINENO: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6; }
2333 else
2334   { echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6; }
2336 fi
2337
2338
2339 fi
2340 if test -z "$CC"; then
2341   if test -n "$ac_tool_prefix"; then
2342   for ac_prog in cl.exe
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_CC+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CC"; then
2352   ac_cv_prog_CC="$CC" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 CC=$ac_cv_prog_CC
2372 if test -n "$CC"; then
2373   { echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6; }
2375 else
2376   { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380
2381     test -n "$CC" && break
2382   done
2383 fi
2384 if test -z "$CC"; then
2385   ac_ct_CC=$CC
2386   for ac_prog in cl.exe
2387 do
2388   # Extract the first word of "$ac_prog", so it can be a program name with args.
2389 set dummy $ac_prog; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$ac_ct_CC"; then
2396   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405     ac_cv_prog_ac_ct_CC="$ac_prog"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418 echo "${ECHO_T}$ac_ct_CC" >&6; }
2419 else
2420   { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2422 fi
2423
2424
2425   test -n "$ac_ct_CC" && break
2426 done
2427
2428   if test "x$ac_ct_CC" = x; then
2429     CC=""
2430   else
2431     case $cross_compiling:$ac_tool_warned in
2432 yes:)
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet.  If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet.  If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2440 esac
2441     CC=$ac_ct_CC
2442   fi
2443 fi
2444
2445 fi
2446
2447
2448 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: no acceptable C compiler found in \$PATH
2451 See \`config.log' for more details." >&2;}
2452    { (exit 1); exit 1; }; }
2453
2454 # Provide some information about the compiler.
2455 echo "$as_me:$LINENO: checking for C compiler version" >&5
2456 ac_compiler=`set X $ac_compile; echo $2`
2457 { (ac_try="$ac_compiler --version >&5"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463   (eval "$ac_compiler --version >&5") 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }
2467 { (ac_try="$ac_compiler -v >&5"
2468 case "(($ac_try" in
2469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470   *) ac_try_echo=$ac_try;;
2471 esac
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473   (eval "$ac_compiler -v >&5") 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }
2477 { (ac_try="$ac_compiler -V >&5"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_compiler -V >&5") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }
2487
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494
2495 int
2496 main ()
2497 {
2498
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 ac_clean_files_save=$ac_clean_files
2504 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2505 # Try to create an executable without -o first, disregard a.out.
2506 # It will help us diagnose broken compilers, and finding out an intuition
2507 # of exeext.
2508 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2509 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2510 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2511 #
2512 # List of possible output files, starting from the most likely.
2513 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2514 # only as a last resort.  b.out is created by i960 compilers.
2515 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2516 #
2517 # The IRIX 6 linker writes into existing files which may not be
2518 # executable, retaining their permissions.  Remove them first so a
2519 # subsequent execution test works.
2520 ac_rmfiles=
2521 for ac_file in $ac_files
2522 do
2523   case $ac_file in
2524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2525     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2526   esac
2527 done
2528 rm -f $ac_rmfiles
2529
2530 if { (ac_try="$ac_link_default"
2531 case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536   (eval "$ac_link_default") 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; then
2540   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2541 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2542 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2543 # so that the user can short-circuit this test for compilers unknown to
2544 # Autoconf.
2545 for ac_file in $ac_files ''
2546 do
2547   test -f "$ac_file" || continue
2548   case $ac_file in
2549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2550         ;;
2551     [ab].out )
2552         # We found the default executable, but exeext='' is most
2553         # certainly right.
2554         break;;
2555     *.* )
2556         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2557         then :; else
2558            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559         fi
2560         # We set ac_cv_exeext here because the later test for it is not
2561         # safe: cross compilers may not add the suffix if given an `-o'
2562         # argument, so we may need to know it at that point already.
2563         # Even if this section looks crufty: it has the advantage of
2564         # actually working.
2565         break;;
2566     * )
2567         break;;
2568   esac
2569 done
2570 test "$ac_cv_exeext" = no && ac_cv_exeext=
2571
2572 else
2573   ac_file=''
2574 fi
2575
2576 { echo "$as_me:$LINENO: result: $ac_file" >&5
2577 echo "${ECHO_T}$ac_file" >&6; }
2578 if test -z "$ac_file"; then
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&5
2584 echo "$as_me: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&2;}
2586    { (exit 77); exit 77; }; }
2587 fi
2588
2589 ac_exeext=$ac_cv_exeext
2590
2591 # Check that the compiler produces executables we can run.  If not, either
2592 # the compiler is broken, or we cross compile.
2593 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2596 # If not cross compiling, check that we can run a simple program.
2597 if test "$cross_compiling" != yes; then
2598   if { ac_try='./$ac_file'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608     cross_compiling=no
2609   else
2610     if test "$cross_compiling" = maybe; then
2611         cross_compiling=yes
2612     else
2613         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot run C compiled programs.
2617 If you meant to cross compile, use \`--host'.
2618 See \`config.log' for more details." >&2;}
2619    { (exit 1); exit 1; }; }
2620     fi
2621   fi
2622 fi
2623 { echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6; }
2625
2626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627 ac_clean_files=$ac_clean_files_save
2628 # Check that the compiler produces executables we can run.  If not, either
2629 # the compiler is broken, or we cross compile.
2630 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2632 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633 echo "${ECHO_T}$cross_compiling" >&6; }
2634
2635 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2637 if { (ac_try="$ac_link"
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_link") 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; then
2647   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2648 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2649 # work properly (i.e., refer to `conftest.exe'), while it won't with
2650 # `rm'.
2651 for ac_file in conftest.exe conftest conftest.*; do
2652   test -f "$ac_file" || continue
2653   case $ac_file in
2654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2655     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2656           break;;
2657     * ) break;;
2658   esac
2659 done
2660 else
2661   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2664 See \`config.log' for more details." >&2;}
2665    { (exit 1); exit 1; }; }
2666 fi
2667
2668 rm -f conftest$ac_cv_exeext
2669 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2670 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2671
2672 rm -f conftest.$ac_ext
2673 EXEEXT=$ac_cv_exeext
2674 ac_exeext=$EXEEXT
2675 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2676 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2677 if test "${ac_cv_objext+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686
2687 int
2688 main ()
2689 {
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.o conftest.obj
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>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; then
2706   for ac_file in conftest.o conftest.obj conftest.*; do
2707   test -f "$ac_file" || continue;
2708   case $ac_file in
2709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2710     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711        break;;
2712   esac
2713 done
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&2;}
2722    { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2726 fi
2727 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2728 echo "${ECHO_T}$ac_cv_objext" >&6; }
2729 OBJEXT=$ac_cv_objext
2730 ac_objext=$OBJEXT
2731 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742
2743 int
2744 main ()
2745 {
2746 #ifndef __GNUC__
2747        choke me
2748 #endif
2749
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (ac_try="$ac_compile"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_compile") 2>conftest.er1
2762   ac_status=$?
2763   grep -v '^ *+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } && {
2768          test -z "$ac_c_werror_flag" ||
2769          test ! -s conftest.err
2770        } && test -s conftest.$ac_objext; then
2771   ac_compiler_gnu=yes
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776         ac_compiler_gnu=no
2777 fi
2778
2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2781
2782 fi
2783 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2785 GCC=`test $ac_compiler_gnu = yes && echo yes`
2786 ac_test_CFLAGS=${CFLAGS+set}
2787 ac_save_CFLAGS=$CFLAGS
2788 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2789 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_cc_g+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   ac_save_c_werror_flag=$ac_c_werror_flag
2794    ac_c_werror_flag=yes
2795    ac_cv_prog_cc_g=no
2796    CFLAGS="-g"
2797    cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803
2804 int
2805 main ()
2806 {
2807
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819   (eval "$ac_compile") 2>conftest.er1
2820   ac_status=$?
2821   grep -v '^ *+' conftest.er1 >conftest.err
2822   rm -f conftest.er1
2823   cat conftest.err >&5
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); } && {
2826          test -z "$ac_c_werror_flag" ||
2827          test ! -s conftest.err
2828        } && test -s conftest.$ac_objext; then
2829   ac_cv_prog_cc_g=yes
2830 else
2831   echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834         CFLAGS=""
2835       cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h.  */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h.  */
2841
2842 int
2843 main ()
2844 {
2845
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2852 case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857   (eval "$ac_compile") 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } && {
2864          test -z "$ac_c_werror_flag" ||
2865          test ! -s conftest.err
2866        } && test -s conftest.$ac_objext; then
2867   :
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872         ac_c_werror_flag=$ac_save_c_werror_flag
2873          CFLAGS="-g"
2874          cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880
2881 int
2882 main ()
2883 {
2884
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compile") 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } && {
2903          test -z "$ac_c_werror_flag" ||
2904          test ! -s conftest.err
2905        } && test -s conftest.$ac_objext; then
2906   ac_cv_prog_cc_g=yes
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911
2912 fi
2913
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 fi
2916
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 fi
2919
2920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921    ac_c_werror_flag=$ac_save_c_werror_flag
2922 fi
2923 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2924 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2925 if test "$ac_test_CFLAGS" = set; then
2926   CFLAGS=$ac_save_CFLAGS
2927 elif test $ac_cv_prog_cc_g = yes; then
2928   if test "$GCC" = yes; then
2929     CFLAGS="-g -O2"
2930   else
2931     CFLAGS="-g"
2932   fi
2933 else
2934   if test "$GCC" = yes; then
2935     CFLAGS="-O2"
2936   else
2937     CFLAGS=
2938   fi
2939 fi
2940 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2941 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2942 if test "${ac_cv_prog_cc_c89+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   ac_cv_prog_cc_c89=no
2946 ac_save_CC=$CC
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h.  */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h.  */
2953 #include <stdarg.h>
2954 #include <stdio.h>
2955 #include <sys/types.h>
2956 #include <sys/stat.h>
2957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2958 struct buf { int x; };
2959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2960 static char *e (p, i)
2961      char **p;
2962      int i;
2963 {
2964   return p[i];
2965 }
2966 static char *f (char * (*g) (char **, int), char **p, ...)
2967 {
2968   char *s;
2969   va_list v;
2970   va_start (v,p);
2971   s = g (p, va_arg (v,int));
2972   va_end (v);
2973   return s;
2974 }
2975
2976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2977    function prototypes and stuff, but not '\xHH' hex character constants.
2978    These don't provoke an error unfortunately, instead are silently treated
2979    as 'x'.  The following induces an error, until -std is added to get
2980    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2981    array size at least.  It's necessary to write '\x00'==0 to get something
2982    that's true only with -std.  */
2983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2984
2985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2986    inside strings and character constants.  */
2987 #define FOO(x) 'x'
2988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2989
2990 int test (int i, double x);
2991 struct s1 {int (*f) (int a);};
2992 struct s2 {int (*f) (double a);};
2993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2994 int argc;
2995 char **argv;
2996 int
2997 main ()
2998 {
2999 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3000   ;
3001   return 0;
3002 }
3003 _ACEOF
3004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3005         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3006 do
3007   CC="$ac_save_CC $ac_arg"
3008   rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_compile") 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } && {
3022          test -z "$ac_c_werror_flag" ||
3023          test ! -s conftest.err
3024        } && test -s conftest.$ac_objext; then
3025   ac_cv_prog_cc_c89=$ac_arg
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030
3031 fi
3032
3033 rm -f core conftest.err conftest.$ac_objext
3034   test "x$ac_cv_prog_cc_c89" != "xno" && break
3035 done
3036 rm -f conftest.$ac_ext
3037 CC=$ac_save_CC
3038
3039 fi
3040 # AC_CACHE_VAL
3041 case "x$ac_cv_prog_cc_c89" in
3042   x)
3043     { echo "$as_me:$LINENO: result: none needed" >&5
3044 echo "${ECHO_T}none needed" >&6; } ;;
3045   xno)
3046     { echo "$as_me:$LINENO: result: unsupported" >&5
3047 echo "${ECHO_T}unsupported" >&6; } ;;
3048   *)
3049     CC="$CC $ac_cv_prog_cc_c89"
3050     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3051 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3052 esac
3053
3054
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060
3061 ac_ext=cpp
3062 ac_cpp='$CXXCPP $CPPFLAGS'
3063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3066 if test -z "$CXX"; then
3067   if test -n "$CCC"; then
3068     CXX=$CCC
3069   else
3070     if test -n "$ac_tool_prefix"; then
3071   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3072   do
3073     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_CXX+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   if test -n "$CXX"; then
3081   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086   IFS=$as_save_IFS
3087   test -z "$as_dir" && as_dir=.
3088   for ac_exec_ext in '' $ac_executable_extensions; do
3089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092     break 2
3093   fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 CXX=$ac_cv_prog_CXX
3101 if test -n "$CXX"; then
3102   { echo "$as_me:$LINENO: result: $CXX" >&5
3103 echo "${ECHO_T}$CXX" >&6; }
3104 else
3105   { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3107 fi
3108
3109
3110     test -n "$CXX" && break
3111   done
3112 fi
3113 if test -z "$CXX"; then
3114   ac_ct_CXX=$CXX
3115   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3116 do
3117   # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3121 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   if test -n "$ac_ct_CXX"; then
3125   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132   for ac_exec_ext in '' $ac_executable_extensions; do
3133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134     ac_cv_prog_ac_ct_CXX="$ac_prog"
3135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139 done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3145 if test -n "$ac_ct_CXX"; then
3146   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3147 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3148 else
3149   { echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6; }
3151 fi
3152
3153
3154   test -n "$ac_ct_CXX" && break
3155 done
3156
3157   if test "x$ac_ct_CXX" = x; then
3158     CXX="g++"
3159   else
3160     case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3163 whose name does not start with the host triplet.  If you think this
3164 configuration is useful to you, please write to autoconf@gnu.org." >&5
3165 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3166 whose name does not start with the host triplet.  If you think this
3167 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170     CXX=$ac_ct_CXX
3171   fi
3172 fi
3173
3174   fi
3175 fi
3176 # Provide some information about the compiler.
3177 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3178 ac_compiler=`set X $ac_compile; echo $2`
3179 { (ac_try="$ac_compiler --version >&5"
3180 case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_compiler --version >&5") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }
3189 { (ac_try="$ac_compiler -v >&5"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_compiler -v >&5") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }
3199 { (ac_try="$ac_compiler -V >&5"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compiler -V >&5") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }
3209
3210 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3211 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3212 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225 #ifndef __GNUC__
3226        choke me
3227 #endif
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_compile") 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } && {
3247          test -z "$ac_cxx_werror_flag" ||
3248          test ! -s conftest.err
3249        } && test -s conftest.$ac_objext; then
3250   ac_compiler_gnu=yes
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255         ac_compiler_gnu=no
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3260
3261 fi
3262 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3263 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3264 GXX=`test $ac_compiler_gnu = yes && echo yes`
3265 ac_test_CXXFLAGS=${CXXFLAGS+set}
3266 ac_save_CXXFLAGS=$CXXFLAGS
3267 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3268 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cxx_g+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3273    ac_cxx_werror_flag=yes
3274    ac_cv_prog_cxx_g=no
3275    CXXFLAGS="-g"
3276    cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282
3283 int
3284 main ()
3285 {
3286
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_compile") 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } && {
3305          test -z "$ac_cxx_werror_flag" ||
3306          test ! -s conftest.err
3307        } && test -s conftest.$ac_objext; then
3308   ac_cv_prog_cxx_g=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313         CXXFLAGS=""
3314       cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_compile") 2>conftest.er1
3337   ac_status=$?
3338   grep -v '^ *+' conftest.er1 >conftest.err
3339   rm -f conftest.er1
3340   cat conftest.err >&5
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); } && {
3343          test -z "$ac_cxx_werror_flag" ||
3344          test ! -s conftest.err
3345        } && test -s conftest.$ac_objext; then
3346   :
3347 else
3348   echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3352          CXXFLAGS="-g"
3353          cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h.  */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h.  */
3359
3360 int
3361 main ()
3362 {
3363
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_compile") 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } && {
3382          test -z "$ac_cxx_werror_flag" ||
3383          test ! -s conftest.err
3384        } && test -s conftest.$ac_objext; then
3385   ac_cv_prog_cxx_g=yes
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390
3391 fi
3392
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 fi
3395
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3401 fi
3402 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3403 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3404 if test "$ac_test_CXXFLAGS" = set; then
3405   CXXFLAGS=$ac_save_CXXFLAGS
3406 elif test $ac_cv_prog_cxx_g = yes; then
3407   if test "$GXX" = yes; then
3408     CXXFLAGS="-g -O2"
3409   else
3410     CXXFLAGS="-g"
3411   fi
3412 else
3413   if test "$GXX" = yes; then
3414     CXXFLAGS="-O2"
3415   else
3416     CXXFLAGS=
3417   fi
3418 fi
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
3425 if test "x$CC" != xcc; then
3426   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3427 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3428 else
3429   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3430 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3431 fi
3432 set dummy $CC; ac_cc=`echo $2 |
3433                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3434 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443
3444 int
3445 main ()
3446 {
3447
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 # Make sure it works both with $CC and with simple cc.
3453 # We do the test twice because some compilers refuse to overwrite an
3454 # existing .o file with -o, though they will create one.
3455 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3456 rm -f conftest2.*
3457 if { (case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462   (eval "$ac_try") 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } &&
3466    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471   (eval "$ac_try") 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); };
3475 then
3476   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3477   if test "x$CC" != xcc; then
3478     # Test first that cc exists at all.
3479     if { ac_try='cc -c conftest.$ac_ext >&5'
3480   { (case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485   (eval "$ac_try") 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3490       rm -f conftest2.*
3491       if { (case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_try") 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } &&
3500          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505   (eval "$ac_try") 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); };
3509       then
3510         # cc works too.
3511         :
3512       else
3513         # cc exists but doesn't like -o.
3514         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3515       fi
3516     fi
3517   fi
3518 else
3519   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3520 fi
3521 rm -f core conftest*
3522
3523 fi
3524 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3525   { echo "$as_me:$LINENO: result: yes" >&5
3526 echo "${ECHO_T}yes" >&6; }
3527 else
3528   { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3530
3531 cat >>confdefs.h <<\_ACEOF
3532 #define NO_MINUS_C_MINUS_O 1
3533 _ACEOF
3534
3535 fi
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3543 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3544 # On Suns, sometimes $CPP names a directory.
3545 if test -n "$CPP" && test -d "$CPP"; then
3546   CPP=
3547 fi
3548 if test -z "$CPP"; then
3549   if test "${ac_cv_prog_CPP+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552       # Double quotes because CPP needs to be expanded
3553     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3554     do
3555       ac_preproc_ok=false
3556 for ac_c_preproc_warn_flag in '' yes
3557 do
3558   # Use a header file that comes with gcc, so configuring glibc
3559   # with a fresh cross-compiler works.
3560   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561   # <limits.h> exists even on freestanding compilers.
3562   # On the NeXT, cc -E runs the code through the compiler's parser,
3563   # not just through cpp. "Syntax error" is here to catch this case.
3564   cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570 #ifdef __STDC__
3571 # include <limits.h>
3572 #else
3573 # include <assert.h>
3574 #endif
3575                      Syntax error
3576 _ACEOF
3577 if { (ac_try="$ac_cpp conftest.$ac_ext"
3578 case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } >/dev/null && {
3590          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3591          test ! -s conftest.err
3592        }; then
3593   :
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598   # Broken: fails on valid input.
3599 continue
3600 fi
3601
3602 rm -f conftest.err conftest.$ac_ext
3603
3604   # OK, works on sane cases.  Now check whether nonexistent headers
3605   # can be detected and how.
3606   cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612 #include <ac_nonexistent.h>
3613 _ACEOF
3614 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } >/dev/null && {
3627          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3628          test ! -s conftest.err
3629        }; then
3630   # Broken: success on invalid input.
3631 continue
3632 else
3633   echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636   # Passes both tests.
3637 ac_preproc_ok=:
3638 break
3639 fi
3640
3641 rm -f conftest.err conftest.$ac_ext
3642
3643 done
3644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645 rm -f conftest.err conftest.$ac_ext
3646 if $ac_preproc_ok; then
3647   break
3648 fi
3649
3650     done
3651     ac_cv_prog_CPP=$CPP
3652
3653 fi
3654   CPP=$ac_cv_prog_CPP
3655 else
3656   ac_cv_prog_CPP=$CPP
3657 fi
3658 { echo "$as_me:$LINENO: result: $CPP" >&5
3659 echo "${ECHO_T}$CPP" >&6; }
3660 ac_preproc_ok=false
3661 for ac_c_preproc_warn_flag in '' yes
3662 do
3663   # Use a header file that comes with gcc, so configuring glibc
3664   # with a fresh cross-compiler works.
3665   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3666   # <limits.h> exists even on freestanding compilers.
3667   # On the NeXT, cc -E runs the code through the compiler's parser,
3668   # not just through cpp. "Syntax error" is here to catch this case.
3669   cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675 #ifdef __STDC__
3676 # include <limits.h>
3677 #else
3678 # include <assert.h>
3679 #endif
3680                      Syntax error
3681 _ACEOF
3682 if { (ac_try="$ac_cpp conftest.$ac_ext"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3689   ac_status=$?
3690   grep -v '^ *+' conftest.er1 >conftest.err
3691   rm -f conftest.er1
3692   cat conftest.err >&5
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); } >/dev/null && {
3695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3696          test ! -s conftest.err
3697        }; then
3698   :
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703   # Broken: fails on valid input.
3704 continue
3705 fi
3706
3707 rm -f conftest.err conftest.$ac_ext
3708
3709   # OK, works on sane cases.  Now check whether nonexistent headers
3710   # can be detected and how.
3711   cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h.  */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h.  */
3717 #include <ac_nonexistent.h>
3718 _ACEOF
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } >/dev/null && {
3732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3733          test ! -s conftest.err
3734        }; then
3735   # Broken: success on invalid input.
3736 continue
3737 else
3738   echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741   # Passes both tests.
3742 ac_preproc_ok=:
3743 break
3744 fi
3745
3746 rm -f conftest.err conftest.$ac_ext
3747
3748 done
3749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3750 rm -f conftest.err conftest.$ac_ext
3751 if $ac_preproc_ok; then
3752   :
3753 else
3754   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3755 See \`config.log' for more details." >&5
3756 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3757 See \`config.log' for more details." >&2;}
3758    { (exit 1); exit 1; }; }
3759 fi
3760
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767
3768 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3769 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3770 if test "${ac_cv_path_GREP+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   # Extract the first word of "grep ggrep" to use in msg output
3774 if test -z "$GREP"; then
3775 set dummy grep ggrep; ac_prog_name=$2
3776 if test "${ac_cv_path_GREP+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   ac_path_GREP_found=false
3780 # Loop through the user's path and test for each of PROGNAME-LIST
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_prog in grep ggrep; do
3787   for ac_exec_ext in '' $ac_executable_extensions; do
3788     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3789     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3790     # Check for GNU ac_path_GREP and select it if it is found.
3791   # Check for GNU $ac_path_GREP
3792 case `"$ac_path_GREP" --version 2>&1` in
3793 *GNU*)
3794   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3795 *)
3796   ac_count=0
3797   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3798   while :
3799   do
3800     cat "conftest.in" "conftest.in" >"conftest.tmp"
3801     mv "conftest.tmp" "conftest.in"
3802     cp "conftest.in" "conftest.nl"
3803     echo 'GREP' >> "conftest.nl"
3804     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3806     ac_count=`expr $ac_count + 1`
3807     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3808       # Best one so far, save it but keep looking for a better one
3809       ac_cv_path_GREP="$ac_path_GREP"
3810       ac_path_GREP_max=$ac_count
3811     fi
3812     # 10*(2^10) chars as input seems more than enough
3813     test $ac_count -gt 10 && break
3814   done
3815   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816 esac
3817
3818
3819     $ac_path_GREP_found && break 3
3820   done
3821 done
3822
3823 done
3824 IFS=$as_save_IFS
3825
3826
3827 fi
3828
3829 GREP="$ac_cv_path_GREP"
3830 if test -z "$GREP"; then
3831   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3832 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3833    { (exit 1); exit 1; }; }
3834 fi
3835
3836 else
3837   ac_cv_path_GREP=$GREP
3838 fi
3839
3840
3841 fi
3842 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3843 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3844  GREP="$ac_cv_path_GREP"
3845
3846
3847 { echo "$as_me:$LINENO: checking for egrep" >&5
3848 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3849 if test "${ac_cv_path_EGREP+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3853    then ac_cv_path_EGREP="$GREP -E"
3854    else
3855      # Extract the first word of "egrep" to use in msg output
3856 if test -z "$EGREP"; then
3857 set dummy egrep; ac_prog_name=$2
3858 if test "${ac_cv_path_EGREP+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861   ac_path_EGREP_found=false
3862 # Loop through the user's path and test for each of PROGNAME-LIST
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868   for ac_prog in egrep; do
3869   for ac_exec_ext in '' $ac_executable_extensions; do
3870     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3871     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3872     # Check for GNU ac_path_EGREP and select it if it is found.
3873   # Check for GNU $ac_path_EGREP
3874 case `"$ac_path_EGREP" --version 2>&1` in
3875 *GNU*)
3876   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3877 *)
3878   ac_count=0
3879   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3880   while :
3881   do
3882     cat "conftest.in" "conftest.in" >"conftest.tmp"
3883     mv "conftest.tmp" "conftest.in"
3884     cp "conftest.in" "conftest.nl"
3885     echo 'EGREP' >> "conftest.nl"
3886     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888     ac_count=`expr $ac_count + 1`
3889     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3890       # Best one so far, save it but keep looking for a better one
3891       ac_cv_path_EGREP="$ac_path_EGREP"
3892       ac_path_EGREP_max=$ac_count
3893     fi
3894     # 10*(2^10) chars as input seems more than enough
3895     test $ac_count -gt 10 && break
3896   done
3897   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898 esac
3899
3900
3901     $ac_path_EGREP_found && break 3
3902   done
3903 done
3904
3905 done
3906 IFS=$as_save_IFS
3907
3908
3909 fi
3910
3911 EGREP="$ac_cv_path_EGREP"
3912 if test -z "$EGREP"; then
3913   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3914 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3915    { (exit 1); exit 1; }; }
3916 fi
3917
3918 else
3919   ac_cv_path_EGREP=$EGREP
3920 fi
3921
3922
3923    fi
3924 fi
3925 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3926 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3927  EGREP="$ac_cv_path_EGREP"
3928
3929
3930 if test $ac_cv_c_compiler_gnu = yes; then
3931     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3932 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3933 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936     ac_pattern="Autoconf.*'x'"
3937   cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <sgtty.h>
3944 Autoconf TIOCGETP
3945 _ACEOF
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3948   ac_cv_prog_gcc_traditional=yes
3949 else
3950   ac_cv_prog_gcc_traditional=no
3951 fi
3952 rm -f conftest*
3953
3954
3955   if test $ac_cv_prog_gcc_traditional = no; then
3956     cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #include <termio.h>
3963 Autoconf TCGETA
3964 _ACEOF
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3967   ac_cv_prog_gcc_traditional=yes
3968 fi
3969 rm -f conftest*
3970
3971   fi
3972 fi
3973 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3974 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3975   if test $ac_cv_prog_gcc_traditional = yes; then
3976     CC="$CC -traditional"
3977   fi
3978 fi
3979
3980 BASECC=`basename $CC`
3981 have_gcc=no
3982 if test "x$BASECC" = xgcc; then
3983    cat >>confdefs.h <<\_ACEOF
3984 #define HAVE_GCC 1
3985 _ACEOF
3986
3987    have_gcc=yes
3988 fi
3989 # Extract the first word of "$CXX", so it can be a program name with args.
3990 set dummy $CXX; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_CXX+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   case $CXX in
3997   [\\/]* | ?:[\\/]*)
3998   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3999   ;;
4000   *)
4001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4017   ;;
4018 esac
4019 fi
4020 CXX=$ac_cv_path_CXX
4021 if test -n "$CXX"; then
4022   { echo "$as_me:$LINENO: result: $CXX" >&5
4023 echo "${ECHO_T}$CXX" >&6; }
4024 else
4025   { echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6; }
4027 fi
4028
4029
4030 if test ! -e $CXX; then
4031    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4032 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4033    { (exit 1); exit 1; }; }
4034 fi
4035
4036 # Find a good install program.  We prefer a C program (faster),
4037 # so one script is as good as another.  But avoid the broken or
4038 # incompatible versions:
4039 # SysV /etc/install, /usr/sbin/install
4040 # SunOS /usr/etc/install
4041 # IRIX /sbin/install
4042 # AIX /bin/install
4043 # AmigaOS /C/install, which installs bootblocks on floppy discs
4044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4047 # OS/2's system install, which has a completely different semantic
4048 # ./install, which can be erroneously created by make from ./install.sh.
4049 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4050 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4051 if test -z "$INSTALL"; then
4052 if test "${ac_cv_path_install+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   # Account for people who put trailing slashes in PATH elements.
4061 case $as_dir/ in
4062   ./ | .// | /cC/* | \
4063   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4064   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4065   /usr/ucb/* ) ;;
4066   *)
4067     # OSF1 and SCO ODT 3.0 have their own names for install.
4068     # Don't use installbsd from OSF since it installs stuff as root
4069     # by default.
4070     for ac_prog in ginstall scoinst install; do
4071       for ac_exec_ext in '' $ac_executable_extensions; do
4072         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4073           if test $ac_prog = install &&
4074             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4075             # AIX install.  It has an incompatible calling convention.
4076             :
4077           elif test $ac_prog = install &&
4078             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4079             # program-specific install script used by HP pwplus--don't use.
4080             :
4081           else
4082             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4083             break 3
4084           fi
4085         fi
4086       done
4087     done
4088     ;;
4089 esac
4090 done
4091 IFS=$as_save_IFS
4092
4093
4094 fi
4095   if test "${ac_cv_path_install+set}" = set; then
4096     INSTALL=$ac_cv_path_install
4097   else
4098     # As a last resort, use the slow shell script.  Don't cache a
4099     # value for INSTALL within a source directory, because that will
4100     # break other packages using the cache if that directory is
4101     # removed, or if the value is a relative name.
4102     INSTALL=$ac_install_sh
4103   fi
4104 fi
4105 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4106 echo "${ECHO_T}$INSTALL" >&6; }
4107
4108 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4109 # It thinks the first close brace ends the variable substitution.
4110 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4111
4112 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4113
4114 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4115
4116 if test -n "$ac_tool_prefix"; then
4117   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4121 if test "${ac_cv_prog_RANLIB+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$RANLIB"; then
4125   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 RANLIB=$ac_cv_prog_RANLIB
4145 if test -n "$RANLIB"; then
4146   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4147 echo "${ECHO_T}$RANLIB" >&6; }
4148 else
4149   { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4151 fi
4152
4153
4154 fi
4155 if test -z "$ac_cv_prog_RANLIB"; then
4156   ac_ct_RANLIB=$RANLIB
4157   # Extract the first word of "ranlib", so it can be a program name with args.
4158 set dummy ranlib; ac_word=$2
4159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   if test -n "$ac_ct_RANLIB"; then
4165   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_exec_ext in '' $ac_executable_extensions; do
4173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174     ac_cv_prog_ac_ct_RANLIB="ranlib"
4175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 fi
4183 fi
4184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4185 if test -n "$ac_ct_RANLIB"; then
4186   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4187 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4188 else
4189   { echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6; }
4191 fi
4192
4193   if test "x$ac_ct_RANLIB" = x; then
4194     RANLIB=":"
4195   else
4196     case $cross_compiling:$ac_tool_warned in
4197 yes:)
4198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4199 whose name does not start with the host triplet.  If you think this
4200 configuration is useful to you, please write to autoconf@gnu.org." >&5
4201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4202 whose name does not start with the host triplet.  If you think this
4203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4204 ac_tool_warned=yes ;;
4205 esac
4206     RANLIB=$ac_ct_RANLIB
4207   fi
4208 else
4209   RANLIB="$ac_cv_prog_RANLIB"
4210 fi
4211
4212 # Extract the first word of "mv", so it can be a program name with args.
4213 set dummy mv; ac_word=$2
4214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4216 if test "${ac_cv_path_MV+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   case $MV in
4220   [\\/]* | ?:[\\/]*)
4221   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4222   ;;
4223   *)
4224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237 IFS=$as_save_IFS
4238
4239   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4240   ;;
4241 esac
4242 fi
4243 MV=$ac_cv_path_MV
4244 if test -n "$MV"; then
4245   { echo "$as_me:$LINENO: result: $MV" >&5
4246 echo "${ECHO_T}$MV" >&6; }
4247 else
4248   { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4250 fi
4251
4252
4253 # Extract the first word of "rm", so it can be a program name with args.
4254 set dummy rm; ac_word=$2
4255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4257 if test "${ac_cv_path_RM+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   case $RM in
4261   [\\/]* | ?:[\\/]*)
4262   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4263   ;;
4264   *)
4265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_exec_ext in '' $ac_executable_extensions; do
4271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4281   ;;
4282 esac
4283 fi
4284 RM=$ac_cv_path_RM
4285 if test -n "$RM"; then
4286   { echo "$as_me:$LINENO: result: $RM" >&5
4287 echo "${ECHO_T}$RM" >&6; }
4288 else
4289   { echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6; }
4291 fi
4292
4293
4294 # Extract the first word of "cp", so it can be a program name with args.
4295 set dummy cp; ac_word=$2
4296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298 if test "${ac_cv_path_CP+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   case $CP in
4302   [\\/]* | ?:[\\/]*)
4303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4304   ;;
4305   *)
4306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4322   ;;
4323 esac
4324 fi
4325 CP=$ac_cv_path_CP
4326 if test -n "$CP"; then
4327   { echo "$as_me:$LINENO: result: $CP" >&5
4328 echo "${ECHO_T}$CP" >&6; }
4329 else
4330   { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4332 fi
4333
4334
4335 # Extract the first word of "sed", so it can be a program name with args.
4336 set dummy sed; ac_word=$2
4337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4339 if test "${ac_cv_path_SED+set}" = set; then
4340   echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342   case $SED in
4343   [\\/]* | ?:[\\/]*)
4344   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4345   ;;
4346   *)
4347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356     break 2
4357   fi
4358 done
4359 done
4360 IFS=$as_save_IFS
4361
4362   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4363   ;;
4364 esac
4365 fi
4366 SED=$ac_cv_path_SED
4367 if test -n "$SED"; then
4368   { echo "$as_me:$LINENO: result: $SED" >&5
4369 echo "${ECHO_T}$SED" >&6; }
4370 else
4371   { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4373 fi
4374
4375
4376 # Extract the first word of "echo", so it can be a program name with args.
4377 set dummy echo; ac_word=$2
4378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380 if test "${ac_cv_path_ECHO+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   case $ECHO in
4384   [\\/]* | ?:[\\/]*)
4385   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4386   ;;
4387   *)
4388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393   for ac_exec_ext in '' $ac_executable_extensions; do
4394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397     break 2
4398   fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4404   ;;
4405 esac
4406 fi
4407 ECHO=$ac_cv_path_ECHO
4408 if test -n "$ECHO"; then
4409   { echo "$as_me:$LINENO: result: $ECHO" >&5
4410 echo "${ECHO_T}$ECHO" >&6; }
4411 else
4412   { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4414 fi
4415
4416
4417 # Extract the first word of "cmp", so it can be a program name with args.
4418 set dummy cmp; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_path_CMP+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   case $CMP in
4425   [\\/]* | ?:[\\/]*)
4426   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4427   ;;
4428   *)
4429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432   IFS=$as_save_IFS
4433   test -z "$as_dir" && as_dir=.
4434   for ac_exec_ext in '' $ac_executable_extensions; do
4435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438     break 2
4439   fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4445   ;;
4446 esac
4447 fi
4448 CMP=$ac_cv_path_CMP
4449 if test -n "$CMP"; then
4450   { echo "$as_me:$LINENO: result: $CMP" >&5
4451 echo "${ECHO_T}$CMP" >&6; }
4452 else
4453   { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4455 fi
4456
4457
4458 # Extract the first word of "tbl", so it can be a program name with args.
4459 set dummy tbl; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_path_TBL+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   case $TBL in
4466   [\\/]* | ?:[\\/]*)
4467   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4468   ;;
4469   *)
4470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4486   ;;
4487 esac
4488 fi
4489 TBL=$ac_cv_path_TBL
4490 if test -n "$TBL"; then
4491   { echo "$as_me:$LINENO: result: $TBL" >&5
4492 echo "${ECHO_T}$TBL" >&6; }
4493 else
4494   { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4496 fi
4497
4498
4499 # Extract the first word of "ar", so it can be a program name with args.
4500 set dummy ar; ac_word=$2
4501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503 if test "${ac_cv_path_AR+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506   case $AR in
4507   [\\/]* | ?:[\\/]*)
4508   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4509   ;;
4510   *)
4511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_exec_ext in '' $ac_executable_extensions; do
4517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4527   ;;
4528 esac
4529 fi
4530 AR=$ac_cv_path_AR
4531 if test -n "$AR"; then
4532   { echo "$as_me:$LINENO: result: $AR" >&5
4533 echo "${ECHO_T}$AR" >&6; }
4534 else
4535   { echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; }
4537 fi
4538
4539
4540 # Extract the first word of "openssl", so it can be a program name with args.
4541 set dummy openssl; ac_word=$2
4542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544 if test "${ac_cv_path_OPENSSL+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547   case $OPENSSL in
4548   [\\/]* | ?:[\\/]*)
4549   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4550   ;;
4551   *)
4552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555   IFS=$as_save_IFS
4556   test -z "$as_dir" && as_dir=.
4557   for ac_exec_ext in '' $ac_executable_extensions; do
4558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561     break 2
4562   fi
4563 done
4564 done
4565 IFS=$as_save_IFS
4566
4567   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4568   ;;
4569 esac
4570 fi
4571 OPENSSL=$ac_cv_path_OPENSSL
4572 if test -n "$OPENSSL"; then
4573   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4574 echo "${ECHO_T}$OPENSSL" >&6; }
4575 else
4576   { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4578 fi
4579
4580
4581 # Extract the first word of "mtx", so it can be a program name with args.
4582 set dummy mtx; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_path_MTX+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   case $MTX in
4589   [\\/]* | ?:[\\/]*)
4590   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4591   ;;
4592   *)
4593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4609   ;;
4610 esac
4611 fi
4612 MTX=$ac_cv_path_MTX
4613 if test -n "$MTX"; then
4614   { echo "$as_me:$LINENO: result: $MTX" >&5
4615 echo "${ECHO_T}$MTX" >&6; }
4616 else
4617   { echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6; }
4619 fi
4620
4621
4622 # Extract the first word of "dd", so it can be a program name with args.
4623 set dummy dd; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_path_DD+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   case $DD in
4630   [\\/]* | ?:[\\/]*)
4631   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4632   ;;
4633   *)
4634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637   IFS=$as_save_IFS
4638   test -z "$as_dir" && as_dir=.
4639   for ac_exec_ext in '' $ac_executable_extensions; do
4640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643     break 2
4644   fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4650   ;;
4651 esac
4652 fi
4653 DD=$ac_cv_path_DD
4654 if test -n "$DD"; then
4655   { echo "$as_me:$LINENO: result: $DD" >&5
4656 echo "${ECHO_T}$DD" >&6; }
4657 else
4658   { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4660 fi
4661
4662
4663 # Extract the first word of "mkisofs", so it can be a program name with args.
4664 set dummy mkisofs; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_path_MKISOFS+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   case $MKISOFS in
4671   [\\/]* | ?:[\\/]*)
4672   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4673   ;;
4674   *)
4675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680   for ac_exec_ext in '' $ac_executable_extensions; do
4681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684     break 2
4685   fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4691   ;;
4692 esac
4693 fi
4694 MKISOFS=$ac_cv_path_MKISOFS
4695 if test -n "$MKISOFS"; then
4696   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4697 echo "${ECHO_T}$MKISOFS" >&6; }
4698 else
4699   { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 fi
4702
4703
4704 # Extract the first word of "python", so it can be a program name with args.
4705 set dummy python; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_path_PYTHON+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   case $PYTHON in
4712   [\\/]* | ?:[\\/]*)
4713   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4714   ;;
4715   *)
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4732   ;;
4733 esac
4734 fi
4735 PYTHON=$ac_cv_path_PYTHON
4736 if test -n "$PYTHON"; then
4737   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4738 echo "${ECHO_T}$PYTHON" >&6; }
4739 else
4740   { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4742 fi
4743
4744
4745 # Extract the first word of "growisofs", so it can be a program name with args.
4746 set dummy growisofs; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   case $GROWISOFS in
4753   [\\/]* | ?:[\\/]*)
4754   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4755   ;;
4756   *)
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_exec_ext in '' $ac_executable_extensions; do
4763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4773   ;;
4774 esac
4775 fi
4776 GROWISOFS=$ac_cv_path_GROWISOFS
4777 if test -n "$GROWISOFS"; then
4778   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4779 echo "${ECHO_T}$GROWISOFS" >&6; }
4780 else
4781   { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4783 fi
4784
4785
4786 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4787 set dummy dvd+rw-mediainfo; ac_word=$2
4788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   case $DVDRWMEDIAINFO in
4794   [\\/]* | ?:[\\/]*)
4795   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4796   ;;
4797   *)
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803   for ac_exec_ext in '' $ac_executable_extensions; do
4804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4814   ;;
4815 esac
4816 fi
4817 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4818 if test -n "$DVDRWMEDIAINFO"; then
4819   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4820 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4821 else
4822   { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4824 fi
4825
4826
4827 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4828 set dummy dvd+rw-format; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   case $DVDRWFORMAT in
4835   [\\/]* | ?:[\\/]*)
4836   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4837   ;;
4838   *)
4839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842   IFS=$as_save_IFS
4843   test -z "$as_dir" && as_dir=.
4844   for ac_exec_ext in '' $ac_executable_extensions; do
4845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848     break 2
4849   fi
4850 done
4851 done
4852 IFS=$as_save_IFS
4853
4854   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4855   ;;
4856 esac
4857 fi
4858 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4859 if test -n "$DVDRWFORMAT"; then
4860   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4861 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4862 else
4863   { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4865 fi
4866
4867
4868 # Extract the first word of "pkg-config", so it can be a program name with args.
4869 set dummy pkg-config; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   case $PKGCONFIG in
4876   [\\/]* | ?:[\\/]*)
4877   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4878   ;;
4879   *)
4880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885   for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4896   ;;
4897 esac
4898 fi
4899 PKGCONFIG=$ac_cv_path_PKGCONFIG
4900 if test -n "$PKGCONFIG"; then
4901   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4902 echo "${ECHO_T}$PKGCONFIG" >&6; }
4903 else
4904   { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4906 fi
4907
4908
4909 # Extract the first word of "qmake", so it can be a program name with args.
4910 set dummy qmake; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_path_QMAKE+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   case $QMAKE in
4917   [\\/]* | ?:[\\/]*)
4918   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4919   ;;
4920   *)
4921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926   for ac_exec_ext in '' $ac_executable_extensions; do
4927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930     break 2
4931   fi
4932 done
4933 done
4934 IFS=$as_save_IFS
4935
4936   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4937   ;;
4938 esac
4939 fi
4940 QMAKE=$ac_cv_path_QMAKE
4941 if test -n "$QMAKE"; then
4942   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4943 echo "${ECHO_T}$QMAKE" >&6; }
4944 else
4945   { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4947 fi
4948
4949
4950 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4951 set dummy qmake-qt4; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   case $QMAKEQT4 in
4958   [\\/]* | ?:[\\/]*)
4959   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4960   ;;
4961   *)
4962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965   IFS=$as_save_IFS
4966   test -z "$as_dir" && as_dir=.
4967   for ac_exec_ext in '' $ac_executable_extensions; do
4968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971     break 2
4972   fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4976
4977   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4978   ;;
4979 esac
4980 fi
4981 QMAKEQT4=$ac_cv_path_QMAKEQT4
4982 if test -n "$QMAKEQT4"; then
4983   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4984 echo "${ECHO_T}$QMAKEQT4" >&6; }
4985 else
4986   { echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6; }
4988 fi
4989
4990
4991
4992 if test "x$WXCONFIG" = x; then
4993   WXCONFIG=wx-config
4994 fi
4995 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4996 set dummy ${WXCONFIG}; ac_word=$2
4997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4999 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   case $WXCONFIG in
5003   [\\/]* | ?:[\\/]*)
5004   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5005   ;;
5006   *)
5007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010   IFS=$as_save_IFS
5011   test -z "$as_dir" && as_dir=.
5012   for ac_exec_ext in '' $ac_executable_extensions; do
5013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019 done
5020 IFS=$as_save_IFS
5021
5022   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5023   ;;
5024 esac
5025 fi
5026 WXCONFIG=$ac_cv_path_WXCONFIG
5027 if test -n "$WXCONFIG"; then
5028   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5029 echo "${ECHO_T}$WXCONFIG" >&6; }
5030 else
5031   { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5033 fi
5034
5035
5036
5037 # Extract the first word of "cdrecord", so it can be a program name with args.
5038 set dummy cdrecord; ac_word=$2
5039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5041 if test "${ac_cv_path_CDRECORD+set}" = set; then
5042   echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044   case $CDRECORD in
5045   [\\/]* | ?:[\\/]*)
5046   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5047   ;;
5048   *)
5049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052   IFS=$as_save_IFS
5053   test -z "$as_dir" && as_dir=.
5054   for ac_exec_ext in '' $ac_executable_extensions; do
5055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058     break 2
5059   fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5065   ;;
5066 esac
5067 fi
5068 CDRECORD=$ac_cv_path_CDRECORD
5069 if test -n "$CDRECORD"; then
5070   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5071 echo "${ECHO_T}$CDRECORD" >&6; }
5072 else
5073   { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5075 fi
5076
5077
5078 # Extract the first word of "pidof", so it can be a program name with args.
5079 set dummy pidof; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_path_PIDOF+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   case $PIDOF in
5086   [\\/]* | ?:[\\/]*)
5087   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5088   ;;
5089   *)
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5106   ;;
5107 esac
5108 fi
5109 PIDOF=$ac_cv_path_PIDOF
5110 if test -n "$PIDOF"; then
5111   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5112 echo "${ECHO_T}$PIDOF" >&6; }
5113 else
5114   { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5116 fi
5117
5118
5119 for ac_prog in gawk mawk nawk awk
5120 do
5121   # Extract the first word of "$ac_prog", so it can be a program name with args.
5122 set dummy $ac_prog; ac_word=$2
5123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_AWK+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   if test -n "$AWK"; then
5129   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134   IFS=$as_save_IFS
5135   test -z "$as_dir" && as_dir=.
5136   for ac_exec_ext in '' $ac_executable_extensions; do
5137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138     ac_cv_prog_AWK="$ac_prog"
5139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140     break 2
5141   fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 AWK=$ac_cv_prog_AWK
5149 if test -n "$AWK"; then
5150   { echo "$as_me:$LINENO: result: $AWK" >&5
5151 echo "${ECHO_T}$AWK" >&6; }
5152 else
5153   { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5155 fi
5156
5157
5158   test -n "$AWK" && break
5159 done
5160
5161 # Some AWK programs fail, so test it and warn the user
5162 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5163       { if ((prog == $2) || (("(" prog ")") == $2) ||
5164            (("" prog "") == $2) ||
5165            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5166 else
5167   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5168    The regex engine of $AWK is too broken to be used you
5169    might want to install GNU AWK.
5170    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5171 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5172    The regex engine of $AWK is too broken to be used you
5173    might want to install GNU AWK.
5174    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5175    { (exit 1); exit 1; }; }
5176 fi
5177 THE_AWK=$AWK
5178 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5179 set dummy $THE_AWK; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_AWK+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $AWK in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5206   ;;
5207 esac
5208 fi
5209 AWK=$ac_cv_path_AWK
5210 if test -n "$AWK"; then
5211   { echo "$as_me:$LINENO: result: $AWK" >&5
5212 echo "${ECHO_T}$AWK" >&6; }
5213 else
5214   { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5216 fi
5217
5218
5219
5220
5221 test -n "$ARFLAG" || ARFLAGS="cr"
5222
5223
5224 MAKE_SHELL=/bin/sh
5225
5226
5227
5228
5229
5230
5231
5232 # Make sure we can run config.sub.
5233 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5234   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5235 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5236    { (exit 1); exit 1; }; }
5237
5238 { echo "$as_me:$LINENO: checking build system type" >&5
5239 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5240 if test "${ac_cv_build+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   ac_build_alias=$build_alias
5244 test "x$ac_build_alias" = x &&
5245   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5246 test "x$ac_build_alias" = x &&
5247   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5248 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5249    { (exit 1); exit 1; }; }
5250 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5251   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5252 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5253    { (exit 1); exit 1; }; }
5254
5255 fi
5256 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5257 echo "${ECHO_T}$ac_cv_build" >&6; }
5258 case $ac_cv_build in
5259 *-*-*) ;;
5260 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5261 echo "$as_me: error: invalid value of canonical build" >&2;}
5262    { (exit 1); exit 1; }; };;
5263 esac
5264 build=$ac_cv_build
5265 ac_save_IFS=$IFS; IFS='-'
5266 set x $ac_cv_build
5267 shift
5268 build_cpu=$1
5269 build_vendor=$2
5270 shift; shift
5271 # Remember, the first character of IFS is used to create $*,
5272 # except with old shells:
5273 build_os=$*
5274 IFS=$ac_save_IFS
5275 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5276
5277
5278
5279 { echo "$as_me:$LINENO: checking host system type" >&5
5280 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5281 if test "${ac_cv_host+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test "x$host_alias" = x; then
5285   ac_cv_host=$ac_cv_build
5286 else
5287   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5288     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5289 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5290    { (exit 1); exit 1; }; }
5291 fi
5292
5293 fi
5294 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5295 echo "${ECHO_T}$ac_cv_host" >&6; }
5296 case $ac_cv_host in
5297 *-*-*) ;;
5298 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5299 echo "$as_me: error: invalid value of canonical host" >&2;}
5300    { (exit 1); exit 1; }; };;
5301 esac
5302 host=$ac_cv_host
5303 ac_save_IFS=$IFS; IFS='-'
5304 set x $ac_cv_host
5305 shift
5306 host_cpu=$1
5307 host_vendor=$2
5308 shift; shift
5309 # Remember, the first character of IFS is used to create $*,
5310 # except with old shells:
5311 host_os=$*
5312 IFS=$ac_save_IFS
5313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5314
5315
5316 case $host_os in
5317   *cygwin* ) CYGWIN=yes;;
5318          * ) CYGWIN=no;;
5319 esac
5320
5321 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5322 then
5323
5324
5325 if $TRUEPRG; then
5326   HAVE_SUN_OS_TRUE=
5327   HAVE_SUN_OS_FALSE='#'
5328 else
5329   HAVE_SUN_OS_TRUE='#'
5330   HAVE_SUN_OS_FALSE=
5331 fi
5332         cat >>confdefs.h <<\_ACEOF
5333 #define HAVE_SUN_OS 1
5334 _ACEOF
5335
5336 else
5337
5338
5339 if $FALSEPRG; then
5340   HAVE_SUN_OS_TRUE=
5341   HAVE_SUN_OS_FALSE='#'
5342 else
5343   HAVE_SUN_OS_TRUE='#'
5344   HAVE_SUN_OS_FALSE=
5345 fi
5346 fi
5347
5348 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5349 then
5350
5351
5352 if $TRUEPRG; then
5353   HAVE_OSF1_OS_TRUE=
5354   HAVE_OSF1_OS_FALSE='#'
5355 else
5356   HAVE_OSF1_OS_TRUE='#'
5357   HAVE_OSF1_OS_FALSE=
5358 fi
5359         cat >>confdefs.h <<\_ACEOF
5360 #define HAVE_OSF1_OS 1
5361 _ACEOF
5362
5363 else
5364
5365
5366 if $FALSEPRG; then
5367   HAVE_OSF1_OS_TRUE=
5368   HAVE_OSF1_OS_FALSE='#'
5369 else
5370   HAVE_OSF1_OS_TRUE='#'
5371   HAVE_OSF1_OS_FALSE=
5372 fi
5373 fi
5374
5375 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5376 then
5377
5378
5379 if $TRUEPRG; then
5380   HAVE_AIX_OS_TRUE=
5381   HAVE_AIX_OS_FALSE='#'
5382 else
5383   HAVE_AIX_OS_TRUE='#'
5384   HAVE_AIX_OS_FALSE=
5385 fi
5386         cat >>confdefs.h <<\_ACEOF
5387 #define HAVE_AIX_OS 1
5388 _ACEOF
5389
5390 else
5391
5392
5393 if $FALSEPRG; then
5394   HAVE_AIX_OS_TRUE=
5395   HAVE_AIX_OS_FALSE='#'
5396 else
5397   HAVE_AIX_OS_TRUE='#'
5398   HAVE_AIX_OS_FALSE=
5399 fi
5400 fi
5401
5402 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5403 then
5404
5405
5406 if $TRUEPRG; then
5407   HAVE_HPUX_OS_TRUE=
5408   HAVE_HPUX_OS_FALSE='#'
5409 else
5410   HAVE_HPUX_OS_TRUE='#'
5411   HAVE_HPUX_OS_FALSE=
5412 fi
5413         cat >>confdefs.h <<\_ACEOF
5414 #define HAVE_HPUX_OS 1
5415 _ACEOF
5416
5417 else
5418
5419
5420 if $FALSEPRG; then
5421   HAVE_HPUX_OS_TRUE=
5422   HAVE_HPUX_OS_FALSE='#'
5423 else
5424   HAVE_HPUX_OS_TRUE='#'
5425   HAVE_HPUX_OS_FALSE=
5426 fi
5427 fi
5428
5429 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5430 then
5431
5432
5433 if $TRUEPRG; then
5434   HAVE_LINUX_OS_TRUE=
5435   HAVE_LINUX_OS_FALSE='#'
5436 else
5437   HAVE_LINUX_OS_TRUE='#'
5438   HAVE_LINUX_OS_FALSE=
5439 fi
5440         cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_LINUX_OS 1
5442 _ACEOF
5443
5444 else
5445
5446
5447 if $FALSEPRG; then
5448   HAVE_LINUX_OS_TRUE=
5449   HAVE_LINUX_OS_FALSE='#'
5450 else
5451   HAVE_LINUX_OS_TRUE='#'
5452   HAVE_LINUX_OS_FALSE=
5453 fi
5454 fi
5455
5456 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5457 then
5458
5459
5460 if $TRUEPRG; then
5461   HAVE_FREEBSD_OS_TRUE=
5462   HAVE_FREEBSD_OS_FALSE='#'
5463 else
5464   HAVE_FREEBSD_OS_TRUE='#'
5465   HAVE_FREEBSD_OS_FALSE=
5466 fi
5467         cat >>confdefs.h <<\_ACEOF
5468 #define HAVE_FREEBSD_OS 1
5469 _ACEOF
5470
5471 else
5472
5473
5474 if $FALSEPRG; then
5475   HAVE_FREEBSD_OS_TRUE=
5476   HAVE_FREEBSD_OS_FALSE='#'
5477 else
5478   HAVE_FREEBSD_OS_TRUE='#'
5479   HAVE_FREEBSD_OS_FALSE=
5480 fi
5481 fi
5482
5483 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5484 then
5485
5486
5487 if $TRUEPRG; then
5488   HAVE_NETBSD_OS_TRUE=
5489   HAVE_NETBSD_OS_FALSE='#'
5490 else
5491   HAVE_NETBSD_OS_TRUE='#'
5492   HAVE_NETBSD_OS_FALSE=
5493 fi
5494         cat >>confdefs.h <<\_ACEOF
5495 #define HAVE_NETBSD_OS 1
5496 _ACEOF
5497
5498 else
5499
5500
5501 if $FALSEPRG; then
5502   HAVE_NETBSD_OS_TRUE=
5503   HAVE_NETBSD_OS_FALSE='#'
5504 else
5505   HAVE_NETBSD_OS_TRUE='#'
5506   HAVE_NETBSD_OS_FALSE=
5507 fi
5508 fi
5509
5510 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5511 then
5512
5513
5514 if $TRUEPRG; then
5515   HAVE_OPENBSD_OS_TRUE=
5516   HAVE_OPENBSD_OS_FALSE='#'
5517 else
5518   HAVE_OPENBSD_OS_TRUE='#'
5519   HAVE_OPENBSD_OS_FALSE=
5520 fi
5521         cat >>confdefs.h <<\_ACEOF
5522 #define HAVE_OPENBSD_OS 1
5523 _ACEOF
5524
5525 else
5526
5527
5528 if $FALSEPRG; then
5529   HAVE_OPENBSD_OS_TRUE=
5530   HAVE_OPENBSD_OS_FALSE='#'
5531 else
5532   HAVE_OPENBSD_OS_TRUE='#'
5533   HAVE_OPENBSD_OS_FALSE=
5534 fi
5535 fi
5536
5537 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5538 then
5539
5540
5541 if $TRUEPRG; then
5542   HAVE_BSDI_OS_TRUE=
5543   HAVE_BSDI_OS_FALSE='#'
5544 else
5545   HAVE_BSDI_OS_TRUE='#'
5546   HAVE_BSDI_OS_FALSE=
5547 fi
5548         cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_BSDI_OS 1
5550 _ACEOF
5551
5552 else
5553
5554
5555 if $FALSEPRG; then
5556   HAVE_BSDI_OS_TRUE=
5557   HAVE_BSDI_OS_FALSE='#'
5558 else
5559   HAVE_BSDI_OS_TRUE='#'
5560   HAVE_BSDI_OS_FALSE=
5561 fi
5562 fi
5563
5564 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5565 then
5566
5567
5568 if $TRUEPRG; then
5569   HAVE_SGI_OS_TRUE=
5570   HAVE_SGI_OS_FALSE='#'
5571 else
5572   HAVE_SGI_OS_TRUE='#'
5573   HAVE_SGI_OS_FALSE=
5574 fi
5575         cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_SGI_OS 1
5577 _ACEOF
5578
5579 else
5580
5581
5582 if $FALSEPRG; then
5583   HAVE_SGI_OS_TRUE=
5584   HAVE_SGI_OS_FALSE='#'
5585 else
5586   HAVE_SGI_OS_TRUE='#'
5587   HAVE_SGI_OS_FALSE=
5588 fi
5589 fi
5590
5591 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5592 then
5593
5594
5595 if $TRUEPRG; then
5596   HAVE_IRIX_OS_TRUE=
5597   HAVE_IRIX_OS_FALSE='#'
5598 else
5599   HAVE_IRIX_OS_TRUE='#'
5600   HAVE_IRIX_OS_FALSE=
5601 fi
5602         cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_IRIX_OS 1
5604 _ACEOF
5605
5606 else
5607
5608
5609 if $FALSEPRG; then
5610   HAVE_IRIX_OS_TRUE=
5611   HAVE_IRIX_OS_FALSE='#'
5612 else
5613   HAVE_IRIX_OS_TRUE='#'
5614   HAVE_IRIX_OS_FALSE=
5615 fi
5616 fi
5617
5618 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5619 then
5620
5621
5622 if $TRUEPRG; then
5623   HAVE_DARWIN_OS_TRUE=
5624   HAVE_DARWIN_OS_FALSE='#'
5625 else
5626   HAVE_DARWIN_OS_TRUE='#'
5627   HAVE_DARWIN_OS_FALSE=
5628 fi
5629     cat >>confdefs.h <<\_ACEOF
5630 #define HAVE_DARWIN_OS 1
5631 _ACEOF
5632
5633 else
5634
5635
5636 if $FALSEPRG; then
5637   HAVE_DARWIN_OS_TRUE=
5638   HAVE_DARWIN_OS_FALSE='#'
5639 else
5640   HAVE_DARWIN_OS_TRUE='#'
5641   HAVE_DARWIN_OS_FALSE=
5642 fi
5643 fi
5644
5645
5646 # -----------------------------------------------------------
5647 # ----------------------------------------------------------
5648 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5649 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5650 if test "x$DISTNAME" != "x"
5651 then
5652         echo "distname set to $DISTNAME"
5653 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5654 then
5655         DISTNAME=alpha
5656 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5657 then
5658         DISTNAME=aix
5659 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5660 then
5661         DISTNAME=hpux
5662 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5663 then
5664         DISTNAME=solaris
5665 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5666 then
5667         DISTNAME=freebsd
5668 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5669 then
5670         DISTNAME=netbsd
5671 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5672 then
5673         DISTNAME=openbsd
5674 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5675 then
5676         DISTNAME=irix
5677 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5678 then
5679         DISTNAME=bsdi
5680 elif test -f /etc/SuSE-release
5681 then
5682         DISTNAME=suse
5683 elif test -d /etc/SuSEconfig
5684 then
5685         DISTNAME=suse5
5686 elif test -f /etc/mandrake-release
5687 then
5688         DISTNAME=mandrake
5689 elif test -f /etc/whitebox-release
5690 then
5691        DISTNAME=redhat
5692 elif test -f /etc/redhat-release
5693 then
5694         DISTNAME=redhat
5695 elif test -f /etc/gentoo-release
5696 then
5697         DISTNAME=gentoo
5698 elif test -f /etc/debian_version
5699 then
5700         DISTNAME=debian
5701 elif test -f /etc/slackware-version
5702 then
5703         DISTNAME=slackware
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5705 then
5706     DISTNAME=darwin
5707 elif test -f /etc/engarde-version
5708 then
5709         DISTNAME=engarde
5710 elif test "$CYGWIN" = yes
5711 then
5712         DISTNAME=cygwin
5713         cat >>confdefs.h <<\_ACEOF
5714 #define HAVE_CYGWIN 1
5715 _ACEOF
5716
5717 else
5718         DISTNAME=unknown
5719 fi
5720 { echo "$as_me:$LINENO: result: done" >&5
5721 echo "${ECHO_T}done" >&6; }
5722
5723
5724 # --------------------------------------------------
5725 # Suppport for gettext (translations)
5726 # By default, $datadir is ${prefix}/share
5727 # --------------------------------------------------
5728 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5729 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5730 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5731 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   cat >conftest.make <<\_ACEOF
5735 SHELL = /bin/sh
5736 all:
5737         @echo '@@@%%%=$(MAKE)=@@@%%%'
5738 _ACEOF
5739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5740 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5741   *@@@%%%=?*=@@@%%%*)
5742     eval ac_cv_prog_make_${ac_make}_set=yes;;
5743   *)
5744     eval ac_cv_prog_make_${ac_make}_set=no;;
5745 esac
5746 rm -f conftest.make
5747 fi
5748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5749   { echo "$as_me:$LINENO: result: yes" >&5
5750 echo "${ECHO_T}yes" >&6; }
5751   SET_MAKE=
5752 else
5753   { echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6; }
5755   SET_MAKE="MAKE=${MAKE-make}"
5756 fi
5757
5758
5759
5760         MKINSTALLDIRS=
5761   if test -n "$ac_aux_dir"; then
5762     case "$ac_aux_dir" in
5763       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5764       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5765     esac
5766   fi
5767   if test -z "$MKINSTALLDIRS"; then
5768     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5769   fi
5770
5771
5772
5773   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5774 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5775     # Check whether --enable-nls was given.
5776 if test "${enable_nls+set}" = set; then
5777   enableval=$enable_nls; USE_NLS=$enableval
5778 else
5779   USE_NLS=yes
5780 fi
5781
5782   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5783 echo "${ECHO_T}$USE_NLS" >&6; }
5784
5785
5786
5787
5788
5789
5790 # Prepare PATH_SEPARATOR.
5791 # The user is always right.
5792 if test "${PATH_SEPARATOR+set}" != set; then
5793   echo "#! /bin/sh" >conf$$.sh
5794   echo  "exit 0"   >>conf$$.sh
5795   chmod +x conf$$.sh
5796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5797     PATH_SEPARATOR=';'
5798   else
5799     PATH_SEPARATOR=:
5800   fi
5801   rm -f conf$$.sh
5802 fi
5803
5804 # Find out how to test for executable files. Don't use a zero-byte file,
5805 # as systems may use methods other than mode bits to determine executability.
5806 cat >conf$$.file <<_ASEOF
5807 #! /bin/sh
5808 exit 0
5809 _ASEOF
5810 chmod +x conf$$.file
5811 if test -x conf$$.file >/dev/null 2>&1; then
5812   ac_executable_p="test -x"
5813 else
5814   ac_executable_p="test -f"
5815 fi
5816 rm -f conf$$.file
5817
5818 # Extract the first word of "msgfmt", so it can be a program name with args.
5819 set dummy msgfmt; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_MSGFMT+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   case "$MSGFMT" in
5826   [\\/]* | ?:[\\/]*)
5827     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5828     ;;
5829   *)
5830     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5831     for ac_dir in $PATH; do
5832       IFS="$ac_save_IFS"
5833       test -z "$ac_dir" && ac_dir=.
5834       for ac_exec_ext in '' $ac_executable_extensions; do
5835         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5836           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5837           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5838      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5839             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5840             break 2
5841           fi
5842         fi
5843       done
5844     done
5845     IFS="$ac_save_IFS"
5846   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5847     ;;
5848 esac
5849 fi
5850 MSGFMT="$ac_cv_path_MSGFMT"
5851 if test "$MSGFMT" != ":"; then
5852   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5853 echo "${ECHO_T}$MSGFMT" >&6; }
5854 else
5855   { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5857 fi
5858
5859   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5860 set dummy gmsgfmt; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   case $GMSGFMT in
5867   [\\/]* | ?:[\\/]*)
5868   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5869   ;;
5870   *)
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5887   ;;
5888 esac
5889 fi
5890 GMSGFMT=$ac_cv_path_GMSGFMT
5891 if test -n "$GMSGFMT"; then
5892   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5893 echo "${ECHO_T}$GMSGFMT" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900
5901
5902 # Prepare PATH_SEPARATOR.
5903 # The user is always right.
5904 if test "${PATH_SEPARATOR+set}" != set; then
5905   echo "#! /bin/sh" >conf$$.sh
5906   echo  "exit 0"   >>conf$$.sh
5907   chmod +x conf$$.sh
5908   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5909     PATH_SEPARATOR=';'
5910   else
5911     PATH_SEPARATOR=:
5912   fi
5913   rm -f conf$$.sh
5914 fi
5915
5916 # Find out how to test for executable files. Don't use a zero-byte file,
5917 # as systems may use methods other than mode bits to determine executability.
5918 cat >conf$$.file <<_ASEOF
5919 #! /bin/sh
5920 exit 0
5921 _ASEOF
5922 chmod +x conf$$.file
5923 if test -x conf$$.file >/dev/null 2>&1; then
5924   ac_executable_p="test -x"
5925 else
5926   ac_executable_p="test -f"
5927 fi
5928 rm -f conf$$.file
5929
5930 # Extract the first word of "xgettext", so it can be a program name with args.
5931 set dummy xgettext; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   case "$XGETTEXT" in
5938   [\\/]* | ?:[\\/]*)
5939     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5940     ;;
5941   *)
5942     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5943     for ac_dir in $PATH; do
5944       IFS="$ac_save_IFS"
5945       test -z "$ac_dir" && ac_dir=.
5946       for ac_exec_ext in '' $ac_executable_extensions; do
5947         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5948           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5949           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5950      (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
5951             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5952             break 2
5953           fi
5954         fi
5955       done
5956     done
5957     IFS="$ac_save_IFS"
5958   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5959     ;;
5960 esac
5961 fi
5962 XGETTEXT="$ac_cv_path_XGETTEXT"
5963 if test "$XGETTEXT" != ":"; then
5964   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5965 echo "${ECHO_T}$XGETTEXT" >&6; }
5966 else
5967   { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5969 fi
5970
5971     rm -f messages.po
5972
5973
5974 # Prepare PATH_SEPARATOR.
5975 # The user is always right.
5976 if test "${PATH_SEPARATOR+set}" != set; then
5977   echo "#! /bin/sh" >conf$$.sh
5978   echo  "exit 0"   >>conf$$.sh
5979   chmod +x conf$$.sh
5980   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5981     PATH_SEPARATOR=';'
5982   else
5983     PATH_SEPARATOR=:
5984   fi
5985   rm -f conf$$.sh
5986 fi
5987
5988 # Find out how to test for executable files. Don't use a zero-byte file,
5989 # as systems may use methods other than mode bits to determine executability.
5990 cat >conf$$.file <<_ASEOF
5991 #! /bin/sh
5992 exit 0
5993 _ASEOF
5994 chmod +x conf$$.file
5995 if test -x conf$$.file >/dev/null 2>&1; then
5996   ac_executable_p="test -x"
5997 else
5998   ac_executable_p="test -f"
5999 fi
6000 rm -f conf$$.file
6001
6002 # Extract the first word of "msgmerge", so it can be a program name with args.
6003 set dummy msgmerge; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   case "$MSGMERGE" in
6010   [\\/]* | ?:[\\/]*)
6011     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6012     ;;
6013   *)
6014     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6015     for ac_dir in $PATH; do
6016       IFS="$ac_save_IFS"
6017       test -z "$ac_dir" && ac_dir=.
6018       for ac_exec_ext in '' $ac_executable_extensions; do
6019         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6020           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6021           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6022             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6023             break 2
6024           fi
6025         fi
6026       done
6027     done
6028     IFS="$ac_save_IFS"
6029   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6030     ;;
6031 esac
6032 fi
6033 MSGMERGE="$ac_cv_path_MSGMERGE"
6034 if test "$MSGMERGE" != ":"; then
6035   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6036 echo "${ECHO_T}$MSGMERGE" >&6; }
6037 else
6038   { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6040 fi
6041
6042
6043       if test "$GMSGFMT" != ":"; then
6044             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6045        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6046       : ;
6047     else
6048       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6049       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6050 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6051       GMSGFMT=":"
6052     fi
6053   fi
6054
6055       if test "$XGETTEXT" != ":"; then
6056             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6057        (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
6058       : ;
6059     else
6060       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6061 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6062       XGETTEXT=":"
6063     fi
6064         rm -f messages.po
6065   fi
6066
6067   ac_config_commands="$ac_config_commands default-1"
6068
6069
6070
6071       if test "X$prefix" = "XNONE"; then
6072     acl_final_prefix="$ac_default_prefix"
6073   else
6074     acl_final_prefix="$prefix"
6075   fi
6076   if test "X$exec_prefix" = "XNONE"; then
6077     acl_final_exec_prefix='${prefix}'
6078   else
6079     acl_final_exec_prefix="$exec_prefix"
6080   fi
6081   acl_save_prefix="$prefix"
6082   prefix="$acl_final_prefix"
6083   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6084   prefix="$acl_save_prefix"
6085
6086
6087 # Check whether --with-gnu-ld was given.
6088 if test "${with_gnu_ld+set}" = set; then
6089   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6090 else
6091   with_gnu_ld=no
6092 fi
6093
6094 # Prepare PATH_SEPARATOR.
6095 # The user is always right.
6096 if test "${PATH_SEPARATOR+set}" != set; then
6097   echo "#! /bin/sh" >conf$$.sh
6098   echo  "exit 0"   >>conf$$.sh
6099   chmod +x conf$$.sh
6100   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6101     PATH_SEPARATOR=';'
6102   else
6103     PATH_SEPARATOR=:
6104   fi
6105   rm -f conf$$.sh
6106 fi
6107 ac_prog=ld
6108 if test "$GCC" = yes; then
6109   # Check if gcc -print-prog-name=ld gives a path.
6110   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6111 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6112   case $host in
6113   *-*-mingw*)
6114     # gcc leaves a trailing carriage return which upsets mingw
6115     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6116   *)
6117     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6118   esac
6119   case $ac_prog in
6120     # Accept absolute paths.
6121     [\\/]* | [A-Za-z]:[\\/]*)
6122       re_direlt='/[^/][^/]*/\.\./'
6123       # Canonicalize the path of ld
6124       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6125       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6126         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6127       done
6128       test -z "$LD" && LD="$ac_prog"
6129       ;;
6130   "")
6131     # If it fails, then pretend we aren't using GCC.
6132     ac_prog=ld
6133     ;;
6134   *)
6135     # If it is relative, then search for the first ld in PATH.
6136     with_gnu_ld=unknown
6137     ;;
6138   esac
6139 elif test "$with_gnu_ld" = yes; then
6140   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6141 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6142 else
6143   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6144 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6145 fi
6146 if test "${acl_cv_path_LD+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   if test -z "$LD"; then
6150   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6151   for ac_dir in $PATH; do
6152     test -z "$ac_dir" && ac_dir=.
6153     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6154       acl_cv_path_LD="$ac_dir/$ac_prog"
6155       # Check to see if the program is GNU ld.  I'd rather use --version,
6156       # but apparently some GNU ld's only accept -v.
6157       # Break only if it was the GNU/non-GNU ld that we prefer.
6158       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6159       *GNU* | *'with BFD'*)
6160         test "$with_gnu_ld" != no && break ;;
6161       *)
6162         test "$with_gnu_ld" != yes && break ;;
6163       esac
6164     fi
6165   done
6166   IFS="$ac_save_ifs"
6167 else
6168   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6169 fi
6170 fi
6171
6172 LD="$acl_cv_path_LD"
6173 if test -n "$LD"; then
6174   { echo "$as_me:$LINENO: result: $LD" >&5
6175 echo "${ECHO_T}$LD" >&6; }
6176 else
6177   { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6179 fi
6180 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6181 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6182    { (exit 1); exit 1; }; }
6183 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6184 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6185 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6189 case `$LD -v 2>&1 </dev/null` in
6190 *GNU* | *'with BFD'*)
6191   acl_cv_prog_gnu_ld=yes ;;
6192 *)
6193   acl_cv_prog_gnu_ld=no ;;
6194 esac
6195 fi
6196 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6197 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6198 with_gnu_ld=$acl_cv_prog_gnu_ld
6199
6200
6201
6202
6203                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6204 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6205 if test "${acl_cv_rpath+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208
6209     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6210     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6211     . ./conftest.sh
6212     rm -f ./conftest.sh
6213     acl_cv_rpath=done
6214
6215 fi
6216 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6217 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6218   wl="$acl_cv_wl"
6219   libext="$acl_cv_libext"
6220   shlibext="$acl_cv_shlibext"
6221   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6222   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6223   hardcode_direct="$acl_cv_hardcode_direct"
6224   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6225     # Check whether --enable-rpath was given.
6226 if test "${enable_rpath+set}" = set; then
6227   enableval=$enable_rpath; :
6228 else
6229   enable_rpath=yes
6230 fi
6231
6232
6233
6234
6235
6236
6237
6238
6239     use_additional=yes
6240
6241   acl_save_prefix="$prefix"
6242   prefix="$acl_final_prefix"
6243   acl_save_exec_prefix="$exec_prefix"
6244   exec_prefix="$acl_final_exec_prefix"
6245
6246     eval additional_includedir=\"$includedir\"
6247     eval additional_libdir=\"$libdir\"
6248
6249   exec_prefix="$acl_save_exec_prefix"
6250   prefix="$acl_save_prefix"
6251
6252
6253 # Check whether --with-libiconv-prefix was given.
6254 if test "${with_libiconv_prefix+set}" = set; then
6255   withval=$with_libiconv_prefix;
6256     if test "X$withval" = "Xno"; then
6257       use_additional=no
6258     else
6259       if test "X$withval" = "X"; then
6260
6261   acl_save_prefix="$prefix"
6262   prefix="$acl_final_prefix"
6263   acl_save_exec_prefix="$exec_prefix"
6264   exec_prefix="$acl_final_exec_prefix"
6265
6266           eval additional_includedir=\"$includedir\"
6267           eval additional_libdir=\"$libdir\"
6268
6269   exec_prefix="$acl_save_exec_prefix"
6270   prefix="$acl_save_prefix"
6271
6272       else
6273         additional_includedir="$withval/include"
6274         additional_libdir="$withval/lib"
6275       fi
6276     fi
6277
6278 fi
6279
6280       LIBICONV=
6281   LTLIBICONV=
6282   INCICONV=
6283   rpathdirs=
6284   ltrpathdirs=
6285   names_already_handled=
6286   names_next_round='iconv '
6287   while test -n "$names_next_round"; do
6288     names_this_round="$names_next_round"
6289     names_next_round=
6290     for name in $names_this_round; do
6291       already_handled=
6292       for n in $names_already_handled; do
6293         if test "$n" = "$name"; then
6294           already_handled=yes
6295           break
6296         fi
6297       done
6298       if test -z "$already_handled"; then
6299         names_already_handled="$names_already_handled $name"
6300                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6301         eval value=\"\$HAVE_LIB$uppername\"
6302         if test -n "$value"; then
6303           if test "$value" = yes; then
6304             eval value=\"\$LIB$uppername\"
6305             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6306             eval value=\"\$LTLIB$uppername\"
6307             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6308           else
6309                                     :
6310           fi
6311         else
6312                               found_dir=
6313           found_la=
6314           found_so=
6315           found_a=
6316           if test $use_additional = yes; then
6317             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6318               found_dir="$additional_libdir"
6319               found_so="$additional_libdir/lib$name.$shlibext"
6320               if test -f "$additional_libdir/lib$name.la"; then
6321                 found_la="$additional_libdir/lib$name.la"
6322               fi
6323             else
6324               if test -f "$additional_libdir/lib$name.$libext"; then
6325                 found_dir="$additional_libdir"
6326                 found_a="$additional_libdir/lib$name.$libext"
6327                 if test -f "$additional_libdir/lib$name.la"; then
6328                   found_la="$additional_libdir/lib$name.la"
6329                 fi
6330               fi
6331             fi
6332           fi
6333           if test "X$found_dir" = "X"; then
6334             for x in $LDFLAGS $LTLIBICONV; do
6335
6336   acl_save_prefix="$prefix"
6337   prefix="$acl_final_prefix"
6338   acl_save_exec_prefix="$exec_prefix"
6339   exec_prefix="$acl_final_exec_prefix"
6340   eval x=\"$x\"
6341   exec_prefix="$acl_save_exec_prefix"
6342   prefix="$acl_save_prefix"
6343
6344               case "$x" in
6345                 -L*)
6346                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6347                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6348                     found_dir="$dir"
6349                     found_so="$dir/lib$name.$shlibext"
6350                     if test -f "$dir/lib$name.la"; then
6351                       found_la="$dir/lib$name.la"
6352                     fi
6353                   else
6354                     if test -f "$dir/lib$name.$libext"; then
6355                       found_dir="$dir"
6356                       found_a="$dir/lib$name.$libext"
6357                       if test -f "$dir/lib$name.la"; then
6358                         found_la="$dir/lib$name.la"
6359                       fi
6360                     fi
6361                   fi
6362                   ;;
6363               esac
6364               if test "X$found_dir" != "X"; then
6365                 break
6366               fi
6367             done
6368           fi
6369           if test "X$found_dir" != "X"; then
6370                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6371             if test "X$found_so" != "X"; then
6372                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6373                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6374               else
6375                                                                                 haveit=
6376                 for x in $ltrpathdirs; do
6377                   if test "X$x" = "X$found_dir"; then
6378                     haveit=yes
6379                     break
6380                   fi
6381                 done
6382                 if test -z "$haveit"; then
6383                   ltrpathdirs="$ltrpathdirs $found_dir"
6384                 fi
6385                                 if test "$hardcode_direct" = yes; then
6386                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6387                 else
6388                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6389                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6390                                                             haveit=
6391                     for x in $rpathdirs; do
6392                       if test "X$x" = "X$found_dir"; then
6393                         haveit=yes
6394                         break
6395                       fi
6396                     done
6397                     if test -z "$haveit"; then
6398                       rpathdirs="$rpathdirs $found_dir"
6399                     fi
6400                   else
6401                                                                                 haveit=
6402                     for x in $LDFLAGS $LIBICONV; do
6403
6404   acl_save_prefix="$prefix"
6405   prefix="$acl_final_prefix"
6406   acl_save_exec_prefix="$exec_prefix"
6407   exec_prefix="$acl_final_exec_prefix"
6408   eval x=\"$x\"
6409   exec_prefix="$acl_save_exec_prefix"
6410   prefix="$acl_save_prefix"
6411
6412                       if test "X$x" = "X-L$found_dir"; then
6413                         haveit=yes
6414                         break
6415                       fi
6416                     done
6417                     if test -z "$haveit"; then
6418                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6419                     fi
6420                     if test "$hardcode_minus_L" != no; then
6421                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6422                     else
6423                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6424                     fi
6425                   fi
6426                 fi
6427               fi
6428             else
6429               if test "X$found_a" != "X"; then
6430                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6431               else
6432                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6433               fi
6434             fi
6435                         additional_includedir=
6436             case "$found_dir" in
6437               */lib | */lib/)
6438                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6439                 additional_includedir="$basedir/include"
6440                 ;;
6441             esac
6442             if test "X$additional_includedir" != "X"; then
6443                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6444                 haveit=
6445                 if test "X$additional_includedir" = "X/usr/local/include"; then
6446                   if test -n "$GCC"; then
6447                     case $host_os in
6448                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6449                     esac
6450                   fi
6451                 fi
6452                 if test -z "$haveit"; then
6453                   for x in $CPPFLAGS $INCICONV; do
6454
6455   acl_save_prefix="$prefix"
6456   prefix="$acl_final_prefix"
6457   acl_save_exec_prefix="$exec_prefix"
6458   exec_prefix="$acl_final_exec_prefix"
6459   eval x=\"$x\"
6460   exec_prefix="$acl_save_exec_prefix"
6461   prefix="$acl_save_prefix"
6462
6463                     if test "X$x" = "X-I$additional_includedir"; then
6464                       haveit=yes
6465                       break
6466                     fi
6467                   done
6468                   if test -z "$haveit"; then
6469                     if test -d "$additional_includedir"; then
6470                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6471                     fi
6472                   fi
6473                 fi
6474               fi
6475             fi
6476                         if test -n "$found_la"; then
6477                                                         save_libdir="$libdir"
6478               case "$found_la" in
6479                 */* | *\\*) . "$found_la" ;;
6480                 *) . "./$found_la" ;;
6481               esac
6482               libdir="$save_libdir"
6483                             for dep in $dependency_libs; do
6484                 case "$dep" in
6485                   -L*)
6486                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6487                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6488                       haveit=
6489                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6490                         if test -n "$GCC"; then
6491                           case $host_os in
6492                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6493                           esac
6494                         fi
6495                       fi
6496                       if test -z "$haveit"; then
6497                         haveit=
6498                         for x in $LDFLAGS $LIBICONV; do
6499
6500   acl_save_prefix="$prefix"
6501   prefix="$acl_final_prefix"
6502   acl_save_exec_prefix="$exec_prefix"
6503   exec_prefix="$acl_final_exec_prefix"
6504   eval x=\"$x\"
6505   exec_prefix="$acl_save_exec_prefix"
6506   prefix="$acl_save_prefix"
6507
6508                           if test "X$x" = "X-L$additional_libdir"; then
6509                             haveit=yes
6510                             break
6511                           fi
6512                         done
6513                         if test -z "$haveit"; then
6514                           if test -d "$additional_libdir"; then
6515                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6516                           fi
6517                         fi
6518                         haveit=
6519                         for x in $LDFLAGS $LTLIBICONV; do
6520
6521   acl_save_prefix="$prefix"
6522   prefix="$acl_final_prefix"
6523   acl_save_exec_prefix="$exec_prefix"
6524   exec_prefix="$acl_final_exec_prefix"
6525   eval x=\"$x\"
6526   exec_prefix="$acl_save_exec_prefix"
6527   prefix="$acl_save_prefix"
6528
6529                           if test "X$x" = "X-L$additional_libdir"; then
6530                             haveit=yes
6531                             break
6532                           fi
6533                         done
6534                         if test -z "$haveit"; then
6535                           if test -d "$additional_libdir"; then
6536                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6537                           fi
6538                         fi
6539                       fi
6540                     fi
6541                     ;;
6542                   -R*)
6543                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6544                     if test "$enable_rpath" != no; then
6545                                                                   haveit=
6546                       for x in $rpathdirs; do
6547                         if test "X$x" = "X$dir"; then
6548                           haveit=yes
6549                           break
6550                         fi
6551                       done
6552                       if test -z "$haveit"; then
6553                         rpathdirs="$rpathdirs $dir"
6554                       fi
6555                                                                   haveit=
6556                       for x in $ltrpathdirs; do
6557                         if test "X$x" = "X$dir"; then
6558                           haveit=yes
6559                           break
6560                         fi
6561                       done
6562                       if test -z "$haveit"; then
6563                         ltrpathdirs="$ltrpathdirs $dir"
6564                       fi
6565                     fi
6566                     ;;
6567                   -l*)
6568                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6569                     ;;
6570                   *.la)
6571                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6572                     ;;
6573                   *)
6574                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6575                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6576                     ;;
6577                 esac
6578               done
6579             fi
6580           else
6581                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6582             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6583           fi
6584         fi
6585       fi
6586     done
6587   done
6588   if test "X$rpathdirs" != "X"; then
6589     if test -n "$hardcode_libdir_separator"; then
6590                         alldirs=
6591       for found_dir in $rpathdirs; do
6592         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6593       done
6594             acl_save_libdir="$libdir"
6595       libdir="$alldirs"
6596       eval flag=\"$hardcode_libdir_flag_spec\"
6597       libdir="$acl_save_libdir"
6598       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6599     else
6600             for found_dir in $rpathdirs; do
6601         acl_save_libdir="$libdir"
6602         libdir="$found_dir"
6603         eval flag=\"$hardcode_libdir_flag_spec\"
6604         libdir="$acl_save_libdir"
6605         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6606       done
6607     fi
6608   fi
6609   if test "X$ltrpathdirs" != "X"; then
6610             for found_dir in $ltrpathdirs; do
6611       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6612     done
6613   fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6633 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6634 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637   gt_save_CPPFLAGS="$CPPFLAGS"
6638      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6639      gt_save_LIBS="$LIBS"
6640      LIBS="$LIBS -framework CoreFoundation"
6641      cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h.  */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h.  */
6647 #include <CFPreferences.h>
6648 int
6649 main ()
6650 {
6651 CFPreferencesCopyAppValue(NULL, NULL)
6652   ;
6653   return 0;
6654 }
6655 _ACEOF
6656 rm -f conftest.$ac_objext conftest$ac_exeext
6657 if { (ac_try="$ac_link"
6658 case "(($ac_try" in
6659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660   *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663   (eval "$ac_link") 2>conftest.er1
6664   ac_status=$?
6665   grep -v '^ *+' conftest.er1 >conftest.err
6666   rm -f conftest.er1
6667   cat conftest.err >&5
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); } && {
6670          test -z "$ac_c_werror_flag" ||
6671          test ! -s conftest.err
6672        } && test -s conftest$ac_exeext &&
6673        $as_test_x conftest$ac_exeext; then
6674   gt_cv_func_CFPreferencesCopyAppValue=yes
6675 else
6676   echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6678
6679         gt_cv_func_CFPreferencesCopyAppValue=no
6680 fi
6681
6682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6683       conftest$ac_exeext conftest.$ac_ext
6684      CPPFLAGS="$gt_save_CPPFLAGS"
6685      LIBS="$gt_save_LIBS"
6686 fi
6687 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6688 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6689   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6690
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6693 _ACEOF
6694
6695   fi
6696     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6697 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6698 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   gt_save_CPPFLAGS="$CPPFLAGS"
6702      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6703      gt_save_LIBS="$LIBS"
6704      LIBS="$LIBS -framework CoreFoundation"
6705      cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h.  */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h.  */
6711 #include <CFLocale.h>
6712 int
6713 main ()
6714 {
6715 CFLocaleCopyCurrent();
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 rm -f conftest.$ac_objext conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6722 case "(($ac_try" in
6723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724   *) ac_try_echo=$ac_try;;
6725 esac
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727   (eval "$ac_link") 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } && {
6734          test -z "$ac_c_werror_flag" ||
6735          test ! -s conftest.err
6736        } && test -s conftest$ac_exeext &&
6737        $as_test_x conftest$ac_exeext; then
6738   gt_cv_func_CFLocaleCopyCurrent=yes
6739 else
6740   echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743         gt_cv_func_CFLocaleCopyCurrent=no
6744 fi
6745
6746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6747       conftest$ac_exeext conftest.$ac_ext
6748      CPPFLAGS="$gt_save_CPPFLAGS"
6749      LIBS="$gt_save_LIBS"
6750 fi
6751 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6752 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6753   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6754
6755 cat >>confdefs.h <<\_ACEOF
6756 #define HAVE_CFLOCALECOPYCURRENT 1
6757 _ACEOF
6758
6759   fi
6760   INTL_MACOSX_LIBS=
6761   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6762     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6763   fi
6764
6765
6766
6767
6768   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6769 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6770     # Check whether --enable-nls was given.
6771 if test "${enable_nls+set}" = set; then
6772   enableval=$enable_nls; USE_NLS=$enableval
6773 else
6774   USE_NLS=yes
6775 fi
6776
6777   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6778 echo "${ECHO_T}$USE_NLS" >&6; }
6779
6780
6781
6782
6783   LIBINTL=
6784   LTLIBINTL=
6785   POSUB=
6786
6787     if test "$USE_NLS" = "yes"; then
6788     gt_use_preinstalled_gnugettext=no
6789
6790
6791
6792
6793
6794
6795         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6796 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6797 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h.  */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h.  */
6806 #include <libintl.h>
6807 extern int _nl_msg_cat_cntr;
6808 extern int *_nl_domain_bindings;
6809 int
6810 main ()
6811 {
6812 bindtextdomain ("", "");
6813 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (ac_try="$ac_link"
6820 case "(($ac_try" in
6821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822   *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825   (eval "$ac_link") 2>conftest.er1
6826   ac_status=$?
6827   grep -v '^ *+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); } && {
6832          test -z "$ac_c_werror_flag" ||
6833          test ! -s conftest.err
6834        } && test -s conftest$ac_exeext &&
6835        $as_test_x conftest$ac_exeext; then
6836   gt_cv_func_gnugettext1_libc=yes
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841         gt_cv_func_gnugettext1_libc=no
6842 fi
6843
6844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6845       conftest$ac_exeext conftest.$ac_ext
6846 fi
6847 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6848 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6849
6850         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6851
6852
6853
6854
6855
6856           am_save_CPPFLAGS="$CPPFLAGS"
6857
6858   for element in $INCICONV; do
6859     haveit=
6860     for x in $CPPFLAGS; do
6861
6862   acl_save_prefix="$prefix"
6863   prefix="$acl_final_prefix"
6864   acl_save_exec_prefix="$exec_prefix"
6865   exec_prefix="$acl_final_exec_prefix"
6866   eval x=\"$x\"
6867   exec_prefix="$acl_save_exec_prefix"
6868   prefix="$acl_save_prefix"
6869
6870       if test "X$x" = "X$element"; then
6871         haveit=yes
6872         break
6873       fi
6874     done
6875     if test -z "$haveit"; then
6876       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6877     fi
6878   done
6879
6880
6881   { echo "$as_me:$LINENO: checking for iconv" >&5
6882 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6883 if test "${am_cv_func_iconv+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886
6887     am_cv_func_iconv="no, consider installing GNU libiconv"
6888     am_cv_lib_iconv=no
6889     cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h.  */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h.  */
6895 #include <stdlib.h>
6896 #include <iconv.h>
6897 int
6898 main ()
6899 {
6900 iconv_t cd = iconv_open("","");
6901        iconv(cd,NULL,NULL,NULL,NULL);
6902        iconv_close(cd);
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext conftest$ac_exeext
6908 if { (ac_try="$ac_link"
6909 case "(($ac_try" in
6910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911   *) ac_try_echo=$ac_try;;
6912 esac
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914   (eval "$ac_link") 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } && {
6921          test -z "$ac_c_werror_flag" ||
6922          test ! -s conftest.err
6923        } && test -s conftest$ac_exeext &&
6924        $as_test_x conftest$ac_exeext; then
6925   am_cv_func_iconv=yes
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930
6931 fi
6932
6933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6934       conftest$ac_exeext conftest.$ac_ext
6935     if test "$am_cv_func_iconv" != yes; then
6936       am_save_LIBS="$LIBS"
6937       LIBS="$LIBS $LIBICONV"
6938       cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 #include <stdlib.h>
6945 #include <iconv.h>
6946 int
6947 main ()
6948 {
6949 iconv_t cd = iconv_open("","");
6950          iconv(cd,NULL,NULL,NULL,NULL);
6951          iconv_close(cd);
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (ac_try="$ac_link"
6958 case "(($ac_try" in
6959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960   *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963   (eval "$ac_link") 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } && {
6970          test -z "$ac_c_werror_flag" ||
6971          test ! -s conftest.err
6972        } && test -s conftest$ac_exeext &&
6973        $as_test_x conftest$ac_exeext; then
6974   am_cv_lib_iconv=yes
6975         am_cv_func_iconv=yes
6976 else
6977   echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6979
6980
6981 fi
6982
6983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984       conftest$ac_exeext conftest.$ac_ext
6985       LIBS="$am_save_LIBS"
6986     fi
6987
6988 fi
6989 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6990 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6991   if test "$am_cv_func_iconv" = yes; then
6992
6993 cat >>confdefs.h <<\_ACEOF
6994 #define HAVE_ICONV 1
6995 _ACEOF
6996
6997   fi
6998   if test "$am_cv_lib_iconv" = yes; then
6999     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7000 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7001     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7002 echo "${ECHO_T}$LIBICONV" >&6; }
7003   else
7004             CPPFLAGS="$am_save_CPPFLAGS"
7005     LIBICONV=
7006     LTLIBICONV=
7007   fi
7008
7009
7010
7011
7012
7013
7014     use_additional=yes
7015
7016   acl_save_prefix="$prefix"
7017   prefix="$acl_final_prefix"
7018   acl_save_exec_prefix="$exec_prefix"
7019   exec_prefix="$acl_final_exec_prefix"
7020
7021     eval additional_includedir=\"$includedir\"
7022     eval additional_libdir=\"$libdir\"
7023
7024   exec_prefix="$acl_save_exec_prefix"
7025   prefix="$acl_save_prefix"
7026
7027
7028 # Check whether --with-libintl-prefix was given.
7029 if test "${with_libintl_prefix+set}" = set; then
7030   withval=$with_libintl_prefix;
7031     if test "X$withval" = "Xno"; then
7032       use_additional=no
7033     else
7034       if test "X$withval" = "X"; then
7035
7036   acl_save_prefix="$prefix"
7037   prefix="$acl_final_prefix"
7038   acl_save_exec_prefix="$exec_prefix"
7039   exec_prefix="$acl_final_exec_prefix"
7040
7041           eval additional_includedir=\"$includedir\"
7042           eval additional_libdir=\"$libdir\"
7043
7044   exec_prefix="$acl_save_exec_prefix"
7045   prefix="$acl_save_prefix"
7046
7047       else
7048         additional_includedir="$withval/include"
7049         additional_libdir="$withval/lib"
7050       fi
7051     fi
7052
7053 fi
7054
7055       LIBINTL=
7056   LTLIBINTL=
7057   INCINTL=
7058   rpathdirs=
7059   ltrpathdirs=
7060   names_already_handled=
7061   names_next_round='intl '
7062   while test -n "$names_next_round"; do
7063     names_this_round="$names_next_round"
7064     names_next_round=
7065     for name in $names_this_round; do
7066       already_handled=
7067       for n in $names_already_handled; do
7068         if test "$n" = "$name"; then
7069           already_handled=yes
7070           break
7071         fi
7072       done
7073       if test -z "$already_handled"; then
7074         names_already_handled="$names_already_handled $name"
7075                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7076         eval value=\"\$HAVE_LIB$uppername\"
7077         if test -n "$value"; then
7078           if test "$value" = yes; then
7079             eval value=\"\$LIB$uppername\"
7080             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7081             eval value=\"\$LTLIB$uppername\"
7082             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7083           else
7084                                     :
7085           fi
7086         else
7087                               found_dir=
7088           found_la=
7089           found_so=
7090           found_a=
7091           if test $use_additional = yes; then
7092             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7093               found_dir="$additional_libdir"
7094               found_so="$additional_libdir/lib$name.$shlibext"
7095               if test -f "$additional_libdir/lib$name.la"; then
7096                 found_la="$additional_libdir/lib$name.la"
7097               fi
7098             else
7099               if test -f "$additional_libdir/lib$name.$libext"; then
7100                 found_dir="$additional_libdir"
7101                 found_a="$additional_libdir/lib$name.$libext"
7102                 if test -f "$additional_libdir/lib$name.la"; then
7103                   found_la="$additional_libdir/lib$name.la"
7104                 fi
7105               fi
7106             fi
7107           fi
7108           if test "X$found_dir" = "X"; then
7109             for x in $LDFLAGS $LTLIBINTL; do
7110
7111   acl_save_prefix="$prefix"
7112   prefix="$acl_final_prefix"
7113   acl_save_exec_prefix="$exec_prefix"
7114   exec_prefix="$acl_final_exec_prefix"
7115   eval x=\"$x\"
7116   exec_prefix="$acl_save_exec_prefix"
7117   prefix="$acl_save_prefix"
7118
7119               case "$x" in
7120                 -L*)
7121                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7122                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7123                     found_dir="$dir"
7124                     found_so="$dir/lib$name.$shlibext"
7125                     if test -f "$dir/lib$name.la"; then
7126                       found_la="$dir/lib$name.la"
7127                     fi
7128                   else
7129                     if test -f "$dir/lib$name.$libext"; then
7130                       found_dir="$dir"
7131                       found_a="$dir/lib$name.$libext"
7132                       if test -f "$dir/lib$name.la"; then
7133                         found_la="$dir/lib$name.la"
7134                       fi
7135                     fi
7136                   fi
7137                   ;;
7138               esac
7139               if test "X$found_dir" != "X"; then
7140                 break
7141               fi
7142             done
7143           fi
7144           if test "X$found_dir" != "X"; then
7145                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7146             if test "X$found_so" != "X"; then
7147                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7148                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7149               else
7150                                                                                 haveit=
7151                 for x in $ltrpathdirs; do
7152                   if test "X$x" = "X$found_dir"; then
7153                     haveit=yes
7154                     break
7155                   fi
7156                 done
7157                 if test -z "$haveit"; then
7158                   ltrpathdirs="$ltrpathdirs $found_dir"
7159                 fi
7160                                 if test "$hardcode_direct" = yes; then
7161                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7162                 else
7163                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7164                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7165                                                             haveit=
7166                     for x in $rpathdirs; do
7167                       if test "X$x" = "X$found_dir"; then
7168                         haveit=yes
7169                         break
7170                       fi
7171                     done
7172                     if test -z "$haveit"; then
7173                       rpathdirs="$rpathdirs $found_dir"
7174                     fi
7175                   else
7176                                                                                 haveit=
7177                     for x in $LDFLAGS $LIBINTL; do
7178
7179   acl_save_prefix="$prefix"
7180   prefix="$acl_final_prefix"
7181   acl_save_exec_prefix="$exec_prefix"
7182   exec_prefix="$acl_final_exec_prefix"
7183   eval x=\"$x\"
7184   exec_prefix="$acl_save_exec_prefix"
7185   prefix="$acl_save_prefix"
7186
7187                       if test "X$x" = "X-L$found_dir"; then
7188                         haveit=yes
7189                         break
7190                       fi
7191                     done
7192                     if test -z "$haveit"; then
7193                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7194                     fi
7195                     if test "$hardcode_minus_L" != no; then
7196                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7197                     else
7198                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7199                     fi
7200                   fi
7201                 fi
7202               fi
7203             else
7204               if test "X$found_a" != "X"; then
7205                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7206               else
7207                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7208               fi
7209             fi
7210                         additional_includedir=
7211             case "$found_dir" in
7212               */lib | */lib/)
7213                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7214                 additional_includedir="$basedir/include"
7215                 ;;
7216             esac
7217             if test "X$additional_includedir" != "X"; then
7218                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7219                 haveit=
7220                 if test "X$additional_includedir" = "X/usr/local/include"; then
7221                   if test -n "$GCC"; then
7222                     case $host_os in
7223                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7224                     esac
7225                   fi
7226                 fi
7227                 if test -z "$haveit"; then
7228                   for x in $CPPFLAGS $INCINTL; 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                     if test "X$x" = "X-I$additional_includedir"; then
7239                       haveit=yes
7240                       break
7241                     fi
7242                   done
7243                   if test -z "$haveit"; then
7244                     if test -d "$additional_includedir"; then
7245                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7246                     fi
7247                   fi
7248                 fi
7249               fi
7250             fi
7251                         if test -n "$found_la"; then
7252                                                         save_libdir="$libdir"
7253               case "$found_la" in
7254                 */* | *\\*) . "$found_la" ;;
7255                 *) . "./$found_la" ;;
7256               esac
7257               libdir="$save_libdir"
7258                             for dep in $dependency_libs; do
7259                 case "$dep" in
7260                   -L*)
7261                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7262                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7263                       haveit=
7264                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7265                         if test -n "$GCC"; then
7266                           case $host_os in
7267                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7268                           esac
7269                         fi
7270                       fi
7271                       if test -z "$haveit"; then
7272                         haveit=
7273                         for x in $LDFLAGS $LIBINTL; do
7274
7275   acl_save_prefix="$prefix"
7276   prefix="$acl_final_prefix"
7277   acl_save_exec_prefix="$exec_prefix"
7278   exec_prefix="$acl_final_exec_prefix"
7279   eval x=\"$x\"
7280   exec_prefix="$acl_save_exec_prefix"
7281   prefix="$acl_save_prefix"
7282
7283                           if test "X$x" = "X-L$additional_libdir"; then
7284                             haveit=yes
7285                             break
7286                           fi
7287                         done
7288                         if test -z "$haveit"; then
7289                           if test -d "$additional_libdir"; then
7290                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7291                           fi
7292                         fi
7293                         haveit=
7294                         for x in $LDFLAGS $LTLIBINTL; do
7295
7296   acl_save_prefix="$prefix"
7297   prefix="$acl_final_prefix"
7298   acl_save_exec_prefix="$exec_prefix"
7299   exec_prefix="$acl_final_exec_prefix"
7300   eval x=\"$x\"
7301   exec_prefix="$acl_save_exec_prefix"
7302   prefix="$acl_save_prefix"
7303
7304                           if test "X$x" = "X-L$additional_libdir"; then
7305                             haveit=yes
7306                             break
7307                           fi
7308                         done
7309                         if test -z "$haveit"; then
7310                           if test -d "$additional_libdir"; then
7311                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7312                           fi
7313                         fi
7314                       fi
7315                     fi
7316                     ;;
7317                   -R*)
7318                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7319                     if test "$enable_rpath" != no; then
7320                                                                   haveit=
7321                       for x in $rpathdirs; do
7322                         if test "X$x" = "X$dir"; then
7323                           haveit=yes
7324                           break
7325                         fi
7326                       done
7327                       if test -z "$haveit"; then
7328                         rpathdirs="$rpathdirs $dir"
7329                       fi
7330                                                                   haveit=
7331                       for x in $ltrpathdirs; do
7332                         if test "X$x" = "X$dir"; then
7333                           haveit=yes
7334                           break
7335                         fi
7336                       done
7337                       if test -z "$haveit"; then
7338                         ltrpathdirs="$ltrpathdirs $dir"
7339                       fi
7340                     fi
7341                     ;;
7342                   -l*)
7343                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7344                     ;;
7345                   *.la)
7346                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7347                     ;;
7348                   *)
7349                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7350                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7351                     ;;
7352                 esac
7353               done
7354             fi
7355           else
7356                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7357             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7358           fi
7359         fi
7360       fi
7361     done
7362   done
7363   if test "X$rpathdirs" != "X"; then
7364     if test -n "$hardcode_libdir_separator"; then
7365                         alldirs=
7366       for found_dir in $rpathdirs; do
7367         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7368       done
7369             acl_save_libdir="$libdir"
7370       libdir="$alldirs"
7371       eval flag=\"$hardcode_libdir_flag_spec\"
7372       libdir="$acl_save_libdir"
7373       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7374     else
7375             for found_dir in $rpathdirs; do
7376         acl_save_libdir="$libdir"
7377         libdir="$found_dir"
7378         eval flag=\"$hardcode_libdir_flag_spec\"
7379         libdir="$acl_save_libdir"
7380         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7381       done
7382     fi
7383   fi
7384   if test "X$ltrpathdirs" != "X"; then
7385             for found_dir in $ltrpathdirs; do
7386       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7387     done
7388   fi
7389
7390           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7391 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7392 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   gt_save_CPPFLAGS="$CPPFLAGS"
7396             CPPFLAGS="$CPPFLAGS $INCINTL"
7397             gt_save_LIBS="$LIBS"
7398             LIBS="$LIBS $LIBINTL"
7399                         cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h.  */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h.  */
7405 #include <libintl.h>
7406 extern int _nl_msg_cat_cntr;
7407 extern
7408 #ifdef __cplusplus
7409 "C"
7410 #endif
7411 const char *_nl_expand_alias (const char *);
7412 int
7413 main ()
7414 {
7415 bindtextdomain ("", "");
7416 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7417   ;
7418   return 0;
7419 }
7420 _ACEOF
7421 rm -f conftest.$ac_objext conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7423 case "(($ac_try" in
7424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425   *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428   (eval "$ac_link") 2>conftest.er1
7429   ac_status=$?
7430   grep -v '^ *+' conftest.er1 >conftest.err
7431   rm -f conftest.er1
7432   cat conftest.err >&5
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } && {
7435          test -z "$ac_c_werror_flag" ||
7436          test ! -s conftest.err
7437        } && test -s conftest$ac_exeext &&
7438        $as_test_x conftest$ac_exeext; then
7439   gt_cv_func_gnugettext1_libintl=yes
7440 else
7441   echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7443
7444         gt_cv_func_gnugettext1_libintl=no
7445 fi
7446
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448       conftest$ac_exeext conftest.$ac_ext
7449                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7450               LIBS="$LIBS $LIBICONV"
7451               cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 #include <libintl.h>
7458 extern int _nl_msg_cat_cntr;
7459 extern
7460 #ifdef __cplusplus
7461 "C"
7462 #endif
7463 const char *_nl_expand_alias (const char *);
7464 int
7465 main ()
7466 {
7467 bindtextdomain ("", "");
7468 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7469   ;
7470   return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest.$ac_objext conftest$ac_exeext
7474 if { (ac_try="$ac_link"
7475 case "(($ac_try" in
7476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477   *) ac_try_echo=$ac_try;;
7478 esac
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480   (eval "$ac_link") 2>conftest.er1
7481   ac_status=$?
7482   grep -v '^ *+' conftest.er1 >conftest.err
7483   rm -f conftest.er1
7484   cat conftest.err >&5
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); } && {
7487          test -z "$ac_c_werror_flag" ||
7488          test ! -s conftest.err
7489        } && test -s conftest$ac_exeext &&
7490        $as_test_x conftest$ac_exeext; then
7491   LIBINTL="$LIBINTL $LIBICONV"
7492                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7493                 gt_cv_func_gnugettext1_libintl=yes
7494
7495 else
7496   echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499
7500 fi
7501
7502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7503       conftest$ac_exeext conftest.$ac_ext
7504             fi
7505             CPPFLAGS="$gt_save_CPPFLAGS"
7506             LIBS="$gt_save_LIBS"
7507 fi
7508 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7509 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7510         fi
7511
7512                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7513            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7514                 && test "$PACKAGE" != gettext-runtime \
7515                 && test "$PACKAGE" != gettext-tools; }; then
7516           gt_use_preinstalled_gnugettext=yes
7517         else
7518                     LIBINTL=
7519           LTLIBINTL=
7520           INCINTL=
7521         fi
7522
7523
7524
7525     if test -n "$INTL_MACOSX_LIBS"; then
7526       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7527          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7528                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7529         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7530       fi
7531     fi
7532
7533     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7534        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7535
7536 cat >>confdefs.h <<\_ACEOF
7537 #define ENABLE_NLS 1
7538 _ACEOF
7539
7540     else
7541       USE_NLS=no
7542     fi
7543   fi
7544
7545   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7546 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7547   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7548 echo "${ECHO_T}$USE_NLS" >&6; }
7549   if test "$USE_NLS" = "yes"; then
7550     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7551 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7552     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7553       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7554         gt_source="external libintl"
7555       else
7556         gt_source="libc"
7557       fi
7558     else
7559       gt_source="included intl directory"
7560     fi
7561     { echo "$as_me:$LINENO: result: $gt_source" >&5
7562 echo "${ECHO_T}$gt_source" >&6; }
7563   fi
7564
7565   if test "$USE_NLS" = "yes"; then
7566
7567     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7568       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7569         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7570 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7571         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7572 echo "${ECHO_T}$LIBINTL" >&6; }
7573
7574   for element in $INCINTL; do
7575     haveit=
7576     for x in $CPPFLAGS; do
7577
7578   acl_save_prefix="$prefix"
7579   prefix="$acl_final_prefix"
7580   acl_save_exec_prefix="$exec_prefix"
7581   exec_prefix="$acl_final_exec_prefix"
7582   eval x=\"$x\"
7583   exec_prefix="$acl_save_exec_prefix"
7584   prefix="$acl_save_prefix"
7585
7586       if test "X$x" = "X$element"; then
7587         haveit=yes
7588         break
7589       fi
7590     done
7591     if test -z "$haveit"; then
7592       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7593     fi
7594   done
7595
7596       fi
7597
7598
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_GETTEXT 1
7601 _ACEOF
7602
7603
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_DCGETTEXT 1
7606 _ACEOF
7607
7608     fi
7609
7610         POSUB=po
7611   fi
7612
7613
7614
7615     INTLLIBS="$LIBINTL"
7616
7617
7618
7619
7620
7621
7622 if test x${prefix} = xNONE ; then
7623    if test `eval echo ${datadir}` = NONE/share ; then
7624       datadir=/usr/share
7625    fi
7626 fi
7627
7628 # ------------------------------------------------------------------
7629 #  If the user has not set --prefix, we set our default to nothing.
7630 #  In this case, if the user has not set --sysconfdir, we set it
7631 #  to the package default of /etc/bacula.  If either --prefix or
7632 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7633 # ------------------------------------------------------------------
7634 if test x${prefix} = xNONE ; then
7635     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7636         sysconfdir=/etc/bacula
7637     fi
7638     prefix=
7639 fi
7640 sysconfdir=`eval echo ${sysconfdir}`
7641 datadir=`eval echo ${datadir}`
7642 localedir=`eval echo ${datadir}/locale`
7643 cat >>confdefs.h <<_ACEOF
7644 #define LOCALEDIR "$localedir"
7645 _ACEOF
7646
7647 cat >>confdefs.h <<_ACEOF
7648 #define SYSCONFDIR "$sysconfdir"
7649 _ACEOF
7650
7651
7652 # -------------------------------------------------------------------------
7653 #  If the user has not set --exec-prefix, we default to ${prefix}
7654 # -------------------------------------------------------------------------
7655 if test x${exec_prefix} = xNONE ; then
7656     exec_prefix=${prefix}
7657 fi
7658
7659 # ------------------------------------------------------------------
7660 # If the user has not set --sbindir, we set our default as /sbin
7661 # ------------------------------------------------------------------
7662 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7663     sbindir=${exec_prefix}/sbin
7664 fi
7665 sbindir=`eval echo ${sbindir}`
7666
7667
7668 # -------------------------------------------------------------------------
7669 #  If the user has not set --mandir, we default to /usr/share/man
7670 # -------------------------------------------------------------------------
7671 if test x$mandir = x'${prefix}/man' ; then
7672    mandir=/usr/share/man
7673 fi
7674
7675
7676 for ac_prog in msgfmt
7677 do
7678   # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_MSGFMT+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   case $MSGFMT in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705   ;;
7706 esac
7707 fi
7708 MSGFMT=$ac_cv_path_MSGFMT
7709 if test -n "$MSGFMT"; then
7710   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7711 echo "${ECHO_T}$MSGFMT" >&6; }
7712 else
7713   { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7715 fi
7716
7717
7718   test -n "$MSGFMT" && break
7719 done
7720 test -n "$MSGFMT" || MSGFMT="no"
7721
7722 if test "$MSGFMT" = "no"
7723 then
7724    echo 'msgfmt program not found, disabling NLS !'
7725    USE_NLS=no
7726    USE_INCLUDED_LIBINTL=no
7727 #else
7728
7729     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7730 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7731 if test "${ac_cv_gnu_library_2+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740
7741 #include <features.h>
7742 #ifdef __GNU_LIBRARY__
7743  #if (__GLIBC__ >= 2)
7744   Lucky GNU user
7745  #endif
7746 #endif
7747
7748 _ACEOF
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7751   ac_cv_gnu_library_2=yes
7752 else
7753   ac_cv_gnu_library_2=no
7754 fi
7755 rm -f conftest*
7756
7757
7758
7759 fi
7760 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7761 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7762
7763     GLIBC2="$ac_cv_gnu_library_2"
7764
7765
7766
7767         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7768 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7769 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   ac_check_lib_save_LIBS=$LIBS
7773 LIBS="-lcposix  $LIBS"
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h.  */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h.  */
7780
7781 /* Override any GCC internal prototype to avoid an error.
7782    Use char because int might match the return type of a GCC
7783    builtin and then its argument prototype would still apply.  */
7784 #ifdef __cplusplus
7785 extern "C"
7786 #endif
7787 char strerror ();
7788 int
7789 main ()
7790 {
7791 return strerror ();
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (ac_try="$ac_link"
7798 case "(($ac_try" in
7799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800   *) ac_try_echo=$ac_try;;
7801 esac
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803   (eval "$ac_link") 2>conftest.er1
7804   ac_status=$?
7805   grep -v '^ *+' conftest.er1 >conftest.err
7806   rm -f conftest.er1
7807   cat conftest.err >&5
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } && {
7810          test -z "$ac_c_werror_flag" ||
7811          test ! -s conftest.err
7812        } && test -s conftest$ac_exeext &&
7813        $as_test_x conftest$ac_exeext; then
7814   ac_cv_lib_cposix_strerror=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819         ac_cv_lib_cposix_strerror=no
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7823       conftest$ac_exeext conftest.$ac_ext
7824 LIBS=$ac_check_lib_save_LIBS
7825 fi
7826 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7827 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7828 if test $ac_cv_lib_cposix_strerror = yes; then
7829   LIBS="$LIBS -lcposix"
7830 fi
7831
7832
7833
7834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7836 if test "${ac_cv_header_stdc+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h.  */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h.  */
7845 #include <stdlib.h>
7846 #include <stdarg.h>
7847 #include <string.h>
7848 #include <float.h>
7849
7850 int
7851 main ()
7852 {
7853
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 rm -f conftest.$ac_objext
7859 if { (ac_try="$ac_compile"
7860 case "(($ac_try" in
7861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862   *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865   (eval "$ac_compile") 2>conftest.er1
7866   ac_status=$?
7867   grep -v '^ *+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } && {
7872          test -z "$ac_c_werror_flag" ||
7873          test ! -s conftest.err
7874        } && test -s conftest.$ac_objext; then
7875   ac_cv_header_stdc=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880         ac_cv_header_stdc=no
7881 fi
7882
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884
7885 if test $ac_cv_header_stdc = yes; then
7886   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7887   cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h.  */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h.  */
7893 #include <string.h>
7894
7895 _ACEOF
7896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7897   $EGREP "memchr" >/dev/null 2>&1; then
7898   :
7899 else
7900   ac_cv_header_stdc=no
7901 fi
7902 rm -f conftest*
7903
7904 fi
7905
7906 if test $ac_cv_header_stdc = yes; then
7907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7908   cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914 #include <stdlib.h>
7915
7916 _ACEOF
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918   $EGREP "free" >/dev/null 2>&1; then
7919   :
7920 else
7921   ac_cv_header_stdc=no
7922 fi
7923 rm -f conftest*
7924
7925 fi
7926
7927 if test $ac_cv_header_stdc = yes; then
7928   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7929   if test "$cross_compiling" = yes; then
7930   :
7931 else
7932   cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938 #include <ctype.h>
7939 #include <stdlib.h>
7940 #if ((' ' & 0x0FF) == 0x020)
7941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7943 #else
7944 # define ISLOWER(c) \
7945                    (('a' <= (c) && (c) <= 'i') \
7946                      || ('j' <= (c) && (c) <= 'r') \
7947                      || ('s' <= (c) && (c) <= 'z'))
7948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7949 #endif
7950
7951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7952 int
7953 main ()
7954 {
7955   int i;
7956   for (i = 0; i < 256; i++)
7957     if (XOR (islower (i), ISLOWER (i))
7958         || toupper (i) != TOUPPER (i))
7959       return 2;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest$ac_exeext
7964 if { (ac_try="$ac_link"
7965 case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970   (eval "$ac_link") 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7974   { (case "(($ac_try" in
7975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976   *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979   (eval "$ac_try") 2>&5
7980   ac_status=$?
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); }; }; then
7983   :
7984 else
7985   echo "$as_me: program exited with status $ac_status" >&5
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 ( exit $ac_status )
7990 ac_cv_header_stdc=no
7991 fi
7992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7993 fi
7994
7995
7996 fi
7997 fi
7998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8000 if test $ac_cv_header_stdc = yes; then
8001
8002 cat >>confdefs.h <<\_ACEOF
8003 #define STDC_HEADERS 1
8004 _ACEOF
8005
8006 fi
8007
8008 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8009 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8010 if test "${ac_cv_c_const+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019
8020 int
8021 main ()
8022 {
8023 /* FIXME: Include the comments suggested by Paul. */
8024 #ifndef __cplusplus
8025   /* Ultrix mips cc rejects this.  */
8026   typedef int charset[2];
8027   const charset cs;
8028   /* SunOS 4.1.1 cc rejects this.  */
8029   char const *const *pcpcc;
8030   char **ppc;
8031   /* NEC SVR4.0.2 mips cc rejects this.  */
8032   struct point {int x, y;};
8033   static struct point const zero = {0,0};
8034   /* AIX XL C 1.02.0.0 rejects this.
8035      It does not let you subtract one const X* pointer from another in
8036      an arm of an if-expression whose if-part is not a constant
8037      expression */
8038   const char *g = "string";
8039   pcpcc = &g + (g ? g-g : 0);
8040   /* HPUX 7.0 cc rejects these. */
8041   ++pcpcc;
8042   ppc = (char**) pcpcc;
8043   pcpcc = (char const *const *) ppc;
8044   { /* SCO 3.2v4 cc rejects this.  */
8045     char *t;
8046     char const *s = 0 ? (char *) 0 : (char const *) 0;
8047
8048     *t++ = 0;
8049     if (s) return 0;
8050   }
8051   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8052     int x[] = {25, 17};
8053     const int *foo = &x[0];
8054     ++foo;
8055   }
8056   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8057     typedef const int *iptr;
8058     iptr p = 0;
8059     ++p;
8060   }
8061   { /* AIX XL C 1.02.0.0 rejects this saying
8062        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8063     struct s { int j; const int *ap[3]; };
8064     struct s *b; b->j = 5;
8065   }
8066   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8067     const int foo = 10;
8068     if (!foo) return 0;
8069   }
8070   return !cs[0] && !zero.x;
8071 #endif
8072
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084   (eval "$ac_compile") 2>conftest.er1
8085   ac_status=$?
8086   grep -v '^ *+' conftest.er1 >conftest.err
8087   rm -f conftest.er1
8088   cat conftest.err >&5
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); } && {
8091          test -z "$ac_c_werror_flag" ||
8092          test ! -s conftest.err
8093        } && test -s conftest.$ac_objext; then
8094   ac_cv_c_const=yes
8095 else
8096   echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099         ac_cv_c_const=no
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8105 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8106 if test $ac_cv_c_const = no; then
8107
8108 cat >>confdefs.h <<\_ACEOF
8109 #define const
8110 _ACEOF
8111
8112 fi
8113
8114
8115   { echo "$as_me:$LINENO: checking for signed" >&5
8116 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8117 if test "${bh_cv_c_signed+set}" = set; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120   cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126
8127 int
8128 main ()
8129 {
8130 signed char x;
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142   (eval "$ac_compile") 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && {
8149          test -z "$ac_c_werror_flag" ||
8150          test ! -s conftest.err
8151        } && test -s conftest.$ac_objext; then
8152   bh_cv_c_signed=yes
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157         bh_cv_c_signed=no
8158 fi
8159
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 fi
8162 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8163 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8164   if test $bh_cv_c_signed = no; then
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define signed
8168 _ACEOF
8169
8170   fi
8171
8172 { echo "$as_me:$LINENO: checking for inline" >&5
8173 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8174 if test "${ac_cv_c_inline+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   ac_cv_c_inline=no
8178 for ac_kw in inline __inline__ __inline; do
8179   cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 #ifndef __cplusplus
8186 typedef int foo_t;
8187 static $ac_kw foo_t static_foo () {return 0; }
8188 $ac_kw foo_t foo () {return 0; }
8189 #endif
8190
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196   *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199   (eval "$ac_compile") 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } && {
8206          test -z "$ac_c_werror_flag" ||
8207          test ! -s conftest.err
8208        } && test -s conftest.$ac_objext; then
8209   ac_cv_c_inline=$ac_kw
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218   test "$ac_cv_c_inline" != no && break
8219 done
8220
8221 fi
8222 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8223 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8224
8225
8226 case $ac_cv_c_inline in
8227   inline | yes) ;;
8228   *)
8229     case $ac_cv_c_inline in
8230       no) ac_val=;;
8231       *) ac_val=$ac_cv_c_inline;;
8232     esac
8233     cat >>confdefs.h <<_ACEOF
8234 #ifndef __cplusplus
8235 #define inline $ac_val
8236 #endif
8237 _ACEOF
8238     ;;
8239 esac
8240
8241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8252                   inttypes.h stdint.h unistd.h
8253 do
8254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 $ac_includes_default
8267
8268 #include <$ac_header>
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8272 case "(($ac_try" in
8273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274   *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277   (eval "$ac_compile") 2>conftest.er1
8278   ac_status=$?
8279   grep -v '^ *+' conftest.er1 >conftest.err
8280   rm -f conftest.er1
8281   cat conftest.err >&5
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } && {
8284          test -z "$ac_c_werror_flag" ||
8285          test ! -s conftest.err
8286        } && test -s conftest.$ac_objext; then
8287   eval "$as_ac_Header=yes"
8288 else
8289   echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292         eval "$as_ac_Header=no"
8293 fi
8294
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 fi
8297 ac_res=`eval echo '${'$as_ac_Header'}'`
8298                { echo "$as_me:$LINENO: result: $ac_res" >&5
8299 echo "${ECHO_T}$ac_res" >&6; }
8300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8301   cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8303 _ACEOF
8304
8305 fi
8306
8307 done
8308
8309
8310 { echo "$as_me:$LINENO: checking for off_t" >&5
8311 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8312 if test "${ac_cv_type_off_t+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 $ac_includes_default
8322 typedef off_t ac__type_new_;
8323 int
8324 main ()
8325 {
8326 if ((ac__type_new_ *) 0)
8327   return 0;
8328 if (sizeof (ac__type_new_))
8329   return 0;
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8336 case "(($ac_try" in
8337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338   *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341   (eval "$ac_compile") 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } && {
8348          test -z "$ac_c_werror_flag" ||
8349          test ! -s conftest.err
8350        } && test -s conftest.$ac_objext; then
8351   ac_cv_type_off_t=yes
8352 else
8353   echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356         ac_cv_type_off_t=no
8357 fi
8358
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8362 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8363 if test $ac_cv_type_off_t = yes; then
8364   :
8365 else
8366
8367 cat >>confdefs.h <<_ACEOF
8368 #define off_t long int
8369 _ACEOF
8370
8371 fi
8372
8373 { echo "$as_me:$LINENO: checking for size_t" >&5
8374 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8375 if test "${ac_cv_type_size_t+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h.  */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h.  */
8384 $ac_includes_default
8385 typedef size_t ac__type_new_;
8386 int
8387 main ()
8388 {
8389 if ((ac__type_new_ *) 0)
8390   return 0;
8391 if (sizeof (ac__type_new_))
8392   return 0;
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 rm -f conftest.$ac_objext
8398 if { (ac_try="$ac_compile"
8399 case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_compile") 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } && {
8411          test -z "$ac_c_werror_flag" ||
8412          test ! -s conftest.err
8413        } && test -s conftest.$ac_objext; then
8414   ac_cv_type_size_t=yes
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419         ac_cv_type_size_t=no
8420 fi
8421
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8425 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8426 if test $ac_cv_type_size_t = yes; then
8427   :
8428 else
8429
8430 cat >>confdefs.h <<_ACEOF
8431 #define size_t unsigned int
8432 _ACEOF
8433
8434 fi
8435
8436
8437   { echo "$as_me:$LINENO: checking for long long" >&5
8438 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8439 if test "${ac_cv_type_long_long+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h.  */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h.  */
8448 long long ll = 1LL; int i = 63;
8449 int
8450 main ()
8451 {
8452 long long llmax = (long long) -1;
8453      return ll << i | ll >> i | llmax / ll | llmax % ll;
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (ac_try="$ac_link"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_link") 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } && {
8472          test -z "$ac_c_werror_flag" ||
8473          test ! -s conftest.err
8474        } && test -s conftest$ac_exeext &&
8475        $as_test_x conftest$ac_exeext; then
8476   ac_cv_type_long_long=yes
8477 else
8478   echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481         ac_cv_type_long_long=no
8482 fi
8483
8484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8485       conftest$ac_exeext conftest.$ac_ext
8486 fi
8487 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8488 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8489   if test $ac_cv_type_long_long = yes; then
8490
8491 cat >>confdefs.h <<\_ACEOF
8492 #define HAVE_LONG_LONG 1
8493 _ACEOF
8494
8495   fi
8496
8497
8498   { echo "$as_me:$LINENO: checking for long double" >&5
8499 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8500 if test "${gt_cv_c_long_double+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   if test "$GCC" = yes; then
8504        gt_cv_c_long_double=yes
8505      else
8506        cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h.  */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h.  */
8512
8513          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8514          long double foo = 0.0;
8515          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8516          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8517
8518 int
8519 main ()
8520 {
8521
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_compile") 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } && {
8540          test -z "$ac_c_werror_flag" ||
8541          test ! -s conftest.err
8542        } && test -s conftest.$ac_objext; then
8543   gt_cv_c_long_double=yes
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548         gt_cv_c_long_double=no
8549 fi
8550
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552      fi
8553 fi
8554 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8555 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8556   if test $gt_cv_c_long_double = yes; then
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_LONG_DOUBLE 1
8560 _ACEOF
8561
8562   fi
8563
8564
8565   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8566 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8567 if test "${gt_cv_c_wchar_t+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h.  */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h.  */
8576 #include <stddef.h>
8577        wchar_t foo = (wchar_t)'\0';
8578 int
8579 main ()
8580 {
8581
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8588 case "(($ac_try" in
8589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590   *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593   (eval "$ac_compile") 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } && {
8600          test -z "$ac_c_werror_flag" ||
8601          test ! -s conftest.err
8602        } && test -s conftest.$ac_objext; then
8603   gt_cv_c_wchar_t=yes
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608         gt_cv_c_wchar_t=no
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8614 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8615   if test $gt_cv_c_wchar_t = yes; then
8616
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_WCHAR_T 1
8619 _ACEOF
8620
8621   fi
8622
8623
8624   { echo "$as_me:$LINENO: checking for wint_t" >&5
8625 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8626 if test "${gt_cv_c_wint_t+set}" = set; then
8627   echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629   cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635 #include <wchar.h>
8636        wint_t foo = (wchar_t)'\0';
8637 int
8638 main ()
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_compile") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && {
8659          test -z "$ac_c_werror_flag" ||
8660          test ! -s conftest.err
8661        } && test -s conftest.$ac_objext; then
8662   gt_cv_c_wint_t=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667         gt_cv_c_wint_t=no
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8673 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8674   if test $gt_cv_c_wint_t = yes; then
8675
8676 cat >>confdefs.h <<\_ACEOF
8677 #define HAVE_WINT_T 1
8678 _ACEOF
8679
8680   fi
8681
8682
8683   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8684 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8685 if test "${gl_cv_header_inttypes_h+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694 #include <sys/types.h>
8695 #include <inttypes.h>
8696 int
8697 main ()
8698 {
8699 uintmax_t i = (uintmax_t) -1;
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708   *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711   (eval "$ac_compile") 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } && {
8718          test -z "$ac_c_werror_flag" ||
8719          test ! -s conftest.err
8720        } && test -s conftest.$ac_objext; then
8721   gl_cv_header_inttypes_h=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726         gl_cv_header_inttypes_h=no
8727 fi
8728
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 fi
8731 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8732 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8733   if test $gl_cv_header_inttypes_h = yes; then
8734
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8737 _ACEOF
8738
8739   fi
8740
8741
8742   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8743 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8744 if test "${gl_cv_header_stdint_h+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747   cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 #include <sys/types.h>
8754 #include <stdint.h>
8755 int
8756 main ()
8757 {
8758 uintmax_t i = (uintmax_t) -1;
8759   ;
8760   return 0;
8761 }
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8765 case "(($ac_try" in
8766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767   *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770   (eval "$ac_compile") 2>conftest.er1
8771   ac_status=$?
8772   grep -v '^ *+' conftest.er1 >conftest.err
8773   rm -f conftest.er1
8774   cat conftest.err >&5
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } && {
8777          test -z "$ac_c_werror_flag" ||
8778          test ! -s conftest.err
8779        } && test -s conftest.$ac_objext; then
8780   gl_cv_header_stdint_h=yes
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785         gl_cv_header_stdint_h=no
8786 fi
8787
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 fi
8790 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8791 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8792   if test $gl_cv_header_stdint_h = yes; then
8793
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_STDINT_H_WITH_UINTMAX 1
8796 _ACEOF
8797
8798   fi
8799
8800
8801
8802
8803   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8804 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8805 if test "${gt_cv_c_intmax_t+set}" = set; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814
8815 #include <stddef.h>
8816 #include <stdlib.h>
8817 #if HAVE_STDINT_H_WITH_UINTMAX
8818 #include <stdint.h>
8819 #endif
8820 #if HAVE_INTTYPES_H_WITH_UINTMAX
8821 #include <inttypes.h>
8822 #endif
8823
8824 int
8825 main ()
8826 {
8827 intmax_t x = -1;
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8834 case "(($ac_try" in
8835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836   *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839   (eval "$ac_compile") 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } && {
8846          test -z "$ac_c_werror_flag" ||
8847          test ! -s conftest.err
8848        } && test -s conftest.$ac_objext; then
8849   gt_cv_c_intmax_t=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854         gt_cv_c_intmax_t=no
8855 fi
8856
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8860 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8861   if test $gt_cv_c_intmax_t = yes; then
8862
8863 cat >>confdefs.h <<\_ACEOF
8864 #define HAVE_INTMAX_T 1
8865 _ACEOF
8866
8867   fi
8868
8869
8870
8871   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8872 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8873 if test "${gt_cv_func_printf_posix+set}" = set; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876
8877       if test "$cross_compiling" = yes; then
8878
8879         cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885
8886 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8887   notposix
8888 #endif
8889
8890 _ACEOF
8891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892   $EGREP "notposix" >/dev/null 2>&1; then
8893   gt_cv_func_printf_posix="guessing no"
8894 else
8895   gt_cv_func_printf_posix="guessing yes"
8896 fi
8897 rm -f conftest*
8898
8899
8900 else
8901   cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907
8908 #include <stdio.h>
8909 #include <string.h>
8910 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8911    dollar expansion (possibly an autoconf bug).  */
8912 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8913 static char buf[100];
8914 int main ()
8915 {
8916   sprintf (buf, format, 33, 55);
8917   return (strcmp (buf, "55 33") != 0);
8918 }
8919 _ACEOF
8920 rm -f conftest$ac_exeext
8921 if { (ac_try="$ac_link"
8922 case "(($ac_try" in
8923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924   *) ac_try_echo=$ac_try;;
8925 esac
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927   (eval "$ac_link") 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8931   { (case "(($ac_try" in
8932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933   *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936   (eval "$ac_try") 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; }; then
8940   gt_cv_func_printf_posix=yes
8941 else
8942   echo "$as_me: program exited with status $ac_status" >&5
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 ( exit $ac_status )
8947 gt_cv_func_printf_posix=no
8948 fi
8949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8950 fi
8951
8952
8953
8954 fi
8955 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8956 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8957   case $gt_cv_func_printf_posix in
8958     *yes)
8959
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_POSIX_PRINTF 1
8962 _ACEOF
8963
8964       ;;
8965   esac
8966
8967 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8968 # for constant arguments.  Useless!
8969 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8970 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8971 if test "${ac_cv_working_alloca_h+set}" = set; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974   cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980 #include <alloca.h>
8981 int
8982 main ()
8983 {
8984 char *p = (char *) alloca (2 * sizeof (int));
8985                           if (p) return 0;
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8992 case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997   (eval "$ac_link") 2>conftest.er1
8998   ac_status=$?
8999   grep -v '^ *+' conftest.er1 >conftest.err
9000   rm -f conftest.er1
9001   cat conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } && {
9004          test -z "$ac_c_werror_flag" ||
9005          test ! -s conftest.err
9006        } && test -s conftest$ac_exeext &&
9007        $as_test_x conftest$ac_exeext; then
9008   ac_cv_working_alloca_h=yes
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013         ac_cv_working_alloca_h=no
9014 fi
9015
9016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017       conftest$ac_exeext conftest.$ac_ext
9018 fi
9019 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9020 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9021 if test $ac_cv_working_alloca_h = yes; then
9022
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_ALLOCA_H 1
9025 _ACEOF
9026
9027 fi
9028
9029 { echo "$as_me:$LINENO: checking for alloca" >&5
9030 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9031 if test "${ac_cv_func_alloca_works+set}" = set; then
9032   echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034   cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040 #ifdef __GNUC__
9041 # define alloca __builtin_alloca
9042 #else
9043 # ifdef _MSC_VER
9044 #  include <malloc.h>
9045 #  define alloca _alloca
9046 # else
9047 #  ifdef HAVE_ALLOCA_H
9048 #   include <alloca.h>
9049 #  else
9050 #   ifdef _AIX
9051  #pragma alloca
9052 #   else
9053 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9054 char *alloca ();
9055 #    endif
9056 #   endif
9057 #  endif
9058 # endif
9059 #endif
9060
9061 int
9062 main ()
9063 {
9064 char *p = (char *) alloca (1);
9065                                     if (p) return 0;
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9072 case "(($ac_try" in
9073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074   *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077   (eval "$ac_link") 2>conftest.er1
9078   ac_status=$?
9079   grep -v '^ *+' conftest.er1 >conftest.err
9080   rm -f conftest.er1
9081   cat conftest.err >&5
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); } && {
9084          test -z "$ac_c_werror_flag" ||
9085          test ! -s conftest.err
9086        } && test -s conftest$ac_exeext &&
9087        $as_test_x conftest$ac_exeext; then
9088   ac_cv_func_alloca_works=yes
9089 else
9090   echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093         ac_cv_func_alloca_works=no
9094 fi
9095
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097       conftest$ac_exeext conftest.$ac_ext
9098 fi
9099 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9100 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9101
9102 if test $ac_cv_func_alloca_works = yes; then
9103
9104 cat >>confdefs.h <<\_ACEOF
9105 #define HAVE_ALLOCA 1
9106 _ACEOF
9107
9108 else
9109   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9110 # that cause trouble.  Some versions do not even contain alloca or
9111 # contain a buggy version.  If you still want to use their alloca,
9112 # use ar to extract alloca.o from them instead of compiling alloca.c.
9113
9114 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9115
9116 cat >>confdefs.h <<\_ACEOF
9117 #define C_ALLOCA 1
9118 _ACEOF
9119
9120
9121 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9122 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9123 if test "${ac_cv_os_cray+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 #if defined CRAY && ! defined CRAY2
9133 webecray
9134 #else
9135 wenotbecray
9136 #endif
9137
9138 _ACEOF
9139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9140   $EGREP "webecray" >/dev/null 2>&1; then
9141   ac_cv_os_cray=yes
9142 else
9143   ac_cv_os_cray=no
9144 fi
9145 rm -f conftest*
9146
9147 fi
9148 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9149 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9150 if test $ac_cv_os_cray = yes; then
9151   for ac_func in _getb67 GETB67 getb67; do
9152     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9166 #define $ac_func innocuous_$ac_func
9167
9168 /* System header to define __stub macros and hopefully few prototypes,
9169     which can conflict with char $ac_func (); below.
9170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9171     <limits.h> exists even on freestanding compilers.  */
9172
9173 #ifdef __STDC__
9174 # include <limits.h>
9175 #else
9176 # include <assert.h>
9177 #endif
9178
9179 #undef $ac_func
9180
9181 /* Override any GCC internal prototype to avoid an error.
9182    Use char because int might match the return type of a GCC
9183    builtin and then its argument prototype would still apply.  */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 char $ac_func ();
9188 /* The GNU C library defines this for functions which it implements
9189     to always fail with ENOSYS.  Some functions are actually named
9190     something starting with __ and the normal name is an alias.  */
9191 #if defined __stub_$ac_func || defined __stub___$ac_func
9192 choke me
9193 #endif
9194
9195 int
9196 main ()
9197 {
9198 return $ac_func ();
9199   ;
9200   return 0;
9201 }
9202 _ACEOF
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210   (eval "$ac_link") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } && {
9217          test -z "$ac_c_werror_flag" ||
9218          test ! -s conftest.err
9219        } && test -s conftest$ac_exeext &&
9220        $as_test_x conftest$ac_exeext; then
9221   eval "$as_ac_var=yes"
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226         eval "$as_ac_var=no"
9227 fi
9228
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230       conftest$ac_exeext conftest.$ac_ext
9231 fi
9232 ac_res=`eval echo '${'$as_ac_var'}'`
9233                { echo "$as_me:$LINENO: result: $ac_res" >&5
9234 echo "${ECHO_T}$ac_res" >&6; }
9235 if test `eval echo '${'$as_ac_var'}'` = yes; then
9236
9237 cat >>confdefs.h <<_ACEOF
9238 #define CRAY_STACKSEG_END $ac_func
9239 _ACEOF
9240
9241     break
9242 fi
9243
9244   done
9245 fi
9246
9247 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9248 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9249 if test "${ac_cv_c_stack_direction+set}" = set; then
9250   echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252   if test "$cross_compiling" = yes; then
9253   ac_cv_c_stack_direction=0
9254 else
9255   cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261 $ac_includes_default
9262 int
9263 find_stack_direction ()
9264 {
9265   static char *addr = 0;
9266   auto char dummy;
9267   if (addr == 0)
9268     {
9269       addr = &dummy;
9270       return find_stack_direction ();
9271     }
9272   else
9273     return (&dummy > addr) ? 1 : -1;
9274 }
9275
9276 int
9277 main ()
9278 {
9279   return find_stack_direction () < 0;
9280 }
9281 _ACEOF
9282 rm -f conftest$ac_exeext
9283 if { (ac_try="$ac_link"
9284 case "(($ac_try" in
9285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286   *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289   (eval "$ac_link") 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293   { (case "(($ac_try" in
9294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295   *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298   (eval "$ac_try") 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_c_stack_direction=1
9303 else
9304   echo "$as_me: program exited with status $ac_status" >&5
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 ( exit $ac_status )
9309 ac_cv_c_stack_direction=-1
9310 fi
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9312 fi
9313
9314
9315 fi
9316 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9317 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9318
9319 cat >>confdefs.h <<_ACEOF
9320 #define STACK_DIRECTION $ac_cv_c_stack_direction
9321 _ACEOF
9322
9323
9324 fi
9325
9326
9327
9328 for ac_header in stdlib.h unistd.h
9329 do
9330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 fi
9337 ac_res=`eval echo '${'$as_ac_Header'}'`
9338                { echo "$as_me:$LINENO: result: $ac_res" >&5
9339 echo "${ECHO_T}$ac_res" >&6; }
9340 else
9341   # Is the header compilable?
9342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 $ac_includes_default
9351 #include <$ac_header>
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9355 case "(($ac_try" in
9356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357   *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360   (eval "$ac_compile") 2>conftest.er1
9361   ac_status=$?
9362   grep -v '^ *+' conftest.er1 >conftest.err
9363   rm -f conftest.er1
9364   cat conftest.err >&5
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); } && {
9367          test -z "$ac_c_werror_flag" ||
9368          test ! -s conftest.err
9369        } && test -s conftest.$ac_objext; then
9370   ac_header_compiler=yes
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375         ac_header_compiler=no
9376 fi
9377
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9380 echo "${ECHO_T}$ac_header_compiler" >&6; }
9381
9382 # Is the header present?
9383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391 #include <$ac_header>
9392 _ACEOF
9393 if { (ac_try="$ac_cpp conftest.$ac_ext"
9394 case "(($ac_try" in
9395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396   *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } >/dev/null && {
9406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9407          test ! -s conftest.err
9408        }; then
9409   ac_header_preproc=yes
9410 else
9411   echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414   ac_header_preproc=no
9415 fi
9416
9417 rm -f conftest.err conftest.$ac_ext
9418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9419 echo "${ECHO_T}$ac_header_preproc" >&6; }
9420
9421 # So?  What about this header?
9422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9423   yes:no: )
9424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9428     ac_header_preproc=yes
9429     ;;
9430   no:yes:* )
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9443
9444     ;;
9445 esac
9446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   eval "$as_ac_Header=\$ac_header_preproc"
9452 fi
9453 ac_res=`eval echo '${'$as_ac_Header'}'`
9454                { echo "$as_me:$LINENO: result: $ac_res" >&5
9455 echo "${ECHO_T}$ac_res" >&6; }
9456
9457 fi
9458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9459   cat >>confdefs.h <<_ACEOF
9460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9461 _ACEOF
9462
9463 fi
9464
9465 done
9466
9467
9468 for ac_func in getpagesize
9469 do
9470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9484 #define $ac_func innocuous_$ac_func
9485
9486 /* System header to define __stub macros and hopefully few prototypes,
9487     which can conflict with char $ac_func (); below.
9488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489     <limits.h> exists even on freestanding compilers.  */
9490
9491 #ifdef __STDC__
9492 # include <limits.h>
9493 #else
9494 # include <assert.h>
9495 #endif
9496
9497 #undef $ac_func
9498
9499 /* Override any GCC internal prototype to avoid an error.
9500    Use char because int might match the return type of a GCC
9501    builtin and then its argument prototype would still apply.  */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 char $ac_func ();
9506 /* The GNU C library defines this for functions which it implements
9507     to always fail with ENOSYS.  Some functions are actually named
9508     something starting with __ and the normal name is an alias.  */
9509 #if defined __stub_$ac_func || defined __stub___$ac_func
9510 choke me
9511 #endif
9512
9513 int
9514 main ()
9515 {
9516 return $ac_func ();
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (ac_try="$ac_link"
9523 case "(($ac_try" in
9524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525   *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528   (eval "$ac_link") 2>conftest.er1
9529   ac_status=$?
9530   grep -v '^ *+' conftest.er1 >conftest.err
9531   rm -f conftest.er1
9532   cat conftest.err >&5
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } && {
9535          test -z "$ac_c_werror_flag" ||
9536          test ! -s conftest.err
9537        } && test -s conftest$ac_exeext &&
9538        $as_test_x conftest$ac_exeext; then
9539   eval "$as_ac_var=yes"
9540 else
9541   echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544         eval "$as_ac_var=no"
9545 fi
9546
9547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548       conftest$ac_exeext conftest.$ac_ext
9549 fi
9550 ac_res=`eval echo '${'$as_ac_var'}'`
9551                { echo "$as_me:$LINENO: result: $ac_res" >&5
9552 echo "${ECHO_T}$ac_res" >&6; }
9553 if test `eval echo '${'$as_ac_var'}'` = yes; then
9554   cat >>confdefs.h <<_ACEOF
9555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9556 _ACEOF
9557
9558 fi
9559 done
9560
9561 { echo "$as_me:$LINENO: checking for working mmap" >&5
9562 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9563 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   if test "$cross_compiling" = yes; then
9567   ac_cv_func_mmap_fixed_mapped=no
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h.  */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h.  */
9575 $ac_includes_default
9576 /* malloc might have been renamed as rpl_malloc. */
9577 #undef malloc
9578
9579 /* Thanks to Mike Haertel and Jim Avera for this test.
9580    Here is a matrix of mmap possibilities:
9581         mmap private not fixed
9582         mmap private fixed at somewhere currently unmapped
9583         mmap private fixed at somewhere already mapped
9584         mmap shared not fixed
9585         mmap shared fixed at somewhere currently unmapped
9586         mmap shared fixed at somewhere already mapped
9587    For private mappings, we should verify that changes cannot be read()
9588    back from the file, nor mmap's back from the file at a different
9589    address.  (There have been systems where private was not correctly
9590    implemented like the infamous i386 svr4.0, and systems where the
9591    VM page cache was not coherent with the file system buffer cache
9592    like early versions of FreeBSD and possibly contemporary NetBSD.)
9593    For shared mappings, we should conversely verify that changes get
9594    propagated back to all the places they're supposed to be.
9595
9596    Grep wants private fixed already mapped.
9597    The main things grep needs to know about mmap are:
9598    * does it exist and is it safe to write into the mmap'd area
9599    * how to use it (BSD variants)  */
9600
9601 #include <fcntl.h>
9602 #include <sys/mman.h>
9603
9604 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9605 char *malloc ();
9606 #endif
9607
9608 /* This mess was copied from the GNU getpagesize.h.  */
9609 #ifndef HAVE_GETPAGESIZE
9610 /* Assume that all systems that can run configure have sys/param.h.  */
9611 # ifndef HAVE_SYS_PARAM_H
9612 #  define HAVE_SYS_PARAM_H 1
9613 # endif
9614
9615 # ifdef _SC_PAGESIZE
9616 #  define getpagesize() sysconf(_SC_PAGESIZE)
9617 # else /* no _SC_PAGESIZE */
9618 #  ifdef HAVE_SYS_PARAM_H
9619 #   include <sys/param.h>
9620 #   ifdef EXEC_PAGESIZE
9621 #    define getpagesize() EXEC_PAGESIZE
9622 #   else /* no EXEC_PAGESIZE */
9623 #    ifdef NBPG
9624 #     define getpagesize() NBPG * CLSIZE
9625 #     ifndef CLSIZE
9626 #      define CLSIZE 1
9627 #     endif /* no CLSIZE */
9628 #    else /* no NBPG */
9629 #     ifdef NBPC
9630 #      define getpagesize() NBPC
9631 #     else /* no NBPC */
9632 #      ifdef PAGESIZE
9633 #       define getpagesize() PAGESIZE
9634 #      endif /* PAGESIZE */
9635 #     endif /* no NBPC */
9636 #    endif /* no NBPG */
9637 #   endif /* no EXEC_PAGESIZE */
9638 #  else /* no HAVE_SYS_PARAM_H */
9639 #   define getpagesize() 8192   /* punt totally */
9640 #  endif /* no HAVE_SYS_PARAM_H */
9641 # endif /* no _SC_PAGESIZE */
9642
9643 #endif /* no HAVE_GETPAGESIZE */
9644
9645 int
9646 main ()
9647 {
9648   char *data, *data2, *data3;
9649   int i, pagesize;
9650   int fd;
9651
9652   pagesize = getpagesize ();
9653
9654   /* First, make a file with some known garbage in it. */
9655   data = (char *) malloc (pagesize);
9656   if (!data)
9657     return 1;
9658   for (i = 0; i < pagesize; ++i)
9659     *(data + i) = rand ();
9660   umask (0);
9661   fd = creat ("conftest.mmap", 0600);
9662   if (fd < 0)
9663     return 1;
9664   if (write (fd, data, pagesize) != pagesize)
9665     return 1;
9666   close (fd);
9667
9668   /* Next, try to mmap the file at a fixed address which already has
9669      something else allocated at it.  If we can, also make sure that
9670      we see the same garbage.  */
9671   fd = open ("conftest.mmap", O_RDWR);
9672   if (fd < 0)
9673     return 1;
9674   data2 = (char *) malloc (2 * pagesize);
9675   if (!data2)
9676     return 1;
9677   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9678   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9679                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9680     return 1;
9681   for (i = 0; i < pagesize; ++i)
9682     if (*(data + i) != *(data2 + i))
9683       return 1;
9684
9685   /* Finally, make sure that changes to the mapped area do not
9686      percolate back to the file as seen by read().  (This is a bug on
9687      some variants of i386 svr4.0.)  */
9688   for (i = 0; i < pagesize; ++i)
9689     *(data2 + i) = *(data2 + i) + 1;
9690   data3 = (char *) malloc (pagesize);
9691   if (!data3)
9692     return 1;
9693   if (read (fd, data3, pagesize) != pagesize)
9694     return 1;
9695   for (i = 0; i < pagesize; ++i)
9696     if (*(data + i) != *(data3 + i))
9697       return 1;
9698   close (fd);
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9704 case "(($ac_try" in
9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706   *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709   (eval "$ac_link") 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9713   { (case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_try") 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; }; then
9722   ac_cv_func_mmap_fixed_mapped=yes
9723 else
9724   echo "$as_me: program exited with status $ac_status" >&5
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ( exit $ac_status )
9729 ac_cv_func_mmap_fixed_mapped=no
9730 fi
9731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9732 fi
9733
9734
9735 fi
9736 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9737 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9738 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9739
9740 cat >>confdefs.h <<\_ACEOF
9741 #define HAVE_MMAP 1
9742 _ACEOF
9743
9744 fi
9745 rm -f conftest.mmap
9746
9747
9748     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9749 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9750 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h.  */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h.  */
9759
9760 #include <features.h>
9761 #ifdef __GNU_LIBRARY__
9762  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9763   Lucky GNU user
9764  #endif
9765 #endif
9766
9767 _ACEOF
9768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9769   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9770   ac_cv_gnu_library_2_1=yes
9771 else
9772   ac_cv_gnu_library_2_1=no
9773 fi
9774 rm -f conftest*
9775
9776
9777
9778 fi
9779 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9780 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9781
9782     GLIBC21="$ac_cv_gnu_library_2_1"
9783
9784
9785
9786
9787   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9788 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9789 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9790   echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792
9793       if test "$cross_compiling" = yes; then
9794
9795           # Guess based on the CPU.
9796           case "$host_cpu" in
9797             alpha* | i3456786 | m68k | s390*)
9798               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9799             *)
9800               gt_cv_int_divbyzero_sigfpe="guessing no";;
9801           esac
9802
9803 else
9804   cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810
9811 #include <stdlib.h>
9812 #include <signal.h>
9813
9814 static void
9815 #ifdef __cplusplus
9816 sigfpe_handler (int sig)
9817 #else
9818 sigfpe_handler (sig) int sig;
9819 #endif
9820 {
9821   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9822   exit (sig != SIGFPE);
9823 }
9824
9825 int x = 1;
9826 int y = 0;
9827 int z;
9828 int nan;
9829
9830 int main ()
9831 {
9832   signal (SIGFPE, sigfpe_handler);
9833 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9834 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9835   signal (SIGTRAP, sigfpe_handler);
9836 #endif
9837 /* Linux/SPARC yields signal SIGILL.  */
9838 #if defined (__sparc__) && defined (__linux__)
9839   signal (SIGILL, sigfpe_handler);
9840 #endif
9841
9842   z = x / y;
9843   nan = y / y;
9844   exit (1);
9845 }
9846
9847 _ACEOF
9848 rm -f conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_link") 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; }; then
9868   gt_cv_int_divbyzero_sigfpe=yes
9869 else
9870   echo "$as_me: program exited with status $ac_status" >&5
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ( exit $ac_status )
9875 gt_cv_int_divbyzero_sigfpe=no
9876 fi
9877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9878 fi
9879
9880
9881
9882 fi
9883 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9884 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9885   case "$gt_cv_int_divbyzero_sigfpe" in
9886     *yes) value=1;;
9887     *) value=0;;
9888   esac
9889
9890 cat >>confdefs.h <<_ACEOF
9891 #define INTDIV0_RAISES_SIGFPE $value
9892 _ACEOF
9893
9894
9895
9896   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9897 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9898 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h.  */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h.  */
9907 unsigned long long ull = 1ULL; int i = 63;
9908 int
9909 main ()
9910 {
9911 unsigned long long ullmax = (unsigned long long) -1;
9912      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9919 case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924   (eval "$ac_link") 2>conftest.er1
9925   ac_status=$?
9926   grep -v '^ *+' conftest.er1 >conftest.err
9927   rm -f conftest.er1
9928   cat conftest.err >&5
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } && {
9931          test -z "$ac_c_werror_flag" ||
9932          test ! -s conftest.err
9933        } && test -s conftest$ac_exeext &&
9934        $as_test_x conftest$ac_exeext; then
9935   ac_cv_type_unsigned_long_long=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940         ac_cv_type_unsigned_long_long=no
9941 fi
9942
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944       conftest$ac_exeext conftest.$ac_ext
9945 fi
9946 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9947 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9948   if test $ac_cv_type_unsigned_long_long = yes; then
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_UNSIGNED_LONG_LONG 1
9952 _ACEOF
9953
9954   fi
9955
9956
9957
9958
9959   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9960
9961     test $ac_cv_type_unsigned_long_long = yes \
9962       && ac_type='unsigned long long' \
9963       || ac_type='unsigned long'
9964
9965 cat >>confdefs.h <<_ACEOF
9966 #define uintmax_t $ac_type
9967 _ACEOF
9968
9969   else
9970
9971 cat >>confdefs.h <<\_ACEOF
9972 #define HAVE_UINTMAX_T 1
9973 _ACEOF
9974
9975   fi
9976
9977
9978   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9979 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9980 if test "${gt_cv_header_inttypes_h+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983
9984     cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h.  */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h.  */
9990 #include <sys/types.h>
9991 #include <inttypes.h>
9992 int
9993 main ()
9994 {
9995
9996   ;
9997   return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
10002 case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_compile") 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } && {
10014          test -z "$ac_c_werror_flag" ||
10015          test ! -s conftest.err
10016        } && test -s conftest.$ac_objext; then
10017   gt_cv_header_inttypes_h=yes
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022         gt_cv_header_inttypes_h=no
10023 fi
10024
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026
10027 fi
10028 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10029 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10030   if test $gt_cv_header_inttypes_h = yes; then
10031
10032 cat >>confdefs.h <<_ACEOF
10033 #define HAVE_INTTYPES_H 1
10034 _ACEOF
10035
10036   fi
10037
10038
10039
10040   if test $gt_cv_header_inttypes_h = yes; then
10041     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10042 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10043 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046
10047         cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h.  */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h.  */
10053 #include <inttypes.h>
10054 #ifdef PRId32
10055 char *p = PRId32;
10056 #endif
10057
10058 int
10059 main ()
10060 {
10061
10062   ;
10063   return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext
10067 if { (ac_try="$ac_compile"
10068 case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_compile") 2>conftest.er1
10074   ac_status=$?
10075   grep -v '^ *+' conftest.er1 >conftest.err
10076   rm -f conftest.er1
10077   cat conftest.err >&5
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } && {
10080          test -z "$ac_c_werror_flag" ||
10081          test ! -s conftest.err
10082        } && test -s conftest.$ac_objext; then
10083   gt_cv_inttypes_pri_broken=no
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088         gt_cv_inttypes_pri_broken=yes
10089 fi
10090
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092
10093 fi
10094 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10095 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10096   fi
10097   if test "$gt_cv_inttypes_pri_broken" = yes; then
10098
10099 cat >>confdefs.h <<_ACEOF
10100 #define PRI_MACROS_BROKEN 1
10101 _ACEOF
10102
10103   fi
10104
10105
10106
10107 for ac_header in stdint.h
10108 do
10109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 fi
10116 ac_res=`eval echo '${'$as_ac_Header'}'`
10117                { echo "$as_me:$LINENO: result: $ac_res" >&5
10118 echo "${ECHO_T}$ac_res" >&6; }
10119 else
10120   # Is the header compilable?
10121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h.  */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h.  */
10129 $ac_includes_default
10130 #include <$ac_header>
10131 _ACEOF
10132 rm -f conftest.$ac_objext
10133 if { (ac_try="$ac_compile"
10134 case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_compile") 2>conftest.er1
10140   ac_status=$?
10141   grep -v '^ *+' conftest.er1 >conftest.err
10142   rm -f conftest.er1
10143   cat conftest.err >&5
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } && {
10146          test -z "$ac_c_werror_flag" ||
10147          test ! -s conftest.err
10148        } && test -s conftest.$ac_objext; then
10149   ac_header_compiler=yes
10150 else
10151   echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154         ac_header_compiler=no
10155 fi
10156
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10159 echo "${ECHO_T}$ac_header_compiler" >&6; }
10160
10161 # Is the header present?
10162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170 #include <$ac_header>
10171 _ACEOF
10172 if { (ac_try="$ac_cpp conftest.$ac_ext"
10173 case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } >/dev/null && {
10185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10186          test ! -s conftest.err
10187        }; then
10188   ac_header_preproc=yes
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193   ac_header_preproc=no
10194 fi
10195
10196 rm -f conftest.err conftest.$ac_ext
10197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10198 echo "${ECHO_T}$ac_header_preproc" >&6; }
10199
10200 # So?  What about this header?
10201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10202   yes:no: )
10203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10207     ac_header_preproc=yes
10208     ;;
10209   no:yes:* )
10210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10222
10223     ;;
10224 esac
10225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10228   echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230   eval "$as_ac_Header=\$ac_header_preproc"
10231 fi
10232 ac_res=`eval echo '${'$as_ac_Header'}'`
10233                { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10235
10236 fi
10237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10238   cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10240 _ACEOF
10241
10242 fi
10243
10244 done
10245
10246     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10247 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10248   result=
10249   cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h.  */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h.  */
10255
10256 #include <limits.h>
10257 #if HAVE_STDINT_H
10258 #include <stdint.h>
10259 #endif
10260 #ifdef SIZE_MAX
10261 Found it
10262 #endif
10263
10264 _ACEOF
10265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10266   $EGREP "Found it" >/dev/null 2>&1; then
10267   result=yes
10268 fi
10269 rm -f conftest*
10270
10271   if test -z "$result"; then
10272                     if test "$cross_compiling" = yes; then
10273   # Depending upon the size, compute the lo and hi bounds.
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280 #include <stddef.h>
10281 int
10282 main ()
10283 {
10284 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10285 test_array [0] = 0
10286
10287   ;
10288   return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298   (eval "$ac_compile") 2>conftest.er1
10299   ac_status=$?
10300   grep -v '^ *+' conftest.er1 >conftest.err
10301   rm -f conftest.er1
10302   cat conftest.err >&5
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } && {
10305          test -z "$ac_c_werror_flag" ||
10306          test ! -s conftest.err
10307        } && test -s conftest.$ac_objext; then
10308   ac_lo=0 ac_mid=0
10309   while :; do
10310     cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316 #include <stddef.h>
10317 int
10318 main ()
10319 {
10320 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10321 test_array [0] = 0
10322
10323   ;
10324   return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (ac_try="$ac_compile"
10329 case "(($ac_try" in
10330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331   *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334   (eval "$ac_compile") 2>conftest.er1
10335   ac_status=$?
10336   grep -v '^ *+' conftest.er1 >conftest.err
10337   rm -f conftest.er1
10338   cat conftest.err >&5
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); } && {
10341          test -z "$ac_c_werror_flag" ||
10342          test ! -s conftest.err
10343        } && test -s conftest.$ac_objext; then
10344   ac_hi=$ac_mid; break
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349         ac_lo=`expr $ac_mid + 1`
10350                         if test $ac_lo -le $ac_mid; then
10351                           ac_lo= ac_hi=
10352                           break
10353                         fi
10354                         ac_mid=`expr 2 '*' $ac_mid + 1`
10355 fi
10356
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358   done
10359 else
10360   echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363         cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h.  */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h.  */
10369 #include <stddef.h>
10370 int
10371 main ()
10372 {
10373 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10374 test_array [0] = 0
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (ac_try="$ac_compile"
10382 case "(($ac_try" in
10383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384   *) ac_try_echo=$ac_try;;
10385 esac
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387   (eval "$ac_compile") 2>conftest.er1
10388   ac_status=$?
10389   grep -v '^ *+' conftest.er1 >conftest.err
10390   rm -f conftest.er1
10391   cat conftest.err >&5
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } && {
10394          test -z "$ac_c_werror_flag" ||
10395          test ! -s conftest.err
10396        } && test -s conftest.$ac_objext; then
10397   ac_hi=-1 ac_mid=-1
10398   while :; do
10399     cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 #include <stddef.h>
10406 int
10407 main ()
10408 {
10409 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10410 test_array [0] = 0
10411
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (ac_try="$ac_compile"
10418 case "(($ac_try" in
10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420   *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423   (eval "$ac_compile") 2>conftest.er1
10424   ac_status=$?
10425   grep -v '^ *+' conftest.er1 >conftest.err
10426   rm -f conftest.er1
10427   cat conftest.err >&5
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); } && {
10430          test -z "$ac_c_werror_flag" ||
10431          test ! -s conftest.err
10432        } && test -s conftest.$ac_objext; then
10433   ac_lo=$ac_mid; break
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438         ac_hi=`expr '(' $ac_mid ')' - 1`
10439                         if test $ac_mid -le $ac_hi; then
10440                           ac_lo= ac_hi=
10441                           break
10442                         fi
10443                         ac_mid=`expr 2 '*' $ac_mid`
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447   done
10448 else
10449   echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10451
10452         ac_lo= ac_hi=
10453 fi
10454
10455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456 fi
10457
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 # Binary search between lo and hi bounds.
10460 while test "x$ac_lo" != "x$ac_hi"; do
10461   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10462   cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468 #include <stddef.h>
10469 int
10470 main ()
10471 {
10472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10473 test_array [0] = 0
10474
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 rm -f conftest.$ac_objext
10480 if { (ac_try="$ac_compile"
10481 case "(($ac_try" in
10482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483   *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486   (eval "$ac_compile") 2>conftest.er1
10487   ac_status=$?
10488   grep -v '^ *+' conftest.er1 >conftest.err
10489   rm -f conftest.er1
10490   cat conftest.err >&5
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); } && {
10493          test -z "$ac_c_werror_flag" ||
10494          test ! -s conftest.err
10495        } && test -s conftest.$ac_objext; then
10496   ac_hi=$ac_mid
10497 else
10498   echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501         ac_lo=`expr '(' $ac_mid ')' + 1`
10502 fi
10503
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 done
10506 case $ac_lo in
10507 ?*) res_hi=$ac_lo;;
10508 '') result=? ;;
10509 esac
10510 else
10511   cat >conftest.$ac_ext <<_ACEOF
10512 /* confdefs.h.  */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h.  */
10517 #include <stddef.h>
10518 static long int longval () { return ~(size_t)0 / 10; }
10519 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10520 #include <stdio.h>
10521 #include <stdlib.h>
10522 int
10523 main ()
10524 {
10525
10526   FILE *f = fopen ("conftest.val", "w");
10527   if (! f)
10528     return 1;
10529   if ((~(size_t)0 / 10) < 0)
10530     {
10531       long int i = longval ();
10532       if (i != (~(size_t)0 / 10))
10533         return 1;
10534       fprintf (f, "%ld\n", i);
10535     }
10536   else
10537     {
10538       unsigned long int i = ulongval ();
10539       if (i != (~(size_t)0 / 10))
10540         return 1;
10541       fprintf (f, "%lu\n", i);
10542     }
10543   return ferror (f) || fclose (f) != 0;
10544
10545   ;
10546   return 0;
10547 }
10548 _ACEOF
10549 rm -f conftest$ac_exeext
10550 if { (ac_try="$ac_link"
10551 case "(($ac_try" in
10552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553   *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556   (eval "$ac_link") 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10560   { (case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565   (eval "$ac_try") 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   res_hi=`cat conftest.val`
10570 else
10571   echo "$as_me: program exited with status $ac_status" >&5
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ( exit $ac_status )
10576 result=?
10577 fi
10578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10579 fi
10580 rm -f conftest.val
10581
10582     if test "$cross_compiling" = yes; then
10583   # Depending upon the size, compute the lo and hi bounds.
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <stddef.h>
10591 int
10592 main ()
10593 {
10594 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10595 test_array [0] = 0
10596
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_compile") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } && {
10615          test -z "$ac_c_werror_flag" ||
10616          test ! -s conftest.err
10617        } && test -s conftest.$ac_objext; then
10618   ac_lo=0 ac_mid=0
10619   while :; do
10620     cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h.  */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h.  */
10626 #include <stddef.h>
10627 int
10628 main ()
10629 {
10630 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10631 test_array [0] = 0
10632
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_compile") 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } && {
10651          test -z "$ac_c_werror_flag" ||
10652          test ! -s conftest.err
10653        } && test -s conftest.$ac_objext; then
10654   ac_hi=$ac_mid; break
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659         ac_lo=`expr $ac_mid + 1`
10660                         if test $ac_lo -le $ac_mid; then
10661                           ac_lo= ac_hi=
10662                           break
10663                         fi
10664                         ac_mid=`expr 2 '*' $ac_mid + 1`
10665 fi
10666
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668   done
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673         cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h.  */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h.  */
10679 #include <stddef.h>
10680 int
10681 main ()
10682 {
10683 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10684 test_array [0] = 0
10685
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694   *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697   (eval "$ac_compile") 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } && {
10704          test -z "$ac_c_werror_flag" ||
10705          test ! -s conftest.err
10706        } && test -s conftest.$ac_objext; then
10707   ac_hi=-1 ac_mid=-1
10708   while :; do
10709     cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715 #include <stddef.h>
10716 int
10717 main ()
10718 {
10719 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10720 test_array [0] = 0
10721
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext
10727 if { (ac_try="$ac_compile"
10728 case "(($ac_try" in
10729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730   *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733   (eval "$ac_compile") 2>conftest.er1
10734   ac_status=$?
10735   grep -v '^ *+' conftest.er1 >conftest.err
10736   rm -f conftest.er1
10737   cat conftest.err >&5
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); } && {
10740          test -z "$ac_c_werror_flag" ||
10741          test ! -s conftest.err
10742        } && test -s conftest.$ac_objext; then
10743   ac_lo=$ac_mid; break
10744 else
10745   echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10747
10748         ac_hi=`expr '(' $ac_mid ')' - 1`
10749                         if test $ac_mid -le $ac_hi; then
10750                           ac_lo= ac_hi=
10751                           break
10752                         fi
10753                         ac_mid=`expr 2 '*' $ac_mid`
10754 fi
10755
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757   done
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762         ac_lo= ac_hi=
10763 fi
10764
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 fi
10767
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 # Binary search between lo and hi bounds.
10770 while test "x$ac_lo" != "x$ac_hi"; do
10771   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10772   cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778 #include <stddef.h>
10779 int
10780 main ()
10781 {
10782 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10783 test_array [0] = 0
10784
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 rm -f conftest.$ac_objext
10790 if { (ac_try="$ac_compile"
10791 case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_compile") 2>conftest.er1
10797   ac_status=$?
10798   grep -v '^ *+' conftest.er1 >conftest.err
10799   rm -f conftest.er1
10800   cat conftest.err >&5
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); } && {
10803          test -z "$ac_c_werror_flag" ||
10804          test ! -s conftest.err
10805        } && test -s conftest.$ac_objext; then
10806   ac_hi=$ac_mid
10807 else
10808   echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811         ac_lo=`expr '(' $ac_mid ')' + 1`
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 done
10816 case $ac_lo in
10817 ?*) res_lo=$ac_lo;;
10818 '') result=? ;;
10819 esac
10820 else
10821   cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h.  */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h.  */
10827 #include <stddef.h>
10828 static long int longval () { return ~(size_t)0 % 10; }
10829 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10830 #include <stdio.h>
10831 #include <stdlib.h>
10832 int
10833 main ()
10834 {
10835
10836   FILE *f = fopen ("conftest.val", "w");
10837   if (! f)
10838     return 1;
10839   if ((~(size_t)0 % 10) < 0)
10840     {
10841       long int i = longval ();
10842       if (i != (~(size_t)0 % 10))
10843         return 1;
10844       fprintf (f, "%ld\n", i);
10845     }
10846   else
10847     {
10848       unsigned long int i = ulongval ();
10849       if (i != (~(size_t)0 % 10))
10850         return 1;
10851       fprintf (f, "%lu\n", i);
10852     }
10853   return ferror (f) || fclose (f) != 0;
10854
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_link") 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10870   { (case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_try") 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; }; then
10879   res_lo=`cat conftest.val`
10880 else
10881   echo "$as_me: program exited with status $ac_status" >&5
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 ( exit $ac_status )
10886 result=?
10887 fi
10888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10889 fi
10890 rm -f conftest.val
10891
10892     if test "$cross_compiling" = yes; then
10893   # Depending upon the size, compute the lo and hi bounds.
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900 #include <stddef.h>
10901 int
10902 main ()
10903 {
10904 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10905 test_array [0] = 0
10906
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915   *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918   (eval "$ac_compile") 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } && {
10925          test -z "$ac_c_werror_flag" ||
10926          test ! -s conftest.err
10927        } && test -s conftest.$ac_objext; then
10928   ac_lo=0 ac_mid=0
10929   while :; do
10930     cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h.  */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h.  */
10936 #include <stddef.h>
10937 int
10938 main ()
10939 {
10940 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10941 test_array [0] = 0
10942
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest.$ac_objext
10948 if { (ac_try="$ac_compile"
10949 case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_compile") 2>conftest.er1
10955   ac_status=$?
10956   grep -v '^ *+' conftest.er1 >conftest.err
10957   rm -f conftest.er1
10958   cat conftest.err >&5
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } && {
10961          test -z "$ac_c_werror_flag" ||
10962          test ! -s conftest.err
10963        } && test -s conftest.$ac_objext; then
10964   ac_hi=$ac_mid; break
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969         ac_lo=`expr $ac_mid + 1`
10970                         if test $ac_lo -le $ac_mid; then
10971                           ac_lo= ac_hi=
10972                           break
10973                         fi
10974                         ac_mid=`expr 2 '*' $ac_mid + 1`
10975 fi
10976
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978   done
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983         cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989 #include <stddef.h>
10990 int
10991 main ()
10992 {
10993 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10994 test_array [0] = 0
10995
10996   ;
10997   return 0;
10998 }
10999 _ACEOF
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007   (eval "$ac_compile") 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } && {
11014          test -z "$ac_c_werror_flag" ||
11015          test ! -s conftest.err
11016        } && test -s conftest.$ac_objext; then
11017   ac_hi=-1 ac_mid=-1
11018   while :; do
11019     cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 #include <stddef.h>
11026 int
11027 main ()
11028 {
11029 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11030 test_array [0] = 0
11031
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_compile") 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } && {
11050          test -z "$ac_c_werror_flag" ||
11051          test ! -s conftest.err
11052        } && test -s conftest.$ac_objext; then
11053   ac_lo=$ac_mid; break
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058         ac_hi=`expr '(' $ac_mid ')' - 1`
11059                         if test $ac_mid -le $ac_hi; then
11060                           ac_lo= ac_hi=
11061                           break
11062                         fi
11063                         ac_mid=`expr 2 '*' $ac_mid`
11064 fi
11065
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067   done
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072         ac_lo= ac_hi=
11073 fi
11074
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 fi
11077
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 # Binary search between lo and hi bounds.
11080 while test "x$ac_lo" != "x$ac_hi"; do
11081   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11082   cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h.  */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h.  */
11088 #include <stddef.h>
11089 int
11090 main ()
11091 {
11092 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11093 test_array [0] = 0
11094
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103   *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106   (eval "$ac_compile") 2>conftest.er1
11107   ac_status=$?
11108   grep -v '^ *+' conftest.er1 >conftest.err
11109   rm -f conftest.er1
11110   cat conftest.err >&5
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } && {
11113          test -z "$ac_c_werror_flag" ||
11114          test ! -s conftest.err
11115        } && test -s conftest.$ac_objext; then
11116   ac_hi=$ac_mid
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121         ac_lo=`expr '(' $ac_mid ')' + 1`
11122 fi
11123
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 done
11126 case $ac_lo in
11127 ?*) fits_in_uint=$ac_lo;;
11128 '') result=? ;;
11129 esac
11130 else
11131   cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 #include <stddef.h>
11138 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11139 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11140 #include <stdio.h>
11141 #include <stdlib.h>
11142 int
11143 main ()
11144 {
11145
11146   FILE *f = fopen ("conftest.val", "w");
11147   if (! f)
11148     return 1;
11149   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11150     {
11151       long int i = longval ();
11152       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11153         return 1;
11154       fprintf (f, "%ld\n", i);
11155     }
11156   else
11157     {
11158       unsigned long int i = ulongval ();
11159       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11160         return 1;
11161       fprintf (f, "%lu\n", i);
11162     }
11163   return ferror (f) || fclose (f) != 0;
11164
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_link") 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11180   { (case "(($ac_try" in
11181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182   *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185   (eval "$ac_try") 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   fits_in_uint=`cat conftest.val`
11190 else
11191   echo "$as_me: program exited with status $ac_status" >&5
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ( exit $ac_status )
11196 result=?
11197 fi
11198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11199 fi
11200 rm -f conftest.val
11201
11202     if test "$fits_in_uint" = 1; then
11203                   cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h.  */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h.  */
11209 #include <stddef.h>
11210         extern size_t foo;
11211         extern unsigned long foo;
11212
11213 int
11214 main ()
11215 {
11216
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225   *) ac_try_echo=$ac_try;;
11226 esac
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228   (eval "$ac_compile") 2>conftest.er1
11229   ac_status=$?
11230   grep -v '^ *+' conftest.er1 >conftest.err
11231   rm -f conftest.er1
11232   cat conftest.err >&5
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } && {
11235          test -z "$ac_c_werror_flag" ||
11236          test ! -s conftest.err
11237        } && test -s conftest.$ac_objext; then
11238   fits_in_uint=0
11239 else
11240   echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243
11244 fi
11245
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11247     fi
11248     if test -z "$result"; then
11249       if test "$fits_in_uint" = 1; then
11250         result="$res_hi$res_lo"U
11251       else
11252         result="$res_hi$res_lo"UL
11253       fi
11254     else
11255             result='~(size_t)0'
11256     fi
11257   fi
11258   { echo "$as_me:$LINENO: result: $result" >&5
11259 echo "${ECHO_T}$result" >&6; }
11260   if test "$result" != yes; then
11261
11262 cat >>confdefs.h <<_ACEOF
11263 #define SIZE_MAX $result
11264 _ACEOF
11265
11266   fi
11267
11268
11269
11270
11271
11272 for ac_header in stdint.h
11273 do
11274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11276   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 fi
11281 ac_res=`eval echo '${'$as_ac_Header'}'`
11282                { echo "$as_me:$LINENO: result: $ac_res" >&5
11283 echo "${ECHO_T}$ac_res" >&6; }
11284 else
11285   # Is the header compilable?
11286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11288 cat >conftest.$ac_ext <<_ACEOF
11289 /* confdefs.h.  */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h.  */
11294 $ac_includes_default
11295 #include <$ac_header>
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (ac_try="$ac_compile"
11299 case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_compile") 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } && {
11311          test -z "$ac_c_werror_flag" ||
11312          test ! -s conftest.err
11313        } && test -s conftest.$ac_objext; then
11314   ac_header_compiler=yes
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319         ac_header_compiler=no
11320 fi
11321
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6; }
11325
11326 # Is the header present?
11327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <$ac_header>
11336 _ACEOF
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } >/dev/null && {
11350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11351          test ! -s conftest.err
11352        }; then
11353   ac_header_preproc=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358   ac_header_preproc=no
11359 fi
11360
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11364
11365 # So?  What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11367   yes:no: )
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372     ac_header_preproc=yes
11373     ;;
11374   no:yes:* )
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11387
11388     ;;
11389 esac
11390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   eval "$as_ac_Header=\$ac_header_preproc"
11396 fi
11397 ac_res=`eval echo '${'$as_ac_Header'}'`
11398                { echo "$as_me:$LINENO: result: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11400
11401 fi
11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11403   cat >>confdefs.h <<_ACEOF
11404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405 _ACEOF
11406
11407 fi
11408
11409 done
11410
11411
11412
11413
11414
11415
11416
11417
11418   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11419 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11420 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 $ac_includes_default
11430 typedef ptrdiff_t ac__type_new_;
11431 int
11432 main ()
11433 {
11434 if ((ac__type_new_ *) 0)
11435   return 0;
11436 if (sizeof (ac__type_new_))
11437   return 0;
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_compile") 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } && {
11456          test -z "$ac_c_werror_flag" ||
11457          test ! -s conftest.err
11458        } && test -s conftest.$ac_objext; then
11459   ac_cv_type_ptrdiff_t=yes
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464         ac_cv_type_ptrdiff_t=no
11465 fi
11466
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 fi
11469 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11470 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11471 if test $ac_cv_type_ptrdiff_t = yes; then
11472   :
11473 else
11474
11475 cat >>confdefs.h <<\_ACEOF
11476 #define ptrdiff_t long
11477 _ACEOF
11478
11479
11480 fi
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11493 stdlib.h string.h unistd.h sys/param.h
11494 do
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 fi
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503                { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505 else
11506   # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 $ac_includes_default
11516 #include <$ac_header>
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525   (eval "$ac_compile") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } && {
11532          test -z "$ac_c_werror_flag" ||
11533          test ! -s conftest.err
11534        } && test -s conftest.$ac_objext; then
11535   ac_header_compiler=yes
11536 else
11537   echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540         ac_header_compiler=no
11541 fi
11542
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6; }
11546
11547 # Is the header present?
11548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h.  */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h.  */
11556 #include <$ac_header>
11557 _ACEOF
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11565   ac_status=$?
11566   grep -v '^ *+' conftest.er1 >conftest.err
11567   rm -f conftest.er1
11568   cat conftest.err >&5
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); } >/dev/null && {
11571          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11572          test ! -s conftest.err
11573        }; then
11574   ac_header_preproc=yes
11575 else
11576   echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579   ac_header_preproc=no
11580 fi
11581
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585
11586 # So?  What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588   yes:no: )
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11593     ac_header_preproc=yes
11594     ;;
11595   no:yes:* )
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11608
11609     ;;
11610 esac
11611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616   eval "$as_ac_Header=\$ac_header_preproc"
11617 fi
11618 ac_res=`eval echo '${'$as_ac_Header'}'`
11619                { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11621
11622 fi
11623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11624   cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11626 _ACEOF
11627
11628 fi
11629
11630 done
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11656 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11657 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11658 __fsetlocking
11659 do
11660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11674 #define $ac_func innocuous_$ac_func
11675
11676 /* System header to define __stub macros and hopefully few prototypes,
11677     which can conflict with char $ac_func (); below.
11678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679     <limits.h> exists even on freestanding compilers.  */
11680
11681 #ifdef __STDC__
11682 # include <limits.h>
11683 #else
11684 # include <assert.h>
11685 #endif
11686
11687 #undef $ac_func
11688
11689 /* Override any GCC internal prototype to avoid an error.
11690    Use char because int might match the return type of a GCC
11691    builtin and then its argument prototype would still apply.  */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 char $ac_func ();
11696 /* The GNU C library defines this for functions which it implements
11697     to always fail with ENOSYS.  Some functions are actually named
11698     something starting with __ and the normal name is an alias.  */
11699 #if defined __stub_$ac_func || defined __stub___$ac_func
11700 choke me
11701 #endif
11702
11703 int
11704 main ()
11705 {
11706 return $ac_func ();
11707   ;
11708   return 0;
11709 }
11710 _ACEOF
11711 rm -f conftest.$ac_objext conftest$ac_exeext
11712 if { (ac_try="$ac_link"
11713 case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_link") 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } && {
11725          test -z "$ac_c_werror_flag" ||
11726          test ! -s conftest.err
11727        } && test -s conftest$ac_exeext &&
11728        $as_test_x conftest$ac_exeext; then
11729   eval "$as_ac_var=yes"
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734         eval "$as_ac_var=no"
11735 fi
11736
11737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11738       conftest$ac_exeext conftest.$ac_ext
11739 fi
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741                { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744   cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 _ACEOF
11747
11748 fi
11749 done
11750
11751
11752
11753   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11754 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11755 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764 #include <stdio.h>
11765 int
11766 main ()
11767 {
11768
11769 #ifndef _snprintf
11770   char *p = (char *) _snprintf;
11771 #endif
11772
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_compile") 2>conftest.er1
11785   ac_status=$?
11786   grep -v '^ *+' conftest.er1 >conftest.err
11787   rm -f conftest.er1
11788   cat conftest.err >&5
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } && {
11791          test -z "$ac_c_werror_flag" ||
11792          test ! -s conftest.err
11793        } && test -s conftest.$ac_objext; then
11794   ac_cv_have_decl__snprintf=yes
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799         ac_cv_have_decl__snprintf=no
11800 fi
11801
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 fi
11804 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11805 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11806   if test $ac_cv_have_decl__snprintf = yes; then
11807     gt_value=1
11808   else
11809     gt_value=0
11810   fi
11811
11812 cat >>confdefs.h <<_ACEOF
11813 #define HAVE_DECL__SNPRINTF $gt_value
11814 _ACEOF
11815
11816
11817
11818   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11819 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11820 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11821   echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823   cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h.  */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h.  */
11829 #include <stdio.h>
11830 int
11831 main ()
11832 {
11833
11834 #ifndef _snwprintf
11835   char *p = (char *) _snwprintf;
11836 #endif
11837
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext
11843 if { (ac_try="$ac_compile"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_compile") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } && {
11856          test -z "$ac_c_werror_flag" ||
11857          test ! -s conftest.err
11858        } && test -s conftest.$ac_objext; then
11859   ac_cv_have_decl__snwprintf=yes
11860 else
11861   echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864         ac_cv_have_decl__snwprintf=no
11865 fi
11866
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868 fi
11869 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11870 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11871   if test $ac_cv_have_decl__snwprintf = yes; then
11872     gt_value=1
11873   else
11874     gt_value=0
11875   fi
11876
11877 cat >>confdefs.h <<_ACEOF
11878 #define HAVE_DECL__SNWPRINTF $gt_value
11879 _ACEOF
11880
11881
11882
11883
11884   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11885 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11886 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11887   echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
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 <stdio.h>
11896 int
11897 main ()
11898 {
11899
11900 #ifndef feof_unlocked
11901   char *p = (char *) feof_unlocked;
11902 #endif
11903
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext
11909 if { (ac_try="$ac_compile"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_compile") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } && {
11922          test -z "$ac_c_werror_flag" ||
11923          test ! -s conftest.err
11924        } && test -s conftest.$ac_objext; then
11925   ac_cv_have_decl_feof_unlocked=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930         ac_cv_have_decl_feof_unlocked=no
11931 fi
11932
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934 fi
11935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11936 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11937   if test $ac_cv_have_decl_feof_unlocked = yes; then
11938     gt_value=1
11939   else
11940     gt_value=0
11941   fi
11942
11943 cat >>confdefs.h <<_ACEOF
11944 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11945 _ACEOF
11946
11947
11948
11949   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11950 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11951 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11952   echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954   cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 #include <stdio.h>
11961 int
11962 main ()
11963 {
11964
11965 #ifndef fgets_unlocked
11966   char *p = (char *) fgets_unlocked;
11967 #endif
11968
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext
11974 if { (ac_try="$ac_compile"
11975 case "(($ac_try" in
11976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977   *) ac_try_echo=$ac_try;;
11978 esac
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980   (eval "$ac_compile") 2>conftest.er1
11981   ac_status=$?
11982   grep -v '^ *+' conftest.er1 >conftest.err
11983   rm -f conftest.er1
11984   cat conftest.err >&5
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); } && {
11987          test -z "$ac_c_werror_flag" ||
11988          test ! -s conftest.err
11989        } && test -s conftest.$ac_objext; then
11990   ac_cv_have_decl_fgets_unlocked=yes
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995         ac_cv_have_decl_fgets_unlocked=no
11996 fi
11997
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12001 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12002   if test $ac_cv_have_decl_fgets_unlocked = yes; then
12003     gt_value=1
12004   else
12005     gt_value=0
12006   fi
12007
12008 cat >>confdefs.h <<_ACEOF
12009 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12010 _ACEOF
12011
12012
12013
12014   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12015 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12016 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12017   echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019   cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h.  */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h.  */
12025 #include <stdio.h>
12026 int
12027 main ()
12028 {
12029
12030 #ifndef getc_unlocked
12031   char *p = (char *) getc_unlocked;
12032 #endif
12033
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext
12039 if { (ac_try="$ac_compile"
12040 case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_compile") 2>conftest.er1
12046   ac_status=$?
12047   grep -v '^ *+' conftest.er1 >conftest.err
12048   rm -f conftest.er1
12049   cat conftest.err >&5
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); } && {
12052          test -z "$ac_c_werror_flag" ||
12053          test ! -s conftest.err
12054        } && test -s conftest.$ac_objext; then
12055   ac_cv_have_decl_getc_unlocked=yes
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060         ac_cv_have_decl_getc_unlocked=no
12061 fi
12062
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 fi
12065 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12066 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12067   if test $ac_cv_have_decl_getc_unlocked = yes; then
12068     gt_value=1
12069   else
12070     gt_value=0
12071   fi
12072
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12075 _ACEOF
12076
12077
12078
12079   case $gt_cv_func_printf_posix in
12080     *yes) HAVE_POSIX_PRINTF=1 ;;
12081     *) HAVE_POSIX_PRINTF=0 ;;
12082   esac
12083
12084   if test "$ac_cv_func_asprintf" = yes; then
12085     HAVE_ASPRINTF=1
12086   else
12087     HAVE_ASPRINTF=0
12088   fi
12089
12090   if test "$ac_cv_func_snprintf" = yes; then
12091     HAVE_SNPRINTF=1
12092   else
12093     HAVE_SNPRINTF=0
12094   fi
12095
12096   if test "$ac_cv_func_wprintf" = yes; then
12097     HAVE_WPRINTF=1
12098   else
12099     HAVE_WPRINTF=0
12100   fi
12101
12102
12103
12104
12105
12106
12107
12108           am_save_CPPFLAGS="$CPPFLAGS"
12109
12110   for element in $INCICONV; do
12111     haveit=
12112     for x in $CPPFLAGS; do
12113
12114   acl_save_prefix="$prefix"
12115   prefix="$acl_final_prefix"
12116   acl_save_exec_prefix="$exec_prefix"
12117   exec_prefix="$acl_final_exec_prefix"
12118   eval x=\"$x\"
12119   exec_prefix="$acl_save_exec_prefix"
12120   prefix="$acl_save_prefix"
12121
12122       if test "X$x" = "X$element"; then
12123         haveit=yes
12124         break
12125       fi
12126     done
12127     if test -z "$haveit"; then
12128       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12129     fi
12130   done
12131
12132
12133   { echo "$as_me:$LINENO: checking for iconv" >&5
12134 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12135 if test "${am_cv_func_iconv+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138
12139     am_cv_func_iconv="no, consider installing GNU libiconv"
12140     am_cv_lib_iconv=no
12141     cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147 #include <stdlib.h>
12148 #include <iconv.h>
12149 int
12150 main ()
12151 {
12152 iconv_t cd = iconv_open("","");
12153        iconv(cd,NULL,NULL,NULL,NULL);
12154        iconv_close(cd);
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 rm -f conftest.$ac_objext conftest$ac_exeext
12160 if { (ac_try="$ac_link"
12161 case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_link") 2>conftest.er1
12167   ac_status=$?
12168   grep -v '^ *+' conftest.er1 >conftest.err
12169   rm -f conftest.er1
12170   cat conftest.err >&5
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } && {
12173          test -z "$ac_c_werror_flag" ||
12174          test ! -s conftest.err
12175        } && test -s conftest$ac_exeext &&
12176        $as_test_x conftest$ac_exeext; then
12177   am_cv_func_iconv=yes
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182
12183 fi
12184
12185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12186       conftest$ac_exeext conftest.$ac_ext
12187     if test "$am_cv_func_iconv" != yes; then
12188       am_save_LIBS="$LIBS"
12189       LIBS="$LIBS $LIBICONV"
12190       cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 #include <stdlib.h>
12197 #include <iconv.h>
12198 int
12199 main ()
12200 {
12201 iconv_t cd = iconv_open("","");
12202          iconv(cd,NULL,NULL,NULL,NULL);
12203          iconv_close(cd);
12204   ;
12205   return 0;
12206 }
12207 _ACEOF
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (ac_try="$ac_link"
12210 case "(($ac_try" in
12211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212   *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215   (eval "$ac_link") 2>conftest.er1
12216   ac_status=$?
12217   grep -v '^ *+' conftest.er1 >conftest.err
12218   rm -f conftest.er1
12219   cat conftest.err >&5
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } && {
12222          test -z "$ac_c_werror_flag" ||
12223          test ! -s conftest.err
12224        } && test -s conftest$ac_exeext &&
12225        $as_test_x conftest$ac_exeext; then
12226   am_cv_lib_iconv=yes
12227         am_cv_func_iconv=yes
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236       conftest$ac_exeext conftest.$ac_ext
12237       LIBS="$am_save_LIBS"
12238     fi
12239
12240 fi
12241 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12242 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12243   if test "$am_cv_func_iconv" = yes; then
12244
12245 cat >>confdefs.h <<\_ACEOF
12246 #define HAVE_ICONV 1
12247 _ACEOF
12248
12249   fi
12250   if test "$am_cv_lib_iconv" = yes; then
12251     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12252 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12253     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12254 echo "${ECHO_T}$LIBICONV" >&6; }
12255   else
12256             CPPFLAGS="$am_save_CPPFLAGS"
12257     LIBICONV=
12258     LTLIBICONV=
12259   fi
12260
12261
12262
12263   if test "$am_cv_func_iconv" = yes; then
12264     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12265 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12266     if test "${am_cv_proto_iconv+set}" = set; then
12267   echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269
12270       cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276
12277 #include <stdlib.h>
12278 #include <iconv.h>
12279 extern
12280 #ifdef __cplusplus
12281 "C"
12282 #endif
12283 #if defined(__STDC__) || defined(__cplusplus)
12284 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12285 #else
12286 size_t iconv();
12287 #endif
12288
12289 int
12290 main ()
12291 {
12292
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_compile") 2>conftest.er1
12305   ac_status=$?
12306   grep -v '^ *+' conftest.er1 >conftest.err
12307   rm -f conftest.er1
12308   cat conftest.err >&5
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } && {
12311          test -z "$ac_c_werror_flag" ||
12312          test ! -s conftest.err
12313        } && test -s conftest.$ac_objext; then
12314   am_cv_proto_iconv_arg1=""
12315 else
12316   echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319         am_cv_proto_iconv_arg1="const"
12320 fi
12321
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323       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);"
12324 fi
12325
12326     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12327     { echo "$as_me:$LINENO: result: ${ac_t:-
12328          }$am_cv_proto_iconv" >&5
12329 echo "${ECHO_T}${ac_t:-
12330          }$am_cv_proto_iconv" >&6; }
12331
12332 cat >>confdefs.h <<_ACEOF
12333 #define ICONV_CONST $am_cv_proto_iconv_arg1
12334 _ACEOF
12335
12336   fi
12337
12338
12339   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12340 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12341 if test "${am_cv_langinfo_codeset+set}" = set; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350 #include <langinfo.h>
12351 int
12352 main ()
12353 {
12354 char* cs = nl_langinfo(CODESET);
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_link") 2>conftest.er1
12367   ac_status=$?
12368   grep -v '^ *+' conftest.er1 >conftest.err
12369   rm -f conftest.er1
12370   cat conftest.err >&5
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } && {
12373          test -z "$ac_c_werror_flag" ||
12374          test ! -s conftest.err
12375        } && test -s conftest$ac_exeext &&
12376        $as_test_x conftest$ac_exeext; then
12377   am_cv_langinfo_codeset=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382         am_cv_langinfo_codeset=no
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386       conftest$ac_exeext conftest.$ac_ext
12387
12388 fi
12389 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12390 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12391   if test $am_cv_langinfo_codeset = yes; then
12392
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_LANGINFO_CODESET 1
12395 _ACEOF
12396
12397   fi
12398
12399   if test $ac_cv_header_locale_h = yes; then
12400
12401   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12402 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12403 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412 #include <locale.h>
12413 int
12414 main ()
12415 {
12416 return LC_MESSAGES
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest$ac_exeext &&
12438        $as_test_x conftest$ac_exeext; then
12439   gt_cv_val_LC_MESSAGES=yes
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444         gt_cv_val_LC_MESSAGES=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448       conftest$ac_exeext conftest.$ac_ext
12449 fi
12450 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12451 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12452   if test $gt_cv_val_LC_MESSAGES = yes; then
12453
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_LC_MESSAGES 1
12456 _ACEOF
12457
12458   fi
12459
12460   fi
12461
12462   if test -n "$INTL_MACOSX_LIBS"; then
12463     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12464   fi
12465
12466                       for ac_prog in bison
12467 do
12468   # Extract the first word of "$ac_prog", so it can be a program name with args.
12469 set dummy $ac_prog; ac_word=$2
12470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12472 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   if test -n "$INTLBISON"; then
12476   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12480 do
12481   IFS=$as_save_IFS
12482   test -z "$as_dir" && as_dir=.
12483   for ac_exec_ext in '' $ac_executable_extensions; do
12484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485     ac_cv_prog_INTLBISON="$ac_prog"
12486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12487     break 2
12488   fi
12489 done
12490 done
12491 IFS=$as_save_IFS
12492
12493 fi
12494 fi
12495 INTLBISON=$ac_cv_prog_INTLBISON
12496 if test -n "$INTLBISON"; then
12497   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12498 echo "${ECHO_T}$INTLBISON" >&6; }
12499 else
12500   { echo "$as_me:$LINENO: result: no" >&5
12501 echo "${ECHO_T}no" >&6; }
12502 fi
12503
12504
12505   test -n "$INTLBISON" && break
12506 done
12507
12508   if test -z "$INTLBISON"; then
12509     ac_verc_fail=yes
12510   else
12511         { echo "$as_me:$LINENO: checking version of bison" >&5
12512 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12513     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12514     case $ac_prog_version in
12515       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12516       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12517          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12518       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12519     esac
12520     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12521 echo "${ECHO_T}$ac_prog_version" >&6; }
12522   fi
12523   if test $ac_verc_fail = yes; then
12524     INTLBISON=:
12525   fi
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12543 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12544 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547   gt_save_CPPFLAGS="$CPPFLAGS"
12548      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12549      gt_save_LIBS="$LIBS"
12550      LIBS="$LIBS -framework CoreFoundation"
12551      cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h.  */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h.  */
12557 #include <CFPreferences.h>
12558 int
12559 main ()
12560 {
12561 CFPreferencesCopyAppValue(NULL, NULL)
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567 if { (ac_try="$ac_link"
12568 case "(($ac_try" in
12569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570   *) ac_try_echo=$ac_try;;
12571 esac
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573   (eval "$ac_link") 2>conftest.er1
12574   ac_status=$?
12575   grep -v '^ *+' conftest.er1 >conftest.err
12576   rm -f conftest.er1
12577   cat conftest.err >&5
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } && {
12580          test -z "$ac_c_werror_flag" ||
12581          test ! -s conftest.err
12582        } && test -s conftest$ac_exeext &&
12583        $as_test_x conftest$ac_exeext; then
12584   gt_cv_func_CFPreferencesCopyAppValue=yes
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589         gt_cv_func_CFPreferencesCopyAppValue=no
12590 fi
12591
12592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12593       conftest$ac_exeext conftest.$ac_ext
12594      CPPFLAGS="$gt_save_CPPFLAGS"
12595      LIBS="$gt_save_LIBS"
12596 fi
12597 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12598 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12599   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12600
12601 cat >>confdefs.h <<\_ACEOF
12602 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12603 _ACEOF
12604
12605   fi
12606     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12607 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12608 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12609   echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611   gt_save_CPPFLAGS="$CPPFLAGS"
12612      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12613      gt_save_LIBS="$LIBS"
12614      LIBS="$LIBS -framework CoreFoundation"
12615      cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h.  */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h.  */
12621 #include <CFLocale.h>
12622 int
12623 main ()
12624 {
12625 CFLocaleCopyCurrent();
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (ac_try="$ac_link"
12632 case "(($ac_try" in
12633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634   *) ac_try_echo=$ac_try;;
12635 esac
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637   (eval "$ac_link") 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } && {
12644          test -z "$ac_c_werror_flag" ||
12645          test ! -s conftest.err
12646        } && test -s conftest$ac_exeext &&
12647        $as_test_x conftest$ac_exeext; then
12648   gt_cv_func_CFLocaleCopyCurrent=yes
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653         gt_cv_func_CFLocaleCopyCurrent=no
12654 fi
12655
12656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12657       conftest$ac_exeext conftest.$ac_ext
12658      CPPFLAGS="$gt_save_CPPFLAGS"
12659      LIBS="$gt_save_LIBS"
12660 fi
12661 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12662 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12663   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12664
12665 cat >>confdefs.h <<\_ACEOF
12666 #define HAVE_CFLOCALECOPYCURRENT 1
12667 _ACEOF
12668
12669   fi
12670   INTL_MACOSX_LIBS=
12671   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12672     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12673   fi
12674
12675
12676
12677
12678   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12679 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12680     # Check whether --enable-nls was given.
12681 if test "${enable_nls+set}" = set; then
12682   enableval=$enable_nls; USE_NLS=$enableval
12683 else
12684   USE_NLS=yes
12685 fi
12686
12687   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12688 echo "${ECHO_T}$USE_NLS" >&6; }
12689
12690
12691
12692
12693     BUILD_INCLUDED_LIBINTL=no
12694     USE_INCLUDED_LIBINTL=no
12695
12696   LIBINTL=
12697   LTLIBINTL=
12698   POSUB=
12699
12700     if test "$USE_NLS" = "yes"; then
12701     gt_use_preinstalled_gnugettext=no
12702
12703       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12704 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12705
12706 # Check whether --with-included-gettext was given.
12707 if test "${with_included_gettext+set}" = set; then
12708   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12709 else
12710   nls_cv_force_use_gnu_gettext=no
12711 fi
12712
12713       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12714 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12715
12716       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12717       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12718
12719
12720
12721
12722
12723
12724         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12725 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12726 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12727   echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729   cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h.  */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h.  */
12735 #include <libintl.h>
12736 extern int _nl_msg_cat_cntr;
12737 extern int *_nl_domain_bindings;
12738 int
12739 main ()
12740 {
12741 bindtextdomain ("", "");
12742 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (ac_try="$ac_link"
12749 case "(($ac_try" in
12750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751   *) ac_try_echo=$ac_try;;
12752 esac
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754   (eval "$ac_link") 2>conftest.er1
12755   ac_status=$?
12756   grep -v '^ *+' conftest.er1 >conftest.err
12757   rm -f conftest.er1
12758   cat conftest.err >&5
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } && {
12761          test -z "$ac_c_werror_flag" ||
12762          test ! -s conftest.err
12763        } && test -s conftest$ac_exeext &&
12764        $as_test_x conftest$ac_exeext; then
12765   gt_cv_func_gnugettext1_libc=yes
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770         gt_cv_func_gnugettext1_libc=no
12771 fi
12772
12773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12774       conftest$ac_exeext conftest.$ac_ext
12775 fi
12776 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12777 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12778
12779         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12780
12781
12782
12783     use_additional=yes
12784
12785   acl_save_prefix="$prefix"
12786   prefix="$acl_final_prefix"
12787   acl_save_exec_prefix="$exec_prefix"
12788   exec_prefix="$acl_final_exec_prefix"
12789
12790     eval additional_includedir=\"$includedir\"
12791     eval additional_libdir=\"$libdir\"
12792
12793   exec_prefix="$acl_save_exec_prefix"
12794   prefix="$acl_save_prefix"
12795
12796
12797 # Check whether --with-libintl-prefix was given.
12798 if test "${with_libintl_prefix+set}" = set; then
12799   withval=$with_libintl_prefix;
12800     if test "X$withval" = "Xno"; then
12801       use_additional=no
12802     else
12803       if test "X$withval" = "X"; then
12804
12805   acl_save_prefix="$prefix"
12806   prefix="$acl_final_prefix"
12807   acl_save_exec_prefix="$exec_prefix"
12808   exec_prefix="$acl_final_exec_prefix"
12809
12810           eval additional_includedir=\"$includedir\"
12811           eval additional_libdir=\"$libdir\"
12812
12813   exec_prefix="$acl_save_exec_prefix"
12814   prefix="$acl_save_prefix"
12815
12816       else
12817         additional_includedir="$withval/include"
12818         additional_libdir="$withval/lib"
12819       fi
12820     fi
12821
12822 fi
12823
12824       LIBINTL=
12825   LTLIBINTL=
12826   INCINTL=
12827   rpathdirs=
12828   ltrpathdirs=
12829   names_already_handled=
12830   names_next_round='intl '
12831   while test -n "$names_next_round"; do
12832     names_this_round="$names_next_round"
12833     names_next_round=
12834     for name in $names_this_round; do
12835       already_handled=
12836       for n in $names_already_handled; do
12837         if test "$n" = "$name"; then
12838           already_handled=yes
12839           break
12840         fi
12841       done
12842       if test -z "$already_handled"; then
12843         names_already_handled="$names_already_handled $name"
12844                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12845         eval value=\"\$HAVE_LIB$uppername\"
12846         if test -n "$value"; then
12847           if test "$value" = yes; then
12848             eval value=\"\$LIB$uppername\"
12849             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12850             eval value=\"\$LTLIB$uppername\"
12851             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12852           else
12853                                     :
12854           fi
12855         else
12856                               found_dir=
12857           found_la=
12858           found_so=
12859           found_a=
12860           if test $use_additional = yes; then
12861             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12862               found_dir="$additional_libdir"
12863               found_so="$additional_libdir/lib$name.$shlibext"
12864               if test -f "$additional_libdir/lib$name.la"; then
12865                 found_la="$additional_libdir/lib$name.la"
12866               fi
12867             else
12868               if test -f "$additional_libdir/lib$name.$libext"; then
12869                 found_dir="$additional_libdir"
12870                 found_a="$additional_libdir/lib$name.$libext"
12871                 if test -f "$additional_libdir/lib$name.la"; then
12872                   found_la="$additional_libdir/lib$name.la"
12873                 fi
12874               fi
12875             fi
12876           fi
12877           if test "X$found_dir" = "X"; then
12878             for x in $LDFLAGS $LTLIBINTL; do
12879
12880   acl_save_prefix="$prefix"
12881   prefix="$acl_final_prefix"
12882   acl_save_exec_prefix="$exec_prefix"
12883   exec_prefix="$acl_final_exec_prefix"
12884   eval x=\"$x\"
12885   exec_prefix="$acl_save_exec_prefix"
12886   prefix="$acl_save_prefix"
12887
12888               case "$x" in
12889                 -L*)
12890                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12891                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12892                     found_dir="$dir"
12893                     found_so="$dir/lib$name.$shlibext"
12894                     if test -f "$dir/lib$name.la"; then
12895                       found_la="$dir/lib$name.la"
12896                     fi
12897                   else
12898                     if test -f "$dir/lib$name.$libext"; then
12899                       found_dir="$dir"
12900                       found_a="$dir/lib$name.$libext"
12901                       if test -f "$dir/lib$name.la"; then
12902                         found_la="$dir/lib$name.la"
12903                       fi
12904                     fi
12905                   fi
12906                   ;;
12907               esac
12908               if test "X$found_dir" != "X"; then
12909                 break
12910               fi
12911             done
12912           fi
12913           if test "X$found_dir" != "X"; then
12914                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12915             if test "X$found_so" != "X"; then
12916                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12917                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12918               else
12919                                                                                 haveit=
12920                 for x in $ltrpathdirs; do
12921                   if test "X$x" = "X$found_dir"; then
12922                     haveit=yes
12923                     break
12924                   fi
12925                 done
12926                 if test -z "$haveit"; then
12927                   ltrpathdirs="$ltrpathdirs $found_dir"
12928                 fi
12929                                 if test "$hardcode_direct" = yes; then
12930                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12931                 else
12932                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12933                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12934                                                             haveit=
12935                     for x in $rpathdirs; do
12936                       if test "X$x" = "X$found_dir"; then
12937                         haveit=yes
12938                         break
12939                       fi
12940                     done
12941                     if test -z "$haveit"; then
12942                       rpathdirs="$rpathdirs $found_dir"
12943                     fi
12944                   else
12945                                                                                 haveit=
12946                     for x in $LDFLAGS $LIBINTL; do
12947
12948   acl_save_prefix="$prefix"
12949   prefix="$acl_final_prefix"
12950   acl_save_exec_prefix="$exec_prefix"
12951   exec_prefix="$acl_final_exec_prefix"
12952   eval x=\"$x\"
12953   exec_prefix="$acl_save_exec_prefix"
12954   prefix="$acl_save_prefix"
12955
12956                       if test "X$x" = "X-L$found_dir"; then
12957                         haveit=yes
12958                         break
12959                       fi
12960                     done
12961                     if test -z "$haveit"; then
12962                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12963                     fi
12964                     if test "$hardcode_minus_L" != no; then
12965                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12966                     else
12967                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12968                     fi
12969                   fi
12970                 fi
12971               fi
12972             else
12973               if test "X$found_a" != "X"; then
12974                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12975               else
12976                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12977               fi
12978             fi
12979                         additional_includedir=
12980             case "$found_dir" in
12981               */lib | */lib/)
12982                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12983                 additional_includedir="$basedir/include"
12984                 ;;
12985             esac
12986             if test "X$additional_includedir" != "X"; then
12987                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12988                 haveit=
12989                 if test "X$additional_includedir" = "X/usr/local/include"; then
12990                   if test -n "$GCC"; then
12991                     case $host_os in
12992                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12993                     esac
12994                   fi
12995                 fi
12996                 if test -z "$haveit"; then
12997                   for x in $CPPFLAGS $INCINTL; do
12998
12999   acl_save_prefix="$prefix"
13000   prefix="$acl_final_prefix"
13001   acl_save_exec_prefix="$exec_prefix"
13002   exec_prefix="$acl_final_exec_prefix"
13003   eval x=\"$x\"
13004   exec_prefix="$acl_save_exec_prefix"
13005   prefix="$acl_save_prefix"
13006
13007                     if test "X$x" = "X-I$additional_includedir"; then
13008                       haveit=yes
13009                       break
13010                     fi
13011                   done
13012                   if test -z "$haveit"; then
13013                     if test -d "$additional_includedir"; then
13014                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13015                     fi
13016                   fi
13017                 fi
13018               fi
13019             fi
13020                         if test -n "$found_la"; then
13021                                                         save_libdir="$libdir"
13022               case "$found_la" in
13023                 */* | *\\*) . "$found_la" ;;
13024                 *) . "./$found_la" ;;
13025               esac
13026               libdir="$save_libdir"
13027                             for dep in $dependency_libs; do
13028                 case "$dep" in
13029                   -L*)
13030                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13031                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13032                       haveit=
13033                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13034                         if test -n "$GCC"; then
13035                           case $host_os in
13036                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13037                           esac
13038                         fi
13039                       fi
13040                       if test -z "$haveit"; then
13041                         haveit=
13042                         for x in $LDFLAGS $LIBINTL; do
13043
13044   acl_save_prefix="$prefix"
13045   prefix="$acl_final_prefix"
13046   acl_save_exec_prefix="$exec_prefix"
13047   exec_prefix="$acl_final_exec_prefix"
13048   eval x=\"$x\"
13049   exec_prefix="$acl_save_exec_prefix"
13050   prefix="$acl_save_prefix"
13051
13052                           if test "X$x" = "X-L$additional_libdir"; then
13053                             haveit=yes
13054                             break
13055                           fi
13056                         done
13057                         if test -z "$haveit"; then
13058                           if test -d "$additional_libdir"; then
13059                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13060                           fi
13061                         fi
13062                         haveit=
13063                         for x in $LDFLAGS $LTLIBINTL; do
13064
13065   acl_save_prefix="$prefix"
13066   prefix="$acl_final_prefix"
13067   acl_save_exec_prefix="$exec_prefix"
13068   exec_prefix="$acl_final_exec_prefix"
13069   eval x=\"$x\"
13070   exec_prefix="$acl_save_exec_prefix"
13071   prefix="$acl_save_prefix"
13072
13073                           if test "X$x" = "X-L$additional_libdir"; then
13074                             haveit=yes
13075                             break
13076                           fi
13077                         done
13078                         if test -z "$haveit"; then
13079                           if test -d "$additional_libdir"; then
13080                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13081                           fi
13082                         fi
13083                       fi
13084                     fi
13085                     ;;
13086                   -R*)
13087                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13088                     if test "$enable_rpath" != no; then
13089                                                                   haveit=
13090                       for x in $rpathdirs; do
13091                         if test "X$x" = "X$dir"; then
13092                           haveit=yes
13093                           break
13094                         fi
13095                       done
13096                       if test -z "$haveit"; then
13097                         rpathdirs="$rpathdirs $dir"
13098                       fi
13099                                                                   haveit=
13100                       for x in $ltrpathdirs; do
13101                         if test "X$x" = "X$dir"; then
13102                           haveit=yes
13103                           break
13104                         fi
13105                       done
13106                       if test -z "$haveit"; then
13107                         ltrpathdirs="$ltrpathdirs $dir"
13108                       fi
13109                     fi
13110                     ;;
13111                   -l*)
13112                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13113                     ;;
13114                   *.la)
13115                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13116                     ;;
13117                   *)
13118                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13119                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13120                     ;;
13121                 esac
13122               done
13123             fi
13124           else
13125                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13126             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13127           fi
13128         fi
13129       fi
13130     done
13131   done
13132   if test "X$rpathdirs" != "X"; then
13133     if test -n "$hardcode_libdir_separator"; then
13134                         alldirs=
13135       for found_dir in $rpathdirs; do
13136         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13137       done
13138             acl_save_libdir="$libdir"
13139       libdir="$alldirs"
13140       eval flag=\"$hardcode_libdir_flag_spec\"
13141       libdir="$acl_save_libdir"
13142       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13143     else
13144             for found_dir in $rpathdirs; do
13145         acl_save_libdir="$libdir"
13146         libdir="$found_dir"
13147         eval flag=\"$hardcode_libdir_flag_spec\"
13148         libdir="$acl_save_libdir"
13149         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13150       done
13151     fi
13152   fi
13153   if test "X$ltrpathdirs" != "X"; then
13154             for found_dir in $ltrpathdirs; do
13155       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13156     done
13157   fi
13158
13159           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13160 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13161 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   gt_save_CPPFLAGS="$CPPFLAGS"
13165             CPPFLAGS="$CPPFLAGS $INCINTL"
13166             gt_save_LIBS="$LIBS"
13167             LIBS="$LIBS $LIBINTL"
13168                         cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h.  */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h.  */
13174 #include <libintl.h>
13175 extern int _nl_msg_cat_cntr;
13176 extern
13177 #ifdef __cplusplus
13178 "C"
13179 #endif
13180 const char *_nl_expand_alias (const char *);
13181 int
13182 main ()
13183 {
13184 bindtextdomain ("", "");
13185 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (ac_try="$ac_link"
13192 case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_link") 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } && {
13204          test -z "$ac_c_werror_flag" ||
13205          test ! -s conftest.err
13206        } && test -s conftest$ac_exeext &&
13207        $as_test_x conftest$ac_exeext; then
13208   gt_cv_func_gnugettext1_libintl=yes
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213         gt_cv_func_gnugettext1_libintl=no
13214 fi
13215
13216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13217       conftest$ac_exeext conftest.$ac_ext
13218                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13219               LIBS="$LIBS $LIBICONV"
13220               cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226 #include <libintl.h>
13227 extern int _nl_msg_cat_cntr;
13228 extern
13229 #ifdef __cplusplus
13230 "C"
13231 #endif
13232 const char *_nl_expand_alias (const char *);
13233 int
13234 main ()
13235 {
13236 bindtextdomain ("", "");
13237 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_link") 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } && {
13256          test -z "$ac_c_werror_flag" ||
13257          test ! -s conftest.err
13258        } && test -s conftest$ac_exeext &&
13259        $as_test_x conftest$ac_exeext; then
13260   LIBINTL="$LIBINTL $LIBICONV"
13261                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13262                 gt_cv_func_gnugettext1_libintl=yes
13263
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268
13269 fi
13270
13271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13272       conftest$ac_exeext conftest.$ac_ext
13273             fi
13274             CPPFLAGS="$gt_save_CPPFLAGS"
13275             LIBS="$gt_save_LIBS"
13276 fi
13277 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13278 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13279         fi
13280
13281                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13282            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13283                 && test "$PACKAGE" != gettext-runtime \
13284                 && test "$PACKAGE" != gettext-tools; }; then
13285           gt_use_preinstalled_gnugettext=yes
13286         else
13287                     LIBINTL=
13288           LTLIBINTL=
13289           INCINTL=
13290         fi
13291
13292
13293         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13294                               nls_cv_use_gnu_gettext=yes
13295         fi
13296       fi
13297
13298       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13299                 BUILD_INCLUDED_LIBINTL=yes
13300         USE_INCLUDED_LIBINTL=yes
13301         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13302         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13303         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13304       fi
13305
13306       CATOBJEXT=
13307       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13308          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13309                 CATOBJEXT=.gmo
13310       fi
13311
13312
13313     if test -n "$INTL_MACOSX_LIBS"; then
13314       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13315          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13316                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13317         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13318       fi
13319     fi
13320
13321     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13322        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13323
13324 cat >>confdefs.h <<\_ACEOF
13325 #define ENABLE_NLS 1
13326 _ACEOF
13327
13328     else
13329       USE_NLS=no
13330     fi
13331   fi
13332
13333   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13334 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13335   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13336 echo "${ECHO_T}$USE_NLS" >&6; }
13337   if test "$USE_NLS" = "yes"; then
13338     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13339 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13340     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13341       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13342         gt_source="external libintl"
13343       else
13344         gt_source="libc"
13345       fi
13346     else
13347       gt_source="included intl directory"
13348     fi
13349     { echo "$as_me:$LINENO: result: $gt_source" >&5
13350 echo "${ECHO_T}$gt_source" >&6; }
13351   fi
13352
13353   if test "$USE_NLS" = "yes"; then
13354
13355     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13356       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13357         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13358 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13359         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13360 echo "${ECHO_T}$LIBINTL" >&6; }
13361
13362   for element in $INCINTL; do
13363     haveit=
13364     for x in $CPPFLAGS; do
13365
13366   acl_save_prefix="$prefix"
13367   prefix="$acl_final_prefix"
13368   acl_save_exec_prefix="$exec_prefix"
13369   exec_prefix="$acl_final_exec_prefix"
13370   eval x=\"$x\"
13371   exec_prefix="$acl_save_exec_prefix"
13372   prefix="$acl_save_prefix"
13373
13374       if test "X$x" = "X$element"; then
13375         haveit=yes
13376         break
13377       fi
13378     done
13379     if test -z "$haveit"; then
13380       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13381     fi
13382   done
13383
13384       fi
13385
13386
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_GETTEXT 1
13389 _ACEOF
13390
13391
13392 cat >>confdefs.h <<\_ACEOF
13393 #define HAVE_DCGETTEXT 1
13394 _ACEOF
13395
13396     fi
13397
13398         POSUB=po
13399   fi
13400
13401
13402             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13403       BUILD_INCLUDED_LIBINTL=yes
13404     fi
13405
13406
13407
13408
13409
13410         nls_cv_header_intl=
13411     nls_cv_header_libgt=
13412
13413         DATADIRNAME=share
13414
13415
13416         INSTOBJEXT=.mo
13417
13418
13419         GENCAT=gencat
13420
13421
13422         INTLOBJS=
13423     if test "$USE_INCLUDED_LIBINTL" = yes; then
13424       INTLOBJS="\$(GETTOBJS)"
13425     fi
13426
13427
13428         INTL_LIBTOOL_SUFFIX_PREFIX=
13429
13430
13431
13432     INTLLIBS="$LIBINTL"
13433
13434
13435
13436
13437
13438
13439 fi
13440
13441 support_mysql=no
13442 support_sqlite=no
13443 support_sqlite3=no
13444 support_postgresql=no
13445 support_dbi=no
13446 support_smartalloc=yes
13447 support_readline=yes
13448 support_conio=yes
13449 support_gnome=no
13450 support_bat=no
13451 support_wx_console=no
13452 support_tls=no
13453 support_crypto=no
13454 support_libdb=yes
13455 gnome_version=
13456 wx_version=
13457 support_static_tools=no
13458 support_static_fd=no
13459 support_static_sd=no
13460 support_static_dir=no
13461 support_static_cons=no
13462 support_python=no
13463 build_client_only=no
13464 build_dird=yes
13465 build_stored=yes
13466 cats=
13467 db_type=Internal
13468 DB_TYPE=bdb
13469
13470
13471 # -------------------------------------------
13472 # Berkeley DB (default off)
13473 # -------------------------------------------
13474
13475 # Check whether --enable-libdb was given.
13476 if test "${enable_libdb+set}" = set; then
13477   enableval=$enable_libdb; if test x$enableval = xno; then
13478     support_libdb=no
13479   fi
13480 fi
13481
13482
13483 if test x$support_libdb = xyes; then
13484  support_libdb=no
13485
13486     ax_path_bdb_ok=no
13487
13488   # Add --with-bdb-dir option to configure.
13489
13490 # Check whether --with-bdb-dir was given.
13491 if test "${with_bdb_dir+set}" = set; then
13492   withval=$with_bdb_dir;
13493 fi
13494
13495
13496   # Check if --with-bdb-dir was specified.
13497   if test "x$with_bdb_dir" = "x" ; then
13498     # No option specified, so just search the system.
13499
13500     ax_path_bdb_no_options_ok=no
13501
13502   # Values to add to environment to use Berkeley DB.
13503   BDB_VERSION=''
13504   BDB_LIBS=''
13505   BDB_CPPFLAGS=''
13506   BDB_LDFLAGS=''
13507
13508   # Check cross compilation here.
13509   if test "x$cross_compiling" = "xyes" ; then
13510     # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
13511     # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
13512     # and extracts the version number from it.
13513     { echo "$as_me:$LINENO: checking for db.h" >&5
13514 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13515
13516         ax_path_bdb_no_options_HEADER_VERSION=''
13517     cat >conftest.$ac_ext <<_ACEOF
13518
13519       /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524
13525 #include <db.h>
13526 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
13527
13528
13529 _ACEOF
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533   *) ac_try_echo=$ac_try;;
13534 esac
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13537   ac_status=$?
13538   grep -v '^ *+' conftest.er1 >conftest.err
13539   rm -f conftest.er1
13540   cat conftest.err >&5
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); } >/dev/null && {
13543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13544          test ! -s conftest.err
13545        }; then
13546
13547       # Extract version from preprocessor output.
13548       ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
13549         | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
13550
13551 else
13552   echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555
13556 fi
13557
13558 rm -f conftest.err conftest.$ac_ext
13559
13560     if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
13561       { echo "$as_me:$LINENO: result: no" >&5
13562 echo "${ECHO_T}no" >&6; }
13563     else
13564       { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
13565 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
13566
13567       # Check that version is high enough.
13568
13569   for ac_prog in gawk mawk nawk awk
13570 do
13571   # Extract the first word of "$ac_prog", so it can be a program name with args.
13572 set dummy $ac_prog; ac_word=$2
13573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13575 if test "${ac_cv_prog_AWK+set}" = set; then
13576   echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578   if test -n "$AWK"; then
13579   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13580 else
13581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13583 do
13584   IFS=$as_save_IFS
13585   test -z "$as_dir" && as_dir=.
13586   for ac_exec_ext in '' $ac_executable_extensions; do
13587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13588     ac_cv_prog_AWK="$ac_prog"
13589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13590     break 2
13591   fi
13592 done
13593 done
13594 IFS=$as_save_IFS
13595
13596 fi
13597 fi
13598 AWK=$ac_cv_prog_AWK
13599 if test -n "$AWK"; then
13600   { echo "$as_me:$LINENO: result: $AWK" >&5
13601 echo "${ECHO_T}$AWK" >&6; }
13602 else
13603   { echo "$as_me:$LINENO: result: no" >&5
13604 echo "${ECHO_T}no" >&6; }
13605 fi
13606
13607
13608   test -n "$AWK" && break
13609 done
13610
13611
13612   # Used to indicate true or false condition
13613   ax_compare_version=false
13614
13615   # Convert the two version strings to be compared into a format that
13616   # allows a simple string comparison.  The end result is that a version
13617   # string of the form 1.12.5-r617 will be converted to the form
13618   # 0001001200050617.  In other words, each number is zero padded to four
13619   # digits, and non digits are removed.
13620
13621   ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13622                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13623                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13624                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13625                      -e 's/[^0-9]//g'`
13626
13627
13628   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13629                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13630                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13631                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13632                      -e 's/[^0-9]//g'`
13633
13634
13635     ax_compare_version=`echo "x$ax_compare_version_A
13636 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
13637
13638
13639
13640     if test "$ax_compare_version" = "true" ; then
13641
13642         # get major and minor version numbers
13643                 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
13644                 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13645
13646                 ax_path_bdb_no_options_save_LIBS="$LIBS"
13647
13648         # Check that we can link with the library.
13649         { echo "$as_me:$LINENO: checking for library containing db_version" >&5
13650 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
13651 if test "${ac_cv_search_db_version+set}" = set; then
13652   echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654   ac_func_search_save_LIBS=$LIBS
13655 cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h.  */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h.  */
13661
13662 /* Override any GCC internal prototype to avoid an error.
13663    Use char because int might match the return type of a GCC
13664    builtin and then its argument prototype would still apply.  */
13665 #ifdef __cplusplus
13666 extern "C"
13667 #endif
13668 char db_version ();
13669 int
13670 main ()
13671 {
13672 return db_version ();
13673   ;
13674   return 0;
13675 }
13676 _ACEOF
13677 for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
13678   if test -z "$ac_lib"; then
13679     ac_res="none required"
13680   else
13681     ac_res=-l$ac_lib
13682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13683   fi
13684   rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688   *) ac_try_echo=$ac_try;;
13689 esac
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691   (eval "$ac_link") 2>conftest.er1
13692   ac_status=$?
13693   grep -v '^ *+' conftest.er1 >conftest.err
13694   rm -f conftest.er1
13695   cat conftest.err >&5
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); } && {
13698          test -z "$ac_c_werror_flag" ||
13699          test ! -s conftest.err
13700        } && test -s conftest$ac_exeext &&
13701        $as_test_x conftest$ac_exeext; then
13702   ac_cv_search_db_version=$ac_res
13703 else
13704   echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13706
13707
13708 fi
13709
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711       conftest$ac_exeext
13712   if test "${ac_cv_search_db_version+set}" = set; then
13713   break
13714 fi
13715 done
13716 if test "${ac_cv_search_db_version+set}" = set; then
13717   :
13718 else
13719   ac_cv_search_db_version=no
13720 fi
13721 rm conftest.$ac_ext
13722 LIBS=$ac_func_search_save_LIBS
13723 fi
13724 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
13725 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
13726 ac_res=$ac_cv_search_db_version
13727 if test "$ac_res" != no; then
13728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13729
13730             # Sucessfully found library.
13731             ax_path_bdb_no_options_ok=yes
13732             BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
13733
13734             # Extract library from LIBS
13735             ax_path_bdb_no_options_LEN=` \
13736               echo "x$ax_path_bdb_no_options_save_LIBS" \
13737               | awk '{print(length)}'`
13738             BDB_LIBS=`echo "x$LIBS " \
13739               | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
13740
13741 fi
13742
13743
13744                 LIBS="$ax_path_bdb_no_options_save_LIBS"
13745
13746
13747       fi
13748
13749     fi
13750
13751       else
13752     # Not cross compiling.
13753     # Check version of Berkeley DB in the current environment.
13754
13755     ax_path_bdb_env_get_version_ok=no
13756
13757   ax_path_bdb_env_get_version_VERSION=''
13758   ax_path_bdb_env_get_version_LIBS=''
13759
13760
13761   # Indicate status of checking for Berkeley DB library.
13762   { echo "$as_me:$LINENO: checking for db.h" >&5
13763 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13764
13765   # Compile and run a program that determines the Berkeley DB version
13766   # in the header file db.h.
13767   ax_path_bdb_env_get_version_HEADER_VERSION=''
13768   if test "$cross_compiling" = yes; then
13769   { echo "$as_me:$LINENO: result: no" >&5
13770 echo "${ECHO_T}no" >&6; }
13771 else
13772   cat >conftest.$ac_ext <<_ACEOF
13773
13774     /* confdefs.h.  */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h.  */
13779
13780 #include <stdio.h>
13781 #include <db.h>
13782 int main(int argc,char **argv)
13783 {
13784   (void) argv;
13785   if (argc > 1)
13786     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13787   return 0;
13788 }
13789
13790
13791 _ACEOF
13792 rm -f conftest$ac_exeext
13793 if { (ac_try="$ac_link"
13794 case "(($ac_try" in
13795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796   *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799   (eval "$ac_link") 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803   { (case "(($ac_try" in
13804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805   *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808   (eval "$ac_try") 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; }; then
13812
13813     # Program compiled and ran, so get version by adding an argument.
13814     ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
13815     { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13816 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
13817
13818 else
13819   echo "$as_me: program exited with status $ac_status" >&5
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ( exit $ac_status )
13824 { echo "$as_me:$LINENO: result: no" >&5
13825 echo "${ECHO_T}no" >&6; }
13826 fi
13827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13828 fi
13829
13830
13831
13832   # Have header version, so try to find corresponding library.
13833   # Looks for library names in the order:
13834   #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
13835   # and stops when it finds the first one that matches the version
13836   # of the header file.
13837   if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
13838     { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
13839 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
13840
13841
13842     # get major and minor version numbers
13843     ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
13844     ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
13845
13846     # see if it is already specified in LIBS
13847     ax_path_bdb_env_get_version_TEST_LIBNAME=''
13848
13849     ax_path_bdb_env_confirm_lib_ok=no
13850
13851     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
13852   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
13853
13854   # Compile and run a program that compares the version defined in
13855   # the header file with a version defined in the library function
13856   # db_version.
13857   if test "$cross_compiling" = yes; then
13858   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13859 See \`config.log' for more details." >&5
13860 echo "$as_me: error: cannot run test program while cross compiling
13861 See \`config.log' for more details." >&2;}
13862    { (exit 1); exit 1; }; }
13863 else
13864   cat >conftest.$ac_ext <<_ACEOF
13865
13866     /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871
13872 #include <stdio.h>
13873 #include <db.h>
13874 int main(int argc,char **argv)
13875 {
13876   int major,minor,patch;
13877   (void) argv;
13878   db_version(&major,&minor,&patch);
13879   if (argc > 1)
13880     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
13881   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
13882       DB_VERSION_PATCH == patch)
13883     return 0;
13884   else
13885     return 1;
13886 }
13887
13888
13889 _ACEOF
13890 rm -f conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897   (eval "$ac_link") 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13901   { (case "(($ac_try" in
13902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903   *) ac_try_echo=$ac_try;;
13904 esac
13905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906   (eval "$ac_try") 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); }; }; then
13910
13911     # Program compiled and ran, so get version by giving an argument,
13912     # which will tell the program to print the output.
13913     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
13914
13915     # If the versions all match up, indicate success.
13916
13917   for ac_prog in gawk mawk nawk awk
13918 do
13919   # Extract the first word of "$ac_prog", so it can be a program name with args.
13920 set dummy $ac_prog; ac_word=$2
13921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13923 if test "${ac_cv_prog_AWK+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   if test -n "$AWK"; then
13927   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13928 else
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13931 do
13932   IFS=$as_save_IFS
13933   test -z "$as_dir" && as_dir=.
13934   for ac_exec_ext in '' $ac_executable_extensions; do
13935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13936     ac_cv_prog_AWK="$ac_prog"
13937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13938     break 2
13939   fi
13940 done
13941 done
13942 IFS=$as_save_IFS
13943
13944 fi
13945 fi
13946 AWK=$ac_cv_prog_AWK
13947 if test -n "$AWK"; then
13948   { echo "$as_me:$LINENO: result: $AWK" >&5
13949 echo "${ECHO_T}$AWK" >&6; }
13950 else
13951   { echo "$as_me:$LINENO: result: no" >&5
13952 echo "${ECHO_T}no" >&6; }
13953 fi
13954
13955
13956   test -n "$AWK" && break
13957 done
13958
13959
13960   # Used to indicate true or false condition
13961   ax_compare_version=false
13962
13963   # Convert the two version strings to be compared into a format that
13964   # allows a simple string comparison.  The end result is that a version
13965   # string of the form 1.12.5-r617 will be converted to the form
13966   # 0001001200050617.  In other words, each number is zero padded to four
13967   # digits, and non digits are removed.
13968
13969   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13970                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13971                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13972                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13973                      -e 's/[^0-9]//g'`
13974
13975
13976   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
13977                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
13978                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
13979                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
13980                      -e 's/[^0-9]//g'`
13981
13982
13983
13984
13985     # Pad zeros at end of numbers to make same length.
13986     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
13987     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
13988     ax_compare_version_A="$ax_compare_version_tmp_A"
13989
13990     # Check for equality or inequality as necessary.
13991
13992       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
13993
13994
13995
13996
13997     if test "$ax_compare_version" = "true" ; then
13998
13999       ax_path_bdb_env_confirm_lib_ok=yes
14000
14001       fi
14002
14003
14004 else
14005   echo "$as_me: program exited with status $ac_status" >&5
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 fi
14010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14011 fi
14012
14013
14014
14015     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14016
14017
14018
14019     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14020       # try format "db"
14021       ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
14022
14023     ax_path_bdb_env_confirm_lib_ok=no
14024
14025     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14026   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14027
14028   # Compile and run a program that compares the version defined in
14029   # the header file with a version defined in the library function
14030   # db_version.
14031   if test "$cross_compiling" = yes; then
14032   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14033 See \`config.log' for more details." >&5
14034 echo "$as_me: error: cannot run test program while cross compiling
14035 See \`config.log' for more details." >&2;}
14036    { (exit 1); exit 1; }; }
14037 else
14038   cat >conftest.$ac_ext <<_ACEOF
14039
14040     /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045
14046 #include <stdio.h>
14047 #include <db.h>
14048 int main(int argc,char **argv)
14049 {
14050   int major,minor,patch;
14051   (void) argv;
14052   db_version(&major,&minor,&patch);
14053   if (argc > 1)
14054     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14055   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14056       DB_VERSION_PATCH == patch)
14057     return 0;
14058   else
14059     return 1;
14060 }
14061
14062
14063 _ACEOF
14064 rm -f conftest$ac_exeext
14065 if { (ac_try="$ac_link"
14066 case "(($ac_try" in
14067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068   *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071   (eval "$ac_link") 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14075   { (case "(($ac_try" in
14076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077   *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080   (eval "$ac_try") 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; }; then
14084
14085     # Program compiled and ran, so get version by giving an argument,
14086     # which will tell the program to print the output.
14087     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14088
14089     # If the versions all match up, indicate success.
14090
14091   for ac_prog in gawk mawk nawk awk
14092 do
14093   # Extract the first word of "$ac_prog", so it can be a program name with args.
14094 set dummy $ac_prog; ac_word=$2
14095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14097 if test "${ac_cv_prog_AWK+set}" = set; then
14098   echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100   if test -n "$AWK"; then
14101   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14102 else
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14105 do
14106   IFS=$as_save_IFS
14107   test -z "$as_dir" && as_dir=.
14108   for ac_exec_ext in '' $ac_executable_extensions; do
14109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110     ac_cv_prog_AWK="$ac_prog"
14111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14112     break 2
14113   fi
14114 done
14115 done
14116 IFS=$as_save_IFS
14117
14118 fi
14119 fi
14120 AWK=$ac_cv_prog_AWK
14121 if test -n "$AWK"; then
14122   { echo "$as_me:$LINENO: result: $AWK" >&5
14123 echo "${ECHO_T}$AWK" >&6; }
14124 else
14125   { echo "$as_me:$LINENO: result: no" >&5
14126 echo "${ECHO_T}no" >&6; }
14127 fi
14128
14129
14130   test -n "$AWK" && break
14131 done
14132
14133
14134   # Used to indicate true or false condition
14135   ax_compare_version=false
14136
14137   # Convert the two version strings to be compared into a format that
14138   # allows a simple string comparison.  The end result is that a version
14139   # string of the form 1.12.5-r617 will be converted to the form
14140   # 0001001200050617.  In other words, each number is zero padded to four
14141   # digits, and non digits are removed.
14142
14143   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14144                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14145                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14146                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14147                      -e 's/[^0-9]//g'`
14148
14149
14150   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14151                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14152                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14153                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14154                      -e 's/[^0-9]//g'`
14155
14156
14157
14158
14159     # Pad zeros at end of numbers to make same length.
14160     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14161     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14162     ax_compare_version_A="$ax_compare_version_tmp_A"
14163
14164     # Check for equality or inequality as necessary.
14165
14166       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14167
14168
14169
14170
14171     if test "$ax_compare_version" = "true" ; then
14172
14173       ax_path_bdb_env_confirm_lib_ok=yes
14174
14175       fi
14176
14177
14178 else
14179   echo "$as_me: program exited with status $ac_status" >&5
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 fi
14184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14185 fi
14186
14187
14188
14189     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14190
14191
14192     fi
14193
14194     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14195       # try format "db-X.Y"
14196       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14197
14198     ax_path_bdb_env_confirm_lib_ok=no
14199
14200     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14201   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14202
14203   # Compile and run a program that compares the version defined in
14204   # the header file with a version defined in the library function
14205   # db_version.
14206   if test "$cross_compiling" = yes; then
14207   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14208 See \`config.log' for more details." >&5
14209 echo "$as_me: error: cannot run test program while cross compiling
14210 See \`config.log' for more details." >&2;}
14211    { (exit 1); exit 1; }; }
14212 else
14213   cat >conftest.$ac_ext <<_ACEOF
14214
14215     /* confdefs.h.  */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h.  */
14220
14221 #include <stdio.h>
14222 #include <db.h>
14223 int main(int argc,char **argv)
14224 {
14225   int major,minor,patch;
14226   (void) argv;
14227   db_version(&major,&minor,&patch);
14228   if (argc > 1)
14229     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14230   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14231       DB_VERSION_PATCH == patch)
14232     return 0;
14233   else
14234     return 1;
14235 }
14236
14237
14238 _ACEOF
14239 rm -f conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243   *) ac_try_echo=$ac_try;;
14244 esac
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246   (eval "$ac_link") 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14250   { (case "(($ac_try" in
14251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252   *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255   (eval "$ac_try") 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259
14260     # Program compiled and ran, so get version by giving an argument,
14261     # which will tell the program to print the output.
14262     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14263
14264     # If the versions all match up, indicate success.
14265
14266   for ac_prog in gawk mawk nawk awk
14267 do
14268   # Extract the first word of "$ac_prog", so it can be a program name with args.
14269 set dummy $ac_prog; ac_word=$2
14270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14272 if test "${ac_cv_prog_AWK+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   if test -n "$AWK"; then
14276   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14277 else
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14280 do
14281   IFS=$as_save_IFS
14282   test -z "$as_dir" && as_dir=.
14283   for ac_exec_ext in '' $ac_executable_extensions; do
14284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14285     ac_cv_prog_AWK="$ac_prog"
14286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14287     break 2
14288   fi
14289 done
14290 done
14291 IFS=$as_save_IFS
14292
14293 fi
14294 fi
14295 AWK=$ac_cv_prog_AWK
14296 if test -n "$AWK"; then
14297   { echo "$as_me:$LINENO: result: $AWK" >&5
14298 echo "${ECHO_T}$AWK" >&6; }
14299 else
14300   { echo "$as_me:$LINENO: result: no" >&5
14301 echo "${ECHO_T}no" >&6; }
14302 fi
14303
14304
14305   test -n "$AWK" && break
14306 done
14307
14308
14309   # Used to indicate true or false condition
14310   ax_compare_version=false
14311
14312   # Convert the two version strings to be compared into a format that
14313   # allows a simple string comparison.  The end result is that a version
14314   # string of the form 1.12.5-r617 will be converted to the form
14315   # 0001001200050617.  In other words, each number is zero padded to four
14316   # digits, and non digits are removed.
14317
14318   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14319                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14320                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14321                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14322                      -e 's/[^0-9]//g'`
14323
14324
14325   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14326                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14327                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14328                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14329                      -e 's/[^0-9]//g'`
14330
14331
14332
14333
14334     # Pad zeros at end of numbers to make same length.
14335     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14336     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14337     ax_compare_version_A="$ax_compare_version_tmp_A"
14338
14339     # Check for equality or inequality as necessary.
14340
14341       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14342
14343
14344
14345
14346     if test "$ax_compare_version" = "true" ; then
14347
14348       ax_path_bdb_env_confirm_lib_ok=yes
14349
14350       fi
14351
14352
14353 else
14354   echo "$as_me: program exited with status $ac_status" >&5
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358 fi
14359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14360 fi
14361
14362
14363
14364     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14365
14366
14367     fi
14368
14369     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14370       # try format "dbX.Y"
14371       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
14372
14373     ax_path_bdb_env_confirm_lib_ok=no
14374
14375     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14376   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14377
14378   # Compile and run a program that compares the version defined in
14379   # the header file with a version defined in the library function
14380   # db_version.
14381   if test "$cross_compiling" = yes; then
14382   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14383 See \`config.log' for more details." >&5
14384 echo "$as_me: error: cannot run test program while cross compiling
14385 See \`config.log' for more details." >&2;}
14386    { (exit 1); exit 1; }; }
14387 else
14388   cat >conftest.$ac_ext <<_ACEOF
14389
14390     /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395
14396 #include <stdio.h>
14397 #include <db.h>
14398 int main(int argc,char **argv)
14399 {
14400   int major,minor,patch;
14401   (void) argv;
14402   db_version(&major,&minor,&patch);
14403   if (argc > 1)
14404     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14405   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14406       DB_VERSION_PATCH == patch)
14407     return 0;
14408   else
14409     return 1;
14410 }
14411
14412
14413 _ACEOF
14414 rm -f conftest$ac_exeext
14415 if { (ac_try="$ac_link"
14416 case "(($ac_try" in
14417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418   *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421   (eval "$ac_link") 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14425   { (case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_try") 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434
14435     # Program compiled and ran, so get version by giving an argument,
14436     # which will tell the program to print the output.
14437     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14438
14439     # If the versions all match up, indicate success.
14440
14441   for ac_prog in gawk mawk nawk awk
14442 do
14443   # Extract the first word of "$ac_prog", so it can be a program name with args.
14444 set dummy $ac_prog; ac_word=$2
14445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14447 if test "${ac_cv_prog_AWK+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   if test -n "$AWK"; then
14451   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14452 else
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14455 do
14456   IFS=$as_save_IFS
14457   test -z "$as_dir" && as_dir=.
14458   for ac_exec_ext in '' $ac_executable_extensions; do
14459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460     ac_cv_prog_AWK="$ac_prog"
14461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14462     break 2
14463   fi
14464 done
14465 done
14466 IFS=$as_save_IFS
14467
14468 fi
14469 fi
14470 AWK=$ac_cv_prog_AWK
14471 if test -n "$AWK"; then
14472   { echo "$as_me:$LINENO: result: $AWK" >&5
14473 echo "${ECHO_T}$AWK" >&6; }
14474 else
14475   { echo "$as_me:$LINENO: result: no" >&5
14476 echo "${ECHO_T}no" >&6; }
14477 fi
14478
14479
14480   test -n "$AWK" && break
14481 done
14482
14483
14484   # Used to indicate true or false condition
14485   ax_compare_version=false
14486
14487   # Convert the two version strings to be compared into a format that
14488   # allows a simple string comparison.  The end result is that a version
14489   # string of the form 1.12.5-r617 will be converted to the form
14490   # 0001001200050617.  In other words, each number is zero padded to four
14491   # digits, and non digits are removed.
14492
14493   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14494                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14495                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14496                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14497                      -e 's/[^0-9]//g'`
14498
14499
14500   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14501                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14502                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14503                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14504                      -e 's/[^0-9]//g'`
14505
14506
14507
14508
14509     # Pad zeros at end of numbers to make same length.
14510     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14511     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14512     ax_compare_version_A="$ax_compare_version_tmp_A"
14513
14514     # Check for equality or inequality as necessary.
14515
14516       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14517
14518
14519
14520
14521     if test "$ax_compare_version" = "true" ; then
14522
14523       ax_path_bdb_env_confirm_lib_ok=yes
14524
14525       fi
14526
14527
14528 else
14529   echo "$as_me: program exited with status $ac_status" >&5
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 fi
14534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14535 fi
14536
14537
14538
14539     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14540
14541
14542     fi
14543
14544     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14545       # try format "dbXY"
14546       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
14547
14548     ax_path_bdb_env_confirm_lib_ok=no
14549
14550     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14551   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14552
14553   # Compile and run a program that compares the version defined in
14554   # the header file with a version defined in the library function
14555   # db_version.
14556   if test "$cross_compiling" = yes; then
14557   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14558 See \`config.log' for more details." >&5
14559 echo "$as_me: error: cannot run test program while cross compiling
14560 See \`config.log' for more details." >&2;}
14561    { (exit 1); exit 1; }; }
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564
14565     /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570
14571 #include <stdio.h>
14572 #include <db.h>
14573 int main(int argc,char **argv)
14574 {
14575   int major,minor,patch;
14576   (void) argv;
14577   db_version(&major,&minor,&patch);
14578   if (argc > 1)
14579     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14580   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14581       DB_VERSION_PATCH == patch)
14582     return 0;
14583   else
14584     return 1;
14585 }
14586
14587
14588 _ACEOF
14589 rm -f conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596   (eval "$ac_link") 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14600   { (case "(($ac_try" in
14601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602   *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605   (eval "$ac_try") 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); }; }; then
14609
14610     # Program compiled and ran, so get version by giving an argument,
14611     # which will tell the program to print the output.
14612     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14613
14614     # If the versions all match up, indicate success.
14615
14616   for ac_prog in gawk mawk nawk awk
14617 do
14618   # Extract the first word of "$ac_prog", so it can be a program name with args.
14619 set dummy $ac_prog; ac_word=$2
14620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14622 if test "${ac_cv_prog_AWK+set}" = set; then
14623   echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625   if test -n "$AWK"; then
14626   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14627 else
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14630 do
14631   IFS=$as_save_IFS
14632   test -z "$as_dir" && as_dir=.
14633   for ac_exec_ext in '' $ac_executable_extensions; do
14634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14635     ac_cv_prog_AWK="$ac_prog"
14636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14637     break 2
14638   fi
14639 done
14640 done
14641 IFS=$as_save_IFS
14642
14643 fi
14644 fi
14645 AWK=$ac_cv_prog_AWK
14646 if test -n "$AWK"; then
14647   { echo "$as_me:$LINENO: result: $AWK" >&5
14648 echo "${ECHO_T}$AWK" >&6; }
14649 else
14650   { echo "$as_me:$LINENO: result: no" >&5
14651 echo "${ECHO_T}no" >&6; }
14652 fi
14653
14654
14655   test -n "$AWK" && break
14656 done
14657
14658
14659   # Used to indicate true or false condition
14660   ax_compare_version=false
14661
14662   # Convert the two version strings to be compared into a format that
14663   # allows a simple string comparison.  The end result is that a version
14664   # string of the form 1.12.5-r617 will be converted to the form
14665   # 0001001200050617.  In other words, each number is zero padded to four
14666   # digits, and non digits are removed.
14667
14668   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14669                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14670                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14671                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14672                      -e 's/[^0-9]//g'`
14673
14674
14675   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14676                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14677                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14678                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14679                      -e 's/[^0-9]//g'`
14680
14681
14682
14683
14684     # Pad zeros at end of numbers to make same length.
14685     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14686     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14687     ax_compare_version_A="$ax_compare_version_tmp_A"
14688
14689     # Check for equality or inequality as necessary.
14690
14691       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14692
14693
14694
14695
14696     if test "$ax_compare_version" = "true" ; then
14697
14698       ax_path_bdb_env_confirm_lib_ok=yes
14699
14700       fi
14701
14702
14703 else
14704   echo "$as_me: program exited with status $ac_status" >&5
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 fi
14709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14710 fi
14711
14712
14713
14714     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14715
14716
14717     fi
14718
14719     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14720       # try format "db-X"
14721       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
14722
14723     ax_path_bdb_env_confirm_lib_ok=no
14724
14725     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14726   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14727
14728   # Compile and run a program that compares the version defined in
14729   # the header file with a version defined in the library function
14730   # db_version.
14731   if test "$cross_compiling" = yes; then
14732   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14733 See \`config.log' for more details." >&5
14734 echo "$as_me: error: cannot run test program while cross compiling
14735 See \`config.log' for more details." >&2;}
14736    { (exit 1); exit 1; }; }
14737 else
14738   cat >conftest.$ac_ext <<_ACEOF
14739
14740     /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745
14746 #include <stdio.h>
14747 #include <db.h>
14748 int main(int argc,char **argv)
14749 {
14750   int major,minor,patch;
14751   (void) argv;
14752   db_version(&major,&minor,&patch);
14753   if (argc > 1)
14754     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14755   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14756       DB_VERSION_PATCH == patch)
14757     return 0;
14758   else
14759     return 1;
14760 }
14761
14762
14763 _ACEOF
14764 rm -f conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_link") 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14775   { (case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_try") 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; }; then
14784
14785     # Program compiled and ran, so get version by giving an argument,
14786     # which will tell the program to print the output.
14787     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14788
14789     # If the versions all match up, indicate success.
14790
14791   for ac_prog in gawk mawk nawk awk
14792 do
14793   # Extract the first word of "$ac_prog", so it can be a program name with args.
14794 set dummy $ac_prog; ac_word=$2
14795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14797 if test "${ac_cv_prog_AWK+set}" = set; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800   if test -n "$AWK"; then
14801   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14802 else
14803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 for as_dir in $PATH
14805 do
14806   IFS=$as_save_IFS
14807   test -z "$as_dir" && as_dir=.
14808   for ac_exec_ext in '' $ac_executable_extensions; do
14809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14810     ac_cv_prog_AWK="$ac_prog"
14811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14812     break 2
14813   fi
14814 done
14815 done
14816 IFS=$as_save_IFS
14817
14818 fi
14819 fi
14820 AWK=$ac_cv_prog_AWK
14821 if test -n "$AWK"; then
14822   { echo "$as_me:$LINENO: result: $AWK" >&5
14823 echo "${ECHO_T}$AWK" >&6; }
14824 else
14825   { echo "$as_me:$LINENO: result: no" >&5
14826 echo "${ECHO_T}no" >&6; }
14827 fi
14828
14829
14830   test -n "$AWK" && break
14831 done
14832
14833
14834   # Used to indicate true or false condition
14835   ax_compare_version=false
14836
14837   # Convert the two version strings to be compared into a format that
14838   # allows a simple string comparison.  The end result is that a version
14839   # string of the form 1.12.5-r617 will be converted to the form
14840   # 0001001200050617.  In other words, each number is zero padded to four
14841   # digits, and non digits are removed.
14842
14843   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14844                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14845                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14846                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14847                      -e 's/[^0-9]//g'`
14848
14849
14850   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14851                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14852                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14853                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14854                      -e 's/[^0-9]//g'`
14855
14856
14857
14858
14859     # Pad zeros at end of numbers to make same length.
14860     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
14861     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
14862     ax_compare_version_A="$ax_compare_version_tmp_A"
14863
14864     # Check for equality or inequality as necessary.
14865
14866       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
14867
14868
14869
14870
14871     if test "$ax_compare_version" = "true" ; then
14872
14873       ax_path_bdb_env_confirm_lib_ok=yes
14874
14875       fi
14876
14877
14878 else
14879   echo "$as_me: program exited with status $ac_status" >&5
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 fi
14884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14885 fi
14886
14887
14888
14889     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
14890
14891
14892     fi
14893
14894     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
14895       # try format "dbX"
14896       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
14897
14898     ax_path_bdb_env_confirm_lib_ok=no
14899
14900     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
14901   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
14902
14903   # Compile and run a program that compares the version defined in
14904   # the header file with a version defined in the library function
14905   # db_version.
14906   if test "$cross_compiling" = yes; then
14907   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14908 See \`config.log' for more details." >&5
14909 echo "$as_me: error: cannot run test program while cross compiling
14910 See \`config.log' for more details." >&2;}
14911    { (exit 1); exit 1; }; }
14912 else
14913   cat >conftest.$ac_ext <<_ACEOF
14914
14915     /* confdefs.h.  */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h.  */
14920
14921 #include <stdio.h>
14922 #include <db.h>
14923 int main(int argc,char **argv)
14924 {
14925   int major,minor,patch;
14926   (void) argv;
14927   db_version(&major,&minor,&patch);
14928   if (argc > 1)
14929     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
14930   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
14931       DB_VERSION_PATCH == patch)
14932     return 0;
14933   else
14934     return 1;
14935 }
14936
14937
14938 _ACEOF
14939 rm -f conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_link") 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14950   { (case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_try") 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; }; then
14959
14960     # Program compiled and ran, so get version by giving an argument,
14961     # which will tell the program to print the output.
14962     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
14963
14964     # If the versions all match up, indicate success.
14965
14966   for ac_prog in gawk mawk nawk awk
14967 do
14968   # Extract the first word of "$ac_prog", so it can be a program name with args.
14969 set dummy $ac_prog; ac_word=$2
14970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14972 if test "${ac_cv_prog_AWK+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   if test -n "$AWK"; then
14976   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14977 else
14978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14980 do
14981   IFS=$as_save_IFS
14982   test -z "$as_dir" && as_dir=.
14983   for ac_exec_ext in '' $ac_executable_extensions; do
14984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14985     ac_cv_prog_AWK="$ac_prog"
14986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14987     break 2
14988   fi
14989 done
14990 done
14991 IFS=$as_save_IFS
14992
14993 fi
14994 fi
14995 AWK=$ac_cv_prog_AWK
14996 if test -n "$AWK"; then
14997   { echo "$as_me:$LINENO: result: $AWK" >&5
14998 echo "${ECHO_T}$AWK" >&6; }
14999 else
15000   { echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6; }
15002 fi
15003
15004
15005   test -n "$AWK" && break
15006 done
15007
15008
15009   # Used to indicate true or false condition
15010   ax_compare_version=false
15011
15012   # Convert the two version strings to be compared into a format that
15013   # allows a simple string comparison.  The end result is that a version
15014   # string of the form 1.12.5-r617 will be converted to the form
15015   # 0001001200050617.  In other words, each number is zero padded to four
15016   # digits, and non digits are removed.
15017
15018   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15019                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15020                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15021                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15022                      -e 's/[^0-9]//g'`
15023
15024
15025   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15026                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15027                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15028                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15029                      -e 's/[^0-9]//g'`
15030
15031
15032
15033
15034     # Pad zeros at end of numbers to make same length.
15035     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
15036     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
15037     ax_compare_version_A="$ax_compare_version_tmp_A"
15038
15039     # Check for equality or inequality as necessary.
15040
15041       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
15042
15043
15044
15045
15046     if test "$ax_compare_version" = "true" ; then
15047
15048       ax_path_bdb_env_confirm_lib_ok=yes
15049
15050       fi
15051
15052
15053 else
15054   echo "$as_me: program exited with status $ac_status" >&5
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 fi
15059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15060 fi
15061
15062
15063
15064     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
15065
15066
15067     fi
15068
15069         if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15070       if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
15071         { echo "$as_me:$LINENO: result: none required" >&5
15072 echo "${ECHO_T}none required" >&6; }
15073       else
15074         { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
15075 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
15076       fi
15077       ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
15078       ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
15079       ax_path_bdb_env_get_version_ok=yes
15080     else
15081       { echo "$as_me:$LINENO: result: no" >&5
15082 echo "${ECHO_T}no" >&6; }
15083     fi
15084
15085           fi
15086
15087
15088     if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
15089
15090
15091   for ac_prog in gawk mawk nawk awk
15092 do
15093   # Extract the first word of "$ac_prog", so it can be a program name with args.
15094 set dummy $ac_prog; ac_word=$2
15095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15097 if test "${ac_cv_prog_AWK+set}" = set; then
15098   echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100   if test -n "$AWK"; then
15101   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15102 else
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15105 do
15106   IFS=$as_save_IFS
15107   test -z "$as_dir" && as_dir=.
15108   for ac_exec_ext in '' $ac_executable_extensions; do
15109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15110     ac_cv_prog_AWK="$ac_prog"
15111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15112     break 2
15113   fi
15114 done
15115 done
15116 IFS=$as_save_IFS
15117
15118 fi
15119 fi
15120 AWK=$ac_cv_prog_AWK
15121 if test -n "$AWK"; then
15122   { echo "$as_me:$LINENO: result: $AWK" >&5
15123 echo "${ECHO_T}$AWK" >&6; }
15124 else
15125   { echo "$as_me:$LINENO: result: no" >&5
15126 echo "${ECHO_T}no" >&6; }
15127 fi
15128
15129
15130   test -n "$AWK" && break
15131 done
15132
15133
15134   # Used to indicate true or false condition
15135   ax_compare_version=false
15136
15137   # Convert the two version strings to be compared into a format that
15138   # allows a simple string comparison.  The end result is that a version
15139   # string of the form 1.12.5-r617 will be converted to the form
15140   # 0001001200050617.  In other words, each number is zero padded to four
15141   # digits, and non digits are removed.
15142
15143   ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15144                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15145                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15146                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15147                      -e 's/[^0-9]//g'`
15148
15149
15150   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15151                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15152                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15153                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15154                      -e 's/[^0-9]//g'`
15155
15156
15157     ax_compare_version=`echo "x$ax_compare_version_A
15158 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15159
15160
15161
15162     if test "$ax_compare_version" = "true" ; then
15163
15164         # Found acceptable version in current environment.
15165         ax_path_bdb_no_options_ok=yes
15166         BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
15167         BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
15168
15169       fi
15170
15171
15172       fi
15173
15174
15175
15176     # Determine if we need to search /usr/local/BerkeleyDB*
15177     ax_path_bdb_no_options_DONE=no
15178     if test "xHIGHEST" = "xENVONLY" ; then
15179       ax_path_bdb_no_options_DONE=yes
15180     elif test "xHIGHEST" = "xENVFIRST" ; then
15181       ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
15182     fi
15183
15184     if test "$ax_path_bdb_no_options_DONE" = "no" ; then
15185       # Check for highest in /usr/local/BerkeleyDB*
15186
15187     ax_path_bdb_path_find_highest_ok=no
15188
15189     ax_path_bdb_path_find_highest_VERSION=''
15190
15191   ax_path_bdb_path_find_highest_DIR=''
15192
15193   # find highest verison in default install directory for Berkeley DB
15194
15195   for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
15196   do
15197
15198     ax_path_bdb_path_get_version_ok=no
15199
15200   # Indicate status of checking for Berkeley DB header.
15201   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
15202 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
15203   ax_path_bdb_path_get_version_got_header=no
15204   test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
15205   { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
15206 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
15207
15208   # Indicate status of checking for Berkeley DB library.
15209   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
15210 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
15211
15212   ax_path_bdb_path_get_version_VERSION=''
15213
15214   if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
15215      test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
15216         ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
15217     CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
15218
15219     ax_path_bdb_path_get_version_save_LIBS="$LIBS"
15220     LIBS="$LIBS -ldb"
15221
15222     ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
15223     LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
15224
15225     # Compile and run a program that compares the version defined in
15226     # the header file with a version defined in the library function
15227     # db_version.
15228     if test "$cross_compiling" = yes; then
15229   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15230 See \`config.log' for more details." >&5
15231 echo "$as_me: error: cannot run test program while cross compiling
15232 See \`config.log' for more details." >&2;}
15233    { (exit 1); exit 1; }; }
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236
15237       /* confdefs.h.  */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h.  */
15242
15243 #include <stdio.h>
15244 #include <db.h>
15245 int main(int argc,char **argv)
15246 {
15247   int major,minor,patch;
15248   (void) argv;
15249   db_version(&major,&minor,&patch);
15250   if (argc > 1)
15251     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15252   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15253       DB_VERSION_PATCH == patch)
15254     return 0;
15255   else
15256     return 1;
15257 }
15258
15259
15260 _ACEOF
15261 rm -f 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>&5
15269   ac_status=$?
15270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15272   { (case "(($ac_try" in
15273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274   *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277   (eval "$ac_try") 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281
15282       # Program compiled and ran, so get version by adding argument.
15283       ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
15284       ax_path_bdb_path_get_version_ok=yes
15285
15286 else
15287   echo "$as_me: program exited with status $ac_status" >&5
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 fi
15292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15293 fi
15294
15295
15296
15297         CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
15298     LIBS="$ax_path_bdb_path_get_version_save_LIBS"
15299     LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
15300   fi
15301
15302     if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
15303     { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
15304 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
15305
15306
15307   for ac_prog in gawk mawk nawk awk
15308 do
15309   # Extract the first word of "$ac_prog", so it can be a program name with args.
15310 set dummy $ac_prog; ac_word=$2
15311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15313 if test "${ac_cv_prog_AWK+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   if test -n "$AWK"; then
15317   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15318 else
15319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15320 for as_dir in $PATH
15321 do
15322   IFS=$as_save_IFS
15323   test -z "$as_dir" && as_dir=.
15324   for ac_exec_ext in '' $ac_executable_extensions; do
15325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15326     ac_cv_prog_AWK="$ac_prog"
15327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15328     break 2
15329   fi
15330 done
15331 done
15332 IFS=$as_save_IFS
15333
15334 fi
15335 fi
15336 AWK=$ac_cv_prog_AWK
15337 if test -n "$AWK"; then
15338   { echo "$as_me:$LINENO: result: $AWK" >&5
15339 echo "${ECHO_T}$AWK" >&6; }
15340 else
15341   { echo "$as_me:$LINENO: result: no" >&5
15342 echo "${ECHO_T}no" >&6; }
15343 fi
15344
15345
15346   test -n "$AWK" && break
15347 done
15348
15349
15350   # Used to indicate true or false condition
15351   ax_compare_version=false
15352
15353   # Convert the two version strings to be compared into a format that
15354   # allows a simple string comparison.  The end result is that a version
15355   # string of the form 1.12.5-r617 will be converted to the form
15356   # 0001001200050617.  In other words, each number is zero padded to four
15357   # digits, and non digits are removed.
15358
15359   ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15360                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15361                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15362                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15363                      -e 's/[^0-9]//g'`
15364
15365
15366   ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15367                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15368                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15369                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15370                      -e 's/[^0-9]//g'`
15371
15372
15373     ax_compare_version=`echo "x$ax_compare_version_A
15374 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15375
15376
15377
15378     if test "$ax_compare_version" = "true" ; then
15379
15380         ax_path_bdb_path_find_highest_ok=yes
15381         ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
15382         ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
15383
15384       fi
15385
15386
15387   else
15388     { echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6; }
15390       fi
15391
15392   done
15393
15394
15395     if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
15396
15397         if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15398         # If we already have an acceptable version use this if higher.
15399
15400   for ac_prog in gawk mawk nawk awk
15401 do
15402   # Extract the first word of "$ac_prog", so it can be a program name with args.
15403 set dummy $ac_prog; ac_word=$2
15404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15406 if test "${ac_cv_prog_AWK+set}" = set; then
15407   echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409   if test -n "$AWK"; then
15410   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15411 else
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413 for as_dir in $PATH
15414 do
15415   IFS=$as_save_IFS
15416   test -z "$as_dir" && as_dir=.
15417   for ac_exec_ext in '' $ac_executable_extensions; do
15418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15419     ac_cv_prog_AWK="$ac_prog"
15420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15421     break 2
15422   fi
15423 done
15424 done
15425 IFS=$as_save_IFS
15426
15427 fi
15428 fi
15429 AWK=$ac_cv_prog_AWK
15430 if test -n "$AWK"; then
15431   { echo "$as_me:$LINENO: result: $AWK" >&5
15432 echo "${ECHO_T}$AWK" >&6; }
15433 else
15434   { echo "$as_me:$LINENO: result: no" >&5
15435 echo "${ECHO_T}no" >&6; }
15436 fi
15437
15438
15439   test -n "$AWK" && break
15440 done
15441
15442
15443   # Used to indicate true or false condition
15444   ax_compare_version=false
15445
15446   # Convert the two version strings to be compared into a format that
15447   # allows a simple string comparison.  The end result is that a version
15448   # string of the form 1.12.5-r617 will be converted to the form
15449   # 0001001200050617.  In other words, each number is zero padded to four
15450   # digits, and non digits are removed.
15451
15452   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15453                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15454                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15455                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15456                      -e 's/[^0-9]//g'`
15457
15458
15459   ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15460                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15461                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15462                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15463                      -e 's/[^0-9]//g'`
15464
15465
15466     ax_compare_version=`echo "x$ax_compare_version_A
15467 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
15468
15469
15470
15471     if test "$ax_compare_version" = "true" ; then
15472     :
15473       fi
15474
15475         else
15476           # Since we didn't have an acceptable version check if this one is.
15477
15478   for ac_prog in gawk mawk nawk awk
15479 do
15480   # Extract the first word of "$ac_prog", so it can be a program name with args.
15481 set dummy $ac_prog; ac_word=$2
15482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15484 if test "${ac_cv_prog_AWK+set}" = set; then
15485   echo $ECHO_N "(cached) $ECHO_C" >&6
15486 else
15487   if test -n "$AWK"; then
15488   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15489 else
15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491 for as_dir in $PATH
15492 do
15493   IFS=$as_save_IFS
15494   test -z "$as_dir" && as_dir=.
15495   for ac_exec_ext in '' $ac_executable_extensions; do
15496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15497     ac_cv_prog_AWK="$ac_prog"
15498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15499     break 2
15500   fi
15501 done
15502 done
15503 IFS=$as_save_IFS
15504
15505 fi
15506 fi
15507 AWK=$ac_cv_prog_AWK
15508 if test -n "$AWK"; then
15509   { echo "$as_me:$LINENO: result: $AWK" >&5
15510 echo "${ECHO_T}$AWK" >&6; }
15511 else
15512   { echo "$as_me:$LINENO: result: no" >&5
15513 echo "${ECHO_T}no" >&6; }
15514 fi
15515
15516
15517   test -n "$AWK" && break
15518 done
15519
15520
15521   # Used to indicate true or false condition
15522   ax_compare_version=false
15523
15524   # Convert the two version strings to be compared into a format that
15525   # allows a simple string comparison.  The end result is that a version
15526   # string of the form 1.12.5-r617 will be converted to the form
15527   # 0001001200050617.  In other words, each number is zero padded to four
15528   # digits, and non digits are removed.
15529
15530   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15531                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15532                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15533                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15534                      -e 's/[^0-9]//g'`
15535
15536
15537   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15538                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15539                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15540                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15541                      -e 's/[^0-9]//g'`
15542
15543
15544     ax_compare_version=`echo "x$ax_compare_version_A
15545 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15546
15547
15548
15549     if test "$ax_compare_version" = "true" ; then
15550     :
15551       fi
15552
15553         fi
15554
15555       fi
15556
15557
15558
15559             if test "$ax_compare_version" = "true" ; then
15560         ax_path_bdb_no_options_ok=yes
15561         BDB_LIBS="-ldb"
15562         if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
15563           BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
15564           BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
15565         fi
15566         BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
15567       fi
15568     fi
15569   fi
15570
15571     if test "$ax_path_bdb_no_options_ok" = "yes" ; then
15572     { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
15573 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
15574
15575 cat >>confdefs.h <<\_ACEOF
15576 #define HAVE_DB_H 1
15577 _ACEOF
15578
15579
15580       ax_path_bdb_ok=yes
15581
15582   else
15583     { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
15584 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
15585       fi
15586
15587    else
15588      # Set --with-bdb-dir option.
15589      ax_path_bdb_INC="$with_bdb_dir/include"
15590      ax_path_bdb_LIB="$with_bdb_dir/lib"
15591
15592           ax_path_bdb_save_CPPFLAGS="$CPPFLAGS"
15593      CPPFLAGS="-I$ax_path_bdb_INC $CPPFLAGS"
15594
15595      ax_path_bdb_save_LDFLAGS=$LDFLAGS
15596      LDFLAGS="-L$ax_path_bdb_LIB $LDFLAGS"
15597
15598      # Check for specific header file db.h
15599      { echo "$as_me:$LINENO: checking db.h presence in $ax_path_bdb_INC" >&5
15600 echo $ECHO_N "checking db.h presence in $ax_path_bdb_INC... $ECHO_C" >&6; }
15601      if test -f "$ax_path_bdb_INC/db.h" ; then
15602        { echo "$as_me:$LINENO: result: yes" >&5
15603 echo "${ECHO_T}yes" >&6; }
15604        # Check for library
15605
15606     ax_path_bdb_no_options_ok=no
15607
15608   # Values to add to environment to use Berkeley DB.
15609   BDB_VERSION=''
15610   BDB_LIBS=''
15611   BDB_CPPFLAGS=''
15612   BDB_LDFLAGS=''
15613
15614   # Check cross compilation here.
15615   if test "x$cross_compiling" = "xyes" ; then
15616     # If cross compiling, can't use AC_RUN_IFELSE so do these tests.
15617     # The AC_PREPROC_IFELSE confirms that db.h is preprocessable,
15618     # and extracts the version number from it.
15619     { echo "$as_me:$LINENO: checking for db.h" >&5
15620 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15621
15622         ax_path_bdb_no_options_HEADER_VERSION=''
15623     cat >conftest.$ac_ext <<_ACEOF
15624
15625       /* confdefs.h.  */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h.  */
15630
15631 #include <db.h>
15632 AX_PATH_BDB_STUFF DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH
15633
15634
15635 _ACEOF
15636 if { (ac_try="$ac_cpp conftest.$ac_ext"
15637 case "(($ac_try" in
15638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639   *) ac_try_echo=$ac_try;;
15640 esac
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } >/dev/null && {
15649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15650          test ! -s conftest.err
15651        }; then
15652
15653       # Extract version from preprocessor output.
15654       ax_path_bdb_no_options_HEADER_VERSION=`eval "$ac_cpp conftest.$ac_ext" 2> /dev/null \
15655         | grep AX_PATH_BDB_STUFF | sed 's/[^0-9,]//g;s/,/./g;1q'`
15656
15657 else
15658   echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15660
15661
15662 fi
15663
15664 rm -f conftest.err conftest.$ac_ext
15665
15666     if test "x$ax_path_bdb_no_options_HEADER_VERSION" = "x" ; then
15667       { echo "$as_me:$LINENO: result: no" >&5
15668 echo "${ECHO_T}no" >&6; }
15669     else
15670       { echo "$as_me:$LINENO: result: $ax_path_bdb_no_options_HEADER_VERSION" >&5
15671 echo "${ECHO_T}$ax_path_bdb_no_options_HEADER_VERSION" >&6; }
15672
15673       # Check that version is high enough.
15674
15675   for ac_prog in gawk mawk nawk awk
15676 do
15677   # Extract the first word of "$ac_prog", so it can be a program name with args.
15678 set dummy $ac_prog; ac_word=$2
15679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15681 if test "${ac_cv_prog_AWK+set}" = set; then
15682   echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684   if test -n "$AWK"; then
15685   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15686 else
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 for as_dir in $PATH
15689 do
15690   IFS=$as_save_IFS
15691   test -z "$as_dir" && as_dir=.
15692   for ac_exec_ext in '' $ac_executable_extensions; do
15693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15694     ac_cv_prog_AWK="$ac_prog"
15695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15696     break 2
15697   fi
15698 done
15699 done
15700 IFS=$as_save_IFS
15701
15702 fi
15703 fi
15704 AWK=$ac_cv_prog_AWK
15705 if test -n "$AWK"; then
15706   { echo "$as_me:$LINENO: result: $AWK" >&5
15707 echo "${ECHO_T}$AWK" >&6; }
15708 else
15709   { echo "$as_me:$LINENO: result: no" >&5
15710 echo "${ECHO_T}no" >&6; }
15711 fi
15712
15713
15714   test -n "$AWK" && break
15715 done
15716
15717
15718   # Used to indicate true or false condition
15719   ax_compare_version=false
15720
15721   # Convert the two version strings to be compared into a format that
15722   # allows a simple string comparison.  The end result is that a version
15723   # string of the form 1.12.5-r617 will be converted to the form
15724   # 0001001200050617.  In other words, each number is zero padded to four
15725   # digits, and non digits are removed.
15726
15727   ax_compare_version_A=`echo "$ax_path_bdb_no_options_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15728                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15729                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15730                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15731                      -e 's/[^0-9]//g'`
15732
15733
15734   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15735                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15736                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15737                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15738                      -e 's/[^0-9]//g'`
15739
15740
15741     ax_compare_version=`echo "x$ax_compare_version_A
15742 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15743
15744
15745
15746     if test "$ax_compare_version" = "true" ; then
15747
15748         # get major and minor version numbers
15749                 ax_path_bdb_no_options_MAJOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,\..*,,'`
15750                 ax_path_bdb_no_options_MINOR=`echo $ax_path_bdb_no_options_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15751
15752                 ax_path_bdb_no_options_save_LIBS="$LIBS"
15753
15754         # Check that we can link with the library.
15755         { echo "$as_me:$LINENO: checking for library containing db_version" >&5
15756 echo $ECHO_N "checking for library containing db_version... $ECHO_C" >&6; }
15757 if test "${ac_cv_search_db_version+set}" = set; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   ac_func_search_save_LIBS=$LIBS
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767
15768 /* Override any GCC internal prototype to avoid an error.
15769    Use char because int might match the return type of a GCC
15770    builtin and then its argument prototype would still apply.  */
15771 #ifdef __cplusplus
15772 extern "C"
15773 #endif
15774 char db_version ();
15775 int
15776 main ()
15777 {
15778 return db_version ();
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 for ac_lib in '' db db-$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR.$ax_path_bdb_no_options_MINOR db$ax_path_bdb_no_options_MAJOR$ax_path_bdb_no_options_MINOR db-$ax_path_bdb_no_options_MAJOR db$ax_path_bdb_no_options_MAJOR; do
15784   if test -z "$ac_lib"; then
15785     ac_res="none required"
15786   else
15787     ac_res=-l$ac_lib
15788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15789   fi
15790   rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_link") 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } && {
15804          test -z "$ac_c_werror_flag" ||
15805          test ! -s conftest.err
15806        } && test -s conftest$ac_exeext &&
15807        $as_test_x conftest$ac_exeext; then
15808   ac_cv_search_db_version=$ac_res
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813
15814 fi
15815
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817       conftest$ac_exeext
15818   if test "${ac_cv_search_db_version+set}" = set; then
15819   break
15820 fi
15821 done
15822 if test "${ac_cv_search_db_version+set}" = set; then
15823   :
15824 else
15825   ac_cv_search_db_version=no
15826 fi
15827 rm conftest.$ac_ext
15828 LIBS=$ac_func_search_save_LIBS
15829 fi
15830 { echo "$as_me:$LINENO: result: $ac_cv_search_db_version" >&5
15831 echo "${ECHO_T}$ac_cv_search_db_version" >&6; }
15832 ac_res=$ac_cv_search_db_version
15833 if test "$ac_res" != no; then
15834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15835
15836             # Sucessfully found library.
15837             ax_path_bdb_no_options_ok=yes
15838             BDB_VERSION=$ax_path_bdb_no_options_HEADER_VERSION
15839
15840             # Extract library from LIBS
15841             ax_path_bdb_no_options_LEN=` \
15842               echo "x$ax_path_bdb_no_options_save_LIBS" \
15843               | awk '{print(length)}'`
15844             BDB_LIBS=`echo "x$LIBS " \
15845               | sed "s/.\{$ax_path_bdb_no_options_LEN\}\$//;s/^x//;s/ //g"`
15846
15847 fi
15848
15849
15850                 LIBS="$ax_path_bdb_no_options_save_LIBS"
15851
15852
15853       fi
15854
15855     fi
15856
15857       else
15858     # Not cross compiling.
15859     # Check version of Berkeley DB in the current environment.
15860
15861     ax_path_bdb_env_get_version_ok=no
15862
15863   ax_path_bdb_env_get_version_VERSION=''
15864   ax_path_bdb_env_get_version_LIBS=''
15865
15866
15867   # Indicate status of checking for Berkeley DB library.
15868   { echo "$as_me:$LINENO: checking for db.h" >&5
15869 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
15870
15871   # Compile and run a program that determines the Berkeley DB version
15872   # in the header file db.h.
15873   ax_path_bdb_env_get_version_HEADER_VERSION=''
15874   if test "$cross_compiling" = yes; then
15875   { echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6; }
15877 else
15878   cat >conftest.$ac_ext <<_ACEOF
15879
15880     /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885
15886 #include <stdio.h>
15887 #include <db.h>
15888 int main(int argc,char **argv)
15889 {
15890   (void) argv;
15891   if (argc > 1)
15892     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15893   return 0;
15894 }
15895
15896
15897 _ACEOF
15898 rm -f conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902   *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905   (eval "$ac_link") 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15909   { (case "(($ac_try" in
15910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911   *) ac_try_echo=$ac_try;;
15912 esac
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914   (eval "$ac_try") 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }; }; then
15918
15919     # Program compiled and ran, so get version by adding an argument.
15920     ax_path_bdb_env_get_version_HEADER_VERSION=`./conftest$ac_exeext x`
15921     { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15922 echo "${ECHO_T}$ax_path_bdb_env_get_version_HEADER_VERSION" >&6; }
15923
15924 else
15925   echo "$as_me: program exited with status $ac_status" >&5
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15928
15929 ( exit $ac_status )
15930 { echo "$as_me:$LINENO: result: no" >&5
15931 echo "${ECHO_T}no" >&6; }
15932 fi
15933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15934 fi
15935
15936
15937
15938   # Have header version, so try to find corresponding library.
15939   # Looks for library names in the order:
15940   #   nothing, db, db-X.Y, dbX.Y, dbXY, db-X, dbX
15941   # and stops when it finds the first one that matches the version
15942   # of the header file.
15943   if test "x$ax_path_bdb_env_get_version_HEADER_VERSION" != "x" ; then
15944     { echo "$as_me:$LINENO: checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION" >&5
15945 echo $ECHO_N "checking for library containing Berkeley DB $ax_path_bdb_env_get_version_HEADER_VERSION... $ECHO_C" >&6; }
15946
15947
15948     # get major and minor version numbers
15949     ax_path_bdb_env_get_version_MAJOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,\..*,,'`
15950     ax_path_bdb_env_get_version_MINOR=`echo $ax_path_bdb_env_get_version_HEADER_VERSION | sed 's,^[0-9]*\.,,;s,\.[0-9]*$,,'`
15951
15952     # see if it is already specified in LIBS
15953     ax_path_bdb_env_get_version_TEST_LIBNAME=''
15954
15955     ax_path_bdb_env_confirm_lib_ok=no
15956
15957     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
15958   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
15959
15960   # Compile and run a program that compares the version defined in
15961   # the header file with a version defined in the library function
15962   # db_version.
15963   if test "$cross_compiling" = yes; then
15964   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15965 See \`config.log' for more details." >&5
15966 echo "$as_me: error: cannot run test program while cross compiling
15967 See \`config.log' for more details." >&2;}
15968    { (exit 1); exit 1; }; }
15969 else
15970   cat >conftest.$ac_ext <<_ACEOF
15971
15972     /* confdefs.h.  */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h.  */
15977
15978 #include <stdio.h>
15979 #include <db.h>
15980 int main(int argc,char **argv)
15981 {
15982   int major,minor,patch;
15983   (void) argv;
15984   db_version(&major,&minor,&patch);
15985   if (argc > 1)
15986     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
15987   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
15988       DB_VERSION_PATCH == patch)
15989     return 0;
15990   else
15991     return 1;
15992 }
15993
15994
15995 _ACEOF
15996 rm -f conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_link") 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007   { (case "(($ac_try" in
16008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009   *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012   (eval "$ac_try") 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); }; }; then
16016
16017     # Program compiled and ran, so get version by giving an argument,
16018     # which will tell the program to print the output.
16019     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16020
16021     # If the versions all match up, indicate success.
16022
16023   for ac_prog in gawk mawk nawk awk
16024 do
16025   # Extract the first word of "$ac_prog", so it can be a program name with args.
16026 set dummy $ac_prog; ac_word=$2
16027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16029 if test "${ac_cv_prog_AWK+set}" = set; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032   if test -n "$AWK"; then
16033   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16034 else
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036 for as_dir in $PATH
16037 do
16038   IFS=$as_save_IFS
16039   test -z "$as_dir" && as_dir=.
16040   for ac_exec_ext in '' $ac_executable_extensions; do
16041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16042     ac_cv_prog_AWK="$ac_prog"
16043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16044     break 2
16045   fi
16046 done
16047 done
16048 IFS=$as_save_IFS
16049
16050 fi
16051 fi
16052 AWK=$ac_cv_prog_AWK
16053 if test -n "$AWK"; then
16054   { echo "$as_me:$LINENO: result: $AWK" >&5
16055 echo "${ECHO_T}$AWK" >&6; }
16056 else
16057   { echo "$as_me:$LINENO: result: no" >&5
16058 echo "${ECHO_T}no" >&6; }
16059 fi
16060
16061
16062   test -n "$AWK" && break
16063 done
16064
16065
16066   # Used to indicate true or false condition
16067   ax_compare_version=false
16068
16069   # Convert the two version strings to be compared into a format that
16070   # allows a simple string comparison.  The end result is that a version
16071   # string of the form 1.12.5-r617 will be converted to the form
16072   # 0001001200050617.  In other words, each number is zero padded to four
16073   # digits, and non digits are removed.
16074
16075   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16076                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16077                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16078                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16079                      -e 's/[^0-9]//g'`
16080
16081
16082   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16083                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16084                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16085                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16086                      -e 's/[^0-9]//g'`
16087
16088
16089
16090
16091     # Pad zeros at end of numbers to make same length.
16092     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16093     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16094     ax_compare_version_A="$ax_compare_version_tmp_A"
16095
16096     # Check for equality or inequality as necessary.
16097
16098       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16099
16100
16101
16102
16103     if test "$ax_compare_version" = "true" ; then
16104
16105       ax_path_bdb_env_confirm_lib_ok=yes
16106
16107       fi
16108
16109
16110 else
16111   echo "$as_me: program exited with status $ac_status" >&5
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16114
16115 fi
16116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16117 fi
16118
16119
16120
16121     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16122
16123
16124
16125     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16126       # try format "db"
16127       ax_path_bdb_env_get_version_TEST_LIBNAME='-ldb'
16128
16129     ax_path_bdb_env_confirm_lib_ok=no
16130
16131     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16132   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16133
16134   # Compile and run a program that compares the version defined in
16135   # the header file with a version defined in the library function
16136   # db_version.
16137   if test "$cross_compiling" = yes; then
16138   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16139 See \`config.log' for more details." >&5
16140 echo "$as_me: error: cannot run test program while cross compiling
16141 See \`config.log' for more details." >&2;}
16142    { (exit 1); exit 1; }; }
16143 else
16144   cat >conftest.$ac_ext <<_ACEOF
16145
16146     /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151
16152 #include <stdio.h>
16153 #include <db.h>
16154 int main(int argc,char **argv)
16155 {
16156   int major,minor,patch;
16157   (void) argv;
16158   db_version(&major,&minor,&patch);
16159   if (argc > 1)
16160     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16161   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16162       DB_VERSION_PATCH == patch)
16163     return 0;
16164   else
16165     return 1;
16166 }
16167
16168
16169 _ACEOF
16170 rm -f conftest$ac_exeext
16171 if { (ac_try="$ac_link"
16172 case "(($ac_try" in
16173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174   *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177   (eval "$ac_link") 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181   { (case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_try") 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }; then
16190
16191     # Program compiled and ran, so get version by giving an argument,
16192     # which will tell the program to print the output.
16193     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16194
16195     # If the versions all match up, indicate success.
16196
16197   for ac_prog in gawk mawk nawk awk
16198 do
16199   # Extract the first word of "$ac_prog", so it can be a program name with args.
16200 set dummy $ac_prog; ac_word=$2
16201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16203 if test "${ac_cv_prog_AWK+set}" = set; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   if test -n "$AWK"; then
16207   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16208 else
16209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16210 for as_dir in $PATH
16211 do
16212   IFS=$as_save_IFS
16213   test -z "$as_dir" && as_dir=.
16214   for ac_exec_ext in '' $ac_executable_extensions; do
16215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16216     ac_cv_prog_AWK="$ac_prog"
16217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16218     break 2
16219   fi
16220 done
16221 done
16222 IFS=$as_save_IFS
16223
16224 fi
16225 fi
16226 AWK=$ac_cv_prog_AWK
16227 if test -n "$AWK"; then
16228   { echo "$as_me:$LINENO: result: $AWK" >&5
16229 echo "${ECHO_T}$AWK" >&6; }
16230 else
16231   { echo "$as_me:$LINENO: result: no" >&5
16232 echo "${ECHO_T}no" >&6; }
16233 fi
16234
16235
16236   test -n "$AWK" && break
16237 done
16238
16239
16240   # Used to indicate true or false condition
16241   ax_compare_version=false
16242
16243   # Convert the two version strings to be compared into a format that
16244   # allows a simple string comparison.  The end result is that a version
16245   # string of the form 1.12.5-r617 will be converted to the form
16246   # 0001001200050617.  In other words, each number is zero padded to four
16247   # digits, and non digits are removed.
16248
16249   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16250                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16251                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16252                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16253                      -e 's/[^0-9]//g'`
16254
16255
16256   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16257                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16258                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16259                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16260                      -e 's/[^0-9]//g'`
16261
16262
16263
16264
16265     # Pad zeros at end of numbers to make same length.
16266     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16267     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16268     ax_compare_version_A="$ax_compare_version_tmp_A"
16269
16270     # Check for equality or inequality as necessary.
16271
16272       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16273
16274
16275
16276
16277     if test "$ax_compare_version" = "true" ; then
16278
16279       ax_path_bdb_env_confirm_lib_ok=yes
16280
16281       fi
16282
16283
16284 else
16285   echo "$as_me: program exited with status $ac_status" >&5
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 fi
16290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16291 fi
16292
16293
16294
16295     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16296
16297
16298     fi
16299
16300     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16301       # try format "db-X.Y"
16302       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16303
16304     ax_path_bdb_env_confirm_lib_ok=no
16305
16306     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16307   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16308
16309   # Compile and run a program that compares the version defined in
16310   # the header file with a version defined in the library function
16311   # db_version.
16312   if test "$cross_compiling" = yes; then
16313   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16314 See \`config.log' for more details." >&5
16315 echo "$as_me: error: cannot run test program while cross compiling
16316 See \`config.log' for more details." >&2;}
16317    { (exit 1); exit 1; }; }
16318 else
16319   cat >conftest.$ac_ext <<_ACEOF
16320
16321     /* confdefs.h.  */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h.  */
16326
16327 #include <stdio.h>
16328 #include <db.h>
16329 int main(int argc,char **argv)
16330 {
16331   int major,minor,patch;
16332   (void) argv;
16333   db_version(&major,&minor,&patch);
16334   if (argc > 1)
16335     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16336   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16337       DB_VERSION_PATCH == patch)
16338     return 0;
16339   else
16340     return 1;
16341 }
16342
16343
16344 _ACEOF
16345 rm -f conftest$ac_exeext
16346 if { (ac_try="$ac_link"
16347 case "(($ac_try" in
16348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349   *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352   (eval "$ac_link") 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16356   { (case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361   (eval "$ac_try") 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; }; then
16365
16366     # Program compiled and ran, so get version by giving an argument,
16367     # which will tell the program to print the output.
16368     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16369
16370     # If the versions all match up, indicate success.
16371
16372   for ac_prog in gawk mawk nawk awk
16373 do
16374   # Extract the first word of "$ac_prog", so it can be a program name with args.
16375 set dummy $ac_prog; ac_word=$2
16376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16378 if test "${ac_cv_prog_AWK+set}" = set; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381   if test -n "$AWK"; then
16382   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16383 else
16384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16385 for as_dir in $PATH
16386 do
16387   IFS=$as_save_IFS
16388   test -z "$as_dir" && as_dir=.
16389   for ac_exec_ext in '' $ac_executable_extensions; do
16390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16391     ac_cv_prog_AWK="$ac_prog"
16392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16393     break 2
16394   fi
16395 done
16396 done
16397 IFS=$as_save_IFS
16398
16399 fi
16400 fi
16401 AWK=$ac_cv_prog_AWK
16402 if test -n "$AWK"; then
16403   { echo "$as_me:$LINENO: result: $AWK" >&5
16404 echo "${ECHO_T}$AWK" >&6; }
16405 else
16406   { echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6; }
16408 fi
16409
16410
16411   test -n "$AWK" && break
16412 done
16413
16414
16415   # Used to indicate true or false condition
16416   ax_compare_version=false
16417
16418   # Convert the two version strings to be compared into a format that
16419   # allows a simple string comparison.  The end result is that a version
16420   # string of the form 1.12.5-r617 will be converted to the form
16421   # 0001001200050617.  In other words, each number is zero padded to four
16422   # digits, and non digits are removed.
16423
16424   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16425                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16426                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16427                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16428                      -e 's/[^0-9]//g'`
16429
16430
16431   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16432                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16433                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16434                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16435                      -e 's/[^0-9]//g'`
16436
16437
16438
16439
16440     # Pad zeros at end of numbers to make same length.
16441     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16442     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16443     ax_compare_version_A="$ax_compare_version_tmp_A"
16444
16445     # Check for equality or inequality as necessary.
16446
16447       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16448
16449
16450
16451
16452     if test "$ax_compare_version" = "true" ; then
16453
16454       ax_path_bdb_env_confirm_lib_ok=yes
16455
16456       fi
16457
16458
16459 else
16460   echo "$as_me: program exited with status $ac_status" >&5
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464 fi
16465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16466 fi
16467
16468
16469
16470     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16471
16472
16473     fi
16474
16475     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16476       # try format "dbX.Y"
16477       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb${ax_path_bdb_env_get_version_MAJOR}.$ax_path_bdb_env_get_version_MINOR"
16478
16479     ax_path_bdb_env_confirm_lib_ok=no
16480
16481     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16482   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16483
16484   # Compile and run a program that compares the version defined in
16485   # the header file with a version defined in the library function
16486   # db_version.
16487   if test "$cross_compiling" = yes; then
16488   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16489 See \`config.log' for more details." >&5
16490 echo "$as_me: error: cannot run test program while cross compiling
16491 See \`config.log' for more details." >&2;}
16492    { (exit 1); exit 1; }; }
16493 else
16494   cat >conftest.$ac_ext <<_ACEOF
16495
16496     /* confdefs.h.  */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h.  */
16501
16502 #include <stdio.h>
16503 #include <db.h>
16504 int main(int argc,char **argv)
16505 {
16506   int major,minor,patch;
16507   (void) argv;
16508   db_version(&major,&minor,&patch);
16509   if (argc > 1)
16510     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16511   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16512       DB_VERSION_PATCH == patch)
16513     return 0;
16514   else
16515     return 1;
16516 }
16517
16518
16519 _ACEOF
16520 rm -f conftest$ac_exeext
16521 if { (ac_try="$ac_link"
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_link") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16531   { (case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_try") 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; }; then
16540
16541     # Program compiled and ran, so get version by giving an argument,
16542     # which will tell the program to print the output.
16543     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16544
16545     # If the versions all match up, indicate success.
16546
16547   for ac_prog in gawk mawk nawk awk
16548 do
16549   # Extract the first word of "$ac_prog", so it can be a program name with args.
16550 set dummy $ac_prog; ac_word=$2
16551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16553 if test "${ac_cv_prog_AWK+set}" = set; then
16554   echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556   if test -n "$AWK"; then
16557   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16558 else
16559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16560 for as_dir in $PATH
16561 do
16562   IFS=$as_save_IFS
16563   test -z "$as_dir" && as_dir=.
16564   for ac_exec_ext in '' $ac_executable_extensions; do
16565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16566     ac_cv_prog_AWK="$ac_prog"
16567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16568     break 2
16569   fi
16570 done
16571 done
16572 IFS=$as_save_IFS
16573
16574 fi
16575 fi
16576 AWK=$ac_cv_prog_AWK
16577 if test -n "$AWK"; then
16578   { echo "$as_me:$LINENO: result: $AWK" >&5
16579 echo "${ECHO_T}$AWK" >&6; }
16580 else
16581   { echo "$as_me:$LINENO: result: no" >&5
16582 echo "${ECHO_T}no" >&6; }
16583 fi
16584
16585
16586   test -n "$AWK" && break
16587 done
16588
16589
16590   # Used to indicate true or false condition
16591   ax_compare_version=false
16592
16593   # Convert the two version strings to be compared into a format that
16594   # allows a simple string comparison.  The end result is that a version
16595   # string of the form 1.12.5-r617 will be converted to the form
16596   # 0001001200050617.  In other words, each number is zero padded to four
16597   # digits, and non digits are removed.
16598
16599   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16600                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16601                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16602                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16603                      -e 's/[^0-9]//g'`
16604
16605
16606   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16607                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16608                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16609                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16610                      -e 's/[^0-9]//g'`
16611
16612
16613
16614
16615     # Pad zeros at end of numbers to make same length.
16616     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16617     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16618     ax_compare_version_A="$ax_compare_version_tmp_A"
16619
16620     # Check for equality or inequality as necessary.
16621
16622       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16623
16624
16625
16626
16627     if test "$ax_compare_version" = "true" ; then
16628
16629       ax_path_bdb_env_confirm_lib_ok=yes
16630
16631       fi
16632
16633
16634 else
16635   echo "$as_me: program exited with status $ac_status" >&5
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 fi
16640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16641 fi
16642
16643
16644
16645     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16646
16647
16648     fi
16649
16650     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16651       # try format "dbXY"
16652       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR$ax_path_bdb_env_get_version_MINOR"
16653
16654     ax_path_bdb_env_confirm_lib_ok=no
16655
16656     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16657   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16658
16659   # Compile and run a program that compares the version defined in
16660   # the header file with a version defined in the library function
16661   # db_version.
16662   if test "$cross_compiling" = yes; then
16663   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16664 See \`config.log' for more details." >&5
16665 echo "$as_me: error: cannot run test program while cross compiling
16666 See \`config.log' for more details." >&2;}
16667    { (exit 1); exit 1; }; }
16668 else
16669   cat >conftest.$ac_ext <<_ACEOF
16670
16671     /* confdefs.h.  */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h.  */
16676
16677 #include <stdio.h>
16678 #include <db.h>
16679 int main(int argc,char **argv)
16680 {
16681   int major,minor,patch;
16682   (void) argv;
16683   db_version(&major,&minor,&patch);
16684   if (argc > 1)
16685     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16686   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16687       DB_VERSION_PATCH == patch)
16688     return 0;
16689   else
16690     return 1;
16691 }
16692
16693
16694 _ACEOF
16695 rm -f conftest$ac_exeext
16696 if { (ac_try="$ac_link"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_link") 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16706   { (case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_try") 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; }; then
16715
16716     # Program compiled and ran, so get version by giving an argument,
16717     # which will tell the program to print the output.
16718     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16719
16720     # If the versions all match up, indicate success.
16721
16722   for ac_prog in gawk mawk nawk awk
16723 do
16724   # Extract the first word of "$ac_prog", so it can be a program name with args.
16725 set dummy $ac_prog; ac_word=$2
16726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16728 if test "${ac_cv_prog_AWK+set}" = set; then
16729   echo $ECHO_N "(cached) $ECHO_C" >&6
16730 else
16731   if test -n "$AWK"; then
16732   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16733 else
16734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16735 for as_dir in $PATH
16736 do
16737   IFS=$as_save_IFS
16738   test -z "$as_dir" && as_dir=.
16739   for ac_exec_ext in '' $ac_executable_extensions; do
16740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16741     ac_cv_prog_AWK="$ac_prog"
16742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16743     break 2
16744   fi
16745 done
16746 done
16747 IFS=$as_save_IFS
16748
16749 fi
16750 fi
16751 AWK=$ac_cv_prog_AWK
16752 if test -n "$AWK"; then
16753   { echo "$as_me:$LINENO: result: $AWK" >&5
16754 echo "${ECHO_T}$AWK" >&6; }
16755 else
16756   { echo "$as_me:$LINENO: result: no" >&5
16757 echo "${ECHO_T}no" >&6; }
16758 fi
16759
16760
16761   test -n "$AWK" && break
16762 done
16763
16764
16765   # Used to indicate true or false condition
16766   ax_compare_version=false
16767
16768   # Convert the two version strings to be compared into a format that
16769   # allows a simple string comparison.  The end result is that a version
16770   # string of the form 1.12.5-r617 will be converted to the form
16771   # 0001001200050617.  In other words, each number is zero padded to four
16772   # digits, and non digits are removed.
16773
16774   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16775                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16776                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16777                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16778                      -e 's/[^0-9]//g'`
16779
16780
16781   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16782                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16783                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16784                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16785                      -e 's/[^0-9]//g'`
16786
16787
16788
16789
16790     # Pad zeros at end of numbers to make same length.
16791     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16792     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16793     ax_compare_version_A="$ax_compare_version_tmp_A"
16794
16795     # Check for equality or inequality as necessary.
16796
16797       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16798
16799
16800
16801
16802     if test "$ax_compare_version" = "true" ; then
16803
16804       ax_path_bdb_env_confirm_lib_ok=yes
16805
16806       fi
16807
16808
16809 else
16810   echo "$as_me: program exited with status $ac_status" >&5
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16813
16814 fi
16815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16816 fi
16817
16818
16819
16820     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16821
16822
16823     fi
16824
16825     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
16826       # try format "db-X"
16827       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb-$ax_path_bdb_env_get_version_MAJOR"
16828
16829     ax_path_bdb_env_confirm_lib_ok=no
16830
16831     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
16832   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
16833
16834   # Compile and run a program that compares the version defined in
16835   # the header file with a version defined in the library function
16836   # db_version.
16837   if test "$cross_compiling" = yes; then
16838   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16839 See \`config.log' for more details." >&5
16840 echo "$as_me: error: cannot run test program while cross compiling
16841 See \`config.log' for more details." >&2;}
16842    { (exit 1); exit 1; }; }
16843 else
16844   cat >conftest.$ac_ext <<_ACEOF
16845
16846     /* confdefs.h.  */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h.  */
16851
16852 #include <stdio.h>
16853 #include <db.h>
16854 int main(int argc,char **argv)
16855 {
16856   int major,minor,patch;
16857   (void) argv;
16858   db_version(&major,&minor,&patch);
16859   if (argc > 1)
16860     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
16861   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
16862       DB_VERSION_PATCH == patch)
16863     return 0;
16864   else
16865     return 1;
16866 }
16867
16868
16869 _ACEOF
16870 rm -f conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874   *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877   (eval "$ac_link") 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16881   { (case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_try") 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890
16891     # Program compiled and ran, so get version by giving an argument,
16892     # which will tell the program to print the output.
16893     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
16894
16895     # If the versions all match up, indicate success.
16896
16897   for ac_prog in gawk mawk nawk awk
16898 do
16899   # Extract the first word of "$ac_prog", so it can be a program name with args.
16900 set dummy $ac_prog; ac_word=$2
16901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16903 if test "${ac_cv_prog_AWK+set}" = set; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906   if test -n "$AWK"; then
16907   ac_cv_prog_AWK="$AWK" # Let the user override the test.
16908 else
16909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16910 for as_dir in $PATH
16911 do
16912   IFS=$as_save_IFS
16913   test -z "$as_dir" && as_dir=.
16914   for ac_exec_ext in '' $ac_executable_extensions; do
16915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16916     ac_cv_prog_AWK="$ac_prog"
16917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16918     break 2
16919   fi
16920 done
16921 done
16922 IFS=$as_save_IFS
16923
16924 fi
16925 fi
16926 AWK=$ac_cv_prog_AWK
16927 if test -n "$AWK"; then
16928   { echo "$as_me:$LINENO: result: $AWK" >&5
16929 echo "${ECHO_T}$AWK" >&6; }
16930 else
16931   { echo "$as_me:$LINENO: result: no" >&5
16932 echo "${ECHO_T}no" >&6; }
16933 fi
16934
16935
16936   test -n "$AWK" && break
16937 done
16938
16939
16940   # Used to indicate true or false condition
16941   ax_compare_version=false
16942
16943   # Convert the two version strings to be compared into a format that
16944   # allows a simple string comparison.  The end result is that a version
16945   # string of the form 1.12.5-r617 will be converted to the form
16946   # 0001001200050617.  In other words, each number is zero padded to four
16947   # digits, and non digits are removed.
16948
16949   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16950                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16951                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16952                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16953                      -e 's/[^0-9]//g'`
16954
16955
16956   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16957                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16958                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16959                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16960                      -e 's/[^0-9]//g'`
16961
16962
16963
16964
16965     # Pad zeros at end of numbers to make same length.
16966     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
16967     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
16968     ax_compare_version_A="$ax_compare_version_tmp_A"
16969
16970     # Check for equality or inequality as necessary.
16971
16972       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
16973
16974
16975
16976
16977     if test "$ax_compare_version" = "true" ; then
16978
16979       ax_path_bdb_env_confirm_lib_ok=yes
16980
16981       fi
16982
16983
16984 else
16985   echo "$as_me: program exited with status $ac_status" >&5
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 fi
16990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16991 fi
16992
16993
16994
16995     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
16996
16997
16998     fi
16999
17000     if test "$ax_path_bdb_env_confirm_lib_ok" = "no" ; then
17001       # try format "dbX"
17002       ax_path_bdb_env_get_version_TEST_LIBNAME="-ldb$ax_path_bdb_env_get_version_MAJOR"
17003
17004     ax_path_bdb_env_confirm_lib_ok=no
17005
17006     ax_path_bdb_env_confirm_lib_save_LIBS="$LIBS"
17007   LIBS="$LIBS $ax_path_bdb_env_get_version_TEST_LIBNAME"
17008
17009   # Compile and run a program that compares the version defined in
17010   # the header file with a version defined in the library function
17011   # db_version.
17012   if test "$cross_compiling" = yes; then
17013   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17014 See \`config.log' for more details." >&5
17015 echo "$as_me: error: cannot run test program while cross compiling
17016 See \`config.log' for more details." >&2;}
17017    { (exit 1); exit 1; }; }
17018 else
17019   cat >conftest.$ac_ext <<_ACEOF
17020
17021     /* confdefs.h.  */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h.  */
17026
17027 #include <stdio.h>
17028 #include <db.h>
17029 int main(int argc,char **argv)
17030 {
17031   int major,minor,patch;
17032   (void) argv;
17033   db_version(&major,&minor,&patch);
17034   if (argc > 1)
17035     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17036   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17037       DB_VERSION_PATCH == patch)
17038     return 0;
17039   else
17040     return 1;
17041 }
17042
17043
17044 _ACEOF
17045 rm -f conftest$ac_exeext
17046 if { (ac_try="$ac_link"
17047 case "(($ac_try" in
17048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049   *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052   (eval "$ac_link") 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17056   { (case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_try") 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065
17066     # Program compiled and ran, so get version by giving an argument,
17067     # which will tell the program to print the output.
17068     ax_path_bdb_env_confirm_lib_VERSION=`./conftest$ac_exeext x`
17069
17070     # If the versions all match up, indicate success.
17071
17072   for ac_prog in gawk mawk nawk awk
17073 do
17074   # Extract the first word of "$ac_prog", so it can be a program name with args.
17075 set dummy $ac_prog; ac_word=$2
17076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17078 if test "${ac_cv_prog_AWK+set}" = set; then
17079   echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081   if test -n "$AWK"; then
17082   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17083 else
17084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17085 for as_dir in $PATH
17086 do
17087   IFS=$as_save_IFS
17088   test -z "$as_dir" && as_dir=.
17089   for ac_exec_ext in '' $ac_executable_extensions; do
17090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17091     ac_cv_prog_AWK="$ac_prog"
17092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17093     break 2
17094   fi
17095 done
17096 done
17097 IFS=$as_save_IFS
17098
17099 fi
17100 fi
17101 AWK=$ac_cv_prog_AWK
17102 if test -n "$AWK"; then
17103   { echo "$as_me:$LINENO: result: $AWK" >&5
17104 echo "${ECHO_T}$AWK" >&6; }
17105 else
17106   { echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6; }
17108 fi
17109
17110
17111   test -n "$AWK" && break
17112 done
17113
17114
17115   # Used to indicate true or false condition
17116   ax_compare_version=false
17117
17118   # Convert the two version strings to be compared into a format that
17119   # allows a simple string comparison.  The end result is that a version
17120   # string of the form 1.12.5-r617 will be converted to the form
17121   # 0001001200050617.  In other words, each number is zero padded to four
17122   # digits, and non digits are removed.
17123
17124   ax_compare_version_A=`echo "$ax_path_bdb_env_confirm_lib_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17125                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17126                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17127                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17128                      -e 's/[^0-9]//g'`
17129
17130
17131   ax_compare_version_B=`echo "$ax_path_bdb_env_get_version_HEADER_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17132                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17133                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17134                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17135                      -e 's/[^0-9]//g'`
17136
17137
17138
17139
17140     # Pad zeros at end of numbers to make same length.
17141     ax_compare_version_tmp_A="$ax_compare_version_A`echo $ax_compare_version_B | sed 's/./0/g'`"
17142     ax_compare_version_B="$ax_compare_version_B`echo $ax_compare_version_A | sed 's/./0/g'`"
17143     ax_compare_version_A="$ax_compare_version_tmp_A"
17144
17145     # Check for equality or inequality as necessary.
17146
17147       test "x$ax_compare_version_A" = "x$ax_compare_version_B" && ax_compare_version=true
17148
17149
17150
17151
17152     if test "$ax_compare_version" = "true" ; then
17153
17154       ax_path_bdb_env_confirm_lib_ok=yes
17155
17156       fi
17157
17158
17159 else
17160   echo "$as_me: program exited with status $ac_status" >&5
17161 echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 fi
17165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17166 fi
17167
17168
17169
17170     LIBS="$ax_path_bdb_env_confirm_lib_save_LIBS"
17171
17172
17173     fi
17174
17175         if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17176       if test "x$ax_path_bdb_env_get_version_TEST_LIBNAME" = "x" ; then
17177         { echo "$as_me:$LINENO: result: none required" >&5
17178 echo "${ECHO_T}none required" >&6; }
17179       else
17180         { echo "$as_me:$LINENO: result: $ax_path_bdb_env_get_version_TEST_LIBNAME" >&5
17181 echo "${ECHO_T}$ax_path_bdb_env_get_version_TEST_LIBNAME" >&6; }
17182       fi
17183       ax_path_bdb_env_get_version_VERSION="$ax_path_bdb_env_get_version_HEADER_VERSION"
17184       ax_path_bdb_env_get_version_LIBS="$ax_path_bdb_env_get_version_TEST_LIBNAME"
17185       ax_path_bdb_env_get_version_ok=yes
17186     else
17187       { echo "$as_me:$LINENO: result: no" >&5
17188 echo "${ECHO_T}no" >&6; }
17189     fi
17190
17191           fi
17192
17193
17194     if test "$ax_path_bdb_env_confirm_lib_ok" = "yes" ; then
17195
17196
17197   for ac_prog in gawk mawk nawk awk
17198 do
17199   # Extract the first word of "$ac_prog", so it can be a program name with args.
17200 set dummy $ac_prog; ac_word=$2
17201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17203 if test "${ac_cv_prog_AWK+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206   if test -n "$AWK"; then
17207   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17208 else
17209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210 for as_dir in $PATH
17211 do
17212   IFS=$as_save_IFS
17213   test -z "$as_dir" && as_dir=.
17214   for ac_exec_ext in '' $ac_executable_extensions; do
17215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17216     ac_cv_prog_AWK="$ac_prog"
17217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17218     break 2
17219   fi
17220 done
17221 done
17222 IFS=$as_save_IFS
17223
17224 fi
17225 fi
17226 AWK=$ac_cv_prog_AWK
17227 if test -n "$AWK"; then
17228   { echo "$as_me:$LINENO: result: $AWK" >&5
17229 echo "${ECHO_T}$AWK" >&6; }
17230 else
17231   { echo "$as_me:$LINENO: result: no" >&5
17232 echo "${ECHO_T}no" >&6; }
17233 fi
17234
17235
17236   test -n "$AWK" && break
17237 done
17238
17239
17240   # Used to indicate true or false condition
17241   ax_compare_version=false
17242
17243   # Convert the two version strings to be compared into a format that
17244   # allows a simple string comparison.  The end result is that a version
17245   # string of the form 1.12.5-r617 will be converted to the form
17246   # 0001001200050617.  In other words, each number is zero padded to four
17247   # digits, and non digits are removed.
17248
17249   ax_compare_version_A=`echo "$ax_path_bdb_env_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17250                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17251                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17252                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17253                      -e 's/[^0-9]//g'`
17254
17255
17256   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17257                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17258                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17259                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17260                      -e 's/[^0-9]//g'`
17261
17262
17263     ax_compare_version=`echo "x$ax_compare_version_A
17264 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
17265
17266
17267
17268     if test "$ax_compare_version" = "true" ; then
17269
17270         # Found acceptable version in current environment.
17271         ax_path_bdb_no_options_ok=yes
17272         BDB_VERSION="$ax_path_bdb_env_get_version_VERSION"
17273         BDB_LIBS="$ax_path_bdb_env_get_version_LIBS"
17274
17275       fi
17276
17277
17278       fi
17279
17280
17281
17282     # Determine if we need to search /usr/local/BerkeleyDB*
17283     ax_path_bdb_no_options_DONE=no
17284     if test "xENVONLY" = "xENVONLY" ; then
17285       ax_path_bdb_no_options_DONE=yes
17286     elif test "xENVONLY" = "xENVFIRST" ; then
17287       ax_path_bdb_no_options_DONE=$ax_path_bdb_no_options_ok
17288     fi
17289
17290     if test "$ax_path_bdb_no_options_DONE" = "no" ; then
17291       # Check for highest in /usr/local/BerkeleyDB*
17292
17293     ax_path_bdb_path_find_highest_ok=no
17294
17295     ax_path_bdb_path_find_highest_VERSION=''
17296
17297   ax_path_bdb_path_find_highest_DIR=''
17298
17299   # find highest verison in default install directory for Berkeley DB
17300
17301   for ax_path_bdb_path_find_highest_CURDIR in `ls -d /usr/local/BerkeleyDB* 2> /dev/null`
17302   do
17303
17304     ax_path_bdb_path_get_version_ok=no
17305
17306   # Indicate status of checking for Berkeley DB header.
17307   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h" >&5
17308 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/include for db.h... $ECHO_C" >&6; }
17309   ax_path_bdb_path_get_version_got_header=no
17310   test -f "$ax_path_bdb_path_find_highest_CURDIR/include/db.h" && ax_path_bdb_path_get_version_got_header=yes
17311   { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_got_header" >&5
17312 echo "${ECHO_T}$ax_path_bdb_path_get_version_got_header" >&6; }
17313
17314   # Indicate status of checking for Berkeley DB library.
17315   { echo "$as_me:$LINENO: checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb" >&5
17316 echo $ECHO_N "checking in $ax_path_bdb_path_find_highest_CURDIR/lib for library -ldb... $ECHO_C" >&6; }
17317
17318   ax_path_bdb_path_get_version_VERSION=''
17319
17320   if test -d "$ax_path_bdb_path_find_highest_CURDIR/include" && test -d "$ax_path_bdb_path_find_highest_CURDIR/lib" &&
17321      test "$ax_path_bdb_path_get_version_got_header" = "yes" ; then
17322         ax_path_bdb_path_get_version_save_CPPFLAGS="$CPPFLAGS"
17323     CPPFLAGS="-I$ax_path_bdb_path_find_highest_CURDIR/include $CPPFLAGS"
17324
17325     ax_path_bdb_path_get_version_save_LIBS="$LIBS"
17326     LIBS="$LIBS -ldb"
17327
17328     ax_path_bdb_path_get_version_save_LDFLAGS="$LDFLAGS"
17329     LDFLAGS="-L$ax_path_bdb_path_find_highest_CURDIR/lib $LDFLAGS"
17330
17331     # Compile and run a program that compares the version defined in
17332     # the header file with a version defined in the library function
17333     # db_version.
17334     if test "$cross_compiling" = yes; then
17335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17336 See \`config.log' for more details." >&5
17337 echo "$as_me: error: cannot run test program while cross compiling
17338 See \`config.log' for more details." >&2;}
17339    { (exit 1); exit 1; }; }
17340 else
17341   cat >conftest.$ac_ext <<_ACEOF
17342
17343       /* confdefs.h.  */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h.  */
17348
17349 #include <stdio.h>
17350 #include <db.h>
17351 int main(int argc,char **argv)
17352 {
17353   int major,minor,patch;
17354   (void) argv;
17355   db_version(&major,&minor,&patch);
17356   if (argc > 1)
17357     printf("%d.%d.%d\n",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
17358   if (DB_VERSION_MAJOR == major && DB_VERSION_MINOR == minor &&
17359       DB_VERSION_PATCH == patch)
17360     return 0;
17361   else
17362     return 1;
17363 }
17364
17365
17366 _ACEOF
17367 rm -f conftest$ac_exeext
17368 if { (ac_try="$ac_link"
17369 case "(($ac_try" in
17370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371   *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374   (eval "$ac_link") 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17378   { (case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383   (eval "$ac_try") 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387
17388       # Program compiled and ran, so get version by adding argument.
17389       ax_path_bdb_path_get_version_VERSION=`./conftest$ac_exeext x`
17390       ax_path_bdb_path_get_version_ok=yes
17391
17392 else
17393   echo "$as_me: program exited with status $ac_status" >&5
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397 fi
17398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17399 fi
17400
17401
17402
17403         CPPFLAGS="$ax_path_bdb_path_get_version_save_CPPFLAGS"
17404     LIBS="$ax_path_bdb_path_get_version_save_LIBS"
17405     LDFLAGS="$ax_path_bdb_path_get_version_save_LDFLAGS"
17406   fi
17407
17408     if test "$ax_path_bdb_path_get_version_ok" = "yes" ; then
17409     { echo "$as_me:$LINENO: result: $ax_path_bdb_path_get_version_VERSION" >&5
17410 echo "${ECHO_T}$ax_path_bdb_path_get_version_VERSION" >&6; }
17411
17412
17413   for ac_prog in gawk mawk nawk awk
17414 do
17415   # Extract the first word of "$ac_prog", so it can be a program name with args.
17416 set dummy $ac_prog; ac_word=$2
17417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17419 if test "${ac_cv_prog_AWK+set}" = set; then
17420   echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422   if test -n "$AWK"; then
17423   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17424 else
17425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17426 for as_dir in $PATH
17427 do
17428   IFS=$as_save_IFS
17429   test -z "$as_dir" && as_dir=.
17430   for ac_exec_ext in '' $ac_executable_extensions; do
17431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17432     ac_cv_prog_AWK="$ac_prog"
17433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17434     break 2
17435   fi
17436 done
17437 done
17438 IFS=$as_save_IFS
17439
17440 fi
17441 fi
17442 AWK=$ac_cv_prog_AWK
17443 if test -n "$AWK"; then
17444   { echo "$as_me:$LINENO: result: $AWK" >&5
17445 echo "${ECHO_T}$AWK" >&6; }
17446 else
17447   { echo "$as_me:$LINENO: result: no" >&5
17448 echo "${ECHO_T}no" >&6; }
17449 fi
17450
17451
17452   test -n "$AWK" && break
17453 done
17454
17455
17456   # Used to indicate true or false condition
17457   ax_compare_version=false
17458
17459   # Convert the two version strings to be compared into a format that
17460   # allows a simple string comparison.  The end result is that a version
17461   # string of the form 1.12.5-r617 will be converted to the form
17462   # 0001001200050617.  In other words, each number is zero padded to four
17463   # digits, and non digits are removed.
17464
17465   ax_compare_version_A=`echo "$ax_path_bdb_path_get_version_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17466                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17467                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17468                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17469                      -e 's/[^0-9]//g'`
17470
17471
17472   ax_compare_version_B=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17473                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17474                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17475                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17476                      -e 's/[^0-9]//g'`
17477
17478
17479     ax_compare_version=`echo "x$ax_compare_version_A
17480 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17481
17482
17483
17484     if test "$ax_compare_version" = "true" ; then
17485
17486         ax_path_bdb_path_find_highest_ok=yes
17487         ax_path_bdb_path_find_highest_DIR="$ax_path_bdb_path_find_highest_CURDIR"
17488         ax_path_bdb_path_find_highest_VERSION="$ax_path_bdb_path_get_version_VERSION"
17489
17490       fi
17491
17492
17493   else
17494     { echo "$as_me:$LINENO: result: no" >&5
17495 echo "${ECHO_T}no" >&6; }
17496       fi
17497
17498   done
17499
17500
17501     if test "$ax_path_bdb_path_find_highest_ok" = "yes" ; then
17502
17503         if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17504         # If we already have an acceptable version use this if higher.
17505
17506   for ac_prog in gawk mawk nawk awk
17507 do
17508   # Extract the first word of "$ac_prog", so it can be a program name with args.
17509 set dummy $ac_prog; ac_word=$2
17510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17512 if test "${ac_cv_prog_AWK+set}" = set; then
17513   echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515   if test -n "$AWK"; then
17516   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17517 else
17518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17519 for as_dir in $PATH
17520 do
17521   IFS=$as_save_IFS
17522   test -z "$as_dir" && as_dir=.
17523   for ac_exec_ext in '' $ac_executable_extensions; do
17524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17525     ac_cv_prog_AWK="$ac_prog"
17526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17527     break 2
17528   fi
17529 done
17530 done
17531 IFS=$as_save_IFS
17532
17533 fi
17534 fi
17535 AWK=$ac_cv_prog_AWK
17536 if test -n "$AWK"; then
17537   { echo "$as_me:$LINENO: result: $AWK" >&5
17538 echo "${ECHO_T}$AWK" >&6; }
17539 else
17540   { echo "$as_me:$LINENO: result: no" >&5
17541 echo "${ECHO_T}no" >&6; }
17542 fi
17543
17544
17545   test -n "$AWK" && break
17546 done
17547
17548
17549   # Used to indicate true or false condition
17550   ax_compare_version=false
17551
17552   # Convert the two version strings to be compared into a format that
17553   # allows a simple string comparison.  The end result is that a version
17554   # string of the form 1.12.5-r617 will be converted to the form
17555   # 0001001200050617.  In other words, each number is zero padded to four
17556   # digits, and non digits are removed.
17557
17558   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17559                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17560                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17561                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17562                      -e 's/[^0-9]//g'`
17563
17564
17565   ax_compare_version_B=`echo "$BDB_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17566                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17567                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17568                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17569                      -e 's/[^0-9]//g'`
17570
17571
17572     ax_compare_version=`echo "x$ax_compare_version_A
17573 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
17574
17575
17576
17577     if test "$ax_compare_version" = "true" ; then
17578     :
17579       fi
17580
17581         else
17582           # Since we didn't have an acceptable version check if this one is.
17583
17584   for ac_prog in gawk mawk nawk awk
17585 do
17586   # Extract the first word of "$ac_prog", so it can be a program name with args.
17587 set dummy $ac_prog; ac_word=$2
17588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17590 if test "${ac_cv_prog_AWK+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   if test -n "$AWK"; then
17594   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17595 else
17596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597 for as_dir in $PATH
17598 do
17599   IFS=$as_save_IFS
17600   test -z "$as_dir" && as_dir=.
17601   for ac_exec_ext in '' $ac_executable_extensions; do
17602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17603     ac_cv_prog_AWK="$ac_prog"
17604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17605     break 2
17606   fi
17607 done
17608 done
17609 IFS=$as_save_IFS
17610
17611 fi
17612 fi
17613 AWK=$ac_cv_prog_AWK
17614 if test -n "$AWK"; then
17615   { echo "$as_me:$LINENO: result: $AWK" >&5
17616 echo "${ECHO_T}$AWK" >&6; }
17617 else
17618   { echo "$as_me:$LINENO: result: no" >&5
17619 echo "${ECHO_T}no" >&6; }
17620 fi
17621
17622
17623   test -n "$AWK" && break
17624 done
17625
17626
17627   # Used to indicate true or false condition
17628   ax_compare_version=false
17629
17630   # Convert the two version strings to be compared into a format that
17631   # allows a simple string comparison.  The end result is that a version
17632   # string of the form 1.12.5-r617 will be converted to the form
17633   # 0001001200050617.  In other words, each number is zero padded to four
17634   # digits, and non digits are removed.
17635
17636   ax_compare_version_A=`echo "$ax_path_bdb_path_find_highest_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17637                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17638                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17639                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17640                      -e 's/[^0-9]//g'`
17641
17642
17643   ax_compare_version_B=`echo "3" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
17644                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
17645                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
17646                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
17647                      -e 's/[^0-9]//g'`
17648
17649
17650     ax_compare_version=`echo "x$ax_compare_version_A
17651 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
17652
17653
17654
17655     if test "$ax_compare_version" = "true" ; then
17656     :
17657       fi
17658
17659         fi
17660
17661       fi
17662
17663
17664
17665             if test "$ax_compare_version" = "true" ; then
17666         ax_path_bdb_no_options_ok=yes
17667         BDB_LIBS="-ldb"
17668         if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
17669           BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
17670           BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
17671         fi
17672         BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
17673       fi
17674     fi
17675   fi
17676
17677     if test "$ax_path_bdb_no_options_ok" = "yes" ; then
17678     { echo "$as_me:$LINENO: using Berkeley DB version $BDB_VERSION" >&5
17679 echo "$as_me: using Berkeley DB version $BDB_VERSION" >&6;}
17680
17681 cat >>confdefs.h <<\_ACEOF
17682 #define HAVE_DB_H 1
17683 _ACEOF
17684
17685
17686          ax_path_bdb_ok=yes
17687          BDB_CPPFLAGS="-I$ax_path_bdb_INC"
17688          BDB_LDFLAGS="-L$ax_path_bdb_LIB"
17689
17690   else
17691     { echo "$as_me:$LINENO: no Berkeley DB version 3 or higher found" >&5
17692 echo "$as_me: no Berkeley DB version 3 or higher found" >&6;}
17693       fi
17694
17695      else
17696        { echo "$as_me:$LINENO: result: no" >&5
17697 echo "${ECHO_T}no" >&6; }
17698        { echo "$as_me:$LINENO: no usable Berkeley DB not found" >&5
17699 echo "$as_me: no usable Berkeley DB not found" >&6;}
17700      fi
17701
17702           CPPFLAGS="$ax_path_bdb_save_CPPFLAGS"
17703      LDFLAGS="$ax_path_bdb_save_LDFLAGS"
17704
17705   fi
17706
17707     if test "$ax_path_bdb_ok" = "yes" ; then
17708
17709    support_libdb=yes
17710
17711       fi
17712
17713
17714 fi
17715
17716 if test x$support_libdb = xyes; then
17717
17718 cat >>confdefs.h <<\_ACEOF
17719 #define USE_DB 1
17720 _ACEOF
17721
17722
17723
17724 fi
17725
17726 # -------------------------------------------
17727 # gnome (default off)
17728 # -------------------------------------------
17729 # Check whether --enable-gnome was given.
17730 if test "${enable_gnome+set}" = set; then
17731   enableval=$enable_gnome; if test x$enableval = xyes; then
17732     support_gnome=yes
17733   fi
17734 fi
17735
17736
17737 GNOME_DIR=
17738 if test x$support_gnome = xyes; then
17739   abc=`$PKGCONFIG --exists libgnomeui-2.0`
17740   pkg=$?
17741   if test $pkg = 0; then
17742      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
17743      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17744      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
17745      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
17746
17747
17748
17749
17750      GNOME_DIR=src/gnome2-console
17751      gnome_version="Version 2.x"
17752   else
17753      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
17754 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
17755    { (exit 1); exit 1; }; }
17756   fi
17757 fi
17758
17759
17760 # -------------------------------------------
17761 # bat (default off)
17762 # -------------------------------------------
17763 # Check whether --enable-bat was given.
17764 if test "${enable_bat+set}" = set; then
17765   enableval=$enable_bat; if test x$enableval = xyes; then
17766
17767 cat >>confdefs.h <<\_ACEOF
17768 #define HAVE_BAT 1
17769 _ACEOF
17770
17771     support_bat=yes
17772   fi
17773 fi
17774
17775
17776 BAT_DIR=
17777 if test x$support_bat = xyes; then
17778   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
17779   pkg=$?
17780   if test $pkg = 0; then
17781      BAT_DIR=src/qt-console
17782   else
17783      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
17784 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
17785    { (exit 1); exit 1; }; }
17786   fi
17787 fi
17788
17789 #
17790 #  If bat is enabled, we need the qwt library
17791 got_qwt=no
17792 QWT_INC=
17793 QWT_LDFLAGS=
17794 QWT_LIB=
17795 QWT=
17796 no_qwt=no
17797 if test x$support_bat = xyes; then
17798    { echo "$as_me:$LINENO: checking for qwt support" >&5
17799 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
17800
17801 # Check whether --with-qwt was given.
17802 if test "${with_qwt+set}" = set; then
17803   withval=$with_qwt;
17804         case "$with_qwt" in
17805         no)
17806            no_qwt=yes
17807           ;;
17808         yes|*)
17809           if test -f ${with_qwt}/include/qwt.h; then
17810              QWT_INC="${with_qwt}/include"
17811              QWT_LDFLAGS="-L${with_qwt}/lib"
17812              QWT_LIB="-lqwt"
17813              QWT="qwt"
17814           fi
17815           ;;
17816         esac
17817
17818
17819 fi
17820
17821 #
17822 # Search in standard places, or --with-qwt not specified
17823 #
17824    if test $no_qwt = no; then
17825     if test x$QWT_INC = x; then
17826       for root in /usr /usr/local; do
17827          for ver in qwt qwt5 qwt-qt4; do
17828             if test -f ${root}/include/${ver}/qwt.h; then
17829                QWT_INC="${root}/include/${ver}"
17830                if test -d ${root}/lib64/; then
17831                   QWT_LDFLAGS="-L${root}/lib64"
17832                else
17833                   QWT_LDFLAGS="-L${root}/lib"
17834                fi
17835                QWT_LIB="-lqwt"
17836                QWT="qwt"
17837                got_qwt=yes
17838                break;
17839             fi
17840          done
17841       done
17842     fi
17843    fi
17844    if test x$QWT_INC = x; then
17845       { echo "$as_me:$LINENO: result: no" >&5
17846 echo "${ECHO_T}no" >&6; }
17847    else
17848
17849 cat >>confdefs.h <<\_ACEOF
17850 #define HAVE_QWT 1
17851 _ACEOF
17852
17853       { echo "$as_me:$LINENO: result: yes" >&5
17854 echo "${ECHO_T}yes" >&6; }
17855    fi
17856 fi
17857
17858
17859
17860
17861
17862
17863
17864
17865 # -------------------------------------------
17866 # bwx-console (default off)
17867 # -------------------------------------------
17868 # Check whether --enable-bwx-console was given.
17869 if test "${enable_bwx_console+set}" = set; then
17870   enableval=$enable_bwx_console; if test x$enableval = xyes; then
17871     support_wx_console=yes
17872   fi
17873 fi
17874
17875
17876 WX_DIR=
17877 if test x$support_wx_console = xyes; then
17878   abc=`$WXCONFIG $WXFLAGS --cppflags`
17879   pkg=$?
17880   if test $pkg = 0; then
17881      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
17882      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
17883      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
17884
17885
17886
17887      WX_DIR=src/wx-console
17888   else
17889      echo " "
17890      echo "wx-config program not found. bwx-console disabled."
17891      echo " "
17892      support_wx_console=no
17893   fi
17894 fi
17895
17896
17897
17898 # -------------------------------------------
17899 # tray-monitor (default off)
17900 # -------------------------------------------
17901 # Check whether --enable-tray-monitor was given.
17902 if test "${enable_tray_monitor+set}" = set; then
17903   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
17904     support_tray_monitor=yes
17905   fi
17906 fi
17907
17908
17909 TRAY_MONITOR_DIR=
17910 if test x$support_tray_monitor = xyes; then
17911   abc=`$PKGCONFIG --exists gtk+-2.0`
17912   pkg=$?
17913   if test $pkg = 0; then
17914      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
17915      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
17916
17917
17918      TRAY_MONITOR_DIR=src/tray-monitor
17919      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
17920      pkg=$?
17921      if test $pkg = 0; then
17922
17923 cat >>confdefs.h <<\_ACEOF
17924 #define HAVE_GTK_2_4 1
17925 _ACEOF
17926
17927      fi
17928   fi
17929 fi
17930
17931
17932 # -------------------------------------------
17933 # smartalloc (default off)
17934 # -------------------------------------------
17935 # Check whether --enable-smartalloc was given.
17936 if test "${enable_smartalloc+set}" = set; then
17937   enableval=$enable_smartalloc; if test x$enableval = xno; then
17938     support_smartalloc=no
17939   fi
17940 fi
17941
17942
17943 if test x$support_smartalloc = xyes; then
17944
17945 cat >>confdefs.h <<\_ACEOF
17946 #define SMARTALLOC 1
17947 _ACEOF
17948
17949 fi
17950
17951 # -------------------------------------------
17952 # static-tools (default off)
17953 # -------------------------------------------
17954 # Check whether --enable-static-tools was given.
17955 if test "${enable_static_tools+set}" = set; then
17956   enableval=$enable_static_tools; if test x$enableval = xyes; then
17957      support_static_tools=yes
17958    fi
17959 fi
17960
17961
17962 TTOOL_LDFLAGS=
17963 if test x$support_static_tools = xyes; then
17964    TTOOL_LDFLAGS="-static"
17965 fi
17966
17967
17968 # -------------------------------------------
17969 # static-fd    (default off)
17970 # -------------------------------------------
17971 # Check whether --enable-static-fd was given.
17972 if test "${enable_static_fd+set}" = set; then
17973   enableval=$enable_static_fd; if test x$enableval = xyes; then
17974      support_static_fd=yes
17975    fi
17976 fi
17977
17978
17979 STATIC_FD=
17980 if test x$support_static_fd = xyes; then
17981    STATIC_FD="static-bacula-fd"
17982 fi
17983
17984
17985 # -------------------------------------------
17986 # static-sd    (default off)
17987 # -------------------------------------------
17988 # Check whether --enable-static-sd was given.
17989 if test "${enable_static_sd+set}" = set; then
17990   enableval=$enable_static_sd; if test x$enableval = xyes; then
17991      support_static_sd=yes
17992    fi
17993 fi
17994
17995
17996 STATIC_SD=
17997 if test x$support_static_sd = xyes; then
17998    STATIC_SD="static-bacula-sd"
17999 fi
18000
18001
18002 # -------------------------------------------
18003 # static-dir   (default off)
18004 # -------------------------------------------
18005 # Check whether --enable-static-dir was given.
18006 if test "${enable_static_dir+set}" = set; then
18007   enableval=$enable_static_dir; if test x$enableval = xyes; then
18008      support_static_dir=yes
18009    fi
18010 fi
18011
18012
18013 STATIC_DIR=
18014 if test x$support_static_dir = xyes; then
18015    STATIC_DIR="static-bacula-dir"
18016 fi
18017
18018
18019 # -------------------------------------------
18020 # static-cons  (default off)
18021 # -------------------------------------------
18022 # Check whether --enable-static-cons was given.
18023 if test "${enable_static_cons+set}" = set; then
18024   enableval=$enable_static_cons; if test x$enableval = xyes; then
18025      support_static_cons=yes
18026    fi
18027 fi
18028
18029
18030 STATIC_CONS=
18031 STATIC_GNOME_CONS=
18032 STATIC_WX_CONS=
18033 if test x$support_static_cons = xyes; then
18034    STATIC_CONS="static-bconsole"
18035    STATIC_GNOME_CONS="static-bgnome-console"
18036    STATIC_WX_CONS="static-bwx-console"
18037 fi
18038
18039
18040
18041
18042 # -------------------------------------------
18043 # client_only  (default off)
18044 # -------------------------------------------
18045 # Check whether --enable-client-only was given.
18046 if test "${enable_client_only+set}" = set; then
18047   enableval=$enable_client_only; if test x$enableval = xyes; then
18048       build_client_only=yes
18049       db_type=None
18050       DB_TYPE=none
18051    fi
18052 fi
18053
18054 if test x$build_client_only = xno; then
18055    ALL_DIRS="subdirs"
18056 else
18057    ALL_DIRS=""
18058 fi
18059
18060
18061 # -------------------------------------------
18062 # director  (default on)
18063 # -------------------------------------------
18064 # Check whether --enable-build-dird was given.
18065 if test "${enable_build_dird+set}" = set; then
18066   enableval=$enable_build_dird; if test x$enableval = xno; then
18067       build_dird=no
18068    fi
18069 fi
18070
18071 if test x$build_dird = xyes; then
18072    DIRD_DIR="src/dird"
18073    DIR_TOOLS="DIRTOOLS"
18074 else
18075    DIRD_DIR=""
18076    DIR_TOOLS="NODIRTOOLS"
18077 fi
18078
18079
18080
18081 # -------------------------------------------
18082 # stored  (default on)
18083 # -------------------------------------------
18084 # Check whether --enable-build-stored was given.
18085 if test "${enable_build_stored+set}" = set; then
18086   enableval=$enable_build_stored; if test x$enableval = xno; then
18087       build_stored=no
18088    fi
18089 fi
18090
18091 if test x$build_stored = xyes; then
18092    STORED_DIR="src/stored"
18093 else
18094    STORED_DIR=""
18095 fi
18096
18097
18098 # ---------------------------------------------------
18099 # Check for conio (Bacula readline substitute)(
18100 # ---------------------------------------------------
18101 # this allows you to turn it completely off
18102 # Check whether --enable-conio was given.
18103 if test "${enable_conio+set}" = set; then
18104   enableval=$enable_conio; if test x$enableval = xno; then
18105      support_conio=no
18106   fi
18107
18108 fi
18109
18110
18111
18112 # ---------------------------------------------------
18113 # Check for IPv6 support
18114 # ---------------------------------------------------
18115 # this allows you to turn it completely off
18116 support_ipv6=yes
18117 # Check whether --enable-ipv6 was given.
18118 if test "${enable_ipv6+set}" = set; then
18119   enableval=$enable_ipv6; if test x$enableval = xno; then
18120      support_ipv6=no
18121   fi
18122
18123 fi
18124
18125
18126 if test x$support_ipv6 = xyes; then
18127     cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133  #include <sys/types.h>
18134 #include <sys/socket.h>
18135 #include <netinet/in.h>
18136 int
18137 main ()
18138 {
18139 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (ac_try="$ac_link"
18146 case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_link") 2>conftest.er1
18152   ac_status=$?
18153   grep -v '^ *+' conftest.er1 >conftest.err
18154   rm -f conftest.er1
18155   cat conftest.err >&5
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); } && {
18158          test -z "$ac_c_werror_flag" ||
18159          test ! -s conftest.err
18160        } && test -s conftest$ac_exeext &&
18161        $as_test_x conftest$ac_exeext; then
18162   support_ipv6=yes
18163 else
18164   echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18166
18167         support_ipv6=no
18168 fi
18169
18170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18171       conftest$ac_exeext conftest.$ac_ext
18172 fi
18173
18174 if test x$support_ipv6 = xyes; then
18175
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_IPV6 1
18178 _ACEOF
18179
18180 fi
18181
18182
18183
18184 got_conio="no"
18185 if test x$support_conio = xyes; then
18186    if test "${ac_cv_header_termcap_h+set}" = set; then
18187   { echo "$as_me:$LINENO: checking for termcap.h" >&5
18188 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18189 if test "${ac_cv_header_termcap_h+set}" = set; then
18190   echo $ECHO_N "(cached) $ECHO_C" >&6
18191 fi
18192 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18193 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18194 else
18195   # Is the header compilable?
18196 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
18197 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h.  */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h.  */
18204 $ac_includes_default
18205 #include <termcap.h>
18206 _ACEOF
18207 rm -f conftest.$ac_objext
18208 if { (ac_try="$ac_compile"
18209 case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214   (eval "$ac_compile") 2>conftest.er1
18215   ac_status=$?
18216   grep -v '^ *+' conftest.er1 >conftest.err
18217   rm -f conftest.er1
18218   cat conftest.err >&5
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); } && {
18221          test -z "$ac_c_werror_flag" ||
18222          test ! -s conftest.err
18223        } && test -s conftest.$ac_objext; then
18224   ac_header_compiler=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229         ac_header_compiler=no
18230 fi
18231
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18234 echo "${ECHO_T}$ac_header_compiler" >&6; }
18235
18236 # Is the header present?
18237 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
18238 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h.  */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h.  */
18245 #include <termcap.h>
18246 _ACEOF
18247 if { (ac_try="$ac_cpp conftest.$ac_ext"
18248 case "(($ac_try" in
18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250   *) ac_try_echo=$ac_try;;
18251 esac
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18254   ac_status=$?
18255   grep -v '^ *+' conftest.er1 >conftest.err
18256   rm -f conftest.er1
18257   cat conftest.err >&5
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); } >/dev/null && {
18260          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18261          test ! -s conftest.err
18262        }; then
18263   ac_header_preproc=yes
18264 else
18265   echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18267
18268   ac_header_preproc=no
18269 fi
18270
18271 rm -f conftest.err conftest.$ac_ext
18272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18273 echo "${ECHO_T}$ac_header_preproc" >&6; }
18274
18275 # So?  What about this header?
18276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18277   yes:no: )
18278     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
18279 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18280     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
18281 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
18282     ac_header_preproc=yes
18283     ;;
18284   no:yes:* )
18285     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
18286 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
18287     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
18288 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
18289     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
18290 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
18291     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
18292 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18293     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
18294 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
18295     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
18296 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
18297
18298     ;;
18299 esac
18300 { echo "$as_me:$LINENO: checking for termcap.h" >&5
18301 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
18302 if test "${ac_cv_header_termcap_h+set}" = set; then
18303   echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305   ac_cv_header_termcap_h=$ac_header_preproc
18306 fi
18307 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
18308 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
18309
18310 fi
18311 if test $ac_cv_header_termcap_h = yes; then
18312    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
18313 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
18314 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-ltermcap  $LIBS"
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h.  */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h.  */
18325
18326 /* Override any GCC internal prototype to avoid an error.
18327    Use char because int might match the return type of a GCC
18328    builtin and then its argument prototype would still apply.  */
18329 #ifdef __cplusplus
18330 extern "C"
18331 #endif
18332 char tgetent ();
18333 int
18334 main ()
18335 {
18336 return tgetent ();
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (ac_try="$ac_link"
18343 case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_link") 2>conftest.er1
18349   ac_status=$?
18350   grep -v '^ *+' conftest.er1 >conftest.err
18351   rm -f conftest.er1
18352   cat conftest.err >&5
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); } && {
18355          test -z "$ac_c_werror_flag" ||
18356          test ! -s conftest.err
18357        } && test -s conftest$ac_exeext &&
18358        $as_test_x conftest$ac_exeext; then
18359   ac_cv_lib_termcap_tgetent=yes
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364         ac_cv_lib_termcap_tgetent=no
18365 fi
18366
18367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18368       conftest$ac_exeext conftest.$ac_ext
18369 LIBS=$ac_check_lib_save_LIBS
18370 fi
18371 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
18372 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
18373 if test $ac_cv_lib_termcap_tgetent = yes; then
18374    CONS_LIBS="-ltermcap"
18375          CONS_OBJ="conio.o"
18376          CONS_SRC="conio.c"
18377          got_conio="yes"
18378          support_readline=no
18379
18380 cat >>confdefs.h <<\_ACEOF
18381 #define HAVE_CONIO 1
18382 _ACEOF
18383
18384
18385 else
18386    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
18387 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
18388 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   ac_check_lib_save_LIBS=$LIBS
18392 LIBS="-lncurses  $LIBS"
18393 cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h.  */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h.  */
18399
18400 /* Override any GCC internal prototype to avoid an error.
18401    Use char because int might match the return type of a GCC
18402    builtin and then its argument prototype would still apply.  */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 char tgetent ();
18407 int
18408 main ()
18409 {
18410 return tgetent ();
18411   ;
18412   return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (ac_try="$ac_link"
18417 case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422   (eval "$ac_link") 2>conftest.er1
18423   ac_status=$?
18424   grep -v '^ *+' conftest.er1 >conftest.err
18425   rm -f conftest.er1
18426   cat conftest.err >&5
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); } && {
18429          test -z "$ac_c_werror_flag" ||
18430          test ! -s conftest.err
18431        } && test -s conftest$ac_exeext &&
18432        $as_test_x conftest$ac_exeext; then
18433   ac_cv_lib_ncurses_tgetent=yes
18434 else
18435   echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438         ac_cv_lib_ncurses_tgetent=no
18439 fi
18440
18441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18442       conftest$ac_exeext conftest.$ac_ext
18443 LIBS=$ac_check_lib_save_LIBS
18444 fi
18445 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
18446 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
18447 if test $ac_cv_lib_ncurses_tgetent = yes; then
18448    CONS_LIBS="-lncurses"
18449            CONS_OBJ="conio.o"
18450            CONS_SRC="conio.c"
18451            got_conio="yes"
18452            support_readline=no
18453
18454 cat >>confdefs.h <<\_ACEOF
18455 #define HAVE_CONIO 1
18456 _ACEOF
18457
18458
18459 fi
18460
18461
18462 fi
18463
18464
18465 else
18466
18467
18468 for ac_header in curses.h
18469 do
18470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18472   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18475   echo $ECHO_N "(cached) $ECHO_C" >&6
18476 fi
18477 ac_res=`eval echo '${'$as_ac_Header'}'`
18478                { echo "$as_me:$LINENO: result: $ac_res" >&5
18479 echo "${ECHO_T}$ac_res" >&6; }
18480 else
18481   # Is the header compilable?
18482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18484 cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490 $ac_includes_default
18491 #include <$ac_header>
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_compile") 2>conftest.er1
18501   ac_status=$?
18502   grep -v '^ *+' conftest.er1 >conftest.err
18503   rm -f conftest.er1
18504   cat conftest.err >&5
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); } && {
18507          test -z "$ac_c_werror_flag" ||
18508          test ! -s conftest.err
18509        } && test -s conftest.$ac_objext; then
18510   ac_header_compiler=yes
18511 else
18512   echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18514
18515         ac_header_compiler=no
18516 fi
18517
18518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18520 echo "${ECHO_T}$ac_header_compiler" >&6; }
18521
18522 # Is the header present?
18523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h.  */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h.  */
18531 #include <$ac_header>
18532 _ACEOF
18533 if { (ac_try="$ac_cpp conftest.$ac_ext"
18534 case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18540   ac_status=$?
18541   grep -v '^ *+' conftest.er1 >conftest.err
18542   rm -f conftest.er1
18543   cat conftest.err >&5
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); } >/dev/null && {
18546          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18547          test ! -s conftest.err
18548        }; then
18549   ac_header_preproc=yes
18550 else
18551   echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554   ac_header_preproc=no
18555 fi
18556
18557 rm -f conftest.err conftest.$ac_ext
18558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18559 echo "${ECHO_T}$ac_header_preproc" >&6; }
18560
18561 # So?  What about this header?
18562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18563   yes:no: )
18564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18568     ac_header_preproc=yes
18569     ;;
18570   no:yes:* )
18571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18583
18584     ;;
18585 esac
18586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   eval "$as_ac_Header=\$ac_header_preproc"
18592 fi
18593 ac_res=`eval echo '${'$as_ac_Header'}'`
18594                { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18596
18597 fi
18598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18599   cat >>confdefs.h <<_ACEOF
18600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18601 _ACEOF
18602
18603 fi
18604
18605 done
18606
18607          { echo "$as_me:$LINENO: checking for term.h" >&5
18608 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
18609 if test "${ac_cv_header_term_h+set}" = set; then
18610   echo $ECHO_N "(cached) $ECHO_C" >&6
18611 else
18612   cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618 #if HAVE_CURSES_H
18619 #include <curses.h>
18620 #endif
18621
18622
18623 #include <term.h>
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (ac_try="$ac_compile"
18627 case "(($ac_try" in
18628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629   *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632   (eval "$ac_compile") 2>conftest.er1
18633   ac_status=$?
18634   grep -v '^ *+' conftest.er1 >conftest.err
18635   rm -f conftest.er1
18636   cat conftest.err >&5
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } && {
18639          test -z "$ac_c_werror_flag" ||
18640          test ! -s conftest.err
18641        } && test -s conftest.$ac_objext; then
18642   ac_cv_header_term_h=yes
18643 else
18644   echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647         ac_cv_header_term_h=no
18648 fi
18649
18650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18651 fi
18652 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
18653 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
18654 if test $ac_cv_header_term_h = yes; then
18655    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
18656 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
18657 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660   ac_check_lib_save_LIBS=$LIBS
18661 LIBS="-lcurses  $LIBS"
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668
18669 /* Override any GCC internal prototype to avoid an error.
18670    Use char because int might match the return type of a GCC
18671    builtin and then its argument prototype would still apply.  */
18672 #ifdef __cplusplus
18673 extern "C"
18674 #endif
18675 char tgetent ();
18676 int
18677 main ()
18678 {
18679 return tgetent ();
18680   ;
18681   return 0;
18682 }
18683 _ACEOF
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691   (eval "$ac_link") 2>conftest.er1
18692   ac_status=$?
18693   grep -v '^ *+' conftest.er1 >conftest.err
18694   rm -f conftest.er1
18695   cat conftest.err >&5
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); } && {
18698          test -z "$ac_c_werror_flag" ||
18699          test ! -s conftest.err
18700        } && test -s conftest$ac_exeext &&
18701        $as_test_x conftest$ac_exeext; then
18702   ac_cv_lib_curses_tgetent=yes
18703 else
18704   echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707         ac_cv_lib_curses_tgetent=no
18708 fi
18709
18710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18711       conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18713 fi
18714 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
18715 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
18716 if test $ac_cv_lib_curses_tgetent = yes; then
18717    CONS_LIBS="-lcurses"
18718                    CONS_OBJ="conio.o"
18719                    CONS_SRC="conio.c"
18720                    got_conio="yes"
18721                    support_readline=no
18722
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_CONIO 1
18725 _ACEOF
18726
18727
18728 fi
18729
18730
18731 else
18732    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
18733 fi
18734
18735
18736
18737 fi
18738
18739
18740 fi
18741
18742
18743 # ---------------------------------------------------
18744 # Check for readline support/directory (default off)
18745 # ---------------------------------------------------
18746 # this allows you to turn it completely off
18747 # Check whether --enable-readline was given.
18748 if test "${enable_readline+set}" = set; then
18749   enableval=$enable_readline; if test x$enableval = xno; then
18750     support_readline=no
18751   fi
18752 fi
18753
18754
18755 got_readline="no"
18756 READLINE_SRC=
18757 if test x$support_readline = xyes; then
18758
18759 # Check whether --with-readline was given.
18760 if test "${with_readline+set}" = set; then
18761   withval=$with_readline;
18762         case "$with_readline" in
18763         no) : ;;
18764         yes|*)
18765           if test -f ${with_readline}/readline.h; then
18766              CONS_INC="-I${with_readline}"
18767              CONS_LDFLAGS="-L$with_readline"
18768           elif test -f ${with_readline}/include/readline/readline.h; then
18769              CONS_INC="-I${with_readline}/include/readline"
18770              CONS_LDFLAGS="-L${with_readline}/lib"
18771              with_readline="${with_readline}/include/readline"
18772           else
18773              with_readline="/usr/include/readline"
18774           fi
18775           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
18776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18777   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18778 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18780   echo $ECHO_N "(cached) $ECHO_C" >&6
18781 fi
18782 ac_res=`eval echo '${'$as_ac_Header'}'`
18783                { echo "$as_me:$LINENO: result: $ac_res" >&5
18784 echo "${ECHO_T}$ac_res" >&6; }
18785 else
18786   # Is the header compilable?
18787 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
18788 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795 $ac_includes_default
18796 #include <${with_readline}/readline.h>
18797 _ACEOF
18798 rm -f conftest.$ac_objext
18799 if { (ac_try="$ac_compile"
18800 case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805   (eval "$ac_compile") 2>conftest.er1
18806   ac_status=$?
18807   grep -v '^ *+' conftest.er1 >conftest.err
18808   rm -f conftest.er1
18809   cat conftest.err >&5
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); } && {
18812          test -z "$ac_c_werror_flag" ||
18813          test ! -s conftest.err
18814        } && test -s conftest.$ac_objext; then
18815   ac_header_compiler=yes
18816 else
18817   echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18819
18820         ac_header_compiler=no
18821 fi
18822
18823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18825 echo "${ECHO_T}$ac_header_compiler" >&6; }
18826
18827 # Is the header present?
18828 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
18829 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836 #include <${with_readline}/readline.h>
18837 _ACEOF
18838 if { (ac_try="$ac_cpp conftest.$ac_ext"
18839 case "(($ac_try" in
18840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841   *) ac_try_echo=$ac_try;;
18842 esac
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } >/dev/null && {
18851          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18852          test ! -s conftest.err
18853        }; then
18854   ac_header_preproc=yes
18855 else
18856   echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859   ac_header_preproc=no
18860 fi
18861
18862 rm -f conftest.err conftest.$ac_ext
18863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18864 echo "${ECHO_T}$ac_header_preproc" >&6; }
18865
18866 # So?  What about this header?
18867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18868   yes:no: )
18869     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
18870 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18871     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
18872 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
18873     ac_header_preproc=yes
18874     ;;
18875   no:yes:* )
18876     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
18877 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
18878     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
18879 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
18880     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
18881 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
18882     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
18883 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18884     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
18885 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
18886     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
18887 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
18888
18889     ;;
18890 esac
18891 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
18892 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
18893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896   eval "$as_ac_Header=\$ac_header_preproc"
18897 fi
18898 ac_res=`eval echo '${'$as_ac_Header'}'`
18899                { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901
18902 fi
18903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18904
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_READLINE 1
18907 _ACEOF
18908
18909                CONS_LIBS="-lreadline -lhistory -ltermcap"
18910                got_readline="yes"
18911
18912 else
18913    echo " "
18914                echo "readline.h not found. readline turned off ..."
18915                echo " "
18916
18917
18918 fi
18919
18920
18921           ;;
18922         esac
18923
18924 else
18925
18926        # check for standard readline library
18927        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18928   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
18929 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
18930 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
18931   echo $ECHO_N "(cached) $ECHO_C" >&6
18932 fi
18933 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
18934 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
18935 else
18936   # Is the header compilable?
18937 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
18938 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
18939 cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945 $ac_includes_default
18946 #include </usr/include/readline/readline.h>
18947 _ACEOF
18948 rm -f conftest.$ac_objext
18949 if { (ac_try="$ac_compile"
18950 case "(($ac_try" in
18951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952   *) ac_try_echo=$ac_try;;
18953 esac
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955   (eval "$ac_compile") 2>conftest.er1
18956   ac_status=$?
18957   grep -v '^ *+' conftest.er1 >conftest.err
18958   rm -f conftest.er1
18959   cat conftest.err >&5
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); } && {
18962          test -z "$ac_c_werror_flag" ||
18963          test ! -s conftest.err
18964        } && test -s conftest.$ac_objext; then
18965   ac_header_compiler=yes
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         ac_header_compiler=no
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 echo "${ECHO_T}$ac_header_compiler" >&6; }
18976
18977 # Is the header present?
18978 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
18979 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986 #include </usr/include/readline/readline.h>
18987 _ACEOF
18988 if { (ac_try="$ac_cpp conftest.$ac_ext"
18989 case "(($ac_try" in
18990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991   *) ac_try_echo=$ac_try;;
18992 esac
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18995   ac_status=$?
18996   grep -v '^ *+' conftest.er1 >conftest.err
18997   rm -f conftest.er1
18998   cat conftest.err >&5
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); } >/dev/null && {
19001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19002          test ! -s conftest.err
19003        }; then
19004   ac_header_preproc=yes
19005 else
19006   echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009   ac_header_preproc=no
19010 fi
19011
19012 rm -f conftest.err conftest.$ac_ext
19013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19014 echo "${ECHO_T}$ac_header_preproc" >&6; }
19015
19016 # So?  What about this header?
19017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19018   yes:no: )
19019     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19020 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19021     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
19022 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
19023     ac_header_preproc=yes
19024     ;;
19025   no:yes:* )
19026     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
19027 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
19028     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
19029 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
19030     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
19031 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
19032     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
19033 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19034     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
19035 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19036     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
19037 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19038
19039     ;;
19040 esac
19041 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
19042 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
19043 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
19044   echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
19047 fi
19048 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
19049 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
19050
19051 fi
19052 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
19053
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE_READLINE 1
19056 _ACEOF
19057
19058            got_readline="yes"
19059            CONS_INC="-I/usr/include/readline"
19060            CONS_LIBS="-lreadline -ltermcap"
19061
19062 else
19063
19064            # Did not find standard library, so try Bacula's default
19065             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
19066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19067   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19068 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 fi
19072 ac_res=`eval echo '${'$as_ac_Header'}'`
19073                { echo "$as_me:$LINENO: result: $ac_res" >&5
19074 echo "${ECHO_T}$ac_res" >&6; }
19075 else
19076   # Is the header compilable?
19077 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
19078 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 $ac_includes_default
19086 #include <${TOP_DIR}/depkgs/readline/readline.h>
19087 _ACEOF
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_compile") 2>conftest.er1
19096   ac_status=$?
19097   grep -v '^ *+' conftest.er1 >conftest.err
19098   rm -f conftest.er1
19099   cat conftest.err >&5
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); } && {
19102          test -z "$ac_c_werror_flag" ||
19103          test ! -s conftest.err
19104        } && test -s conftest.$ac_objext; then
19105   ac_header_compiler=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110         ac_header_compiler=no
19111 fi
19112
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19115 echo "${ECHO_T}$ac_header_compiler" >&6; }
19116
19117 # Is the header present?
19118 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
19119 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h.  */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h.  */
19126 #include <${TOP_DIR}/depkgs/readline/readline.h>
19127 _ACEOF
19128 if { (ac_try="$ac_cpp conftest.$ac_ext"
19129 case "(($ac_try" in
19130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131   *) ac_try_echo=$ac_try;;
19132 esac
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19135   ac_status=$?
19136   grep -v '^ *+' conftest.er1 >conftest.err
19137   rm -f conftest.er1
19138   cat conftest.err >&5
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } >/dev/null && {
19141          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19142          test ! -s conftest.err
19143        }; then
19144   ac_header_preproc=yes
19145 else
19146   echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19148
19149   ac_header_preproc=no
19150 fi
19151
19152 rm -f conftest.err conftest.$ac_ext
19153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19154 echo "${ECHO_T}$ac_header_preproc" >&6; }
19155
19156 # So?  What about this header?
19157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19158   yes:no: )
19159     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19160 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19161     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
19162 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
19163     ac_header_preproc=yes
19164     ;;
19165   no:yes:* )
19166     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
19167 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
19168     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
19169 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
19170     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
19171 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
19172     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
19173 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19174     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
19175 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
19176     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
19177 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
19178
19179     ;;
19180 esac
19181 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
19182 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
19183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186   eval "$as_ac_Header=\$ac_header_preproc"
19187 fi
19188 ac_res=`eval echo '${'$as_ac_Header'}'`
19189                { echo "$as_me:$LINENO: result: $ac_res" >&5
19190 echo "${ECHO_T}$ac_res" >&6; }
19191
19192 fi
19193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19194
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_READLINE 1
19197 _ACEOF
19198
19199                  got_readline="yes"
19200                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
19201                  CONS_LIBS="-lreadline -lhistory -ltermcap"
19202                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
19203                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
19204
19205 else
19206    echo " "
19207                 echo "readline.h not found. readline turned off ..."
19208                 echo " "
19209
19210
19211 fi
19212
19213
19214
19215
19216 fi
19217
19218
19219
19220
19221 fi
19222
19223 fi
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234 # Minimal stuff for readline Makefile configuration
19235 MAKE_SHELL=/bin/sh
19236
19237 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19238 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
19239 if test "${ac_cv_header_stat_broken+set}" = set; then
19240   echo $ECHO_N "(cached) $ECHO_C" >&6
19241 else
19242   cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h.  */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h.  */
19248 #include <sys/types.h>
19249 #include <sys/stat.h>
19250
19251 #if defined S_ISBLK && defined S_IFDIR
19252 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19253 #endif
19254
19255 #if defined S_ISBLK && defined S_IFCHR
19256 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19257 #endif
19258
19259 #if defined S_ISLNK && defined S_IFREG
19260 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19261 #endif
19262
19263 #if defined S_ISSOCK && defined S_IFREG
19264 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19265 #endif
19266
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_compile") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } && {
19282          test -z "$ac_c_werror_flag" ||
19283          test ! -s conftest.err
19284        } && test -s conftest.$ac_objext; then
19285   ac_cv_header_stat_broken=no
19286 else
19287   echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290         ac_cv_header_stat_broken=yes
19291 fi
19292
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 fi
19295 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19296 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
19297 if test $ac_cv_header_stat_broken = yes; then
19298
19299 cat >>confdefs.h <<\_ACEOF
19300 #define STAT_MACROS_BROKEN 1
19301 _ACEOF
19302
19303 fi
19304
19305
19306
19307
19308
19309
19310 ac_header_dirent=no
19311 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19312   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19313 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19314 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19316   echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318   cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h.  */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h.  */
19324 #include <sys/types.h>
19325 #include <$ac_hdr>
19326
19327 int
19328 main ()
19329 {
19330 if ((DIR *) 0)
19331 return 0;
19332   ;
19333   return 0;
19334 }
19335 _ACEOF
19336 rm -f conftest.$ac_objext
19337 if { (ac_try="$ac_compile"
19338 case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_compile") 2>conftest.er1
19344   ac_status=$?
19345   grep -v '^ *+' conftest.er1 >conftest.err
19346   rm -f conftest.er1
19347   cat conftest.err >&5
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } && {
19350          test -z "$ac_c_werror_flag" ||
19351          test ! -s conftest.err
19352        } && test -s conftest.$ac_objext; then
19353   eval "$as_ac_Header=yes"
19354 else
19355   echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358         eval "$as_ac_Header=no"
19359 fi
19360
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 fi
19363 ac_res=`eval echo '${'$as_ac_Header'}'`
19364                { echo "$as_me:$LINENO: result: $ac_res" >&5
19365 echo "${ECHO_T}$ac_res" >&6; }
19366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19367   cat >>confdefs.h <<_ACEOF
19368 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19369 _ACEOF
19370
19371 ac_header_dirent=$ac_hdr; break
19372 fi
19373
19374 done
19375 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19376 if test $ac_header_dirent = dirent.h; then
19377   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19379 if test "${ac_cv_search_opendir+set}" = set; then
19380   echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382   ac_func_search_save_LIBS=$LIBS
19383 cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389
19390 /* Override any GCC internal prototype to avoid an error.
19391    Use char because int might match the return type of a GCC
19392    builtin and then its argument prototype would still apply.  */
19393 #ifdef __cplusplus
19394 extern "C"
19395 #endif
19396 char opendir ();
19397 int
19398 main ()
19399 {
19400 return opendir ();
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 for ac_lib in '' dir; do
19406   if test -z "$ac_lib"; then
19407     ac_res="none required"
19408   else
19409     ac_res=-l$ac_lib
19410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19411   fi
19412   rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_link") 2>conftest.er1
19420   ac_status=$?
19421   grep -v '^ *+' conftest.er1 >conftest.err
19422   rm -f conftest.er1
19423   cat conftest.err >&5
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } && {
19426          test -z "$ac_c_werror_flag" ||
19427          test ! -s conftest.err
19428        } && test -s conftest$ac_exeext &&
19429        $as_test_x conftest$ac_exeext; then
19430   ac_cv_search_opendir=$ac_res
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439       conftest$ac_exeext
19440   if test "${ac_cv_search_opendir+set}" = set; then
19441   break
19442 fi
19443 done
19444 if test "${ac_cv_search_opendir+set}" = set; then
19445   :
19446 else
19447   ac_cv_search_opendir=no
19448 fi
19449 rm conftest.$ac_ext
19450 LIBS=$ac_func_search_save_LIBS
19451 fi
19452 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19453 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19454 ac_res=$ac_cv_search_opendir
19455 if test "$ac_res" != no; then
19456   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19457
19458 fi
19459
19460 else
19461   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19462 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19463 if test "${ac_cv_search_opendir+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466   ac_func_search_save_LIBS=$LIBS
19467 cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473
19474 /* Override any GCC internal prototype to avoid an error.
19475    Use char because int might match the return type of a GCC
19476    builtin and then its argument prototype would still apply.  */
19477 #ifdef __cplusplus
19478 extern "C"
19479 #endif
19480 char opendir ();
19481 int
19482 main ()
19483 {
19484 return opendir ();
19485   ;
19486   return 0;
19487 }
19488 _ACEOF
19489 for ac_lib in '' x; do
19490   if test -z "$ac_lib"; then
19491     ac_res="none required"
19492   else
19493     ac_res=-l$ac_lib
19494     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19495   fi
19496   rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500   *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503   (eval "$ac_link") 2>conftest.er1
19504   ac_status=$?
19505   grep -v '^ *+' conftest.er1 >conftest.err
19506   rm -f conftest.er1
19507   cat conftest.err >&5
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); } && {
19510          test -z "$ac_c_werror_flag" ||
19511          test ! -s conftest.err
19512        } && test -s conftest$ac_exeext &&
19513        $as_test_x conftest$ac_exeext; then
19514   ac_cv_search_opendir=$ac_res
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519
19520 fi
19521
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19523       conftest$ac_exeext
19524   if test "${ac_cv_search_opendir+set}" = set; then
19525   break
19526 fi
19527 done
19528 if test "${ac_cv_search_opendir+set}" = set; then
19529   :
19530 else
19531   ac_cv_search_opendir=no
19532 fi
19533 rm conftest.$ac_ext
19534 LIBS=$ac_func_search_save_LIBS
19535 fi
19536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19538 ac_res=$ac_cv_search_opendir
19539 if test "$ac_res" != no; then
19540   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19541
19542 fi
19543
19544 fi
19545
19546
19547
19548
19549
19550
19551
19552
19553 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
19554 do
19555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19569 #define $ac_func innocuous_$ac_func
19570
19571 /* System header to define __stub macros and hopefully few prototypes,
19572     which can conflict with char $ac_func (); below.
19573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19574     <limits.h> exists even on freestanding compilers.  */
19575
19576 #ifdef __STDC__
19577 # include <limits.h>
19578 #else
19579 # include <assert.h>
19580 #endif
19581
19582 #undef $ac_func
19583
19584 /* Override any GCC internal prototype to avoid an error.
19585    Use char because int might match the return type of a GCC
19586    builtin and then its argument prototype would still apply.  */
19587 #ifdef __cplusplus
19588 extern "C"
19589 #endif
19590 char $ac_func ();
19591 /* The GNU C library defines this for functions which it implements
19592     to always fail with ENOSYS.  Some functions are actually named
19593     something starting with __ and the normal name is an alias.  */
19594 #if defined __stub_$ac_func || defined __stub___$ac_func
19595 choke me
19596 #endif
19597
19598 int
19599 main ()
19600 {
19601 return $ac_func ();
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613   (eval "$ac_link") 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } && {
19620          test -z "$ac_c_werror_flag" ||
19621          test ! -s conftest.err
19622        } && test -s conftest$ac_exeext &&
19623        $as_test_x conftest$ac_exeext; then
19624   eval "$as_ac_var=yes"
19625 else
19626   echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629         eval "$as_ac_var=no"
19630 fi
19631
19632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19633       conftest$ac_exeext conftest.$ac_ext
19634 fi
19635 ac_res=`eval echo '${'$as_ac_var'}'`
19636                { echo "$as_me:$LINENO: result: $ac_res" >&5
19637 echo "${ECHO_T}$ac_res" >&6; }
19638 if test `eval echo '${'$as_ac_var'}'` = yes; then
19639   cat >>confdefs.h <<_ACEOF
19640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19641 _ACEOF
19642
19643 fi
19644 done
19645
19646
19647
19648 for ac_func in nanosleep nl_langinfo
19649 do
19650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19654   echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656   cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h.  */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h.  */
19662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19664 #define $ac_func innocuous_$ac_func
19665
19666 /* System header to define __stub macros and hopefully few prototypes,
19667     which can conflict with char $ac_func (); below.
19668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19669     <limits.h> exists even on freestanding compilers.  */
19670
19671 #ifdef __STDC__
19672 # include <limits.h>
19673 #else
19674 # include <assert.h>
19675 #endif
19676
19677 #undef $ac_func
19678
19679 /* Override any GCC internal prototype to avoid an error.
19680    Use char because int might match the return type of a GCC
19681    builtin and then its argument prototype would still apply.  */
19682 #ifdef __cplusplus
19683 extern "C"
19684 #endif
19685 char $ac_func ();
19686 /* The GNU C library defines this for functions which it implements
19687     to always fail with ENOSYS.  Some functions are actually named
19688     something starting with __ and the normal name is an alias.  */
19689 #if defined __stub_$ac_func || defined __stub___$ac_func
19690 choke me
19691 #endif
19692
19693 int
19694 main ()
19695 {
19696 return $ac_func ();
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (ac_try="$ac_link"
19703 case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708   (eval "$ac_link") 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } && {
19715          test -z "$ac_c_werror_flag" ||
19716          test ! -s conftest.err
19717        } && test -s conftest$ac_exeext &&
19718        $as_test_x conftest$ac_exeext; then
19719   eval "$as_ac_var=yes"
19720 else
19721   echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724         eval "$as_ac_var=no"
19725 fi
19726
19727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19728       conftest$ac_exeext conftest.$ac_ext
19729 fi
19730 ac_res=`eval echo '${'$as_ac_var'}'`
19731                { echo "$as_me:$LINENO: result: $ac_res" >&5
19732 echo "${ECHO_T}$ac_res" >&6; }
19733 if test `eval echo '${'$as_ac_var'}'` = yes; then
19734   cat >>confdefs.h <<_ACEOF
19735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19736 _ACEOF
19737
19738 fi
19739 done
19740
19741
19742 for ac_header in varargs.h
19743 do
19744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19746   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19749   echo $ECHO_N "(cached) $ECHO_C" >&6
19750 fi
19751 ac_res=`eval echo '${'$as_ac_Header'}'`
19752                { echo "$as_me:$LINENO: result: $ac_res" >&5
19753 echo "${ECHO_T}$ac_res" >&6; }
19754 else
19755   # Is the header compilable?
19756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19758 cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764 $ac_includes_default
19765 #include <$ac_header>
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774   (eval "$ac_compile") 2>conftest.er1
19775   ac_status=$?
19776   grep -v '^ *+' conftest.er1 >conftest.err
19777   rm -f conftest.er1
19778   cat conftest.err >&5
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } && {
19781          test -z "$ac_c_werror_flag" ||
19782          test ! -s conftest.err
19783        } && test -s conftest.$ac_objext; then
19784   ac_header_compiler=yes
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789         ac_header_compiler=no
19790 fi
19791
19792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 echo "${ECHO_T}$ac_header_compiler" >&6; }
19795
19796 # Is the header present?
19797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805 #include <$ac_header>
19806 _ACEOF
19807 if { (ac_try="$ac_cpp conftest.$ac_ext"
19808 case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19814   ac_status=$?
19815   grep -v '^ *+' conftest.er1 >conftest.err
19816   rm -f conftest.er1
19817   cat conftest.err >&5
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } >/dev/null && {
19820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19821          test ! -s conftest.err
19822        }; then
19823   ac_header_preproc=yes
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828   ac_header_preproc=no
19829 fi
19830
19831 rm -f conftest.err conftest.$ac_ext
19832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19833 echo "${ECHO_T}$ac_header_preproc" >&6; }
19834
19835 # So?  What about this header?
19836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19837   yes:no: )
19838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19842     ac_header_preproc=yes
19843     ;;
19844   no:yes:* )
19845     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19847     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19848 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19849     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19851     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19852 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19857
19858     ;;
19859 esac
19860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863   echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865   eval "$as_ac_Header=\$ac_header_preproc"
19866 fi
19867 ac_res=`eval echo '${'$as_ac_Header'}'`
19868                { echo "$as_me:$LINENO: result: $ac_res" >&5
19869 echo "${ECHO_T}$ac_res" >&6; }
19870
19871 fi
19872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19873   cat >>confdefs.h <<_ACEOF
19874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19875 _ACEOF
19876
19877 fi
19878
19879 done
19880
19881
19882 # End of readline/conio stuff
19883 # -----------------------------------------------------------------------
19884
19885 # -----------------------------------------------------------------------
19886 #  Check for Python support
19887 #
19888 { echo "$as_me:$LINENO: checking for Python support" >&5
19889 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
19890
19891 # Check whether --with-python was given.
19892 if test "${with_python+set}" = set; then
19893   withval=$with_python;
19894   PYTHON_INCDIR=
19895   PYTHON_LIBS=
19896   if test "$withval" != "no"; then
19897      if test "$withval" = "yes"; then
19898         for python_root in /usr /usr/local /usr/sfw; do
19899           for ver in python2.2 python2.3 python2.4 python2.5; do
19900              if test -f $python_root/include/${ver}/Python.h; then
19901                 PYTHON_INCDIR=-I$python_root/include/${ver}
19902                 if test -d $python_root/lib64/${ver}/config; then
19903                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
19904                 else
19905                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
19906                 fi
19907                 break
19908              fi
19909           done
19910         done
19911         if test x$PYTHON_INCDIR = x; then
19912           if test -f $prefix/include/Python.h; then
19913              PYTHON_INCDIR=-I$prefix/include
19914              if test -d $prefix/lib64/config; then
19915                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
19916              else
19917                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
19918              fi
19919           else
19920            { echo "$as_me:$LINENO: result: no" >&5
19921 echo "${ECHO_T}no" >&6; }
19922            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
19923 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
19924    { (exit 1); exit 1; }; }
19925           fi
19926         fi
19927      else
19928         if test -f $withval/Python.h; then
19929            PYTHON_INCDIR=-I$withval
19930            PYTHON_LIBS="-L$withval/config -lpython"
19931         elif test -f $withval/include/Python.h; then
19932            PYTHON_INCDIR=-I$withval/include
19933            if test -d $withval/lib64/config; then
19934               PYTHON_LIBS="-L$withval/lib64/config -lpython"
19935            else
19936               PYTHON_LIBS="-L$withval/lib/config -lpython"
19937            fi
19938         elif test -f $withval/include/python/Python.h; then
19939            PYTHON_INCDIR=-I$withval/include/python
19940            if test -d $withval/lib64/python/config; then
19941               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
19942            else
19943               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
19944            fi
19945         else
19946            { echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6; }
19948            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
19949 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
19950    { (exit 1); exit 1; }; }
19951         fi
19952      fi
19953      cat >>confdefs.h <<\_ACEOF
19954 #define HAVE_PYTHON 1
19955 _ACEOF
19956
19957      { echo "$as_me:$LINENO: result: yes" >&5
19958 echo "${ECHO_T}yes" >&6; }
19959      support_python=yes
19960      { echo "$as_me:$LINENO: checking for more Python libs" >&5
19961 echo "$as_me: checking for more Python libs" >&6;}
19962      saved_LIBS="$LIBS"; LIBS=
19963      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
19964 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
19965 if test "${ac_cv_search_shm_open+set}" = set; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968   ac_func_search_save_LIBS=$LIBS
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975
19976 /* Override any GCC internal prototype to avoid an error.
19977    Use char because int might match the return type of a GCC
19978    builtin and then its argument prototype would still apply.  */
19979 #ifdef __cplusplus
19980 extern "C"
19981 #endif
19982 char shm_open ();
19983 int
19984 main ()
19985 {
19986 return shm_open ();
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 for ac_lib in '' rt; do
19992   if test -z "$ac_lib"; then
19993     ac_res="none required"
19994   else
19995     ac_res=-l$ac_lib
19996     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19997   fi
19998   rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (ac_try="$ac_link"
20000 case "(($ac_try" in
20001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002   *) ac_try_echo=$ac_try;;
20003 esac
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005   (eval "$ac_link") 2>conftest.er1
20006   ac_status=$?
20007   grep -v '^ *+' conftest.er1 >conftest.err
20008   rm -f conftest.er1
20009   cat conftest.err >&5
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); } && {
20012          test -z "$ac_c_werror_flag" ||
20013          test ! -s conftest.err
20014        } && test -s conftest$ac_exeext &&
20015        $as_test_x conftest$ac_exeext; then
20016   ac_cv_search_shm_open=$ac_res
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021
20022 fi
20023
20024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20025       conftest$ac_exeext
20026   if test "${ac_cv_search_shm_open+set}" = set; then
20027   break
20028 fi
20029 done
20030 if test "${ac_cv_search_shm_open+set}" = set; then
20031   :
20032 else
20033   ac_cv_search_shm_open=no
20034 fi
20035 rm conftest.$ac_ext
20036 LIBS=$ac_func_search_save_LIBS
20037 fi
20038 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
20039 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
20040 ac_res=$ac_cv_search_shm_open
20041 if test "$ac_res" != no; then
20042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20043
20044 fi
20045
20046
20047 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
20048 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
20049 if test "${ac_cv_lib_util_openpty+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lutil  $LIBS"
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060
20061 /* Override any GCC internal prototype to avoid an error.
20062    Use char because int might match the return type of a GCC
20063    builtin and then its argument prototype would still apply.  */
20064 #ifdef __cplusplus
20065 extern "C"
20066 #endif
20067 char openpty ();
20068 int
20069 main ()
20070 {
20071 return openpty ();
20072   ;
20073   return 0;
20074 }
20075 _ACEOF
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080   *) ac_try_echo=$ac_try;;
20081 esac
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083   (eval "$ac_link") 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } && {
20090          test -z "$ac_c_werror_flag" ||
20091          test ! -s conftest.err
20092        } && test -s conftest$ac_exeext &&
20093        $as_test_x conftest$ac_exeext; then
20094   ac_cv_lib_util_openpty=yes
20095 else
20096   echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099         ac_cv_lib_util_openpty=no
20100 fi
20101
20102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20103       conftest$ac_exeext conftest.$ac_ext
20104 LIBS=$ac_check_lib_save_LIBS
20105 fi
20106 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
20107 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
20108 if test $ac_cv_lib_util_openpty = yes; then
20109   cat >>confdefs.h <<_ACEOF
20110 #define HAVE_LIBUTIL 1
20111 _ACEOF
20112
20113   LIBS="-lutil $LIBS"
20114
20115 fi
20116
20117      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
20118      LIBS="$saved_LIBS"
20119   else
20120      { echo "$as_me:$LINENO: result: no" >&5
20121 echo "${ECHO_T}no" >&6; }
20122   fi
20123
20124 else
20125
20126   { echo "$as_me:$LINENO: result: no" >&5
20127 echo "${ECHO_T}no" >&6; }
20128
20129 fi
20130
20131
20132
20133
20134 #
20135 # Find where sockets are (especially for Solaris)
20136 # Do this before the TCP Wrappers test since tcp wrappers
20137 # uses the socket library and some linkers are stupid.
20138 #
20139 { echo "$as_me:$LINENO: checking for socket" >&5
20140 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
20141 if test "${ac_cv_func_socket+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144   cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20152 #define socket innocuous_socket
20153
20154 /* System header to define __stub macros and hopefully few prototypes,
20155     which can conflict with char socket (); below.
20156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20157     <limits.h> exists even on freestanding compilers.  */
20158
20159 #ifdef __STDC__
20160 # include <limits.h>
20161 #else
20162 # include <assert.h>
20163 #endif
20164
20165 #undef socket
20166
20167 /* Override any GCC internal prototype to avoid an error.
20168    Use char because int might match the return type of a GCC
20169    builtin and then its argument prototype would still apply.  */
20170 #ifdef __cplusplus
20171 extern "C"
20172 #endif
20173 char socket ();
20174 /* The GNU C library defines this for functions which it implements
20175     to always fail with ENOSYS.  Some functions are actually named
20176     something starting with __ and the normal name is an alias.  */
20177 #if defined __stub_socket || defined __stub___socket
20178 choke me
20179 #endif
20180
20181 int
20182 main ()
20183 {
20184 return socket ();
20185   ;
20186   return 0;
20187 }
20188 _ACEOF
20189 rm -f conftest.$ac_objext conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193   *) ac_try_echo=$ac_try;;
20194 esac
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196   (eval "$ac_link") 2>conftest.er1
20197   ac_status=$?
20198   grep -v '^ *+' conftest.er1 >conftest.err
20199   rm -f conftest.er1
20200   cat conftest.err >&5
20201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202   (exit $ac_status); } && {
20203          test -z "$ac_c_werror_flag" ||
20204          test ! -s conftest.err
20205        } && test -s conftest$ac_exeext &&
20206        $as_test_x conftest$ac_exeext; then
20207   ac_cv_func_socket=yes
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212         ac_cv_func_socket=no
20213 fi
20214
20215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20216       conftest$ac_exeext conftest.$ac_ext
20217 fi
20218 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20219 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
20220 if test $ac_cv_func_socket = yes; then
20221   { echo "$as_me:$LINENO: result: using libc's socket" >&5
20222 echo "${ECHO_T}using libc's socket" >&6; }
20223 else
20224
20225 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
20226 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
20227 if test "${ac_cv_lib_xnet_socket+set}" = set; then
20228   echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230   ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lxnet  $LIBS"
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238
20239 /* Override any GCC internal prototype to avoid an error.
20240    Use char because int might match the return type of a GCC
20241    builtin and then its argument prototype would still apply.  */
20242 #ifdef __cplusplus
20243 extern "C"
20244 #endif
20245 char socket ();
20246 int
20247 main ()
20248 {
20249 return socket ();
20250   ;
20251   return 0;
20252 }
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258   *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261   (eval "$ac_link") 2>conftest.er1
20262   ac_status=$?
20263   grep -v '^ *+' conftest.er1 >conftest.err
20264   rm -f conftest.er1
20265   cat conftest.err >&5
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); } && {
20268          test -z "$ac_c_werror_flag" ||
20269          test ! -s conftest.err
20270        } && test -s conftest$ac_exeext &&
20271        $as_test_x conftest$ac_exeext; then
20272   ac_cv_lib_xnet_socket=yes
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277         ac_cv_lib_xnet_socket=no
20278 fi
20279
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281       conftest$ac_exeext conftest.$ac_ext
20282 LIBS=$ac_check_lib_save_LIBS
20283 fi
20284 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
20285 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
20286 if test $ac_cv_lib_xnet_socket = yes; then
20287   cat >>confdefs.h <<_ACEOF
20288 #define HAVE_LIBXNET 1
20289 _ACEOF
20290
20291   LIBS="-lxnet $LIBS"
20292
20293 fi
20294
20295
20296 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20297 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20298 if test "${ac_cv_lib_socket_socket+set}" = set; then
20299   echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301   ac_check_lib_save_LIBS=$LIBS
20302 LIBS="-lsocket  $LIBS"
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309
20310 /* Override any GCC internal prototype to avoid an error.
20311    Use char because int might match the return type of a GCC
20312    builtin and then its argument prototype would still apply.  */
20313 #ifdef __cplusplus
20314 extern "C"
20315 #endif
20316 char socket ();
20317 int
20318 main ()
20319 {
20320 return socket ();
20321   ;
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332   (eval "$ac_link") 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } && {
20339          test -z "$ac_c_werror_flag" ||
20340          test ! -s conftest.err
20341        } && test -s conftest$ac_exeext &&
20342        $as_test_x conftest$ac_exeext; then
20343   ac_cv_lib_socket_socket=yes
20344 else
20345   echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348         ac_cv_lib_socket_socket=no
20349 fi
20350
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352       conftest$ac_exeext conftest.$ac_ext
20353 LIBS=$ac_check_lib_save_LIBS
20354 fi
20355 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20356 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20357 if test $ac_cv_lib_socket_socket = yes; then
20358   cat >>confdefs.h <<_ACEOF
20359 #define HAVE_LIBSOCKET 1
20360 _ACEOF
20361
20362   LIBS="-lsocket $LIBS"
20363
20364 fi
20365
20366
20367 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
20368 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_inet_socket+set}" = set; then
20370   echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372   ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-linet  $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380
20381 /* Override any GCC internal prototype to avoid an error.
20382    Use char because int might match the return type of a GCC
20383    builtin and then its argument prototype would still apply.  */
20384 #ifdef __cplusplus
20385 extern "C"
20386 #endif
20387 char socket ();
20388 int
20389 main ()
20390 {
20391 return socket ();
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_link") 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } && {
20410          test -z "$ac_c_werror_flag" ||
20411          test ! -s conftest.err
20412        } && test -s conftest$ac_exeext &&
20413        $as_test_x conftest$ac_exeext; then
20414   ac_cv_lib_inet_socket=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419         ac_cv_lib_inet_socket=no
20420 fi
20421
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423       conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20425 fi
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
20427 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
20428 if test $ac_cv_lib_inet_socket = yes; then
20429   cat >>confdefs.h <<_ACEOF
20430 #define HAVE_LIBINET 1
20431 _ACEOF
20432
20433   LIBS="-linet $LIBS"
20434
20435 fi
20436
20437 fi
20438
20439
20440
20441 # -----------------------------------------------------------
20442 # Check whether user wants TCP wrappers support (default off)
20443 # -----------------------------------------------------------
20444 TCPW_MSG="no"
20445 WRAPLIBS=""
20446
20447 # Check whether --with-tcp-wrappers was given.
20448 if test "${with_tcp_wrappers+set}" = set; then
20449   withval=$with_tcp_wrappers;
20450     if test "x$withval" != "xno" ; then
20451        saved_LIBS="$LIBS"
20452        LIBS="$saved_LIBS -lwrap"
20453        { echo "$as_me:$LINENO: checking for libwrap" >&5
20454 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
20455        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
20456 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
20457 if test "${ac_cv_search_nanosleep+set}" = set; then
20458   echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460   ac_func_search_save_LIBS=$LIBS
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h.  */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h.  */
20467
20468 /* Override any GCC internal prototype to avoid an error.
20469    Use char because int might match the return type of a GCC
20470    builtin and then its argument prototype would still apply.  */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char nanosleep ();
20475 int
20476 main ()
20477 {
20478 return nanosleep ();
20479   ;
20480   return 0;
20481 }
20482 _ACEOF
20483 for ac_lib in '' rt; do
20484   if test -z "$ac_lib"; then
20485     ac_res="none required"
20486   else
20487     ac_res=-l$ac_lib
20488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20489   fi
20490   rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_link") 2>conftest.er1
20498   ac_status=$?
20499   grep -v '^ *+' conftest.er1 >conftest.err
20500   rm -f conftest.er1
20501   cat conftest.err >&5
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } && {
20504          test -z "$ac_c_werror_flag" ||
20505          test ! -s conftest.err
20506        } && test -s conftest$ac_exeext &&
20507        $as_test_x conftest$ac_exeext; then
20508   ac_cv_search_nanosleep=$ac_res
20509 else
20510   echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513
20514 fi
20515
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517       conftest$ac_exeext
20518   if test "${ac_cv_search_nanosleep+set}" = set; then
20519   break
20520 fi
20521 done
20522 if test "${ac_cv_search_nanosleep+set}" = set; then
20523   :
20524 else
20525   ac_cv_search_nanosleep=no
20526 fi
20527 rm conftest.$ac_ext
20528 LIBS=$ac_func_search_save_LIBS
20529 fi
20530 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
20531 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
20532 ac_res=$ac_cv_search_nanosleep
20533 if test "$ac_res" != no; then
20534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20535
20536 fi
20537
20538        cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544  #include <sys/types.h>
20545             #include <tcpd.h>
20546              int deny_severity = 0;
20547              int allow_severity = 0;
20548              struct request_info *req;
20549 int
20550 main ()
20551 {
20552  hosts_access(req);
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_link") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } && {
20571          test -z "$ac_c_werror_flag" ||
20572          test ! -s conftest.err
20573        } && test -s conftest$ac_exeext &&
20574        $as_test_x conftest$ac_exeext; then
20575
20576             { echo "$as_me:$LINENO: result: yes" >&5
20577 echo "${ECHO_T}yes" >&6; }
20578
20579 cat >>confdefs.h <<\_ACEOF
20580 #define HAVE_LIBWRAP 1
20581 _ACEOF
20582
20583             TCPW_MSG="yes"
20584             LIBS="$saved_LIBS"
20585             WRAPLIBS="-lwrap"
20586
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591
20592             LIBS="$saved_LIBS -lwrap -lnsl"
20593             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
20594             cat >conftest.$ac_ext <<_ACEOF
20595 /* confdefs.h.  */
20596 _ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h.  */
20600  #include <sys/types.h>
20601                  #include <tcpd.h>
20602                  int deny_severity = 0;
20603                  int allow_severity = 0;
20604                  struct request_info *req;
20605 int
20606 main ()
20607 {
20608  hosts_access(req);
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_link") 2>conftest.er1
20621   ac_status=$?
20622   grep -v '^ *+' conftest.er1 >conftest.err
20623   rm -f conftest.er1
20624   cat conftest.err >&5
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); } && {
20627          test -z "$ac_c_werror_flag" ||
20628          test ! -s conftest.err
20629        } && test -s conftest$ac_exeext &&
20630        $as_test_x conftest$ac_exeext; then
20631
20632                  { echo "$as_me:$LINENO: result: yes" >&5
20633 echo "${ECHO_T}yes" >&6; }
20634
20635 cat >>confdefs.h <<\_ACEOF
20636 #define HAVE_LIBWRAP 1
20637 _ACEOF
20638
20639                  TCPW_MSG="yes"
20640                  LIBS="$saved_LIBS"
20641                  WRAPLIBS="-lwrap"
20642
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
20648 echo "$as_me: error: *** libwrap missing" >&2;}
20649    { (exit 1); exit 1; }; }
20650
20651 fi
20652
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654       conftest$ac_exeext conftest.$ac_ext
20655
20656 fi
20657
20658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659       conftest$ac_exeext conftest.$ac_ext
20660     fi
20661
20662
20663 fi
20664
20665
20666 # -----------------------------------------------------------
20667 # Check whether OpenSSL is available
20668 # -----------------------------------------------------------
20669 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
20670 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
20671
20672 # Check whether --with-openssl was given.
20673 if test "${with_openssl+set}" = set; then
20674   withval=$with_openssl; with_openssl_directory=${withval}
20675 fi
20676
20677
20678 if test "x$with_openssl_directory" != "x"; then
20679         OPENSSL_LIBS="-lssl -lcrypto"
20680         OPENSSL_INC=""
20681
20682         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
20683                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
20684                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
20685         fi
20686
20687         saved_LIBS="${LIBS}"
20688         saved_CFLAGS="${CFLAGS}"
20689         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
20690         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
20691
20692         cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698  #include <openssl/ssl.h>
20699 int
20700 main ()
20701 {
20702  CRYPTO_set_id_callback(NULL);
20703   ;
20704   return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_link") 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } && {
20721          test -z "$ac_c_werror_flag" ||
20722          test ! -s conftest.err
20723        } && test -s conftest$ac_exeext &&
20724        $as_test_x conftest$ac_exeext; then
20725
20726                         support_tls="yes"
20727                         support_crypto="yes"
20728
20729 else
20730   echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733          support_tls="no"
20734
20735 fi
20736
20737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20738       conftest$ac_exeext conftest.$ac_ext
20739
20740         cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746  #include <openssl/evp.h>
20747 int
20748 main ()
20749 {
20750  EVP_sha512();
20751   ;
20752   return 0;
20753 }
20754 _ACEOF
20755 rm -f conftest.$ac_objext conftest$ac_exeext
20756 if { (ac_try="$ac_link"
20757 case "(($ac_try" in
20758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759   *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762   (eval "$ac_link") 2>conftest.er1
20763   ac_status=$?
20764   grep -v '^ *+' conftest.er1 >conftest.err
20765   rm -f conftest.er1
20766   cat conftest.err >&5
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } && {
20769          test -z "$ac_c_werror_flag" ||
20770          test ! -s conftest.err
20771        } && test -s conftest$ac_exeext &&
20772        $as_test_x conftest$ac_exeext; then
20773    ac_cv_openssl_sha2="yes"
20774 else
20775   echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778          ac_cv_openssl_sha2="no"
20779
20780 fi
20781
20782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20783       conftest$ac_exeext conftest.$ac_ext
20784
20785         # Solaris disables greater than 128+ bit encryption in their OpenSSL
20786         # implementation, presumably for export reasons. If 192bit AES
20787         # is available, we assume that we're running with a 'non-export'
20788         # openssl library.
20789         cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795  #include <openssl/evp.h>
20796 int
20797 main ()
20798 {
20799  EVP_aes_192_cbc();
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 rm -f conftest.$ac_objext conftest$ac_exeext
20805 if { (ac_try="$ac_link"
20806 case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_link") 2>conftest.er1
20812   ac_status=$?
20813   grep -v '^ *+' conftest.er1 >conftest.err
20814   rm -f conftest.er1
20815   cat conftest.err >&5
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } && {
20818          test -z "$ac_c_werror_flag" ||
20819          test ! -s conftest.err
20820        } && test -s conftest$ac_exeext &&
20821        $as_test_x conftest$ac_exeext; then
20822    ac_cv_openssl_export="no"
20823 else
20824   echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827          ac_cv_openssl_export="yes"
20828
20829 fi
20830
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832       conftest$ac_exeext conftest.$ac_ext
20833
20834         LIBS="${saved_LIBS}"
20835         CFLAGS="${saved_CFLAGS}"
20836
20837         if test "$support_tls" = "yes"; then
20838
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_OPENSSL 1
20841 _ACEOF
20842
20843
20844 cat >>confdefs.h <<\_ACEOF
20845 #define HAVE_TLS 1
20846 _ACEOF
20847
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_CRYPTO 1
20851 _ACEOF
20852
20853         fi
20854
20855         if test "$ac_cv_openssl_sha2" = "yes"; then
20856
20857 cat >>confdefs.h <<\_ACEOF
20858 #define HAVE_SHA2 1
20859 _ACEOF
20860
20861         fi
20862
20863         if test "$ac_cv_openssl_export" = "yes"; then
20864
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
20867 _ACEOF
20868
20869         fi
20870 else
20871         support_tls="no"
20872         support_crypto="no"
20873         OPENSSL_LIBS=""
20874         OPENSSL_INC=""
20875 fi
20876
20877 { echo "$as_me:$LINENO: result: $support_tls" >&5
20878 echo "${ECHO_T}$support_tls" >&6; }
20879
20880
20881
20882
20883 # -----------------------------------------------------------
20884 # dlopen is needed for plugins
20885 # -----------------------------------------------------------
20886 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
20887 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
20888 if test "${ac_cv_search_dlopen+set}" = set; then
20889   echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891   ac_func_search_save_LIBS=$LIBS
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h.  */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h.  */
20898
20899 /* Override any GCC internal prototype to avoid an error.
20900    Use char because int might match the return type of a GCC
20901    builtin and then its argument prototype would still apply.  */
20902 #ifdef __cplusplus
20903 extern "C"
20904 #endif
20905 char dlopen ();
20906 int
20907 main ()
20908 {
20909 return dlopen ();
20910   ;
20911   return 0;
20912 }
20913 _ACEOF
20914 for ac_lib in '' dl; do
20915   if test -z "$ac_lib"; then
20916     ac_res="none required"
20917   else
20918     ac_res=-l$ac_lib
20919     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20920   fi
20921   rm -f conftest.$ac_objext conftest$ac_exeext
20922 if { (ac_try="$ac_link"
20923 case "(($ac_try" in
20924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925   *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928   (eval "$ac_link") 2>conftest.er1
20929   ac_status=$?
20930   grep -v '^ *+' conftest.er1 >conftest.err
20931   rm -f conftest.er1
20932   cat conftest.err >&5
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); } && {
20935          test -z "$ac_c_werror_flag" ||
20936          test ! -s conftest.err
20937        } && test -s conftest$ac_exeext &&
20938        $as_test_x conftest$ac_exeext; then
20939   ac_cv_search_dlopen=$ac_res
20940 else
20941   echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944
20945 fi
20946
20947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20948       conftest$ac_exeext
20949   if test "${ac_cv_search_dlopen+set}" = set; then
20950   break
20951 fi
20952 done
20953 if test "${ac_cv_search_dlopen+set}" = set; then
20954   :
20955 else
20956   ac_cv_search_dlopen=no
20957 fi
20958 rm conftest.$ac_ext
20959 LIBS=$ac_func_search_save_LIBS
20960 fi
20961 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
20962 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
20963 ac_res=$ac_cv_search_dlopen
20964 if test "$ac_res" != no; then
20965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20966
20967 fi
20968
20969
20970 # ------------------------------------------
20971 # Where to place working dir
20972 # ------------------------------------------
20973 working_dir=`eval echo ${prefix}/var/bacula/working`
20974
20975 # Check whether --with-working-dir was given.
20976 if test "${with_working_dir+set}" = set; then
20977   withval=$with_working_dir;
20978        if test "x$withval" != "xno" ; then
20979               working_dir=$withval
20980        fi
20981
20982
20983 fi
20984
20985
20986
20987
20988 # ------------------------------------------------------------------
20989 # If the user has not set archivedir, we set our default as /tmp
20990 # ------------------------------------------------------------------
20991 archive_dir=/tmp
20992
20993 # Check whether --with-archivedir was given.
20994 if test "${with_archivedir+set}" = set; then
20995   withval=$with_archivedir;
20996        if test "x$withval" != "xno" ; then
20997               archivedir=$withval
20998        fi
20999
21000
21001 fi
21002
21003
21004
21005
21006
21007
21008 # ------------------------------------------
21009 # Where to place scriptdir (script files)
21010 # ------------------------------------------
21011 scriptdir=`eval echo ${sysconfdir}`
21012
21013 # Check whether --with-scriptdir was given.
21014 if test "${with_scriptdir+set}" = set; then
21015   withval=$with_scriptdir;
21016        if test "x$withval" != "xno" ; then
21017               scriptdir=$withval
21018        fi
21019
21020
21021 fi
21022
21023
21024
21025
21026
21027 # ------------------------------------------
21028 # Where to send dump email
21029 # ------------------------------------------
21030 dump_email=root@localhost
21031
21032 # Check whether --with-dump-email was given.
21033 if test "${with_dump_email+set}" = set; then
21034   withval=$with_dump_email;
21035        if test "x$withval" != "xno" ; then
21036               dump_email=$withval
21037        fi
21038
21039
21040 fi
21041
21042
21043
21044
21045 # ------------------------------------------
21046 # Where to send job email
21047 # ------------------------------------------
21048 job_email=root@localhost
21049
21050 # Check whether --with-job-email was given.
21051 if test "${with_job_email+set}" = set; then
21052   withval=$with_job_email;
21053        if test "x$withval" != "xno" ; then
21054               job_email=$withval
21055        fi
21056
21057
21058 fi
21059
21060
21061
21062
21063 # ------------------------------------------
21064 # Where to find smtp host
21065 # ------------------------------------------
21066 smtp_host=localhost
21067
21068 # Check whether --with-smtp_host was given.
21069 if test "${with_smtp_host+set}" = set; then
21070   withval=$with_smtp_host;
21071        if test "x$withval" != "xno" ; then
21072               smtp_host=$withval
21073        fi
21074
21075
21076 fi
21077
21078
21079
21080
21081
21082 # ------------------------------------
21083 # Where to place pid files
21084 # ------------------------------------
21085 piddir=/var/run
21086
21087 # Check whether --with-pid-dir was given.
21088 if test "${with_pid_dir+set}" = set; then
21089   withval=$with_pid_dir;
21090         if test "x$withval" != "xno" ; then
21091             piddir=$withval
21092         fi
21093
21094
21095 fi
21096
21097
21098 cat >>confdefs.h <<_ACEOF
21099 #define _PATH_BACULA_PIDDIR "$piddir"
21100 _ACEOF
21101
21102
21103
21104
21105 # ------------------------------------
21106 # Where to place subsys "lock file"
21107 # ------------------------------------
21108 subsysdir=/var/run/subsys
21109 if test -d /var/run/subsys; then
21110    subsysdir=/var/run/subsys
21111 elif test -d /var/lock/subsys; then
21112    subsysdir=/var/lock/subsys
21113 else
21114    subsysdir=/var/run/subsys
21115 fi
21116
21117 # Check whether --with-subsys-dir was given.
21118 if test "${with_subsys_dir+set}" = set; then
21119   withval=$with_subsys_dir;
21120         if test "x$withval" != "xno" ; then
21121             subsysdir=$withval
21122         fi
21123
21124
21125 fi
21126
21127
21128
21129
21130
21131
21132 # ------------------------------------
21133 # Where to start assigning ports
21134 # ------------------------------------
21135 baseport=9101
21136
21137 # Check whether --with-baseport was given.
21138 if test "${with_baseport+set}" = set; then
21139   withval=$with_baseport;
21140         if test "x$withval" != "xno" ; then
21141              baseport=$withval
21142         fi
21143
21144
21145 fi
21146
21147
21148
21149 dir_port=`expr $baseport`
21150 fd_port=`expr $baseport + 1`
21151 sd_port=`expr $fd_port + 1`
21152
21153
21154
21155
21156
21157
21158 # ------------------------------------------
21159 # Generate passwords
21160 # ------------------------------------------
21161 dir_password=
21162
21163 # Check whether --with-dir-password was given.
21164 if test "${with_dir_password+set}" = set; then
21165   withval=$with_dir_password;
21166        if test "x$withval" != "xno" ; then
21167            dir_password=$withval
21168        fi
21169
21170
21171 fi
21172
21173
21174 if test "x$dir_password" = "x" ; then
21175    if test "x$OPENSSL" = "xnone" ; then
21176       key=`autoconf/randpass 33`
21177    else
21178       key=`openssl rand -base64 33`
21179    fi
21180    dir_password=$key
21181 fi
21182
21183 fd_password=
21184
21185 # Check whether --with-fd-password was given.
21186 if test "${with_fd_password+set}" = set; then
21187   withval=$with_fd_password;
21188        if test "x$withval" != "xno" ; then
21189            fd_password=$withval
21190        fi
21191
21192
21193 fi
21194
21195
21196 if test "x$fd_password" = "x" ; then
21197    if test "x$OPENSSL" = "xnone" ; then
21198       key=`autoconf/randpass 37`
21199    else
21200       key=`openssl rand -base64 33`
21201    fi
21202    fd_password=$key
21203 fi
21204
21205 sd_password=
21206
21207 # Check whether --with-sd-password was given.
21208 if test "${with_sd_password+set}" = set; then
21209   withval=$with_sd_password;
21210        if test "x$withval" != "xno" ; then
21211            sd_password=$withval
21212        fi
21213
21214
21215 fi
21216
21217
21218 if test "x$sd_password" = "x" ; then
21219    if test "x$OPENSSL" = "xnone" ; then
21220       key=`autoconf/randpass 41`
21221    else
21222       key=`openssl rand -base64 33`
21223    fi
21224    sd_password=$key
21225 fi
21226
21227 mon_dir_password=
21228
21229 # Check whether --with-mon-dir-password was given.
21230 if test "${with_mon_dir_password+set}" = set; then
21231   withval=$with_mon_dir_password;
21232        if test "x$withval" != "xno" ; then
21233            mon_dir_password=$withval
21234        fi
21235
21236
21237 fi
21238
21239
21240 if test "x$mon_dir_password" = "x" ; then
21241    if test "x$OPENSSL" = "xnone" ; then
21242       key=`autoconf/randpass 33`
21243    else
21244       key=`openssl rand -base64 33`
21245    fi
21246    mon_dir_password=$key
21247 fi
21248
21249 mon_fd_password=
21250
21251 # Check whether --with-mon-fd-password was given.
21252 if test "${with_mon_fd_password+set}" = set; then
21253   withval=$with_mon_fd_password;
21254        if test "x$withval" != "xno" ; then
21255            mon_fd_password=$withval
21256        fi
21257
21258
21259 fi
21260
21261
21262 if test "x$mon_fd_password" = "x" ; then
21263    if test "x$OPENSSL" = "xnone" ; then
21264       key=`autoconf/randpass 37`
21265    else
21266       key=`openssl rand -base64 33`
21267    fi
21268    mon_fd_password=$key
21269 fi
21270
21271 mon_sd_password=
21272
21273 # Check whether --with-mon-sd-password was given.
21274 if test "${with_mon_sd_password+set}" = set; then
21275   withval=$with_mon_sd_password;
21276        if test "x$withval" != "xno" ; then
21277            mon_sd_password=$withval
21278        fi
21279
21280
21281 fi
21282
21283
21284 if test "x$mon_sd_password" = "x" ; then
21285    if test "x$OPENSSL" = "xnone" ; then
21286       key=`autoconf/randpass 41`
21287    else
21288       key=`openssl rand -base64 33`
21289    fi
21290    mon_sd_password=$key
21291 fi
21292
21293
21294
21295
21296
21297
21298
21299
21300 #
21301 # Pickup any database name
21302 #
21303 db_name=bacula
21304
21305 # Check whether --with-db_name was given.
21306 if test "${with_db_name+set}" = set; then
21307   withval=$with_db_name;
21308         if test "x$withval" != "x" ; then
21309              db_name=$withval
21310         fi
21311
21312
21313 fi
21314
21315
21316
21317 db_user=bacula
21318
21319 # Check whether --with-db_user was given.
21320 if test "${with_db_user+set}" = set; then
21321   withval=$with_db_user;
21322         if test "x$withval" != "x" ; then
21323              db_user=$withval
21324         fi
21325
21326
21327 fi
21328
21329
21330
21331 db_password=
21332
21333 # Check whether --with-db_password was given.
21334 if test "${with_db_password+set}" = set; then
21335   withval=$with_db_password;
21336         if test "x$withval" != "x" ; then
21337              db_password=$withval
21338         fi
21339
21340
21341 fi
21342
21343
21344
21345 #
21346 # Pickup a database port
21347 #
21348 db_port=" "
21349
21350 # Check whether --with-db_port was given.
21351 if test "${with_db_port+set}" = set; then
21352   withval=$with_db_port;
21353         if test "x$withval" != "x" ; then
21354              db_port=$withval
21355         fi
21356
21357
21358 fi
21359
21360
21361
21362 #
21363 # Handle users and groups for each daemon
21364 #
21365 dir_user=
21366
21367 # Check whether --with-dir_user was given.
21368 if test "${with_dir_user+set}" = set; then
21369   withval=$with_dir_user;
21370         if test "x$withval" != "x" ; then
21371              dir_user=$withval
21372         fi
21373
21374
21375 fi
21376
21377
21378 dir_group=
21379
21380 # Check whether --with-dir_group was given.
21381 if test "${with_dir_group+set}" = set; then
21382   withval=$with_dir_group;
21383         if test "x$withval" != "x" ; then
21384              dir_group=$withval
21385         fi
21386
21387
21388 fi
21389
21390
21391 sd_user=
21392
21393 # Check whether --with-sd_user was given.
21394 if test "${with_sd_user+set}" = set; then
21395   withval=$with_sd_user;
21396         if test "x$withval" != "x" ; then
21397              sd_user=$withval
21398         fi
21399
21400
21401 fi
21402
21403
21404 sd_group=
21405
21406 # Check whether --with-sd_group was given.
21407 if test "${with_sd_group+set}" = set; then
21408   withval=$with_sd_group;
21409         if test "x$withval" != "x" ; then
21410              sd_group=$withval
21411         fi
21412
21413
21414 fi
21415
21416
21417 fd_user=
21418
21419 # Check whether --with-fd_user was given.
21420 if test "${with_fd_user+set}" = set; then
21421   withval=$with_fd_user;
21422         if test "x$withval" != "x" ; then
21423              fd_user=$withval
21424         fi
21425
21426
21427 fi
21428
21429
21430 fd_group=
21431
21432 # Check whether --with-fd_group was given.
21433 if test "${with_fd_group+set}" = set; then
21434   withval=$with_fd_group;
21435         if test "x$withval" != "x" ; then
21436              fd_group=$withval
21437         fi
21438
21439
21440 fi
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450 #
21451 # allow setting default executable permissions
21452 #
21453 SBINPERM=0754
21454
21455 # Check whether --with-sbin-perm was given.
21456 if test "${with_sbin_perm+set}" = set; then
21457   withval=$with_sbin_perm;
21458         if test "x$withval" != "x" ; then
21459             SBINPERM=$withval
21460         fi
21461
21462
21463 fi
21464
21465
21466
21467
21468 # ------------------------------------------------
21469 # Bacula check for various SQL database engines
21470 # ------------------------------------------------
21471 SQL_LIB=
21472
21473 db_found=no
21474 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
21475 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
21476
21477 # Check whether --with-postgresql was given.
21478 if test "${with_postgresql+set}" = set; then
21479   withval=$with_postgresql;
21480   if test "$withval" != "no"; then
21481       if test "$db_found" = "yes"; then
21482           { echo "$as_me:$LINENO: result: error" >&5
21483 echo "${ECHO_T}error" >&6; }
21484           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
21485 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
21486    { (exit 1); exit 1; }; };
21487       fi
21488       if test "$withval" = "yes"; then
21489           PG_CONFIG=`which pg_config`
21490           if test -n "$PG_CONFIG";then
21491               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
21492               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
21493               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
21494           elif test -f /usr/local/include/libpq-fe.h; then
21495               POSTGRESQL_INCDIR=/usr/local/include
21496               if test -d /usr/local/lib64; then
21497                  POSTGRESQL_LIBDIR=/usr/local/lib64
21498               else
21499                  POSTGRESQL_LIBDIR=/usr/local/lib
21500               fi
21501               POSTGRESQL_BINDIR=/usr/local/bin
21502           elif test -f /usr/include/libpq-fe.h; then
21503               POSTGRESQL_INCDIR=/usr/include
21504               if test -d /usr/lib64; then
21505                  POSTGRESQL_LIBDIR=/usr/lib64
21506               else
21507                  POSTGRESQL_LIBDIR=/usr/lib
21508               fi
21509               POSTGRESQL_BINDIR=/usr/bin
21510           elif test -f /usr/include/pgsql/libpq-fe.h; then
21511               POSTGRESQL_INCDIR=/usr/include/pgsql
21512               if test -d /usr/lib64/pgsql; then
21513                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
21514               else
21515                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
21516               fi
21517               POSTGRESQL_BINDIR=/usr/bin
21518           elif test -f /usr/include/postgresql/libpq-fe.h; then
21519               POSTGRESQL_INCDIR=/usr/include/postgresql
21520               if test -d /usr/lib64/postgresql; then
21521                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
21522               else
21523                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
21524               fi
21525               POSTGRESQL_BINDIR=/usr/bin
21526           else
21527               { echo "$as_me:$LINENO: result: no" >&5
21528 echo "${ECHO_T}no" >&6; }
21529               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
21530 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
21531    { (exit 1); exit 1; }; }
21532           fi
21533       elif test -f $withval/include/libpq-fe.h; then
21534           POSTGRESQL_INCDIR=$withval/include
21535           POSTGRESQL_LIBDIR=$withval/lib
21536           POSTGRESQL_BINDIR=$withval/bin
21537       elif test -f $withval/include/postgresql/libpq-fe.h; then
21538           POSTGRESQL_INCDIR=$withval/include/postgresql
21539      if test -d $withval/lib64; then
21540          POSTGRESQL_LIBDIR=$withval/lib64
21541      else
21542          POSTGRESQL_LIBDIR=$withval/lib
21543      fi
21544           POSTGRESQL_BINDIR=$withval/bin
21545       else
21546           { echo "$as_me:$LINENO: result: no" >&5
21547 echo "${ECHO_T}no" >&6; }
21548           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
21549 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
21550    { (exit 1); exit 1; }; }
21551       fi
21552       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
21553       { echo "$as_me:$LINENO: checking for crypt" >&5
21554 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
21555 if test "${ac_cv_func_crypt+set}" = set; then
21556   echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558   cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
21565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21566 #define crypt innocuous_crypt
21567
21568 /* System header to define __stub macros and hopefully few prototypes,
21569     which can conflict with char crypt (); below.
21570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21571     <limits.h> exists even on freestanding compilers.  */
21572
21573 #ifdef __STDC__
21574 # include <limits.h>
21575 #else
21576 # include <assert.h>
21577 #endif
21578
21579 #undef crypt
21580
21581 /* Override any GCC internal prototype to avoid an error.
21582    Use char because int might match the return type of a GCC
21583    builtin and then its argument prototype would still apply.  */
21584 #ifdef __cplusplus
21585 extern "C"
21586 #endif
21587 char crypt ();
21588 /* The GNU C library defines this for functions which it implements
21589     to always fail with ENOSYS.  Some functions are actually named
21590     something starting with __ and the normal name is an alias.  */
21591 #if defined __stub_crypt || defined __stub___crypt
21592 choke me
21593 #endif
21594
21595 int
21596 main ()
21597 {
21598 return crypt ();
21599   ;
21600   return 0;
21601 }
21602 _ACEOF
21603 rm -f conftest.$ac_objext conftest$ac_exeext
21604 if { (ac_try="$ac_link"
21605 case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610   (eval "$ac_link") 2>conftest.er1
21611   ac_status=$?
21612   grep -v '^ *+' conftest.er1 >conftest.err
21613   rm -f conftest.er1
21614   cat conftest.err >&5
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); } && {
21617          test -z "$ac_c_werror_flag" ||
21618          test ! -s conftest.err
21619        } && test -s conftest$ac_exeext &&
21620        $as_test_x conftest$ac_exeext; then
21621   ac_cv_func_crypt=yes
21622 else
21623   echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626         ac_cv_func_crypt=no
21627 fi
21628
21629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21630       conftest$ac_exeext conftest.$ac_ext
21631 fi
21632 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
21633 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
21634 if test $ac_cv_func_crypt = yes; then
21635   :
21636 else
21637   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21638 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21639 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21640   echo $ECHO_N "(cached) $ECHO_C" >&6
21641 else
21642   ac_check_lib_save_LIBS=$LIBS
21643 LIBS="-lcrypt  $LIBS"
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h.  */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h.  */
21650
21651 /* Override any GCC internal prototype to avoid an error.
21652    Use char because int might match the return type of a GCC
21653    builtin and then its argument prototype would still apply.  */
21654 #ifdef __cplusplus
21655 extern "C"
21656 #endif
21657 char crypt ();
21658 int
21659 main ()
21660 {
21661 return crypt ();
21662   ;
21663   return 0;
21664 }
21665 _ACEOF
21666 rm -f conftest.$ac_objext conftest$ac_exeext
21667 if { (ac_try="$ac_link"
21668 case "(($ac_try" in
21669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670   *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673   (eval "$ac_link") 2>conftest.er1
21674   ac_status=$?
21675   grep -v '^ *+' conftest.er1 >conftest.err
21676   rm -f conftest.er1
21677   cat conftest.err >&5
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); } && {
21680          test -z "$ac_c_werror_flag" ||
21681          test ! -s conftest.err
21682        } && test -s conftest$ac_exeext &&
21683        $as_test_x conftest$ac_exeext; then
21684   ac_cv_lib_crypt_crypt=yes
21685 else
21686   echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21688
21689         ac_cv_lib_crypt_crypt=no
21690 fi
21691
21692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21693       conftest$ac_exeext conftest.$ac_ext
21694 LIBS=$ac_check_lib_save_LIBS
21695 fi
21696 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21697 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21698 if test $ac_cv_lib_crypt_crypt = yes; then
21699   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
21700 fi
21701
21702 fi
21703
21704       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
21705       SQL_LFLAGS=$POSTGRESQL_LFLAGS
21706       SQL_BINDIR=$POSTGRESQL_BINDIR
21707       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
21708
21709       cat >>confdefs.h <<\_ACEOF
21710 #define HAVE_POSTGRESQL 1
21711 _ACEOF
21712
21713       { echo "$as_me:$LINENO: result: yes" >&5
21714 echo "${ECHO_T}yes" >&6; }
21715       db_found=yes
21716       support_postgresql=yes
21717       db_type=PostgreSQL
21718       DB_TYPE=postgresql
21719   else
21720       { echo "$as_me:$LINENO: result: no" >&5
21721 echo "${ECHO_T}no" >&6; }
21722   fi
21723
21724 else
21725
21726   { echo "$as_me:$LINENO: result: no" >&5
21727 echo "${ECHO_T}no" >&6; }
21728
21729 fi
21730
21731
21732
21733
21734
21735
21736
21737
21738 db_found=no
21739 { echo "$as_me:$LINENO: checking for MySQL support" >&5
21740 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
21741
21742 # Check whether --with-mysql was given.
21743 if test "${with_mysql+set}" = set; then
21744   withval=$with_mysql;
21745   if test "$withval" != "no"; then
21746         if test "$withval" = "yes"; then
21747            if test -f /usr/local/mysql/include/mysql/mysql.h; then
21748                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
21749                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
21750                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
21751                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21752                    else
21753                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21754                    fi
21755                    MYSQL_BINDIR=/usr/local/mysql/bin
21756            elif test -f /usr/include/mysql/mysql.h; then
21757                    MYSQL_INCDIR=/usr/include/mysql
21758                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
21759                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
21760                            MYSQL_LIBDIR=/usr/lib64/mysql
21761                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
21762                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
21763                            MYSQL_LIBDIR=/usr/lib/mysql
21764                    else
21765                            MYSQL_LIBDIR=/usr/lib
21766                    fi
21767                    MYSQL_BINDIR=/usr/bin
21768            elif test -f /usr/include/mysql.h; then
21769                    MYSQL_INCDIR=/usr/include
21770                    if test -f /usr/lib64/libmysqlclient_r.a \
21771                         -o -f /usr/lib64/libmysqlclient_r.so; then
21772                            MYSQL_LIBDIR=/usr/lib64
21773                    else
21774                            MYSQL_LIBDIR=/usr/lib
21775                    fi
21776                    MYSQL_BINDIR=/usr/bin
21777            elif test -f /usr/local/include/mysql/mysql.h; then
21778                    MYSQL_INCDIR=/usr/local/include/mysql
21779                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
21780                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
21781                            MYSQL_LIBDIR=/usr/local/lib64/mysql
21782                    else
21783                            MYSQL_LIBDIR=/usr/local/lib/mysql
21784                    fi
21785                    MYSQL_BINDIR=/usr/local/bin
21786            elif test -f /usr/local/include/mysql.h; then
21787                    MYSQL_INCDIR=/usr/local/include
21788                    if test -f /usr/local/lib64/libmysqlclient_r.a \
21789                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
21790                            MYSQL_LIBDIR=/usr/local/lib64
21791                    else
21792                            MYSQL_LIBDIR=/usr/local/lib
21793                    fi
21794                    MYSQL_BINDIR=/usr/local/bin
21795            else
21796               { echo "$as_me:$LINENO: result: no" >&5
21797 echo "${ECHO_T}no" >&6; }
21798               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21799 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21800    { (exit 1); exit 1; }; }
21801            fi
21802         else
21803            if test -f $withval/include/mysql/mysql.h; then
21804               MYSQL_INCDIR=$withval/include/mysql
21805               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
21806                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
21807                  MYSQL_LIBDIR=$withval/lib64/mysql
21808               else
21809                  MYSQL_LIBDIR=$withval/lib/mysql
21810                  # Solaris ...
21811                  if test -f $withval/lib/libmysqlclient_r.so; then
21812                     MYSQL_LIBDIR=$withval/lib
21813                  fi
21814               fi
21815               MYSQL_BINDIR=$withval/bin
21816            elif test -f $withval/include/mysql.h; then
21817               MYSQL_INCDIR=$withval/include
21818               if test -f $withval/lib64/libmysqlclient_r.a \
21819                    -o -f $withval/lib64/libmysqlclient_r.so; then
21820                  MYSQL_LIBDIR=$withval/lib64
21821               else
21822                  MYSQL_LIBDIR=$withval/lib
21823               fi
21824               MYSQL_BINDIR=$withval/bin
21825            else
21826               { echo "$as_me:$LINENO: result: no" >&5
21827 echo "${ECHO_T}no" >&6; }
21828               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21829 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21830    { (exit 1); exit 1; }; }
21831            fi
21832         fi
21833     SQL_INCLUDE=-I$MYSQL_INCDIR
21834     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
21835          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
21836        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
21837        cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_THREAD_SAFE_MYSQL 1
21839 _ACEOF
21840
21841     fi
21842     SQL_BINDIR=$MYSQL_BINDIR
21843     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
21844
21845     cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_MYSQL 1
21847 _ACEOF
21848
21849     { echo "$as_me:$LINENO: result: yes" >&5
21850 echo "${ECHO_T}yes" >&6; }
21851     db_found=yes
21852     support_mysql=yes
21853     db_type=MySQL
21854     DB_TYPE=mysql
21855
21856   else
21857         { echo "$as_me:$LINENO: result: no" >&5
21858 echo "${ECHO_T}no" >&6; }
21859   fi
21860
21861
21862 fi
21863
21864
21865
21866 # Check whether --with-embedded-mysql was given.
21867 if test "${with_embedded_mysql+set}" = set; then
21868   withval=$with_embedded_mysql;
21869   if test "$withval" != "no"; then
21870         if test "$withval" = "yes"; then
21871                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
21872                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
21873                         if test -d /usr/local/mysql/lib64/mysql; then
21874                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
21875                         else
21876                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
21877                         fi
21878                         MYSQL_BINDIR=/usr/local/mysql/bin
21879                 elif test -f /usr/include/mysql/mysql.h; then
21880                         MYSQL_INCDIR=/usr/include/mysql
21881                         if test -d /usr/lib64/mysql; then
21882                                 MYSQL_LIBDIR=/usr/lib64/mysql
21883                         else
21884                                 MYSQL_LIBDIR=/usr/lib/mysql
21885                         fi
21886                         MYSQL_BINDIR=/usr/bin
21887                 elif test -f /usr/include/mysql.h; then
21888                         MYSQL_INCDIR=/usr/include
21889                         if test -d /usr/lib64; then
21890                                 MYSQL_LIBDIR=/usr/lib64
21891                         else
21892                                 MYSQL_LIBDIR=/usr/lib
21893                         fi
21894                         MYSQL_BINDIR=/usr/bin
21895                 elif test -f /usr/local/include/mysql/mysql.h; then
21896                         MYSQL_INCDIR=/usr/local/include/mysql
21897                         if test -d /usr/local/lib64/mysql; then
21898                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
21899                         else
21900                                 MYSQL_LIBDIR=/usr/local/lib/mysql
21901                         fi
21902                         MYSQL_BINDIR=/usr/local/bin
21903                 elif test -f /usr/local/include/mysql.h; then
21904                         MYSQL_INCDIR=/usr/local/include
21905                         if test -d /usr/local/lib64; then
21906                                 MYSQL_LIBDIR=/usr/local/lib64
21907                         else
21908                                 MYSQL_LIBDIR=/usr/local/lib
21909                         fi
21910                         MYSQL_BINDIR=/usr/local/bin
21911                 else
21912                    { echo "$as_me:$LINENO: result: no" >&5
21913 echo "${ECHO_T}no" >&6; }
21914                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
21915 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
21916    { (exit 1); exit 1; }; }
21917                 fi
21918         else
21919                 if test -f $withval/include/mysql/mysql.h; then
21920                         MYSQL_INCDIR=$withval/include/mysql
21921                         if test -d $withval/lib64/mysql; then
21922                                 MYSQL_LIBDIR=$withval/lib64/mysql
21923                         else
21924                                 MYSQL_LIBDIR=$withval/lib/mysql
21925                         fi
21926                         MYSQL_BINDIR=$withval/bin
21927                 elif test -f $withval/include/mysql.h; then
21928                         MYSQL_INCDIR=$withval/include
21929                         if test -d $withval/lib64; then
21930                                 MYSQL_LIBDIR=$withval/lib64
21931                         else
21932                                 MYSQL_LIBDIR=$withval/lib
21933                         fi
21934                         MYSQL_BINDIR=$withval/bin
21935                 else
21936                    { echo "$as_me:$LINENO: result: no" >&5
21937 echo "${ECHO_T}no" >&6; }
21938                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
21939 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
21940    { (exit 1); exit 1; }; }
21941                 fi
21942         fi
21943     SQL_INCLUDE=-I$MYSQL_INCDIR
21944     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
21945     SQL_BINDIR=$MYSQL_BINDIR
21946     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
21947
21948     cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_MYSQL 1
21950 _ACEOF
21951
21952     cat >>confdefs.h <<\_ACEOF
21953 #define HAVE_EMBEDDED_MYSQL 1
21954 _ACEOF
21955
21956     { echo "$as_me:$LINENO: result: yes" >&5
21957 echo "${ECHO_T}yes" >&6; }
21958     db_found=yes
21959     support_mysql=yes
21960     db_type=MySQL
21961     DB_TYPE=mysql
21962
21963   else
21964         { echo "$as_me:$LINENO: result: no" >&5
21965 echo "${ECHO_T}no" >&6; }
21966   fi
21967
21968
21969 fi
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980 db_found=no
21981 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
21982 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
21983
21984 # Check whether --with-sqlite3 was given.
21985 if test "${with_sqlite3+set}" = set; then
21986   withval=$with_sqlite3;
21987   if test "$withval" != "no"; then
21988      if test "$withval" = "yes"; then
21989         if test -f /usr/local/include/sqlite3.h; then
21990            SQLITE_INCDIR=/usr/local/include
21991            if test -d /usr/local/lib64; then
21992               SQLITE_LIBDIR=/usr/local/lib64
21993            else
21994               SQLITE_LIBDIR=/usr/local/lib
21995            fi
21996            SQLITE_BINDIR=/usr/local/bin
21997         elif test -f /usr/include/sqlite3.h; then
21998            SQLITE_INCDIR=/usr/include
21999            if test -d /usr/lib64; then
22000               SQLITE_LIBDIR=/usr/lib64
22001            else
22002               SQLITE_LIBDIR=/usr/lib
22003            fi
22004            SQLITE_BINDIR=/usr/bin
22005         elif test -f $prefix/include/sqlite3.h; then
22006            SQLITE_INCDIR=$prefix/include
22007            if test -d $prefix/lib64; then
22008               SQLITE_LIBDIR=$prefix/lib64
22009            else
22010               SQLITE_LIBDIR=$prefix/lib
22011            fi
22012            SQLITE_BINDIR=$prefix/bin
22013         else
22014            { echo "$as_me:$LINENO: result: no" >&5
22015 echo "${ECHO_T}no" >&6; }
22016            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
22017 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
22018    { (exit 1); exit 1; }; }
22019         fi
22020      else
22021         if test -f $withval/sqlite3.h; then
22022            SQLITE_INCDIR=$withval
22023            SQLITE_LIBDIR=$withval
22024            SQLITE_BINDIR=$withval
22025         elif test -f $withval/include/sqlite3.h; then
22026            SQLITE_INCDIR=$withval/include
22027            if test -d $withval/lib64; then
22028               SQLITE_LIBDIR=$withval/lib64
22029            else
22030               SQLITE_LIBDIR=$withval/lib
22031            fi
22032            SQLITE_BINDIR=$withval/bin
22033         else
22034            { echo "$as_me:$LINENO: result: no" >&5
22035 echo "${ECHO_T}no" >&6; }
22036            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
22037 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
22038    { (exit 1); exit 1; }; }
22039         fi
22040      fi
22041      SQL_INCLUDE=-I$SQLITE_INCDIR
22042      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
22043      SQL_BINDIR=$SQLITE_BINDIR
22044      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
22045
22046      cat >>confdefs.h <<\_ACEOF
22047 #define HAVE_SQLITE3 1
22048 _ACEOF
22049
22050      { echo "$as_me:$LINENO: result: yes" >&5
22051 echo "${ECHO_T}yes" >&6; }
22052      db_found=yes
22053      support_sqlite3=yes
22054      db_type=SQLite3
22055      DB_TYPE=sqlite3
22056
22057   else
22058      { echo "$as_me:$LINENO: result: no" >&5
22059 echo "${ECHO_T}no" >&6; }
22060   fi
22061
22062 else
22063
22064   { echo "$as_me:$LINENO: result: no" >&5
22065 echo "${ECHO_T}no" >&6; }
22066
22067 fi
22068
22069
22070
22071
22072
22073
22074
22075
22076 db_found=no
22077 { echo "$as_me:$LINENO: checking for SQLite support" >&5
22078 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
22079
22080 # Check whether --with-sqlite was given.
22081 if test "${with_sqlite+set}" = set; then
22082   withval=$with_sqlite;
22083   if test "$withval" != "no"; then
22084      if test "$withval" = "yes"; then
22085         if test -f /usr/local/include/sqlite.h; then
22086            SQLITE_INCDIR=/usr/local/include
22087            if test -d /usr/local/lib64; then
22088               SQLITE_LIBDIR=/usr/local/lib64
22089            else
22090               SQLITE_LIBDIR=/usr/local/lib
22091            fi
22092            SQLITE_BINDIR=/usr/local/bin
22093         elif test -f /usr/include/sqlite.h; then
22094            SQLITE_INCDIR=/usr/include
22095            if test -d /usr/lib64; then
22096               SQLITE_LIBDIR=/usr/lib64
22097            else
22098               SQLITE_LIBDIR=/usr/lib
22099            fi
22100            SQLITE_BINDIR=/usr/bin
22101         elif test -f $prefix/include/sqlite.h; then
22102            SQLITE_INCDIR=$prefix/include
22103            if test -d $prefix/lib64; then
22104               SQLITE_LIBDIR=$prefix/lib64
22105            else
22106               SQLITE_LIBDIR=$prefix/lib
22107            fi
22108            SQLITE_BINDIR=$prefix/bin
22109         else
22110            { echo "$as_me:$LINENO: result: no" >&5
22111 echo "${ECHO_T}no" >&6; }
22112            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
22113 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
22114    { (exit 1); exit 1; }; }
22115         fi
22116      else
22117         if test -f $withval/sqlite.h; then
22118            SQLITE_INCDIR=$withval
22119            SQLITE_LIBDIR=$withval
22120            SQLITE_BINDIR=$withval
22121         elif test -f $withval/include/sqlite.h; then
22122            SQLITE_INCDIR=$withval/include
22123            if test -d $withval/lib64; then
22124               SQLITE_LIBDIR=$withval/lib64
22125            else
22126               SQLITE_LIBDIR=$withval/lib
22127            fi
22128            SQLITE_BINDIR=$withval/bin
22129         else
22130            { echo "$as_me:$LINENO: result: no" >&5
22131 echo "${ECHO_T}no" >&6; }
22132            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
22133 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
22134    { (exit 1); exit 1; }; }
22135         fi
22136      fi
22137      SQL_INCLUDE=-I$SQLITE_INCDIR
22138      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
22139      SQL_BINDIR=$SQLITE_BINDIR
22140      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
22141
22142      cat >>confdefs.h <<\_ACEOF
22143 #define HAVE_SQLITE 1
22144 _ACEOF
22145
22146      { echo "$as_me:$LINENO: result: yes" >&5
22147 echo "${ECHO_T}yes" >&6; }
22148      db_found=yes
22149      support_sqlite=yes
22150      db_type=SQLite
22151      DB_TYPE=sqlite
22152
22153   else
22154      { echo "$as_me:$LINENO: result: no" >&5
22155 echo "${ECHO_T}no" >&6; }
22156   fi
22157
22158 else
22159
22160   { echo "$as_me:$LINENO: result: no" >&5
22161 echo "${ECHO_T}no" >&6; }
22162
22163 fi
22164
22165
22166
22167
22168
22169
22170
22171
22172 db_found=no
22173 { echo "$as_me:$LINENO: checking for DBI support" >&5
22174 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
22175
22176 # Check whether --with-dbi was given.
22177 if test "${with_dbi+set}" = set; then
22178   withval=$with_dbi;
22179   if test "$withval" != "no"; then
22180      if test "$withval" = "yes"; then
22181         if test -f /usr/local/include/dbi/dbi.h; then
22182            DBI_INCDIR=/usr/local/dbi/include
22183            if test -d /usr/local/lib64; then
22184               DBI_LIBDIR=/usr/local/lib64
22185            else
22186               DBI_LIBDIR=/usr/local/lib
22187            fi
22188            DBI_BINDIR=/usr/local/bin
22189         elif test -f /usr/include/dbi/dbi.h; then
22190            DBI_INCDIR=/usr/include
22191            if test -d /usr/lib64; then
22192               DBI_LIBDIR=/usr/lib64
22193            else
22194               DBI_LIBDIR=/usr/lib
22195            fi
22196            DBI_BINDIR=/usr/bin
22197         elif test -f $prefix/include/dbi/dbi.h; then
22198            DBI_INCDIR=$prefix/include
22199            if test -d $prefix/lib64; then
22200               DBI_LIBDIR=$prefix/lib64
22201            else
22202               DBI_LIBDIR=$prefix/lib
22203            fi
22204            DBI_BINDIR=$prefix/bin
22205         else
22206            { echo "$as_me:$LINENO: result: no" >&5
22207 echo "${ECHO_T}no" >&6; }
22208            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
22209 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
22210    { (exit 1); exit 1; }; }
22211         fi
22212         if test -d /usr/local/lib/dbd; then
22213            DRIVERDIR=/usr/local/lib/dbd
22214            if test -d /usr/local/lib64/dbd; then
22215               DRIVERDIR=/usr/local/lib64/dbd
22216            else
22217               DRIVERDIR=/usr/local/lib/dbd
22218            fi
22219         elif test -d /usr/lib/dbd; then
22220            DRIVERDIR=/usr/lib/dbd
22221            if test -d /usr/lib64/dbd; then
22222               DRIVERDIR=/usr/lib64/dbd
22223            else
22224               DRIVERDIR=/usr/lib/dbd
22225            fi
22226         elif test -d $prefix/lib/dbd; then
22227            if test -d $prefix/lib64/dbd; then
22228               DRIVERDIR=$prefix/lib64/dbd
22229            else
22230               DRIVERDIR=$prefix/lib/dbd
22231            fi
22232         else
22233            { echo "$as_me:$LINENO: result: no" >&5
22234 echo "${ECHO_T}no" >&6; }
22235            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
22236 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
22237    { (exit 1); exit 1; }; }
22238         fi
22239      else
22240         if test -f $withval/dbi.h; then
22241            DBI_INCDIR=$withval
22242            DBI_LIBDIR=$withval
22243            DBI_BINDIR=$withval
22244         elif test -f $withval/include/dbi/dbi.h; then
22245            DBI_INCDIR=$withval/include
22246            if test -d $withval/lib64; then
22247               DBI_LIBDIR=$withval/lib64
22248            else
22249               DBI_LIBDIR=$withval/lib
22250            fi
22251            DBI_BINDIR=$withval/bin
22252         else
22253            { echo "$as_me:$LINENO: result: no" >&5
22254 echo "${ECHO_T}no" >&6; }
22255            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
22256 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
22257    { (exit 1); exit 1; }; }
22258         fi
22259         if test -d $withval/dbd; then
22260            DRIVERDIR=$withval/dbd
22261         elif test -d $withval/lib/; then
22262            if test -d $withval/lib64/dbd; then
22263               DRIVERDIR=$withval/lib64/dbd
22264            else
22265               DRIVERDIR=$withval/lib/dbd
22266            fi
22267         else
22268            { echo "$as_me:$LINENO: result: no" >&5
22269 echo "${ECHO_T}no" >&6; }
22270            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
22271 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
22272    { (exit 1); exit 1; }; }
22273         fi
22274      fi
22275      SQL_INCLUDE=-I$DBI_INCDIR
22276      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
22277      SQL_BINDIR=$DBI_BINDIR
22278      SQL_LIB=$DBI_LIBDIR/libdbi.a
22279      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
22280
22281
22282 cat >>confdefs.h <<\_ACEOF
22283 #define HAVE_DBI 1
22284 _ACEOF
22285
22286      { echo "$as_me:$LINENO: result: yes" >&5
22287 echo "${ECHO_T}yes" >&6; }
22288      db_found=yes
22289      support_dbi=yes
22290      db_type=DBI
22291      DB_TYPE=dbi
22292      uncomment_dbi=" "
22293
22294   else
22295      { echo "$as_me:$LINENO: result: no" >&5
22296 echo "${ECHO_T}no" >&6; }
22297   fi
22298
22299 else
22300
22301   { echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6; }
22303
22304 fi
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315 db_found=no
22316 db_prog=no
22317 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
22318 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
22319
22320 # Check whether --with-dbi-driver was given.
22321 if test "${with_dbi_driver+set}" = set; then
22322   withval=$with_dbi_driver;
22323   if test "$withval" != "no"; then
22324      case $withval in
22325         "mysql")
22326            db_prog="mysql"
22327            if test -f /usr/local/mysql/bin/mysql; then
22328               SQL_BINDIR=/usr/local/mysql/bin
22329               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22330                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22331                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
22332               else
22333                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
22334               fi
22335            elif test -f /usr/bin/mysql; then
22336               SQL_BINDIR=/usr/bin
22337               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22338                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22339                   SQL_LIBDIR=/usr/lib64/mysql
22340               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22341                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22342                   SQL_LIBDIR=/usr/lib/mysql
22343               else
22344                   SQL_LIBDIR=/usr/lib
22345               fi
22346            elif test -f /usr/local/bin/mysql; then
22347               SQL_BINDIR=/usr/local/bin
22348               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22349                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22350                   SQL_LIBDIR=/usr/local/lib64/mysql
22351               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
22352                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
22353                   SQL_LIBDIR=/usr/local/lib/mysql
22354               else
22355                   SQL_LIBDIR=/usr/local/lib
22356               fi
22357            elif test -f $withval/bin/mysql; then
22358               SQL_BINDIR=$withval/bin
22359               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
22360                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
22361                   SQL_LIBDIR=$withval/lib64/mysql
22362               elif test -f $withval/lib64/libmysqlclient_r.a \
22363                   -o -f $withval/lib64/libmysqlclient_r.so; then
22364                   SQL_LIBDIR=$withval/lib64
22365               elif test -f $withval/lib/libmysqlclient_r.a \
22366                   -o -f $withval/lib/libmysqlclient_r.so; then
22367                   SQL_LIBDIR=$withval/lib/
22368               else
22369                   SQL_LIBDIR=$withval/lib/mysql
22370               fi
22371            else
22372               { echo "$as_me:$LINENO: result: no" >&5
22373 echo "${ECHO_T}no" >&6; }
22374               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
22375 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
22376    { (exit 1); exit 1; }; }
22377            fi
22378            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
22379         ;;
22380         "postgresql")
22381            db_prog="postgresql"
22382            PG_CONFIG=`which pg_config`
22383            if test -n "$PG_CONFIG"; then
22384               SQL_BINDIR=`"$PG_CONFIG" --bindir`
22385               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
22386            elif test -f /usr/local/bin/psql; then
22387               SQL_BINDIR=/usr/local/bin
22388               if test -d /usr/local/lib64; then
22389                  SQL_LIBDIR=/usr/local/lib64
22390               else
22391                  SQL_LIBDIR=/usr/local/lib
22392               fi
22393            elif test -f /usr/bin/psql; then
22394               SQL_BINDIR=/usr/local/bin
22395               if test -d /usr/lib64/postgresql; then
22396                  SQL_LIBDIR=/usr/lib64/postgresql
22397               elif test -d /usr/lib/postgresql; then
22398                  SQL_LIBDIR=/usr/lib/postgresql
22399               elif test -d /usr/lib64; then
22400                  SQL_LIBDIR=/usr/lib64
22401               else
22402                  SQL_LIBDIR=/usr/lib
22403               fi
22404            elif test -f $withval/bin/psql; then
22405               SQL_BINDIR=$withval/bin
22406               if test -d $withval/lib64; then
22407                  SQL_LIBDIR=$withval/lib64
22408               else
22409                  SQL_LIBDIR=$withval/lib
22410               fi
22411            else
22412               { echo "$as_me:$LINENO: result: no" >&5
22413 echo "${ECHO_T}no" >&6; }
22414               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
22415 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
22416    { (exit 1); exit 1; }; }
22417            fi
22418            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
22419         ;;
22420         *)
22421            { echo "$as_me:$LINENO: result: no" >&5
22422 echo "${ECHO_T}no" >&6; }
22423            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
22424 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
22425    { (exit 1); exit 1; }; }
22426         ;;
22427      esac
22428
22429      { echo "$as_me:$LINENO: result: yes" >&5
22430 echo "${ECHO_T}yes" >&6; }
22431      DB_PROG=$db_prog
22432   else
22433      { echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6; }
22435   fi
22436
22437 else
22438
22439   { echo "$as_me:$LINENO: result: no" >&5
22440 echo "${ECHO_T}no" >&6; }
22441
22442 fi
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453 # -------------------------------------------
22454 # enable batch attribute DB insert (default on)
22455 # -------------------------------------------
22456 support_batch_insert=no
22457 A=`nm $SQL_LIB | grep pthread_mutex_lock`
22458 pkg=$?
22459 if test $pkg = 0; then
22460    support_batch_insert=yes
22461    # Check whether --enable-batch-insert was given.
22462 if test "${enable_batch_insert+set}" = set; then
22463   enableval=$enable_batch_insert; if test x$enableval = xno; then
22464        support_batch_insert=no
22465       else
22466        support_batch_insert=yes
22467      fi
22468 fi
22469
22470 fi
22471
22472 # Check if postgresql support batch mode
22473 if test x$DB_TYPE = xpostgresql; then
22474    A=`nm $SQL_LIB | grep PQputCopyData`
22475    pkg=$?
22476    if test $pkg != 0; then
22477       support_batch_insert=no
22478    fi
22479 fi
22480
22481 if test x$DB_TYPE = xdbi; then
22482    DB_TYPE=$DB_PROG
22483    db_type=$DB_PROG
22484    pkg=1
22485    # Check for batch insert
22486    if test $DB_PROG = postgresql; then
22487       A=`nm $DB_PROG_LIB | grep PQputCopyData`
22488       pkg=$?
22489    fi
22490
22491    if test $DB_PROG = mysql; then
22492       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
22493       pkg=$?
22494    fi
22495
22496    if test $pkg = 0; then
22497       # Check whether --enable-batch-insert was given.
22498 if test "${enable_batch_insert+set}" = set; then
22499   enableval=$enable_batch_insert; if test x$enableval = xno; then
22500          support_batch_insert=no
22501        else
22502          support_batch_insert=yes
22503       fi
22504 fi
22505
22506    fi
22507 else
22508 # If dbi was not chosen, let the comment in file
22509 uncomment_dbi="#"
22510 fi
22511
22512
22513
22514 if test $support_batch_insert = yes ; then
22515
22516 cat >>confdefs.h <<\_ACEOF
22517 #define HAVE_BATCH_FILE_INSERT 1
22518 _ACEOF
22519
22520 fi
22521
22522
22523 cat >>confdefs.h <<\_ACEOF
22524 #define PROTOTYPES 1
22525 _ACEOF
22526
22527
22528 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
22529     if test -z "$CCOPTS"; then
22530         CCOPTS='-g -O2 -Wall'
22531     fi
22532     CFLAGS="$CCOPTS"
22533 fi
22534
22535
22536
22537
22538 largefile_support="no"
22539
22540    # Check whether --enable-largefile was given.
22541 if test "${enable_largefile+set}" = set; then
22542   enableval=$enable_largefile;
22543 fi
22544
22545    if test "$enable_largefile" != no; then
22546      if test -n "$ac_tool_prefix"; then
22547   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
22548 set dummy ${ac_tool_prefix}getconf; ac_word=$2
22549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22551 if test "${ac_cv_prog_GETCONF+set}" = set; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554   if test -n "$GETCONF"; then
22555   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
22556 else
22557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22558 for as_dir in $PATH
22559 do
22560   IFS=$as_save_IFS
22561   test -z "$as_dir" && as_dir=.
22562   for ac_exec_ext in '' $ac_executable_extensions; do
22563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22564     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
22565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22566     break 2
22567   fi
22568 done
22569 done
22570 IFS=$as_save_IFS
22571
22572 fi
22573 fi
22574 GETCONF=$ac_cv_prog_GETCONF
22575 if test -n "$GETCONF"; then
22576   { echo "$as_me:$LINENO: result: $GETCONF" >&5
22577 echo "${ECHO_T}$GETCONF" >&6; }
22578 else
22579   { echo "$as_me:$LINENO: result: no" >&5
22580 echo "${ECHO_T}no" >&6; }
22581 fi
22582
22583
22584 fi
22585 if test -z "$ac_cv_prog_GETCONF"; then
22586   ac_ct_GETCONF=$GETCONF
22587   # Extract the first word of "getconf", so it can be a program name with args.
22588 set dummy getconf; ac_word=$2
22589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22591 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
22592   echo $ECHO_N "(cached) $ECHO_C" >&6
22593 else
22594   if test -n "$ac_ct_GETCONF"; then
22595   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
22596 else
22597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22598 for as_dir in $PATH
22599 do
22600   IFS=$as_save_IFS
22601   test -z "$as_dir" && as_dir=.
22602   for ac_exec_ext in '' $ac_executable_extensions; do
22603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22604     ac_cv_prog_ac_ct_GETCONF="getconf"
22605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22606     break 2
22607   fi
22608 done
22609 done
22610 IFS=$as_save_IFS
22611
22612 fi
22613 fi
22614 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
22615 if test -n "$ac_ct_GETCONF"; then
22616   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
22617 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
22618 else
22619   { echo "$as_me:$LINENO: result: no" >&5
22620 echo "${ECHO_T}no" >&6; }
22621 fi
22622
22623   if test "x$ac_ct_GETCONF" = x; then
22624     GETCONF=""
22625   else
22626     case $cross_compiling:$ac_tool_warned in
22627 yes:)
22628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22629 whose name does not start with the host triplet.  If you think this
22630 configuration is useful to you, please write to autoconf@gnu.org." >&5
22631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22632 whose name does not start with the host triplet.  If you think this
22633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22634 ac_tool_warned=yes ;;
22635 esac
22636     GETCONF=$ac_ct_GETCONF
22637   fi
22638 else
22639   GETCONF="$ac_cv_prog_GETCONF"
22640 fi
22641
22642      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
22643 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
22644 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
22648         ac_cv_sys_largefile_CFLAGS=no
22649         case "$host_os" in
22650            # IRIX 6.2 and later require cc -n32.
22651            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
22652              if test "$GCC" != yes; then
22653                ac_cv_sys_largefile_CFLAGS=-n32
22654              fi
22655              ac_save_CC="$CC"
22656              CC="$CC $ac_cv_sys_largefile_CFLAGS"
22657              cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h.  */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h.  */
22663
22664 int
22665 main ()
22666 {
22667
22668   ;
22669   return 0;
22670 }
22671 _ACEOF
22672 rm -f conftest.$ac_objext conftest$ac_exeext
22673 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
22680   ac_status=$?
22681   grep -v '^ *+' conftest.er1 >conftest.err
22682   rm -f conftest.er1
22683   cat conftest.err >&5
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); } && {
22686          test -z "$ac_c_werror_flag" ||
22687          test ! -s conftest.err
22688        } && test -s conftest$ac_exeext &&
22689        $as_test_x conftest$ac_exeext; then
22690   :
22691 else
22692   echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695         ac_cv_sys_largefile_CFLAGS=no
22696 fi
22697
22698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22699       conftest$ac_exeext conftest.$ac_ext
22700              CC="$ac_save_CC"
22701            esac
22702       }
22703 fi
22704 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
22705 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
22706      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
22707 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
22708 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
22709   echo $ECHO_N "(cached) $ECHO_C" >&6
22710 else
22711   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
22712         ac_cv_sys_largefile_LDFLAGS=no
22713
22714       }
22715 fi
22716 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
22717 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
22718      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
22719 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
22720 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
22721   echo $ECHO_N "(cached) $ECHO_C" >&6
22722 else
22723   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
22724         ac_cv_sys_largefile_LIBS=no
22725
22726       }
22727 fi
22728 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
22729 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
22730
22731      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22732        case "$ac_flag" in
22733        no) ;;
22734        -D_FILE_OFFSET_BITS=*) ;;
22735        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
22736        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
22737        -D?* | -I?*)
22738          case "$ac_flag" in
22739    no) ;;
22740    ?*)
22741      case "$CPPFLAGS" in
22742      '') CPPFLAGS="$ac_flag" ;;
22743      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
22744      esac ;;
22745    esac ;;
22746        *)
22747          case "$ac_flag" in
22748    no) ;;
22749    ?*)
22750      case "$CFLAGS" in
22751      '') CFLAGS="$ac_flag" ;;
22752      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
22753      esac ;;
22754    esac ;;
22755        esac
22756      done
22757      case "$ac_cv_sys_largefile_LDFLAGS" in
22758    no) ;;
22759    ?*)
22760      case "$LDFLAGS" in
22761      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
22762      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
22763      esac ;;
22764    esac
22765      case "$ac_cv_sys_largefile_LIBS" in
22766    no) ;;
22767    ?*)
22768      case "$LIBS" in
22769      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
22770      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
22771      esac ;;
22772    esac
22773      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
22774 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
22775 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22776   echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778   ac_cv_sys_file_offset_bits=no
22779       ac_cv_sys_file_offset_bits=64
22780       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22781         case "$ac_flag" in
22782         -D_FILE_OFFSET_BITS)
22783           ac_cv_sys_file_offset_bits=1 ;;
22784         -D_FILE_OFFSET_BITS=*)
22785           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22786         esac
22787       done
22788
22789 fi
22790 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22791 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22792    if test "$ac_cv_sys_file_offset_bits" != no; then
22793
22794 cat >>confdefs.h <<_ACEOF
22795 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22796 _ACEOF
22797
22798    fi
22799      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
22800 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
22801 if test "${ac_cv_sys_largefile_source+set}" = set; then
22802   echo $ECHO_N "(cached) $ECHO_C" >&6
22803 else
22804   ac_cv_sys_largefile_source=no
22805       ac_cv_sys_largefile_source=1
22806       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22807         case "$ac_flag" in
22808         -D_LARGEFILE_SOURCE)
22809           ac_cv_sys_largefile_source=1 ;;
22810         -D_LARGEFILE_SOURCE=*)
22811           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22812         esac
22813       done
22814
22815 fi
22816 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22817 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22818    if test "$ac_cv_sys_largefile_source" != no; then
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22822 _ACEOF
22823
22824    fi
22825      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
22826 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
22827 if test "${ac_cv_sys_large_files+set}" = set; then
22828   echo $ECHO_N "(cached) $ECHO_C" >&6
22829 else
22830   ac_cv_sys_large_files=no
22831       ac_cv_sys_large_files=1
22832       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
22833         case "$ac_flag" in
22834         -D_LARGE_FILES)
22835           ac_cv_sys_large_files=1 ;;
22836         -D_LARGE_FILES=*)
22837           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
22838         esac
22839       done
22840
22841 fi
22842 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22843 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22844    if test "$ac_cv_sys_large_files" != no; then
22845
22846 cat >>confdefs.h <<_ACEOF
22847 #define _LARGE_FILES $ac_cv_sys_large_files
22848 _ACEOF
22849
22850    fi
22851    fi
22852
22853
22854
22855 { echo "$as_me:$LINENO: checking for X" >&5
22856 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22857
22858
22859 # Check whether --with-x was given.
22860 if test "${with_x+set}" = set; then
22861   withval=$with_x;
22862 fi
22863
22864 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22865 if test "x$with_x" = xno; then
22866   # The user explicitly disabled X.
22867   have_x=disabled
22868 else
22869   case $x_includes,$x_libraries in #(
22870     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22871 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22872    { (exit 1); exit 1; }; };; #(
22873     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22874   echo $ECHO_N "(cached) $ECHO_C" >&6
22875 else
22876   # One or both of the vars are not set, and there is no cached value.
22877 ac_x_includes=no ac_x_libraries=no
22878 rm -f -r conftest.dir
22879 if mkdir conftest.dir; then
22880   cd conftest.dir
22881   cat >Imakefile <<'_ACEOF'
22882 incroot:
22883         @echo incroot='${INCROOT}'
22884 usrlibdir:
22885         @echo usrlibdir='${USRLIBDIR}'
22886 libdir:
22887         @echo libdir='${LIBDIR}'
22888 _ACEOF
22889   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22890     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22891     for ac_var in incroot usrlibdir libdir; do
22892       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22893     done
22894     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22895     for ac_extension in a so sl; do
22896       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22897          test -f "$ac_im_libdir/libX11.$ac_extension"; then
22898         ac_im_usrlibdir=$ac_im_libdir; break
22899       fi
22900     done
22901     # Screen out bogus values from the imake configuration.  They are
22902     # bogus both because they are the default anyway, and because
22903     # using them would break gcc on systems where it needs fixed includes.
22904     case $ac_im_incroot in
22905         /usr/include) ac_x_includes= ;;
22906         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22907     esac
22908     case $ac_im_usrlibdir in
22909         /usr/lib | /lib) ;;
22910         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22911     esac
22912   fi
22913   cd ..
22914   rm -f -r conftest.dir
22915 fi
22916
22917 # Standard set of common directories for X headers.
22918 # Check X11 before X11Rn because it is often a symlink to the current release.
22919 ac_x_header_dirs='
22920 /usr/X11/include
22921 /usr/X11R6/include
22922 /usr/X11R5/include
22923 /usr/X11R4/include
22924
22925 /usr/include/X11
22926 /usr/include/X11R6
22927 /usr/include/X11R5
22928 /usr/include/X11R4
22929
22930 /usr/local/X11/include
22931 /usr/local/X11R6/include
22932 /usr/local/X11R5/include
22933 /usr/local/X11R4/include
22934
22935 /usr/local/include/X11
22936 /usr/local/include/X11R6
22937 /usr/local/include/X11R5
22938 /usr/local/include/X11R4
22939
22940 /usr/X386/include
22941 /usr/x386/include
22942 /usr/XFree86/include/X11
22943
22944 /usr/include
22945 /usr/local/include
22946 /usr/unsupported/include
22947 /usr/athena/include
22948 /usr/local/x11r5/include
22949 /usr/lpp/Xamples/include
22950
22951 /usr/openwin/include
22952 /usr/openwin/share/include'
22953
22954 if test "$ac_x_includes" = no; then
22955   # Guess where to find include files, by looking for Xlib.h.
22956   # First, try using that file with no special directory specified.
22957   cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963 #include <X11/Xlib.h>
22964 _ACEOF
22965 if { (ac_try="$ac_cpp conftest.$ac_ext"
22966 case "(($ac_try" in
22967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968   *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } >/dev/null && {
22978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22979          test ! -s conftest.err
22980        }; then
22981   # We can compile using X headers with no special include directory.
22982 ac_x_includes=
22983 else
22984   echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987   for ac_dir in $ac_x_header_dirs; do
22988   if test -r "$ac_dir/X11/Xlib.h"; then
22989     ac_x_includes=$ac_dir
22990     break
22991   fi
22992 done
22993 fi
22994
22995 rm -f conftest.err conftest.$ac_ext
22996 fi # $ac_x_includes = no
22997
22998 if test "$ac_x_libraries" = no; then
22999   # Check for the libraries.
23000   # See if we find them without any special options.
23001   # Don't add to $LIBS permanently.
23002   ac_save_LIBS=$LIBS
23003   LIBS="-lX11 $LIBS"
23004   cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 #include <X11/Xlib.h>
23011 int
23012 main ()
23013 {
23014 XrmInitialize ()
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (ac_try="$ac_link"
23021 case "(($ac_try" in
23022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023   *) ac_try_echo=$ac_try;;
23024 esac
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026   (eval "$ac_link") 2>conftest.er1
23027   ac_status=$?
23028   grep -v '^ *+' conftest.er1 >conftest.err
23029   rm -f conftest.er1
23030   cat conftest.err >&5
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } && {
23033          test -z "$ac_c_werror_flag" ||
23034          test ! -s conftest.err
23035        } && test -s conftest$ac_exeext &&
23036        $as_test_x conftest$ac_exeext; then
23037   LIBS=$ac_save_LIBS
23038 # We can link X programs with no special library path.
23039 ac_x_libraries=
23040 else
23041   echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23043
23044         LIBS=$ac_save_LIBS
23045 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23046 do
23047   # Don't even attempt the hair of trying to link an X program!
23048   for ac_extension in a so sl; do
23049     if test -r "$ac_dir/libX11.$ac_extension"; then
23050       ac_x_libraries=$ac_dir
23051       break 2
23052     fi
23053   done
23054 done
23055 fi
23056
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058       conftest$ac_exeext conftest.$ac_ext
23059 fi # $ac_x_libraries = no
23060
23061 case $ac_x_includes,$ac_x_libraries in #(
23062   no,* | *,no | *\'*)
23063     # Didn't find X, or a directory has "'" in its name.
23064     ac_cv_have_x="have_x=no";; #(
23065   *)
23066     # Record where we found X for the cache.
23067     ac_cv_have_x="have_x=yes\
23068         ac_x_includes='$ac_x_includes'\
23069         ac_x_libraries='$ac_x_libraries'"
23070 esac
23071 fi
23072 ;; #(
23073     *) have_x=yes;;
23074   esac
23075   eval "$ac_cv_have_x"
23076 fi # $with_x != no
23077
23078 if test "$have_x" != yes; then
23079   { echo "$as_me:$LINENO: result: $have_x" >&5
23080 echo "${ECHO_T}$have_x" >&6; }
23081   no_x=yes
23082 else
23083   # If each of the values was on the command line, it overrides each guess.
23084   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23085   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23086   # Update the cache value to reflect the command line values.
23087   ac_cv_have_x="have_x=yes\
23088         ac_x_includes='$x_includes'\
23089         ac_x_libraries='$x_libraries'"
23090   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23091 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23092 fi
23093
23094 if test "$no_x" = yes; then
23095   # Not all programs may use this symbol, but it does not hurt to define it.
23096
23097 cat >>confdefs.h <<\_ACEOF
23098 #define X_DISPLAY_MISSING 1
23099 _ACEOF
23100
23101   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23102 else
23103   if test -n "$x_includes"; then
23104     X_CFLAGS="$X_CFLAGS -I$x_includes"
23105   fi
23106
23107   # It would also be nice to do this for all -L options, not just this one.
23108   if test -n "$x_libraries"; then
23109     X_LIBS="$X_LIBS -L$x_libraries"
23110     # For Solaris; some versions of Sun CC require a space after -R and
23111     # others require no space.  Words are not sufficient . . . .
23112     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23113 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23114     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23115     ac_xsave_c_werror_flag=$ac_c_werror_flag
23116     ac_c_werror_flag=yes
23117     cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h.  */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h.  */
23123
23124 int
23125 main ()
23126 {
23127
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136   *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139   (eval "$ac_link") 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && {
23146          test -z "$ac_c_werror_flag" ||
23147          test ! -s conftest.err
23148        } && test -s conftest$ac_exeext &&
23149        $as_test_x conftest$ac_exeext; then
23150   { echo "$as_me:$LINENO: result: no" >&5
23151 echo "${ECHO_T}no" >&6; }
23152        X_LIBS="$X_LIBS -R$x_libraries"
23153 else
23154   echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157         LIBS="$ac_xsave_LIBS -R $x_libraries"
23158        cat >conftest.$ac_ext <<_ACEOF
23159 /* confdefs.h.  */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h.  */
23164
23165 int
23166 main ()
23167 {
23168
23169   ;
23170   return 0;
23171 }
23172 _ACEOF
23173 rm -f conftest.$ac_objext conftest$ac_exeext
23174 if { (ac_try="$ac_link"
23175 case "(($ac_try" in
23176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177   *) ac_try_echo=$ac_try;;
23178 esac
23179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23180   (eval "$ac_link") 2>conftest.er1
23181   ac_status=$?
23182   grep -v '^ *+' conftest.er1 >conftest.err
23183   rm -f conftest.er1
23184   cat conftest.err >&5
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); } && {
23187          test -z "$ac_c_werror_flag" ||
23188          test ! -s conftest.err
23189        } && test -s conftest$ac_exeext &&
23190        $as_test_x conftest$ac_exeext; then
23191   { echo "$as_me:$LINENO: result: yes" >&5
23192 echo "${ECHO_T}yes" >&6; }
23193           X_LIBS="$X_LIBS -R $x_libraries"
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198         { echo "$as_me:$LINENO: result: neither works" >&5
23199 echo "${ECHO_T}neither works" >&6; }
23200 fi
23201
23202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23203       conftest$ac_exeext conftest.$ac_ext
23204 fi
23205
23206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23207       conftest$ac_exeext conftest.$ac_ext
23208     ac_c_werror_flag=$ac_xsave_c_werror_flag
23209     LIBS=$ac_xsave_LIBS
23210   fi
23211
23212   # Check for system-dependent libraries X programs must link with.
23213   # Do this before checking for the system-independent R6 libraries
23214   # (-lICE), since we may need -lsocket or whatever for X linking.
23215
23216   if test "$ISC" = yes; then
23217     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23218   else
23219     # Martyn Johnson says this is needed for Ultrix, if the X
23220     # libraries were built with DECnet support.  And Karl Berry says
23221     # the Alpha needs dnet_stub (dnet does not exist).
23222     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23223     cat >conftest.$ac_ext <<_ACEOF
23224 /* confdefs.h.  */
23225 _ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h.  */
23229
23230 /* Override any GCC internal prototype to avoid an error.
23231    Use char because int might match the return type of a GCC
23232    builtin and then its argument prototype would still apply.  */
23233 #ifdef __cplusplus
23234 extern "C"
23235 #endif
23236 char XOpenDisplay ();
23237 int
23238 main ()
23239 {
23240 return XOpenDisplay ();
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext conftest$ac_exeext
23246 if { (ac_try="$ac_link"
23247 case "(($ac_try" in
23248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249   *) ac_try_echo=$ac_try;;
23250 esac
23251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23252   (eval "$ac_link") 2>conftest.er1
23253   ac_status=$?
23254   grep -v '^ *+' conftest.er1 >conftest.err
23255   rm -f conftest.er1
23256   cat conftest.err >&5
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } && {
23259          test -z "$ac_c_werror_flag" ||
23260          test ! -s conftest.err
23261        } && test -s conftest$ac_exeext &&
23262        $as_test_x conftest$ac_exeext; then
23263   :
23264 else
23265   echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23267
23268         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23269 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23270 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23271   echo $ECHO_N "(cached) $ECHO_C" >&6
23272 else
23273   ac_check_lib_save_LIBS=$LIBS
23274 LIBS="-ldnet  $LIBS"
23275 cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h.  */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h.  */
23281
23282 /* Override any GCC internal prototype to avoid an error.
23283    Use char because int might match the return type of a GCC
23284    builtin and then its argument prototype would still apply.  */
23285 #ifdef __cplusplus
23286 extern "C"
23287 #endif
23288 char dnet_ntoa ();
23289 int
23290 main ()
23291 {
23292 return dnet_ntoa ();
23293   ;
23294   return 0;
23295 }
23296 _ACEOF
23297 rm -f conftest.$ac_objext conftest$ac_exeext
23298 if { (ac_try="$ac_link"
23299 case "(($ac_try" in
23300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301   *) ac_try_echo=$ac_try;;
23302 esac
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304   (eval "$ac_link") 2>conftest.er1
23305   ac_status=$?
23306   grep -v '^ *+' conftest.er1 >conftest.err
23307   rm -f conftest.er1
23308   cat conftest.err >&5
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); } && {
23311          test -z "$ac_c_werror_flag" ||
23312          test ! -s conftest.err
23313        } && test -s conftest$ac_exeext &&
23314        $as_test_x conftest$ac_exeext; then
23315   ac_cv_lib_dnet_dnet_ntoa=yes
23316 else
23317   echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320         ac_cv_lib_dnet_dnet_ntoa=no
23321 fi
23322
23323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23324       conftest$ac_exeext conftest.$ac_ext
23325 LIBS=$ac_check_lib_save_LIBS
23326 fi
23327 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23328 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23329 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23330   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23331 fi
23332
23333     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23334       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23335 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23336 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23337   echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339   ac_check_lib_save_LIBS=$LIBS
23340 LIBS="-ldnet_stub  $LIBS"
23341 cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h.  */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h.  */
23347
23348 /* Override any GCC internal prototype to avoid an error.
23349    Use char because int might match the return type of a GCC
23350    builtin and then its argument prototype would still apply.  */
23351 #ifdef __cplusplus
23352 extern "C"
23353 #endif
23354 char dnet_ntoa ();
23355 int
23356 main ()
23357 {
23358 return dnet_ntoa ();
23359   ;
23360   return 0;
23361 }
23362 _ACEOF
23363 rm -f conftest.$ac_objext conftest$ac_exeext
23364 if { (ac_try="$ac_link"
23365 case "(($ac_try" in
23366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23367   *) ac_try_echo=$ac_try;;
23368 esac
23369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23370   (eval "$ac_link") 2>conftest.er1
23371   ac_status=$?
23372   grep -v '^ *+' conftest.er1 >conftest.err
23373   rm -f conftest.er1
23374   cat conftest.err >&5
23375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376   (exit $ac_status); } && {
23377          test -z "$ac_c_werror_flag" ||
23378          test ! -s conftest.err
23379        } && test -s conftest$ac_exeext &&
23380        $as_test_x conftest$ac_exeext; then
23381   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23382 else
23383   echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23385
23386         ac_cv_lib_dnet_stub_dnet_ntoa=no
23387 fi
23388
23389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23390       conftest$ac_exeext conftest.$ac_ext
23391 LIBS=$ac_check_lib_save_LIBS
23392 fi
23393 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23394 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23395 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23396   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23397 fi
23398
23399     fi
23400 fi
23401
23402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23403       conftest$ac_exeext conftest.$ac_ext
23404     LIBS="$ac_xsave_LIBS"
23405
23406     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23407     # to get the SysV transport functions.
23408     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23409     # needs -lnsl.
23410     # The nsl library prevents programs from opening the X display
23411     # on Irix 5.2, according to T.E. Dickey.
23412     # The functions gethostbyname, getservbyname, and inet_addr are
23413     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23414     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23415 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23416 if test "${ac_cv_func_gethostbyname+set}" = set; then
23417   echo $ECHO_N "(cached) $ECHO_C" >&6
23418 else
23419   cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23427 #define gethostbyname innocuous_gethostbyname
23428
23429 /* System header to define __stub macros and hopefully few prototypes,
23430     which can conflict with char gethostbyname (); below.
23431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23432     <limits.h> exists even on freestanding compilers.  */
23433
23434 #ifdef __STDC__
23435 # include <limits.h>
23436 #else
23437 # include <assert.h>
23438 #endif
23439
23440 #undef gethostbyname
23441
23442 /* Override any GCC internal prototype to avoid an error.
23443    Use char because int might match the return type of a GCC
23444    builtin and then its argument prototype would still apply.  */
23445 #ifdef __cplusplus
23446 extern "C"
23447 #endif
23448 char gethostbyname ();
23449 /* The GNU C library defines this for functions which it implements
23450     to always fail with ENOSYS.  Some functions are actually named
23451     something starting with __ and the normal name is an alias.  */
23452 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23453 choke me
23454 #endif
23455
23456 int
23457 main ()
23458 {
23459 return gethostbyname ();
23460   ;
23461   return 0;
23462 }
23463 _ACEOF
23464 rm -f conftest.$ac_objext conftest$ac_exeext
23465 if { (ac_try="$ac_link"
23466 case "(($ac_try" in
23467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468   *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471   (eval "$ac_link") 2>conftest.er1
23472   ac_status=$?
23473   grep -v '^ *+' conftest.er1 >conftest.err
23474   rm -f conftest.er1
23475   cat conftest.err >&5
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); } && {
23478          test -z "$ac_c_werror_flag" ||
23479          test ! -s conftest.err
23480        } && test -s conftest$ac_exeext &&
23481        $as_test_x conftest$ac_exeext; then
23482   ac_cv_func_gethostbyname=yes
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487         ac_cv_func_gethostbyname=no
23488 fi
23489
23490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23491       conftest$ac_exeext conftest.$ac_ext
23492 fi
23493 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23494 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23495
23496     if test $ac_cv_func_gethostbyname = no; then
23497       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23498 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23499 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23500   echo $ECHO_N "(cached) $ECHO_C" >&6
23501 else
23502   ac_check_lib_save_LIBS=$LIBS
23503 LIBS="-lnsl  $LIBS"
23504 cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h.  */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h.  */
23510
23511 /* Override any GCC internal prototype to avoid an error.
23512    Use char because int might match the return type of a GCC
23513    builtin and then its argument prototype would still apply.  */
23514 #ifdef __cplusplus
23515 extern "C"
23516 #endif
23517 char gethostbyname ();
23518 int
23519 main ()
23520 {
23521 return gethostbyname ();
23522   ;
23523   return 0;
23524 }
23525 _ACEOF
23526 rm -f conftest.$ac_objext conftest$ac_exeext
23527 if { (ac_try="$ac_link"
23528 case "(($ac_try" in
23529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530   *) ac_try_echo=$ac_try;;
23531 esac
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533   (eval "$ac_link") 2>conftest.er1
23534   ac_status=$?
23535   grep -v '^ *+' conftest.er1 >conftest.err
23536   rm -f conftest.er1
23537   cat conftest.err >&5
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); } && {
23540          test -z "$ac_c_werror_flag" ||
23541          test ! -s conftest.err
23542        } && test -s conftest$ac_exeext &&
23543        $as_test_x conftest$ac_exeext; then
23544   ac_cv_lib_nsl_gethostbyname=yes
23545 else
23546   echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23548
23549         ac_cv_lib_nsl_gethostbyname=no
23550 fi
23551
23552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23553       conftest$ac_exeext conftest.$ac_ext
23554 LIBS=$ac_check_lib_save_LIBS
23555 fi
23556 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23557 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23558 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23559   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23560 fi
23561
23562       if test $ac_cv_lib_nsl_gethostbyname = no; then
23563         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23564 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23565 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568   ac_check_lib_save_LIBS=$LIBS
23569 LIBS="-lbsd  $LIBS"
23570 cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h.  */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h.  */
23576
23577 /* Override any GCC internal prototype to avoid an error.
23578    Use char because int might match the return type of a GCC
23579    builtin and then its argument prototype would still apply.  */
23580 #ifdef __cplusplus
23581 extern "C"
23582 #endif
23583 char gethostbyname ();
23584 int
23585 main ()
23586 {
23587 return gethostbyname ();
23588   ;
23589   return 0;
23590 }
23591 _ACEOF
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596   *) ac_try_echo=$ac_try;;
23597 esac
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599   (eval "$ac_link") 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } && {
23606          test -z "$ac_c_werror_flag" ||
23607          test ! -s conftest.err
23608        } && test -s conftest$ac_exeext &&
23609        $as_test_x conftest$ac_exeext; then
23610   ac_cv_lib_bsd_gethostbyname=yes
23611 else
23612   echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615         ac_cv_lib_bsd_gethostbyname=no
23616 fi
23617
23618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23619       conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23621 fi
23622 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23623 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23624 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23625   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23626 fi
23627
23628       fi
23629     fi
23630
23631     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23632     # socket/setsockopt and other routines are undefined under SCO ODT
23633     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23634     # on later versions), says Simon Leinen: it contains gethostby*
23635     # variants that don't use the name server (or something).  -lsocket
23636     # must be given before -lnsl if both are needed.  We assume that
23637     # if connect needs -lnsl, so does gethostbyname.
23638     { echo "$as_me:$LINENO: checking for connect" >&5
23639 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23640 if test "${ac_cv_func_connect+set}" = set; then
23641   echo $ECHO_N "(cached) $ECHO_C" >&6
23642 else
23643   cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h.  */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h.  */
23649 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23651 #define connect innocuous_connect
23652
23653 /* System header to define __stub macros and hopefully few prototypes,
23654     which can conflict with char connect (); below.
23655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23656     <limits.h> exists even on freestanding compilers.  */
23657
23658 #ifdef __STDC__
23659 # include <limits.h>
23660 #else
23661 # include <assert.h>
23662 #endif
23663
23664 #undef connect
23665
23666 /* Override any GCC internal prototype to avoid an error.
23667    Use char because int might match the return type of a GCC
23668    builtin and then its argument prototype would still apply.  */
23669 #ifdef __cplusplus
23670 extern "C"
23671 #endif
23672 char connect ();
23673 /* The GNU C library defines this for functions which it implements
23674     to always fail with ENOSYS.  Some functions are actually named
23675     something starting with __ and the normal name is an alias.  */
23676 #if defined __stub_connect || defined __stub___connect
23677 choke me
23678 #endif
23679
23680 int
23681 main ()
23682 {
23683 return connect ();
23684   ;
23685   return 0;
23686 }
23687 _ACEOF
23688 rm -f conftest.$ac_objext conftest$ac_exeext
23689 if { (ac_try="$ac_link"
23690 case "(($ac_try" in
23691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692   *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695   (eval "$ac_link") 2>conftest.er1
23696   ac_status=$?
23697   grep -v '^ *+' conftest.er1 >conftest.err
23698   rm -f conftest.er1
23699   cat conftest.err >&5
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); } && {
23702          test -z "$ac_c_werror_flag" ||
23703          test ! -s conftest.err
23704        } && test -s conftest$ac_exeext &&
23705        $as_test_x conftest$ac_exeext; then
23706   ac_cv_func_connect=yes
23707 else
23708   echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23710
23711         ac_cv_func_connect=no
23712 fi
23713
23714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23715       conftest$ac_exeext conftest.$ac_ext
23716 fi
23717 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23718 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23719
23720     if test $ac_cv_func_connect = no; then
23721       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23722 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23723 if test "${ac_cv_lib_socket_connect+set}" = set; then
23724   echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726   ac_check_lib_save_LIBS=$LIBS
23727 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23728 cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734
23735 /* Override any GCC internal prototype to avoid an error.
23736    Use char because int might match the return type of a GCC
23737    builtin and then its argument prototype would still apply.  */
23738 #ifdef __cplusplus
23739 extern "C"
23740 #endif
23741 char connect ();
23742 int
23743 main ()
23744 {
23745 return connect ();
23746   ;
23747   return 0;
23748 }
23749 _ACEOF
23750 rm -f conftest.$ac_objext conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754   *) ac_try_echo=$ac_try;;
23755 esac
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757   (eval "$ac_link") 2>conftest.er1
23758   ac_status=$?
23759   grep -v '^ *+' conftest.er1 >conftest.err
23760   rm -f conftest.er1
23761   cat conftest.err >&5
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); } && {
23764          test -z "$ac_c_werror_flag" ||
23765          test ! -s conftest.err
23766        } && test -s conftest$ac_exeext &&
23767        $as_test_x conftest$ac_exeext; then
23768   ac_cv_lib_socket_connect=yes
23769 else
23770   echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23772
23773         ac_cv_lib_socket_connect=no
23774 fi
23775
23776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23777       conftest$ac_exeext conftest.$ac_ext
23778 LIBS=$ac_check_lib_save_LIBS
23779 fi
23780 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23781 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23782 if test $ac_cv_lib_socket_connect = yes; then
23783   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23784 fi
23785
23786     fi
23787
23788     # Guillermo Gomez says -lposix is necessary on A/UX.
23789     { echo "$as_me:$LINENO: checking for remove" >&5
23790 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23791 if test "${ac_cv_func_remove+set}" = set; then
23792   echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794   cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23802 #define remove innocuous_remove
23803
23804 /* System header to define __stub macros and hopefully few prototypes,
23805     which can conflict with char remove (); below.
23806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23807     <limits.h> exists even on freestanding compilers.  */
23808
23809 #ifdef __STDC__
23810 # include <limits.h>
23811 #else
23812 # include <assert.h>
23813 #endif
23814
23815 #undef remove
23816
23817 /* Override any GCC internal prototype to avoid an error.
23818    Use char because int might match the return type of a GCC
23819    builtin and then its argument prototype would still apply.  */
23820 #ifdef __cplusplus
23821 extern "C"
23822 #endif
23823 char remove ();
23824 /* The GNU C library defines this for functions which it implements
23825     to always fail with ENOSYS.  Some functions are actually named
23826     something starting with __ and the normal name is an alias.  */
23827 #if defined __stub_remove || defined __stub___remove
23828 choke me
23829 #endif
23830
23831 int
23832 main ()
23833 {
23834 return remove ();
23835   ;
23836   return 0;
23837 }
23838 _ACEOF
23839 rm -f conftest.$ac_objext conftest$ac_exeext
23840 if { (ac_try="$ac_link"
23841 case "(($ac_try" in
23842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843   *) ac_try_echo=$ac_try;;
23844 esac
23845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23846   (eval "$ac_link") 2>conftest.er1
23847   ac_status=$?
23848   grep -v '^ *+' conftest.er1 >conftest.err
23849   rm -f conftest.er1
23850   cat conftest.err >&5
23851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852   (exit $ac_status); } && {
23853          test -z "$ac_c_werror_flag" ||
23854          test ! -s conftest.err
23855        } && test -s conftest$ac_exeext &&
23856        $as_test_x conftest$ac_exeext; then
23857   ac_cv_func_remove=yes
23858 else
23859   echo "$as_me: failed program was:" >&5
23860 sed 's/^/| /' conftest.$ac_ext >&5
23861
23862         ac_cv_func_remove=no
23863 fi
23864
23865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23866       conftest$ac_exeext conftest.$ac_ext
23867 fi
23868 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23869 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23870
23871     if test $ac_cv_func_remove = no; then
23872       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23873 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23874 if test "${ac_cv_lib_posix_remove+set}" = set; then
23875   echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877   ac_check_lib_save_LIBS=$LIBS
23878 LIBS="-lposix  $LIBS"
23879 cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h.  */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h.  */
23885
23886 /* Override any GCC internal prototype to avoid an error.
23887    Use char because int might match the return type of a GCC
23888    builtin and then its argument prototype would still apply.  */
23889 #ifdef __cplusplus
23890 extern "C"
23891 #endif
23892 char remove ();
23893 int
23894 main ()
23895 {
23896 return remove ();
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905   *) ac_try_echo=$ac_try;;
23906 esac
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908   (eval "$ac_link") 2>conftest.er1
23909   ac_status=$?
23910   grep -v '^ *+' conftest.er1 >conftest.err
23911   rm -f conftest.er1
23912   cat conftest.err >&5
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); } && {
23915          test -z "$ac_c_werror_flag" ||
23916          test ! -s conftest.err
23917        } && test -s conftest$ac_exeext &&
23918        $as_test_x conftest$ac_exeext; then
23919   ac_cv_lib_posix_remove=yes
23920 else
23921   echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23923
23924         ac_cv_lib_posix_remove=no
23925 fi
23926
23927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23928       conftest$ac_exeext conftest.$ac_ext
23929 LIBS=$ac_check_lib_save_LIBS
23930 fi
23931 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23932 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23933 if test $ac_cv_lib_posix_remove = yes; then
23934   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23935 fi
23936
23937     fi
23938
23939     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23940     { echo "$as_me:$LINENO: checking for shmat" >&5
23941 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23942 if test "${ac_cv_func_shmat+set}" = set; then
23943   echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945   cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h.  */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h.  */
23951 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23953 #define shmat innocuous_shmat
23954
23955 /* System header to define __stub macros and hopefully few prototypes,
23956     which can conflict with char shmat (); below.
23957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23958     <limits.h> exists even on freestanding compilers.  */
23959
23960 #ifdef __STDC__
23961 # include <limits.h>
23962 #else
23963 # include <assert.h>
23964 #endif
23965
23966 #undef shmat
23967
23968 /* Override any GCC internal prototype to avoid an error.
23969    Use char because int might match the return type of a GCC
23970    builtin and then its argument prototype would still apply.  */
23971 #ifdef __cplusplus
23972 extern "C"
23973 #endif
23974 char shmat ();
23975 /* The GNU C library defines this for functions which it implements
23976     to always fail with ENOSYS.  Some functions are actually named
23977     something starting with __ and the normal name is an alias.  */
23978 #if defined __stub_shmat || defined __stub___shmat
23979 choke me
23980 #endif
23981
23982 int
23983 main ()
23984 {
23985 return shmat ();
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (ac_try="$ac_link"
23992 case "(($ac_try" in
23993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994   *) ac_try_echo=$ac_try;;
23995 esac
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997   (eval "$ac_link") 2>conftest.er1
23998   ac_status=$?
23999   grep -v '^ *+' conftest.er1 >conftest.err
24000   rm -f conftest.er1
24001   cat conftest.err >&5
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); } && {
24004          test -z "$ac_c_werror_flag" ||
24005          test ! -s conftest.err
24006        } && test -s conftest$ac_exeext &&
24007        $as_test_x conftest$ac_exeext; then
24008   ac_cv_func_shmat=yes
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013         ac_cv_func_shmat=no
24014 fi
24015
24016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24017       conftest$ac_exeext conftest.$ac_ext
24018 fi
24019 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24020 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24021
24022     if test $ac_cv_func_shmat = no; then
24023       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24024 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24025 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24026   echo $ECHO_N "(cached) $ECHO_C" >&6
24027 else
24028   ac_check_lib_save_LIBS=$LIBS
24029 LIBS="-lipc  $LIBS"
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036
24037 /* Override any GCC internal prototype to avoid an error.
24038    Use char because int might match the return type of a GCC
24039    builtin and then its argument prototype would still apply.  */
24040 #ifdef __cplusplus
24041 extern "C"
24042 #endif
24043 char shmat ();
24044 int
24045 main ()
24046 {
24047 return shmat ();
24048   ;
24049   return 0;
24050 }
24051 _ACEOF
24052 rm -f conftest.$ac_objext conftest$ac_exeext
24053 if { (ac_try="$ac_link"
24054 case "(($ac_try" in
24055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056   *) ac_try_echo=$ac_try;;
24057 esac
24058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24059   (eval "$ac_link") 2>conftest.er1
24060   ac_status=$?
24061   grep -v '^ *+' conftest.er1 >conftest.err
24062   rm -f conftest.er1
24063   cat conftest.err >&5
24064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065   (exit $ac_status); } && {
24066          test -z "$ac_c_werror_flag" ||
24067          test ! -s conftest.err
24068        } && test -s conftest$ac_exeext &&
24069        $as_test_x conftest$ac_exeext; then
24070   ac_cv_lib_ipc_shmat=yes
24071 else
24072   echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24074
24075         ac_cv_lib_ipc_shmat=no
24076 fi
24077
24078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24079       conftest$ac_exeext conftest.$ac_ext
24080 LIBS=$ac_check_lib_save_LIBS
24081 fi
24082 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24083 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24084 if test $ac_cv_lib_ipc_shmat = yes; then
24085   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24086 fi
24087
24088     fi
24089   fi
24090
24091   # Check for libraries that X11R6 Xt/Xaw programs need.
24092   ac_save_LDFLAGS=$LDFLAGS
24093   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24094   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24095   # check for ICE first), but we must link in the order -lSM -lICE or
24096   # we get undefined symbols.  So assume we have SM if we have ICE.
24097   # These have to be linked with before -lX11, unlike the other
24098   # libraries we check for below, so use a different variable.
24099   # John Interrante, Karl Berry
24100   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24101 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24102 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24103   echo $ECHO_N "(cached) $ECHO_C" >&6
24104 else
24105   ac_check_lib_save_LIBS=$LIBS
24106 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24107 cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h.  */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h.  */
24113
24114 /* Override any GCC internal prototype to avoid an error.
24115    Use char because int might match the return type of a GCC
24116    builtin and then its argument prototype would still apply.  */
24117 #ifdef __cplusplus
24118 extern "C"
24119 #endif
24120 char IceConnectionNumber ();
24121 int
24122 main ()
24123 {
24124 return IceConnectionNumber ();
24125   ;
24126   return 0;
24127 }
24128 _ACEOF
24129 rm -f conftest.$ac_objext conftest$ac_exeext
24130 if { (ac_try="$ac_link"
24131 case "(($ac_try" in
24132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133   *) ac_try_echo=$ac_try;;
24134 esac
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136   (eval "$ac_link") 2>conftest.er1
24137   ac_status=$?
24138   grep -v '^ *+' conftest.er1 >conftest.err
24139   rm -f conftest.er1
24140   cat conftest.err >&5
24141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142   (exit $ac_status); } && {
24143          test -z "$ac_c_werror_flag" ||
24144          test ! -s conftest.err
24145        } && test -s conftest$ac_exeext &&
24146        $as_test_x conftest$ac_exeext; then
24147   ac_cv_lib_ICE_IceConnectionNumber=yes
24148 else
24149   echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24151
24152         ac_cv_lib_ICE_IceConnectionNumber=no
24153 fi
24154
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156       conftest$ac_exeext conftest.$ac_ext
24157 LIBS=$ac_check_lib_save_LIBS
24158 fi
24159 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24160 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24161 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24162   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24163 fi
24164
24165   LDFLAGS=$ac_save_LDFLAGS
24166
24167 fi
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200 for ac_header in \
24201         assert.h \
24202         fcntl.h \
24203         grp.h \
24204         pwd.h \
24205         libc.h \
24206         limits.h \
24207         stdarg.h \
24208         stdlib.h \
24209         stdint.h \
24210         string.h \
24211         strings.h \
24212         termios.h \
24213         termcap.h \
24214         term.h \
24215         unistd.h \
24216         sys/bitypes.h \
24217         sys/byteorder.h \
24218         sys/ioctl.h \
24219         sys/select.h \
24220         sys/socket.h \
24221         sys/sockio.h \
24222         sys/stat.h \
24223         sys/time.h \
24224         sys/types.h \
24225         arpa/nameser.h \
24226         resolv.h \
24227         mtio.h \
24228         sys/mtio.h \
24229         sys/tape.h \
24230         regex.h \
24231
24232 do
24233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24235   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24238   echo $ECHO_N "(cached) $ECHO_C" >&6
24239 fi
24240 ac_res=`eval echo '${'$as_ac_Header'}'`
24241                { echo "$as_me:$LINENO: result: $ac_res" >&5
24242 echo "${ECHO_T}$ac_res" >&6; }
24243 else
24244   # Is the header compilable?
24245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24247 cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253 $ac_includes_default
24254 #include <$ac_header>
24255 _ACEOF
24256 rm -f conftest.$ac_objext
24257 if { (ac_try="$ac_compile"
24258 case "(($ac_try" in
24259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260   *) ac_try_echo=$ac_try;;
24261 esac
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263   (eval "$ac_compile") 2>conftest.er1
24264   ac_status=$?
24265   grep -v '^ *+' conftest.er1 >conftest.err
24266   rm -f conftest.er1
24267   cat conftest.err >&5
24268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269   (exit $ac_status); } && {
24270          test -z "$ac_c_werror_flag" ||
24271          test ! -s conftest.err
24272        } && test -s conftest.$ac_objext; then
24273   ac_header_compiler=yes
24274 else
24275   echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24277
24278         ac_header_compiler=no
24279 fi
24280
24281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24283 echo "${ECHO_T}$ac_header_compiler" >&6; }
24284
24285 # Is the header present?
24286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24288 cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h.  */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h.  */
24294 #include <$ac_header>
24295 _ACEOF
24296 if { (ac_try="$ac_cpp conftest.$ac_ext"
24297 case "(($ac_try" in
24298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24299   *) ac_try_echo=$ac_try;;
24300 esac
24301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24303   ac_status=$?
24304   grep -v '^ *+' conftest.er1 >conftest.err
24305   rm -f conftest.er1
24306   cat conftest.err >&5
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); } >/dev/null && {
24309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24310          test ! -s conftest.err
24311        }; then
24312   ac_header_preproc=yes
24313 else
24314   echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24316
24317   ac_header_preproc=no
24318 fi
24319
24320 rm -f conftest.err conftest.$ac_ext
24321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24322 echo "${ECHO_T}$ac_header_preproc" >&6; }
24323
24324 # So?  What about this header?
24325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24326   yes:no: )
24327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24331     ac_header_preproc=yes
24332     ;;
24333   no:yes:* )
24334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24346
24347     ;;
24348 esac
24349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24352   echo $ECHO_N "(cached) $ECHO_C" >&6
24353 else
24354   eval "$as_ac_Header=\$ac_header_preproc"
24355 fi
24356 ac_res=`eval echo '${'$as_ac_Header'}'`
24357                { echo "$as_me:$LINENO: result: $ac_res" >&5
24358 echo "${ECHO_T}$ac_res" >&6; }
24359
24360 fi
24361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24362   cat >>confdefs.h <<_ACEOF
24363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24364 _ACEOF
24365
24366 fi
24367
24368 done
24369
24370 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24371 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24372 if test "${ac_cv_header_stdc+set}" = set; then
24373   echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24375   cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h.  */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h.  */
24381 #include <stdlib.h>
24382 #include <stdarg.h>
24383 #include <string.h>
24384 #include <float.h>
24385
24386 int
24387 main ()
24388 {
24389
24390   ;
24391   return 0;
24392 }
24393 _ACEOF
24394 rm -f conftest.$ac_objext
24395 if { (ac_try="$ac_compile"
24396 case "(($ac_try" in
24397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398   *) ac_try_echo=$ac_try;;
24399 esac
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401   (eval "$ac_compile") 2>conftest.er1
24402   ac_status=$?
24403   grep -v '^ *+' conftest.er1 >conftest.err
24404   rm -f conftest.er1
24405   cat conftest.err >&5
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); } && {
24408          test -z "$ac_c_werror_flag" ||
24409          test ! -s conftest.err
24410        } && test -s conftest.$ac_objext; then
24411   ac_cv_header_stdc=yes
24412 else
24413   echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24415
24416         ac_cv_header_stdc=no
24417 fi
24418
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24420
24421 if test $ac_cv_header_stdc = yes; then
24422   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24423   cat >conftest.$ac_ext <<_ACEOF
24424 /* confdefs.h.  */
24425 _ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h.  */
24429 #include <string.h>
24430
24431 _ACEOF
24432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24433   $EGREP "memchr" >/dev/null 2>&1; then
24434   :
24435 else
24436   ac_cv_header_stdc=no
24437 fi
24438 rm -f conftest*
24439
24440 fi
24441
24442 if test $ac_cv_header_stdc = yes; then
24443   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24444   cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450 #include <stdlib.h>
24451
24452 _ACEOF
24453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24454   $EGREP "free" >/dev/null 2>&1; then
24455   :
24456 else
24457   ac_cv_header_stdc=no
24458 fi
24459 rm -f conftest*
24460
24461 fi
24462
24463 if test $ac_cv_header_stdc = yes; then
24464   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24465   if test "$cross_compiling" = yes; then
24466   :
24467 else
24468   cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h.  */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h.  */
24474 #include <ctype.h>
24475 #include <stdlib.h>
24476 #if ((' ' & 0x0FF) == 0x020)
24477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24479 #else
24480 # define ISLOWER(c) \
24481                    (('a' <= (c) && (c) <= 'i') \
24482                      || ('j' <= (c) && (c) <= 'r') \
24483                      || ('s' <= (c) && (c) <= 'z'))
24484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24485 #endif
24486
24487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24488 int
24489 main ()
24490 {
24491   int i;
24492   for (i = 0; i < 256; i++)
24493     if (XOR (islower (i), ISLOWER (i))
24494         || toupper (i) != TOUPPER (i))
24495       return 2;
24496   return 0;
24497 }
24498 _ACEOF
24499 rm -f conftest$ac_exeext
24500 if { (ac_try="$ac_link"
24501 case "(($ac_try" in
24502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503   *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506   (eval "$ac_link") 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24510   { (case "(($ac_try" in
24511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512   *) ac_try_echo=$ac_try;;
24513 esac
24514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515   (eval "$ac_try") 2>&5
24516   ac_status=$?
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); }; }; then
24519   :
24520 else
24521   echo "$as_me: program exited with status $ac_status" >&5
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24524
24525 ( exit $ac_status )
24526 ac_cv_header_stdc=no
24527 fi
24528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24529 fi
24530
24531
24532 fi
24533 fi
24534 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24535 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24536 if test $ac_cv_header_stdc = yes; then
24537
24538 cat >>confdefs.h <<\_ACEOF
24539 #define STDC_HEADERS 1
24540 _ACEOF
24541
24542 fi
24543
24544 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24545 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
24546 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24547   echo $ECHO_N "(cached) $ECHO_C" >&6
24548 else
24549   cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h.  */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h.  */
24555 #include <sys/types.h>
24556 int
24557 main ()
24558 {
24559 return makedev(0, 0);
24560   ;
24561   return 0;
24562 }
24563 _ACEOF
24564 rm -f conftest.$ac_objext conftest$ac_exeext
24565 if { (ac_try="$ac_link"
24566 case "(($ac_try" in
24567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568   *) ac_try_echo=$ac_try;;
24569 esac
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571   (eval "$ac_link") 2>conftest.er1
24572   ac_status=$?
24573   grep -v '^ *+' conftest.er1 >conftest.err
24574   rm -f conftest.er1
24575   cat conftest.err >&5
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); } && {
24578          test -z "$ac_c_werror_flag" ||
24579          test ! -s conftest.err
24580        } && test -s conftest$ac_exeext &&
24581        $as_test_x conftest$ac_exeext; then
24582   ac_cv_header_sys_types_h_makedev=yes
24583 else
24584   echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24586
24587         ac_cv_header_sys_types_h_makedev=no
24588 fi
24589
24590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24591       conftest$ac_exeext conftest.$ac_ext
24592
24593 fi
24594 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24595 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
24596
24597 if test $ac_cv_header_sys_types_h_makedev = no; then
24598 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24599   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24600 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24601 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24602   echo $ECHO_N "(cached) $ECHO_C" >&6
24603 fi
24604 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24605 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24606 else
24607   # Is the header compilable?
24608 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24609 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
24610 cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h.  */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h.  */
24616 $ac_includes_default
24617 #include <sys/mkdev.h>
24618 _ACEOF
24619 rm -f conftest.$ac_objext
24620 if { (ac_try="$ac_compile"
24621 case "(($ac_try" in
24622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623   *) ac_try_echo=$ac_try;;
24624 esac
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626   (eval "$ac_compile") 2>conftest.er1
24627   ac_status=$?
24628   grep -v '^ *+' conftest.er1 >conftest.err
24629   rm -f conftest.er1
24630   cat conftest.err >&5
24631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); } && {
24633          test -z "$ac_c_werror_flag" ||
24634          test ! -s conftest.err
24635        } && test -s conftest.$ac_objext; then
24636   ac_header_compiler=yes
24637 else
24638   echo "$as_me: failed program was:" >&5
24639 sed 's/^/| /' conftest.$ac_ext >&5
24640
24641         ac_header_compiler=no
24642 fi
24643
24644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24646 echo "${ECHO_T}$ac_header_compiler" >&6; }
24647
24648 # Is the header present?
24649 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24650 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
24651 cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657 #include <sys/mkdev.h>
24658 _ACEOF
24659 if { (ac_try="$ac_cpp conftest.$ac_ext"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24666   ac_status=$?
24667   grep -v '^ *+' conftest.er1 >conftest.err
24668   rm -f conftest.er1
24669   cat conftest.err >&5
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); } >/dev/null && {
24672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24673          test ! -s conftest.err
24674        }; then
24675   ac_header_preproc=yes
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680   ac_header_preproc=no
24681 fi
24682
24683 rm -f conftest.err conftest.$ac_ext
24684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24685 echo "${ECHO_T}$ac_header_preproc" >&6; }
24686
24687 # So?  What about this header?
24688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24689   yes:no: )
24690     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24691 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24692     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24693 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24694     ac_header_preproc=yes
24695     ;;
24696   no:yes:* )
24697     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24698 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24699     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24700 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24701     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24702 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24703     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24704 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24705     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24706 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24707     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24708 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24709
24710     ;;
24711 esac
24712 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24713 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
24714 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24715   echo $ECHO_N "(cached) $ECHO_C" >&6
24716 else
24717   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24718 fi
24719 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24720 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
24721
24722 fi
24723 if test $ac_cv_header_sys_mkdev_h = yes; then
24724
24725 cat >>confdefs.h <<\_ACEOF
24726 #define MAJOR_IN_MKDEV 1
24727 _ACEOF
24728
24729 fi
24730
24731
24732
24733   if test $ac_cv_header_sys_mkdev_h = no; then
24734     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24735   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24736 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24737 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24738   echo $ECHO_N "(cached) $ECHO_C" >&6
24739 fi
24740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24741 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24742 else
24743   # Is the header compilable?
24744 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24745 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
24746 cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h.  */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h.  */
24752 $ac_includes_default
24753 #include <sys/sysmacros.h>
24754 _ACEOF
24755 rm -f conftest.$ac_objext
24756 if { (ac_try="$ac_compile"
24757 case "(($ac_try" in
24758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759   *) ac_try_echo=$ac_try;;
24760 esac
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762   (eval "$ac_compile") 2>conftest.er1
24763   ac_status=$?
24764   grep -v '^ *+' conftest.er1 >conftest.err
24765   rm -f conftest.er1
24766   cat conftest.err >&5
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); } && {
24769          test -z "$ac_c_werror_flag" ||
24770          test ! -s conftest.err
24771        } && test -s conftest.$ac_objext; then
24772   ac_header_compiler=yes
24773 else
24774   echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777         ac_header_compiler=no
24778 fi
24779
24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24782 echo "${ECHO_T}$ac_header_compiler" >&6; }
24783
24784 # Is the header present?
24785 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24786 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
24787 cat >conftest.$ac_ext <<_ACEOF
24788 /* confdefs.h.  */
24789 _ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h.  */
24793 #include <sys/sysmacros.h>
24794 _ACEOF
24795 if { (ac_try="$ac_cpp conftest.$ac_ext"
24796 case "(($ac_try" in
24797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798   *) ac_try_echo=$ac_try;;
24799 esac
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24802   ac_status=$?
24803   grep -v '^ *+' conftest.er1 >conftest.err
24804   rm -f conftest.er1
24805   cat conftest.err >&5
24806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807   (exit $ac_status); } >/dev/null && {
24808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24809          test ! -s conftest.err
24810        }; then
24811   ac_header_preproc=yes
24812 else
24813   echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24815
24816   ac_header_preproc=no
24817 fi
24818
24819 rm -f conftest.err conftest.$ac_ext
24820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24821 echo "${ECHO_T}$ac_header_preproc" >&6; }
24822
24823 # So?  What about this header?
24824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24825   yes:no: )
24826     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24827 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24828     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24829 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24830     ac_header_preproc=yes
24831     ;;
24832   no:yes:* )
24833     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24834 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24835     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
24836 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
24837     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24838 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24839     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
24840 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24841     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24842 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24843     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24844 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24845
24846     ;;
24847 esac
24848 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24849 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
24850 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24851   echo $ECHO_N "(cached) $ECHO_C" >&6
24852 else
24853   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24854 fi
24855 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24856 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
24857
24858 fi
24859 if test $ac_cv_header_sys_sysmacros_h = yes; then
24860
24861 cat >>confdefs.h <<\_ACEOF
24862 #define MAJOR_IN_SYSMACROS 1
24863 _ACEOF
24864
24865 fi
24866
24867
24868   fi
24869 fi
24870
24871
24872
24873
24874
24875
24876 ac_header_dirent=no
24877 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24878   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24879 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24880 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24882   echo $ECHO_N "(cached) $ECHO_C" >&6
24883 else
24884   cat >conftest.$ac_ext <<_ACEOF
24885 /* confdefs.h.  */
24886 _ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h.  */
24890 #include <sys/types.h>
24891 #include <$ac_hdr>
24892
24893 int
24894 main ()
24895 {
24896 if ((DIR *) 0)
24897 return 0;
24898   ;
24899   return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906   *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909   (eval "$ac_compile") 2>conftest.er1
24910   ac_status=$?
24911   grep -v '^ *+' conftest.er1 >conftest.err
24912   rm -f conftest.er1
24913   cat conftest.err >&5
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); } && {
24916          test -z "$ac_c_werror_flag" ||
24917          test ! -s conftest.err
24918        } && test -s conftest.$ac_objext; then
24919   eval "$as_ac_Header=yes"
24920 else
24921   echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924         eval "$as_ac_Header=no"
24925 fi
24926
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928 fi
24929 ac_res=`eval echo '${'$as_ac_Header'}'`
24930                { echo "$as_me:$LINENO: result: $ac_res" >&5
24931 echo "${ECHO_T}$ac_res" >&6; }
24932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24933   cat >>confdefs.h <<_ACEOF
24934 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24935 _ACEOF
24936
24937 ac_header_dirent=$ac_hdr; break
24938 fi
24939
24940 done
24941 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24942 if test $ac_header_dirent = dirent.h; then
24943   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24944 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24945 if test "${ac_cv_search_opendir+set}" = set; then
24946   echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948   ac_func_search_save_LIBS=$LIBS
24949 cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h.  */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h.  */
24955
24956 /* Override any GCC internal prototype to avoid an error.
24957    Use char because int might match the return type of a GCC
24958    builtin and then its argument prototype would still apply.  */
24959 #ifdef __cplusplus
24960 extern "C"
24961 #endif
24962 char opendir ();
24963 int
24964 main ()
24965 {
24966 return opendir ();
24967   ;
24968   return 0;
24969 }
24970 _ACEOF
24971 for ac_lib in '' dir; do
24972   if test -z "$ac_lib"; then
24973     ac_res="none required"
24974   else
24975     ac_res=-l$ac_lib
24976     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24977   fi
24978   rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (ac_try="$ac_link"
24980 case "(($ac_try" in
24981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982   *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985   (eval "$ac_link") 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } && {
24992          test -z "$ac_c_werror_flag" ||
24993          test ! -s conftest.err
24994        } && test -s conftest$ac_exeext &&
24995        $as_test_x conftest$ac_exeext; then
24996   ac_cv_search_opendir=$ac_res
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25005       conftest$ac_exeext
25006   if test "${ac_cv_search_opendir+set}" = set; then
25007   break
25008 fi
25009 done
25010 if test "${ac_cv_search_opendir+set}" = set; then
25011   :
25012 else
25013   ac_cv_search_opendir=no
25014 fi
25015 rm conftest.$ac_ext
25016 LIBS=$ac_func_search_save_LIBS
25017 fi
25018 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25019 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25020 ac_res=$ac_cv_search_opendir
25021 if test "$ac_res" != no; then
25022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25023
25024 fi
25025
25026 else
25027   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25028 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25029 if test "${ac_cv_search_opendir+set}" = set; then
25030   echo $ECHO_N "(cached) $ECHO_C" >&6
25031 else
25032   ac_func_search_save_LIBS=$LIBS
25033 cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h.  */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h.  */
25039
25040 /* Override any GCC internal prototype to avoid an error.
25041    Use char because int might match the return type of a GCC
25042    builtin and then its argument prototype would still apply.  */
25043 #ifdef __cplusplus
25044 extern "C"
25045 #endif
25046 char opendir ();
25047 int
25048 main ()
25049 {
25050 return opendir ();
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 for ac_lib in '' x; do
25056   if test -z "$ac_lib"; then
25057     ac_res="none required"
25058   else
25059     ac_res=-l$ac_lib
25060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25061   fi
25062   rm -f conftest.$ac_objext conftest$ac_exeext
25063 if { (ac_try="$ac_link"
25064 case "(($ac_try" in
25065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066   *) ac_try_echo=$ac_try;;
25067 esac
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069   (eval "$ac_link") 2>conftest.er1
25070   ac_status=$?
25071   grep -v '^ *+' conftest.er1 >conftest.err
25072   rm -f conftest.er1
25073   cat conftest.err >&5
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); } && {
25076          test -z "$ac_c_werror_flag" ||
25077          test ! -s conftest.err
25078        } && test -s conftest$ac_exeext &&
25079        $as_test_x conftest$ac_exeext; then
25080   ac_cv_search_opendir=$ac_res
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085
25086 fi
25087
25088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25089       conftest$ac_exeext
25090   if test "${ac_cv_search_opendir+set}" = set; then
25091   break
25092 fi
25093 done
25094 if test "${ac_cv_search_opendir+set}" = set; then
25095   :
25096 else
25097   ac_cv_search_opendir=no
25098 fi
25099 rm conftest.$ac_ext
25100 LIBS=$ac_func_search_save_LIBS
25101 fi
25102 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25103 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25104 ac_res=$ac_cv_search_opendir
25105 if test "$ac_res" != no; then
25106   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25107
25108 fi
25109
25110 fi
25111
25112 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25113 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25114 if test "${ac_cv_header_stat_broken+set}" = set; then
25115   echo $ECHO_N "(cached) $ECHO_C" >&6
25116 else
25117   cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123 #include <sys/types.h>
25124 #include <sys/stat.h>
25125
25126 #if defined S_ISBLK && defined S_IFDIR
25127 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25128 #endif
25129
25130 #if defined S_ISBLK && defined S_IFCHR
25131 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25132 #endif
25133
25134 #if defined S_ISLNK && defined S_IFREG
25135 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25136 #endif
25137
25138 #if defined S_ISSOCK && defined S_IFREG
25139 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25140 #endif
25141
25142 _ACEOF
25143 rm -f conftest.$ac_objext
25144 if { (ac_try="$ac_compile"
25145 case "(($ac_try" in
25146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147   *) ac_try_echo=$ac_try;;
25148 esac
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150   (eval "$ac_compile") 2>conftest.er1
25151   ac_status=$?
25152   grep -v '^ *+' conftest.er1 >conftest.err
25153   rm -f conftest.er1
25154   cat conftest.err >&5
25155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156   (exit $ac_status); } && {
25157          test -z "$ac_c_werror_flag" ||
25158          test ! -s conftest.err
25159        } && test -s conftest.$ac_objext; then
25160   ac_cv_header_stat_broken=no
25161 else
25162   echo "$as_me: failed program was:" >&5
25163 sed 's/^/| /' conftest.$ac_ext >&5
25164
25165         ac_cv_header_stat_broken=yes
25166 fi
25167
25168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25169 fi
25170 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25171 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25172 if test $ac_cv_header_stat_broken = yes; then
25173
25174 cat >>confdefs.h <<\_ACEOF
25175 #define STAT_MACROS_BROKEN 1
25176 _ACEOF
25177
25178 fi
25179
25180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
25182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25183   echo $ECHO_N "(cached) $ECHO_C" >&6
25184 else
25185   cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191 #include <sys/types.h>
25192 #include <sys/wait.h>
25193 #ifndef WEXITSTATUS
25194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25195 #endif
25196 #ifndef WIFEXITED
25197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25198 #endif
25199
25200 int
25201 main ()
25202 {
25203   int s;
25204   wait (&s);
25205   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25206   ;
25207   return 0;
25208 }
25209 _ACEOF
25210 rm -f conftest.$ac_objext
25211 if { (ac_try="$ac_compile"
25212 case "(($ac_try" in
25213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25214   *) ac_try_echo=$ac_try;;
25215 esac
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217   (eval "$ac_compile") 2>conftest.er1
25218   ac_status=$?
25219   grep -v '^ *+' conftest.er1 >conftest.err
25220   rm -f conftest.er1
25221   cat conftest.err >&5
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } && {
25224          test -z "$ac_c_werror_flag" ||
25225          test ! -s conftest.err
25226        } && test -s conftest.$ac_objext; then
25227   ac_cv_header_sys_wait_h=yes
25228 else
25229   echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25231
25232         ac_cv_header_sys_wait_h=no
25233 fi
25234
25235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25236 fi
25237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
25239 if test $ac_cv_header_sys_wait_h = yes; then
25240
25241 cat >>confdefs.h <<\_ACEOF
25242 #define HAVE_SYS_WAIT_H 1
25243 _ACEOF
25244
25245 fi
25246
25247 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25248 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25249 if test "${ac_cv_header_time+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252   cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h.  */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h.  */
25258 #include <sys/types.h>
25259 #include <sys/time.h>
25260 #include <time.h>
25261
25262 int
25263 main ()
25264 {
25265 if ((struct tm *) 0)
25266 return 0;
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275   *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278   (eval "$ac_compile") 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } && {
25285          test -z "$ac_c_werror_flag" ||
25286          test ! -s conftest.err
25287        } && test -s conftest.$ac_objext; then
25288   ac_cv_header_time=yes
25289 else
25290   echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25292
25293         ac_cv_header_time=no
25294 fi
25295
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 fi
25298 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25299 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25300 if test $ac_cv_header_time = yes; then
25301
25302 cat >>confdefs.h <<\_ACEOF
25303 #define TIME_WITH_SYS_TIME 1
25304 _ACEOF
25305
25306 fi
25307
25308 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25309 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25310 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25311   echo $ECHO_N "(cached) $ECHO_C" >&6
25312 else
25313   cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h.  */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h.  */
25319 $ac_includes_default
25320 int
25321 main ()
25322 {
25323 static struct stat ac_aggr;
25324 if (ac_aggr.st_blksize)
25325 return 0;
25326   ;
25327   return 0;
25328 }
25329 _ACEOF
25330 rm -f conftest.$ac_objext
25331 if { (ac_try="$ac_compile"
25332 case "(($ac_try" in
25333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25334   *) ac_try_echo=$ac_try;;
25335 esac
25336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25337   (eval "$ac_compile") 2>conftest.er1
25338   ac_status=$?
25339   grep -v '^ *+' conftest.er1 >conftest.err
25340   rm -f conftest.er1
25341   cat conftest.err >&5
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); } && {
25344          test -z "$ac_c_werror_flag" ||
25345          test ! -s conftest.err
25346        } && test -s conftest.$ac_objext; then
25347   ac_cv_member_struct_stat_st_blksize=yes
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352         cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h.  */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h.  */
25358 $ac_includes_default
25359 int
25360 main ()
25361 {
25362 static struct stat ac_aggr;
25363 if (sizeof ac_aggr.st_blksize)
25364 return 0;
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 rm -f conftest.$ac_objext
25370 if { (ac_try="$ac_compile"
25371 case "(($ac_try" in
25372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373   *) ac_try_echo=$ac_try;;
25374 esac
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376   (eval "$ac_compile") 2>conftest.er1
25377   ac_status=$?
25378   grep -v '^ *+' conftest.er1 >conftest.err
25379   rm -f conftest.er1
25380   cat conftest.err >&5
25381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382   (exit $ac_status); } && {
25383          test -z "$ac_c_werror_flag" ||
25384          test ! -s conftest.err
25385        } && test -s conftest.$ac_objext; then
25386   ac_cv_member_struct_stat_st_blksize=yes
25387 else
25388   echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25390
25391         ac_cv_member_struct_stat_st_blksize=no
25392 fi
25393
25394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 fi
25396
25397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398 fi
25399 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25400 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25401 if test $ac_cv_member_struct_stat_st_blksize = yes; then
25402
25403 cat >>confdefs.h <<_ACEOF
25404 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25405 _ACEOF
25406
25407
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_ST_BLKSIZE 1
25410 _ACEOF
25411
25412 fi
25413
25414
25415 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25416 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25417 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25418   echo $ECHO_N "(cached) $ECHO_C" >&6
25419 else
25420   cat >conftest.$ac_ext <<_ACEOF
25421 /* confdefs.h.  */
25422 _ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h.  */
25426 $ac_includes_default
25427 int
25428 main ()
25429 {
25430 static struct stat ac_aggr;
25431 if (ac_aggr.st_blocks)
25432 return 0;
25433   ;
25434   return 0;
25435 }
25436 _ACEOF
25437 rm -f conftest.$ac_objext
25438 if { (ac_try="$ac_compile"
25439 case "(($ac_try" in
25440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25441   *) ac_try_echo=$ac_try;;
25442 esac
25443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25444   (eval "$ac_compile") 2>conftest.er1
25445   ac_status=$?
25446   grep -v '^ *+' conftest.er1 >conftest.err
25447   rm -f conftest.er1
25448   cat conftest.err >&5
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); } && {
25451          test -z "$ac_c_werror_flag" ||
25452          test ! -s conftest.err
25453        } && test -s conftest.$ac_objext; then
25454   ac_cv_member_struct_stat_st_blocks=yes
25455 else
25456   echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25458
25459         cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h.  */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h.  */
25465 $ac_includes_default
25466 int
25467 main ()
25468 {
25469 static struct stat ac_aggr;
25470 if (sizeof ac_aggr.st_blocks)
25471 return 0;
25472   ;
25473   return 0;
25474 }
25475 _ACEOF
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480   *) ac_try_echo=$ac_try;;
25481 esac
25482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25483   (eval "$ac_compile") 2>conftest.er1
25484   ac_status=$?
25485   grep -v '^ *+' conftest.er1 >conftest.err
25486   rm -f conftest.er1
25487   cat conftest.err >&5
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } && {
25490          test -z "$ac_c_werror_flag" ||
25491          test ! -s conftest.err
25492        } && test -s conftest.$ac_objext; then
25493   ac_cv_member_struct_stat_st_blocks=yes
25494 else
25495   echo "$as_me: failed program was:" >&5
25496 sed 's/^/| /' conftest.$ac_ext >&5
25497
25498         ac_cv_member_struct_stat_st_blocks=no
25499 fi
25500
25501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25502 fi
25503
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505 fi
25506 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25507 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25508 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25509
25510 cat >>confdefs.h <<_ACEOF
25511 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25512 _ACEOF
25513
25514
25515 cat >>confdefs.h <<\_ACEOF
25516 #define HAVE_ST_BLOCKS 1
25517 _ACEOF
25518
25519 else
25520   case " $LIBOBJS " in
25521   *" fileblocks.$ac_objext "* ) ;;
25522   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25523  ;;
25524 esac
25525
25526 fi
25527
25528
25529 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25530 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25531 if test "${ac_cv_struct_tm+set}" = set; then
25532   echo $ECHO_N "(cached) $ECHO_C" >&6
25533 else
25534   cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 #include <sys/types.h>
25541 #include <time.h>
25542
25543 int
25544 main ()
25545 {
25546 struct tm tm;
25547                                      int *p = &tm.tm_sec;
25548                                      return !p;
25549   ;
25550   return 0;
25551 }
25552 _ACEOF
25553 rm -f conftest.$ac_objext
25554 if { (ac_try="$ac_compile"
25555 case "(($ac_try" in
25556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25557   *) ac_try_echo=$ac_try;;
25558 esac
25559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25560   (eval "$ac_compile") 2>conftest.er1
25561   ac_status=$?
25562   grep -v '^ *+' conftest.er1 >conftest.err
25563   rm -f conftest.er1
25564   cat conftest.err >&5
25565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); } && {
25567          test -z "$ac_c_werror_flag" ||
25568          test ! -s conftest.err
25569        } && test -s conftest.$ac_objext; then
25570   ac_cv_struct_tm=time.h
25571 else
25572   echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25574
25575         ac_cv_struct_tm=sys/time.h
25576 fi
25577
25578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25579 fi
25580 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25581 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25582 if test $ac_cv_struct_tm = sys/time.h; then
25583
25584 cat >>confdefs.h <<\_ACEOF
25585 #define TM_IN_SYS_TIME 1
25586 _ACEOF
25587
25588 fi
25589
25590 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25593   echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595   cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601 #include <sys/types.h>
25602 #include <$ac_cv_struct_tm>
25603
25604
25605 int
25606 main ()
25607 {
25608 static struct tm ac_aggr;
25609 if (ac_aggr.tm_zone)
25610 return 0;
25611   ;
25612   return 0;
25613 }
25614 _ACEOF
25615 rm -f conftest.$ac_objext
25616 if { (ac_try="$ac_compile"
25617 case "(($ac_try" in
25618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25619   *) ac_try_echo=$ac_try;;
25620 esac
25621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25622   (eval "$ac_compile") 2>conftest.er1
25623   ac_status=$?
25624   grep -v '^ *+' conftest.er1 >conftest.err
25625   rm -f conftest.er1
25626   cat conftest.err >&5
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); } && {
25629          test -z "$ac_c_werror_flag" ||
25630          test ! -s conftest.err
25631        } && test -s conftest.$ac_objext; then
25632   ac_cv_member_struct_tm_tm_zone=yes
25633 else
25634   echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25636
25637         cat >conftest.$ac_ext <<_ACEOF
25638 /* confdefs.h.  */
25639 _ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h.  */
25643 #include <sys/types.h>
25644 #include <$ac_cv_struct_tm>
25645
25646
25647 int
25648 main ()
25649 {
25650 static struct tm ac_aggr;
25651 if (sizeof ac_aggr.tm_zone)
25652 return 0;
25653   ;
25654   return 0;
25655 }
25656 _ACEOF
25657 rm -f conftest.$ac_objext
25658 if { (ac_try="$ac_compile"
25659 case "(($ac_try" in
25660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661   *) ac_try_echo=$ac_try;;
25662 esac
25663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664   (eval "$ac_compile") 2>conftest.er1
25665   ac_status=$?
25666   grep -v '^ *+' conftest.er1 >conftest.err
25667   rm -f conftest.er1
25668   cat conftest.err >&5
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); } && {
25671          test -z "$ac_c_werror_flag" ||
25672          test ! -s conftest.err
25673        } && test -s conftest.$ac_objext; then
25674   ac_cv_member_struct_tm_tm_zone=yes
25675 else
25676   echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25678
25679         ac_cv_member_struct_tm_tm_zone=no
25680 fi
25681
25682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25683 fi
25684
25685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25686 fi
25687 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25688 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25689 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25690
25691 cat >>confdefs.h <<_ACEOF
25692 #define HAVE_STRUCT_TM_TM_ZONE 1
25693 _ACEOF
25694
25695
25696 fi
25697
25698 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25699
25700 cat >>confdefs.h <<\_ACEOF
25701 #define HAVE_TM_ZONE 1
25702 _ACEOF
25703
25704 else
25705   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25706 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25707 if test "${ac_cv_have_decl_tzname+set}" = set; then
25708   echo $ECHO_N "(cached) $ECHO_C" >&6
25709 else
25710   cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h.  */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h.  */
25716 #include <time.h>
25717
25718 int
25719 main ()
25720 {
25721 #ifndef tzname
25722   (void) tzname;
25723 #endif
25724
25725   ;
25726   return 0;
25727 }
25728 _ACEOF
25729 rm -f conftest.$ac_objext
25730 if { (ac_try="$ac_compile"
25731 case "(($ac_try" in
25732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733   *) ac_try_echo=$ac_try;;
25734 esac
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736   (eval "$ac_compile") 2>conftest.er1
25737   ac_status=$?
25738   grep -v '^ *+' conftest.er1 >conftest.err
25739   rm -f conftest.er1
25740   cat conftest.err >&5
25741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742   (exit $ac_status); } && {
25743          test -z "$ac_c_werror_flag" ||
25744          test ! -s conftest.err
25745        } && test -s conftest.$ac_objext; then
25746   ac_cv_have_decl_tzname=yes
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751         ac_cv_have_decl_tzname=no
25752 fi
25753
25754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25755 fi
25756 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25757 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25758 if test $ac_cv_have_decl_tzname = yes; then
25759
25760 cat >>confdefs.h <<_ACEOF
25761 #define HAVE_DECL_TZNAME 1
25762 _ACEOF
25763
25764
25765 else
25766   cat >>confdefs.h <<_ACEOF
25767 #define HAVE_DECL_TZNAME 0
25768 _ACEOF
25769
25770
25771 fi
25772
25773
25774   { echo "$as_me:$LINENO: checking for tzname" >&5
25775 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25776 if test "${ac_cv_var_tzname+set}" = set; then
25777   echo $ECHO_N "(cached) $ECHO_C" >&6
25778 else
25779   cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h.  */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h.  */
25785 #include <time.h>
25786 #if !HAVE_DECL_TZNAME
25787 extern char *tzname[];
25788 #endif
25789
25790 int
25791 main ()
25792 {
25793 return tzname[0][0];
25794   ;
25795   return 0;
25796 }
25797 _ACEOF
25798 rm -f conftest.$ac_objext conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802   *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805   (eval "$ac_link") 2>conftest.er1
25806   ac_status=$?
25807   grep -v '^ *+' conftest.er1 >conftest.err
25808   rm -f conftest.er1
25809   cat conftest.err >&5
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); } && {
25812          test -z "$ac_c_werror_flag" ||
25813          test ! -s conftest.err
25814        } && test -s conftest$ac_exeext &&
25815        $as_test_x conftest$ac_exeext; then
25816   ac_cv_var_tzname=yes
25817 else
25818   echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25820
25821         ac_cv_var_tzname=no
25822 fi
25823
25824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25825       conftest$ac_exeext conftest.$ac_ext
25826 fi
25827 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25828 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25829   if test $ac_cv_var_tzname = yes; then
25830
25831 cat >>confdefs.h <<\_ACEOF
25832 #define HAVE_TZNAME 1
25833 _ACEOF
25834
25835   fi
25836 fi
25837
25838
25839 { echo "$as_me:$LINENO: checking for utime.h" >&5
25840 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
25841 if test "${ba_cv_header_utime_h+set}" = set; then
25842   echo $ECHO_N "(cached) $ECHO_C" >&6
25843 else
25844   cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850
25851 #include <sys/types.h>
25852 #include <utime.h>
25853 int
25854 main ()
25855 {
25856 struct utimbuf foo
25857   ;
25858   return 0;
25859 }
25860 _ACEOF
25861 rm -f conftest.$ac_objext
25862 if { (ac_try="$ac_compile"
25863 case "(($ac_try" in
25864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25865   *) ac_try_echo=$ac_try;;
25866 esac
25867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25868   (eval "$ac_compile") 2>conftest.er1
25869   ac_status=$?
25870   grep -v '^ *+' conftest.er1 >conftest.err
25871   rm -f conftest.er1
25872   cat conftest.err >&5
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); } && {
25875          test -z "$ac_c_werror_flag" ||
25876          test ! -s conftest.err
25877        } && test -s conftest.$ac_objext; then
25878   ba_cv_header_utime_h=yes
25879 else
25880   echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25882
25883         ba_cv_header_utime_h=no
25884 fi
25885
25886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25887 fi
25888 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
25889 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
25890 test $ba_cv_header_utime_h = yes &&
25891 cat >>confdefs.h <<\_ACEOF
25892 #define HAVE_UTIME_H 1
25893 _ACEOF
25894
25895
25896 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25897 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25898 if test "${ba_cv_header_socklen_t+set}" = set; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907
25908 #include <sys/types.h>
25909 #include <sys/socket.h>
25910 int
25911 main ()
25912 {
25913 socklen_t x
25914   ;
25915   return 0;
25916 }
25917 _ACEOF
25918 rm -f conftest.$ac_objext
25919 if { (ac_try="$ac_compile"
25920 case "(($ac_try" in
25921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922   *) ac_try_echo=$ac_try;;
25923 esac
25924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25925   (eval "$ac_compile") 2>conftest.er1
25926   ac_status=$?
25927   grep -v '^ *+' conftest.er1 >conftest.err
25928   rm -f conftest.er1
25929   cat conftest.err >&5
25930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); } && {
25932          test -z "$ac_c_werror_flag" ||
25933          test ! -s conftest.err
25934        } && test -s conftest.$ac_objext; then
25935   ba_cv_header_socklen_t=yes
25936 else
25937   echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25939
25940         ba_cv_header_socklen_t=no
25941 fi
25942
25943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25944 fi
25945 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
25946 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
25947 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
25948 #define HAVE_SOCKLEN_T 1
25949 _ACEOF
25950
25951
25952 { echo "$as_me:$LINENO: checking for bigendian" >&5
25953 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
25954 if test "${ba_cv_bigendian+set}" = set; then
25955   echo $ECHO_N "(cached) $ECHO_C" >&6
25956 else
25957   if test "$cross_compiling" = yes; then
25958   ba_cv_bigendian=no
25959 else
25960   cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966 main(){long a=1L; char *p=(char *)&a; exit(*p);}
25967 _ACEOF
25968 rm -f conftest$ac_exeext
25969 if { (ac_try="$ac_link"
25970 case "(($ac_try" in
25971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972   *) ac_try_echo=$ac_try;;
25973 esac
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975   (eval "$ac_link") 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25979   { (case "(($ac_try" in
25980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981   *) ac_try_echo=$ac_try;;
25982 esac
25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984   (eval "$ac_try") 2>&5
25985   ac_status=$?
25986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987   (exit $ac_status); }; }; then
25988   ba_cv_bigendian=yes
25989 else
25990   echo "$as_me: program exited with status $ac_status" >&5
25991 echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25993
25994 ( exit $ac_status )
25995 ba_cv_bigendian=no
25996 fi
25997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25998 fi
25999
26000
26001 fi
26002 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
26003 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
26004 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
26005 #define HAVE_BIGENDIAN 1
26006 _ACEOF
26007
26008
26009 ac_ext=cpp
26010 ac_cpp='$CXXCPP $CPPFLAGS'
26011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26014
26015
26016 { echo "$as_me:$LINENO: checking for typeof" >&5
26017 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
26018 if test "${ba_cv_have_typeof+set}" = set; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021   if test "$cross_compiling" = yes; then
26022   ba_cv_have_typeof=no
26023 else
26024   cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h.  */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h.  */
26030 main(){char *a = 0; a = (typeof a)a;}
26031 _ACEOF
26032 rm -f conftest$ac_exeext
26033 if { (ac_try="$ac_link"
26034 case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039   (eval "$ac_link") 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26043   { (case "(($ac_try" in
26044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045   *) ac_try_echo=$ac_try;;
26046 esac
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048   (eval "$ac_try") 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); }; }; then
26052   ba_cv_have_typeof=yes
26053 else
26054   echo "$as_me: program exited with status $ac_status" >&5
26055 echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26057
26058 ( exit $ac_status )
26059 ba_cv_have_typeof=no
26060 fi
26061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26062 fi
26063
26064
26065 fi
26066 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
26067 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
26068 test $ba_cv_have_typeof = yes &&
26069 cat >>confdefs.h <<\_ACEOF
26070 #define HAVE_TYPEOF 1
26071 _ACEOF
26072
26073 ac_ext=c
26074 ac_cpp='$CPP $CPPFLAGS'
26075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26078
26079
26080 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26081 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
26082 if test "${ac_cv_c_const+set}" = set; then
26083   echo $ECHO_N "(cached) $ECHO_C" >&6
26084 else
26085   cat >conftest.$ac_ext <<_ACEOF
26086 /* confdefs.h.  */
26087 _ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h.  */
26091
26092 int
26093 main ()
26094 {
26095 /* FIXME: Include the comments suggested by Paul. */
26096 #ifndef __cplusplus
26097   /* Ultrix mips cc rejects this.  */
26098   typedef int charset[2];
26099   const charset cs;
26100   /* SunOS 4.1.1 cc rejects this.  */
26101   char const *const *pcpcc;
26102   char **ppc;
26103   /* NEC SVR4.0.2 mips cc rejects this.  */
26104   struct point {int x, y;};
26105   static struct point const zero = {0,0};
26106   /* AIX XL C 1.02.0.0 rejects this.
26107      It does not let you subtract one const X* pointer from another in
26108      an arm of an if-expression whose if-part is not a constant
26109      expression */
26110   const char *g = "string";
26111   pcpcc = &g + (g ? g-g : 0);
26112   /* HPUX 7.0 cc rejects these. */
26113   ++pcpcc;
26114   ppc = (char**) pcpcc;
26115   pcpcc = (char const *const *) ppc;
26116   { /* SCO 3.2v4 cc rejects this.  */
26117     char *t;
26118     char const *s = 0 ? (char *) 0 : (char const *) 0;
26119
26120     *t++ = 0;
26121     if (s) return 0;
26122   }
26123   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26124     int x[] = {25, 17};
26125     const int *foo = &x[0];
26126     ++foo;
26127   }
26128   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26129     typedef const int *iptr;
26130     iptr p = 0;
26131     ++p;
26132   }
26133   { /* AIX XL C 1.02.0.0 rejects this saying
26134        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26135     struct s { int j; const int *ap[3]; };
26136     struct s *b; b->j = 5;
26137   }
26138   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26139     const int foo = 10;
26140     if (!foo) return 0;
26141   }
26142   return !cs[0] && !zero.x;
26143 #endif
26144
26145   ;
26146   return 0;
26147 }
26148 _ACEOF
26149 rm -f conftest.$ac_objext
26150 if { (ac_try="$ac_compile"
26151 case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156   (eval "$ac_compile") 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } && {
26163          test -z "$ac_c_werror_flag" ||
26164          test ! -s conftest.err
26165        } && test -s conftest.$ac_objext; then
26166   ac_cv_c_const=yes
26167 else
26168   echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171         ac_cv_c_const=no
26172 fi
26173
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26175 fi
26176 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26177 echo "${ECHO_T}$ac_cv_c_const" >&6; }
26178 if test $ac_cv_c_const = no; then
26179
26180 cat >>confdefs.h <<\_ACEOF
26181 #define const
26182 _ACEOF
26183
26184 fi
26185
26186
26187
26188 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
26189 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
26190 fstype=no
26191 # The order of these tests is important.
26192 cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h.  */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h.  */
26198 #include <sys/statvfs.h>
26199 #include <sys/fstyp.h>
26200 _ACEOF
26201 if { (ac_try="$ac_cpp conftest.$ac_ext"
26202 case "(($ac_try" in
26203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204   *) ac_try_echo=$ac_try;;
26205 esac
26206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26208   ac_status=$?
26209   grep -v '^ *+' conftest.er1 >conftest.err
26210   rm -f conftest.er1
26211   cat conftest.err >&5
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); } >/dev/null && {
26214          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26215          test ! -s conftest.err
26216        }; then
26217   cat >>confdefs.h <<\_ACEOF
26218 #define FSTYPE_STATVFS 1
26219 _ACEOF
26220  fstype=SVR4
26221 else
26222   echo "$as_me: failed program was:" >&5
26223 sed 's/^/| /' conftest.$ac_ext >&5
26224
26225
26226 fi
26227
26228 rm -f conftest.err conftest.$ac_ext
26229 if test $fstype = no; then
26230 cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h.  */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h.  */
26236 #include <sys/statfs.h>
26237 #include <sys/fstyp.h>
26238 _ACEOF
26239 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
26246   ac_status=$?
26247   grep -v '^ *+' conftest.er1 >conftest.err
26248   rm -f conftest.er1
26249   cat conftest.err >&5
26250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251   (exit $ac_status); } >/dev/null && {
26252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26253          test ! -s conftest.err
26254        }; then
26255   cat >>confdefs.h <<\_ACEOF
26256 #define FSTYPE_USG_STATFS 1
26257 _ACEOF
26258  fstype=SVR3
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263
26264 fi
26265
26266 rm -f conftest.err conftest.$ac_ext
26267 fi
26268 if test $fstype = no; then
26269 cat >conftest.$ac_ext <<_ACEOF
26270 /* confdefs.h.  */
26271 _ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h.  */
26275 #include <sys/statfs.h>
26276 #include <sys/vmount.h>
26277 _ACEOF
26278 if { (ac_try="$ac_cpp conftest.$ac_ext"
26279 case "(($ac_try" in
26280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281   *) ac_try_echo=$ac_try;;
26282 esac
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26285   ac_status=$?
26286   grep -v '^ *+' conftest.er1 >conftest.err
26287   rm -f conftest.er1
26288   cat conftest.err >&5
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); } >/dev/null && {
26291          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26292          test ! -s conftest.err
26293        }; then
26294   cat >>confdefs.h <<\_ACEOF
26295 #define FSTYPE_AIX_STATFS 1
26296 _ACEOF
26297  fstype=AIX
26298 else
26299   echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26301
26302
26303 fi
26304
26305 rm -f conftest.err conftest.$ac_ext
26306 fi
26307 if test $fstype = no; then
26308 cat >conftest.$ac_ext <<_ACEOF
26309 /* confdefs.h.  */
26310 _ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h.  */
26314 #include <mntent.h>
26315 _ACEOF
26316 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
26323   ac_status=$?
26324   grep -v '^ *+' conftest.er1 >conftest.err
26325   rm -f conftest.er1
26326   cat conftest.err >&5
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); } >/dev/null && {
26329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26330          test ! -s conftest.err
26331        }; then
26332   cat >>confdefs.h <<\_ACEOF
26333 #define FSTYPE_MNTENT 1
26334 _ACEOF
26335  fstype=4.3BSD
26336 else
26337   echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340
26341 fi
26342
26343 rm -f conftest.err conftest.$ac_ext
26344 fi
26345 if test $fstype = no; then
26346 cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h.  */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h.  */
26352 #include <sys/mount.h>
26353
26354 _ACEOF
26355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26356   $EGREP "f_type;" >/dev/null 2>&1; then
26357   cat >>confdefs.h <<\_ACEOF
26358 #define FSTYPE_STATFS 1
26359 _ACEOF
26360  fstype=4.4BSD/OSF1
26361 fi
26362 rm -f conftest*
26363
26364 fi
26365 if test $fstype = no; then
26366 cat >conftest.$ac_ext <<_ACEOF
26367 /* confdefs.h.  */
26368 _ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h.  */
26372 #include <sys/mount.h>
26373 #include <sys/fs_types.h>
26374 _ACEOF
26375 if { (ac_try="$ac_cpp conftest.$ac_ext"
26376 case "(($ac_try" in
26377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26378   *) ac_try_echo=$ac_try;;
26379 esac
26380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26382   ac_status=$?
26383   grep -v '^ *+' conftest.er1 >conftest.err
26384   rm -f conftest.er1
26385   cat conftest.err >&5
26386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387   (exit $ac_status); } >/dev/null && {
26388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26389          test ! -s conftest.err
26390        }; then
26391   cat >>confdefs.h <<\_ACEOF
26392 #define FSTYPE_GETMNT 1
26393 _ACEOF
26394  fstype=Ultrix
26395 else
26396   echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26398
26399
26400 fi
26401
26402 rm -f conftest.err conftest.$ac_ext
26403 fi
26404 { echo "$as_me:$LINENO: result: $fstype" >&5
26405 echo "${ECHO_T}$fstype" >&6; }
26406
26407 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26408   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26409 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26410 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26411   echo $ECHO_N "(cached) $ECHO_C" >&6
26412 fi
26413 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26414 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26415 else
26416   # Is the header compilable?
26417 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
26418 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
26419 cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425 $ac_includes_default
26426 #include <sys/statvfs.h>
26427 _ACEOF
26428 rm -f conftest.$ac_objext
26429 if { (ac_try="$ac_compile"
26430 case "(($ac_try" in
26431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26432   *) ac_try_echo=$ac_try;;
26433 esac
26434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26435   (eval "$ac_compile") 2>conftest.er1
26436   ac_status=$?
26437   grep -v '^ *+' conftest.er1 >conftest.err
26438   rm -f conftest.er1
26439   cat conftest.err >&5
26440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441   (exit $ac_status); } && {
26442          test -z "$ac_c_werror_flag" ||
26443          test ! -s conftest.err
26444        } && test -s conftest.$ac_objext; then
26445   ac_header_compiler=yes
26446 else
26447   echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26449
26450         ac_header_compiler=no
26451 fi
26452
26453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26455 echo "${ECHO_T}$ac_header_compiler" >&6; }
26456
26457 # Is the header present?
26458 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
26459 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
26460 cat >conftest.$ac_ext <<_ACEOF
26461 /* confdefs.h.  */
26462 _ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h.  */
26466 #include <sys/statvfs.h>
26467 _ACEOF
26468 if { (ac_try="$ac_cpp conftest.$ac_ext"
26469 case "(($ac_try" in
26470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471   *) ac_try_echo=$ac_try;;
26472 esac
26473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26475   ac_status=$?
26476   grep -v '^ *+' conftest.er1 >conftest.err
26477   rm -f conftest.er1
26478   cat conftest.err >&5
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); } >/dev/null && {
26481          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26482          test ! -s conftest.err
26483        }; then
26484   ac_header_preproc=yes
26485 else
26486   echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26488
26489   ac_header_preproc=no
26490 fi
26491
26492 rm -f conftest.err conftest.$ac_ext
26493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26494 echo "${ECHO_T}$ac_header_preproc" >&6; }
26495
26496 # So?  What about this header?
26497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26498   yes:no: )
26499     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26500 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26501     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
26502 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
26503     ac_header_preproc=yes
26504     ;;
26505   no:yes:* )
26506     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
26507 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
26508     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
26509 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
26510     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
26511 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
26512     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
26513 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26514     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
26515 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
26516     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
26517 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
26518
26519     ;;
26520 esac
26521 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
26522 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
26523 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
26524   echo $ECHO_N "(cached) $ECHO_C" >&6
26525 else
26526   ac_cv_header_sys_statvfs_h=$ac_header_preproc
26527 fi
26528 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
26529 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
26530
26531 fi
26532 if test $ac_cv_header_sys_statvfs_h = yes; then
26533
26534 cat >>confdefs.h <<\_ACEOF
26535 #define HAVE_SYS_STATVFS_H 1
26536 _ACEOF
26537
26538 fi
26539
26540
26541
26542 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26543 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26544 if test "${ac_cv_type_signal+set}" = set; then
26545   echo $ECHO_N "(cached) $ECHO_C" >&6
26546 else
26547   cat >conftest.$ac_ext <<_ACEOF
26548 /* confdefs.h.  */
26549 _ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h.  */
26553 #include <sys/types.h>
26554 #include <signal.h>
26555
26556 int
26557 main ()
26558 {
26559 return *(signal (0, 0)) (0) == 1;
26560   ;
26561   return 0;
26562 }
26563 _ACEOF
26564 rm -f conftest.$ac_objext
26565 if { (ac_try="$ac_compile"
26566 case "(($ac_try" in
26567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568   *) ac_try_echo=$ac_try;;
26569 esac
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571   (eval "$ac_compile") 2>conftest.er1
26572   ac_status=$?
26573   grep -v '^ *+' conftest.er1 >conftest.err
26574   rm -f conftest.er1
26575   cat conftest.err >&5
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); } && {
26578          test -z "$ac_c_werror_flag" ||
26579          test ! -s conftest.err
26580        } && test -s conftest.$ac_objext; then
26581   ac_cv_type_signal=int
26582 else
26583   echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26585
26586         ac_cv_type_signal=void
26587 fi
26588
26589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590 fi
26591 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26592 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26593
26594 cat >>confdefs.h <<_ACEOF
26595 #define RETSIGTYPE $ac_cv_type_signal
26596 _ACEOF
26597
26598
26599
26600   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
26601 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
26602   if test "${bash_cv_signal_vintage+set}" = set; then
26603   echo $ECHO_N "(cached) $ECHO_C" >&6
26604 else
26605
26606     cat >conftest.$ac_ext <<_ACEOF
26607 /* confdefs.h.  */
26608 _ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h.  */
26612 #include <signal.h>
26613 int
26614 main ()
26615 {
26616
26617       sigset_t ss;
26618       struct sigaction sa;
26619       sigemptyset(&ss); sigsuspend(&ss);
26620       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26621       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26622
26623   ;
26624   return 0;
26625 }
26626 _ACEOF
26627 rm -f conftest.$ac_objext conftest$ac_exeext
26628 if { (ac_try="$ac_link"
26629 case "(($ac_try" in
26630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631   *) ac_try_echo=$ac_try;;
26632 esac
26633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26634   (eval "$ac_link") 2>conftest.er1
26635   ac_status=$?
26636   grep -v '^ *+' conftest.er1 >conftest.err
26637   rm -f conftest.er1
26638   cat conftest.err >&5
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); } && {
26641          test -z "$ac_c_werror_flag" ||
26642          test ! -s conftest.err
26643        } && test -s conftest$ac_exeext &&
26644        $as_test_x conftest$ac_exeext; then
26645   bash_cv_signal_vintage="posix"
26646 else
26647   echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26649
26650
26651       cat >conftest.$ac_ext <<_ACEOF
26652 /* confdefs.h.  */
26653 _ACEOF
26654 cat confdefs.h >>conftest.$ac_ext
26655 cat >>conftest.$ac_ext <<_ACEOF
26656 /* end confdefs.h.  */
26657 #include <signal.h>
26658 int
26659 main ()
26660 {
26661
26662           int mask = sigmask(SIGINT);
26663           sigsetmask(mask); sigblock(mask); sigpause(mask);
26664
26665   ;
26666   return 0;
26667 }
26668 _ACEOF
26669 rm -f conftest.$ac_objext conftest$ac_exeext
26670 if { (ac_try="$ac_link"
26671 case "(($ac_try" in
26672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673   *) ac_try_echo=$ac_try;;
26674 esac
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676   (eval "$ac_link") 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } && {
26683          test -z "$ac_c_werror_flag" ||
26684          test ! -s conftest.err
26685        } && test -s conftest$ac_exeext &&
26686        $as_test_x conftest$ac_exeext; then
26687   bash_cv_signal_vintage="4.2bsd"
26688 else
26689   echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26691
26692
26693         cat >conftest.$ac_ext <<_ACEOF
26694 /* confdefs.h.  */
26695 _ACEOF
26696 cat confdefs.h >>conftest.$ac_ext
26697 cat >>conftest.$ac_ext <<_ACEOF
26698 /* end confdefs.h.  */
26699
26700           #include <signal.h>
26701           RETSIGTYPE foo() { }
26702 int
26703 main ()
26704 {
26705
26706                   int mask = sigmask(SIGINT);
26707                   sigset(SIGINT, foo); sigrelse(SIGINT);
26708                   sighold(SIGINT); sigpause(SIGINT);
26709
26710   ;
26711   return 0;
26712 }
26713 _ACEOF
26714 rm -f conftest.$ac_objext conftest$ac_exeext
26715 if { (ac_try="$ac_link"
26716 case "(($ac_try" in
26717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718   *) ac_try_echo=$ac_try;;
26719 esac
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721   (eval "$ac_link") 2>conftest.er1
26722   ac_status=$?
26723   grep -v '^ *+' conftest.er1 >conftest.err
26724   rm -f conftest.er1
26725   cat conftest.err >&5
26726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); } && {
26728          test -z "$ac_c_werror_flag" ||
26729          test ! -s conftest.err
26730        } && test -s conftest$ac_exeext &&
26731        $as_test_x conftest$ac_exeext; then
26732   bash_cv_signal_vintage="svr3"
26733 else
26734   echo "$as_me: failed program was:" >&5
26735 sed 's/^/| /' conftest.$ac_ext >&5
26736
26737         bash_cv_signal_vintage="v7"
26738
26739 fi
26740
26741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26742       conftest$ac_exeext conftest.$ac_ext
26743
26744 fi
26745
26746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26747       conftest$ac_exeext conftest.$ac_ext
26748
26749 fi
26750
26751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26752       conftest$ac_exeext conftest.$ac_ext
26753
26754 fi
26755
26756   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
26757 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
26758   if test "$bash_cv_signal_vintage" = "posix"; then
26759     cat >>confdefs.h <<\_ACEOF
26760 #define HAVE_POSIX_SIGNALS 1
26761 _ACEOF
26762
26763   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26764     cat >>confdefs.h <<\_ACEOF
26765 #define HAVE_BSD_SIGNALS 1
26766 _ACEOF
26767
26768   elif test "$bash_cv_signal_vintage" = "svr3"; then
26769     cat >>confdefs.h <<\_ACEOF
26770 #define HAVE_USG_SIGHOLD 1
26771 _ACEOF
26772
26773   fi
26774
26775 { echo "$as_me:$LINENO: checking for mode_t" >&5
26776 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
26777 if test "${ac_cv_type_mode_t+set}" = set; then
26778   echo $ECHO_N "(cached) $ECHO_C" >&6
26779 else
26780   cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 $ac_includes_default
26787 typedef mode_t ac__type_new_;
26788 int
26789 main ()
26790 {
26791 if ((ac__type_new_ *) 0)
26792   return 0;
26793 if (sizeof (ac__type_new_))
26794   return 0;
26795   ;
26796   return 0;
26797 }
26798 _ACEOF
26799 rm -f conftest.$ac_objext
26800 if { (ac_try="$ac_compile"
26801 case "(($ac_try" in
26802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803   *) ac_try_echo=$ac_try;;
26804 esac
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806   (eval "$ac_compile") 2>conftest.er1
26807   ac_status=$?
26808   grep -v '^ *+' conftest.er1 >conftest.err
26809   rm -f conftest.er1
26810   cat conftest.err >&5
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } && {
26813          test -z "$ac_c_werror_flag" ||
26814          test ! -s conftest.err
26815        } && test -s conftest.$ac_objext; then
26816   ac_cv_type_mode_t=yes
26817 else
26818   echo "$as_me: failed program was:" >&5
26819 sed 's/^/| /' conftest.$ac_ext >&5
26820
26821         ac_cv_type_mode_t=no
26822 fi
26823
26824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825 fi
26826 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26827 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
26828 if test $ac_cv_type_mode_t = yes; then
26829   :
26830 else
26831
26832 cat >>confdefs.h <<_ACEOF
26833 #define mode_t int
26834 _ACEOF
26835
26836 fi
26837
26838 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26839 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
26840 if test "${ac_cv_type_uid_t+set}" = set; then
26841   echo $ECHO_N "(cached) $ECHO_C" >&6
26842 else
26843   cat >conftest.$ac_ext <<_ACEOF
26844 /* confdefs.h.  */
26845 _ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h.  */
26849 #include <sys/types.h>
26850
26851 _ACEOF
26852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26853   $EGREP "uid_t" >/dev/null 2>&1; then
26854   ac_cv_type_uid_t=yes
26855 else
26856   ac_cv_type_uid_t=no
26857 fi
26858 rm -f conftest*
26859
26860 fi
26861 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26862 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
26863 if test $ac_cv_type_uid_t = no; then
26864
26865 cat >>confdefs.h <<\_ACEOF
26866 #define uid_t int
26867 _ACEOF
26868
26869
26870 cat >>confdefs.h <<\_ACEOF
26871 #define gid_t int
26872 _ACEOF
26873
26874 fi
26875
26876 { echo "$as_me:$LINENO: checking for size_t" >&5
26877 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
26878 if test "${ac_cv_type_size_t+set}" = set; then
26879   echo $ECHO_N "(cached) $ECHO_C" >&6
26880 else
26881   cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887 $ac_includes_default
26888 typedef size_t ac__type_new_;
26889 int
26890 main ()
26891 {
26892 if ((ac__type_new_ *) 0)
26893   return 0;
26894 if (sizeof (ac__type_new_))
26895   return 0;
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 rm -f conftest.$ac_objext
26901 if { (ac_try="$ac_compile"
26902 case "(($ac_try" in
26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904   *) ac_try_echo=$ac_try;;
26905 esac
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907   (eval "$ac_compile") 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } && {
26914          test -z "$ac_c_werror_flag" ||
26915          test ! -s conftest.err
26916        } && test -s conftest.$ac_objext; then
26917   ac_cv_type_size_t=yes
26918 else
26919   echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26921
26922         ac_cv_type_size_t=no
26923 fi
26924
26925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26926 fi
26927 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26928 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
26929 if test $ac_cv_type_size_t = yes; then
26930   :
26931 else
26932
26933 cat >>confdefs.h <<_ACEOF
26934 #define size_t unsigned int
26935 _ACEOF
26936
26937 fi
26938
26939 { echo "$as_me:$LINENO: checking for pid_t" >&5
26940 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
26941 if test "${ac_cv_type_pid_t+set}" = set; then
26942   echo $ECHO_N "(cached) $ECHO_C" >&6
26943 else
26944   cat >conftest.$ac_ext <<_ACEOF
26945 /* confdefs.h.  */
26946 _ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h.  */
26950 $ac_includes_default
26951 typedef pid_t ac__type_new_;
26952 int
26953 main ()
26954 {
26955 if ((ac__type_new_ *) 0)
26956   return 0;
26957 if (sizeof (ac__type_new_))
26958   return 0;
26959   ;
26960   return 0;
26961 }
26962 _ACEOF
26963 rm -f conftest.$ac_objext
26964 if { (ac_try="$ac_compile"
26965 case "(($ac_try" in
26966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967   *) ac_try_echo=$ac_try;;
26968 esac
26969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970   (eval "$ac_compile") 2>conftest.er1
26971   ac_status=$?
26972   grep -v '^ *+' conftest.er1 >conftest.err
26973   rm -f conftest.er1
26974   cat conftest.err >&5
26975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976   (exit $ac_status); } && {
26977          test -z "$ac_c_werror_flag" ||
26978          test ! -s conftest.err
26979        } && test -s conftest.$ac_objext; then
26980   ac_cv_type_pid_t=yes
26981 else
26982   echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26984
26985         ac_cv_type_pid_t=no
26986 fi
26987
26988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26989 fi
26990 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26991 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
26992 if test $ac_cv_type_pid_t = yes; then
26993   :
26994 else
26995
26996 cat >>confdefs.h <<_ACEOF
26997 #define pid_t int
26998 _ACEOF
26999
27000 fi
27001
27002 { echo "$as_me:$LINENO: checking for off_t" >&5
27003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
27004 if test "${ac_cv_type_off_t+set}" = set; then
27005   echo $ECHO_N "(cached) $ECHO_C" >&6
27006 else
27007   cat >conftest.$ac_ext <<_ACEOF
27008 /* confdefs.h.  */
27009 _ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h.  */
27013 $ac_includes_default
27014 typedef off_t ac__type_new_;
27015 int
27016 main ()
27017 {
27018 if ((ac__type_new_ *) 0)
27019   return 0;
27020 if (sizeof (ac__type_new_))
27021   return 0;
27022   ;
27023   return 0;
27024 }
27025 _ACEOF
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033   (eval "$ac_compile") 2>conftest.er1
27034   ac_status=$?
27035   grep -v '^ *+' conftest.er1 >conftest.err
27036   rm -f conftest.er1
27037   cat conftest.err >&5
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); } && {
27040          test -z "$ac_c_werror_flag" ||
27041          test ! -s conftest.err
27042        } && test -s conftest.$ac_objext; then
27043   ac_cv_type_off_t=yes
27044 else
27045   echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048         ac_cv_type_off_t=no
27049 fi
27050
27051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27052 fi
27053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
27055 if test $ac_cv_type_off_t = yes; then
27056   :
27057 else
27058
27059 cat >>confdefs.h <<_ACEOF
27060 #define off_t long int
27061 _ACEOF
27062
27063 fi
27064
27065 { echo "$as_me:$LINENO: checking for ino_t" >&5
27066 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
27067 if test "${ac_cv_type_ino_t+set}" = set; then
27068   echo $ECHO_N "(cached) $ECHO_C" >&6
27069 else
27070   cat >conftest.$ac_ext <<_ACEOF
27071 /* confdefs.h.  */
27072 _ACEOF
27073 cat confdefs.h >>conftest.$ac_ext
27074 cat >>conftest.$ac_ext <<_ACEOF
27075 /* end confdefs.h.  */
27076 $ac_includes_default
27077 typedef ino_t ac__type_new_;
27078 int
27079 main ()
27080 {
27081 if ((ac__type_new_ *) 0)
27082   return 0;
27083 if (sizeof (ac__type_new_))
27084   return 0;
27085   ;
27086   return 0;
27087 }
27088 _ACEOF
27089 rm -f conftest.$ac_objext
27090 if { (ac_try="$ac_compile"
27091 case "(($ac_try" in
27092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093   *) ac_try_echo=$ac_try;;
27094 esac
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096   (eval "$ac_compile") 2>conftest.er1
27097   ac_status=$?
27098   grep -v '^ *+' conftest.er1 >conftest.err
27099   rm -f conftest.er1
27100   cat conftest.err >&5
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); } && {
27103          test -z "$ac_c_werror_flag" ||
27104          test ! -s conftest.err
27105        } && test -s conftest.$ac_objext; then
27106   ac_cv_type_ino_t=yes
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111         ac_cv_type_ino_t=no
27112 fi
27113
27114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27115 fi
27116 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
27117 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
27118 if test $ac_cv_type_ino_t = yes; then
27119   :
27120 else
27121
27122 cat >>confdefs.h <<_ACEOF
27123 #define ino_t unsigned long
27124 _ACEOF
27125
27126 fi
27127
27128 { echo "$as_me:$LINENO: checking for dev_t" >&5
27129 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
27130 if test "${ac_cv_type_dev_t+set}" = set; then
27131   echo $ECHO_N "(cached) $ECHO_C" >&6
27132 else
27133   cat >conftest.$ac_ext <<_ACEOF
27134 /* confdefs.h.  */
27135 _ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h.  */
27139 $ac_includes_default
27140 typedef dev_t ac__type_new_;
27141 int
27142 main ()
27143 {
27144 if ((ac__type_new_ *) 0)
27145   return 0;
27146 if (sizeof (ac__type_new_))
27147   return 0;
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156   *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159   (eval "$ac_compile") 2>conftest.er1
27160   ac_status=$?
27161   grep -v '^ *+' conftest.er1 >conftest.err
27162   rm -f conftest.er1
27163   cat conftest.err >&5
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); } && {
27166          test -z "$ac_c_werror_flag" ||
27167          test ! -s conftest.err
27168        } && test -s conftest.$ac_objext; then
27169   ac_cv_type_dev_t=yes
27170 else
27171   echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27173
27174         ac_cv_type_dev_t=no
27175 fi
27176
27177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27178 fi
27179 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27180 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
27181 if test $ac_cv_type_dev_t = yes; then
27182   :
27183 else
27184
27185 cat >>confdefs.h <<_ACEOF
27186 #define dev_t unsigned long
27187 _ACEOF
27188
27189 fi
27190
27191 { echo "$as_me:$LINENO: checking for daddr_t" >&5
27192 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
27193 if test "${ac_cv_type_daddr_t+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 daddr_t 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          test -z "$ac_c_werror_flag" ||
27230          test ! -s conftest.err
27231        } && test -s conftest.$ac_objext; then
27232   ac_cv_type_daddr_t=yes
27233 else
27234   echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27236
27237         ac_cv_type_daddr_t=no
27238 fi
27239
27240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27241 fi
27242 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
27243 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
27244 if test $ac_cv_type_daddr_t = yes; then
27245   :
27246 else
27247
27248 cat >>confdefs.h <<_ACEOF
27249 #define daddr_t long
27250 _ACEOF
27251
27252 fi
27253
27254 { echo "$as_me:$LINENO: checking for major_t" >&5
27255 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
27256 if test "${ac_cv_type_major_t+set}" = set; then
27257   echo $ECHO_N "(cached) $ECHO_C" >&6
27258 else
27259   cat >conftest.$ac_ext <<_ACEOF
27260 /* confdefs.h.  */
27261 _ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h.  */
27265 $ac_includes_default
27266 typedef major_t ac__type_new_;
27267 int
27268 main ()
27269 {
27270 if ((ac__type_new_ *) 0)
27271   return 0;
27272 if (sizeof (ac__type_new_))
27273   return 0;
27274   ;
27275   return 0;
27276 }
27277 _ACEOF
27278 rm -f conftest.$ac_objext
27279 if { (ac_try="$ac_compile"
27280 case "(($ac_try" in
27281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282   *) ac_try_echo=$ac_try;;
27283 esac
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285   (eval "$ac_compile") 2>conftest.er1
27286   ac_status=$?
27287   grep -v '^ *+' conftest.er1 >conftest.err
27288   rm -f conftest.er1
27289   cat conftest.err >&5
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); } && {
27292          test -z "$ac_c_werror_flag" ||
27293          test ! -s conftest.err
27294        } && test -s conftest.$ac_objext; then
27295   ac_cv_type_major_t=yes
27296 else
27297   echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27299
27300         ac_cv_type_major_t=no
27301 fi
27302
27303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27304 fi
27305 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
27306 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
27307 if test $ac_cv_type_major_t = yes; then
27308   :
27309 else
27310
27311 cat >>confdefs.h <<_ACEOF
27312 #define major_t int
27313 _ACEOF
27314
27315 fi
27316
27317 { echo "$as_me:$LINENO: checking for minor_t" >&5
27318 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
27319 if test "${ac_cv_type_minor_t+set}" = set; then
27320   echo $ECHO_N "(cached) $ECHO_C" >&6
27321 else
27322   cat >conftest.$ac_ext <<_ACEOF
27323 /* confdefs.h.  */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h.  */
27328 $ac_includes_default
27329 typedef minor_t ac__type_new_;
27330 int
27331 main ()
27332 {
27333 if ((ac__type_new_ *) 0)
27334   return 0;
27335 if (sizeof (ac__type_new_))
27336   return 0;
27337   ;
27338   return 0;
27339 }
27340 _ACEOF
27341 rm -f conftest.$ac_objext
27342 if { (ac_try="$ac_compile"
27343 case "(($ac_try" in
27344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345   *) ac_try_echo=$ac_try;;
27346 esac
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348   (eval "$ac_compile") 2>conftest.er1
27349   ac_status=$?
27350   grep -v '^ *+' conftest.er1 >conftest.err
27351   rm -f conftest.er1
27352   cat conftest.err >&5
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); } && {
27355          test -z "$ac_c_werror_flag" ||
27356          test ! -s conftest.err
27357        } && test -s conftest.$ac_objext; then
27358   ac_cv_type_minor_t=yes
27359 else
27360   echo "$as_me: failed program was:" >&5
27361 sed 's/^/| /' conftest.$ac_ext >&5
27362
27363         ac_cv_type_minor_t=no
27364 fi
27365
27366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27367 fi
27368 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
27369 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
27370 if test $ac_cv_type_minor_t = yes; then
27371   :
27372 else
27373
27374 cat >>confdefs.h <<_ACEOF
27375 #define minor_t int
27376 _ACEOF
27377
27378 fi
27379
27380 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27381 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27382 if test "${ac_cv_type_ssize_t+set}" = set; then
27383   echo $ECHO_N "(cached) $ECHO_C" >&6
27384 else
27385   cat >conftest.$ac_ext <<_ACEOF
27386 /* confdefs.h.  */
27387 _ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h.  */
27391 $ac_includes_default
27392 typedef ssize_t ac__type_new_;
27393 int
27394 main ()
27395 {
27396 if ((ac__type_new_ *) 0)
27397   return 0;
27398 if (sizeof (ac__type_new_))
27399   return 0;
27400   ;
27401   return 0;
27402 }
27403 _ACEOF
27404 rm -f conftest.$ac_objext
27405 if { (ac_try="$ac_compile"
27406 case "(($ac_try" in
27407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408   *) ac_try_echo=$ac_try;;
27409 esac
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411   (eval "$ac_compile") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } && {
27418          test -z "$ac_c_werror_flag" ||
27419          test ! -s conftest.err
27420        } && test -s conftest.$ac_objext; then
27421   ac_cv_type_ssize_t=yes
27422 else
27423   echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27425
27426         ac_cv_type_ssize_t=no
27427 fi
27428
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27430 fi
27431 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27432 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27433 if test $ac_cv_type_ssize_t = yes; then
27434   :
27435 else
27436
27437 cat >>confdefs.h <<_ACEOF
27438 #define ssize_t int
27439 _ACEOF
27440
27441 fi
27442
27443 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27444 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
27445 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27446   echo $ECHO_N "(cached) $ECHO_C" >&6
27447 else
27448   cat >conftest.$ac_ext <<_ACEOF
27449 /* confdefs.h.  */
27450 _ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h.  */
27454 $ac_includes_default
27455 int
27456 main ()
27457 {
27458 static struct stat ac_aggr;
27459 if (ac_aggr.st_blocks)
27460 return 0;
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest.$ac_objext
27466 if { (ac_try="$ac_compile"
27467 case "(($ac_try" in
27468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469   *) ac_try_echo=$ac_try;;
27470 esac
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472   (eval "$ac_compile") 2>conftest.er1
27473   ac_status=$?
27474   grep -v '^ *+' conftest.er1 >conftest.err
27475   rm -f conftest.er1
27476   cat conftest.err >&5
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); } && {
27479          test -z "$ac_c_werror_flag" ||
27480          test ! -s conftest.err
27481        } && test -s conftest.$ac_objext; then
27482   ac_cv_member_struct_stat_st_blocks=yes
27483 else
27484   echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487         cat >conftest.$ac_ext <<_ACEOF
27488 /* confdefs.h.  */
27489 _ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h.  */
27493 $ac_includes_default
27494 int
27495 main ()
27496 {
27497 static struct stat ac_aggr;
27498 if (sizeof ac_aggr.st_blocks)
27499 return 0;
27500   ;
27501   return 0;
27502 }
27503 _ACEOF
27504 rm -f conftest.$ac_objext
27505 if { (ac_try="$ac_compile"
27506 case "(($ac_try" in
27507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508   *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511   (eval "$ac_compile") 2>conftest.er1
27512   ac_status=$?
27513   grep -v '^ *+' conftest.er1 >conftest.err
27514   rm -f conftest.er1
27515   cat conftest.err >&5
27516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517   (exit $ac_status); } && {
27518          test -z "$ac_c_werror_flag" ||
27519          test ! -s conftest.err
27520        } && test -s conftest.$ac_objext; then
27521   ac_cv_member_struct_stat_st_blocks=yes
27522 else
27523   echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27525
27526         ac_cv_member_struct_stat_st_blocks=no
27527 fi
27528
27529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27530 fi
27531
27532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533 fi
27534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27535 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
27536 if test $ac_cv_member_struct_stat_st_blocks = yes; then
27537
27538 cat >>confdefs.h <<_ACEOF
27539 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27540 _ACEOF
27541
27542
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_ST_BLOCKS 1
27545 _ACEOF
27546
27547 else
27548   case " $LIBOBJS " in
27549   *" fileblocks.$ac_objext "* ) ;;
27550   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27551  ;;
27552 esac
27553
27554 fi
27555
27556
27557 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27558 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
27559 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27560   echo $ECHO_N "(cached) $ECHO_C" >&6
27561 else
27562   cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h.  */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h.  */
27568 $ac_includes_default
27569 int
27570 main ()
27571 {
27572 static struct stat ac_aggr;
27573 if (ac_aggr.st_rdev)
27574 return 0;
27575   ;
27576   return 0;
27577 }
27578 _ACEOF
27579 rm -f conftest.$ac_objext
27580 if { (ac_try="$ac_compile"
27581 case "(($ac_try" in
27582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583   *) ac_try_echo=$ac_try;;
27584 esac
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586   (eval "$ac_compile") 2>conftest.er1
27587   ac_status=$?
27588   grep -v '^ *+' conftest.er1 >conftest.err
27589   rm -f conftest.er1
27590   cat conftest.err >&5
27591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592   (exit $ac_status); } && {
27593          test -z "$ac_c_werror_flag" ||
27594          test ! -s conftest.err
27595        } && test -s conftest.$ac_objext; then
27596   ac_cv_member_struct_stat_st_rdev=yes
27597 else
27598   echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27600
27601         cat >conftest.$ac_ext <<_ACEOF
27602 /* confdefs.h.  */
27603 _ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h.  */
27607 $ac_includes_default
27608 int
27609 main ()
27610 {
27611 static struct stat ac_aggr;
27612 if (sizeof ac_aggr.st_rdev)
27613 return 0;
27614   ;
27615   return 0;
27616 }
27617 _ACEOF
27618 rm -f conftest.$ac_objext
27619 if { (ac_try="$ac_compile"
27620 case "(($ac_try" in
27621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622   *) ac_try_echo=$ac_try;;
27623 esac
27624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625   (eval "$ac_compile") 2>conftest.er1
27626   ac_status=$?
27627   grep -v '^ *+' conftest.er1 >conftest.err
27628   rm -f conftest.er1
27629   cat conftest.err >&5
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); } && {
27632          test -z "$ac_c_werror_flag" ||
27633          test ! -s conftest.err
27634        } && test -s conftest.$ac_objext; then
27635   ac_cv_member_struct_stat_st_rdev=yes
27636 else
27637   echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27639
27640         ac_cv_member_struct_stat_st_rdev=no
27641 fi
27642
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27644 fi
27645
27646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27647 fi
27648 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27649 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
27650 if test $ac_cv_member_struct_stat_st_rdev = yes; then
27651
27652 cat >>confdefs.h <<_ACEOF
27653 #define HAVE_STRUCT_STAT_ST_RDEV 1
27654 _ACEOF
27655
27656
27657 cat >>confdefs.h <<\_ACEOF
27658 #define HAVE_ST_RDEV 1
27659 _ACEOF
27660
27661 fi
27662
27663
27664 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27665 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
27666 if test "${ac_cv_struct_tm+set}" = set; then
27667   echo $ECHO_N "(cached) $ECHO_C" >&6
27668 else
27669   cat >conftest.$ac_ext <<_ACEOF
27670 /* confdefs.h.  */
27671 _ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h.  */
27675 #include <sys/types.h>
27676 #include <time.h>
27677
27678 int
27679 main ()
27680 {
27681 struct tm tm;
27682                                      int *p = &tm.tm_sec;
27683                                      return !p;
27684   ;
27685   return 0;
27686 }
27687 _ACEOF
27688 rm -f conftest.$ac_objext
27689 if { (ac_try="$ac_compile"
27690 case "(($ac_try" in
27691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692   *) ac_try_echo=$ac_try;;
27693 esac
27694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695   (eval "$ac_compile") 2>conftest.er1
27696   ac_status=$?
27697   grep -v '^ *+' conftest.er1 >conftest.err
27698   rm -f conftest.er1
27699   cat conftest.err >&5
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); } && {
27702          test -z "$ac_c_werror_flag" ||
27703          test ! -s conftest.err
27704        } && test -s conftest.$ac_objext; then
27705   ac_cv_struct_tm=time.h
27706 else
27707   echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27709
27710         ac_cv_struct_tm=sys/time.h
27711 fi
27712
27713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27714 fi
27715 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27716 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
27717 if test $ac_cv_struct_tm = sys/time.h; then
27718
27719 cat >>confdefs.h <<\_ACEOF
27720 #define TM_IN_SYS_TIME 1
27721 _ACEOF
27722
27723 fi
27724
27725 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
27727 if test "${ac_cv_c_const+set}" = set; then
27728   echo $ECHO_N "(cached) $ECHO_C" >&6
27729 else
27730   cat >conftest.$ac_ext <<_ACEOF
27731 /* confdefs.h.  */
27732 _ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h.  */
27736
27737 int
27738 main ()
27739 {
27740 /* FIXME: Include the comments suggested by Paul. */
27741 #ifndef __cplusplus
27742   /* Ultrix mips cc rejects this.  */
27743   typedef int charset[2];
27744   const charset cs;
27745   /* SunOS 4.1.1 cc rejects this.  */
27746   char const *const *pcpcc;
27747   char **ppc;
27748   /* NEC SVR4.0.2 mips cc rejects this.  */
27749   struct point {int x, y;};
27750   static struct point const zero = {0,0};
27751   /* AIX XL C 1.02.0.0 rejects this.
27752      It does not let you subtract one const X* pointer from another in
27753      an arm of an if-expression whose if-part is not a constant
27754      expression */
27755   const char *g = "string";
27756   pcpcc = &g + (g ? g-g : 0);
27757   /* HPUX 7.0 cc rejects these. */
27758   ++pcpcc;
27759   ppc = (char**) pcpcc;
27760   pcpcc = (char const *const *) ppc;
27761   { /* SCO 3.2v4 cc rejects this.  */
27762     char *t;
27763     char const *s = 0 ? (char *) 0 : (char const *) 0;
27764
27765     *t++ = 0;
27766     if (s) return 0;
27767   }
27768   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27769     int x[] = {25, 17};
27770     const int *foo = &x[0];
27771     ++foo;
27772   }
27773   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27774     typedef const int *iptr;
27775     iptr p = 0;
27776     ++p;
27777   }
27778   { /* AIX XL C 1.02.0.0 rejects this saying
27779        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27780     struct s { int j; const int *ap[3]; };
27781     struct s *b; b->j = 5;
27782   }
27783   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27784     const int foo = 10;
27785     if (!foo) return 0;
27786   }
27787   return !cs[0] && !zero.x;
27788 #endif
27789
27790   ;
27791   return 0;
27792 }
27793 _ACEOF
27794 rm -f conftest.$ac_objext
27795 if { (ac_try="$ac_compile"
27796 case "(($ac_try" in
27797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27798   *) ac_try_echo=$ac_try;;
27799 esac
27800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27801   (eval "$ac_compile") 2>conftest.er1
27802   ac_status=$?
27803   grep -v '^ *+' conftest.er1 >conftest.err
27804   rm -f conftest.er1
27805   cat conftest.err >&5
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); } && {
27808          test -z "$ac_c_werror_flag" ||
27809          test ! -s conftest.err
27810        } && test -s conftest.$ac_objext; then
27811   ac_cv_c_const=yes
27812 else
27813   echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27815
27816         ac_cv_c_const=no
27817 fi
27818
27819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27820 fi
27821 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27822 echo "${ECHO_T}$ac_cv_c_const" >&6; }
27823 if test $ac_cv_c_const = no; then
27824
27825 cat >>confdefs.h <<\_ACEOF
27826 #define const
27827 _ACEOF
27828
27829 fi
27830
27831
27832
27833 { echo "$as_me:$LINENO: checking for char" >&5
27834 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
27835 if test "${ac_cv_type_char+set}" = set; then
27836   echo $ECHO_N "(cached) $ECHO_C" >&6
27837 else
27838   cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h.  */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h.  */
27844 $ac_includes_default
27845 typedef char ac__type_new_;
27846 int
27847 main ()
27848 {
27849 if ((ac__type_new_ *) 0)
27850   return 0;
27851 if (sizeof (ac__type_new_))
27852   return 0;
27853   ;
27854   return 0;
27855 }
27856 _ACEOF
27857 rm -f conftest.$ac_objext
27858 if { (ac_try="$ac_compile"
27859 case "(($ac_try" in
27860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861   *) ac_try_echo=$ac_try;;
27862 esac
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864   (eval "$ac_compile") 2>conftest.er1
27865   ac_status=$?
27866   grep -v '^ *+' conftest.er1 >conftest.err
27867   rm -f conftest.er1
27868   cat conftest.err >&5
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); } && {
27871          test -z "$ac_c_werror_flag" ||
27872          test ! -s conftest.err
27873        } && test -s conftest.$ac_objext; then
27874   ac_cv_type_char=yes
27875 else
27876   echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27878
27879         ac_cv_type_char=no
27880 fi
27881
27882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27883 fi
27884 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
27885 echo "${ECHO_T}$ac_cv_type_char" >&6; }
27886
27887 # The cast to long int works around a bug in the HP C Compiler
27888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27890 # This bug is HP SR number 8606223364.
27891 { echo "$as_me:$LINENO: checking size of char" >&5
27892 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
27893 if test "${ac_cv_sizeof_char+set}" = set; then
27894   echo $ECHO_N "(cached) $ECHO_C" >&6
27895 else
27896   if test "$cross_compiling" = yes; then
27897   # Depending upon the size, compute the lo and hi bounds.
27898 cat >conftest.$ac_ext <<_ACEOF
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904 $ac_includes_default
27905    typedef char ac__type_sizeof_;
27906 int
27907 main ()
27908 {
27909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27910 test_array [0] = 0
27911
27912   ;
27913   return 0;
27914 }
27915 _ACEOF
27916 rm -f conftest.$ac_objext
27917 if { (ac_try="$ac_compile"
27918 case "(($ac_try" in
27919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920   *) ac_try_echo=$ac_try;;
27921 esac
27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923   (eval "$ac_compile") 2>conftest.er1
27924   ac_status=$?
27925   grep -v '^ *+' conftest.er1 >conftest.err
27926   rm -f conftest.er1
27927   cat conftest.err >&5
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); } && {
27930          test -z "$ac_c_werror_flag" ||
27931          test ! -s conftest.err
27932        } && test -s conftest.$ac_objext; then
27933   ac_lo=0 ac_mid=0
27934   while :; do
27935     cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 $ac_includes_default
27942    typedef char ac__type_sizeof_;
27943 int
27944 main ()
27945 {
27946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27947 test_array [0] = 0
27948
27949   ;
27950   return 0;
27951 }
27952 _ACEOF
27953 rm -f conftest.$ac_objext
27954 if { (ac_try="$ac_compile"
27955 case "(($ac_try" in
27956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957   *) ac_try_echo=$ac_try;;
27958 esac
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960   (eval "$ac_compile") 2>conftest.er1
27961   ac_status=$?
27962   grep -v '^ *+' conftest.er1 >conftest.err
27963   rm -f conftest.er1
27964   cat conftest.err >&5
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); } && {
27967          test -z "$ac_c_werror_flag" ||
27968          test ! -s conftest.err
27969        } && test -s conftest.$ac_objext; then
27970   ac_hi=$ac_mid; break
27971 else
27972   echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27974
27975         ac_lo=`expr $ac_mid + 1`
27976                         if test $ac_lo -le $ac_mid; then
27977                           ac_lo= ac_hi=
27978                           break
27979                         fi
27980                         ac_mid=`expr 2 '*' $ac_mid + 1`
27981 fi
27982
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984   done
27985 else
27986   echo "$as_me: failed program was:" >&5
27987 sed 's/^/| /' conftest.$ac_ext >&5
27988
27989         cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995 $ac_includes_default
27996    typedef char ac__type_sizeof_;
27997 int
27998 main ()
27999 {
28000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28001 test_array [0] = 0
28002
28003   ;
28004   return 0;
28005 }
28006 _ACEOF
28007 rm -f conftest.$ac_objext
28008 if { (ac_try="$ac_compile"
28009 case "(($ac_try" in
28010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011   *) ac_try_echo=$ac_try;;
28012 esac
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014   (eval "$ac_compile") 2>conftest.er1
28015   ac_status=$?
28016   grep -v '^ *+' conftest.er1 >conftest.err
28017   rm -f conftest.er1
28018   cat conftest.err >&5
28019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); } && {
28021          test -z "$ac_c_werror_flag" ||
28022          test ! -s conftest.err
28023        } && test -s conftest.$ac_objext; then
28024   ac_hi=-1 ac_mid=-1
28025   while :; do
28026     cat >conftest.$ac_ext <<_ACEOF
28027 /* confdefs.h.  */
28028 _ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h.  */
28032 $ac_includes_default
28033    typedef char ac__type_sizeof_;
28034 int
28035 main ()
28036 {
28037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28038 test_array [0] = 0
28039
28040   ;
28041   return 0;
28042 }
28043 _ACEOF
28044 rm -f conftest.$ac_objext
28045 if { (ac_try="$ac_compile"
28046 case "(($ac_try" in
28047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048   *) ac_try_echo=$ac_try;;
28049 esac
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051   (eval "$ac_compile") 2>conftest.er1
28052   ac_status=$?
28053   grep -v '^ *+' conftest.er1 >conftest.err
28054   rm -f conftest.er1
28055   cat conftest.err >&5
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); } && {
28058          test -z "$ac_c_werror_flag" ||
28059          test ! -s conftest.err
28060        } && test -s conftest.$ac_objext; then
28061   ac_lo=$ac_mid; break
28062 else
28063   echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28065
28066         ac_hi=`expr '(' $ac_mid ')' - 1`
28067                         if test $ac_mid -le $ac_hi; then
28068                           ac_lo= ac_hi=
28069                           break
28070                         fi
28071                         ac_mid=`expr 2 '*' $ac_mid`
28072 fi
28073
28074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28075   done
28076 else
28077   echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28079
28080         ac_lo= ac_hi=
28081 fi
28082
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084 fi
28085
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087 # Binary search between lo and hi bounds.
28088 while test "x$ac_lo" != "x$ac_hi"; do
28089   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28090   cat >conftest.$ac_ext <<_ACEOF
28091 /* confdefs.h.  */
28092 _ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h.  */
28096 $ac_includes_default
28097    typedef char ac__type_sizeof_;
28098 int
28099 main ()
28100 {
28101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28102 test_array [0] = 0
28103
28104   ;
28105   return 0;
28106 }
28107 _ACEOF
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112   *) ac_try_echo=$ac_try;;
28113 esac
28114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28115   (eval "$ac_compile") 2>conftest.er1
28116   ac_status=$?
28117   grep -v '^ *+' conftest.er1 >conftest.err
28118   rm -f conftest.er1
28119   cat conftest.err >&5
28120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121   (exit $ac_status); } && {
28122          test -z "$ac_c_werror_flag" ||
28123          test ! -s conftest.err
28124        } && test -s conftest.$ac_objext; then
28125   ac_hi=$ac_mid
28126 else
28127   echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28129
28130         ac_lo=`expr '(' $ac_mid ')' + 1`
28131 fi
28132
28133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28134 done
28135 case $ac_lo in
28136 ?*) ac_cv_sizeof_char=$ac_lo;;
28137 '') if test "$ac_cv_type_char" = yes; then
28138      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28139 See \`config.log' for more details." >&5
28140 echo "$as_me: error: cannot compute sizeof (char)
28141 See \`config.log' for more details." >&2;}
28142    { (exit 77); exit 77; }; }
28143    else
28144      ac_cv_sizeof_char=0
28145    fi ;;
28146 esac
28147 else
28148   cat >conftest.$ac_ext <<_ACEOF
28149 /* confdefs.h.  */
28150 _ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h.  */
28154 $ac_includes_default
28155    typedef char ac__type_sizeof_;
28156 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28157 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28158 #include <stdio.h>
28159 #include <stdlib.h>
28160 int
28161 main ()
28162 {
28163
28164   FILE *f = fopen ("conftest.val", "w");
28165   if (! f)
28166     return 1;
28167   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28168     {
28169       long int i = longval ();
28170       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28171         return 1;
28172       fprintf (f, "%ld\n", i);
28173     }
28174   else
28175     {
28176       unsigned long int i = ulongval ();
28177       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28178         return 1;
28179       fprintf (f, "%lu\n", i);
28180     }
28181   return ferror (f) || fclose (f) != 0;
28182
28183   ;
28184   return 0;
28185 }
28186 _ACEOF
28187 rm -f conftest$ac_exeext
28188 if { (ac_try="$ac_link"
28189 case "(($ac_try" in
28190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191   *) ac_try_echo=$ac_try;;
28192 esac
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194   (eval "$ac_link") 2>&5
28195   ac_status=$?
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28198   { (case "(($ac_try" in
28199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200   *) ac_try_echo=$ac_try;;
28201 esac
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203   (eval "$ac_try") 2>&5
28204   ac_status=$?
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); }; }; then
28207   ac_cv_sizeof_char=`cat conftest.val`
28208 else
28209   echo "$as_me: program exited with status $ac_status" >&5
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213 ( exit $ac_status )
28214 if test "$ac_cv_type_char" = yes; then
28215      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
28216 See \`config.log' for more details." >&5
28217 echo "$as_me: error: cannot compute sizeof (char)
28218 See \`config.log' for more details." >&2;}
28219    { (exit 77); exit 77; }; }
28220    else
28221      ac_cv_sizeof_char=0
28222    fi
28223 fi
28224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28225 fi
28226 rm -f conftest.val
28227 fi
28228 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
28229 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
28230
28231
28232
28233 cat >>confdefs.h <<_ACEOF
28234 #define SIZEOF_CHAR $ac_cv_sizeof_char
28235 _ACEOF
28236
28237
28238 { echo "$as_me:$LINENO: checking for short int" >&5
28239 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
28240 if test "${ac_cv_type_short_int+set}" = set; then
28241   echo $ECHO_N "(cached) $ECHO_C" >&6
28242 else
28243   cat >conftest.$ac_ext <<_ACEOF
28244 /* confdefs.h.  */
28245 _ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h.  */
28249 $ac_includes_default
28250 typedef short int ac__type_new_;
28251 int
28252 main ()
28253 {
28254 if ((ac__type_new_ *) 0)
28255   return 0;
28256 if (sizeof (ac__type_new_))
28257   return 0;
28258   ;
28259   return 0;
28260 }
28261 _ACEOF
28262 rm -f conftest.$ac_objext
28263 if { (ac_try="$ac_compile"
28264 case "(($ac_try" in
28265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266   *) ac_try_echo=$ac_try;;
28267 esac
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269   (eval "$ac_compile") 2>conftest.er1
28270   ac_status=$?
28271   grep -v '^ *+' conftest.er1 >conftest.err
28272   rm -f conftest.er1
28273   cat conftest.err >&5
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); } && {
28276          test -z "$ac_c_werror_flag" ||
28277          test ! -s conftest.err
28278        } && test -s conftest.$ac_objext; then
28279   ac_cv_type_short_int=yes
28280 else
28281   echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28283
28284         ac_cv_type_short_int=no
28285 fi
28286
28287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28288 fi
28289 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
28290 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
28291
28292 # The cast to long int works around a bug in the HP C Compiler
28293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28295 # This bug is HP SR number 8606223364.
28296 { echo "$as_me:$LINENO: checking size of short int" >&5
28297 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
28298 if test "${ac_cv_sizeof_short_int+set}" = set; then
28299   echo $ECHO_N "(cached) $ECHO_C" >&6
28300 else
28301   if test "$cross_compiling" = yes; then
28302   # Depending upon the size, compute the lo and hi bounds.
28303 cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309 $ac_includes_default
28310    typedef short int ac__type_sizeof_;
28311 int
28312 main ()
28313 {
28314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28315 test_array [0] = 0
28316
28317   ;
28318   return 0;
28319 }
28320 _ACEOF
28321 rm -f conftest.$ac_objext
28322 if { (ac_try="$ac_compile"
28323 case "(($ac_try" in
28324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325   *) ac_try_echo=$ac_try;;
28326 esac
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328   (eval "$ac_compile") 2>conftest.er1
28329   ac_status=$?
28330   grep -v '^ *+' conftest.er1 >conftest.err
28331   rm -f conftest.er1
28332   cat conftest.err >&5
28333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334   (exit $ac_status); } && {
28335          test -z "$ac_c_werror_flag" ||
28336          test ! -s conftest.err
28337        } && test -s conftest.$ac_objext; then
28338   ac_lo=0 ac_mid=0
28339   while :; do
28340     cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h.  */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h.  */
28346 $ac_includes_default
28347    typedef short int ac__type_sizeof_;
28348 int
28349 main ()
28350 {
28351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28352 test_array [0] = 0
28353
28354   ;
28355   return 0;
28356 }
28357 _ACEOF
28358 rm -f conftest.$ac_objext
28359 if { (ac_try="$ac_compile"
28360 case "(($ac_try" in
28361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362   *) ac_try_echo=$ac_try;;
28363 esac
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365   (eval "$ac_compile") 2>conftest.er1
28366   ac_status=$?
28367   grep -v '^ *+' conftest.er1 >conftest.err
28368   rm -f conftest.er1
28369   cat conftest.err >&5
28370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371   (exit $ac_status); } && {
28372          test -z "$ac_c_werror_flag" ||
28373          test ! -s conftest.err
28374        } && test -s conftest.$ac_objext; then
28375   ac_hi=$ac_mid; break
28376 else
28377   echo "$as_me: failed program was:" >&5
28378 sed 's/^/| /' conftest.$ac_ext >&5
28379
28380         ac_lo=`expr $ac_mid + 1`
28381                         if test $ac_lo -le $ac_mid; then
28382                           ac_lo= ac_hi=
28383                           break
28384                         fi
28385                         ac_mid=`expr 2 '*' $ac_mid + 1`
28386 fi
28387
28388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28389   done
28390 else
28391   echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28393
28394         cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400 $ac_includes_default
28401    typedef short int ac__type_sizeof_;
28402 int
28403 main ()
28404 {
28405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28406 test_array [0] = 0
28407
28408   ;
28409   return 0;
28410 }
28411 _ACEOF
28412 rm -f conftest.$ac_objext
28413 if { (ac_try="$ac_compile"
28414 case "(($ac_try" in
28415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416   *) ac_try_echo=$ac_try;;
28417 esac
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419   (eval "$ac_compile") 2>conftest.er1
28420   ac_status=$?
28421   grep -v '^ *+' conftest.er1 >conftest.err
28422   rm -f conftest.er1
28423   cat conftest.err >&5
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); } && {
28426          test -z "$ac_c_werror_flag" ||
28427          test ! -s conftest.err
28428        } && test -s conftest.$ac_objext; then
28429   ac_hi=-1 ac_mid=-1
28430   while :; do
28431     cat >conftest.$ac_ext <<_ACEOF
28432 /* confdefs.h.  */
28433 _ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h.  */
28437 $ac_includes_default
28438    typedef short int ac__type_sizeof_;
28439 int
28440 main ()
28441 {
28442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28443 test_array [0] = 0
28444
28445   ;
28446   return 0;
28447 }
28448 _ACEOF
28449 rm -f conftest.$ac_objext
28450 if { (ac_try="$ac_compile"
28451 case "(($ac_try" in
28452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453   *) ac_try_echo=$ac_try;;
28454 esac
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456   (eval "$ac_compile") 2>conftest.er1
28457   ac_status=$?
28458   grep -v '^ *+' conftest.er1 >conftest.err
28459   rm -f conftest.er1
28460   cat conftest.err >&5
28461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); } && {
28463          test -z "$ac_c_werror_flag" ||
28464          test ! -s conftest.err
28465        } && test -s conftest.$ac_objext; then
28466   ac_lo=$ac_mid; break
28467 else
28468   echo "$as_me: failed program was:" >&5
28469 sed 's/^/| /' conftest.$ac_ext >&5
28470
28471         ac_hi=`expr '(' $ac_mid ')' - 1`
28472                         if test $ac_mid -le $ac_hi; then
28473                           ac_lo= ac_hi=
28474                           break
28475                         fi
28476                         ac_mid=`expr 2 '*' $ac_mid`
28477 fi
28478
28479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28480   done
28481 else
28482   echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28484
28485         ac_lo= ac_hi=
28486 fi
28487
28488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28489 fi
28490
28491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28492 # Binary search between lo and hi bounds.
28493 while test "x$ac_lo" != "x$ac_hi"; do
28494   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28495   cat >conftest.$ac_ext <<_ACEOF
28496 /* confdefs.h.  */
28497 _ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h.  */
28501 $ac_includes_default
28502    typedef short int ac__type_sizeof_;
28503 int
28504 main ()
28505 {
28506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28507 test_array [0] = 0
28508
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 rm -f conftest.$ac_objext
28514 if { (ac_try="$ac_compile"
28515 case "(($ac_try" in
28516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517   *) ac_try_echo=$ac_try;;
28518 esac
28519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520   (eval "$ac_compile") 2>conftest.er1
28521   ac_status=$?
28522   grep -v '^ *+' conftest.er1 >conftest.err
28523   rm -f conftest.er1
28524   cat conftest.err >&5
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); } && {
28527          test -z "$ac_c_werror_flag" ||
28528          test ! -s conftest.err
28529        } && test -s conftest.$ac_objext; then
28530   ac_hi=$ac_mid
28531 else
28532   echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28534
28535         ac_lo=`expr '(' $ac_mid ')' + 1`
28536 fi
28537
28538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28539 done
28540 case $ac_lo in
28541 ?*) ac_cv_sizeof_short_int=$ac_lo;;
28542 '') if test "$ac_cv_type_short_int" = yes; then
28543      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28544 See \`config.log' for more details." >&5
28545 echo "$as_me: error: cannot compute sizeof (short int)
28546 See \`config.log' for more details." >&2;}
28547    { (exit 77); exit 77; }; }
28548    else
28549      ac_cv_sizeof_short_int=0
28550    fi ;;
28551 esac
28552 else
28553   cat >conftest.$ac_ext <<_ACEOF
28554 /* confdefs.h.  */
28555 _ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h.  */
28559 $ac_includes_default
28560    typedef short int ac__type_sizeof_;
28561 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28562 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28563 #include <stdio.h>
28564 #include <stdlib.h>
28565 int
28566 main ()
28567 {
28568
28569   FILE *f = fopen ("conftest.val", "w");
28570   if (! f)
28571     return 1;
28572   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28573     {
28574       long int i = longval ();
28575       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28576         return 1;
28577       fprintf (f, "%ld\n", i);
28578     }
28579   else
28580     {
28581       unsigned long int i = ulongval ();
28582       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28583         return 1;
28584       fprintf (f, "%lu\n", i);
28585     }
28586   return ferror (f) || fclose (f) != 0;
28587
28588   ;
28589   return 0;
28590 }
28591 _ACEOF
28592 rm -f conftest$ac_exeext
28593 if { (ac_try="$ac_link"
28594 case "(($ac_try" in
28595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596   *) ac_try_echo=$ac_try;;
28597 esac
28598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599   (eval "$ac_link") 2>&5
28600   ac_status=$?
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28603   { (case "(($ac_try" in
28604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605   *) ac_try_echo=$ac_try;;
28606 esac
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608   (eval "$ac_try") 2>&5
28609   ac_status=$?
28610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); }; }; then
28612   ac_cv_sizeof_short_int=`cat conftest.val`
28613 else
28614   echo "$as_me: program exited with status $ac_status" >&5
28615 echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618 ( exit $ac_status )
28619 if test "$ac_cv_type_short_int" = yes; then
28620      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
28621 See \`config.log' for more details." >&5
28622 echo "$as_me: error: cannot compute sizeof (short int)
28623 See \`config.log' for more details." >&2;}
28624    { (exit 77); exit 77; }; }
28625    else
28626      ac_cv_sizeof_short_int=0
28627    fi
28628 fi
28629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28630 fi
28631 rm -f conftest.val
28632 fi
28633 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
28634 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
28635
28636
28637
28638 cat >>confdefs.h <<_ACEOF
28639 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
28640 _ACEOF
28641
28642
28643 { echo "$as_me:$LINENO: checking for int" >&5
28644 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28645 if test "${ac_cv_type_int+set}" = set; then
28646   echo $ECHO_N "(cached) $ECHO_C" >&6
28647 else
28648   cat >conftest.$ac_ext <<_ACEOF
28649 /* confdefs.h.  */
28650 _ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h.  */
28654 $ac_includes_default
28655 typedef int ac__type_new_;
28656 int
28657 main ()
28658 {
28659 if ((ac__type_new_ *) 0)
28660   return 0;
28661 if (sizeof (ac__type_new_))
28662   return 0;
28663   ;
28664   return 0;
28665 }
28666 _ACEOF
28667 rm -f conftest.$ac_objext
28668 if { (ac_try="$ac_compile"
28669 case "(($ac_try" in
28670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671   *) ac_try_echo=$ac_try;;
28672 esac
28673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28674   (eval "$ac_compile") 2>conftest.er1
28675   ac_status=$?
28676   grep -v '^ *+' conftest.er1 >conftest.err
28677   rm -f conftest.er1
28678   cat conftest.err >&5
28679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680   (exit $ac_status); } && {
28681          test -z "$ac_c_werror_flag" ||
28682          test ! -s conftest.err
28683        } && test -s conftest.$ac_objext; then
28684   ac_cv_type_int=yes
28685 else
28686   echo "$as_me: failed program was:" >&5
28687 sed 's/^/| /' conftest.$ac_ext >&5
28688
28689         ac_cv_type_int=no
28690 fi
28691
28692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28693 fi
28694 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28695 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28696
28697 # The cast to long int works around a bug in the HP C Compiler
28698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28700 # This bug is HP SR number 8606223364.
28701 { echo "$as_me:$LINENO: checking size of int" >&5
28702 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28703 if test "${ac_cv_sizeof_int+set}" = set; then
28704   echo $ECHO_N "(cached) $ECHO_C" >&6
28705 else
28706   if test "$cross_compiling" = yes; then
28707   # Depending upon the size, compute the lo and hi bounds.
28708 cat >conftest.$ac_ext <<_ACEOF
28709 /* confdefs.h.  */
28710 _ACEOF
28711 cat confdefs.h >>conftest.$ac_ext
28712 cat >>conftest.$ac_ext <<_ACEOF
28713 /* end confdefs.h.  */
28714 $ac_includes_default
28715    typedef int ac__type_sizeof_;
28716 int
28717 main ()
28718 {
28719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28720 test_array [0] = 0
28721
28722   ;
28723   return 0;
28724 }
28725 _ACEOF
28726 rm -f conftest.$ac_objext
28727 if { (ac_try="$ac_compile"
28728 case "(($ac_try" in
28729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730   *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733   (eval "$ac_compile") 2>conftest.er1
28734   ac_status=$?
28735   grep -v '^ *+' conftest.er1 >conftest.err
28736   rm -f conftest.er1
28737   cat conftest.err >&5
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); } && {
28740          test -z "$ac_c_werror_flag" ||
28741          test ! -s conftest.err
28742        } && test -s conftest.$ac_objext; then
28743   ac_lo=0 ac_mid=0
28744   while :; do
28745     cat >conftest.$ac_ext <<_ACEOF
28746 /* confdefs.h.  */
28747 _ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h.  */
28751 $ac_includes_default
28752    typedef int ac__type_sizeof_;
28753 int
28754 main ()
28755 {
28756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28757 test_array [0] = 0
28758
28759   ;
28760   return 0;
28761 }
28762 _ACEOF
28763 rm -f conftest.$ac_objext
28764 if { (ac_try="$ac_compile"
28765 case "(($ac_try" in
28766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767   *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770   (eval "$ac_compile") 2>conftest.er1
28771   ac_status=$?
28772   grep -v '^ *+' conftest.er1 >conftest.err
28773   rm -f conftest.er1
28774   cat conftest.err >&5
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); } && {
28777          test -z "$ac_c_werror_flag" ||
28778          test ! -s conftest.err
28779        } && test -s conftest.$ac_objext; then
28780   ac_hi=$ac_mid; break
28781 else
28782   echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28784
28785         ac_lo=`expr $ac_mid + 1`
28786                         if test $ac_lo -le $ac_mid; then
28787                           ac_lo= ac_hi=
28788                           break
28789                         fi
28790                         ac_mid=`expr 2 '*' $ac_mid + 1`
28791 fi
28792
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794   done
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799         cat >conftest.$ac_ext <<_ACEOF
28800 /* confdefs.h.  */
28801 _ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h.  */
28805 $ac_includes_default
28806    typedef int ac__type_sizeof_;
28807 int
28808 main ()
28809 {
28810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28811 test_array [0] = 0
28812
28813   ;
28814   return 0;
28815 }
28816 _ACEOF
28817 rm -f conftest.$ac_objext
28818 if { (ac_try="$ac_compile"
28819 case "(($ac_try" in
28820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821   *) ac_try_echo=$ac_try;;
28822 esac
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824   (eval "$ac_compile") 2>conftest.er1
28825   ac_status=$?
28826   grep -v '^ *+' conftest.er1 >conftest.err
28827   rm -f conftest.er1
28828   cat conftest.err >&5
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } && {
28831          test -z "$ac_c_werror_flag" ||
28832          test ! -s conftest.err
28833        } && test -s conftest.$ac_objext; then
28834   ac_hi=-1 ac_mid=-1
28835   while :; do
28836     cat >conftest.$ac_ext <<_ACEOF
28837 /* confdefs.h.  */
28838 _ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h.  */
28842 $ac_includes_default
28843    typedef int ac__type_sizeof_;
28844 int
28845 main ()
28846 {
28847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28848 test_array [0] = 0
28849
28850   ;
28851   return 0;
28852 }
28853 _ACEOF
28854 rm -f conftest.$ac_objext
28855 if { (ac_try="$ac_compile"
28856 case "(($ac_try" in
28857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858   *) ac_try_echo=$ac_try;;
28859 esac
28860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861   (eval "$ac_compile") 2>conftest.er1
28862   ac_status=$?
28863   grep -v '^ *+' conftest.er1 >conftest.err
28864   rm -f conftest.er1
28865   cat conftest.err >&5
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); } && {
28868          test -z "$ac_c_werror_flag" ||
28869          test ! -s conftest.err
28870        } && test -s conftest.$ac_objext; then
28871   ac_lo=$ac_mid; break
28872 else
28873   echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28875
28876         ac_hi=`expr '(' $ac_mid ')' - 1`
28877                         if test $ac_mid -le $ac_hi; then
28878                           ac_lo= ac_hi=
28879                           break
28880                         fi
28881                         ac_mid=`expr 2 '*' $ac_mid`
28882 fi
28883
28884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28885   done
28886 else
28887   echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890         ac_lo= ac_hi=
28891 fi
28892
28893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28894 fi
28895
28896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28897 # Binary search between lo and hi bounds.
28898 while test "x$ac_lo" != "x$ac_hi"; do
28899   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28900   cat >conftest.$ac_ext <<_ACEOF
28901 /* confdefs.h.  */
28902 _ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h.  */
28906 $ac_includes_default
28907    typedef int ac__type_sizeof_;
28908 int
28909 main ()
28910 {
28911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28912 test_array [0] = 0
28913
28914   ;
28915   return 0;
28916 }
28917 _ACEOF
28918 rm -f conftest.$ac_objext
28919 if { (ac_try="$ac_compile"
28920 case "(($ac_try" in
28921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922   *) ac_try_echo=$ac_try;;
28923 esac
28924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925   (eval "$ac_compile") 2>conftest.er1
28926   ac_status=$?
28927   grep -v '^ *+' conftest.er1 >conftest.err
28928   rm -f conftest.er1
28929   cat conftest.err >&5
28930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931   (exit $ac_status); } && {
28932          test -z "$ac_c_werror_flag" ||
28933          test ! -s conftest.err
28934        } && test -s conftest.$ac_objext; then
28935   ac_hi=$ac_mid
28936 else
28937   echo "$as_me: failed program was:" >&5
28938 sed 's/^/| /' conftest.$ac_ext >&5
28939
28940         ac_lo=`expr '(' $ac_mid ')' + 1`
28941 fi
28942
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944 done
28945 case $ac_lo in
28946 ?*) ac_cv_sizeof_int=$ac_lo;;
28947 '') if test "$ac_cv_type_int" = yes; then
28948      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28949 See \`config.log' for more details." >&5
28950 echo "$as_me: error: cannot compute sizeof (int)
28951 See \`config.log' for more details." >&2;}
28952    { (exit 77); exit 77; }; }
28953    else
28954      ac_cv_sizeof_int=0
28955    fi ;;
28956 esac
28957 else
28958   cat >conftest.$ac_ext <<_ACEOF
28959 /* confdefs.h.  */
28960 _ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h.  */
28964 $ac_includes_default
28965    typedef int ac__type_sizeof_;
28966 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28967 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28968 #include <stdio.h>
28969 #include <stdlib.h>
28970 int
28971 main ()
28972 {
28973
28974   FILE *f = fopen ("conftest.val", "w");
28975   if (! f)
28976     return 1;
28977   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28978     {
28979       long int i = longval ();
28980       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28981         return 1;
28982       fprintf (f, "%ld\n", i);
28983     }
28984   else
28985     {
28986       unsigned long int i = ulongval ();
28987       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28988         return 1;
28989       fprintf (f, "%lu\n", i);
28990     }
28991   return ferror (f) || fclose (f) != 0;
28992
28993   ;
28994   return 0;
28995 }
28996 _ACEOF
28997 rm -f conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001   *) ac_try_echo=$ac_try;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004   (eval "$ac_link") 2>&5
29005   ac_status=$?
29006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29008   { (case "(($ac_try" in
29009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010   *) ac_try_echo=$ac_try;;
29011 esac
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013   (eval "$ac_try") 2>&5
29014   ac_status=$?
29015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016   (exit $ac_status); }; }; then
29017   ac_cv_sizeof_int=`cat conftest.val`
29018 else
29019   echo "$as_me: program exited with status $ac_status" >&5
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29022
29023 ( exit $ac_status )
29024 if test "$ac_cv_type_int" = yes; then
29025      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29026 See \`config.log' for more details." >&5
29027 echo "$as_me: error: cannot compute sizeof (int)
29028 See \`config.log' for more details." >&2;}
29029    { (exit 77); exit 77; }; }
29030    else
29031      ac_cv_sizeof_int=0
29032    fi
29033 fi
29034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29035 fi
29036 rm -f conftest.val
29037 fi
29038 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29039 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29040
29041
29042
29043 cat >>confdefs.h <<_ACEOF
29044 #define SIZEOF_INT $ac_cv_sizeof_int
29045 _ACEOF
29046
29047
29048 { echo "$as_me:$LINENO: checking for long int" >&5
29049 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
29050 if test "${ac_cv_type_long_int+set}" = set; then
29051   echo $ECHO_N "(cached) $ECHO_C" >&6
29052 else
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 $ac_includes_default
29060 typedef long int ac__type_new_;
29061 int
29062 main ()
29063 {
29064 if ((ac__type_new_ *) 0)
29065   return 0;
29066 if (sizeof (ac__type_new_))
29067   return 0;
29068   ;
29069   return 0;
29070 }
29071 _ACEOF
29072 rm -f conftest.$ac_objext
29073 if { (ac_try="$ac_compile"
29074 case "(($ac_try" in
29075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076   *) ac_try_echo=$ac_try;;
29077 esac
29078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29079   (eval "$ac_compile") 2>conftest.er1
29080   ac_status=$?
29081   grep -v '^ *+' conftest.er1 >conftest.err
29082   rm -f conftest.er1
29083   cat conftest.err >&5
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); } && {
29086          test -z "$ac_c_werror_flag" ||
29087          test ! -s conftest.err
29088        } && test -s conftest.$ac_objext; then
29089   ac_cv_type_long_int=yes
29090 else
29091   echo "$as_me: failed program was:" >&5
29092 sed 's/^/| /' conftest.$ac_ext >&5
29093
29094         ac_cv_type_long_int=no
29095 fi
29096
29097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29098 fi
29099 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
29100 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
29101
29102 # The cast to long int works around a bug in the HP C Compiler
29103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29105 # This bug is HP SR number 8606223364.
29106 { echo "$as_me:$LINENO: checking size of long int" >&5
29107 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
29108 if test "${ac_cv_sizeof_long_int+set}" = set; then
29109   echo $ECHO_N "(cached) $ECHO_C" >&6
29110 else
29111   if test "$cross_compiling" = yes; then
29112   # Depending upon the size, compute the lo and hi bounds.
29113 cat >conftest.$ac_ext <<_ACEOF
29114 /* confdefs.h.  */
29115 _ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h.  */
29119 $ac_includes_default
29120    typedef long int ac__type_sizeof_;
29121 int
29122 main ()
29123 {
29124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29125 test_array [0] = 0
29126
29127   ;
29128   return 0;
29129 }
29130 _ACEOF
29131 rm -f conftest.$ac_objext
29132 if { (ac_try="$ac_compile"
29133 case "(($ac_try" in
29134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135   *) ac_try_echo=$ac_try;;
29136 esac
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138   (eval "$ac_compile") 2>conftest.er1
29139   ac_status=$?
29140   grep -v '^ *+' conftest.er1 >conftest.err
29141   rm -f conftest.er1
29142   cat conftest.err >&5
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); } && {
29145          test -z "$ac_c_werror_flag" ||
29146          test ! -s conftest.err
29147        } && test -s conftest.$ac_objext; then
29148   ac_lo=0 ac_mid=0
29149   while :; do
29150     cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h.  */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h.  */
29156 $ac_includes_default
29157    typedef long int ac__type_sizeof_;
29158 int
29159 main ()
29160 {
29161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29162 test_array [0] = 0
29163
29164   ;
29165   return 0;
29166 }
29167 _ACEOF
29168 rm -f conftest.$ac_objext
29169 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29176   ac_status=$?
29177   grep -v '^ *+' conftest.er1 >conftest.err
29178   rm -f conftest.er1
29179   cat conftest.err >&5
29180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181   (exit $ac_status); } && {
29182          test -z "$ac_c_werror_flag" ||
29183          test ! -s conftest.err
29184        } && test -s conftest.$ac_objext; then
29185   ac_hi=$ac_mid; break
29186 else
29187   echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29189
29190         ac_lo=`expr $ac_mid + 1`
29191                         if test $ac_lo -le $ac_mid; then
29192                           ac_lo= ac_hi=
29193                           break
29194                         fi
29195                         ac_mid=`expr 2 '*' $ac_mid + 1`
29196 fi
29197
29198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29199   done
29200 else
29201   echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29203
29204         cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210 $ac_includes_default
29211    typedef long int ac__type_sizeof_;
29212 int
29213 main ()
29214 {
29215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29216 test_array [0] = 0
29217
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          test -z "$ac_c_werror_flag" ||
29237          test ! -s conftest.err
29238        } && test -s conftest.$ac_objext; then
29239   ac_hi=-1 ac_mid=-1
29240   while :; do
29241     cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247 $ac_includes_default
29248    typedef long int ac__type_sizeof_;
29249 int
29250 main ()
29251 {
29252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29253 test_array [0] = 0
29254
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext
29260 if { (ac_try="$ac_compile"
29261 case "(($ac_try" in
29262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263   *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266   (eval "$ac_compile") 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } && {
29273          test -z "$ac_c_werror_flag" ||
29274          test ! -s conftest.err
29275        } && test -s conftest.$ac_objext; then
29276   ac_lo=$ac_mid; break
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281         ac_hi=`expr '(' $ac_mid ')' - 1`
29282                         if test $ac_mid -le $ac_hi; then
29283                           ac_lo= ac_hi=
29284                           break
29285                         fi
29286                         ac_mid=`expr 2 '*' $ac_mid`
29287 fi
29288
29289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29290   done
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295         ac_lo= ac_hi=
29296 fi
29297
29298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29299 fi
29300
29301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29302 # Binary search between lo and hi bounds.
29303 while test "x$ac_lo" != "x$ac_hi"; do
29304   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29305   cat >conftest.$ac_ext <<_ACEOF
29306 /* confdefs.h.  */
29307 _ACEOF
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h.  */
29311 $ac_includes_default
29312    typedef long int ac__type_sizeof_;
29313 int
29314 main ()
29315 {
29316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29317 test_array [0] = 0
29318
29319   ;
29320   return 0;
29321 }
29322 _ACEOF
29323 rm -f conftest.$ac_objext
29324 if { (ac_try="$ac_compile"
29325 case "(($ac_try" in
29326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327   *) ac_try_echo=$ac_try;;
29328 esac
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330   (eval "$ac_compile") 2>conftest.er1
29331   ac_status=$?
29332   grep -v '^ *+' conftest.er1 >conftest.err
29333   rm -f conftest.er1
29334   cat conftest.err >&5
29335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336   (exit $ac_status); } && {
29337          test -z "$ac_c_werror_flag" ||
29338          test ! -s conftest.err
29339        } && test -s conftest.$ac_objext; then
29340   ac_hi=$ac_mid
29341 else
29342   echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29344
29345         ac_lo=`expr '(' $ac_mid ')' + 1`
29346 fi
29347
29348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29349 done
29350 case $ac_lo in
29351 ?*) ac_cv_sizeof_long_int=$ac_lo;;
29352 '') if test "$ac_cv_type_long_int" = yes; then
29353      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29354 See \`config.log' for more details." >&5
29355 echo "$as_me: error: cannot compute sizeof (long int)
29356 See \`config.log' for more details." >&2;}
29357    { (exit 77); exit 77; }; }
29358    else
29359      ac_cv_sizeof_long_int=0
29360    fi ;;
29361 esac
29362 else
29363   cat >conftest.$ac_ext <<_ACEOF
29364 /* confdefs.h.  */
29365 _ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h.  */
29369 $ac_includes_default
29370    typedef long int ac__type_sizeof_;
29371 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29372 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29373 #include <stdio.h>
29374 #include <stdlib.h>
29375 int
29376 main ()
29377 {
29378
29379   FILE *f = fopen ("conftest.val", "w");
29380   if (! f)
29381     return 1;
29382   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29383     {
29384       long int i = longval ();
29385       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29386         return 1;
29387       fprintf (f, "%ld\n", i);
29388     }
29389   else
29390     {
29391       unsigned long int i = ulongval ();
29392       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29393         return 1;
29394       fprintf (f, "%lu\n", i);
29395     }
29396   return ferror (f) || fclose (f) != 0;
29397
29398   ;
29399   return 0;
29400 }
29401 _ACEOF
29402 rm -f conftest$ac_exeext
29403 if { (ac_try="$ac_link"
29404 case "(($ac_try" in
29405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29406   *) ac_try_echo=$ac_try;;
29407 esac
29408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409   (eval "$ac_link") 2>&5
29410   ac_status=$?
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29413   { (case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_try") 2>&5
29419   ac_status=$?
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); }; }; then
29422   ac_cv_sizeof_long_int=`cat conftest.val`
29423 else
29424   echo "$as_me: program exited with status $ac_status" >&5
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29427
29428 ( exit $ac_status )
29429 if test "$ac_cv_type_long_int" = yes; then
29430      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
29431 See \`config.log' for more details." >&5
29432 echo "$as_me: error: cannot compute sizeof (long int)
29433 See \`config.log' for more details." >&2;}
29434    { (exit 77); exit 77; }; }
29435    else
29436      ac_cv_sizeof_long_int=0
29437    fi
29438 fi
29439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29440 fi
29441 rm -f conftest.val
29442 fi
29443 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
29444 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
29445
29446
29447
29448 cat >>confdefs.h <<_ACEOF
29449 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
29450 _ACEOF
29451
29452
29453 { echo "$as_me:$LINENO: checking for long long int" >&5
29454 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
29455 if test "${ac_cv_type_long_long_int+set}" = set; then
29456   echo $ECHO_N "(cached) $ECHO_C" >&6
29457 else
29458   cat >conftest.$ac_ext <<_ACEOF
29459 /* confdefs.h.  */
29460 _ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h.  */
29464 $ac_includes_default
29465 typedef long long int ac__type_new_;
29466 int
29467 main ()
29468 {
29469 if ((ac__type_new_ *) 0)
29470   return 0;
29471 if (sizeof (ac__type_new_))
29472   return 0;
29473   ;
29474   return 0;
29475 }
29476 _ACEOF
29477 rm -f conftest.$ac_objext
29478 if { (ac_try="$ac_compile"
29479 case "(($ac_try" in
29480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29481   *) ac_try_echo=$ac_try;;
29482 esac
29483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29484   (eval "$ac_compile") 2>conftest.er1
29485   ac_status=$?
29486   grep -v '^ *+' conftest.er1 >conftest.err
29487   rm -f conftest.er1
29488   cat conftest.err >&5
29489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490   (exit $ac_status); } && {
29491          test -z "$ac_c_werror_flag" ||
29492          test ! -s conftest.err
29493        } && test -s conftest.$ac_objext; then
29494   ac_cv_type_long_long_int=yes
29495 else
29496   echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29498
29499         ac_cv_type_long_long_int=no
29500 fi
29501
29502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29503 fi
29504 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
29505 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
29506
29507 # The cast to long int works around a bug in the HP C Compiler
29508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29510 # This bug is HP SR number 8606223364.
29511 { echo "$as_me:$LINENO: checking size of long long int" >&5
29512 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
29513 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
29514   echo $ECHO_N "(cached) $ECHO_C" >&6
29515 else
29516   if test "$cross_compiling" = yes; then
29517   # Depending upon the size, compute the lo and hi bounds.
29518 cat >conftest.$ac_ext <<_ACEOF
29519 /* confdefs.h.  */
29520 _ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h.  */
29524 $ac_includes_default
29525    typedef long long int ac__type_sizeof_;
29526 int
29527 main ()
29528 {
29529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29530 test_array [0] = 0
29531
29532   ;
29533   return 0;
29534 }
29535 _ACEOF
29536 rm -f conftest.$ac_objext
29537 if { (ac_try="$ac_compile"
29538 case "(($ac_try" in
29539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540   *) ac_try_echo=$ac_try;;
29541 esac
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543   (eval "$ac_compile") 2>conftest.er1
29544   ac_status=$?
29545   grep -v '^ *+' conftest.er1 >conftest.err
29546   rm -f conftest.er1
29547   cat conftest.err >&5
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } && {
29550          test -z "$ac_c_werror_flag" ||
29551          test ! -s conftest.err
29552        } && test -s conftest.$ac_objext; then
29553   ac_lo=0 ac_mid=0
29554   while :; do
29555     cat >conftest.$ac_ext <<_ACEOF
29556 /* confdefs.h.  */
29557 _ACEOF
29558 cat confdefs.h >>conftest.$ac_ext
29559 cat >>conftest.$ac_ext <<_ACEOF
29560 /* end confdefs.h.  */
29561 $ac_includes_default
29562    typedef long long int ac__type_sizeof_;
29563 int
29564 main ()
29565 {
29566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29567 test_array [0] = 0
29568
29569   ;
29570   return 0;
29571 }
29572 _ACEOF
29573 rm -f conftest.$ac_objext
29574 if { (ac_try="$ac_compile"
29575 case "(($ac_try" in
29576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577   *) ac_try_echo=$ac_try;;
29578 esac
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580   (eval "$ac_compile") 2>conftest.er1
29581   ac_status=$?
29582   grep -v '^ *+' conftest.er1 >conftest.err
29583   rm -f conftest.er1
29584   cat conftest.err >&5
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); } && {
29587          test -z "$ac_c_werror_flag" ||
29588          test ! -s conftest.err
29589        } && test -s conftest.$ac_objext; then
29590   ac_hi=$ac_mid; break
29591 else
29592   echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29594
29595         ac_lo=`expr $ac_mid + 1`
29596                         if test $ac_lo -le $ac_mid; then
29597                           ac_lo= ac_hi=
29598                           break
29599                         fi
29600                         ac_mid=`expr 2 '*' $ac_mid + 1`
29601 fi
29602
29603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29604   done
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609         cat >conftest.$ac_ext <<_ACEOF
29610 /* confdefs.h.  */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h.  */
29615 $ac_includes_default
29616    typedef long long int ac__type_sizeof_;
29617 int
29618 main ()
29619 {
29620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29621 test_array [0] = 0
29622
29623   ;
29624   return 0;
29625 }
29626 _ACEOF
29627 rm -f conftest.$ac_objext
29628 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29635   ac_status=$?
29636   grep -v '^ *+' conftest.er1 >conftest.err
29637   rm -f conftest.er1
29638   cat conftest.err >&5
29639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640   (exit $ac_status); } && {
29641          test -z "$ac_c_werror_flag" ||
29642          test ! -s conftest.err
29643        } && test -s conftest.$ac_objext; then
29644   ac_hi=-1 ac_mid=-1
29645   while :; do
29646     cat >conftest.$ac_ext <<_ACEOF
29647 /* confdefs.h.  */
29648 _ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h.  */
29652 $ac_includes_default
29653    typedef long long int ac__type_sizeof_;
29654 int
29655 main ()
29656 {
29657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29658 test_array [0] = 0
29659
29660   ;
29661   return 0;
29662 }
29663 _ACEOF
29664 rm -f conftest.$ac_objext
29665 if { (ac_try="$ac_compile"
29666 case "(($ac_try" in
29667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29668   *) ac_try_echo=$ac_try;;
29669 esac
29670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29671   (eval "$ac_compile") 2>conftest.er1
29672   ac_status=$?
29673   grep -v '^ *+' conftest.er1 >conftest.err
29674   rm -f conftest.er1
29675   cat conftest.err >&5
29676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677   (exit $ac_status); } && {
29678          test -z "$ac_c_werror_flag" ||
29679          test ! -s conftest.err
29680        } && test -s conftest.$ac_objext; then
29681   ac_lo=$ac_mid; break
29682 else
29683   echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29685
29686         ac_hi=`expr '(' $ac_mid ')' - 1`
29687                         if test $ac_mid -le $ac_hi; then
29688                           ac_lo= ac_hi=
29689                           break
29690                         fi
29691                         ac_mid=`expr 2 '*' $ac_mid`
29692 fi
29693
29694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29695   done
29696 else
29697   echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29699
29700         ac_lo= ac_hi=
29701 fi
29702
29703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29704 fi
29705
29706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29707 # Binary search between lo and hi bounds.
29708 while test "x$ac_lo" != "x$ac_hi"; do
29709   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29710   cat >conftest.$ac_ext <<_ACEOF
29711 /* confdefs.h.  */
29712 _ACEOF
29713 cat confdefs.h >>conftest.$ac_ext
29714 cat >>conftest.$ac_ext <<_ACEOF
29715 /* end confdefs.h.  */
29716 $ac_includes_default
29717    typedef long long int ac__type_sizeof_;
29718 int
29719 main ()
29720 {
29721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29722 test_array [0] = 0
29723
29724   ;
29725   return 0;
29726 }
29727 _ACEOF
29728 rm -f conftest.$ac_objext
29729 if { (ac_try="$ac_compile"
29730 case "(($ac_try" in
29731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732   *) ac_try_echo=$ac_try;;
29733 esac
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735   (eval "$ac_compile") 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } && {
29742          test -z "$ac_c_werror_flag" ||
29743          test ! -s conftest.err
29744        } && test -s conftest.$ac_objext; then
29745   ac_hi=$ac_mid
29746 else
29747   echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29749
29750         ac_lo=`expr '(' $ac_mid ')' + 1`
29751 fi
29752
29753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29754 done
29755 case $ac_lo in
29756 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
29757 '') if test "$ac_cv_type_long_long_int" = yes; then
29758      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29759 See \`config.log' for more details." >&5
29760 echo "$as_me: error: cannot compute sizeof (long long int)
29761 See \`config.log' for more details." >&2;}
29762    { (exit 77); exit 77; }; }
29763    else
29764      ac_cv_sizeof_long_long_int=0
29765    fi ;;
29766 esac
29767 else
29768   cat >conftest.$ac_ext <<_ACEOF
29769 /* confdefs.h.  */
29770 _ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h.  */
29774 $ac_includes_default
29775    typedef long long int ac__type_sizeof_;
29776 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29777 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29778 #include <stdio.h>
29779 #include <stdlib.h>
29780 int
29781 main ()
29782 {
29783
29784   FILE *f = fopen ("conftest.val", "w");
29785   if (! f)
29786     return 1;
29787   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29788     {
29789       long int i = longval ();
29790       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29791         return 1;
29792       fprintf (f, "%ld\n", i);
29793     }
29794   else
29795     {
29796       unsigned long int i = ulongval ();
29797       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29798         return 1;
29799       fprintf (f, "%lu\n", i);
29800     }
29801   return ferror (f) || fclose (f) != 0;
29802
29803   ;
29804   return 0;
29805 }
29806 _ACEOF
29807 rm -f conftest$ac_exeext
29808 if { (ac_try="$ac_link"
29809 case "(($ac_try" in
29810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811   *) ac_try_echo=$ac_try;;
29812 esac
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814   (eval "$ac_link") 2>&5
29815   ac_status=$?
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29818   { (case "(($ac_try" in
29819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820   *) ac_try_echo=$ac_try;;
29821 esac
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823   (eval "$ac_try") 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; }; then
29827   ac_cv_sizeof_long_long_int=`cat conftest.val`
29828 else
29829   echo "$as_me: program exited with status $ac_status" >&5
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29832
29833 ( exit $ac_status )
29834 if test "$ac_cv_type_long_long_int" = yes; then
29835      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
29836 See \`config.log' for more details." >&5
29837 echo "$as_me: error: cannot compute sizeof (long long int)
29838 See \`config.log' for more details." >&2;}
29839    { (exit 77); exit 77; }; }
29840    else
29841      ac_cv_sizeof_long_long_int=0
29842    fi
29843 fi
29844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29845 fi
29846 rm -f conftest.val
29847 fi
29848 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
29849 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
29850
29851
29852
29853 cat >>confdefs.h <<_ACEOF
29854 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
29855 _ACEOF
29856
29857
29858 { echo "$as_me:$LINENO: checking for int *" >&5
29859 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
29860 if test "${ac_cv_type_int_p+set}" = set; then
29861   echo $ECHO_N "(cached) $ECHO_C" >&6
29862 else
29863   cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h.  */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h.  */
29869 $ac_includes_default
29870 typedef int * ac__type_new_;
29871 int
29872 main ()
29873 {
29874 if ((ac__type_new_ *) 0)
29875   return 0;
29876 if (sizeof (ac__type_new_))
29877   return 0;
29878   ;
29879   return 0;
29880 }
29881 _ACEOF
29882 rm -f conftest.$ac_objext
29883 if { (ac_try="$ac_compile"
29884 case "(($ac_try" in
29885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886   *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889   (eval "$ac_compile") 2>conftest.er1
29890   ac_status=$?
29891   grep -v '^ *+' conftest.er1 >conftest.err
29892   rm -f conftest.er1
29893   cat conftest.err >&5
29894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); } && {
29896          test -z "$ac_c_werror_flag" ||
29897          test ! -s conftest.err
29898        } && test -s conftest.$ac_objext; then
29899   ac_cv_type_int_p=yes
29900 else
29901   echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29903
29904         ac_cv_type_int_p=no
29905 fi
29906
29907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29908 fi
29909 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
29910 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
29911
29912 # The cast to long int works around a bug in the HP C Compiler
29913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29915 # This bug is HP SR number 8606223364.
29916 { echo "$as_me:$LINENO: checking size of int *" >&5
29917 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
29918 if test "${ac_cv_sizeof_int_p+set}" = set; then
29919   echo $ECHO_N "(cached) $ECHO_C" >&6
29920 else
29921   if test "$cross_compiling" = yes; then
29922   # Depending upon the size, compute the lo and hi bounds.
29923 cat >conftest.$ac_ext <<_ACEOF
29924 /* confdefs.h.  */
29925 _ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h.  */
29929 $ac_includes_default
29930    typedef int * ac__type_sizeof_;
29931 int
29932 main ()
29933 {
29934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29935 test_array [0] = 0
29936
29937   ;
29938   return 0;
29939 }
29940 _ACEOF
29941 rm -f conftest.$ac_objext
29942 if { (ac_try="$ac_compile"
29943 case "(($ac_try" in
29944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945   *) ac_try_echo=$ac_try;;
29946 esac
29947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948   (eval "$ac_compile") 2>conftest.er1
29949   ac_status=$?
29950   grep -v '^ *+' conftest.er1 >conftest.err
29951   rm -f conftest.er1
29952   cat conftest.err >&5
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); } && {
29955          test -z "$ac_c_werror_flag" ||
29956          test ! -s conftest.err
29957        } && test -s conftest.$ac_objext; then
29958   ac_lo=0 ac_mid=0
29959   while :; do
29960     cat >conftest.$ac_ext <<_ACEOF
29961 /* confdefs.h.  */
29962 _ACEOF
29963 cat confdefs.h >>conftest.$ac_ext
29964 cat >>conftest.$ac_ext <<_ACEOF
29965 /* end confdefs.h.  */
29966 $ac_includes_default
29967    typedef int * ac__type_sizeof_;
29968 int
29969 main ()
29970 {
29971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29972 test_array [0] = 0
29973
29974   ;
29975   return 0;
29976 }
29977 _ACEOF
29978 rm -f conftest.$ac_objext
29979 if { (ac_try="$ac_compile"
29980 case "(($ac_try" in
29981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982   *) ac_try_echo=$ac_try;;
29983 esac
29984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29985   (eval "$ac_compile") 2>conftest.er1
29986   ac_status=$?
29987   grep -v '^ *+' conftest.er1 >conftest.err
29988   rm -f conftest.er1
29989   cat conftest.err >&5
29990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991   (exit $ac_status); } && {
29992          test -z "$ac_c_werror_flag" ||
29993          test ! -s conftest.err
29994        } && test -s conftest.$ac_objext; then
29995   ac_hi=$ac_mid; break
29996 else
29997   echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
29999
30000         ac_lo=`expr $ac_mid + 1`
30001                         if test $ac_lo -le $ac_mid; then
30002                           ac_lo= ac_hi=
30003                           break
30004                         fi
30005                         ac_mid=`expr 2 '*' $ac_mid + 1`
30006 fi
30007
30008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30009   done
30010 else
30011   echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30013
30014         cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h.  */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h.  */
30020 $ac_includes_default
30021    typedef int * ac__type_sizeof_;
30022 int
30023 main ()
30024 {
30025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30026 test_array [0] = 0
30027
30028   ;
30029   return 0;
30030 }
30031 _ACEOF
30032 rm -f conftest.$ac_objext
30033 if { (ac_try="$ac_compile"
30034 case "(($ac_try" in
30035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036   *) ac_try_echo=$ac_try;;
30037 esac
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039   (eval "$ac_compile") 2>conftest.er1
30040   ac_status=$?
30041   grep -v '^ *+' conftest.er1 >conftest.err
30042   rm -f conftest.er1
30043   cat conftest.err >&5
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); } && {
30046          test -z "$ac_c_werror_flag" ||
30047          test ! -s conftest.err
30048        } && test -s conftest.$ac_objext; then
30049   ac_hi=-1 ac_mid=-1
30050   while :; do
30051     cat >conftest.$ac_ext <<_ACEOF
30052 /* confdefs.h.  */
30053 _ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h.  */
30057 $ac_includes_default
30058    typedef int * ac__type_sizeof_;
30059 int
30060 main ()
30061 {
30062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30063 test_array [0] = 0
30064
30065   ;
30066   return 0;
30067 }
30068 _ACEOF
30069 rm -f conftest.$ac_objext
30070 if { (ac_try="$ac_compile"
30071 case "(($ac_try" in
30072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073   *) ac_try_echo=$ac_try;;
30074 esac
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076   (eval "$ac_compile") 2>conftest.er1
30077   ac_status=$?
30078   grep -v '^ *+' conftest.er1 >conftest.err
30079   rm -f conftest.er1
30080   cat conftest.err >&5
30081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); } && {
30083          test -z "$ac_c_werror_flag" ||
30084          test ! -s conftest.err
30085        } && test -s conftest.$ac_objext; then
30086   ac_lo=$ac_mid; break
30087 else
30088   echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090
30091         ac_hi=`expr '(' $ac_mid ')' - 1`
30092                         if test $ac_mid -le $ac_hi; then
30093                           ac_lo= ac_hi=
30094                           break
30095                         fi
30096                         ac_mid=`expr 2 '*' $ac_mid`
30097 fi
30098
30099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30100   done
30101 else
30102   echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30104
30105         ac_lo= ac_hi=
30106 fi
30107
30108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30112 # Binary search between lo and hi bounds.
30113 while test "x$ac_lo" != "x$ac_hi"; do
30114   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30115   cat >conftest.$ac_ext <<_ACEOF
30116 /* confdefs.h.  */
30117 _ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h.  */
30121 $ac_includes_default
30122    typedef int * ac__type_sizeof_;
30123 int
30124 main ()
30125 {
30126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30127 test_array [0] = 0
30128
30129   ;
30130   return 0;
30131 }
30132 _ACEOF
30133 rm -f conftest.$ac_objext
30134 if { (ac_try="$ac_compile"
30135 case "(($ac_try" in
30136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137   *) ac_try_echo=$ac_try;;
30138 esac
30139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140   (eval "$ac_compile") 2>conftest.er1
30141   ac_status=$?
30142   grep -v '^ *+' conftest.er1 >conftest.err
30143   rm -f conftest.er1
30144   cat conftest.err >&5
30145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146   (exit $ac_status); } && {
30147          test -z "$ac_c_werror_flag" ||
30148          test ! -s conftest.err
30149        } && test -s conftest.$ac_objext; then
30150   ac_hi=$ac_mid
30151 else
30152   echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30154
30155         ac_lo=`expr '(' $ac_mid ')' + 1`
30156 fi
30157
30158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30159 done
30160 case $ac_lo in
30161 ?*) ac_cv_sizeof_int_p=$ac_lo;;
30162 '') if test "$ac_cv_type_int_p" = yes; then
30163      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30164 See \`config.log' for more details." >&5
30165 echo "$as_me: error: cannot compute sizeof (int *)
30166 See \`config.log' for more details." >&2;}
30167    { (exit 77); exit 77; }; }
30168    else
30169      ac_cv_sizeof_int_p=0
30170    fi ;;
30171 esac
30172 else
30173   cat >conftest.$ac_ext <<_ACEOF
30174 /* confdefs.h.  */
30175 _ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h.  */
30179 $ac_includes_default
30180    typedef int * ac__type_sizeof_;
30181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30183 #include <stdio.h>
30184 #include <stdlib.h>
30185 int
30186 main ()
30187 {
30188
30189   FILE *f = fopen ("conftest.val", "w");
30190   if (! f)
30191     return 1;
30192   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30193     {
30194       long int i = longval ();
30195       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30196         return 1;
30197       fprintf (f, "%ld\n", i);
30198     }
30199   else
30200     {
30201       unsigned long int i = ulongval ();
30202       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30203         return 1;
30204       fprintf (f, "%lu\n", i);
30205     }
30206   return ferror (f) || fclose (f) != 0;
30207
30208   ;
30209   return 0;
30210 }
30211 _ACEOF
30212 rm -f conftest$ac_exeext
30213 if { (ac_try="$ac_link"
30214 case "(($ac_try" in
30215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216   *) ac_try_echo=$ac_try;;
30217 esac
30218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30219   (eval "$ac_link") 2>&5
30220   ac_status=$?
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30223   { (case "(($ac_try" in
30224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225   *) ac_try_echo=$ac_try;;
30226 esac
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228   (eval "$ac_try") 2>&5
30229   ac_status=$?
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); }; }; then
30232   ac_cv_sizeof_int_p=`cat conftest.val`
30233 else
30234   echo "$as_me: program exited with status $ac_status" >&5
30235 echo "$as_me: failed program was:" >&5
30236 sed 's/^/| /' conftest.$ac_ext >&5
30237
30238 ( exit $ac_status )
30239 if test "$ac_cv_type_int_p" = yes; then
30240      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
30241 See \`config.log' for more details." >&5
30242 echo "$as_me: error: cannot compute sizeof (int *)
30243 See \`config.log' for more details." >&2;}
30244    { (exit 77); exit 77; }; }
30245    else
30246      ac_cv_sizeof_int_p=0
30247    fi
30248 fi
30249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30250 fi
30251 rm -f conftest.val
30252 fi
30253 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
30254 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
30255
30256
30257
30258 cat >>confdefs.h <<_ACEOF
30259 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
30260 _ACEOF
30261
30262
30263
30264 # Check for sys/types.h types
30265 { echo "$as_me:$LINENO: checking for u_int type" >&5
30266 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
30267 if test "${ac_cv_have_u_int+set}" = set; then
30268   echo $ECHO_N "(cached) $ECHO_C" >&6
30269 else
30270
30271     cat >conftest.$ac_ext <<_ACEOF
30272 /* confdefs.h.  */
30273 _ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h.  */
30277  #include <sys/types.h>
30278 int
30279 main ()
30280 {
30281  u_int a; a = 1;
30282   ;
30283   return 0;
30284 }
30285 _ACEOF
30286 rm -f conftest.$ac_objext
30287 if { (ac_try="$ac_compile"
30288 case "(($ac_try" in
30289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290   *) ac_try_echo=$ac_try;;
30291 esac
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293   (eval "$ac_compile") 2>conftest.er1
30294   ac_status=$?
30295   grep -v '^ *+' conftest.er1 >conftest.err
30296   rm -f conftest.er1
30297   cat conftest.err >&5
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); } && {
30300          test -z "$ac_c_werror_flag" ||
30301          test ! -s conftest.err
30302        } && test -s conftest.$ac_objext; then
30303    ac_cv_have_u_int="yes"
30304 else
30305   echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30307
30308          ac_cv_have_u_int="no"
30309
30310 fi
30311
30312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30313
30314 fi
30315 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
30316 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
30317 if test "x$ac_cv_have_u_int" = "xyes" ; then
30318    cat >>confdefs.h <<\_ACEOF
30319 #define HAVE_U_INT 1
30320 _ACEOF
30321
30322    have_u_int=1
30323 fi
30324
30325 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
30326 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
30327 if test "${ac_cv_have_intmax_t+set}" = set; then
30328   echo $ECHO_N "(cached) $ECHO_C" >&6
30329 else
30330
30331    cat >conftest.$ac_ext <<_ACEOF
30332 /* confdefs.h.  */
30333 _ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h.  */
30337  #include <sys/types.h>
30338 int
30339 main ()
30340 {
30341  intmax_t a; a = 1;
30342   ;
30343   return 0;
30344 }
30345 _ACEOF
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350   *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353   (eval "$ac_compile") 2>conftest.er1
30354   ac_status=$?
30355   grep -v '^ *+' conftest.er1 >conftest.err
30356   rm -f conftest.er1
30357   cat conftest.err >&5
30358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359   (exit $ac_status); } && {
30360          test -z "$ac_c_werror_flag" ||
30361          test ! -s conftest.err
30362        } && test -s conftest.$ac_objext; then
30363    ac_cv_have_intmax_t="yes"
30364 else
30365   echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30367
30368
30369          cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h.  */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h.  */
30375  #include <stdint.h>
30376 int
30377 main ()
30378 {
30379  intmax_t a; a = 1;
30380   ;
30381   return 0;
30382 }
30383 _ACEOF
30384 rm -f conftest.$ac_objext
30385 if { (ac_try="$ac_compile"
30386 case "(($ac_try" in
30387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388   *) ac_try_echo=$ac_try;;
30389 esac
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391   (eval "$ac_compile") 2>conftest.er1
30392   ac_status=$?
30393   grep -v '^ *+' conftest.er1 >conftest.err
30394   rm -f conftest.er1
30395   cat conftest.err >&5
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); } && {
30398          test -z "$ac_c_werror_flag" ||
30399          test ! -s conftest.err
30400        } && test -s conftest.$ac_objext; then
30401    ac_cv_have_intmax_t="yes"
30402 else
30403   echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30405
30406          ac_cv_have_intmax_t="no"
30407
30408 fi
30409
30410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30411
30412
30413 fi
30414
30415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30416
30417
30418 fi
30419 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
30420 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
30421 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
30422    cat >>confdefs.h <<\_ACEOF
30423 #define HAVE_INTMAX_T 1
30424 _ACEOF
30425
30426    have_intmax_t=1
30427 fi
30428
30429
30430 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
30431 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
30432 if test "${ac_cv_have_u_intmax_t+set}" = set; then
30433   echo $ECHO_N "(cached) $ECHO_C" >&6
30434 else
30435
30436    cat >conftest.$ac_ext <<_ACEOF
30437 /* confdefs.h.  */
30438 _ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h.  */
30442  #include <sys/types.h>
30443 int
30444 main ()
30445 {
30446  u_intmax_t a; a = 1;
30447   ;
30448   return 0;
30449 }
30450 _ACEOF
30451 rm -f conftest.$ac_objext
30452 if { (ac_try="$ac_compile"
30453 case "(($ac_try" in
30454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455   *) ac_try_echo=$ac_try;;
30456 esac
30457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458   (eval "$ac_compile") 2>conftest.er1
30459   ac_status=$?
30460   grep -v '^ *+' conftest.er1 >conftest.err
30461   rm -f conftest.er1
30462   cat conftest.err >&5
30463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464   (exit $ac_status); } && {
30465          test -z "$ac_c_werror_flag" ||
30466          test ! -s conftest.err
30467        } && test -s conftest.$ac_objext; then
30468    ac_cv_have_u_intmax_t="yes"
30469 else
30470   echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30472
30473
30474          cat >conftest.$ac_ext <<_ACEOF
30475 /* confdefs.h.  */
30476 _ACEOF
30477 cat confdefs.h >>conftest.$ac_ext
30478 cat >>conftest.$ac_ext <<_ACEOF
30479 /* end confdefs.h.  */
30480  #include <stdint.h>
30481 int
30482 main ()
30483 {
30484  u_intmax_t a; a = 1;
30485   ;
30486   return 0;
30487 }
30488 _ACEOF
30489 rm -f conftest.$ac_objext
30490 if { (ac_try="$ac_compile"
30491 case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_compile") 2>conftest.er1
30497   ac_status=$?
30498   grep -v '^ *+' conftest.er1 >conftest.err
30499   rm -f conftest.er1
30500   cat conftest.err >&5
30501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502   (exit $ac_status); } && {
30503          test -z "$ac_c_werror_flag" ||
30504          test ! -s conftest.err
30505        } && test -s conftest.$ac_objext; then
30506    ac_cv_have_u_intmax_t="yes"
30507 else
30508   echo "$as_me: failed program was:" >&5
30509 sed 's/^/| /' conftest.$ac_ext >&5
30510
30511          ac_cv_have_u_intmax_t="no"
30512
30513 fi
30514
30515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30516
30517
30518 fi
30519
30520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30521
30522 fi
30523 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
30524 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
30525 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
30526    cat >>confdefs.h <<\_ACEOF
30527 #define HAVE_U_INTMAX_T 1
30528 _ACEOF
30529
30530    have_u_intmax_t=1
30531 fi
30532
30533
30534 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
30535 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
30536 if test "${ac_cv_have_intxx_t+set}" = set; then
30537   echo $ECHO_N "(cached) $ECHO_C" >&6
30538 else
30539
30540    cat >conftest.$ac_ext <<_ACEOF
30541 /* confdefs.h.  */
30542 _ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h.  */
30546  #include <sys/types.h>
30547 int
30548 main ()
30549 {
30550  int8_t a; int16_t b; int32_t c; a = b = c = 1;
30551   ;
30552   return 0;
30553 }
30554 _ACEOF
30555 rm -f conftest.$ac_objext
30556 if { (ac_try="$ac_compile"
30557 case "(($ac_try" in
30558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30559   *) ac_try_echo=$ac_try;;
30560 esac
30561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30562   (eval "$ac_compile") 2>conftest.er1
30563   ac_status=$?
30564   grep -v '^ *+' conftest.er1 >conftest.err
30565   rm -f conftest.er1
30566   cat conftest.err >&5
30567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568   (exit $ac_status); } && {
30569          test -z "$ac_c_werror_flag" ||
30570          test ! -s conftest.err
30571        } && test -s conftest.$ac_objext; then
30572    ac_cv_have_intxx_t="yes"
30573 else
30574   echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30576
30577          ac_cv_have_intxx_t="no"
30578
30579 fi
30580
30581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30582
30583 fi
30584 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
30585 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
30586 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
30587    cat >>confdefs.h <<\_ACEOF
30588 #define HAVE_INTXX_T 1
30589 _ACEOF
30590
30591    have_intxx_t=1
30592 fi
30593
30594 { echo "$as_me:$LINENO: checking for int64_t type" >&5
30595 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
30596 if test "${ac_cv_have_int64_t+set}" = set; then
30597   echo $ECHO_N "(cached) $ECHO_C" >&6
30598 else
30599
30600    cat >conftest.$ac_ext <<_ACEOF
30601 /* confdefs.h.  */
30602 _ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h.  */
30606  #include <sys/types.h>
30607 int
30608 main ()
30609 {
30610  int64_t a; a = 1;
30611   ;
30612   return 0;
30613 }
30614 _ACEOF
30615 rm -f conftest.$ac_objext
30616 if { (ac_try="$ac_compile"
30617 case "(($ac_try" in
30618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619   *) ac_try_echo=$ac_try;;
30620 esac
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622   (eval "$ac_compile") 2>conftest.er1
30623   ac_status=$?
30624   grep -v '^ *+' conftest.er1 >conftest.err
30625   rm -f conftest.er1
30626   cat conftest.err >&5
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); } && {
30629          test -z "$ac_c_werror_flag" ||
30630          test ! -s conftest.err
30631        } && test -s conftest.$ac_objext; then
30632    ac_cv_have_int64_t="yes"
30633 else
30634   echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30636
30637          ac_cv_have_int64_t="no"
30638
30639 fi
30640
30641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30642
30643 fi
30644 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
30645 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
30646 if test "x$ac_cv_have_int64_t" = "xyes" ; then
30647    cat >>confdefs.h <<\_ACEOF
30648 #define HAVE_INT64_T 1
30649 _ACEOF
30650
30651    have_int64_t=1
30652 fi
30653
30654 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
30655 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
30656 if test "${ac_cv_have_u_intxx_t+set}" = set; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659
30660    cat >conftest.$ac_ext <<_ACEOF
30661 /* confdefs.h.  */
30662 _ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h.  */
30666  #include <sys/types.h>
30667 int
30668 main ()
30669 {
30670  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
30671   ;
30672   return 0;
30673 }
30674 _ACEOF
30675 rm -f conftest.$ac_objext
30676 if { (ac_try="$ac_compile"
30677 case "(($ac_try" in
30678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679   *) ac_try_echo=$ac_try;;
30680 esac
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682   (eval "$ac_compile") 2>conftest.er1
30683   ac_status=$?
30684   grep -v '^ *+' conftest.er1 >conftest.err
30685   rm -f conftest.er1
30686   cat conftest.err >&5
30687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); } && {
30689          test -z "$ac_c_werror_flag" ||
30690          test ! -s conftest.err
30691        } && test -s conftest.$ac_objext; then
30692    ac_cv_have_u_intxx_t="yes"
30693 else
30694   echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30696
30697          ac_cv_have_u_intxx_t="no"
30698
30699 fi
30700
30701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30702
30703 fi
30704 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
30705 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
30706 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
30707    cat >>confdefs.h <<\_ACEOF
30708 #define HAVE_U_INTXX_T 1
30709 _ACEOF
30710
30711    have_u_intxx_t=1
30712 fi
30713
30714 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
30715 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
30716 if test "${ac_cv_have_u_int64_t+set}" = set; then
30717   echo $ECHO_N "(cached) $ECHO_C" >&6
30718 else
30719
30720    cat >conftest.$ac_ext <<_ACEOF
30721 /* confdefs.h.  */
30722 _ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h.  */
30726  #include <sys/types.h>
30727 int
30728 main ()
30729 {
30730  u_int64_t a; a = 1;
30731   ;
30732   return 0;
30733 }
30734 _ACEOF
30735 rm -f conftest.$ac_objext
30736 if { (ac_try="$ac_compile"
30737 case "(($ac_try" in
30738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739   *) ac_try_echo=$ac_try;;
30740 esac
30741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30742   (eval "$ac_compile") 2>conftest.er1
30743   ac_status=$?
30744   grep -v '^ *+' conftest.er1 >conftest.err
30745   rm -f conftest.er1
30746   cat conftest.err >&5
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); } && {
30749          test -z "$ac_c_werror_flag" ||
30750          test ! -s conftest.err
30751        } && test -s conftest.$ac_objext; then
30752    ac_cv_have_u_int64_t="yes"
30753 else
30754   echo "$as_me: failed program was:" >&5
30755 sed 's/^/| /' conftest.$ac_ext >&5
30756
30757          ac_cv_have_u_int64_t="no"
30758
30759 fi
30760
30761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30762
30763 fi
30764 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
30765 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
30766 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
30767    cat >>confdefs.h <<\_ACEOF
30768 #define HAVE_U_INT64_T 1
30769 _ACEOF
30770
30771    have_u_int64_t=1
30772 fi
30773
30774 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
30775            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30776 then
30777    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
30778 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
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  #include <sys/bitypes.h>
30786 int
30787 main ()
30788 {
30789  int8_t a; int16_t b; int32_t c;
30790         u_int8_t e; u_int16_t f; u_int32_t g;
30791         a = b = c = e = f = g = 1;
30792   ;
30793   return 0;
30794 }
30795 _ACEOF
30796 rm -f conftest.$ac_objext
30797 if { (ac_try="$ac_compile"
30798 case "(($ac_try" in
30799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30800   *) ac_try_echo=$ac_try;;
30801 esac
30802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30803   (eval "$ac_compile") 2>conftest.er1
30804   ac_status=$?
30805   grep -v '^ *+' conftest.er1 >conftest.err
30806   rm -f conftest.er1
30807   cat conftest.err >&5
30808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809   (exit $ac_status); } && {
30810          test -z "$ac_c_werror_flag" ||
30811          test ! -s conftest.err
30812        } && test -s conftest.$ac_objext; then
30813    cat >>confdefs.h <<\_ACEOF
30814 #define HAVE_U_INTXX_T 1
30815 _ACEOF
30816
30817         cat >>confdefs.h <<\_ACEOF
30818 #define HAVE_INTXX_T 1
30819 _ACEOF
30820
30821         cat >>confdefs.h <<\_ACEOF
30822 #define HAVE_SYS_BITYPES_H 1
30823 _ACEOF
30824
30825         { echo "$as_me:$LINENO: result: yes" >&5
30826 echo "${ECHO_T}yes" >&6; }
30827 else
30828   echo "$as_me: failed program was:" >&5
30829 sed 's/^/| /' conftest.$ac_ext >&5
30830
30831          { echo "$as_me:$LINENO: result: no" >&5
30832 echo "${ECHO_T}no" >&6; }
30833
30834 fi
30835
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30837 fi
30838
30839 if test -z "$have_u_intxx_t" ; then
30840    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
30841 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
30842 if test "${ac_cv_have_uintxx_t+set}" = set; then
30843   echo $ECHO_N "(cached) $ECHO_C" >&6
30844 else
30845
30846       cat >conftest.$ac_ext <<_ACEOF
30847 /* confdefs.h.  */
30848 _ACEOF
30849 cat confdefs.h >>conftest.$ac_ext
30850 cat >>conftest.$ac_ext <<_ACEOF
30851 /* end confdefs.h.  */
30852  #include <sys/types.h>
30853 int
30854 main ()
30855 {
30856  uint8_t a; uint16_t b;
30857            uint32_t c; a = b = c = 1;
30858   ;
30859   return 0;
30860 }
30861 _ACEOF
30862 rm -f conftest.$ac_objext
30863 if { (ac_try="$ac_compile"
30864 case "(($ac_try" in
30865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30866   *) ac_try_echo=$ac_try;;
30867 esac
30868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30869   (eval "$ac_compile") 2>conftest.er1
30870   ac_status=$?
30871   grep -v '^ *+' conftest.er1 >conftest.err
30872   rm -f conftest.er1
30873   cat conftest.err >&5
30874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875   (exit $ac_status); } && {
30876          test -z "$ac_c_werror_flag" ||
30877          test ! -s conftest.err
30878        } && test -s conftest.$ac_objext; then
30879    ac_cv_have_uintxx_t="yes"
30880 else
30881   echo "$as_me: failed program was:" >&5
30882 sed 's/^/| /' conftest.$ac_ext >&5
30883
30884          ac_cv_have_uintxx_t="no"
30885
30886 fi
30887
30888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30889
30890 fi
30891 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
30892 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
30893    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
30894       cat >>confdefs.h <<\_ACEOF
30895 #define HAVE_UINTXX_T 1
30896 _ACEOF
30897
30898    fi
30899 fi
30900
30901 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
30902           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30903 then
30904    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
30905 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
30906    cat >conftest.$ac_ext <<_ACEOF
30907 /* confdefs.h.  */
30908 _ACEOF
30909 cat confdefs.h >>conftest.$ac_ext
30910 cat >>conftest.$ac_ext <<_ACEOF
30911 /* end confdefs.h.  */
30912  #include <sys/bitypes.h>
30913 int
30914 main ()
30915 {
30916  int64_t a; u_int64_t b;
30917        a = b = 1;
30918   ;
30919   return 0;
30920 }
30921 _ACEOF
30922 rm -f conftest.$ac_objext
30923 if { (ac_try="$ac_compile"
30924 case "(($ac_try" in
30925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926   *) ac_try_echo=$ac_try;;
30927 esac
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929   (eval "$ac_compile") 2>conftest.er1
30930   ac_status=$?
30931   grep -v '^ *+' conftest.er1 >conftest.err
30932   rm -f conftest.er1
30933   cat conftest.err >&5
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); } && {
30936          test -z "$ac_c_werror_flag" ||
30937          test ! -s conftest.err
30938        } && test -s conftest.$ac_objext; then
30939    cat >>confdefs.h <<\_ACEOF
30940 #define HAVE_U_INT64_T 1
30941 _ACEOF
30942
30943        cat >>confdefs.h <<\_ACEOF
30944 #define HAVE_INT64_T 1
30945 _ACEOF
30946
30947        { echo "$as_me:$LINENO: result: yes" >&5
30948 echo "${ECHO_T}yes" >&6; }
30949 else
30950   echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30952
30953          { echo "$as_me:$LINENO: result: no" >&5
30954 echo "${ECHO_T}no" >&6; }
30955
30956 fi
30957
30958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30959 fi
30960
30961 if (test -z "$have_uintxx_t" && \
30962           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
30963 then
30964    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
30965 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
30966    cat >conftest.$ac_ext <<_ACEOF
30967 /* confdefs.h.  */
30968 _ACEOF
30969 cat confdefs.h >>conftest.$ac_ext
30970 cat >>conftest.$ac_ext <<_ACEOF
30971 /* end confdefs.h.  */
30972  #include <sys/bitypes.h>
30973 int
30974 main ()
30975 {
30976  uint8_t a; uint16_t b;
30977           uint32_t c; a = b = c = 1;
30978   ;
30979   return 0;
30980 }
30981 _ACEOF
30982 rm -f conftest.$ac_objext
30983 if { (ac_try="$ac_compile"
30984 case "(($ac_try" in
30985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986   *) ac_try_echo=$ac_try;;
30987 esac
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989   (eval "$ac_compile") 2>conftest.er1
30990   ac_status=$?
30991   grep -v '^ *+' conftest.er1 >conftest.err
30992   rm -f conftest.er1
30993   cat conftest.err >&5
30994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995   (exit $ac_status); } && {
30996          test -z "$ac_c_werror_flag" ||
30997          test ! -s conftest.err
30998        } && test -s conftest.$ac_objext; then
30999    cat >>confdefs.h <<\_ACEOF
31000 #define HAVE_UINTXX_T 1
31001 _ACEOF
31002
31003        { echo "$as_me:$LINENO: result: yes" >&5
31004 echo "${ECHO_T}yes" >&6; }
31005 else
31006   echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31008
31009          { echo "$as_me:$LINENO: result: no" >&5
31010 echo "${ECHO_T}no" >&6; }
31011
31012 fi
31013
31014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31015
31016 fi
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034 for ac_func in \
31035         fork \
31036         getcwd \
31037         gethostname \
31038         getpid \
31039         gettimeofday \
31040         setpgid \
31041         setpgrp \
31042         setsid \
31043         signal \
31044         strerror \
31045         strncmp \
31046         strncpy \
31047         vfprintf \
31048
31049 do
31050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31054   echo $ECHO_N "(cached) $ECHO_C" >&6
31055 else
31056   cat >conftest.$ac_ext <<_ACEOF
31057 /* confdefs.h.  */
31058 _ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h.  */
31062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31064 #define $ac_func innocuous_$ac_func
31065
31066 /* System header to define __stub macros and hopefully few prototypes,
31067     which can conflict with char $ac_func (); below.
31068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31069     <limits.h> exists even on freestanding compilers.  */
31070
31071 #ifdef __STDC__
31072 # include <limits.h>
31073 #else
31074 # include <assert.h>
31075 #endif
31076
31077 #undef $ac_func
31078
31079 /* Override any GCC internal prototype to avoid an error.
31080    Use char because int might match the return type of a GCC
31081    builtin and then its argument prototype would still apply.  */
31082 #ifdef __cplusplus
31083 extern "C"
31084 #endif
31085 char $ac_func ();
31086 /* The GNU C library defines this for functions which it implements
31087     to always fail with ENOSYS.  Some functions are actually named
31088     something starting with __ and the normal name is an alias.  */
31089 #if defined __stub_$ac_func || defined __stub___$ac_func
31090 choke me
31091 #endif
31092
31093 int
31094 main ()
31095 {
31096 return $ac_func ();
31097   ;
31098   return 0;
31099 }
31100 _ACEOF
31101 rm -f conftest.$ac_objext conftest$ac_exeext
31102 if { (ac_try="$ac_link"
31103 case "(($ac_try" in
31104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105   *) ac_try_echo=$ac_try;;
31106 esac
31107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108   (eval "$ac_link") 2>conftest.er1
31109   ac_status=$?
31110   grep -v '^ *+' conftest.er1 >conftest.err
31111   rm -f conftest.er1
31112   cat conftest.err >&5
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); } && {
31115          test -z "$ac_c_werror_flag" ||
31116          test ! -s conftest.err
31117        } && test -s conftest$ac_exeext &&
31118        $as_test_x conftest$ac_exeext; then
31119   eval "$as_ac_var=yes"
31120 else
31121   echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31123
31124         eval "$as_ac_var=no"
31125 fi
31126
31127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31128       conftest$ac_exeext conftest.$ac_ext
31129 fi
31130 ac_res=`eval echo '${'$as_ac_var'}'`
31131                { echo "$as_me:$LINENO: result: $ac_res" >&5
31132 echo "${ECHO_T}$ac_res" >&6; }
31133 if test `eval echo '${'$as_ac_var'}'` = yes; then
31134   cat >>confdefs.h <<_ACEOF
31135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31136 _ACEOF
31137
31138 else
31139   echo 'configure: cannot find needed function.'; exit 1
31140
31141 fi
31142 done
31143
31144
31145
31146 for ac_func in fchdir
31147 do
31148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31152   echo $ECHO_N "(cached) $ECHO_C" >&6
31153 else
31154   cat >conftest.$ac_ext <<_ACEOF
31155 /* confdefs.h.  */
31156 _ACEOF
31157 cat confdefs.h >>conftest.$ac_ext
31158 cat >>conftest.$ac_ext <<_ACEOF
31159 /* end confdefs.h.  */
31160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31162 #define $ac_func innocuous_$ac_func
31163
31164 /* System header to define __stub macros and hopefully few prototypes,
31165     which can conflict with char $ac_func (); below.
31166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31167     <limits.h> exists even on freestanding compilers.  */
31168
31169 #ifdef __STDC__
31170 # include <limits.h>
31171 #else
31172 # include <assert.h>
31173 #endif
31174
31175 #undef $ac_func
31176
31177 /* Override any GCC internal prototype to avoid an error.
31178    Use char because int might match the return type of a GCC
31179    builtin and then its argument prototype would still apply.  */
31180 #ifdef __cplusplus
31181 extern "C"
31182 #endif
31183 char $ac_func ();
31184 /* The GNU C library defines this for functions which it implements
31185     to always fail with ENOSYS.  Some functions are actually named
31186     something starting with __ and the normal name is an alias.  */
31187 #if defined __stub_$ac_func || defined __stub___$ac_func
31188 choke me
31189 #endif
31190
31191 int
31192 main ()
31193 {
31194 return $ac_func ();
31195   ;
31196   return 0;
31197 }
31198 _ACEOF
31199 rm -f conftest.$ac_objext conftest$ac_exeext
31200 if { (ac_try="$ac_link"
31201 case "(($ac_try" in
31202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203   *) ac_try_echo=$ac_try;;
31204 esac
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206   (eval "$ac_link") 2>conftest.er1
31207   ac_status=$?
31208   grep -v '^ *+' conftest.er1 >conftest.err
31209   rm -f conftest.er1
31210   cat conftest.err >&5
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); } && {
31213          test -z "$ac_c_werror_flag" ||
31214          test ! -s conftest.err
31215        } && test -s conftest$ac_exeext &&
31216        $as_test_x conftest$ac_exeext; then
31217   eval "$as_ac_var=yes"
31218 else
31219   echo "$as_me: failed program was:" >&5
31220 sed 's/^/| /' conftest.$ac_ext >&5
31221
31222         eval "$as_ac_var=no"
31223 fi
31224
31225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31226       conftest$ac_exeext conftest.$ac_ext
31227 fi
31228 ac_res=`eval echo '${'$as_ac_var'}'`
31229                { echo "$as_me:$LINENO: result: $ac_res" >&5
31230 echo "${ECHO_T}$ac_res" >&6; }
31231 if test `eval echo '${'$as_ac_var'}'` = yes; then
31232   cat >>confdefs.h <<_ACEOF
31233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31234 _ACEOF
31235  cat >>confdefs.h <<\_ACEOF
31236 #define HAVE_FCHDIR 1
31237 _ACEOF
31238
31239 fi
31240 done
31241
31242
31243 for ac_func in strtoll
31244 do
31245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31249   echo $ECHO_N "(cached) $ECHO_C" >&6
31250 else
31251   cat >conftest.$ac_ext <<_ACEOF
31252 /* confdefs.h.  */
31253 _ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h.  */
31257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31259 #define $ac_func innocuous_$ac_func
31260
31261 /* System header to define __stub macros and hopefully few prototypes,
31262     which can conflict with char $ac_func (); below.
31263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31264     <limits.h> exists even on freestanding compilers.  */
31265
31266 #ifdef __STDC__
31267 # include <limits.h>
31268 #else
31269 # include <assert.h>
31270 #endif
31271
31272 #undef $ac_func
31273
31274 /* Override any GCC internal prototype to avoid an error.
31275    Use char because int might match the return type of a GCC
31276    builtin and then its argument prototype would still apply.  */
31277 #ifdef __cplusplus
31278 extern "C"
31279 #endif
31280 char $ac_func ();
31281 /* The GNU C library defines this for functions which it implements
31282     to always fail with ENOSYS.  Some functions are actually named
31283     something starting with __ and the normal name is an alias.  */
31284 #if defined __stub_$ac_func || defined __stub___$ac_func
31285 choke me
31286 #endif
31287
31288 int
31289 main ()
31290 {
31291 return $ac_func ();
31292   ;
31293   return 0;
31294 }
31295 _ACEOF
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303   (eval "$ac_link") 2>conftest.er1
31304   ac_status=$?
31305   grep -v '^ *+' conftest.er1 >conftest.err
31306   rm -f conftest.er1
31307   cat conftest.err >&5
31308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309   (exit $ac_status); } && {
31310          test -z "$ac_c_werror_flag" ||
31311          test ! -s conftest.err
31312        } && test -s conftest$ac_exeext &&
31313        $as_test_x conftest$ac_exeext; then
31314   eval "$as_ac_var=yes"
31315 else
31316   echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31318
31319         eval "$as_ac_var=no"
31320 fi
31321
31322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31323       conftest$ac_exeext conftest.$ac_ext
31324 fi
31325 ac_res=`eval echo '${'$as_ac_var'}'`
31326                { echo "$as_me:$LINENO: result: $ac_res" >&5
31327 echo "${ECHO_T}$ac_res" >&6; }
31328 if test `eval echo '${'$as_ac_var'}'` = yes; then
31329   cat >>confdefs.h <<_ACEOF
31330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31331 _ACEOF
31332  cat >>confdefs.h <<\_ACEOF
31333 #define HAVE_STRTOLL 1
31334 _ACEOF
31335
31336 fi
31337 done
31338
31339
31340 for ac_func in posix_fadvise
31341 do
31342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31346   echo $ECHO_N "(cached) $ECHO_C" >&6
31347 else
31348   cat >conftest.$ac_ext <<_ACEOF
31349 /* confdefs.h.  */
31350 _ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h.  */
31354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31356 #define $ac_func innocuous_$ac_func
31357
31358 /* System header to define __stub macros and hopefully few prototypes,
31359     which can conflict with char $ac_func (); below.
31360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31361     <limits.h> exists even on freestanding compilers.  */
31362
31363 #ifdef __STDC__
31364 # include <limits.h>
31365 #else
31366 # include <assert.h>
31367 #endif
31368
31369 #undef $ac_func
31370
31371 /* Override any GCC internal prototype to avoid an error.
31372    Use char because int might match the return type of a GCC
31373    builtin and then its argument prototype would still apply.  */
31374 #ifdef __cplusplus
31375 extern "C"
31376 #endif
31377 char $ac_func ();
31378 /* The GNU C library defines this for functions which it implements
31379     to always fail with ENOSYS.  Some functions are actually named
31380     something starting with __ and the normal name is an alias.  */
31381 #if defined __stub_$ac_func || defined __stub___$ac_func
31382 choke me
31383 #endif
31384
31385 int
31386 main ()
31387 {
31388 return $ac_func ();
31389   ;
31390   return 0;
31391 }
31392 _ACEOF
31393 rm -f conftest.$ac_objext conftest$ac_exeext
31394 if { (ac_try="$ac_link"
31395 case "(($ac_try" in
31396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31397   *) ac_try_echo=$ac_try;;
31398 esac
31399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31400   (eval "$ac_link") 2>conftest.er1
31401   ac_status=$?
31402   grep -v '^ *+' conftest.er1 >conftest.err
31403   rm -f conftest.er1
31404   cat conftest.err >&5
31405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406   (exit $ac_status); } && {
31407          test -z "$ac_c_werror_flag" ||
31408          test ! -s conftest.err
31409        } && test -s conftest$ac_exeext &&
31410        $as_test_x conftest$ac_exeext; then
31411   eval "$as_ac_var=yes"
31412 else
31413   echo "$as_me: failed program was:" >&5
31414 sed 's/^/| /' conftest.$ac_ext >&5
31415
31416         eval "$as_ac_var=no"
31417 fi
31418
31419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31420       conftest$ac_exeext conftest.$ac_ext
31421 fi
31422 ac_res=`eval echo '${'$as_ac_var'}'`
31423                { echo "$as_me:$LINENO: result: $ac_res" >&5
31424 echo "${ECHO_T}$ac_res" >&6; }
31425 if test `eval echo '${'$as_ac_var'}'` = yes; then
31426   cat >>confdefs.h <<_ACEOF
31427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31428 _ACEOF
31429
31430 fi
31431 done
31432
31433
31434 for ac_func in fdatasync
31435 do
31436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31440   echo $ECHO_N "(cached) $ECHO_C" >&6
31441 else
31442   cat >conftest.$ac_ext <<_ACEOF
31443 /* confdefs.h.  */
31444 _ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h.  */
31448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31450 #define $ac_func innocuous_$ac_func
31451
31452 /* System header to define __stub macros and hopefully few prototypes,
31453     which can conflict with char $ac_func (); below.
31454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31455     <limits.h> exists even on freestanding compilers.  */
31456
31457 #ifdef __STDC__
31458 # include <limits.h>
31459 #else
31460 # include <assert.h>
31461 #endif
31462
31463 #undef $ac_func
31464
31465 /* Override any GCC internal prototype to avoid an error.
31466    Use char because int might match the return type of a GCC
31467    builtin and then its argument prototype would still apply.  */
31468 #ifdef __cplusplus
31469 extern "C"
31470 #endif
31471 char $ac_func ();
31472 /* The GNU C library defines this for functions which it implements
31473     to always fail with ENOSYS.  Some functions are actually named
31474     something starting with __ and the normal name is an alias.  */
31475 #if defined __stub_$ac_func || defined __stub___$ac_func
31476 choke me
31477 #endif
31478
31479 int
31480 main ()
31481 {
31482 return $ac_func ();
31483   ;
31484   return 0;
31485 }
31486 _ACEOF
31487 rm -f conftest.$ac_objext conftest$ac_exeext
31488 if { (ac_try="$ac_link"
31489 case "(($ac_try" in
31490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491   *) ac_try_echo=$ac_try;;
31492 esac
31493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494   (eval "$ac_link") 2>conftest.er1
31495   ac_status=$?
31496   grep -v '^ *+' conftest.er1 >conftest.err
31497   rm -f conftest.er1
31498   cat conftest.err >&5
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); } && {
31501          test -z "$ac_c_werror_flag" ||
31502          test ! -s conftest.err
31503        } && test -s conftest$ac_exeext &&
31504        $as_test_x conftest$ac_exeext; then
31505   eval "$as_ac_var=yes"
31506 else
31507   echo "$as_me: failed program was:" >&5
31508 sed 's/^/| /' conftest.$ac_ext >&5
31509
31510         eval "$as_ac_var=no"
31511 fi
31512
31513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31514       conftest$ac_exeext conftest.$ac_ext
31515 fi
31516 ac_res=`eval echo '${'$as_ac_var'}'`
31517                { echo "$as_me:$LINENO: result: $ac_res" >&5
31518 echo "${ECHO_T}$ac_res" >&6; }
31519 if test `eval echo '${'$as_ac_var'}'` = yes; then
31520   cat >>confdefs.h <<_ACEOF
31521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31522 _ACEOF
31523
31524 fi
31525 done
31526
31527
31528
31529 for ac_func in chflags
31530 do
31531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31535   echo $ECHO_N "(cached) $ECHO_C" >&6
31536 else
31537   cat >conftest.$ac_ext <<_ACEOF
31538 /* confdefs.h.  */
31539 _ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h.  */
31543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31545 #define $ac_func innocuous_$ac_func
31546
31547 /* System header to define __stub macros and hopefully few prototypes,
31548     which can conflict with char $ac_func (); below.
31549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31550     <limits.h> exists even on freestanding compilers.  */
31551
31552 #ifdef __STDC__
31553 # include <limits.h>
31554 #else
31555 # include <assert.h>
31556 #endif
31557
31558 #undef $ac_func
31559
31560 /* Override any GCC internal prototype to avoid an error.
31561    Use char because int might match the return type of a GCC
31562    builtin and then its argument prototype would still apply.  */
31563 #ifdef __cplusplus
31564 extern "C"
31565 #endif
31566 char $ac_func ();
31567 /* The GNU C library defines this for functions which it implements
31568     to always fail with ENOSYS.  Some functions are actually named
31569     something starting with __ and the normal name is an alias.  */
31570 #if defined __stub_$ac_func || defined __stub___$ac_func
31571 choke me
31572 #endif
31573
31574 int
31575 main ()
31576 {
31577 return $ac_func ();
31578   ;
31579   return 0;
31580 }
31581 _ACEOF
31582 rm -f conftest.$ac_objext conftest$ac_exeext
31583 if { (ac_try="$ac_link"
31584 case "(($ac_try" in
31585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586   *) ac_try_echo=$ac_try;;
31587 esac
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589   (eval "$ac_link") 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } && {
31596          test -z "$ac_c_werror_flag" ||
31597          test ! -s conftest.err
31598        } && test -s conftest$ac_exeext &&
31599        $as_test_x conftest$ac_exeext; then
31600   eval "$as_ac_var=yes"
31601 else
31602   echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31604
31605         eval "$as_ac_var=no"
31606 fi
31607
31608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31609       conftest$ac_exeext conftest.$ac_ext
31610 fi
31611 ac_res=`eval echo '${'$as_ac_var'}'`
31612                { echo "$as_me:$LINENO: result: $ac_res" >&5
31613 echo "${ECHO_T}$ac_res" >&6; }
31614 if test `eval echo '${'$as_ac_var'}'` = yes; then
31615   cat >>confdefs.h <<_ACEOF
31616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31617 _ACEOF
31618
31619 fi
31620 done
31621
31622
31623
31624
31625
31626
31627 for ac_func in snprintf vsnprintf gethostid fseeko
31628 do
31629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31633   echo $ECHO_N "(cached) $ECHO_C" >&6
31634 else
31635   cat >conftest.$ac_ext <<_ACEOF
31636 /* confdefs.h.  */
31637 _ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h.  */
31641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31643 #define $ac_func innocuous_$ac_func
31644
31645 /* System header to define __stub macros and hopefully few prototypes,
31646     which can conflict with char $ac_func (); below.
31647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31648     <limits.h> exists even on freestanding compilers.  */
31649
31650 #ifdef __STDC__
31651 # include <limits.h>
31652 #else
31653 # include <assert.h>
31654 #endif
31655
31656 #undef $ac_func
31657
31658 /* Override any GCC internal prototype to avoid an error.
31659    Use char because int might match the return type of a GCC
31660    builtin and then its argument prototype would still apply.  */
31661 #ifdef __cplusplus
31662 extern "C"
31663 #endif
31664 char $ac_func ();
31665 /* The GNU C library defines this for functions which it implements
31666     to always fail with ENOSYS.  Some functions are actually named
31667     something starting with __ and the normal name is an alias.  */
31668 #if defined __stub_$ac_func || defined __stub___$ac_func
31669 choke me
31670 #endif
31671
31672 int
31673 main ()
31674 {
31675 return $ac_func ();
31676   ;
31677   return 0;
31678 }
31679 _ACEOF
31680 rm -f conftest.$ac_objext conftest$ac_exeext
31681 if { (ac_try="$ac_link"
31682 case "(($ac_try" in
31683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31684   *) ac_try_echo=$ac_try;;
31685 esac
31686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31687   (eval "$ac_link") 2>conftest.er1
31688   ac_status=$?
31689   grep -v '^ *+' conftest.er1 >conftest.err
31690   rm -f conftest.er1
31691   cat conftest.err >&5
31692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693   (exit $ac_status); } && {
31694          test -z "$ac_c_werror_flag" ||
31695          test ! -s conftest.err
31696        } && test -s conftest$ac_exeext &&
31697        $as_test_x conftest$ac_exeext; then
31698   eval "$as_ac_var=yes"
31699 else
31700   echo "$as_me: failed program was:" >&5
31701 sed 's/^/| /' conftest.$ac_ext >&5
31702
31703         eval "$as_ac_var=no"
31704 fi
31705
31706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31707       conftest$ac_exeext conftest.$ac_ext
31708 fi
31709 ac_res=`eval echo '${'$as_ac_var'}'`
31710                { echo "$as_me:$LINENO: result: $ac_res" >&5
31711 echo "${ECHO_T}$ac_res" >&6; }
31712 if test `eval echo '${'$as_ac_var'}'` = yes; then
31713   cat >>confdefs.h <<_ACEOF
31714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31715 _ACEOF
31716
31717 fi
31718 done
31719
31720
31721 { echo "$as_me:$LINENO: checking for va_copy" >&5
31722 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
31723 if test "${ba_cv_va_copy+set}" = set; then
31724   echo $ECHO_N "(cached) $ECHO_C" >&6
31725 else
31726   cat >conftest.$ac_ext <<_ACEOF
31727 /* confdefs.h.  */
31728 _ACEOF
31729 cat confdefs.h >>conftest.$ac_ext
31730 cat >>conftest.$ac_ext <<_ACEOF
31731 /* end confdefs.h.  */
31732
31733 #include <stdarg.h>
31734 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
31735 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
31736
31737 int
31738 main ()
31739 {
31740 call_use_va_copy(1,2,3)
31741   ;
31742   return 0;
31743 }
31744 _ACEOF
31745 rm -f conftest.$ac_objext conftest$ac_exeext
31746 if { (ac_try="$ac_link"
31747 case "(($ac_try" in
31748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749   *) ac_try_echo=$ac_try;;
31750 esac
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752   (eval "$ac_link") 2>conftest.er1
31753   ac_status=$?
31754   grep -v '^ *+' conftest.er1 >conftest.err
31755   rm -f conftest.er1
31756   cat conftest.err >&5
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); } && {
31759          test -z "$ac_c_werror_flag" ||
31760          test ! -s conftest.err
31761        } && test -s conftest$ac_exeext &&
31762        $as_test_x conftest$ac_exeext; then
31763   ba_cv_va_copy=yes
31764 else
31765   echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31767
31768         ba_cv_va_copy=no
31769 fi
31770
31771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31772       conftest$ac_exeext conftest.$ac_ext
31773 fi
31774 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
31775 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
31776 test $ba_cv_va_copy = yes &&
31777 cat >>confdefs.h <<\_ACEOF
31778 #define HAVE_VA_COPY 1
31779 _ACEOF
31780
31781
31782
31783
31784
31785
31786
31787 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
31788 do
31789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31793   echo $ECHO_N "(cached) $ECHO_C" >&6
31794 else
31795   cat >conftest.$ac_ext <<_ACEOF
31796 /* confdefs.h.  */
31797 _ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h.  */
31801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31803 #define $ac_func innocuous_$ac_func
31804
31805 /* System header to define __stub macros and hopefully few prototypes,
31806     which can conflict with char $ac_func (); below.
31807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31808     <limits.h> exists even on freestanding compilers.  */
31809
31810 #ifdef __STDC__
31811 # include <limits.h>
31812 #else
31813 # include <assert.h>
31814 #endif
31815
31816 #undef $ac_func
31817
31818 /* Override any GCC internal prototype to avoid an error.
31819    Use char because int might match the return type of a GCC
31820    builtin and then its argument prototype would still apply.  */
31821 #ifdef __cplusplus
31822 extern "C"
31823 #endif
31824 char $ac_func ();
31825 /* The GNU C library defines this for functions which it implements
31826     to always fail with ENOSYS.  Some functions are actually named
31827     something starting with __ and the normal name is an alias.  */
31828 #if defined __stub_$ac_func || defined __stub___$ac_func
31829 choke me
31830 #endif
31831
31832 int
31833 main ()
31834 {
31835 return $ac_func ();
31836   ;
31837   return 0;
31838 }
31839 _ACEOF
31840 rm -f conftest.$ac_objext conftest$ac_exeext
31841 if { (ac_try="$ac_link"
31842 case "(($ac_try" in
31843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844   *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847   (eval "$ac_link") 2>conftest.er1
31848   ac_status=$?
31849   grep -v '^ *+' conftest.er1 >conftest.err
31850   rm -f conftest.er1
31851   cat conftest.err >&5
31852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853   (exit $ac_status); } && {
31854          test -z "$ac_c_werror_flag" ||
31855          test ! -s conftest.err
31856        } && test -s conftest$ac_exeext &&
31857        $as_test_x conftest$ac_exeext; then
31858   eval "$as_ac_var=yes"
31859 else
31860   echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31862
31863         eval "$as_ac_var=no"
31864 fi
31865
31866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31867       conftest$ac_exeext conftest.$ac_ext
31868 fi
31869 ac_res=`eval echo '${'$as_ac_var'}'`
31870                { echo "$as_me:$LINENO: result: $ac_res" >&5
31871 echo "${ECHO_T}$ac_res" >&6; }
31872 if test `eval echo '${'$as_ac_var'}'` = yes; then
31873   cat >>confdefs.h <<_ACEOF
31874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31875 _ACEOF
31876
31877 fi
31878 done
31879
31880
31881 # If resolver functions are not in libc check for -lnsl or -lresolv.
31882 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
31883 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
31884 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
31885   echo $ECHO_N "(cached) $ECHO_C" >&6
31886 else
31887   cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h.  */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h.  */
31893 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
31894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31895 #define gethostbyname_r innocuous_gethostbyname_r
31896
31897 /* System header to define __stub macros and hopefully few prototypes,
31898     which can conflict with char gethostbyname_r (); below.
31899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31900     <limits.h> exists even on freestanding compilers.  */
31901
31902 #ifdef __STDC__
31903 # include <limits.h>
31904 #else
31905 # include <assert.h>
31906 #endif
31907
31908 #undef gethostbyname_r
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 gethostbyname_r ();
31917 /* The GNU C library defines this for functions which it implements
31918     to always fail with ENOSYS.  Some functions are actually named
31919     something starting with __ and the normal name is an alias.  */
31920 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31921 choke me
31922 #endif
31923
31924 int
31925 main ()
31926 {
31927 return gethostbyname_r ();
31928   ;
31929   return 0;
31930 }
31931 _ACEOF
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          test -z "$ac_c_werror_flag" ||
31947          test ! -s conftest.err
31948        } && test -s conftest$ac_exeext &&
31949        $as_test_x conftest$ac_exeext; then
31950   ac_cv_func_gethostbyname_r=yes
31951 else
31952   echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31954
31955         ac_cv_func_gethostbyname_r=no
31956 fi
31957
31958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31959       conftest$ac_exeext conftest.$ac_ext
31960 fi
31961 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
31962 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
31963 if test $ac_cv_func_gethostbyname_r = yes; then
31964   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
31965 echo "${ECHO_T}using libc's resolver" >&6; }
31966 else
31967
31968 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
31969 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
31970 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
31971   echo $ECHO_N "(cached) $ECHO_C" >&6
31972 else
31973   ac_check_lib_save_LIBS=$LIBS
31974 LIBS="-lnsl  $LIBS"
31975 cat >conftest.$ac_ext <<_ACEOF
31976 /* confdefs.h.  */
31977 _ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h.  */
31981
31982 /* Override any GCC internal prototype to avoid an error.
31983    Use char because int might match the return type of a GCC
31984    builtin and then its argument prototype would still apply.  */
31985 #ifdef __cplusplus
31986 extern "C"
31987 #endif
31988 char gethostbyname_r ();
31989 int
31990 main ()
31991 {
31992 return gethostbyname_r ();
31993   ;
31994   return 0;
31995 }
31996 _ACEOF
31997 rm -f conftest.$ac_objext conftest$ac_exeext
31998 if { (ac_try="$ac_link"
31999 case "(($ac_try" in
32000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001   *) ac_try_echo=$ac_try;;
32002 esac
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004   (eval "$ac_link") 2>conftest.er1
32005   ac_status=$?
32006   grep -v '^ *+' conftest.er1 >conftest.err
32007   rm -f conftest.er1
32008   cat conftest.err >&5
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); } && {
32011          test -z "$ac_c_werror_flag" ||
32012          test ! -s conftest.err
32013        } && test -s conftest$ac_exeext &&
32014        $as_test_x conftest$ac_exeext; then
32015   ac_cv_lib_nsl_gethostbyname_r=yes
32016 else
32017   echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32019
32020         ac_cv_lib_nsl_gethostbyname_r=no
32021 fi
32022
32023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32024       conftest$ac_exeext conftest.$ac_ext
32025 LIBS=$ac_check_lib_save_LIBS
32026 fi
32027 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
32028 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
32029 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
32030   cat >>confdefs.h <<_ACEOF
32031 #define HAVE_LIBNSL 1
32032 _ACEOF
32033
32034   LIBS="-lnsl $LIBS"
32035
32036 fi
32037
32038
32039 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
32040 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
32041 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
32042   echo $ECHO_N "(cached) $ECHO_C" >&6
32043 else
32044   ac_check_lib_save_LIBS=$LIBS
32045 LIBS="-lresolv  $LIBS"
32046 cat >conftest.$ac_ext <<_ACEOF
32047 /* confdefs.h.  */
32048 _ACEOF
32049 cat confdefs.h >>conftest.$ac_ext
32050 cat >>conftest.$ac_ext <<_ACEOF
32051 /* end confdefs.h.  */
32052
32053 /* Override any GCC internal prototype to avoid an error.
32054    Use char because int might match the return type of a GCC
32055    builtin and then its argument prototype would still apply.  */
32056 #ifdef __cplusplus
32057 extern "C"
32058 #endif
32059 char gethostbyname_r ();
32060 int
32061 main ()
32062 {
32063 return gethostbyname_r ();
32064   ;
32065   return 0;
32066 }
32067 _ACEOF
32068 rm -f conftest.$ac_objext conftest$ac_exeext
32069 if { (ac_try="$ac_link"
32070 case "(($ac_try" in
32071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072   *) ac_try_echo=$ac_try;;
32073 esac
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075   (eval "$ac_link") 2>conftest.er1
32076   ac_status=$?
32077   grep -v '^ *+' conftest.er1 >conftest.err
32078   rm -f conftest.er1
32079   cat conftest.err >&5
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); } && {
32082          test -z "$ac_c_werror_flag" ||
32083          test ! -s conftest.err
32084        } && test -s conftest$ac_exeext &&
32085        $as_test_x conftest$ac_exeext; then
32086   ac_cv_lib_resolv_gethostbyname_r=yes
32087 else
32088   echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32090
32091         ac_cv_lib_resolv_gethostbyname_r=no
32092 fi
32093
32094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32095       conftest$ac_exeext conftest.$ac_ext
32096 LIBS=$ac_check_lib_save_LIBS
32097 fi
32098 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
32099 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
32100 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
32101   cat >>confdefs.h <<_ACEOF
32102 #define HAVE_LIBRESOLV 1
32103 _ACEOF
32104
32105   LIBS="-lresolv $LIBS"
32106
32107 fi
32108
32109 fi
32110
32111
32112
32113
32114
32115 for ac_func in inet_pton
32116 do
32117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32121   echo $ECHO_N "(cached) $ECHO_C" >&6
32122 else
32123   cat >conftest.$ac_ext <<_ACEOF
32124 /* confdefs.h.  */
32125 _ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h.  */
32129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32131 #define $ac_func innocuous_$ac_func
32132
32133 /* System header to define __stub macros and hopefully few prototypes,
32134     which can conflict with char $ac_func (); below.
32135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32136     <limits.h> exists even on freestanding compilers.  */
32137
32138 #ifdef __STDC__
32139 # include <limits.h>
32140 #else
32141 # include <assert.h>
32142 #endif
32143
32144 #undef $ac_func
32145
32146 /* Override any GCC internal prototype to avoid an error.
32147    Use char because int might match the return type of a GCC
32148    builtin and then its argument prototype would still apply.  */
32149 #ifdef __cplusplus
32150 extern "C"
32151 #endif
32152 char $ac_func ();
32153 /* The GNU C library defines this for functions which it implements
32154     to always fail with ENOSYS.  Some functions are actually named
32155     something starting with __ and the normal name is an alias.  */
32156 #if defined __stub_$ac_func || defined __stub___$ac_func
32157 choke me
32158 #endif
32159
32160 int
32161 main ()
32162 {
32163 return $ac_func ();
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext conftest$ac_exeext
32169 if { (ac_try="$ac_link"
32170 case "(($ac_try" in
32171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172   *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175   (eval "$ac_link") 2>conftest.er1
32176   ac_status=$?
32177   grep -v '^ *+' conftest.er1 >conftest.err
32178   rm -f conftest.er1
32179   cat conftest.err >&5
32180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181   (exit $ac_status); } && {
32182          test -z "$ac_c_werror_flag" ||
32183          test ! -s conftest.err
32184        } && test -s conftest$ac_exeext &&
32185        $as_test_x conftest$ac_exeext; then
32186   eval "$as_ac_var=yes"
32187 else
32188   echo "$as_me: failed program was:" >&5
32189 sed 's/^/| /' conftest.$ac_ext >&5
32190
32191         eval "$as_ac_var=no"
32192 fi
32193
32194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32195       conftest$ac_exeext conftest.$ac_ext
32196 fi
32197 ac_res=`eval echo '${'$as_ac_var'}'`
32198                { echo "$as_me:$LINENO: result: $ac_res" >&5
32199 echo "${ECHO_T}$ac_res" >&6; }
32200 if test `eval echo '${'$as_ac_var'}'` = yes; then
32201   cat >>confdefs.h <<_ACEOF
32202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32203 _ACEOF
32204  cat >>confdefs.h <<\_ACEOF
32205 #define HAVE_INET_PTON 1
32206 _ACEOF
32207
32208 fi
32209 done
32210
32211
32212 for ac_func in inet_ntop
32213 do
32214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32218   echo $ECHO_N "(cached) $ECHO_C" >&6
32219 else
32220   cat >conftest.$ac_ext <<_ACEOF
32221 /* confdefs.h.  */
32222 _ACEOF
32223 cat confdefs.h >>conftest.$ac_ext
32224 cat >>conftest.$ac_ext <<_ACEOF
32225 /* end confdefs.h.  */
32226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32228 #define $ac_func innocuous_$ac_func
32229
32230 /* System header to define __stub macros and hopefully few prototypes,
32231     which can conflict with char $ac_func (); below.
32232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32233     <limits.h> exists even on freestanding compilers.  */
32234
32235 #ifdef __STDC__
32236 # include <limits.h>
32237 #else
32238 # include <assert.h>
32239 #endif
32240
32241 #undef $ac_func
32242
32243 /* Override any GCC internal prototype to avoid an error.
32244    Use char because int might match the return type of a GCC
32245    builtin and then its argument prototype would still apply.  */
32246 #ifdef __cplusplus
32247 extern "C"
32248 #endif
32249 char $ac_func ();
32250 /* The GNU C library defines this for functions which it implements
32251     to always fail with ENOSYS.  Some functions are actually named
32252     something starting with __ and the normal name is an alias.  */
32253 #if defined __stub_$ac_func || defined __stub___$ac_func
32254 choke me
32255 #endif
32256
32257 int
32258 main ()
32259 {
32260 return $ac_func ();
32261   ;
32262   return 0;
32263 }
32264 _ACEOF
32265 rm -f conftest.$ac_objext conftest$ac_exeext
32266 if { (ac_try="$ac_link"
32267 case "(($ac_try" in
32268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269   *) ac_try_echo=$ac_try;;
32270 esac
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272   (eval "$ac_link") 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } && {
32279          test -z "$ac_c_werror_flag" ||
32280          test ! -s conftest.err
32281        } && test -s conftest$ac_exeext &&
32282        $as_test_x conftest$ac_exeext; then
32283   eval "$as_ac_var=yes"
32284 else
32285   echo "$as_me: failed program was:" >&5
32286 sed 's/^/| /' conftest.$ac_ext >&5
32287
32288         eval "$as_ac_var=no"
32289 fi
32290
32291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32292       conftest$ac_exeext conftest.$ac_ext
32293 fi
32294 ac_res=`eval echo '${'$as_ac_var'}'`
32295                { echo "$as_me:$LINENO: result: $ac_res" >&5
32296 echo "${ECHO_T}$ac_res" >&6; }
32297 if test `eval echo '${'$as_ac_var'}'` = yes; then
32298   cat >>confdefs.h <<_ACEOF
32299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32300 _ACEOF
32301  cat >>confdefs.h <<\_ACEOF
32302 #define HAVE_INET_NTOP 1
32303 _ACEOF
32304
32305 fi
32306 done
32307
32308
32309 for ac_func in gethostbyname2
32310 do
32311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32315   echo $ECHO_N "(cached) $ECHO_C" >&6
32316 else
32317   cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32325 #define $ac_func innocuous_$ac_func
32326
32327 /* System header to define __stub macros and hopefully few prototypes,
32328     which can conflict with char $ac_func (); below.
32329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32330     <limits.h> exists even on freestanding compilers.  */
32331
32332 #ifdef __STDC__
32333 # include <limits.h>
32334 #else
32335 # include <assert.h>
32336 #endif
32337
32338 #undef $ac_func
32339
32340 /* Override any GCC internal prototype to avoid an error.
32341    Use char because int might match the return type of a GCC
32342    builtin and then its argument prototype would still apply.  */
32343 #ifdef __cplusplus
32344 extern "C"
32345 #endif
32346 char $ac_func ();
32347 /* The GNU C library defines this for functions which it implements
32348     to always fail with ENOSYS.  Some functions are actually named
32349     something starting with __ and the normal name is an alias.  */
32350 #if defined __stub_$ac_func || defined __stub___$ac_func
32351 choke me
32352 #endif
32353
32354 int
32355 main ()
32356 {
32357 return $ac_func ();
32358   ;
32359   return 0;
32360 }
32361 _ACEOF
32362 rm -f conftest.$ac_objext conftest$ac_exeext
32363 if { (ac_try="$ac_link"
32364 case "(($ac_try" in
32365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366   *) ac_try_echo=$ac_try;;
32367 esac
32368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32369   (eval "$ac_link") 2>conftest.er1
32370   ac_status=$?
32371   grep -v '^ *+' conftest.er1 >conftest.err
32372   rm -f conftest.er1
32373   cat conftest.err >&5
32374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375   (exit $ac_status); } && {
32376          test -z "$ac_c_werror_flag" ||
32377          test ! -s conftest.err
32378        } && test -s conftest$ac_exeext &&
32379        $as_test_x conftest$ac_exeext; then
32380   eval "$as_ac_var=yes"
32381 else
32382   echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32384
32385         eval "$as_ac_var=no"
32386 fi
32387
32388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32389       conftest$ac_exeext conftest.$ac_ext
32390 fi
32391 ac_res=`eval echo '${'$as_ac_var'}'`
32392                { echo "$as_me:$LINENO: result: $ac_res" >&5
32393 echo "${ECHO_T}$ac_res" >&6; }
32394 if test `eval echo '${'$as_ac_var'}'` = yes; then
32395   cat >>confdefs.h <<_ACEOF
32396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32397 _ACEOF
32398  cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_GETHOSTBYNAME2 1
32400 _ACEOF
32401
32402 fi
32403 done
32404
32405
32406 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
32407 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
32408 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
32409   echo $ECHO_N "(cached) $ECHO_C" >&6
32410 else
32411   cat >conftest.$ac_ext <<_ACEOF
32412 /* confdefs.h.  */
32413 _ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h.  */
32417 #include <sys/socket.h>
32418 int
32419 main ()
32420 {
32421 struct sockaddr s; s.sa_len;
32422   ;
32423   return 0;
32424 }
32425 _ACEOF
32426 rm -f conftest.$ac_objext
32427 if { (ac_try="$ac_compile"
32428 case "(($ac_try" in
32429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430   *) ac_try_echo=$ac_try;;
32431 esac
32432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433   (eval "$ac_compile") 2>conftest.er1
32434   ac_status=$?
32435   grep -v '^ *+' conftest.er1 >conftest.err
32436   rm -f conftest.er1
32437   cat conftest.err >&5
32438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439   (exit $ac_status); } && {
32440          test -z "$ac_c_werror_flag" ||
32441          test ! -s conftest.err
32442        } && test -s conftest.$ac_objext; then
32443   ac_cv_struct_sockaddr_sa_len=yes
32444 else
32445   echo "$as_me: failed program was:" >&5
32446 sed 's/^/| /' conftest.$ac_ext >&5
32447
32448         ac_cv_struct_sockaddr_sa_len=no
32449 fi
32450
32451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32452 fi
32453 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
32454 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
32455
32456  if test $ac_cv_struct_sockaddr_sa_len = yes; then
32457
32458 cat >>confdefs.h <<\_ACEOF
32459 #define HAVE_SA_LEN 1
32460 _ACEOF
32461
32462  fi
32463
32464
32465
32466
32467
32468 for ac_func in strftime
32469 do
32470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32474   echo $ECHO_N "(cached) $ECHO_C" >&6
32475 else
32476   cat >conftest.$ac_ext <<_ACEOF
32477 /* confdefs.h.  */
32478 _ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h.  */
32482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32484 #define $ac_func innocuous_$ac_func
32485
32486 /* System header to define __stub macros and hopefully few prototypes,
32487     which can conflict with char $ac_func (); below.
32488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32489     <limits.h> exists even on freestanding compilers.  */
32490
32491 #ifdef __STDC__
32492 # include <limits.h>
32493 #else
32494 # include <assert.h>
32495 #endif
32496
32497 #undef $ac_func
32498
32499 /* Override any GCC internal prototype to avoid an error.
32500    Use char because int might match the return type of a GCC
32501    builtin and then its argument prototype would still apply.  */
32502 #ifdef __cplusplus
32503 extern "C"
32504 #endif
32505 char $ac_func ();
32506 /* The GNU C library defines this for functions which it implements
32507     to always fail with ENOSYS.  Some functions are actually named
32508     something starting with __ and the normal name is an alias.  */
32509 #if defined __stub_$ac_func || defined __stub___$ac_func
32510 choke me
32511 #endif
32512
32513 int
32514 main ()
32515 {
32516 return $ac_func ();
32517   ;
32518   return 0;
32519 }
32520 _ACEOF
32521 rm -f conftest.$ac_objext conftest$ac_exeext
32522 if { (ac_try="$ac_link"
32523 case "(($ac_try" in
32524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525   *) ac_try_echo=$ac_try;;
32526 esac
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528   (eval "$ac_link") 2>conftest.er1
32529   ac_status=$?
32530   grep -v '^ *+' conftest.er1 >conftest.err
32531   rm -f conftest.er1
32532   cat conftest.err >&5
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); } && {
32535          test -z "$ac_c_werror_flag" ||
32536          test ! -s conftest.err
32537        } && test -s conftest$ac_exeext &&
32538        $as_test_x conftest$ac_exeext; then
32539   eval "$as_ac_var=yes"
32540 else
32541   echo "$as_me: failed program was:" >&5
32542 sed 's/^/| /' conftest.$ac_ext >&5
32543
32544         eval "$as_ac_var=no"
32545 fi
32546
32547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32548       conftest$ac_exeext conftest.$ac_ext
32549 fi
32550 ac_res=`eval echo '${'$as_ac_var'}'`
32551                { echo "$as_me:$LINENO: result: $ac_res" >&5
32552 echo "${ECHO_T}$ac_res" >&6; }
32553 if test `eval echo '${'$as_ac_var'}'` = yes; then
32554   cat >>confdefs.h <<_ACEOF
32555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32556 _ACEOF
32557
32558 else
32559   # strftime is in -lintl on SCO UNIX.
32560 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
32561 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
32562 if test "${ac_cv_lib_intl_strftime+set}" = set; then
32563   echo $ECHO_N "(cached) $ECHO_C" >&6
32564 else
32565   ac_check_lib_save_LIBS=$LIBS
32566 LIBS="-lintl  $LIBS"
32567 cat >conftest.$ac_ext <<_ACEOF
32568 /* confdefs.h.  */
32569 _ACEOF
32570 cat confdefs.h >>conftest.$ac_ext
32571 cat >>conftest.$ac_ext <<_ACEOF
32572 /* end confdefs.h.  */
32573
32574 /* Override any GCC internal prototype to avoid an error.
32575    Use char because int might match the return type of a GCC
32576    builtin and then its argument prototype would still apply.  */
32577 #ifdef __cplusplus
32578 extern "C"
32579 #endif
32580 char strftime ();
32581 int
32582 main ()
32583 {
32584 return strftime ();
32585   ;
32586   return 0;
32587 }
32588 _ACEOF
32589 rm -f conftest.$ac_objext conftest$ac_exeext
32590 if { (ac_try="$ac_link"
32591 case "(($ac_try" in
32592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32593   *) ac_try_echo=$ac_try;;
32594 esac
32595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32596   (eval "$ac_link") 2>conftest.er1
32597   ac_status=$?
32598   grep -v '^ *+' conftest.er1 >conftest.err
32599   rm -f conftest.er1
32600   cat conftest.err >&5
32601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602   (exit $ac_status); } && {
32603          test -z "$ac_c_werror_flag" ||
32604          test ! -s conftest.err
32605        } && test -s conftest$ac_exeext &&
32606        $as_test_x conftest$ac_exeext; then
32607   ac_cv_lib_intl_strftime=yes
32608 else
32609   echo "$as_me: failed program was:" >&5
32610 sed 's/^/| /' conftest.$ac_ext >&5
32611
32612         ac_cv_lib_intl_strftime=no
32613 fi
32614
32615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32616       conftest$ac_exeext conftest.$ac_ext
32617 LIBS=$ac_check_lib_save_LIBS
32618 fi
32619 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
32620 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
32621 if test $ac_cv_lib_intl_strftime = yes; then
32622   cat >>confdefs.h <<\_ACEOF
32623 #define HAVE_STRFTIME 1
32624 _ACEOF
32625
32626 LIBS="-lintl $LIBS"
32627 fi
32628
32629 fi
32630 done
32631
32632
32633 for ac_func in vprintf
32634 do
32635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32639   echo $ECHO_N "(cached) $ECHO_C" >&6
32640 else
32641   cat >conftest.$ac_ext <<_ACEOF
32642 /* confdefs.h.  */
32643 _ACEOF
32644 cat confdefs.h >>conftest.$ac_ext
32645 cat >>conftest.$ac_ext <<_ACEOF
32646 /* end confdefs.h.  */
32647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32649 #define $ac_func innocuous_$ac_func
32650
32651 /* System header to define __stub macros and hopefully few prototypes,
32652     which can conflict with char $ac_func (); below.
32653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32654     <limits.h> exists even on freestanding compilers.  */
32655
32656 #ifdef __STDC__
32657 # include <limits.h>
32658 #else
32659 # include <assert.h>
32660 #endif
32661
32662 #undef $ac_func
32663
32664 /* Override any GCC internal prototype to avoid an error.
32665    Use char because int might match the return type of a GCC
32666    builtin and then its argument prototype would still apply.  */
32667 #ifdef __cplusplus
32668 extern "C"
32669 #endif
32670 char $ac_func ();
32671 /* The GNU C library defines this for functions which it implements
32672     to always fail with ENOSYS.  Some functions are actually named
32673     something starting with __ and the normal name is an alias.  */
32674 #if defined __stub_$ac_func || defined __stub___$ac_func
32675 choke me
32676 #endif
32677
32678 int
32679 main ()
32680 {
32681 return $ac_func ();
32682   ;
32683   return 0;
32684 }
32685 _ACEOF
32686 rm -f conftest.$ac_objext conftest$ac_exeext
32687 if { (ac_try="$ac_link"
32688 case "(($ac_try" in
32689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690   *) ac_try_echo=$ac_try;;
32691 esac
32692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693   (eval "$ac_link") 2>conftest.er1
32694   ac_status=$?
32695   grep -v '^ *+' conftest.er1 >conftest.err
32696   rm -f conftest.er1
32697   cat conftest.err >&5
32698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699   (exit $ac_status); } && {
32700          test -z "$ac_c_werror_flag" ||
32701          test ! -s conftest.err
32702        } && test -s conftest$ac_exeext &&
32703        $as_test_x conftest$ac_exeext; then
32704   eval "$as_ac_var=yes"
32705 else
32706   echo "$as_me: failed program was:" >&5
32707 sed 's/^/| /' conftest.$ac_ext >&5
32708
32709         eval "$as_ac_var=no"
32710 fi
32711
32712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32713       conftest$ac_exeext conftest.$ac_ext
32714 fi
32715 ac_res=`eval echo '${'$as_ac_var'}'`
32716                { echo "$as_me:$LINENO: result: $ac_res" >&5
32717 echo "${ECHO_T}$ac_res" >&6; }
32718 if test `eval echo '${'$as_ac_var'}'` = yes; then
32719   cat >>confdefs.h <<_ACEOF
32720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32721 _ACEOF
32722
32723 { echo "$as_me:$LINENO: checking for _doprnt" >&5
32724 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
32725 if test "${ac_cv_func__doprnt+set}" = set; then
32726   echo $ECHO_N "(cached) $ECHO_C" >&6
32727 else
32728   cat >conftest.$ac_ext <<_ACEOF
32729 /* confdefs.h.  */
32730 _ACEOF
32731 cat confdefs.h >>conftest.$ac_ext
32732 cat >>conftest.$ac_ext <<_ACEOF
32733 /* end confdefs.h.  */
32734 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
32735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32736 #define _doprnt innocuous__doprnt
32737
32738 /* System header to define __stub macros and hopefully few prototypes,
32739     which can conflict with char _doprnt (); below.
32740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32741     <limits.h> exists even on freestanding compilers.  */
32742
32743 #ifdef __STDC__
32744 # include <limits.h>
32745 #else
32746 # include <assert.h>
32747 #endif
32748
32749 #undef _doprnt
32750
32751 /* Override any GCC internal prototype to avoid an error.
32752    Use char because int might match the return type of a GCC
32753    builtin and then its argument prototype would still apply.  */
32754 #ifdef __cplusplus
32755 extern "C"
32756 #endif
32757 char _doprnt ();
32758 /* The GNU C library defines this for functions which it implements
32759     to always fail with ENOSYS.  Some functions are actually named
32760     something starting with __ and the normal name is an alias.  */
32761 #if defined __stub__doprnt || defined __stub____doprnt
32762 choke me
32763 #endif
32764
32765 int
32766 main ()
32767 {
32768 return _doprnt ();
32769   ;
32770   return 0;
32771 }
32772 _ACEOF
32773 rm -f conftest.$ac_objext conftest$ac_exeext
32774 if { (ac_try="$ac_link"
32775 case "(($ac_try" in
32776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777   *) ac_try_echo=$ac_try;;
32778 esac
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780   (eval "$ac_link") 2>conftest.er1
32781   ac_status=$?
32782   grep -v '^ *+' conftest.er1 >conftest.err
32783   rm -f conftest.er1
32784   cat conftest.err >&5
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } && {
32787          test -z "$ac_c_werror_flag" ||
32788          test ! -s conftest.err
32789        } && test -s conftest$ac_exeext &&
32790        $as_test_x conftest$ac_exeext; then
32791   ac_cv_func__doprnt=yes
32792 else
32793   echo "$as_me: failed program was:" >&5
32794 sed 's/^/| /' conftest.$ac_ext >&5
32795
32796         ac_cv_func__doprnt=no
32797 fi
32798
32799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32800       conftest$ac_exeext conftest.$ac_ext
32801 fi
32802 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
32803 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
32804 if test $ac_cv_func__doprnt = yes; then
32805
32806 cat >>confdefs.h <<\_ACEOF
32807 #define HAVE_DOPRNT 1
32808 _ACEOF
32809
32810 fi
32811
32812 fi
32813 done
32814
32815
32816 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32817 # for constant arguments.  Useless!
32818 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32819 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32820 if test "${ac_cv_working_alloca_h+set}" = set; then
32821   echo $ECHO_N "(cached) $ECHO_C" >&6
32822 else
32823   cat >conftest.$ac_ext <<_ACEOF
32824 /* confdefs.h.  */
32825 _ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h.  */
32829 #include <alloca.h>
32830 int
32831 main ()
32832 {
32833 char *p = (char *) alloca (2 * sizeof (int));
32834                           if (p) return 0;
32835   ;
32836   return 0;
32837 }
32838 _ACEOF
32839 rm -f conftest.$ac_objext conftest$ac_exeext
32840 if { (ac_try="$ac_link"
32841 case "(($ac_try" in
32842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32843   *) ac_try_echo=$ac_try;;
32844 esac
32845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32846   (eval "$ac_link") 2>conftest.er1
32847   ac_status=$?
32848   grep -v '^ *+' conftest.er1 >conftest.err
32849   rm -f conftest.er1
32850   cat conftest.err >&5
32851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852   (exit $ac_status); } && {
32853          test -z "$ac_c_werror_flag" ||
32854          test ! -s conftest.err
32855        } && test -s conftest$ac_exeext &&
32856        $as_test_x conftest$ac_exeext; then
32857   ac_cv_working_alloca_h=yes
32858 else
32859   echo "$as_me: failed program was:" >&5
32860 sed 's/^/| /' conftest.$ac_ext >&5
32861
32862         ac_cv_working_alloca_h=no
32863 fi
32864
32865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32866       conftest$ac_exeext conftest.$ac_ext
32867 fi
32868 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32869 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32870 if test $ac_cv_working_alloca_h = yes; then
32871
32872 cat >>confdefs.h <<\_ACEOF
32873 #define HAVE_ALLOCA_H 1
32874 _ACEOF
32875
32876 fi
32877
32878 { echo "$as_me:$LINENO: checking for alloca" >&5
32879 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32880 if test "${ac_cv_func_alloca_works+set}" = set; then
32881   echo $ECHO_N "(cached) $ECHO_C" >&6
32882 else
32883   cat >conftest.$ac_ext <<_ACEOF
32884 /* confdefs.h.  */
32885 _ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h.  */
32889 #ifdef __GNUC__
32890 # define alloca __builtin_alloca
32891 #else
32892 # ifdef _MSC_VER
32893 #  include <malloc.h>
32894 #  define alloca _alloca
32895 # else
32896 #  ifdef HAVE_ALLOCA_H
32897 #   include <alloca.h>
32898 #  else
32899 #   ifdef _AIX
32900  #pragma alloca
32901 #   else
32902 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32903 char *alloca ();
32904 #    endif
32905 #   endif
32906 #  endif
32907 # endif
32908 #endif
32909
32910 int
32911 main ()
32912 {
32913 char *p = (char *) alloca (1);
32914                                     if (p) return 0;
32915   ;
32916   return 0;
32917 }
32918 _ACEOF
32919 rm -f conftest.$ac_objext conftest$ac_exeext
32920 if { (ac_try="$ac_link"
32921 case "(($ac_try" in
32922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923   *) ac_try_echo=$ac_try;;
32924 esac
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926   (eval "$ac_link") 2>conftest.er1
32927   ac_status=$?
32928   grep -v '^ *+' conftest.er1 >conftest.err
32929   rm -f conftest.er1
32930   cat conftest.err >&5
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); } && {
32933          test -z "$ac_c_werror_flag" ||
32934          test ! -s conftest.err
32935        } && test -s conftest$ac_exeext &&
32936        $as_test_x conftest$ac_exeext; then
32937   ac_cv_func_alloca_works=yes
32938 else
32939   echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32941
32942         ac_cv_func_alloca_works=no
32943 fi
32944
32945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32946       conftest$ac_exeext conftest.$ac_ext
32947 fi
32948 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32949 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32950
32951 if test $ac_cv_func_alloca_works = yes; then
32952
32953 cat >>confdefs.h <<\_ACEOF
32954 #define HAVE_ALLOCA 1
32955 _ACEOF
32956
32957 else
32958   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32959 # that cause trouble.  Some versions do not even contain alloca or
32960 # contain a buggy version.  If you still want to use their alloca,
32961 # use ar to extract alloca.o from them instead of compiling alloca.c.
32962
32963 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32964
32965 cat >>confdefs.h <<\_ACEOF
32966 #define C_ALLOCA 1
32967 _ACEOF
32968
32969
32970 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32971 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32972 if test "${ac_cv_os_cray+set}" = set; then
32973   echo $ECHO_N "(cached) $ECHO_C" >&6
32974 else
32975   cat >conftest.$ac_ext <<_ACEOF
32976 /* confdefs.h.  */
32977 _ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h.  */
32981 #if defined CRAY && ! defined CRAY2
32982 webecray
32983 #else
32984 wenotbecray
32985 #endif
32986
32987 _ACEOF
32988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32989   $EGREP "webecray" >/dev/null 2>&1; then
32990   ac_cv_os_cray=yes
32991 else
32992   ac_cv_os_cray=no
32993 fi
32994 rm -f conftest*
32995
32996 fi
32997 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32998 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32999 if test $ac_cv_os_cray = yes; then
33000   for ac_func in _getb67 GETB67 getb67; do
33001     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33005   echo $ECHO_N "(cached) $ECHO_C" >&6
33006 else
33007   cat >conftest.$ac_ext <<_ACEOF
33008 /* confdefs.h.  */
33009 _ACEOF
33010 cat confdefs.h >>conftest.$ac_ext
33011 cat >>conftest.$ac_ext <<_ACEOF
33012 /* end confdefs.h.  */
33013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33015 #define $ac_func innocuous_$ac_func
33016
33017 /* System header to define __stub macros and hopefully few prototypes,
33018     which can conflict with char $ac_func (); below.
33019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33020     <limits.h> exists even on freestanding compilers.  */
33021
33022 #ifdef __STDC__
33023 # include <limits.h>
33024 #else
33025 # include <assert.h>
33026 #endif
33027
33028 #undef $ac_func
33029
33030 /* Override any GCC internal prototype to avoid an error.
33031    Use char because int might match the return type of a GCC
33032    builtin and then its argument prototype would still apply.  */
33033 #ifdef __cplusplus
33034 extern "C"
33035 #endif
33036 char $ac_func ();
33037 /* The GNU C library defines this for functions which it implements
33038     to always fail with ENOSYS.  Some functions are actually named
33039     something starting with __ and the normal name is an alias.  */
33040 #if defined __stub_$ac_func || defined __stub___$ac_func
33041 choke me
33042 #endif
33043
33044 int
33045 main ()
33046 {
33047 return $ac_func ();
33048   ;
33049   return 0;
33050 }
33051 _ACEOF
33052 rm -f conftest.$ac_objext conftest$ac_exeext
33053 if { (ac_try="$ac_link"
33054 case "(($ac_try" in
33055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056   *) ac_try_echo=$ac_try;;
33057 esac
33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059   (eval "$ac_link") 2>conftest.er1
33060   ac_status=$?
33061   grep -v '^ *+' conftest.er1 >conftest.err
33062   rm -f conftest.er1
33063   cat conftest.err >&5
33064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065   (exit $ac_status); } && {
33066          test -z "$ac_c_werror_flag" ||
33067          test ! -s conftest.err
33068        } && test -s conftest$ac_exeext &&
33069        $as_test_x conftest$ac_exeext; then
33070   eval "$as_ac_var=yes"
33071 else
33072   echo "$as_me: failed program was:" >&5
33073 sed 's/^/| /' conftest.$ac_ext >&5
33074
33075         eval "$as_ac_var=no"
33076 fi
33077
33078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33079       conftest$ac_exeext conftest.$ac_ext
33080 fi
33081 ac_res=`eval echo '${'$as_ac_var'}'`
33082                { echo "$as_me:$LINENO: result: $ac_res" >&5
33083 echo "${ECHO_T}$ac_res" >&6; }
33084 if test `eval echo '${'$as_ac_var'}'` = yes; then
33085
33086 cat >>confdefs.h <<_ACEOF
33087 #define CRAY_STACKSEG_END $ac_func
33088 _ACEOF
33089
33090     break
33091 fi
33092
33093   done
33094 fi
33095
33096 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33097 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33098 if test "${ac_cv_c_stack_direction+set}" = set; then
33099   echo $ECHO_N "(cached) $ECHO_C" >&6
33100 else
33101   if test "$cross_compiling" = yes; then
33102   ac_cv_c_stack_direction=0
33103 else
33104   cat >conftest.$ac_ext <<_ACEOF
33105 /* confdefs.h.  */
33106 _ACEOF
33107 cat confdefs.h >>conftest.$ac_ext
33108 cat >>conftest.$ac_ext <<_ACEOF
33109 /* end confdefs.h.  */
33110 $ac_includes_default
33111 int
33112 find_stack_direction ()
33113 {
33114   static char *addr = 0;
33115   auto char dummy;
33116   if (addr == 0)
33117     {
33118       addr = &dummy;
33119       return find_stack_direction ();
33120     }
33121   else
33122     return (&dummy > addr) ? 1 : -1;
33123 }
33124
33125 int
33126 main ()
33127 {
33128   return find_stack_direction () < 0;
33129 }
33130 _ACEOF
33131 rm -f conftest$ac_exeext
33132 if { (ac_try="$ac_link"
33133 case "(($ac_try" in
33134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135   *) ac_try_echo=$ac_try;;
33136 esac
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138   (eval "$ac_link") 2>&5
33139   ac_status=$?
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33142   { (case "(($ac_try" in
33143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33144   *) ac_try_echo=$ac_try;;
33145 esac
33146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33147   (eval "$ac_try") 2>&5
33148   ac_status=$?
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); }; }; then
33151   ac_cv_c_stack_direction=1
33152 else
33153   echo "$as_me: program exited with status $ac_status" >&5
33154 echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33156
33157 ( exit $ac_status )
33158 ac_cv_c_stack_direction=-1
33159 fi
33160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33161 fi
33162
33163
33164 fi
33165 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33166 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33167
33168 cat >>confdefs.h <<_ACEOF
33169 #define STACK_DIRECTION $ac_cv_c_stack_direction
33170 _ACEOF
33171
33172
33173 fi
33174
33175 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33176 # -lseq on Dynix/PTX, -lgen on Unixware.
33177 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33178 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
33179 if test "${ac_cv_search_getmntent+set}" = set; then
33180   echo $ECHO_N "(cached) $ECHO_C" >&6
33181 else
33182   ac_func_search_save_LIBS=$LIBS
33183 cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h.  */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h.  */
33189
33190 /* Override any GCC internal prototype to avoid an error.
33191    Use char because int might match the return type of a GCC
33192    builtin and then its argument prototype would still apply.  */
33193 #ifdef __cplusplus
33194 extern "C"
33195 #endif
33196 char getmntent ();
33197 int
33198 main ()
33199 {
33200 return getmntent ();
33201   ;
33202   return 0;
33203 }
33204 _ACEOF
33205 for ac_lib in '' sun seq gen; do
33206   if test -z "$ac_lib"; then
33207     ac_res="none required"
33208   else
33209     ac_res=-l$ac_lib
33210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33211   fi
33212   rm -f conftest.$ac_objext conftest$ac_exeext
33213 if { (ac_try="$ac_link"
33214 case "(($ac_try" in
33215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216   *) ac_try_echo=$ac_try;;
33217 esac
33218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219   (eval "$ac_link") 2>conftest.er1
33220   ac_status=$?
33221   grep -v '^ *+' conftest.er1 >conftest.err
33222   rm -f conftest.er1
33223   cat conftest.err >&5
33224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225   (exit $ac_status); } && {
33226          test -z "$ac_c_werror_flag" ||
33227          test ! -s conftest.err
33228        } && test -s conftest$ac_exeext &&
33229        $as_test_x conftest$ac_exeext; then
33230   ac_cv_search_getmntent=$ac_res
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235
33236 fi
33237
33238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33239       conftest$ac_exeext
33240   if test "${ac_cv_search_getmntent+set}" = set; then
33241   break
33242 fi
33243 done
33244 if test "${ac_cv_search_getmntent+set}" = set; then
33245   :
33246 else
33247   ac_cv_search_getmntent=no
33248 fi
33249 rm conftest.$ac_ext
33250 LIBS=$ac_func_search_save_LIBS
33251 fi
33252 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
33253 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
33254 ac_res=$ac_cv_search_getmntent
33255 if test "$ac_res" != no; then
33256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33257   ac_cv_func_getmntent=yes
33258
33259 cat >>confdefs.h <<\_ACEOF
33260 #define HAVE_GETMNTENT 1
33261 _ACEOF
33262
33263 else
33264   ac_cv_func_getmntent=no
33265 fi
33266
33267
33268 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33269 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
33270 if test "${ac_cv_func_closedir_void+set}" = set; then
33271   echo $ECHO_N "(cached) $ECHO_C" >&6
33272 else
33273   if test "$cross_compiling" = yes; then
33274   ac_cv_func_closedir_void=yes
33275 else
33276   cat >conftest.$ac_ext <<_ACEOF
33277 /* confdefs.h.  */
33278 _ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h.  */
33282 $ac_includes_default
33283 #include <$ac_header_dirent>
33284 #ifndef __cplusplus
33285 int closedir ();
33286 #endif
33287
33288 int
33289 main ()
33290 {
33291 return closedir (opendir (".")) != 0;
33292   ;
33293   return 0;
33294 }
33295 _ACEOF
33296 rm -f conftest$ac_exeext
33297 if { (ac_try="$ac_link"
33298 case "(($ac_try" in
33299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300   *) ac_try_echo=$ac_try;;
33301 esac
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303   (eval "$ac_link") 2>&5
33304   ac_status=$?
33305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33307   { (case "(($ac_try" in
33308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309   *) ac_try_echo=$ac_try;;
33310 esac
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312   (eval "$ac_try") 2>&5
33313   ac_status=$?
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); }; }; then
33316   ac_cv_func_closedir_void=no
33317 else
33318   echo "$as_me: program exited with status $ac_status" >&5
33319 echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33321
33322 ( exit $ac_status )
33323 ac_cv_func_closedir_void=yes
33324 fi
33325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33326 fi
33327
33328
33329 fi
33330 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33331 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
33332 if test $ac_cv_func_closedir_void = yes; then
33333
33334 cat >>confdefs.h <<\_ACEOF
33335 #define CLOSEDIR_VOID 1
33336 _ACEOF
33337
33338 fi
33339
33340 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
33341 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
33342 if test "${ac_cv_func_setpgrp_void+set}" = set; then
33343   echo $ECHO_N "(cached) $ECHO_C" >&6
33344 else
33345   if test "$cross_compiling" = yes; then
33346   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
33347 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
33348    { (exit 1); exit 1; }; }
33349 else
33350   cat >conftest.$ac_ext <<_ACEOF
33351 /* confdefs.h.  */
33352 _ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h.  */
33356 $ac_includes_default
33357 int
33358 main ()
33359 {
33360 /* If this system has a BSD-style setpgrp which takes arguments,
33361   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
33362   exit successfully. */
33363   return setpgrp (1,1) != -1;
33364   ;
33365   return 0;
33366 }
33367 _ACEOF
33368 rm -f conftest$ac_exeext
33369 if { (ac_try="$ac_link"
33370 case "(($ac_try" in
33371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372   *) ac_try_echo=$ac_try;;
33373 esac
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375   (eval "$ac_link") 2>&5
33376   ac_status=$?
33377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33379   { (case "(($ac_try" in
33380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381   *) ac_try_echo=$ac_try;;
33382 esac
33383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384   (eval "$ac_try") 2>&5
33385   ac_status=$?
33386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387   (exit $ac_status); }; }; then
33388   ac_cv_func_setpgrp_void=no
33389 else
33390   echo "$as_me: program exited with status $ac_status" >&5
33391 echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394 ( exit $ac_status )
33395 ac_cv_func_setpgrp_void=yes
33396 fi
33397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33398 fi
33399
33400
33401 fi
33402 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
33403 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
33404 if test $ac_cv_func_setpgrp_void = yes; then
33405
33406 cat >>confdefs.h <<\_ACEOF
33407 #define SETPGRP_VOID 1
33408 _ACEOF
33409
33410 fi
33411                       # AC_FUNC_FNMATCH    dnl use local version
33412
33413
33414 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
33415 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
33416 if test "${ac_cv_lib_intl_gettext+set}" = set; then
33417   echo $ECHO_N "(cached) $ECHO_C" >&6
33418 else
33419   ac_check_lib_save_LIBS=$LIBS
33420 LIBS="-lintl  $LIBS"
33421 cat >conftest.$ac_ext <<_ACEOF
33422 /* confdefs.h.  */
33423 _ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h.  */
33427
33428 /* Override any GCC internal prototype to avoid an error.
33429    Use char because int might match the return type of a GCC
33430    builtin and then its argument prototype would still apply.  */
33431 #ifdef __cplusplus
33432 extern "C"
33433 #endif
33434 char gettext ();
33435 int
33436 main ()
33437 {
33438 return gettext ();
33439   ;
33440   return 0;
33441 }
33442 _ACEOF
33443 rm -f conftest.$ac_objext conftest$ac_exeext
33444 if { (ac_try="$ac_link"
33445 case "(($ac_try" in
33446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447   *) ac_try_echo=$ac_try;;
33448 esac
33449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450   (eval "$ac_link") 2>conftest.er1
33451   ac_status=$?
33452   grep -v '^ *+' conftest.er1 >conftest.err
33453   rm -f conftest.er1
33454   cat conftest.err >&5
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); } && {
33457          test -z "$ac_c_werror_flag" ||
33458          test ! -s conftest.err
33459        } && test -s conftest$ac_exeext &&
33460        $as_test_x conftest$ac_exeext; then
33461   ac_cv_lib_intl_gettext=yes
33462 else
33463   echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33465
33466         ac_cv_lib_intl_gettext=no
33467 fi
33468
33469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33470       conftest$ac_exeext conftest.$ac_ext
33471 LIBS=$ac_check_lib_save_LIBS
33472 fi
33473 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
33474 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
33475 if test $ac_cv_lib_intl_gettext = yes; then
33476   LIBS="$LIBS -lintl"
33477 fi
33478
33479
33480
33481
33482 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
33483 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
33484 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
33485   echo $ECHO_N "(cached) $ECHO_C" >&6
33486 else
33487   ac_check_lib_save_LIBS=$LIBS
33488 LIBS="-lsun  $LIBS"
33489 cat >conftest.$ac_ext <<_ACEOF
33490 /* confdefs.h.  */
33491 _ACEOF
33492 cat confdefs.h >>conftest.$ac_ext
33493 cat >>conftest.$ac_ext <<_ACEOF
33494 /* end confdefs.h.  */
33495
33496 /* Override any GCC internal prototype to avoid an error.
33497    Use char because int might match the return type of a GCC
33498    builtin and then its argument prototype would still apply.  */
33499 #ifdef __cplusplus
33500 extern "C"
33501 #endif
33502 char getpwnam ();
33503 int
33504 main ()
33505 {
33506 return getpwnam ();
33507   ;
33508   return 0;
33509 }
33510 _ACEOF
33511 rm -f conftest.$ac_objext conftest$ac_exeext
33512 if { (ac_try="$ac_link"
33513 case "(($ac_try" in
33514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33515   *) ac_try_echo=$ac_try;;
33516 esac
33517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33518   (eval "$ac_link") 2>conftest.er1
33519   ac_status=$?
33520   grep -v '^ *+' conftest.er1 >conftest.err
33521   rm -f conftest.er1
33522   cat conftest.err >&5
33523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524   (exit $ac_status); } && {
33525          test -z "$ac_c_werror_flag" ||
33526          test ! -s conftest.err
33527        } && test -s conftest$ac_exeext &&
33528        $as_test_x conftest$ac_exeext; then
33529   ac_cv_lib_sun_getpwnam=yes
33530 else
33531   echo "$as_me: failed program was:" >&5
33532 sed 's/^/| /' conftest.$ac_ext >&5
33533
33534         ac_cv_lib_sun_getpwnam=no
33535 fi
33536
33537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33538       conftest$ac_exeext conftest.$ac_ext
33539 LIBS=$ac_check_lib_save_LIBS
33540 fi
33541 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
33542 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
33543 if test $ac_cv_lib_sun_getpwnam = yes; then
33544   cat >>confdefs.h <<_ACEOF
33545 #define HAVE_LIBSUN 1
33546 _ACEOF
33547
33548   LIBS="-lsun $LIBS"
33549
33550 fi
33551
33552
33553
33554 for ac_header in zlib.h
33555 do
33556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33558   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33561   echo $ECHO_N "(cached) $ECHO_C" >&6
33562 fi
33563 ac_res=`eval echo '${'$as_ac_Header'}'`
33564                { echo "$as_me:$LINENO: result: $ac_res" >&5
33565 echo "${ECHO_T}$ac_res" >&6; }
33566 else
33567   # Is the header compilable?
33568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33570 cat >conftest.$ac_ext <<_ACEOF
33571 /* confdefs.h.  */
33572 _ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h.  */
33576 $ac_includes_default
33577 #include <$ac_header>
33578 _ACEOF
33579 rm -f conftest.$ac_objext
33580 if { (ac_try="$ac_compile"
33581 case "(($ac_try" in
33582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583   *) ac_try_echo=$ac_try;;
33584 esac
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586   (eval "$ac_compile") 2>conftest.er1
33587   ac_status=$?
33588   grep -v '^ *+' conftest.er1 >conftest.err
33589   rm -f conftest.er1
33590   cat conftest.err >&5
33591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592   (exit $ac_status); } && {
33593          test -z "$ac_c_werror_flag" ||
33594          test ! -s conftest.err
33595        } && test -s conftest.$ac_objext; then
33596   ac_header_compiler=yes
33597 else
33598   echo "$as_me: failed program was:" >&5
33599 sed 's/^/| /' conftest.$ac_ext >&5
33600
33601         ac_header_compiler=no
33602 fi
33603
33604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33606 echo "${ECHO_T}$ac_header_compiler" >&6; }
33607
33608 # Is the header present?
33609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33611 cat >conftest.$ac_ext <<_ACEOF
33612 /* confdefs.h.  */
33613 _ACEOF
33614 cat confdefs.h >>conftest.$ac_ext
33615 cat >>conftest.$ac_ext <<_ACEOF
33616 /* end confdefs.h.  */
33617 #include <$ac_header>
33618 _ACEOF
33619 if { (ac_try="$ac_cpp conftest.$ac_ext"
33620 case "(($ac_try" in
33621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622   *) ac_try_echo=$ac_try;;
33623 esac
33624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33626   ac_status=$?
33627   grep -v '^ *+' conftest.er1 >conftest.err
33628   rm -f conftest.er1
33629   cat conftest.err >&5
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); } >/dev/null && {
33632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33633          test ! -s conftest.err
33634        }; then
33635   ac_header_preproc=yes
33636 else
33637   echo "$as_me: failed program was:" >&5
33638 sed 's/^/| /' conftest.$ac_ext >&5
33639
33640   ac_header_preproc=no
33641 fi
33642
33643 rm -f conftest.err conftest.$ac_ext
33644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33645 echo "${ECHO_T}$ac_header_preproc" >&6; }
33646
33647 # So?  What about this header?
33648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33649   yes:no: )
33650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33654     ac_header_preproc=yes
33655     ;;
33656   no:yes:* )
33657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33669
33670     ;;
33671 esac
33672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33675   echo $ECHO_N "(cached) $ECHO_C" >&6
33676 else
33677   eval "$as_ac_Header=\$ac_header_preproc"
33678 fi
33679 ac_res=`eval echo '${'$as_ac_Header'}'`
33680                { echo "$as_me:$LINENO: result: $ac_res" >&5
33681 echo "${ECHO_T}$ac_res" >&6; }
33682
33683 fi
33684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33685   cat >>confdefs.h <<_ACEOF
33686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33687 _ACEOF
33688
33689 fi
33690
33691 done
33692
33693 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33694 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33695 if test "${ac_cv_lib_z_deflate+set}" = set; then
33696   echo $ECHO_N "(cached) $ECHO_C" >&6
33697 else
33698   ac_check_lib_save_LIBS=$LIBS
33699 LIBS="-lz  $LIBS"
33700 cat >conftest.$ac_ext <<_ACEOF
33701 /* confdefs.h.  */
33702 _ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h.  */
33706
33707 /* Override any GCC internal prototype to avoid an error.
33708    Use char because int might match the return type of a GCC
33709    builtin and then its argument prototype would still apply.  */
33710 #ifdef __cplusplus
33711 extern "C"
33712 #endif
33713 char deflate ();
33714 int
33715 main ()
33716 {
33717 return deflate ();
33718   ;
33719   return 0;
33720 }
33721 _ACEOF
33722 rm -f conftest.$ac_objext conftest$ac_exeext
33723 if { (ac_try="$ac_link"
33724 case "(($ac_try" in
33725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726   *) ac_try_echo=$ac_try;;
33727 esac
33728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33729   (eval "$ac_link") 2>conftest.er1
33730   ac_status=$?
33731   grep -v '^ *+' conftest.er1 >conftest.err
33732   rm -f conftest.er1
33733   cat conftest.err >&5
33734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735   (exit $ac_status); } && {
33736          test -z "$ac_c_werror_flag" ||
33737          test ! -s conftest.err
33738        } && test -s conftest$ac_exeext &&
33739        $as_test_x conftest$ac_exeext; then
33740   ac_cv_lib_z_deflate=yes
33741 else
33742   echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33744
33745         ac_cv_lib_z_deflate=no
33746 fi
33747
33748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33749       conftest$ac_exeext conftest.$ac_ext
33750 LIBS=$ac_check_lib_save_LIBS
33751 fi
33752 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33753 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33754 if test $ac_cv_lib_z_deflate = yes; then
33755   FDLIBS="-lz"
33756 fi
33757
33758 have_zlib=no
33759 if test x$FDLIBS = x-lz; then
33760   cat >>confdefs.h <<\_ACEOF
33761 #define HAVE_LIBZ 1
33762 _ACEOF
33763
33764   have_zlib=yes
33765 fi
33766
33767 #
33768 # Check for ACL libraries
33769 #
33770 have_acl=no
33771 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33772   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33773 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33774 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33775   echo $ECHO_N "(cached) $ECHO_C" >&6
33776 fi
33777 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33778 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33779 else
33780   # Is the header compilable?
33781 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33782 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33783 cat >conftest.$ac_ext <<_ACEOF
33784 /* confdefs.h.  */
33785 _ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h.  */
33789 $ac_includes_default
33790 #include <sys/acl.h>
33791 _ACEOF
33792 rm -f conftest.$ac_objext
33793 if { (ac_try="$ac_compile"
33794 case "(($ac_try" in
33795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796   *) ac_try_echo=$ac_try;;
33797 esac
33798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799   (eval "$ac_compile") 2>conftest.er1
33800   ac_status=$?
33801   grep -v '^ *+' conftest.er1 >conftest.err
33802   rm -f conftest.er1
33803   cat conftest.err >&5
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); } && {
33806          test -z "$ac_c_werror_flag" ||
33807          test ! -s conftest.err
33808        } && test -s conftest.$ac_objext; then
33809   ac_header_compiler=yes
33810 else
33811   echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33813
33814         ac_header_compiler=no
33815 fi
33816
33817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33819 echo "${ECHO_T}$ac_header_compiler" >&6; }
33820
33821 # Is the header present?
33822 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33823 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33824 cat >conftest.$ac_ext <<_ACEOF
33825 /* confdefs.h.  */
33826 _ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h.  */
33830 #include <sys/acl.h>
33831 _ACEOF
33832 if { (ac_try="$ac_cpp conftest.$ac_ext"
33833 case "(($ac_try" in
33834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33835   *) ac_try_echo=$ac_try;;
33836 esac
33837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33839   ac_status=$?
33840   grep -v '^ *+' conftest.er1 >conftest.err
33841   rm -f conftest.er1
33842   cat conftest.err >&5
33843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); } >/dev/null && {
33845          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33846          test ! -s conftest.err
33847        }; then
33848   ac_header_preproc=yes
33849 else
33850   echo "$as_me: failed program was:" >&5
33851 sed 's/^/| /' conftest.$ac_ext >&5
33852
33853   ac_header_preproc=no
33854 fi
33855
33856 rm -f conftest.err conftest.$ac_ext
33857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33858 echo "${ECHO_T}$ac_header_preproc" >&6; }
33859
33860 # So?  What about this header?
33861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33862   yes:no: )
33863     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33864 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33865     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33866 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33867     ac_header_preproc=yes
33868     ;;
33869   no:yes:* )
33870     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33871 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33872     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33873 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33874     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33875 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33876     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33877 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33878     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33879 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33880     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33881 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33882
33883     ;;
33884 esac
33885 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33886 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33887 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33888   echo $ECHO_N "(cached) $ECHO_C" >&6
33889 else
33890   ac_cv_header_sys_acl_h=$ac_header_preproc
33891 fi
33892 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33893 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33894
33895 fi
33896
33897
33898 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33899 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33900 if test "${ac_cv_func_acl_get_file+set}" = set; then
33901   echo $ECHO_N "(cached) $ECHO_C" >&6
33902 else
33903   cat >conftest.$ac_ext <<_ACEOF
33904 /* confdefs.h.  */
33905 _ACEOF
33906 cat confdefs.h >>conftest.$ac_ext
33907 cat >>conftest.$ac_ext <<_ACEOF
33908 /* end confdefs.h.  */
33909 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33911 #define acl_get_file innocuous_acl_get_file
33912
33913 /* System header to define __stub macros and hopefully few prototypes,
33914     which can conflict with char acl_get_file (); below.
33915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33916     <limits.h> exists even on freestanding compilers.  */
33917
33918 #ifdef __STDC__
33919 # include <limits.h>
33920 #else
33921 # include <assert.h>
33922 #endif
33923
33924 #undef acl_get_file
33925
33926 /* Override any GCC internal prototype to avoid an error.
33927    Use char because int might match the return type of a GCC
33928    builtin and then its argument prototype would still apply.  */
33929 #ifdef __cplusplus
33930 extern "C"
33931 #endif
33932 char acl_get_file ();
33933 /* The GNU C library defines this for functions which it implements
33934     to always fail with ENOSYS.  Some functions are actually named
33935     something starting with __ and the normal name is an alias.  */
33936 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33937 choke me
33938 #endif
33939
33940 int
33941 main ()
33942 {
33943 return acl_get_file ();
33944   ;
33945   return 0;
33946 }
33947 _ACEOF
33948 rm -f conftest.$ac_objext conftest$ac_exeext
33949 if { (ac_try="$ac_link"
33950 case "(($ac_try" in
33951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952   *) ac_try_echo=$ac_try;;
33953 esac
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955   (eval "$ac_link") 2>conftest.er1
33956   ac_status=$?
33957   grep -v '^ *+' conftest.er1 >conftest.err
33958   rm -f conftest.er1
33959   cat conftest.err >&5
33960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961   (exit $ac_status); } && {
33962          test -z "$ac_c_werror_flag" ||
33963          test ! -s conftest.err
33964        } && test -s conftest$ac_exeext &&
33965        $as_test_x conftest$ac_exeext; then
33966   ac_cv_func_acl_get_file=yes
33967 else
33968   echo "$as_me: failed program was:" >&5
33969 sed 's/^/| /' conftest.$ac_ext >&5
33970
33971         ac_cv_func_acl_get_file=no
33972 fi
33973
33974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33975       conftest$ac_exeext conftest.$ac_ext
33976 fi
33977 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33978 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33979 if test $ac_cv_func_acl_get_file = yes; then
33980   have_acl=yes
33981 else
33982   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33983 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33984 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33985   echo $ECHO_N "(cached) $ECHO_C" >&6
33986 else
33987   ac_check_lib_save_LIBS=$LIBS
33988 LIBS="-lacl  $LIBS"
33989 cat >conftest.$ac_ext <<_ACEOF
33990 /* confdefs.h.  */
33991 _ACEOF
33992 cat confdefs.h >>conftest.$ac_ext
33993 cat >>conftest.$ac_ext <<_ACEOF
33994 /* end confdefs.h.  */
33995
33996 /* Override any GCC internal prototype to avoid an error.
33997    Use char because int might match the return type of a GCC
33998    builtin and then its argument prototype would still apply.  */
33999 #ifdef __cplusplus
34000 extern "C"
34001 #endif
34002 char acl_get_file ();
34003 int
34004 main ()
34005 {
34006 return acl_get_file ();
34007   ;
34008   return 0;
34009 }
34010 _ACEOF
34011 rm -f conftest.$ac_objext conftest$ac_exeext
34012 if { (ac_try="$ac_link"
34013 case "(($ac_try" in
34014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34015   *) ac_try_echo=$ac_try;;
34016 esac
34017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34018   (eval "$ac_link") 2>conftest.er1
34019   ac_status=$?
34020   grep -v '^ *+' conftest.er1 >conftest.err
34021   rm -f conftest.er1
34022   cat conftest.err >&5
34023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024   (exit $ac_status); } && {
34025          test -z "$ac_c_werror_flag" ||
34026          test ! -s conftest.err
34027        } && test -s conftest$ac_exeext &&
34028        $as_test_x conftest$ac_exeext; then
34029   ac_cv_lib_acl_acl_get_file=yes
34030 else
34031   echo "$as_me: failed program was:" >&5
34032 sed 's/^/| /' conftest.$ac_ext >&5
34033
34034         ac_cv_lib_acl_acl_get_file=no
34035 fi
34036
34037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34038       conftest$ac_exeext conftest.$ac_ext
34039 LIBS=$ac_check_lib_save_LIBS
34040 fi
34041 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
34042 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
34043 if test $ac_cv_lib_acl_acl_get_file = yes; then
34044   have_acl=yes; FDLIBS="-lacl $FDLIBS"
34045 else
34046   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
34047 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
34048 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
34049   echo $ECHO_N "(cached) $ECHO_C" >&6
34050 else
34051   ac_check_lib_save_LIBS=$LIBS
34052 LIBS="-lsec  $LIBS"
34053 cat >conftest.$ac_ext <<_ACEOF
34054 /* confdefs.h.  */
34055 _ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h.  */
34059
34060 /* Override any GCC internal prototype to avoid an error.
34061    Use char because int might match the return type of a GCC
34062    builtin and then its argument prototype would still apply.  */
34063 #ifdef __cplusplus
34064 extern "C"
34065 #endif
34066 char acltotext ();
34067 int
34068 main ()
34069 {
34070 return acltotext ();
34071   ;
34072   return 0;
34073 }
34074 _ACEOF
34075 rm -f conftest.$ac_objext conftest$ac_exeext
34076 if { (ac_try="$ac_link"
34077 case "(($ac_try" in
34078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34079   *) ac_try_echo=$ac_try;;
34080 esac
34081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34082   (eval "$ac_link") 2>conftest.er1
34083   ac_status=$?
34084   grep -v '^ *+' conftest.er1 >conftest.err
34085   rm -f conftest.er1
34086   cat conftest.err >&5
34087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088   (exit $ac_status); } && {
34089          test -z "$ac_c_werror_flag" ||
34090          test ! -s conftest.err
34091        } && test -s conftest$ac_exeext &&
34092        $as_test_x conftest$ac_exeext; then
34093   ac_cv_lib_sec_acltotext=yes
34094 else
34095   echo "$as_me: failed program was:" >&5
34096 sed 's/^/| /' conftest.$ac_ext >&5
34097
34098         ac_cv_lib_sec_acltotext=no
34099 fi
34100
34101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34102       conftest$ac_exeext conftest.$ac_ext
34103 LIBS=$ac_check_lib_save_LIBS
34104 fi
34105 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
34106 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
34107 if test $ac_cv_lib_sec_acltotext = yes; then
34108   have_acl=yes; FDLIBS="-lsec $FDLIBS"
34109 fi
34110
34111
34112 fi
34113
34114
34115 fi
34116
34117 if test $have_acl = yes; then
34118    cat >>confdefs.h <<\_ACEOF
34119 #define HAVE_ACL 1
34120 _ACEOF
34121
34122 fi
34123
34124 PTHREAD_LIB=""
34125 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
34126 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
34127 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
34128   echo $ECHO_N "(cached) $ECHO_C" >&6
34129 else
34130   ac_check_lib_save_LIBS=$LIBS
34131 LIBS="-lpthread  $LIBS"
34132 cat >conftest.$ac_ext <<_ACEOF
34133 /* confdefs.h.  */
34134 _ACEOF
34135 cat confdefs.h >>conftest.$ac_ext
34136 cat >>conftest.$ac_ext <<_ACEOF
34137 /* end confdefs.h.  */
34138
34139 /* Override any GCC internal prototype to avoid an error.
34140    Use char because int might match the return type of a GCC
34141    builtin and then its argument prototype would still apply.  */
34142 #ifdef __cplusplus
34143 extern "C"
34144 #endif
34145 char pthread_create ();
34146 int
34147 main ()
34148 {
34149 return pthread_create ();
34150   ;
34151   return 0;
34152 }
34153 _ACEOF
34154 rm -f conftest.$ac_objext conftest$ac_exeext
34155 if { (ac_try="$ac_link"
34156 case "(($ac_try" in
34157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34158   *) ac_try_echo=$ac_try;;
34159 esac
34160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34161   (eval "$ac_link") 2>conftest.er1
34162   ac_status=$?
34163   grep -v '^ *+' conftest.er1 >conftest.err
34164   rm -f conftest.er1
34165   cat conftest.err >&5
34166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167   (exit $ac_status); } && {
34168          test -z "$ac_c_werror_flag" ||
34169          test ! -s conftest.err
34170        } && test -s conftest$ac_exeext &&
34171        $as_test_x conftest$ac_exeext; then
34172   ac_cv_lib_pthread_pthread_create=yes
34173 else
34174   echo "$as_me: failed program was:" >&5
34175 sed 's/^/| /' conftest.$ac_ext >&5
34176
34177         ac_cv_lib_pthread_pthread_create=no
34178 fi
34179
34180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34181       conftest$ac_exeext conftest.$ac_ext
34182 LIBS=$ac_check_lib_save_LIBS
34183 fi
34184 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
34185 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
34186 if test $ac_cv_lib_pthread_pthread_create = yes; then
34187   PTHREAD_LIB="-lpthread"
34188 else
34189   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
34190 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
34191 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
34192   echo $ECHO_N "(cached) $ECHO_C" >&6
34193 else
34194   ac_check_lib_save_LIBS=$LIBS
34195 LIBS="-lpthreads  $LIBS"
34196 cat >conftest.$ac_ext <<_ACEOF
34197 /* confdefs.h.  */
34198 _ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h.  */
34202
34203 /* Override any GCC internal prototype to avoid an error.
34204    Use char because int might match the return type of a GCC
34205    builtin and then its argument prototype would still apply.  */
34206 #ifdef __cplusplus
34207 extern "C"
34208 #endif
34209 char pthread_create ();
34210 int
34211 main ()
34212 {
34213 return pthread_create ();
34214   ;
34215   return 0;
34216 }
34217 _ACEOF
34218 rm -f conftest.$ac_objext conftest$ac_exeext
34219 if { (ac_try="$ac_link"
34220 case "(($ac_try" in
34221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222   *) ac_try_echo=$ac_try;;
34223 esac
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225   (eval "$ac_link") 2>conftest.er1
34226   ac_status=$?
34227   grep -v '^ *+' conftest.er1 >conftest.err
34228   rm -f conftest.er1
34229   cat conftest.err >&5
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); } && {
34232          test -z "$ac_c_werror_flag" ||
34233          test ! -s conftest.err
34234        } && test -s conftest$ac_exeext &&
34235        $as_test_x conftest$ac_exeext; then
34236   ac_cv_lib_pthreads_pthread_create=yes
34237 else
34238   echo "$as_me: failed program was:" >&5
34239 sed 's/^/| /' conftest.$ac_ext >&5
34240
34241         ac_cv_lib_pthreads_pthread_create=no
34242 fi
34243
34244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34245       conftest$ac_exeext conftest.$ac_ext
34246 LIBS=$ac_check_lib_save_LIBS
34247 fi
34248 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
34249 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
34250 if test $ac_cv_lib_pthreads_pthread_create = yes; then
34251   PTHREAD_LIB="-lpthreads"
34252 else
34253   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
34254 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
34255 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
34256   echo $ECHO_N "(cached) $ECHO_C" >&6
34257 else
34258   ac_check_lib_save_LIBS=$LIBS
34259 LIBS="-lc_r  $LIBS"
34260 cat >conftest.$ac_ext <<_ACEOF
34261 /* confdefs.h.  */
34262 _ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h.  */
34266
34267 /* Override any GCC internal prototype to avoid an error.
34268    Use char because int might match the return type of a GCC
34269    builtin and then its argument prototype would still apply.  */
34270 #ifdef __cplusplus
34271 extern "C"
34272 #endif
34273 char pthread_create ();
34274 int
34275 main ()
34276 {
34277 return pthread_create ();
34278   ;
34279   return 0;
34280 }
34281 _ACEOF
34282 rm -f conftest.$ac_objext conftest$ac_exeext
34283 if { (ac_try="$ac_link"
34284 case "(($ac_try" in
34285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286   *) ac_try_echo=$ac_try;;
34287 esac
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289   (eval "$ac_link") 2>conftest.er1
34290   ac_status=$?
34291   grep -v '^ *+' conftest.er1 >conftest.err
34292   rm -f conftest.er1
34293   cat conftest.err >&5
34294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295   (exit $ac_status); } && {
34296          test -z "$ac_c_werror_flag" ||
34297          test ! -s conftest.err
34298        } && test -s conftest$ac_exeext &&
34299        $as_test_x conftest$ac_exeext; then
34300   ac_cv_lib_c_r_pthread_create=yes
34301 else
34302   echo "$as_me: failed program was:" >&5
34303 sed 's/^/| /' conftest.$ac_ext >&5
34304
34305         ac_cv_lib_c_r_pthread_create=no
34306 fi
34307
34308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34309       conftest$ac_exeext conftest.$ac_ext
34310 LIBS=$ac_check_lib_save_LIBS
34311 fi
34312 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
34313 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
34314 if test $ac_cv_lib_c_r_pthread_create = yes; then
34315   PTHREAD_LIB="-lc_r"
34316 else
34317   { echo "$as_me:$LINENO: checking for pthread_create" >&5
34318 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
34319 if test "${ac_cv_func_pthread_create+set}" = set; then
34320   echo $ECHO_N "(cached) $ECHO_C" >&6
34321 else
34322   cat >conftest.$ac_ext <<_ACEOF
34323 /* confdefs.h.  */
34324 _ACEOF
34325 cat confdefs.h >>conftest.$ac_ext
34326 cat >>conftest.$ac_ext <<_ACEOF
34327 /* end confdefs.h.  */
34328 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
34329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34330 #define pthread_create innocuous_pthread_create
34331
34332 /* System header to define __stub macros and hopefully few prototypes,
34333     which can conflict with char pthread_create (); below.
34334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34335     <limits.h> exists even on freestanding compilers.  */
34336
34337 #ifdef __STDC__
34338 # include <limits.h>
34339 #else
34340 # include <assert.h>
34341 #endif
34342
34343 #undef pthread_create
34344
34345 /* Override any GCC internal prototype to avoid an error.
34346    Use char because int might match the return type of a GCC
34347    builtin and then its argument prototype would still apply.  */
34348 #ifdef __cplusplus
34349 extern "C"
34350 #endif
34351 char pthread_create ();
34352 /* The GNU C library defines this for functions which it implements
34353     to always fail with ENOSYS.  Some functions are actually named
34354     something starting with __ and the normal name is an alias.  */
34355 #if defined __stub_pthread_create || defined __stub___pthread_create
34356 choke me
34357 #endif
34358
34359 int
34360 main ()
34361 {
34362 return pthread_create ();
34363   ;
34364   return 0;
34365 }
34366 _ACEOF
34367 rm -f conftest.$ac_objext conftest$ac_exeext
34368 if { (ac_try="$ac_link"
34369 case "(($ac_try" in
34370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34371   *) ac_try_echo=$ac_try;;
34372 esac
34373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34374   (eval "$ac_link") 2>conftest.er1
34375   ac_status=$?
34376   grep -v '^ *+' conftest.er1 >conftest.err
34377   rm -f conftest.er1
34378   cat conftest.err >&5
34379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380   (exit $ac_status); } && {
34381          test -z "$ac_c_werror_flag" ||
34382          test ! -s conftest.err
34383        } && test -s conftest$ac_exeext &&
34384        $as_test_x conftest$ac_exeext; then
34385   ac_cv_func_pthread_create=yes
34386 else
34387   echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34389
34390         ac_cv_func_pthread_create=no
34391 fi
34392
34393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34394       conftest$ac_exeext conftest.$ac_ext
34395 fi
34396 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
34397 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
34398
34399
34400 fi
34401
34402
34403 fi
34404
34405
34406 fi
34407
34408
34409
34410 cat >>confdefs.h <<\_ACEOF
34411 #define FDLIBS 1
34412 _ACEOF
34413
34414
34415
34416 CFLAGS=${CFLAGS--O}
34417
34418 if test x$have_gcc = xyes ; then
34419    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34420    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
34421 fi
34422 LDFLAGS=${LDFLAGS--O}
34423 DB_LIBS="${SQL_LFLAGS}"
34424 CPPFLAGS="$CPPFLAGS"
34425 CFLAGS="$CFLAGS"
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442 OBJLIST=
34443
34444
34445 lld="lld"
34446 llu="llu"
34447
34448 WCFLAGS=
34449 WLDFLAGS=
34450
34451 #
34452 # Finally we set appropriate distribution specific
34453 #  variables and defaults
34454 #
34455 # PFILES are platform specific files
34456 PFILES="platforms/Makefile"
34457 PSCMD="ps -e"
34458 WIN32=
34459 MACOSX=
34460 hostname=`uname -n | cut -d '.' -f 1`
34461 if test x${hostname} = x ; then
34462   hostname="localhost"
34463 fi
34464 case "$DISTNAME" in
34465 aix)
34466         DISTVER=`uname -r`
34467         PSCMD="ps -e -o pid,comm"
34468         PFILES="${PFILES} \
34469            platforms/aix/Makefile"
34470         TAPEDRIVE="/dev/rmt0.1"
34471   ;;
34472 alpha)
34473         DISTVER=`uname -r`
34474         PTHREAD_LIB="-lpthread -lexc"
34475         if test "${CC}" = "gcc" ; then
34476            lld="lld"
34477            llu="llu"
34478         else
34479            lld="ld"
34480            llu="lu"
34481         fi
34482         TAPEDRIVE="/dev/nrmt0"
34483   ;;
34484 bsdi)
34485         DISTVER=`uname -a |awk '{print $3}'`
34486         TAPEDRIVE="/dev/nrmt0"
34487         PTHREAD_LIB="-pthread"
34488         CFLAGS="${CFLAGS} -pthread"
34489         PSCMD="ps -ax -o pid,command"
34490         lld="qd"
34491         llu="qu"
34492         PFILES="${PFILES} \
34493             platforms/bsdi/Makefile \
34494             platforms/bsdi/bacula-fd \
34495             platforms/bsdi/bacula-sd \
34496             platforms/bsdi/bacula-dir"
34497         largefile_support="yes"
34498   ;;
34499 cygwin)
34500         DISTVER=`uname -a |awk '{print $3}'`
34501         TAPEDRIVE="/dev/nrst0"
34502         WIN32=win32
34503         WCFLAGS="-mwindows"
34504         WLDFLAGS="-mwindows"
34505   ;;
34506 darwin)
34507         DISTVER=`uname -r`
34508         TAPEDRIVE="/dev/nst0"
34509         PSCMD="ps -e -o pid,command"
34510         MACOSX=macosx
34511         PFILES="${PFILES} \
34512            platforms/darwin/Makefile"
34513   ;;
34514 debian)
34515         if `grep -q ubuntu /etc/apt/sources.list`; then
34516            DISTNAME="ubuntu"
34517         fi
34518         DISTVER=`cat /etc/debian_version`
34519         if test -f /etc/lsb-release ; then
34520            . /etc/lsb-release
34521            if test "x$DISTRIB_ID" != "x" ; then
34522               DISTNAME=$DISTRIB_ID
34523            fi
34524            if test "x$DISTRIB_RELEASE" != "x" ; then
34525               DISTVER=$DISTRIB_RELEASE
34526            fi
34527         fi
34528         if test "$DISTNAME" = "Ubuntu" ; then
34529            DISTNAME="ubuntu"
34530         fi
34531         TAPEDRIVE="/dev/nst0"
34532         PSCMD="ps -e -o pid,command"
34533         if test "$DISTNAME" = "ubuntu" ; then
34534            PFILES="${PFILES} \
34535               platforms/ubuntu/Makefile \
34536               platforms/ubuntu/bacula-fd \
34537               platforms/ubuntu/bacula-sd \
34538               platforms/ubuntu/bacula-dir"
34539         else
34540            PFILES="${PFILES} \
34541               platforms/debian/Makefile \
34542               platforms/debian/bacula-fd \
34543               platforms/debian/bacula-sd \
34544               platforms/debian/bacula-dir"
34545         fi
34546   ;;
34547 freebsd)
34548         DISTVER=`uname -a |awk '{print $3}'`
34549         VER=`echo $DISTVER | cut -c 1`
34550         if test x$VER = x4 ; then
34551            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34552            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34553         fi
34554         lld="qd"
34555         llu="qu"
34556         TAPEDRIVE="/dev/nrsa0"
34557         PSCMD="ps -ax -o pid,command"
34558         PFILES="${PFILES} \
34559             platforms/freebsd/Makefile \
34560             platforms/freebsd/bacula-fd \
34561             platforms/freebsd/bacula-sd \
34562             platforms/freebsd/bacula-dir"
34563         largefile_support="yes"
34564   ;;
34565 hpux)
34566         PSCMD="UNIX95=1; ps -e -o pid,comm"
34567         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34568         DISTVER=`uname -r`
34569         TAPEDRIVE="/dev/rmt/0hnb"
34570         PTHREAD_LIB="-lpthread"
34571         cat >>confdefs.h <<\_ACEOF
34572 #define _INCLUDE_LONGLONG 1
34573 _ACEOF
34574
34575   ;;
34576 irix)
34577         DISTVER=`uname -r`
34578         TAPEDRIVE="/dev/rmt/0cbn"
34579         PSCMD="ps -e -o pid,comm"
34580         PFILES="${PFILES} \
34581             platforms/irix/Makefile \
34582             platforms/irix/bacula-fd \
34583             platforms/irix/bacula-sd \
34584             platforms/irix/bacula-dir"
34585   ;;
34586 netbsd)
34587         DISTVER=`uname -a |awk '{print $3}'`
34588         lld="qd"
34589         llu="qu"
34590         TAPEDRIVE="/dev/nrst0"
34591         PSCMD="ps -ax -o pid,command"
34592         PTHREAD_LIB="-pthread"
34593         CFLAGS="${CFLAGS} -pthread"
34594   ;;
34595 openbsd)
34596         DISTVER=`uname -a |awk '{print $3}'`
34597         lld="qd"
34598         llu="qu"
34599         TAPEDRIVE="/dev/nrst0"
34600         PSCMD="ps -ax -o pid,command"
34601         PTHREAD_LIB="-pthread"
34602         CFLAGS="${CFLAGS} -pthread"
34603         PFILES="${PFILES} \
34604             platforms/openbsd/Makefile \
34605             platforms/openbsd/bacula-fd \
34606             platforms/openbsd/bacula-sd \
34607             platforms/openbsd/bacula-dir"
34608   ;;
34609 redhat)
34610         if test -f /etc/whitebox-release ; then
34611            f=/etc/whitebox-release
34612         else
34613            f=/etc/redhat-release
34614         fi
34615         if test `cat $f | grep release |\
34616                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34617            DISTVER="Enterprise "`cat $f | grep release |\
34618                     cut -f 6 -d ' '`
34619         else
34620             DISTVER=`cat /etc/redhat-release | grep release |\
34621                      cut -f 5 -d ' '`
34622         fi
34623         TAPEDRIVE="/dev/nst0"
34624         PSCMD="ps -e -o pid,command"
34625         PFILES="${PFILES} \
34626             platforms/redhat/Makefile \
34627             platforms/redhat/bacula-fd \
34628             platforms/redhat/bacula-sd \
34629             platforms/redhat/bacula-dir \
34630             platforms/redhat/bacula.spec \
34631             "
34632   ;;
34633 mandrake)
34634         DISTVER=`cat /etc/mandrake-release | grep release |\
34635            cut -f 5 -d ' '`
34636         TAPEDRIVE="/dev/nst0"
34637         PSCMD="ps -e -o pid,command"
34638         PFILES="${PFILES} \
34639             platforms/mandrake/Makefile \
34640             platforms/mandrake/bacula-fd \
34641             platforms/mandrake/bacula-sd \
34642             platforms/mandrake/bacula-dir \
34643             platforms/mandrake/bacula.spec \
34644             "
34645   ;;
34646 gentoo)
34647         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34648         TAPEDRIVE="/dev/nst0"
34649         PSCMD="ps -e -o pid,command"
34650         PFILES="${PFILES} \
34651             platforms/gentoo/Makefile \
34652          platforms/gentoo/bacula-init \
34653             platforms/gentoo/bacula-fd \
34654             platforms/gentoo/bacula-sd \
34655             platforms/gentoo/bacula-dir"
34656   ;;
34657 slackware)
34658         DISTVER=`cat /etc/slackware-version`
34659         TAPEDRIVE="/dev/nst0"
34660         PSCMD="ps -e -o pid,command"
34661         PFILES="${PFILES} \
34662             platforms/slackware/Makefile \
34663             platforms/slackware/rc.bacula-fd \
34664             platforms/slackware/rc.bacula-sd \
34665             platforms/slackware/rc.bacula-dir\
34666             platforms/slackware/functions.bacula"
34667   ;;
34668 solaris)
34669         DISTVER=`uname -r`
34670         TAPEDRIVE="/dev/rmt/0cbn"
34671         PSCMD="ps -e -o pid,comm"
34672         PFILES="${PFILES} \
34673             platforms/solaris/Makefile \
34674             platforms/solaris/bacula-fd \
34675             platforms/solaris/bacula-sd \
34676             platforms/solaris/bacula-dir"
34677         if test x$DISTVER = x5.6 ; then
34678             cat >>confdefs.h <<\_ACEOF
34679 #define HAVE_OLD_SOCKOPT 1
34680 _ACEOF
34681
34682         fi
34683         LIBS="$LIBS -lresolv"
34684   ;;
34685 suse)
34686         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34687             cut -f 3 -d ' '`
34688         TAPEDRIVE="/dev/nst0"
34689         PSCMD="ps -e -o pid,command"
34690         PFILES="${PFILES} \
34691             platforms/suse/Makefile \
34692             platforms/suse/bacula-fd \
34693             platforms/suse/bacula-sd \
34694             platforms/suse/bacula-dir \
34695             platforms/suse/bacula \
34696             platforms/suse/bacula.spec"
34697   ;;
34698 suse5)
34699         DISTNAME=suse
34700         DISTVER=5.x
34701         TAPEDRIVE="/dev/nst0"
34702         PSCMD="ps -e -o pid,command"
34703         PFILES="${PFILES} \
34704             platforms/suse/Makefile \
34705             platforms/suse/bacula-fd \
34706             platforms/suse/bacula-sd \
34707             platforms/suse/bacula-dir"
34708   ;;
34709 unknown)
34710         DISTVER=unknown
34711         TAPEDRIVE="/dev/nst0"
34712   ;;
34713 *)
34714   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34715   ;;
34716 esac
34717
34718
34719
34720 LIBS="$PTHREAD_LIB $LIBS"
34721
34722 cat >>confdefs.h <<_ACEOF
34723 #define lld "$lld"
34724 _ACEOF
34725
34726 cat >>confdefs.h <<_ACEOF
34727 #define llu "$llu"
34728 _ACEOF
34729
34730
34731
34732
34733
34734
34735
34736
34737 MCOMMON=./autoconf/Make.common
34738
34739
34740 if test "x${subsysdir}" = "x${sbindir}" ; then
34741    echo " "
34742    echo " "
34743    echo "You have set both --sbindir and --with-subsys-dir"
34744    echo "  equal to: ${subsysdir} "
34745    echo "This is not permitted. Please reconfigure."
34746    echo " "
34747    echo "Aborting configuration ..."
34748    echo " "
34749    echo " "
34750    exit 1
34751 fi
34752
34753 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
34754
34755 ac_config_commands="$ac_config_commands default"
34756
34757 cat >confcache <<\_ACEOF
34758 # This file is a shell script that caches the results of configure
34759 # tests run on this system so they can be shared between configure
34760 # scripts and configure runs, see configure's option --config-cache.
34761 # It is not useful on other systems.  If it contains results you don't
34762 # want to keep, you may remove or edit it.
34763 #
34764 # config.status only pays attention to the cache file if you give it
34765 # the --recheck option to rerun configure.
34766 #
34767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34769 # following values.
34770
34771 _ACEOF
34772
34773 # The following way of writing the cache mishandles newlines in values,
34774 # but we know of no workaround that is simple, portable, and efficient.
34775 # So, we kill variables containing newlines.
34776 # Ultrix sh set writes to stderr and can't be redirected directly,
34777 # and sets the high bit in the cache file unless we assign to the vars.
34778 (
34779   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34780     eval ac_val=\$$ac_var
34781     case $ac_val in #(
34782     *${as_nl}*)
34783       case $ac_var in #(
34784       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34785 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34786       esac
34787       case $ac_var in #(
34788       _ | IFS | as_nl) ;; #(
34789       *) $as_unset $ac_var ;;
34790       esac ;;
34791     esac
34792   done
34793
34794   (set) 2>&1 |
34795     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34796     *${as_nl}ac_space=\ *)
34797       # `set' does not quote correctly, so add quotes (double-quote
34798       # substitution turns \\\\ into \\, and sed turns \\ into \).
34799       sed -n \
34800         "s/'/'\\\\''/g;
34801           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34802       ;; #(
34803     *)
34804       # `set' quotes correctly as required by POSIX, so do not add quotes.
34805       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34806       ;;
34807     esac |
34808     sort
34809 ) |
34810   sed '
34811      /^ac_cv_env_/b end
34812      t clear
34813      :clear
34814      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34815      t end
34816      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34817      :end' >>confcache
34818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34819   if test -w "$cache_file"; then
34820     test "x$cache_file" != "x/dev/null" &&
34821       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34822 echo "$as_me: updating cache $cache_file" >&6;}
34823     cat confcache >$cache_file
34824   else
34825     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34826 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34827   fi
34828 fi
34829 rm -f confcache
34830
34831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34832 # Let make expand exec_prefix.
34833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34834
34835 DEFS=-DHAVE_CONFIG_H
34836
34837 ac_libobjs=
34838 ac_ltlibobjs=
34839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34840   # 1. Remove the extension, and $U if already installed.
34841   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34842   ac_i=`echo "$ac_i" | sed "$ac_script"`
34843   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34844   #    will be set to the directory where LIBOBJS objects are built.
34845   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34846   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34847 done
34848 LIBOBJS=$ac_libobjs
34849
34850 LTLIBOBJS=$ac_ltlibobjs
34851
34852
34853
34854 : ${CONFIG_STATUS=./config.status}
34855 ac_clean_files_save=$ac_clean_files
34856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34857 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34858 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34859 cat >$CONFIG_STATUS <<_ACEOF
34860 #! $SHELL
34861 # Generated by $as_me.
34862 # Run this file to recreate the current configuration.
34863 # Compiler output produced by configure, useful for debugging
34864 # configure, is in config.log if it exists.
34865
34866 debug=false
34867 ac_cs_recheck=false
34868 ac_cs_silent=false
34869 SHELL=\${CONFIG_SHELL-$SHELL}
34870 _ACEOF
34871
34872 cat >>$CONFIG_STATUS <<\_ACEOF
34873 ## --------------------- ##
34874 ## M4sh Initialization.  ##
34875 ## --------------------- ##
34876
34877 # Be more Bourne compatible
34878 DUALCASE=1; export DUALCASE # for MKS sh
34879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34880   emulate sh
34881   NULLCMD=:
34882   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34883   # is contrary to our usage.  Disable this feature.
34884   alias -g '${1+"$@"}'='"$@"'
34885   setopt NO_GLOB_SUBST
34886 else
34887   case `(set -o) 2>/dev/null` in
34888   *posix*) set -o posix ;;
34889 esac
34890
34891 fi
34892
34893
34894
34895
34896 # PATH needs CR
34897 # Avoid depending upon Character Ranges.
34898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34901 as_cr_digits='0123456789'
34902 as_cr_alnum=$as_cr_Letters$as_cr_digits
34903
34904 # The user is always right.
34905 if test "${PATH_SEPARATOR+set}" != set; then
34906   echo "#! /bin/sh" >conf$$.sh
34907   echo  "exit 0"   >>conf$$.sh
34908   chmod +x conf$$.sh
34909   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34910     PATH_SEPARATOR=';'
34911   else
34912     PATH_SEPARATOR=:
34913   fi
34914   rm -f conf$$.sh
34915 fi
34916
34917 # Support unset when possible.
34918 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34919   as_unset=unset
34920 else
34921   as_unset=false
34922 fi
34923
34924
34925 # IFS
34926 # We need space, tab and new line, in precisely that order.  Quoting is
34927 # there to prevent editors from complaining about space-tab.
34928 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34929 # splitting by setting IFS to empty value.)
34930 as_nl='
34931 '
34932 IFS=" ""        $as_nl"
34933
34934 # Find who we are.  Look in the path if we contain no directory separator.
34935 case $0 in
34936   *[\\/]* ) as_myself=$0 ;;
34937   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34938 for as_dir in $PATH
34939 do
34940   IFS=$as_save_IFS
34941   test -z "$as_dir" && as_dir=.
34942   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34943 done
34944 IFS=$as_save_IFS
34945
34946      ;;
34947 esac
34948 # We did not find ourselves, most probably we were run as `sh COMMAND'
34949 # in which case we are not to be found in the path.
34950 if test "x$as_myself" = x; then
34951   as_myself=$0
34952 fi
34953 if test ! -f "$as_myself"; then
34954   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34955   { (exit 1); exit 1; }
34956 fi
34957
34958 # Work around bugs in pre-3.0 UWIN ksh.
34959 for as_var in ENV MAIL MAILPATH
34960 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34961 done
34962 PS1='$ '
34963 PS2='> '
34964 PS4='+ '
34965
34966 # NLS nuisances.
34967 for as_var in \
34968   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34969   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34970   LC_TELEPHONE LC_TIME
34971 do
34972   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34973     eval $as_var=C; export $as_var
34974   else
34975     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34976   fi
34977 done
34978
34979 # Required to use basename.
34980 if expr a : '\(a\)' >/dev/null 2>&1 &&
34981    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34982   as_expr=expr
34983 else
34984   as_expr=false
34985 fi
34986
34987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34988   as_basename=basename
34989 else
34990   as_basename=false
34991 fi
34992
34993
34994 # Name of the executable.
34995 as_me=`$as_basename -- "$0" ||
34996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34997          X"$0" : 'X\(//\)$' \| \
34998          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34999 echo X/"$0" |
35000     sed '/^.*\/\([^/][^/]*\)\/*$/{
35001             s//\1/
35002             q
35003           }
35004           /^X\/\(\/\/\)$/{
35005             s//\1/
35006             q
35007           }
35008           /^X\/\(\/\).*/{
35009             s//\1/
35010             q
35011           }
35012           s/.*/./; q'`
35013
35014 # CDPATH.
35015 $as_unset CDPATH
35016
35017
35018
35019   as_lineno_1=$LINENO
35020   as_lineno_2=$LINENO
35021   test "x$as_lineno_1" != "x$as_lineno_2" &&
35022   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35023
35024   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35025   # uniformly replaced by the line number.  The first 'sed' inserts a
35026   # line-number line after each line using $LINENO; the second 'sed'
35027   # does the real work.  The second script uses 'N' to pair each
35028   # line-number line with the line containing $LINENO, and appends
35029   # trailing '-' during substitution so that $LINENO is not a special
35030   # case at line end.
35031   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35032   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35033   # E. McMahon (1931-1989) for sed's syntax.  :-)
35034   sed -n '
35035     p
35036     /[$]LINENO/=
35037   ' <$as_myself |
35038     sed '
35039       s/[$]LINENO.*/&-/
35040       t lineno
35041       b
35042       :lineno
35043       N
35044       :loop
35045       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35046       t loop
35047       s/-\n.*//
35048     ' >$as_me.lineno &&
35049   chmod +x "$as_me.lineno" ||
35050     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35051    { (exit 1); exit 1; }; }
35052
35053   # Don't try to exec as it changes $[0], causing all sort of problems
35054   # (the dirname of $[0] is not the place where we might find the
35055   # original and so on.  Autoconf is especially sensitive to this).
35056   . "./$as_me.lineno"
35057   # Exit status is that of the last command.
35058   exit
35059 }
35060
35061
35062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35063   as_dirname=dirname
35064 else
35065   as_dirname=false
35066 fi
35067
35068 ECHO_C= ECHO_N= ECHO_T=
35069 case `echo -n x` in
35070 -n*)
35071   case `echo 'x\c'` in
35072   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35073   *)   ECHO_C='\c';;
35074   esac;;
35075 *)
35076   ECHO_N='-n';;
35077 esac
35078
35079 if expr a : '\(a\)' >/dev/null 2>&1 &&
35080    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35081   as_expr=expr
35082 else
35083   as_expr=false
35084 fi
35085
35086 rm -f conf$$ conf$$.exe conf$$.file
35087 if test -d conf$$.dir; then
35088   rm -f conf$$.dir/conf$$.file
35089 else
35090   rm -f conf$$.dir
35091   mkdir conf$$.dir
35092 fi
35093 echo >conf$$.file
35094 if ln -s conf$$.file conf$$ 2>/dev/null; then
35095   as_ln_s='ln -s'
35096   # ... but there are two gotchas:
35097   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35098   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35099   # In both cases, we have to default to `cp -p'.
35100   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35101     as_ln_s='cp -p'
35102 elif ln conf$$.file conf$$ 2>/dev/null; then
35103   as_ln_s=ln
35104 else
35105   as_ln_s='cp -p'
35106 fi
35107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35108 rmdir conf$$.dir 2>/dev/null
35109
35110 if mkdir -p . 2>/dev/null; then
35111   as_mkdir_p=:
35112 else
35113   test -d ./-p && rmdir ./-p
35114   as_mkdir_p=false
35115 fi
35116
35117 if test -x / >/dev/null 2>&1; then
35118   as_test_x='test -x'
35119 else
35120   if ls -dL / >/dev/null 2>&1; then
35121     as_ls_L_option=L
35122   else
35123     as_ls_L_option=
35124   fi
35125   as_test_x='
35126     eval sh -c '\''
35127       if test -d "$1"; then
35128         test -d "$1/.";
35129       else
35130         case $1 in
35131         -*)set "./$1";;
35132         esac;
35133         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35134         ???[sx]*):;;*)false;;esac;fi
35135     '\'' sh
35136   '
35137 fi
35138 as_executable_p=$as_test_x
35139
35140 # Sed expression to map a string onto a valid CPP name.
35141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35142
35143 # Sed expression to map a string onto a valid variable name.
35144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35145
35146
35147 exec 6>&1
35148
35149 # Save the log message, to keep $[0] and so on meaningful, and to
35150 # report actual input values of CONFIG_FILES etc. instead of their
35151 # values after options handling.
35152 ac_log="
35153 This file was extended by $as_me, which was
35154 generated by GNU Autoconf 2.61.  Invocation command line was
35155
35156   CONFIG_FILES    = $CONFIG_FILES
35157   CONFIG_HEADERS  = $CONFIG_HEADERS
35158   CONFIG_LINKS    = $CONFIG_LINKS
35159   CONFIG_COMMANDS = $CONFIG_COMMANDS
35160   $ $0 $@
35161
35162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35163 "
35164
35165 _ACEOF
35166
35167 cat >>$CONFIG_STATUS <<_ACEOF
35168 # Files that config.status was made for.
35169 config_files="$ac_config_files"
35170 config_headers="$ac_config_headers"
35171 config_commands="$ac_config_commands"
35172
35173 _ACEOF
35174
35175 cat >>$CONFIG_STATUS <<\_ACEOF
35176 ac_cs_usage="\
35177 \`$as_me' instantiates files from templates according to the
35178 current configuration.
35179
35180 Usage: $0 [OPTIONS] [FILE]...
35181
35182   -h, --help       print this help, then exit
35183   -V, --version    print version number and configuration settings, then exit
35184   -q, --quiet      do not print progress messages
35185   -d, --debug      don't remove temporary files
35186       --recheck    update $as_me by reconfiguring in the same conditions
35187   --file=FILE[:TEMPLATE]
35188                    instantiate the configuration file FILE
35189   --header=FILE[:TEMPLATE]
35190                    instantiate the configuration header FILE
35191
35192 Configuration files:
35193 $config_files
35194
35195 Configuration headers:
35196 $config_headers
35197
35198 Configuration commands:
35199 $config_commands
35200
35201 Report bugs to <bug-autoconf@gnu.org>."
35202
35203 _ACEOF
35204 cat >>$CONFIG_STATUS <<_ACEOF
35205 ac_cs_version="\\
35206 config.status
35207 configured by $0, generated by GNU Autoconf 2.61,
35208   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35209
35210 Copyright (C) 2006 Free Software Foundation, Inc.
35211 This config.status script is free software; the Free Software Foundation
35212 gives unlimited permission to copy, distribute and modify it."
35213
35214 ac_pwd='$ac_pwd'
35215 srcdir='$srcdir'
35216 INSTALL='$INSTALL'
35217 _ACEOF
35218
35219 cat >>$CONFIG_STATUS <<\_ACEOF
35220 # If no file are specified by the user, then we need to provide default
35221 # value.  By we need to know if files were specified by the user.
35222 ac_need_defaults=:
35223 while test $# != 0
35224 do
35225   case $1 in
35226   --*=*)
35227     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35228     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35229     ac_shift=:
35230     ;;
35231   *)
35232     ac_option=$1
35233     ac_optarg=$2
35234     ac_shift=shift
35235     ;;
35236   esac
35237
35238   case $ac_option in
35239   # Handling of the options.
35240   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35241     ac_cs_recheck=: ;;
35242   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35243     echo "$ac_cs_version"; exit ;;
35244   --debug | --debu | --deb | --de | --d | -d )
35245     debug=: ;;
35246   --file | --fil | --fi | --f )
35247     $ac_shift
35248     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35249     ac_need_defaults=false;;
35250   --header | --heade | --head | --hea )
35251     $ac_shift
35252     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35253     ac_need_defaults=false;;
35254   --he | --h)
35255     # Conflict between --help and --header
35256     { echo "$as_me: error: ambiguous option: $1
35257 Try \`$0 --help' for more information." >&2
35258    { (exit 1); exit 1; }; };;
35259   --help | --hel | -h )
35260     echo "$ac_cs_usage"; exit ;;
35261   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35262   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35263     ac_cs_silent=: ;;
35264
35265   # This is an error.
35266   -*) { echo "$as_me: error: unrecognized option: $1
35267 Try \`$0 --help' for more information." >&2
35268    { (exit 1); exit 1; }; } ;;
35269
35270   *) ac_config_targets="$ac_config_targets $1"
35271      ac_need_defaults=false ;;
35272
35273   esac
35274   shift
35275 done
35276
35277 ac_configure_extra_args=
35278
35279 if $ac_cs_silent; then
35280   exec 6>/dev/null
35281   ac_configure_extra_args="$ac_configure_extra_args --silent"
35282 fi
35283
35284 _ACEOF
35285 cat >>$CONFIG_STATUS <<_ACEOF
35286 if \$ac_cs_recheck; then
35287   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35288   CONFIG_SHELL=$SHELL
35289   export CONFIG_SHELL
35290   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35291 fi
35292
35293 _ACEOF
35294 cat >>$CONFIG_STATUS <<\_ACEOF
35295 exec 5>>config.log
35296 {
35297   echo
35298   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35299 ## Running $as_me. ##
35300 _ASBOX
35301   echo "$ac_log"
35302 } >&5
35303
35304 _ACEOF
35305 cat >>$CONFIG_STATUS <<_ACEOF
35306 #
35307 # INIT-COMMANDS
35308 #
35309 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35310     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35311     # from automake.
35312     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35313     # Capture the value of LINGUAS because we need it to compute CATALOGS.
35314     LINGUAS="${LINGUAS-%UNSET%}"
35315
35316
35317 _ACEOF
35318
35319 cat >>$CONFIG_STATUS <<\_ACEOF
35320
35321 # Handling of arguments.
35322 for ac_config_target in $ac_config_targets
35323 do
35324   case $ac_config_target in
35325     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
35326     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35327     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
35328     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35329     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
35330     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
35331     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
35332     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
35333     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
35334     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
35335     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
35336     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
35337     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
35338     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
35339     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
35340     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
35341     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
35342     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
35343     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
35344     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
35345     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
35346     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
35347     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
35348     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
35349     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
35350     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
35351     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
35352     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
35353     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
35354     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
35355     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
35356     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
35357     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
35358     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
35359     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
35360     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
35361     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
35362     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
35363     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
35364     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
35365     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35366     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
35367     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
35368     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
35369     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
35370     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
35371     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
35372     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
35373     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
35374     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
35375     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
35376     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
35377     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
35378     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
35379     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
35380     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
35381     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
35382     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
35383     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
35384     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
35385     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
35386     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
35387     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
35388     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
35389     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
35390     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
35391     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
35392     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
35393     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
35394     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
35395     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
35396     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
35397     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
35398     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
35399     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
35400     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
35401     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
35402     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
35403     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
35404     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
35405     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
35406     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
35407     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
35408     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
35409     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
35410     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
35411     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
35412     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
35413     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
35414     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
35415     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
35416     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
35417     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
35418     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
35419     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
35420     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
35421     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
35422     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
35423     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
35424     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
35425     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
35426     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
35427     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
35428     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
35429     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
35430     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
35431     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
35432     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
35433     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
35434     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35435
35436   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35437 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35438    { (exit 1); exit 1; }; };;
35439   esac
35440 done
35441
35442
35443 # If the user did not use the arguments to specify the items to instantiate,
35444 # then the envvar interface is used.  Set only those that are not.
35445 # We use the long form for the default assignment because of an extremely
35446 # bizarre bug on SunOS 4.1.3.
35447 if $ac_need_defaults; then
35448   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35449   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35450   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35451 fi
35452
35453 # Have a temporary directory for convenience.  Make it in the build tree
35454 # simply because there is no reason against having it here, and in addition,
35455 # creating and moving files from /tmp can sometimes cause problems.
35456 # Hook for its removal unless debugging.
35457 # Note that there is a small window in which the directory will not be cleaned:
35458 # after its creation but before its name has been assigned to `$tmp'.
35459 $debug ||
35460 {
35461   tmp=
35462   trap 'exit_status=$?
35463   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35464 ' 0
35465   trap '{ (exit 1); exit 1; }' 1 2 13 15
35466 }
35467 # Create a (secure) tmp directory for tmp files.
35468
35469 {
35470   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35471   test -n "$tmp" && test -d "$tmp"
35472 }  ||
35473 {
35474   tmp=./conf$$-$RANDOM
35475   (umask 077 && mkdir "$tmp")
35476 } ||
35477 {
35478    echo "$me: cannot create a temporary directory in ." >&2
35479    { (exit 1); exit 1; }
35480 }
35481
35482 #
35483 # Set up the sed scripts for CONFIG_FILES section.
35484 #
35485
35486 # No need to generate the scripts if there are no CONFIG_FILES.
35487 # This happens for instance when ./config.status config.h
35488 if test -n "$CONFIG_FILES"; then
35489
35490 _ACEOF
35491
35492 # Create sed commands to just substitute file output variables.
35493
35494 # Remaining file output variables are in a fragment that also has non-file
35495 # output varibles.
35496
35497
35498
35499 ac_delim='%!_!# '
35500 for ac_last_try in false false false false false :; do
35501   cat >conf$$subs.sed <<_ACEOF
35502 SHELL!$SHELL$ac_delim
35503 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35504 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35505 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35506 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35507 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35508 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35509 exec_prefix!$exec_prefix$ac_delim
35510 prefix!$prefix$ac_delim
35511 program_transform_name!$program_transform_name$ac_delim
35512 bindir!$bindir$ac_delim
35513 sbindir!$sbindir$ac_delim
35514 libexecdir!$libexecdir$ac_delim
35515 datarootdir!$datarootdir$ac_delim
35516 datadir!$datadir$ac_delim
35517 sysconfdir!$sysconfdir$ac_delim
35518 sharedstatedir!$sharedstatedir$ac_delim
35519 localstatedir!$localstatedir$ac_delim
35520 includedir!$includedir$ac_delim
35521 oldincludedir!$oldincludedir$ac_delim
35522 docdir!$docdir$ac_delim
35523 infodir!$infodir$ac_delim
35524 htmldir!$htmldir$ac_delim
35525 dvidir!$dvidir$ac_delim
35526 pdfdir!$pdfdir$ac_delim
35527 psdir!$psdir$ac_delim
35528 libdir!$libdir$ac_delim
35529 localedir!$localedir$ac_delim
35530 mandir!$mandir$ac_delim
35531 DEFS!$DEFS$ac_delim
35532 ECHO_C!$ECHO_C$ac_delim
35533 ECHO_N!$ECHO_N$ac_delim
35534 ECHO_T!$ECHO_T$ac_delim
35535 LIBS!$LIBS$ac_delim
35536 build_alias!$build_alias$ac_delim
35537 host_alias!$host_alias$ac_delim
35538 target_alias!$target_alias$ac_delim
35539 BUILD_DIR!$BUILD_DIR$ac_delim
35540 TOP_DIR!$TOP_DIR$ac_delim
35541 TRUEPRG!$TRUEPRG$ac_delim
35542 FALSEPRG!$FALSEPRG$ac_delim
35543 VERSION!$VERSION$ac_delim
35544 DATE!$DATE$ac_delim
35545 LSMDATE!$LSMDATE$ac_delim
35546 CC!$CC$ac_delim
35547 CFLAGS!$CFLAGS$ac_delim
35548 LDFLAGS!$LDFLAGS$ac_delim
35549 CPPFLAGS!$CPPFLAGS$ac_delim
35550 ac_ct_CC!$ac_ct_CC$ac_delim
35551 EXEEXT!$EXEEXT$ac_delim
35552 OBJEXT!$OBJEXT$ac_delim
35553 CXX!$CXX$ac_delim
35554 CXXFLAGS!$CXXFLAGS$ac_delim
35555 ac_ct_CXX!$ac_ct_CXX$ac_delim
35556 CPP!$CPP$ac_delim
35557 GREP!$GREP$ac_delim
35558 EGREP!$EGREP$ac_delim
35559 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35560 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35561 INSTALL_DATA!$INSTALL_DATA$ac_delim
35562 RANLIB!$RANLIB$ac_delim
35563 MV!$MV$ac_delim
35564 RM!$RM$ac_delim
35565 CP!$CP$ac_delim
35566 SED!$SED$ac_delim
35567 ECHO!$ECHO$ac_delim
35568 CMP!$CMP$ac_delim
35569 TBL!$TBL$ac_delim
35570 AR!$AR$ac_delim
35571 OPENSSL!$OPENSSL$ac_delim
35572 MTX!$MTX$ac_delim
35573 DD!$DD$ac_delim
35574 MKISOFS!$MKISOFS$ac_delim
35575 PYTHON!$PYTHON$ac_delim
35576 GROWISOFS!$GROWISOFS$ac_delim
35577 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35578 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35579 PKGCONFIG!$PKGCONFIG$ac_delim
35580 QMAKE!$QMAKE$ac_delim
35581 QMAKEQT4!$QMAKEQT4$ac_delim
35582 WXCONFIG!$WXCONFIG$ac_delim
35583 WXFLAGS!$WXFLAGS$ac_delim
35584 CDRECORD!$CDRECORD$ac_delim
35585 PIDOF!$PIDOF$ac_delim
35586 AWK!$AWK$ac_delim
35587 ARFLAGS!$ARFLAGS$ac_delim
35588 MAKE_SHELL!$MAKE_SHELL$ac_delim
35589 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35590 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35591 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35592 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35593 build!$build$ac_delim
35594 build_cpu!$build_cpu$ac_delim
35595 build_vendor!$build_vendor$ac_delim
35596 _ACEOF
35597
35598   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35599     break
35600   elif $ac_last_try; then
35601     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35603    { (exit 1); exit 1; }; }
35604   else
35605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35606   fi
35607 done
35608
35609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35610 if test -n "$ac_eof"; then
35611   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35612   ac_eof=`expr $ac_eof + 1`
35613 fi
35614
35615 cat >>$CONFIG_STATUS <<_ACEOF
35616 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35618 /^[      ]*@MCOMMON@[    ]*$/{
35619 r $MCOMMON
35620 d
35621 }
35622 _ACEOF
35623 sed '
35624 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35625 s/^/s,@/; s/!/@,|#_!!_#|/
35626 :n
35627 t n
35628 s/'"$ac_delim"'$/,g/; t
35629 s/$/\\/; p
35630 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35631 ' >>$CONFIG_STATUS <conf$$subs.sed
35632 rm -f conf$$subs.sed
35633 cat >>$CONFIG_STATUS <<_ACEOF
35634 CEOF$ac_eof
35635 _ACEOF
35636
35637
35638 ac_delim='%!_!# '
35639 for ac_last_try in false false false false false :; do
35640   cat >conf$$subs.sed <<_ACEOF
35641 build_os!$build_os$ac_delim
35642 host!$host$ac_delim
35643 host_cpu!$host_cpu$ac_delim
35644 host_vendor!$host_vendor$ac_delim
35645 host_os!$host_os$ac_delim
35646 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35647 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35648 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35649 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35650 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35651 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35652 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35653 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35654 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35655 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35656 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35657 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35658 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35659 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35660 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35661 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35662 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35663 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35664 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35665 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35666 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35667 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35668 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35669 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35670 SET_MAKE!$SET_MAKE$ac_delim
35671 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35672 USE_NLS!$USE_NLS$ac_delim
35673 MSGFMT!$MSGFMT$ac_delim
35674 GMSGFMT!$GMSGFMT$ac_delim
35675 XGETTEXT!$XGETTEXT$ac_delim
35676 MSGMERGE!$MSGMERGE$ac_delim
35677 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35678 LIBICONV!$LIBICONV$ac_delim
35679 LTLIBICONV!$LTLIBICONV$ac_delim
35680 INTLLIBS!$INTLLIBS$ac_delim
35681 LIBINTL!$LIBINTL$ac_delim
35682 LTLIBINTL!$LTLIBINTL$ac_delim
35683 POSUB!$POSUB$ac_delim
35684 GLIBC2!$GLIBC2$ac_delim
35685 ALLOCA!$ALLOCA$ac_delim
35686 GLIBC21!$GLIBC21$ac_delim
35687 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35688 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35689 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35690 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35691 INTLBISON!$INTLBISON$ac_delim
35692 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35693 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35694 CATOBJEXT!$CATOBJEXT$ac_delim
35695 DATADIRNAME!$DATADIRNAME$ac_delim
35696 INSTOBJEXT!$INSTOBJEXT$ac_delim
35697 GENCAT!$GENCAT$ac_delim
35698 INTLOBJS!$INTLOBJS$ac_delim
35699 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35700 BDB_CPPFLAGS!$BDB_CPPFLAGS$ac_delim
35701 BDB_LIBS!$BDB_LIBS$ac_delim
35702 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35703 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35704 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35705 GNOME_LIBS!$GNOME_LIBS$ac_delim
35706 GNOME_DIR!$GNOME_DIR$ac_delim
35707 BAT_DIR!$BAT_DIR$ac_delim
35708 QWT_INC!$QWT_INC$ac_delim
35709 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35710 QWT_LIB!$QWT_LIB$ac_delim
35711 QWT!$QWT$ac_delim
35712 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35713 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35714 WX_DIR!$WX_DIR$ac_delim
35715 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35716 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35717 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35718 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35719 STATIC_FD!$STATIC_FD$ac_delim
35720 STATIC_SD!$STATIC_SD$ac_delim
35721 STATIC_DIR!$STATIC_DIR$ac_delim
35722 STATIC_CONS!$STATIC_CONS$ac_delim
35723 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35724 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35725 ALL_DIRS!$ALL_DIRS$ac_delim
35726 DIRD_DIR!$DIRD_DIR$ac_delim
35727 DIR_TOOLS!$DIR_TOOLS$ac_delim
35728 STORED_DIR!$STORED_DIR$ac_delim
35729 CONS_INC!$CONS_INC$ac_delim
35730 CONS_OBJ!$CONS_OBJ$ac_delim
35731 CONS_SRC!$CONS_SRC$ac_delim
35732 CONS_LIBS!$CONS_LIBS$ac_delim
35733 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35734 READLINE_SRC!$READLINE_SRC$ac_delim
35735 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35736 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35737 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35738 _ACEOF
35739
35740   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35741     break
35742   elif $ac_last_try; then
35743     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35744 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35745    { (exit 1); exit 1; }; }
35746   else
35747     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35748   fi
35749 done
35750
35751 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35752 if test -n "$ac_eof"; then
35753   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35754   ac_eof=`expr $ac_eof + 1`
35755 fi
35756
35757 cat >>$CONFIG_STATUS <<_ACEOF
35758 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35760 _ACEOF
35761 sed '
35762 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35763 s/^/s,@/; s/!/@,|#_!!_#|/
35764 :n
35765 t n
35766 s/'"$ac_delim"'$/,g/; t
35767 s/$/\\/; p
35768 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35769 ' >>$CONFIG_STATUS <conf$$subs.sed
35770 rm -f conf$$subs.sed
35771 cat >>$CONFIG_STATUS <<_ACEOF
35772 CEOF$ac_eof
35773 _ACEOF
35774
35775
35776 ac_delim='%!_!# '
35777 for ac_last_try in false false false false false :; do
35778   cat >conf$$subs.sed <<_ACEOF
35779 OPENSSL_INC!$OPENSSL_INC$ac_delim
35780 working_dir!$working_dir$ac_delim
35781 archivedir!$archivedir$ac_delim
35782 scriptdir!$scriptdir$ac_delim
35783 dump_email!$dump_email$ac_delim
35784 job_email!$job_email$ac_delim
35785 smtp_host!$smtp_host$ac_delim
35786 piddir!$piddir$ac_delim
35787 subsysdir!$subsysdir$ac_delim
35788 baseport!$baseport$ac_delim
35789 dir_port!$dir_port$ac_delim
35790 fd_port!$fd_port$ac_delim
35791 sd_port!$sd_port$ac_delim
35792 dir_password!$dir_password$ac_delim
35793 fd_password!$fd_password$ac_delim
35794 sd_password!$sd_password$ac_delim
35795 mon_dir_password!$mon_dir_password$ac_delim
35796 mon_fd_password!$mon_fd_password$ac_delim
35797 mon_sd_password!$mon_sd_password$ac_delim
35798 db_name!$db_name$ac_delim
35799 db_user!$db_user$ac_delim
35800 db_password!$db_password$ac_delim
35801 db_port!$db_port$ac_delim
35802 dir_user!$dir_user$ac_delim
35803 dir_group!$dir_group$ac_delim
35804 sd_user!$sd_user$ac_delim
35805 sd_group!$sd_group$ac_delim
35806 fd_user!$fd_user$ac_delim
35807 fd_group!$fd_group$ac_delim
35808 SBINPERM!$SBINPERM$ac_delim
35809 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35810 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35811 SQL_BINDIR!$SQL_BINDIR$ac_delim
35812 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
35813 uncomment_dbi!$uncomment_dbi$ac_delim
35814 DB_PROG!$DB_PROG$ac_delim
35815 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
35816 cats!$cats$ac_delim
35817 DB_TYPE!$DB_TYPE$ac_delim
35818 GETCONF!$GETCONF$ac_delim
35819 XMKMF!$XMKMF$ac_delim
35820 X_CFLAGS!$X_CFLAGS$ac_delim
35821 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35822 X_LIBS!$X_LIBS$ac_delim
35823 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35824 LIBOBJS!$LIBOBJS$ac_delim
35825 FDLIBS!$FDLIBS$ac_delim
35826 DEBUG!$DEBUG$ac_delim
35827 DINCLUDE!$DINCLUDE$ac_delim
35828 DLIB!$DLIB$ac_delim
35829 DB_LIBS!$DB_LIBS$ac_delim
35830 WCFLAGS!$WCFLAGS$ac_delim
35831 WLDFLAGS!$WLDFLAGS$ac_delim
35832 WRAPLIBS!$WRAPLIBS$ac_delim
35833 OBJLIST!$OBJLIST$ac_delim
35834 hostname!$hostname$ac_delim
35835 TAPEDRIVE!$TAPEDRIVE$ac_delim
35836 PSCMD!$PSCMD$ac_delim
35837 WIN32!$WIN32$ac_delim
35838 MACOSX!$MACOSX$ac_delim
35839 DISTNAME!$DISTNAME$ac_delim
35840 DISTVER!$DISTVER$ac_delim
35841 LTLIBOBJS!$LTLIBOBJS$ac_delim
35842 _ACEOF
35843
35844   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
35845     break
35846   elif $ac_last_try; then
35847     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35848 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35849    { (exit 1); exit 1; }; }
35850   else
35851     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35852   fi
35853 done
35854
35855 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35856 if test -n "$ac_eof"; then
35857   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35858   ac_eof=`expr $ac_eof + 1`
35859 fi
35860
35861 cat >>$CONFIG_STATUS <<_ACEOF
35862 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35864 _ACEOF
35865 sed '
35866 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35867 s/^/s,@/; s/!/@,|#_!!_#|/
35868 :n
35869 t n
35870 s/'"$ac_delim"'$/,g/; t
35871 s/$/\\/; p
35872 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35873 ' >>$CONFIG_STATUS <conf$$subs.sed
35874 rm -f conf$$subs.sed
35875 cat >>$CONFIG_STATUS <<_ACEOF
35876 :end
35877 s/|#_!!_#|//g
35878 CEOF$ac_eof
35879 _ACEOF
35880
35881
35882 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35883 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35884 # trailing colons and then remove the whole line if VPATH becomes empty
35885 # (actually we leave an empty line to preserve line numbers).
35886 if test "x$srcdir" = x.; then
35887   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35888 s/:*\$(srcdir):*/:/
35889 s/:*\${srcdir}:*/:/
35890 s/:*@srcdir@:*/:/
35891 s/^\([^=]*=[     ]*\):*/\1/
35892 s/:*$//
35893 s/^[^=]*=[       ]*$//
35894 }'
35895 fi
35896
35897 cat >>$CONFIG_STATUS <<\_ACEOF
35898 fi # test -n "$CONFIG_FILES"
35899
35900
35901 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35902 do
35903   case $ac_tag in
35904   :[FHLC]) ac_mode=$ac_tag; continue;;
35905   esac
35906   case $ac_mode$ac_tag in
35907   :[FHL]*:*);;
35908   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35909 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35910    { (exit 1); exit 1; }; };;
35911   :[FH]-) ac_tag=-:-;;
35912   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35913   esac
35914   ac_save_IFS=$IFS
35915   IFS=:
35916   set x $ac_tag
35917   IFS=$ac_save_IFS
35918   shift
35919   ac_file=$1
35920   shift
35921
35922   case $ac_mode in
35923   :L) ac_source=$1;;
35924   :[FH])
35925     ac_file_inputs=
35926     for ac_f
35927     do
35928       case $ac_f in
35929       -) ac_f="$tmp/stdin";;
35930       *) # Look for the file first in the build tree, then in the source tree
35931          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35932          # because $ac_f cannot contain `:'.
35933          test -f "$ac_f" ||
35934            case $ac_f in
35935            [\\/$]*) false;;
35936            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35937            esac ||
35938            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35939 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35940    { (exit 1); exit 1; }; };;
35941       esac
35942       ac_file_inputs="$ac_file_inputs $ac_f"
35943     done
35944
35945     # Let's still pretend it is `configure' which instantiates (i.e., don't
35946     # use $as_me), people would be surprised to read:
35947     #    /* config.h.  Generated by config.status.  */
35948     configure_input="Generated from "`IFS=:
35949           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35950     if test x"$ac_file" != x-; then
35951       configure_input="$ac_file.  $configure_input"
35952       { echo "$as_me:$LINENO: creating $ac_file" >&5
35953 echo "$as_me: creating $ac_file" >&6;}
35954     fi
35955
35956     case $ac_tag in
35957     *:-:* | *:-) cat >"$tmp/stdin";;
35958     esac
35959     ;;
35960   esac
35961
35962   ac_dir=`$as_dirname -- "$ac_file" ||
35963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35964          X"$ac_file" : 'X\(//\)[^/]' \| \
35965          X"$ac_file" : 'X\(//\)$' \| \
35966          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35967 echo X"$ac_file" |
35968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35969             s//\1/
35970             q
35971           }
35972           /^X\(\/\/\)[^/].*/{
35973             s//\1/
35974             q
35975           }
35976           /^X\(\/\/\)$/{
35977             s//\1/
35978             q
35979           }
35980           /^X\(\/\).*/{
35981             s//\1/
35982             q
35983           }
35984           s/.*/./; q'`
35985   { as_dir="$ac_dir"
35986   case $as_dir in #(
35987   -*) as_dir=./$as_dir;;
35988   esac
35989   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35990     as_dirs=
35991     while :; do
35992       case $as_dir in #(
35993       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35994       *) as_qdir=$as_dir;;
35995       esac
35996       as_dirs="'$as_qdir' $as_dirs"
35997       as_dir=`$as_dirname -- "$as_dir" ||
35998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35999          X"$as_dir" : 'X\(//\)[^/]' \| \
36000          X"$as_dir" : 'X\(//\)$' \| \
36001          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36002 echo X"$as_dir" |
36003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36004             s//\1/
36005             q
36006           }
36007           /^X\(\/\/\)[^/].*/{
36008             s//\1/
36009             q
36010           }
36011           /^X\(\/\/\)$/{
36012             s//\1/
36013             q
36014           }
36015           /^X\(\/\).*/{
36016             s//\1/
36017             q
36018           }
36019           s/.*/./; q'`
36020       test -d "$as_dir" && break
36021     done
36022     test -z "$as_dirs" || eval "mkdir $as_dirs"
36023   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36024 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36025    { (exit 1); exit 1; }; }; }
36026   ac_builddir=.
36027
36028 case "$ac_dir" in
36029 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36030 *)
36031   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36032   # A ".." for each directory in $ac_dir_suffix.
36033   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36034   case $ac_top_builddir_sub in
36035   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36036   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36037   esac ;;
36038 esac
36039 ac_abs_top_builddir=$ac_pwd
36040 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36041 # for backward compatibility:
36042 ac_top_builddir=$ac_top_build_prefix
36043
36044 case $srcdir in
36045   .)  # We are building in place.
36046     ac_srcdir=.
36047     ac_top_srcdir=$ac_top_builddir_sub
36048     ac_abs_top_srcdir=$ac_pwd ;;
36049   [\\/]* | ?:[\\/]* )  # Absolute name.
36050     ac_srcdir=$srcdir$ac_dir_suffix;
36051     ac_top_srcdir=$srcdir
36052     ac_abs_top_srcdir=$srcdir ;;
36053   *) # Relative name.
36054     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36055     ac_top_srcdir=$ac_top_build_prefix$srcdir
36056     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36057 esac
36058 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36059
36060
36061   case $ac_mode in
36062   :F)
36063   #
36064   # CONFIG_FILE
36065   #
36066
36067   case $INSTALL in
36068   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36069   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36070   esac
36071 _ACEOF
36072
36073 cat >>$CONFIG_STATUS <<\_ACEOF
36074 # If the template does not know about datarootdir, expand it.
36075 # FIXME: This hack should be removed a few years after 2.60.
36076 ac_datarootdir_hack=; ac_datarootdir_seen=
36077
36078 case `sed -n '/datarootdir/ {
36079   p
36080   q
36081 }
36082 /@datadir@/p
36083 /@docdir@/p
36084 /@infodir@/p
36085 /@localedir@/p
36086 /@mandir@/p
36087 ' $ac_file_inputs` in
36088 *datarootdir*) ac_datarootdir_seen=yes;;
36089 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36090   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36091 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36092 _ACEOF
36093 cat >>$CONFIG_STATUS <<_ACEOF
36094   ac_datarootdir_hack='
36095   s&@datadir@&$datadir&g
36096   s&@docdir@&$docdir&g
36097   s&@infodir@&$infodir&g
36098   s&@localedir@&$localedir&g
36099   s&@mandir@&$mandir&g
36100     s&\\\${datarootdir}&$datarootdir&g' ;;
36101 esac
36102 _ACEOF
36103
36104 # Neutralize VPATH when `$srcdir' = `.'.
36105 # Shell code in configure.ac might set extrasub.
36106 # FIXME: do we really want to maintain this feature?
36107 cat >>$CONFIG_STATUS <<_ACEOF
36108   sed "$ac_vpsub
36109 $extrasub
36110 _ACEOF
36111 cat >>$CONFIG_STATUS <<\_ACEOF
36112 :t
36113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36114 s&@configure_input@&$configure_input&;t t
36115 s&@top_builddir@&$ac_top_builddir_sub&;t t
36116 s&@srcdir@&$ac_srcdir&;t t
36117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36118 s&@top_srcdir@&$ac_top_srcdir&;t t
36119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36120 s&@builddir@&$ac_builddir&;t t
36121 s&@abs_builddir@&$ac_abs_builddir&;t t
36122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36123 s&@INSTALL@&$ac_INSTALL&;t t
36124 $ac_datarootdir_hack
36125 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36126
36127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36128   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36129   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36130   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36131 which seems to be undefined.  Please make sure it is defined." >&5
36132 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36133 which seems to be undefined.  Please make sure it is defined." >&2;}
36134
36135   rm -f "$tmp/stdin"
36136   case $ac_file in
36137   -) cat "$tmp/out"; rm -f "$tmp/out";;
36138   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36139   esac
36140  ;;
36141   :H)
36142   #
36143   # CONFIG_HEADER
36144   #
36145 _ACEOF
36146
36147 # Transform confdefs.h into a sed script `conftest.defines', that
36148 # substitutes the proper values into config.h.in to produce config.h.
36149 rm -f conftest.defines conftest.tail
36150 # First, append a space to every undef/define line, to ease matching.
36151 echo 's/$/ /' >conftest.defines
36152 # Then, protect against being on the right side of a sed subst, or in
36153 # an unquoted here document, in config.status.  If some macros were
36154 # called several times there might be several #defines for the same
36155 # symbol, which is useless.  But do not sort them, since the last
36156 # AC_DEFINE must be honored.
36157 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36158 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36159 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36160 # PARAMS is the parameter list in the macro definition--in most cases, it's
36161 # just an empty string.
36162 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36163 ac_dB='\\)[      (].*,\\1define\\2'
36164 ac_dC=' '
36165 ac_dD=' ,'
36166
36167 uniq confdefs.h |
36168   sed -n '
36169         t rset
36170         :rset
36171         s/^[     ]*#[    ]*define[       ][      ]*//
36172         t ok
36173         d
36174         :ok
36175         s/[\\&,]/\\&/g
36176         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36177         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36178   ' >>conftest.defines
36179
36180 # Remove the space that was appended to ease matching.
36181 # Then replace #undef with comments.  This is necessary, for
36182 # example, in the case of _POSIX_SOURCE, which is predefined and required
36183 # on some systems where configure will not decide to define it.
36184 # (The regexp can be short, since the line contains either #define or #undef.)
36185 echo 's/ $//
36186 s,^[     #]*u.*,/* & */,' >>conftest.defines
36187
36188 # Break up conftest.defines:
36189 ac_max_sed_lines=50
36190
36191 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36192 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36193 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36194 # et cetera.
36195 ac_in='$ac_file_inputs'
36196 ac_out='"$tmp/out1"'
36197 ac_nxt='"$tmp/out2"'
36198
36199 while :
36200 do
36201   # Write a here document:
36202     cat >>$CONFIG_STATUS <<_ACEOF
36203     # First, check the format of the line:
36204     cat >"\$tmp/defines.sed" <<\\CEOF
36205 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36206 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36207 b
36208 :def
36209 _ACEOF
36210   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36211   echo 'CEOF
36212     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36213   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36214   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36215   grep . conftest.tail >/dev/null || break
36216   rm -f conftest.defines
36217   mv conftest.tail conftest.defines
36218 done
36219 rm -f conftest.defines conftest.tail
36220
36221 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36222 cat >>$CONFIG_STATUS <<\_ACEOF
36223   if test x"$ac_file" != x-; then
36224     echo "/* $configure_input  */" >"$tmp/config.h"
36225     cat "$ac_result" >>"$tmp/config.h"
36226     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36227       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36228 echo "$as_me: $ac_file is unchanged" >&6;}
36229     else
36230       rm -f $ac_file
36231       mv "$tmp/config.h" $ac_file
36232     fi
36233   else
36234     echo "/* $configure_input  */"
36235     cat "$ac_result"
36236   fi
36237   rm -f "$tmp/out12"
36238  ;;
36239
36240   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36241 echo "$as_me: executing $ac_file commands" >&6;}
36242  ;;
36243   esac
36244
36245
36246   case $ac_file$ac_mode in
36247     "default-1":C)
36248     for ac_file in $CONFIG_FILES; do
36249       # Support "outfile[:infile[:infile...]]"
36250       case "$ac_file" in
36251         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36252       esac
36253       # PO directories have a Makefile.in generated from Makefile.in.in.
36254       case "$ac_file" in */Makefile.in)
36255         # Adjust a relative srcdir.
36256         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36257         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36258         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36259         # In autoconf-2.13 it is called $ac_given_srcdir.
36260         # In autoconf-2.50 it is called $srcdir.
36261         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36262         case "$ac_given_srcdir" in
36263           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36264           /*) top_srcdir="$ac_given_srcdir" ;;
36265           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
36266         esac
36267         # Treat a directory as a PO directory if and only if it has a
36268         # POTFILES.in file. This allows packages to have multiple PO
36269         # directories under different names or in different locations.
36270         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36271           rm -f "$ac_dir/POTFILES"
36272           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36273           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36274           POMAKEFILEDEPS="POTFILES.in"
36275           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36276           # on $ac_dir but don't depend on user-specified configuration
36277           # parameters.
36278           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36279             # The LINGUAS file contains the set of available languages.
36280             if test -n "$OBSOLETE_ALL_LINGUAS"; then
36281               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36282             fi
36283             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36284             # Hide the ALL_LINGUAS assigment from automake.
36285             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36286             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36287           else
36288             # The set of available languages was given in configure.in.
36289             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36290           fi
36291           # Compute POFILES
36292           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36293           # Compute UPDATEPOFILES
36294           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36295           # Compute DUMMYPOFILES
36296           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36297           # Compute GMOFILES
36298           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36299           case "$ac_given_srcdir" in
36300             .) srcdirpre= ;;
36301             *) srcdirpre='$(srcdir)/' ;;
36302           esac
36303           POFILES=
36304           UPDATEPOFILES=
36305           DUMMYPOFILES=
36306           GMOFILES=
36307           for lang in $ALL_LINGUAS; do
36308             POFILES="$POFILES $srcdirpre$lang.po"
36309             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36310             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36311             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36312           done
36313           # CATALOGS depends on both $ac_dir and the user's LINGUAS
36314           # environment variable.
36315           INST_LINGUAS=
36316           if test -n "$ALL_LINGUAS"; then
36317             for presentlang in $ALL_LINGUAS; do
36318               useit=no
36319               if test "%UNSET%" != "$LINGUAS"; then
36320                 desiredlanguages="$LINGUAS"
36321               else
36322                 desiredlanguages="$ALL_LINGUAS"
36323               fi
36324               for desiredlang in $desiredlanguages; do
36325                 # Use the presentlang catalog if desiredlang is
36326                 #   a. equal to presentlang, or
36327                 #   b. a variant of presentlang (because in this case,
36328                 #      presentlang can be used as a fallback for messages
36329                 #      which are not translated in the desiredlang catalog).
36330                 case "$desiredlang" in
36331                   "$presentlang"*) useit=yes;;
36332                 esac
36333               done
36334               if test $useit = yes; then
36335                 INST_LINGUAS="$INST_LINGUAS $presentlang"
36336               fi
36337             done
36338           fi
36339           CATALOGS=
36340           if test -n "$INST_LINGUAS"; then
36341             for lang in $INST_LINGUAS; do
36342               CATALOGS="$CATALOGS $lang.gmo"
36343             done
36344           fi
36345           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36346           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"
36347           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36348             if test -f "$f"; then
36349               case "$f" in
36350                 *.orig | *.bak | *~) ;;
36351                 *) cat "$f" >> "$ac_dir/Makefile" ;;
36352               esac
36353             fi
36354           done
36355         fi
36356         ;;
36357       esac
36358     done ;;
36359     "default":C)
36360  ;;
36361
36362   esac
36363 done # for ac_tag
36364
36365
36366 { (exit 0); exit 0; }
36367 _ACEOF
36368 chmod +x $CONFIG_STATUS
36369 ac_clean_files=$ac_clean_files_save
36370
36371
36372 # configure is writing to config.log, and then calls config.status.
36373 # config.status does its own redirection, appending to config.log.
36374 # Unfortunately, on DOS this fails, as config.log is still kept open
36375 # by configure, so config.status won't be able to write to it; its
36376 # output is simply discarded.  So we exec the FD to /dev/null,
36377 # effectively closing config.log, so it can be properly (re)opened and
36378 # appended to by config.status.  When coming back to configure, we
36379 # need to make the FD available again.
36380 if test "$no_create" != yes; then
36381   ac_cs_success=:
36382   ac_config_status_args=
36383   test "$silent" = yes &&
36384     ac_config_status_args="$ac_config_status_args --quiet"
36385   exec 5>/dev/null
36386   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36387   exec 5>>config.log
36388   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36389   # would make configure fail if this is the last instruction.
36390   $ac_cs_success || { (exit 1); exit 1; }
36391 fi
36392
36393
36394 if test "${support_bat}" = "yes" ; then
36395   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
36396   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
36397   exit 1
36398   fi
36399
36400   QMAKEBIN="qmake"
36401
36402   if test "x$QMAKEQT4" != "xnone"; then
36403     QMAKEBIN=qmake-qt4
36404   fi
36405
36406   cd src/qt-console
36407   chmod 755 install_conf_file build-depkgs-qt-console
36408   echo "Creating bat Makefile"
36409   $QMAKEBIN
36410   make clean
36411   cd ${BUILD_DIR}
36412 fi
36413
36414 echo "Doing make of dependencies"
36415 ${MAKE:-make} depend
36416
36417 cd scripts
36418 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
36419 chmod 755 dvd-handler dvd-simulator
36420 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
36421 cd ..
36422
36423 c=updatedb
36424 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
36425 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
36426
36427 c=src/cats
36428
36429 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
36430 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
36431
36432 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
36433 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
36434
36435 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
36436 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
36437
36438 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
36439 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
36440
36441 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
36442 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
36443
36444 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
36445 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
36446
36447 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
36448 chmod 755 $c/sqlite
36449 chmod 755 $c/mysql
36450
36451 chmod 755 src/win32/build-depkgs-mingw32
36452
36453
36454
36455 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
36456    largefile_support="yes"
36457 fi
36458
36459 #
36460 # A whole lot of hand springs to get the compiler version.
36461 #  This is because gcc changed the output in version 3.0
36462 #
36463 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36464 if test "x${CCVERSION}" = "x" ; then
36465   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36466 fi
36467 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
36468 if test x"${CXXVERSION}" = x ; then
36469   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
36470 fi
36471
36472 if test "x${subsysdir}" = "x${sbindir}" ; then
36473    echo " "
36474    echo " "
36475    echo "You have set --sbindir and --with-subsys-dir"
36476    echo "  both equal to: ${subsysdir} "
36477    echo "  This is not permitted. Please reconfigure."
36478    echo " "
36479    echo "Aborting configuration ..."
36480    echo " "
36481    echo " "
36482    exit 1
36483 fi
36484
36485 if test "x${db_type}" = "xInternal" ; then
36486    echo " "
36487    echo " "
36488    echo "You have not specified either --enable-client-only or one of the"
36489    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
36490    echo "  This is not permitted. Please reconfigure."
36491    echo " "
36492    echo "Aborting the configuration ..."
36493    echo " "
36494    echo " "
36495    exit 1
36496 fi
36497
36498 echo "
36499 Configuration on `date`:
36500
36501   Host:                       $host -- ${DISTNAME} ${DISTVER}
36502   Bacula version:             ${VERSION} (${DATE})
36503   Source code location:       ${srcdir}
36504   Install binaries:           ${sbindir}
36505   Install config files:       ${sysconfdir}
36506   Scripts directory:          ${scriptdir}
36507   Archive directory:          ${archivedir}
36508   Working directory:          ${working_dir}
36509   PID directory:              ${piddir}
36510   Subsys directory:           ${subsysdir}
36511   Man directory:              ${mandir}
36512   Data directory:             ${datadir}
36513   C Compiler:                 ${CC} ${CCVERSION}
36514   C++ Compiler:               ${CXX} ${CXXVERSION}
36515   Compiler flags:             ${WCFLAGS} ${CFLAGS}
36516   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
36517   Libraries:                  ${LIBS}
36518   Statically Linked Tools:    ${support_static_tools}
36519   Statically Linked FD:       ${support_static_fd}
36520   Statically Linked SD:       ${support_static_sd}
36521   Statically Linked DIR:      ${support_static_dir}
36522   Statically Linked CONS:     ${support_static_cons}
36523   Database type:              ${db_type}
36524   Database port:              ${db_port}
36525   Database lib:               ${DB_LIBS}
36526   Database name:              ${db_name}
36527   Database user:              ${db_user}
36528
36529   Job Output Email:           ${job_email}
36530   Traceback Email:            ${dump_email}
36531   SMTP Host Address:          ${smtp_host}
36532
36533   Director Port:              ${dir_port}
36534   File daemon Port:           ${fd_port}
36535   Storage daemon Port:        ${sd_port}
36536
36537   Director User:              ${dir_user}
36538   Director Group:             ${dir_group}
36539   Storage Daemon User:        ${sd_user}
36540   Storage DaemonGroup:        ${sd_group}
36541   File Daemon User:           ${fd_user}
36542   File Daemon Group:          ${fd_group}
36543
36544   SQL binaries Directory      ${SQL_BINDIR}
36545
36546   Large file support:         $largefile_support
36547   Bacula conio support:       ${got_conio} ${CONS_LIBS}
36548   readline support:           ${got_readline} ${PRTREADLINE_SRC}
36549   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
36550   TLS support:                ${support_tls}
36551   Encryption support:         ${support_crypto}
36552   ZLIB support:               ${have_zlib}
36553   enable-smartalloc:          ${support_smartalloc}
36554   bat support:                ${support_bat} ${QWT_LDFLAGS}
36555   enable-gnome:               ${support_gnome} ${gnome_version}
36556   enable-bwx-console:         ${support_wx_console} ${wx_version}
36557   enable-tray-monitor:        ${support_tray_monitor}
36558   client-only:                ${build_client_only}
36559   build-dird:                 ${build_dird}
36560   build-stored:               ${build_stored}
36561   ACL support:                ${have_acl}
36562   Python support:             ${support_python} ${PYTHON_LIBS}
36563   Batch insert enabled:       ${support_batch_insert}
36564   Berkeley DB support:        ${support_libdb} ${BDB_LIBS}
36565
36566   " > config.out
36567
36568 cat config.out