]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Remove sleep at end of ./bacula
[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 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 QWT_LIB
778 QWT
779 WXCONS_CPPFLAGS
780 WXCONS_LDFLAGS
781 WX_DIR
782 TRAY_MONITOR_CPPFLAGS
783 TRAY_MONITOR_LDFLAGS
784 TRAY_MONITOR_DIR
785 TTOOL_LDFLAGS
786 STATIC_FD
787 STATIC_SD
788 STATIC_DIR
789 STATIC_CONS
790 STATIC_GNOME_CONS
791 STATIC_WX_CONS
792 ALL_DIRS
793 DIRD_DIR
794 DIR_TOOLS
795 STORED_DIR
796 CONS_INC
797 CONS_OBJ
798 CONS_SRC
799 CONS_LIBS
800 CONS_LDFLAGS
801 READLINE_SRC
802 PYTHON_LIBS
803 PYTHON_INCDIR
804 OPENSSL_LIBS
805 OPENSSL_INC
806 working_dir
807 archivedir
808 scriptdir
809 dump_email
810 job_email
811 smtp_host
812 piddir
813 subsysdir
814 baseport
815 dir_port
816 fd_port
817 sd_port
818 dir_password
819 fd_password
820 sd_password
821 mon_dir_password
822 mon_fd_password
823 mon_sd_password
824 db_name
825 db_user
826 db_password
827 db_port
828 dir_user
829 dir_group
830 sd_user
831 sd_group
832 fd_user
833 fd_group
834 SBINPERM
835 SQL_LFLAGS
836 SQL_INCLUDE
837 SQL_BINDIR
838 DBI_DBD_DRIVERDIR
839 uncomment_dbi
840 DB_PROG
841 DB_PROG_LIB
842 cats
843 DB_TYPE
844 GETCONF
845 XMKMF
846 X_CFLAGS
847 X_PRE_LIBS
848 X_LIBS
849 X_EXTRA_LIBS
850 LIBOBJS
851 FDLIBS
852 DEBUG
853 DINCLUDE
854 DLIB
855 DB_LIBS
856 WCFLAGS
857 WLDFLAGS
858 WRAPLIBS
859 OBJLIST
860 hostname
861 TAPEDRIVE
862 PSCMD
863 WIN32
864 MACOSX
865 DISTNAME
866 DISTVER
867 LTLIBOBJS'
868 ac_subst_files='MCOMMON'
869       ac_precious_vars='build_alias
870 host_alias
871 target_alias
872 CC
873 CFLAGS
874 LDFLAGS
875 LIBS
876 CPPFLAGS
877 CXX
878 CXXFLAGS
879 CCC
880 CPP
881 WXCONFIG
882 WXFLAGS
883 XMKMF'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
891 cache_file=/dev/null
892 exec_prefix=NONE
893 no_create=
894 no_recursion=
895 prefix=NONE
896 program_prefix=NONE
897 program_suffix=NONE
898 program_transform_name=s,x,x,
899 silent=
900 site=
901 srcdir=
902 verbose=
903 x_includes=NONE
904 x_libraries=NONE
905
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir='${exec_prefix}/bin'
913 sbindir='${exec_prefix}/sbin'
914 libexecdir='${exec_prefix}/libexec'
915 datarootdir='${prefix}/share'
916 datadir='${datarootdir}'
917 sysconfdir='${prefix}/etc'
918 sharedstatedir='${prefix}/com'
919 localstatedir='${prefix}/var'
920 includedir='${prefix}/include'
921 oldincludedir='/usr/include'
922 docdir='${datarootdir}/doc/${PACKAGE}'
923 infodir='${datarootdir}/info'
924 htmldir='${docdir}'
925 dvidir='${docdir}'
926 pdfdir='${docdir}'
927 psdir='${docdir}'
928 libdir='${exec_prefix}/lib'
929 localedir='${datarootdir}/locale'
930 mandir='${datarootdir}/man'
931
932 ac_prev=
933 ac_dashdash=
934 for ac_option
935 do
936   # If the previous option needs an argument, assign it.
937   if test -n "$ac_prev"; then
938     eval $ac_prev=\$ac_option
939     ac_prev=
940     continue
941   fi
942
943   case $ac_option in
944   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945   *)    ac_optarg=yes ;;
946   esac
947
948   # Accept the important Cygnus configure options, so we can diagnose typos.
949
950   case $ac_dashdash$ac_option in
951   --)
952     ac_dashdash=yes ;;
953
954   -bindir | --bindir | --bindi | --bind | --bin | --bi)
955     ac_prev=bindir ;;
956   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957     bindir=$ac_optarg ;;
958
959   -build | --build | --buil | --bui | --bu)
960     ac_prev=build_alias ;;
961   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962     build_alias=$ac_optarg ;;
963
964   -cache-file | --cache-file | --cache-fil | --cache-fi \
965   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966     ac_prev=cache_file ;;
967   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969     cache_file=$ac_optarg ;;
970
971   --config-cache | -C)
972     cache_file=config.cache ;;
973
974   -datadir | --datadir | --datadi | --datad)
975     ac_prev=datadir ;;
976   -datadir=* | --datadir=* | --datadi=* | --datad=*)
977     datadir=$ac_optarg ;;
978
979   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980   | --dataroo | --dataro | --datar)
981     ac_prev=datarootdir ;;
982   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984     datarootdir=$ac_optarg ;;
985
986   -disable-* | --disable-*)
987     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988     # Reject names that are not valid shell variable names.
989     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
990       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
991    { (exit 1); exit 1; }; }
992     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
993     eval enable_$ac_feature=no ;;
994
995   -docdir | --docdir | --docdi | --doc | --do)
996     ac_prev=docdir ;;
997   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998     docdir=$ac_optarg ;;
999
1000   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001     ac_prev=dvidir ;;
1002   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003     dvidir=$ac_optarg ;;
1004
1005   -enable-* | --enable-*)
1006     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010    { (exit 1); exit 1; }; }
1011     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012     eval enable_$ac_feature=\$ac_optarg ;;
1013
1014   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016   | --exec | --exe | --ex)
1017     ac_prev=exec_prefix ;;
1018   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020   | --exec=* | --exe=* | --ex=*)
1021     exec_prefix=$ac_optarg ;;
1022
1023   -gas | --gas | --ga | --g)
1024     # Obsolete; use --with-gas.
1025     with_gas=yes ;;
1026
1027   -help | --help | --hel | --he | -h)
1028     ac_init_help=long ;;
1029   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030     ac_init_help=recursive ;;
1031   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032     ac_init_help=short ;;
1033
1034   -host | --host | --hos | --ho)
1035     ac_prev=host_alias ;;
1036   -host=* | --host=* | --hos=* | --ho=*)
1037     host_alias=$ac_optarg ;;
1038
1039   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040     ac_prev=htmldir ;;
1041   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042   | --ht=*)
1043     htmldir=$ac_optarg ;;
1044
1045   -includedir | --includedir | --includedi | --included | --include \
1046   | --includ | --inclu | --incl | --inc)
1047     ac_prev=includedir ;;
1048   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049   | --includ=* | --inclu=* | --incl=* | --inc=*)
1050     includedir=$ac_optarg ;;
1051
1052   -infodir | --infodir | --infodi | --infod | --info | --inf)
1053     ac_prev=infodir ;;
1054   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055     infodir=$ac_optarg ;;
1056
1057   -libdir | --libdir | --libdi | --libd)
1058     ac_prev=libdir ;;
1059   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060     libdir=$ac_optarg ;;
1061
1062   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063   | --libexe | --libex | --libe)
1064     ac_prev=libexecdir ;;
1065   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066   | --libexe=* | --libex=* | --libe=*)
1067     libexecdir=$ac_optarg ;;
1068
1069   -localedir | --localedir | --localedi | --localed | --locale)
1070     ac_prev=localedir ;;
1071   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072     localedir=$ac_optarg ;;
1073
1074   -localstatedir | --localstatedir | --localstatedi | --localstated \
1075   | --localstate | --localstat | --localsta | --localst | --locals)
1076     ac_prev=localstatedir ;;
1077   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079     localstatedir=$ac_optarg ;;
1080
1081   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082     ac_prev=mandir ;;
1083   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084     mandir=$ac_optarg ;;
1085
1086   -nfp | --nfp | --nf)
1087     # Obsolete; use --without-fp.
1088     with_fp=no ;;
1089
1090   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091   | --no-cr | --no-c | -n)
1092     no_create=yes ;;
1093
1094   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096     no_recursion=yes ;;
1097
1098   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100   | --oldin | --oldi | --old | --ol | --o)
1101     ac_prev=oldincludedir ;;
1102   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105     oldincludedir=$ac_optarg ;;
1106
1107   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108     ac_prev=prefix ;;
1109   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110     prefix=$ac_optarg ;;
1111
1112   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113   | --program-pre | --program-pr | --program-p)
1114     ac_prev=program_prefix ;;
1115   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117     program_prefix=$ac_optarg ;;
1118
1119   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120   | --program-suf | --program-su | --program-s)
1121     ac_prev=program_suffix ;;
1122   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124     program_suffix=$ac_optarg ;;
1125
1126   -program-transform-name | --program-transform-name \
1127   | --program-transform-nam | --program-transform-na \
1128   | --program-transform-n | --program-transform- \
1129   | --program-transform | --program-transfor \
1130   | --program-transfo | --program-transf \
1131   | --program-trans | --program-tran \
1132   | --progr-tra | --program-tr | --program-t)
1133     ac_prev=program_transform_name ;;
1134   -program-transform-name=* | --program-transform-name=* \
1135   | --program-transform-nam=* | --program-transform-na=* \
1136   | --program-transform-n=* | --program-transform-=* \
1137   | --program-transform=* | --program-transfor=* \
1138   | --program-transfo=* | --program-transf=* \
1139   | --program-trans=* | --program-tran=* \
1140   | --progr-tra=* | --program-tr=* | --program-t=*)
1141     program_transform_name=$ac_optarg ;;
1142
1143   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144     ac_prev=pdfdir ;;
1145   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146     pdfdir=$ac_optarg ;;
1147
1148   -psdir | --psdir | --psdi | --psd | --ps)
1149     ac_prev=psdir ;;
1150   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151     psdir=$ac_optarg ;;
1152
1153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154   | -silent | --silent | --silen | --sile | --sil)
1155     silent=yes ;;
1156
1157   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158     ac_prev=sbindir ;;
1159   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160   | --sbi=* | --sb=*)
1161     sbindir=$ac_optarg ;;
1162
1163   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165   | --sharedst | --shareds | --shared | --share | --shar \
1166   | --sha | --sh)
1167     ac_prev=sharedstatedir ;;
1168   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171   | --sha=* | --sh=*)
1172     sharedstatedir=$ac_optarg ;;
1173
1174   -site | --site | --sit)
1175     ac_prev=site ;;
1176   -site=* | --site=* | --sit=*)
1177     site=$ac_optarg ;;
1178
1179   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180     ac_prev=srcdir ;;
1181   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182     srcdir=$ac_optarg ;;
1183
1184   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185   | --syscon | --sysco | --sysc | --sys | --sy)
1186     ac_prev=sysconfdir ;;
1187   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189     sysconfdir=$ac_optarg ;;
1190
1191   -target | --target | --targe | --targ | --tar | --ta | --t)
1192     ac_prev=target_alias ;;
1193   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194     target_alias=$ac_optarg ;;
1195
1196   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197     verbose=yes ;;
1198
1199   -version | --version | --versio | --versi | --vers | -V)
1200     ac_init_version=: ;;
1201
1202   -with-* | --with-*)
1203     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       { echo "$as_me: error: invalid package name: $ac_package" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1209     eval with_$ac_package=\$ac_optarg ;;
1210
1211   -without-* | --without-*)
1212     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       { echo "$as_me: error: invalid package name: $ac_package" >&2
1216    { (exit 1); exit 1; }; }
1217     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218     eval with_$ac_package=no ;;
1219
1220   --x)
1221     # Obsolete; use --with-x.
1222     with_x=yes ;;
1223
1224   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225   | --x-incl | --x-inc | --x-in | --x-i)
1226     ac_prev=x_includes ;;
1227   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229     x_includes=$ac_optarg ;;
1230
1231   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233     ac_prev=x_libraries ;;
1234   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236     x_libraries=$ac_optarg ;;
1237
1238   -*) { echo "$as_me: error: unrecognized option: $ac_option
1239 Try \`$0 --help' for more information." >&2
1240    { (exit 1); exit 1; }; }
1241     ;;
1242
1243   *=*)
1244     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1247       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1248    { (exit 1); exit 1; }; }
1249     eval $ac_envvar=\$ac_optarg
1250     export $ac_envvar ;;
1251
1252   *)
1253     # FIXME: should be removed in autoconf 3.0.
1254     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1258     ;;
1259
1260   esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265   { echo "$as_me: error: missing argument to $ac_option" >&2
1266    { (exit 1); exit 1; }; }
1267 fi
1268
1269 # Be sure to have absolute directory names.
1270 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271                 datadir sysconfdir sharedstatedir localstatedir includedir \
1272                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273                 libdir localedir mandir
1274 do
1275   eval ac_val=\$$ac_var
1276   case $ac_val in
1277     [\\/$]* | ?:[\\/]* )  continue;;
1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279   esac
1280   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281    { (exit 1); exit 1; }; }
1282 done
1283
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1290
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293   if test "x$build_alias" = x; then
1294     cross_compiling=maybe
1295     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296     If a cross compiler is detected then cross compile mode will be used." >&2
1297   elif test "x$build_alias" != "x$host_alias"; then
1298     cross_compiling=yes
1299   fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311   { echo "$as_me: error: Working directory cannot be determined" >&2
1312    { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314   { echo "$as_me: error: pwd does not report name of working directory" >&2
1315    { (exit 1); exit 1; }; }
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320   ac_srcdir_defaulted=yes
1321   # Try the directory containing this script, then the parent directory.
1322   ac_confdir=`$as_dirname -- "$0" ||
1323 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324          X"$0" : 'X\(//\)[^/]' \| \
1325          X"$0" : 'X\(//\)$' \| \
1326          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1327 echo X"$0" |
1328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)[^/].*/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\).*/{
1341             s//\1/
1342             q
1343           }
1344           s/.*/./; q'`
1345   srcdir=$ac_confdir
1346   if test ! -r "$srcdir/$ac_unique_file"; then
1347     srcdir=..
1348   fi
1349 else
1350   ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355    { (exit 1); exit 1; }; }
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1360    { (exit 1); exit 1; }; }
1361         pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364   srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_env_${ac_var}_value=\$${ac_var}
1375   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383   # Omit some internal or obsolete options to make the list less imposing.
1384   # This message is too long to be a string in the A/UX 3.1 sh.
1385   cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396   -h, --help              display this help and exit
1397       --help=short        display options specific to this package
1398       --help=recursive    display the short help of all the included packages
1399   -V, --version           display version information and exit
1400   -q, --quiet, --silent   do not print \`checking...' messages
1401       --cache-file=FILE   cache test results in FILE [disabled]
1402   -C, --config-cache      alias for \`--cache-file=config.cache'
1403   -n, --no-create         do not create output files
1404       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407   --prefix=PREFIX         install architecture-independent files in PREFIX
1408                           [$ac_default_prefix]
1409   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                           [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420   --bindir=DIR           user executables [EPREFIX/bin]
1421   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1422   --libexecdir=DIR       program executables [EPREFIX/libexec]
1423   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1424   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1425   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1426   --libdir=DIR           object code libraries [EPREFIX/lib]
1427   --includedir=DIR       C header files [PREFIX/include]
1428   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1429   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1430   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1431   --infodir=DIR          info documentation [DATAROOTDIR/info]
1432   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1433   --mandir=DIR           man documentation [DATAROOTDIR/man]
1434   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1435   --htmldir=DIR          html documentation [DOCDIR]
1436   --dvidir=DIR           dvi documentation [DOCDIR]
1437   --pdfdir=DIR           pdf documentation [DOCDIR]
1438   --psdir=DIR            ps documentation [DOCDIR]
1439 _ACEOF
1440
1441   cat <<\_ACEOF
1442
1443 X features:
1444   --x-includes=DIR    X include files are in DIR
1445   --x-libraries=DIR   X library files are in DIR
1446
1447 System types:
1448   --build=BUILD     configure for building on BUILD [guessed]
1449   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454
1455   cat <<\_ACEOF
1456
1457 Optional Features:
1458   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460   --disable-nls           do not use Native Language Support
1461   --disable-rpath         do not hardcode runtime library paths
1462   --enable-gnome          enable build of bgnome-console GUI disabled
1463   --enable-bat  enable build of bat Qt4 GUI disabled
1464   --enable-bwx-console     enable build of wxWidgets console disabled
1465   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1466   --enable-smartalloc     enable smartalloc debugging support disabled
1467   --enable-static-tools   enable static tape tools disabled
1468   --enable-static-fd      enable static File daemon disabled
1469   --enable-static-sd      enable static Storage daemon disabled
1470   --enable-static-dir     enable static Director disabled
1471   --enable-static-cons    enable static Console disabled
1472   --enable-client-only    build client (File daemon) only disabled
1473   --enable-build-dird     enable building of dird (Director) enabled
1474   --enable-build-stored   enable building of stored (Storage daemon) enabled
1475  --disable-conio disable conio support enabled
1476
1477   --enable-ipv6             enable ipv6 support enabled
1478
1479   --disable-readline      disable readline support disable
1480
1481         --enable-batch-insert       enable the DB batch insert code disabled
1482  --enable-batch-insert      enable the DB batch insert code disabled
1483   --disable-largefile     omit support for large files
1484
1485 Optional Packages:
1486   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1489   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1490   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1491   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1492   --without-libintl-prefix     don't search for libintl in includedir and libdir
1493   --with-included-gettext use the GNU gettext library included here
1494  --with-qwt[=DIR]                 specify qwt library directory
1495  --with-readline[=DIR]         specify readline library directory
1496
1497   --with-python[=DIR]   Include Python support.  DIR is the Python base
1498                           install directory, default is to search through
1499                           a number of common places for the Python files.
1500   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1501   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1502   --with-working-dir=PATH        specify path of Bacula working directory
1503   --with-archivedir=PATH        specify path of SD archive directory
1504   --with-scriptdir=PATH    specify path of Bacula scripts directory
1505   --with-dump-email=EMAIL        dump email address
1506   --with-job-email=EMAIL         job output email address
1507   --with-smtp-host=HOST          SMTP mail host address
1508   --with-pid-dir=PATH            specify location of Bacula pid files
1509   --with-subsys-dir=PATH         specify location of Bacula subsys file
1510   --with-baseport=PORT           specify base port address for daemons
1511   --with-dir-password=PASSWORD   specify Director's password
1512   --with-fd-password=PASSWORD    specify Client's password
1513   --with-sd-password=PASSWORD    specify Storage daemon's password
1514   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1515   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1516   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1517   --with-db-name=DBNAME        specify database name (default bacula)
1518   --with-db-user=UNAME         specify database user (default bacula)
1519   --with-db-password=UNAME         specify database password (default *none*)
1520   --with-db-port=DBPORT            specify a database port (default null)
1521   --with-dir-user=USER           specify user for Director daemon
1522   --with-dir-group=GROUP                 specify group for Director daemon
1523   --with-sd-user=USER            specify user for Storage daemon
1524   --with-sd-group=GROUP          specify group for Storage daemon
1525   --with-fd-user=USER            specify user for File daemon
1526   --with-fd-group=GROUP          specify group for File daemon
1527   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1528   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1529                           base install directory, defaults to /usr/local/pgsql
1530
1531   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1532                           install directory, default is to search through
1533                           a number of common places for the MySQL files.
1534
1535   --with-embedded-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-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1540                           install directory, default is to search through
1541                           a number of common places for the SQLite3 files.
1542
1543   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1544                           install directory, default is to search through
1545                           a number of common places for the SQLite files.
1546
1547   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1548                           install directory, default is to search through
1549                           a number of common places for the DBI files.
1550
1551   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1552                           the one DBI driver like Mysql, Postgresql, others.
1553                           Default is to not configure any driver.
1554   --with-x                use the X Window System
1555
1556 Some influential environment variables:
1557   CC          C compiler command
1558   CFLAGS      C compiler flags
1559   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560               nonstandard directory <lib dir>
1561   LIBS        libraries to pass to the linker, e.g. -l<library>
1562   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563               you have headers in a nonstandard directory <include dir>
1564   CXX         C++ compiler command
1565   CXXFLAGS    C++ compiler flags
1566   CPP         C preprocessor
1567   WXCONFIG    wx-config command. On some systems, you must set it to
1568               wx-config-2.6 to use wxWidgets 2.6.
1569   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1570   XMKMF       Path to xmkmf, Makefile generator for X Window System
1571
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1574
1575 _ACEOF
1576 ac_status=$?
1577 fi
1578
1579 if test "$ac_init_help" = "recursive"; then
1580   # If there are subdirs, report their specific --help.
1581   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582     test -d "$ac_dir" || continue
1583     ac_builddir=.
1584
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *)
1588   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1589   # A ".." for each directory in $ac_dir_suffix.
1590   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1591   case $ac_top_builddir_sub in
1592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594   esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1600
1601 case $srcdir in
1602   .)  # We are building in place.
1603     ac_srcdir=.
1604     ac_top_srcdir=$ac_top_builddir_sub
1605     ac_abs_top_srcdir=$ac_pwd ;;
1606   [\\/]* | ?:[\\/]* )  # Absolute name.
1607     ac_srcdir=$srcdir$ac_dir_suffix;
1608     ac_top_srcdir=$srcdir
1609     ac_abs_top_srcdir=$srcdir ;;
1610   *) # Relative name.
1611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612     ac_top_srcdir=$ac_top_build_prefix$srcdir
1613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617     cd "$ac_dir" || { ac_status=$?; continue; }
1618     # Check for guested configure.
1619     if test -f "$ac_srcdir/configure.gnu"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622     elif test -f "$ac_srcdir/configure"; then
1623       echo &&
1624       $SHELL "$ac_srcdir/configure" --help=recursive
1625     else
1626       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627     fi || ac_status=$?
1628     cd "$ac_pwd" || { ac_status=$?; break; }
1629   done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634   cat <<\_ACEOF
1635 configure
1636 generated by GNU Autoconf 2.61
1637
1638 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1639 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645 cat >config.log <<_ACEOF
1646 This file contains any messages produced by compilers while
1647 running configure, to aid debugging if configure makes a mistake.
1648
1649 It was created by $as_me, which was
1650 generated by GNU Autoconf 2.61.  Invocation command line was
1651
1652   $ $0 $@
1653
1654 _ACEOF
1655 exec 5>>config.log
1656 {
1657 cat <<_ASUNAME
1658 ## --------- ##
1659 ## Platform. ##
1660 ## --------- ##
1661
1662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667
1668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1670
1671 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1672 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1675 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1676 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1677 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1678
1679 _ASUNAME
1680
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1683 do
1684   IFS=$as_save_IFS
1685   test -z "$as_dir" && as_dir=.
1686   echo "PATH: $as_dir"
1687 done
1688 IFS=$as_save_IFS
1689
1690 } >&5
1691
1692 cat >&5 <<_ACEOF
1693
1694
1695 ## ----------- ##
1696 ## Core tests. ##
1697 ## ----------- ##
1698
1699 _ACEOF
1700
1701
1702 # Keep a trace of the command line.
1703 # Strip out --no-create and --no-recursion so they do not pile up.
1704 # Strip out --silent because we don't want to record it for future runs.
1705 # Also quote any args containing shell meta-characters.
1706 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_configure_args=
1708 ac_configure_args0=
1709 ac_configure_args1=
1710 ac_must_keep_next=false
1711 for ac_pass in 1 2
1712 do
1713   for ac_arg
1714   do
1715     case $ac_arg in
1716     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718     | -silent | --silent | --silen | --sile | --sil)
1719       continue ;;
1720     *\'*)
1721       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722     esac
1723     case $ac_pass in
1724     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725     2)
1726       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727       if test $ac_must_keep_next = true; then
1728         ac_must_keep_next=false # Got value, back to normal.
1729       else
1730         case $ac_arg in
1731           *=* | --config-cache | -C | -disable-* | --disable-* \
1732           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734           | -with-* | --with-* | -without-* | --without-* | --x)
1735             case "$ac_configure_args0 " in
1736               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737             esac
1738             ;;
1739           -* ) ac_must_keep_next=true ;;
1740         esac
1741       fi
1742       ac_configure_args="$ac_configure_args '$ac_arg'"
1743       ;;
1744     esac
1745   done
1746 done
1747 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749
1750 # When interrupted or exit'd, cleanup temporary files, and complete
1751 # config.log.  We remove comments because anyway the quotes in there
1752 # would cause problems or look ugly.
1753 # WARNING: Use '\'' to represent an apostrophe within the trap.
1754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755 trap 'exit_status=$?
1756   # Save into config.log some information that might help in debugging.
1757   {
1758     echo
1759
1760     cat <<\_ASBOX
1761 ## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##
1764 _ASBOX
1765     echo
1766     # The following way of writing the cache mishandles newlines in values,
1767 (
1768   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769     eval ac_val=\$$ac_var
1770     case $ac_val in #(
1771     *${as_nl}*)
1772       case $ac_var in #(
1773       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775       esac
1776       case $ac_var in #(
1777       _ | IFS | as_nl) ;; #(
1778       *) $as_unset $ac_var ;;
1779       esac ;;
1780     esac
1781   done
1782   (set) 2>&1 |
1783     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784     *${as_nl}ac_space=\ *)
1785       sed -n \
1786         "s/'\''/'\''\\\\'\'''\''/g;
1787           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788       ;; #(
1789     *)
1790       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791       ;;
1792     esac |
1793     sort
1794 )
1795     echo
1796
1797     cat <<\_ASBOX
1798 ## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##
1801 _ASBOX
1802     echo
1803     for ac_var in $ac_subst_vars
1804     do
1805       eval ac_val=\$$ac_var
1806       case $ac_val in
1807       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808       esac
1809       echo "$ac_var='\''$ac_val'\''"
1810     done | sort
1811     echo
1812
1813     if test -n "$ac_subst_files"; then
1814       cat <<\_ASBOX
1815 ## ------------------- ##
1816 ## File substitutions. ##
1817 ## ------------------- ##
1818 _ASBOX
1819       echo
1820       for ac_var in $ac_subst_files
1821       do
1822         eval ac_val=\$$ac_var
1823         case $ac_val in
1824         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825         esac
1826         echo "$ac_var='\''$ac_val'\''"
1827       done | sort
1828       echo
1829     fi
1830
1831     if test -s confdefs.h; then
1832       cat <<\_ASBOX
1833 ## ----------- ##
1834 ## confdefs.h. ##
1835 ## ----------- ##
1836 _ASBOX
1837       echo
1838       cat confdefs.h
1839       echo
1840     fi
1841     test "$ac_signal" != 0 &&
1842       echo "$as_me: caught signal $ac_signal"
1843     echo "$as_me: exit $exit_status"
1844   } >&5
1845   rm -f core *.core core.conftest.* &&
1846     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847     exit $exit_status
1848 ' 0
1849 for ac_signal in 1 2 13 15; do
1850   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1851 done
1852 ac_signal=0
1853
1854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1855 rm -f -r conftest* confdefs.h
1856
1857 # Predefined preprocessor variables.
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_NAME "$PACKAGE_NAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_STRING "$PACKAGE_STRING"
1876 _ACEOF
1877
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1881 _ACEOF
1882
1883
1884 # Let the site file select an alternate cache file if it wants to.
1885 # Prefer explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887   set x "$CONFIG_SITE"
1888 elif test "x$prefix" != xNONE; then
1889   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 else
1891   set x "$ac_default_prefix/share/config.site" \
1892         "$ac_default_prefix/etc/config.site"
1893 fi
1894 shift
1895 for ac_site_file
1896 do
1897   if test -r "$ac_site_file"; then
1898     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1899 echo "$as_me: loading site script $ac_site_file" >&6;}
1900     sed 's/^/| /' "$ac_site_file" >&5
1901     . "$ac_site_file"
1902   fi
1903 done
1904
1905 if test -r "$cache_file"; then
1906   # Some versions of bash will fail to source /dev/null (special
1907   # files actually), so we avoid doing that.
1908   if test -f "$cache_file"; then
1909     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1911     case $cache_file in
1912       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913       *)                      . "./$cache_file";;
1914     esac
1915   fi
1916 else
1917   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1919   >$cache_file
1920 fi
1921
1922 # Check that the precious variables saved in the cache have kept the same
1923 # value.
1924 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do
1926   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927   eval ac_new_set=\$ac_env_${ac_var}_set
1928   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929   eval ac_new_val=\$ac_env_${ac_var}_value
1930   case $ac_old_set,$ac_new_set in
1931     set,)
1932       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,set)
1936       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938       ac_cache_corrupted=: ;;
1939     ,);;
1940     *)
1941       if test "x$ac_old_val" != "x$ac_new_val"; then
1942         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1945 echo "$as_me:   former value:  $ac_old_val" >&2;}
1946         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1947 echo "$as_me:   current value: $ac_new_val" >&2;}
1948         ac_cache_corrupted=:
1949       fi;;
1950   esac
1951   # Pass precious variables to config.status.
1952   if test "$ac_new_set" = set; then
1953     case $ac_new_val in
1954     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1955     *) ac_arg=$ac_var=$ac_new_val ;;
1956     esac
1957     case " $ac_configure_args " in
1958       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1959       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960     esac
1961   fi
1962 done
1963 if $ac_cache_corrupted; then
1964   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1966   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1968    { (exit 1); exit 1; }; }
1969 fi
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987 ac_ext=c
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992
1993
1994 BUILD_DIR=`pwd`
1995 cd ..
1996 TOP_DIR=`pwd`
1997 cd ${BUILD_DIR}
1998
1999
2000 ac_aux_dir=
2001 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2002   if test -f "$ac_dir/install-sh"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/install-sh -c"
2005     break
2006   elif 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/shtool"; then
2011     ac_aux_dir=$ac_dir
2012     ac_install_sh="$ac_aux_dir/shtool install -c"
2013     break
2014   fi
2015 done
2016 if test -z "$ac_aux_dir"; then
2017   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2018 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022 # These three variables are undocumented and unsupported,
2023 # and are intended to be withdrawn in a future Autoconf release.
2024 # They can cause serious problems if a builder's source tree is in a directory
2025 # whose full name contains unusual characters.
2026 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2027 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2028 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2029
2030
2031 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2032
2033
2034
2035
2036
2037 for ac_prog in true
2038 do
2039   # Extract the first word of "$ac_prog", so it can be a program name with args.
2040 set dummy $ac_prog; ac_word=$2
2041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2043 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   case $TRUEPRG in
2047   [\\/]* | ?:[\\/]*)
2048   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2049   ;;
2050   *)
2051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064 IFS=$as_save_IFS
2065
2066   ;;
2067 esac
2068 fi
2069 TRUEPRG=$ac_cv_path_TRUEPRG
2070 if test -n "$TRUEPRG"; then
2071   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2072 echo "${ECHO_T}$TRUEPRG" >&6; }
2073 else
2074   { echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6; }
2076 fi
2077
2078
2079   test -n "$TRUEPRG" && break
2080 done
2081 test -n "$TRUEPRG" || TRUEPRG=":"
2082
2083 for ac_prog in false
2084 do
2085   # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2089 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   case $FALSEPRG in
2093   [\\/]* | ?:[\\/]*)
2094   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2095   ;;
2096   *)
2097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110 IFS=$as_save_IFS
2111
2112   ;;
2113 esac
2114 fi
2115 FALSEPRG=$ac_cv_path_FALSEPRG
2116 if test -n "$FALSEPRG"; then
2117   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2118 echo "${ECHO_T}$FALSEPRG" >&6; }
2119 else
2120   { echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6; }
2122 fi
2123
2124
2125   test -n "$FALSEPRG" && break
2126 done
2127 test -n "$FALSEPRG" || FALSEPRG=":"
2128
2129
2130
2131 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2132 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2133 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2134 echo "configuring for bacula $VERSION ($DATE)"
2135
2136
2137
2138 ac_ext=c
2139 ac_cpp='$CPP $CPPFLAGS'
2140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 if test -n "$ac_tool_prefix"; then
2144   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148 if test "${ac_cv_prog_CC+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   if test -n "$CC"; then
2152   ac_cv_prog_CC="$CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
2157   IFS=$as_save_IFS
2158   test -z "$as_dir" && as_dir=.
2159   for ac_exec_ext in '' $ac_executable_extensions; do
2160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163     break 2
2164   fi
2165 done
2166 done
2167 IFS=$as_save_IFS
2168
2169 fi
2170 fi
2171 CC=$ac_cv_prog_CC
2172 if test -n "$CC"; then
2173   { echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6; }
2175 else
2176   { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2178 fi
2179
2180
2181 fi
2182 if test -z "$ac_cv_prog_CC"; then
2183   ac_ct_CC=$CC
2184   # Extract the first word of "gcc", so it can be a program name with args.
2185 set dummy gcc; ac_word=$2
2186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$ac_ct_CC"; then
2192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201     ac_cv_prog_ac_ct_CC="gcc"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207 IFS=$as_save_IFS
2208
2209 fi
2210 fi
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2214 echo "${ECHO_T}$ac_ct_CC" >&6; }
2215 else
2216   { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2218 fi
2219
2220   if test "x$ac_ct_CC" = x; then
2221     CC=""
2222   else
2223     case $cross_compiling:$ac_tool_warned in
2224 yes:)
2225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet.  If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&5
2228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2229 whose name does not start with the host triplet.  If you think this
2230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2231 ac_tool_warned=yes ;;
2232 esac
2233     CC=$ac_ct_CC
2234   fi
2235 else
2236   CC="$ac_cv_prog_CC"
2237 fi
2238
2239 if test -z "$CC"; then
2240           if test -n "$ac_tool_prefix"; then
2241     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2242 set dummy ${ac_tool_prefix}cc; ac_word=$2
2243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245 if test "${ac_cv_prog_CC+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   if test -n "$CC"; then
2249   ac_cv_prog_CC="$CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254   IFS=$as_save_IFS
2255   test -z "$as_dir" && as_dir=.
2256   for ac_exec_ext in '' $ac_executable_extensions; do
2257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258     ac_cv_prog_CC="${ac_tool_prefix}cc"
2259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260     break 2
2261   fi
2262 done
2263 done
2264 IFS=$as_save_IFS
2265
2266 fi
2267 fi
2268 CC=$ac_cv_prog_CC
2269 if test -n "$CC"; then
2270   { echo "$as_me:$LINENO: result: $CC" >&5
2271 echo "${ECHO_T}$CC" >&6; }
2272 else
2273   { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 fi
2276
2277
2278   fi
2279 fi
2280 if test -z "$CC"; then
2281   # Extract the first word of "cc", so it can be a program name with args.
2282 set dummy cc; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   if test -n "$CC"; then
2289   ac_cv_prog_CC="$CC" # Let the user override the test.
2290 else
2291   ac_prog_rejected=no
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295   IFS=$as_save_IFS
2296   test -z "$as_dir" && as_dir=.
2297   for ac_exec_ext in '' $ac_executable_extensions; do
2298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2300        ac_prog_rejected=yes
2301        continue
2302      fi
2303     ac_cv_prog_CC="cc"
2304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 if test $ac_prog_rejected = yes; then
2312   # We found a bogon in the path, so make sure we never use it.
2313   set dummy $ac_cv_prog_CC
2314   shift
2315   if test $# != 0; then
2316     # We chose a different compiler from the bogus one.
2317     # However, it has the same basename, so the bogon will be chosen
2318     # first if we set CC to just the basename; use the full file name.
2319     shift
2320     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2321   fi
2322 fi
2323 fi
2324 fi
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327   { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2329 else
2330   { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2332 fi
2333
2334
2335 fi
2336 if test -z "$CC"; then
2337   if test -n "$ac_tool_prefix"; then
2338   for ac_prog in cl.exe
2339   do
2340     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_CC+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   if test -n "$CC"; then
2348   ac_cv_prog_CC="$CC" # Let the user override the test.
2349 else
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353   IFS=$as_save_IFS
2354   test -z "$as_dir" && as_dir=.
2355   for ac_exec_ext in '' $ac_executable_extensions; do
2356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359     break 2
2360   fi
2361 done
2362 done
2363 IFS=$as_save_IFS
2364
2365 fi
2366 fi
2367 CC=$ac_cv_prog_CC
2368 if test -n "$CC"; then
2369   { echo "$as_me:$LINENO: result: $CC" >&5
2370 echo "${ECHO_T}$CC" >&6; }
2371 else
2372   { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2374 fi
2375
2376
2377     test -n "$CC" && break
2378   done
2379 fi
2380 if test -z "$CC"; then
2381   ac_ct_CC=$CC
2382   for ac_prog in cl.exe
2383 do
2384   # Extract the first word of "$ac_prog", so it can be a program name with args.
2385 set dummy $ac_prog; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$ac_ct_CC"; then
2392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401     ac_cv_prog_ac_ct_CC="$ac_prog"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2412 if test -n "$ac_ct_CC"; then
2413   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2414 echo "${ECHO_T}$ac_ct_CC" >&6; }
2415 else
2416   { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2418 fi
2419
2420
2421   test -n "$ac_ct_CC" && break
2422 done
2423
2424   if test "x$ac_ct_CC" = x; then
2425     CC=""
2426   else
2427     case $cross_compiling:$ac_tool_warned in
2428 yes:)
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet.  If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet.  If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2436 esac
2437     CC=$ac_ct_CC
2438   fi
2439 fi
2440
2441 fi
2442
2443
2444 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&2;}
2448    { (exit 1); exit 1; }; }
2449
2450 # Provide some information about the compiler.
2451 echo "$as_me:$LINENO: checking for C compiler version" >&5
2452 ac_compiler=`set X $ac_compile; echo $2`
2453 { (ac_try="$ac_compiler --version >&5"
2454 case "(($ac_try" in
2455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456   *) ac_try_echo=$ac_try;;
2457 esac
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459   (eval "$ac_compiler --version >&5") 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }
2463 { (ac_try="$ac_compiler -v >&5"
2464 case "(($ac_try" in
2465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466   *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469   (eval "$ac_compiler -v >&5") 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }
2473 { (ac_try="$ac_compiler -V >&5"
2474 case "(($ac_try" in
2475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476   *) ac_try_echo=$ac_try;;
2477 esac
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479   (eval "$ac_compiler -V >&5") 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }
2483
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490
2491 int
2492 main ()
2493 {
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 ac_clean_files_save=$ac_clean_files
2500 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2501 # Try to create an executable without -o first, disregard a.out.
2502 # It will help us diagnose broken compilers, and finding out an intuition
2503 # of exeext.
2504 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2505 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2506 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2507 #
2508 # List of possible output files, starting from the most likely.
2509 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2510 # only as a last resort.  b.out is created by i960 compilers.
2511 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2512 #
2513 # The IRIX 6 linker writes into existing files which may not be
2514 # executable, retaining their permissions.  Remove them first so a
2515 # subsequent execution test works.
2516 ac_rmfiles=
2517 for ac_file in $ac_files
2518 do
2519   case $ac_file in
2520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2521     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2522   esac
2523 done
2524 rm -f $ac_rmfiles
2525
2526 if { (ac_try="$ac_link_default"
2527 case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_link_default") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; then
2536   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2538 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2539 # so that the user can short-circuit this test for compilers unknown to
2540 # Autoconf.
2541 for ac_file in $ac_files ''
2542 do
2543   test -f "$ac_file" || continue
2544   case $ac_file in
2545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2546         ;;
2547     [ab].out )
2548         # We found the default executable, but exeext='' is most
2549         # certainly right.
2550         break;;
2551     *.* )
2552         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2553         then :; else
2554            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2555         fi
2556         # We set ac_cv_exeext here because the later test for it is not
2557         # safe: cross compilers may not add the suffix if given an `-o'
2558         # argument, so we may need to know it at that point already.
2559         # Even if this section looks crufty: it has the advantage of
2560         # actually working.
2561         break;;
2562     * )
2563         break;;
2564   esac
2565 done
2566 test "$ac_cv_exeext" = no && ac_cv_exeext=
2567
2568 else
2569   ac_file=''
2570 fi
2571
2572 { echo "$as_me:$LINENO: result: $ac_file" >&5
2573 echo "${ECHO_T}$ac_file" >&6; }
2574 if test -z "$ac_file"; then
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&2;}
2582    { (exit 77); exit 77; }; }
2583 fi
2584
2585 ac_exeext=$ac_cv_exeext
2586
2587 # Check that the compiler produces executables we can run.  If not, either
2588 # the compiler is broken, or we cross compile.
2589 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2590 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2592 # If not cross compiling, check that we can run a simple program.
2593 if test "$cross_compiling" != yes; then
2594   if { ac_try='./$ac_file'
2595   { (case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600   (eval "$ac_try") 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604     cross_compiling=no
2605   else
2606     if test "$cross_compiling" = maybe; then
2607         cross_compiling=yes
2608     else
2609         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot run C compiled programs.
2613 If you meant to cross compile, use \`--host'.
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }
2616     fi
2617   fi
2618 fi
2619 { echo "$as_me:$LINENO: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6; }
2621
2622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 # Check that the compiler produces executables we can run.  If not, either
2625 # the compiler is broken, or we cross compile.
2626 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2628 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2629 echo "${ECHO_T}$cross_compiling" >&6; }
2630
2631 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2633 if { (ac_try="$ac_link"
2634 case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639   (eval "$ac_link") 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 # `rm'.
2647 for ac_file in conftest.exe conftest conftest.*; do
2648   test -f "$ac_file" || continue
2649   case $ac_file in
2650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2651     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652           break;;
2653     * ) break;;
2654   esac
2655 done
2656 else
2657   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&2;}
2661    { (exit 1); exit 1; }; }
2662 fi
2663
2664 rm -f conftest$ac_cv_exeext
2665 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2667
2668 rm -f conftest.$ac_ext
2669 EXEEXT=$ac_cv_exeext
2670 ac_exeext=$EXEEXT
2671 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2673 if test "${ac_cv_objext+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.o conftest.obj
2692 if { (ac_try="$ac_compile"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698   (eval "$ac_compile") 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; then
2702   for ac_file in conftest.o conftest.obj conftest.*; do
2703   test -f "$ac_file" || continue;
2704   case $ac_file in
2705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2706     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2707        break;;
2708   esac
2709 done
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&2;}
2718    { (exit 1); exit 1; }; }
2719 fi
2720
2721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2722 fi
2723 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2724 echo "${ECHO_T}$ac_cv_objext" >&6; }
2725 OBJEXT=$ac_cv_objext
2726 ac_objext=$OBJEXT
2727 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742 #ifndef __GNUC__
2743        choke me
2744 #endif
2745
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 rm -f conftest.$ac_objext
2751 if { (ac_try="$ac_compile"
2752 case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_compile") 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } && {
2764          test -z "$ac_c_werror_flag" ||
2765          test ! -s conftest.err
2766        } && test -s conftest.$ac_objext; then
2767   ac_compiler_gnu=yes
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772         ac_compiler_gnu=no
2773 fi
2774
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777
2778 fi
2779 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2780 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2781 GCC=`test $ac_compiler_gnu = yes && echo yes`
2782 ac_test_CFLAGS=${CFLAGS+set}
2783 ac_save_CFLAGS=$CFLAGS
2784 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_cc_g+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   ac_save_c_werror_flag=$ac_c_werror_flag
2790    ac_c_werror_flag=yes
2791    ac_cv_prog_cc_g=no
2792    CFLAGS="-g"
2793    cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h.  */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h.  */
2799
2800 int
2801 main ()
2802 {
2803
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 rm -f conftest.$ac_objext
2809 if { (ac_try="$ac_compile"
2810 case "(($ac_try" in
2811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812   *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815   (eval "$ac_compile") 2>conftest.er1
2816   ac_status=$?
2817   grep -v '^ *+' conftest.er1 >conftest.err
2818   rm -f conftest.er1
2819   cat conftest.err >&5
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); } && {
2822          test -z "$ac_c_werror_flag" ||
2823          test ! -s conftest.err
2824        } && test -s conftest.$ac_objext; then
2825   ac_cv_prog_cc_g=yes
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830         CFLAGS=""
2831       cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838 int
2839 main ()
2840 {
2841
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 rm -f conftest.$ac_objext
2847 if { (ac_try="$ac_compile"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853   (eval "$ac_compile") 2>conftest.er1
2854   ac_status=$?
2855   grep -v '^ *+' conftest.er1 >conftest.err
2856   rm -f conftest.er1
2857   cat conftest.err >&5
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); } && {
2860          test -z "$ac_c_werror_flag" ||
2861          test ! -s conftest.err
2862        } && test -s conftest.$ac_objext; then
2863   :
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868         ac_c_werror_flag=$ac_save_c_werror_flag
2869          CFLAGS="-g"
2870          cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876
2877 int
2878 main ()
2879 {
2880
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compile") 2>conftest.er1
2893   ac_status=$?
2894   grep -v '^ *+' conftest.er1 >conftest.err
2895   rm -f conftest.er1
2896   cat conftest.err >&5
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); } && {
2899          test -z "$ac_c_werror_flag" ||
2900          test ! -s conftest.err
2901        } && test -s conftest.$ac_objext; then
2902   ac_cv_prog_cc_g=yes
2903 else
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907
2908 fi
2909
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 fi
2912
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 fi
2915
2916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917    ac_c_werror_flag=$ac_save_c_werror_flag
2918 fi
2919 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2920 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2921 if test "$ac_test_CFLAGS" = set; then
2922   CFLAGS=$ac_save_CFLAGS
2923 elif test $ac_cv_prog_cc_g = yes; then
2924   if test "$GCC" = yes; then
2925     CFLAGS="-g -O2"
2926   else
2927     CFLAGS="-g"
2928   fi
2929 else
2930   if test "$GCC" = yes; then
2931     CFLAGS="-O2"
2932   else
2933     CFLAGS=
2934   fi
2935 fi
2936 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2937 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_cc_c89+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   ac_cv_prog_cc_c89=no
2942 ac_save_CC=$CC
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949 #include <stdarg.h>
2950 #include <stdio.h>
2951 #include <sys/types.h>
2952 #include <sys/stat.h>
2953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2954 struct buf { int x; };
2955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2956 static char *e (p, i)
2957      char **p;
2958      int i;
2959 {
2960   return p[i];
2961 }
2962 static char *f (char * (*g) (char **, int), char **p, ...)
2963 {
2964   char *s;
2965   va_list v;
2966   va_start (v,p);
2967   s = g (p, va_arg (v,int));
2968   va_end (v);
2969   return s;
2970 }
2971
2972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2973    function prototypes and stuff, but not '\xHH' hex character constants.
2974    These don't provoke an error unfortunately, instead are silently treated
2975    as 'x'.  The following induces an error, until -std is added to get
2976    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2977    array size at least.  It's necessary to write '\x00'==0 to get something
2978    that's true only with -std.  */
2979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2980
2981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2982    inside strings and character constants.  */
2983 #define FOO(x) 'x'
2984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2985
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990 int argc;
2991 char **argv;
2992 int
2993 main ()
2994 {
2995 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3001         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3002 do
3003   CC="$ac_save_CC $ac_arg"
3004   rm -f conftest.$ac_objext
3005 if { (ac_try="$ac_compile"
3006 case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_compile") 2>conftest.er1
3012   ac_status=$?
3013   grep -v '^ *+' conftest.er1 >conftest.err
3014   rm -f conftest.er1
3015   cat conftest.err >&5
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); } && {
3018          test -z "$ac_c_werror_flag" ||
3019          test ! -s conftest.err
3020        } && test -s conftest.$ac_objext; then
3021   ac_cv_prog_cc_c89=$ac_arg
3022 else
3023   echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026
3027 fi
3028
3029 rm -f core conftest.err conftest.$ac_objext
3030   test "x$ac_cv_prog_cc_c89" != "xno" && break
3031 done
3032 rm -f conftest.$ac_ext
3033 CC=$ac_save_CC
3034
3035 fi
3036 # AC_CACHE_VAL
3037 case "x$ac_cv_prog_cc_c89" in
3038   x)
3039     { echo "$as_me:$LINENO: result: none needed" >&5
3040 echo "${ECHO_T}none needed" >&6; } ;;
3041   xno)
3042     { echo "$as_me:$LINENO: result: unsupported" >&5
3043 echo "${ECHO_T}unsupported" >&6; } ;;
3044   *)
3045     CC="$CC $ac_cv_prog_cc_c89"
3046     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3047 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3048 esac
3049
3050
3051 ac_ext=c
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056
3057 ac_ext=cpp
3058 ac_cpp='$CXXCPP $CPPFLAGS'
3059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3062 if test -z "$CXX"; then
3063   if test -n "$CCC"; then
3064     CXX=$CCC
3065   else
3066     if test -n "$ac_tool_prefix"; then
3067   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3068   do
3069     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_CXX+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   if test -n "$CXX"; then
3077   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   for ac_exec_ext in '' $ac_executable_extensions; do
3085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 CXX=$ac_cv_prog_CXX
3097 if test -n "$CXX"; then
3098   { echo "$as_me:$LINENO: result: $CXX" >&5
3099 echo "${ECHO_T}$CXX" >&6; }
3100 else
3101   { echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6; }
3103 fi
3104
3105
3106     test -n "$CXX" && break
3107   done
3108 fi
3109 if test -z "$CXX"; then
3110   ac_ct_CXX=$CXX
3111   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3112 do
3113   # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy $ac_prog; ac_word=$2
3115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   if test -n "$ac_ct_CXX"; then
3121   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126   IFS=$as_save_IFS
3127   test -z "$as_dir" && as_dir=.
3128   for ac_exec_ext in '' $ac_executable_extensions; do
3129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130     ac_cv_prog_ac_ct_CXX="$ac_prog"
3131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132     break 2
3133   fi
3134 done
3135 done
3136 IFS=$as_save_IFS
3137
3138 fi
3139 fi
3140 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3141 if test -n "$ac_ct_CXX"; then
3142   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3143 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3144 else
3145   { echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6; }
3147 fi
3148
3149
3150   test -n "$ac_ct_CXX" && break
3151 done
3152
3153   if test "x$ac_ct_CXX" = x; then
3154     CXX="g++"
3155   else
3156     case $cross_compiling:$ac_tool_warned in
3157 yes:)
3158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3159 whose name does not start with the host triplet.  If you think this
3160 configuration is useful to you, please write to autoconf@gnu.org." >&5
3161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3162 whose name does not start with the host triplet.  If you think this
3163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166     CXX=$ac_ct_CXX
3167   fi
3168 fi
3169
3170   fi
3171 fi
3172 # Provide some information about the compiler.
3173 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3174 ac_compiler=`set X $ac_compile; echo $2`
3175 { (ac_try="$ac_compiler --version >&5"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compiler --version >&5") 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }
3185 { (ac_try="$ac_compiler -v >&5"
3186 case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_compiler -v >&5") 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }
3195 { (ac_try="$ac_compiler -V >&5"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_compiler -V >&5") 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }
3205
3206 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3207 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3208 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221 #ifndef __GNUC__
3222        choke me
3223 #endif
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_compile") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } && {
3243          test -z "$ac_cxx_werror_flag" ||
3244          test ! -s conftest.err
3245        } && test -s conftest.$ac_objext; then
3246   ac_compiler_gnu=yes
3247 else
3248   echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251         ac_compiler_gnu=no
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3256
3257 fi
3258 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3259 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3260 GXX=`test $ac_compiler_gnu = yes && echo yes`
3261 ac_test_CXXFLAGS=${CXXFLAGS+set}
3262 ac_save_CXXFLAGS=$CXXFLAGS
3263 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3264 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_cxx_g+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3269    ac_cxx_werror_flag=yes
3270    ac_cv_prog_cxx_g=no
3271    CXXFLAGS="-g"
3272    cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278
3279 int
3280 main ()
3281 {
3282
3283   ;
3284   return 0;
3285 }
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_compile") 2>conftest.er1
3295   ac_status=$?
3296   grep -v '^ *+' conftest.er1 >conftest.err
3297   rm -f conftest.er1
3298   cat conftest.err >&5
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); } && {
3301          test -z "$ac_cxx_werror_flag" ||
3302          test ! -s conftest.err
3303        } && test -s conftest.$ac_objext; then
3304   ac_cv_prog_cxx_g=yes
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309         CXXFLAGS=""
3310       cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316
3317 int
3318 main ()
3319 {
3320
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332   (eval "$ac_compile") 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } && {
3339          test -z "$ac_cxx_werror_flag" ||
3340          test ! -s conftest.err
3341        } && test -s conftest.$ac_objext; then
3342   :
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3348          CXXFLAGS="-g"
3349          cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355
3356 int
3357 main ()
3358 {
3359
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_compile") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } && {
3378          test -z "$ac_cxx_werror_flag" ||
3379          test ! -s conftest.err
3380        } && test -s conftest.$ac_objext; then
3381   ac_cv_prog_cxx_g=yes
3382 else
3383   echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3385
3386
3387 fi
3388
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 fi
3394
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3397 fi
3398 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3400 if test "$ac_test_CXXFLAGS" = set; then
3401   CXXFLAGS=$ac_save_CXXFLAGS
3402 elif test $ac_cv_prog_cxx_g = yes; then
3403   if test "$GXX" = yes; then
3404     CXXFLAGS="-g -O2"
3405   else
3406     CXXFLAGS="-g"
3407   fi
3408 else
3409   if test "$GXX" = yes; then
3410     CXXFLAGS="-O2"
3411   else
3412     CXXFLAGS=
3413   fi
3414 fi
3415 ac_ext=c
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420
3421 if test "x$CC" != xcc; then
3422   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3423 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3424 else
3425   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3426 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3427 fi
3428 set dummy $CC; ac_cc=`echo $2 |
3429                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3430 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3431   echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439
3440 int
3441 main ()
3442 {
3443
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 # Make sure it works both with $CC and with simple cc.
3449 # We do the test twice because some compilers refuse to overwrite an
3450 # existing .o file with -o, though they will create one.
3451 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3452 rm -f conftest2.*
3453 if { (case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_try") 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } &&
3462    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); };
3471 then
3472   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3473   if test "x$CC" != xcc; then
3474     # Test first that cc exists at all.
3475     if { ac_try='cc -c conftest.$ac_ext >&5'
3476   { (case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481   (eval "$ac_try") 2>&5
3482   ac_status=$?
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }; }; then
3485       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3486       rm -f conftest2.*
3487       if { (case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_try") 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } &&
3496          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_try") 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); };
3505       then
3506         # cc works too.
3507         :
3508       else
3509         # cc exists but doesn't like -o.
3510         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3511       fi
3512     fi
3513   fi
3514 else
3515   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3516 fi
3517 rm -f core conftest*
3518
3519 fi
3520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3521   { echo "$as_me:$LINENO: result: yes" >&5
3522 echo "${ECHO_T}yes" >&6; }
3523 else
3524   { echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; }
3526
3527 cat >>confdefs.h <<\_ACEOF
3528 #define NO_MINUS_C_MINUS_O 1
3529 _ACEOF
3530
3531 fi
3532
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3539 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3540 # On Suns, sometimes $CPP names a directory.
3541 if test -n "$CPP" && test -d "$CPP"; then
3542   CPP=
3543 fi
3544 if test -z "$CPP"; then
3545   if test "${ac_cv_prog_CPP+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548       # Double quotes because CPP needs to be expanded
3549     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3550     do
3551       ac_preproc_ok=false
3552 for ac_c_preproc_warn_flag in '' yes
3553 do
3554   # Use a header file that comes with gcc, so configuring glibc
3555   # with a fresh cross-compiler works.
3556   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3557   # <limits.h> exists even on freestanding compilers.
3558   # On the NeXT, cc -E runs the code through the compiler's parser,
3559   # not just through cpp. "Syntax error" is here to catch this case.
3560   cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h.  */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h.  */
3566 #ifdef __STDC__
3567 # include <limits.h>
3568 #else
3569 # include <assert.h>
3570 #endif
3571                      Syntax error
3572 _ACEOF
3573 if { (ac_try="$ac_cpp conftest.$ac_ext"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } >/dev/null && {
3586          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3587          test ! -s conftest.err
3588        }; then
3589   :
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594   # Broken: fails on valid input.
3595 continue
3596 fi
3597
3598 rm -f conftest.err conftest.$ac_ext
3599
3600   # OK, works on sane cases.  Now check whether nonexistent headers
3601   # can be detected and how.
3602   cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608 #include <ac_nonexistent.h>
3609 _ACEOF
3610 if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } >/dev/null && {
3623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3624          test ! -s conftest.err
3625        }; then
3626   # Broken: success on invalid input.
3627 continue
3628 else
3629   echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632   # Passes both tests.
3633 ac_preproc_ok=:
3634 break
3635 fi
3636
3637 rm -f conftest.err conftest.$ac_ext
3638
3639 done
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.err conftest.$ac_ext
3642 if $ac_preproc_ok; then
3643   break
3644 fi
3645
3646     done
3647     ac_cv_prog_CPP=$CPP
3648
3649 fi
3650   CPP=$ac_cv_prog_CPP
3651 else
3652   ac_cv_prog_CPP=$CPP
3653 fi
3654 { echo "$as_me:$LINENO: result: $CPP" >&5
3655 echo "${ECHO_T}$CPP" >&6; }
3656 ac_preproc_ok=false
3657 for ac_c_preproc_warn_flag in '' yes
3658 do
3659   # Use a header file that comes with gcc, so configuring glibc
3660   # with a fresh cross-compiler works.
3661   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3662   # <limits.h> exists even on freestanding compilers.
3663   # On the NeXT, cc -E runs the code through the compiler's parser,
3664   # not just through cpp. "Syntax error" is here to catch this case.
3665   cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h.  */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h.  */
3671 #ifdef __STDC__
3672 # include <limits.h>
3673 #else
3674 # include <assert.h>
3675 #endif
3676                      Syntax error
3677 _ACEOF
3678 if { (ac_try="$ac_cpp conftest.$ac_ext"
3679 case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3685   ac_status=$?
3686   grep -v '^ *+' conftest.er1 >conftest.err
3687   rm -f conftest.er1
3688   cat conftest.err >&5
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } >/dev/null && {
3691          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3692          test ! -s conftest.err
3693        }; then
3694   :
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699   # Broken: fails on valid input.
3700 continue
3701 fi
3702
3703 rm -f conftest.err conftest.$ac_ext
3704
3705   # OK, works on sane cases.  Now check whether nonexistent headers
3706   # can be detected and how.
3707   cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h.  */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h.  */
3713 #include <ac_nonexistent.h>
3714 _ACEOF
3715 if { (ac_try="$ac_cpp conftest.$ac_ext"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } >/dev/null && {
3728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3729          test ! -s conftest.err
3730        }; then
3731   # Broken: success on invalid input.
3732 continue
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737   # Passes both tests.
3738 ac_preproc_ok=:
3739 break
3740 fi
3741
3742 rm -f conftest.err conftest.$ac_ext
3743
3744 done
3745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3746 rm -f conftest.err conftest.$ac_ext
3747 if $ac_preproc_ok; then
3748   :
3749 else
3750   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3751 See \`config.log' for more details." >&5
3752 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3753 See \`config.log' for more details." >&2;}
3754    { (exit 1); exit 1; }; }
3755 fi
3756
3757 ac_ext=c
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762
3763
3764 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3765 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3766 if test "${ac_cv_path_GREP+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   # Extract the first word of "grep ggrep" to use in msg output
3770 if test -z "$GREP"; then
3771 set dummy grep ggrep; ac_prog_name=$2
3772 if test "${ac_cv_path_GREP+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   ac_path_GREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3779 do
3780   IFS=$as_save_IFS
3781   test -z "$as_dir" && as_dir=.
3782   for ac_prog in grep ggrep; do
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3785     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3786     # Check for GNU ac_path_GREP and select it if it is found.
3787   # Check for GNU $ac_path_GREP
3788 case `"$ac_path_GREP" --version 2>&1` in
3789 *GNU*)
3790   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3791 *)
3792   ac_count=0
3793   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3794   while :
3795   do
3796     cat "conftest.in" "conftest.in" >"conftest.tmp"
3797     mv "conftest.tmp" "conftest.in"
3798     cp "conftest.in" "conftest.nl"
3799     echo 'GREP' >> "conftest.nl"
3800     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802     ac_count=`expr $ac_count + 1`
3803     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3804       # Best one so far, save it but keep looking for a better one
3805       ac_cv_path_GREP="$ac_path_GREP"
3806       ac_path_GREP_max=$ac_count
3807     fi
3808     # 10*(2^10) chars as input seems more than enough
3809     test $ac_count -gt 10 && break
3810   done
3811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 esac
3813
3814
3815     $ac_path_GREP_found && break 3
3816   done
3817 done
3818
3819 done
3820 IFS=$as_save_IFS
3821
3822
3823 fi
3824
3825 GREP="$ac_cv_path_GREP"
3826 if test -z "$GREP"; then
3827   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3828 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3829    { (exit 1); exit 1; }; }
3830 fi
3831
3832 else
3833   ac_cv_path_GREP=$GREP
3834 fi
3835
3836
3837 fi
3838 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3839 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3840  GREP="$ac_cv_path_GREP"
3841
3842
3843 { echo "$as_me:$LINENO: checking for egrep" >&5
3844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3845 if test "${ac_cv_path_EGREP+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3849    then ac_cv_path_EGREP="$GREP -E"
3850    else
3851      # Extract the first word of "egrep" to use in msg output
3852 if test -z "$EGREP"; then
3853 set dummy egrep; ac_prog_name=$2
3854 if test "${ac_cv_path_EGREP+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   ac_path_EGREP_found=false
3858 # Loop through the user's path and test for each of PROGNAME-LIST
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3861 do
3862   IFS=$as_save_IFS
3863   test -z "$as_dir" && as_dir=.
3864   for ac_prog in egrep; do
3865   for ac_exec_ext in '' $ac_executable_extensions; do
3866     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3867     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3868     # Check for GNU ac_path_EGREP and select it if it is found.
3869   # Check for GNU $ac_path_EGREP
3870 case `"$ac_path_EGREP" --version 2>&1` in
3871 *GNU*)
3872   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3873 *)
3874   ac_count=0
3875   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3876   while :
3877   do
3878     cat "conftest.in" "conftest.in" >"conftest.tmp"
3879     mv "conftest.tmp" "conftest.in"
3880     cp "conftest.in" "conftest.nl"
3881     echo 'EGREP' >> "conftest.nl"
3882     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3883     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3884     ac_count=`expr $ac_count + 1`
3885     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3886       # Best one so far, save it but keep looking for a better one
3887       ac_cv_path_EGREP="$ac_path_EGREP"
3888       ac_path_EGREP_max=$ac_count
3889     fi
3890     # 10*(2^10) chars as input seems more than enough
3891     test $ac_count -gt 10 && break
3892   done
3893   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894 esac
3895
3896
3897     $ac_path_EGREP_found && break 3
3898   done
3899 done
3900
3901 done
3902 IFS=$as_save_IFS
3903
3904
3905 fi
3906
3907 EGREP="$ac_cv_path_EGREP"
3908 if test -z "$EGREP"; then
3909   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3910 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3911    { (exit 1); exit 1; }; }
3912 fi
3913
3914 else
3915   ac_cv_path_EGREP=$EGREP
3916 fi
3917
3918
3919    fi
3920 fi
3921 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3922 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3923  EGREP="$ac_cv_path_EGREP"
3924
3925
3926 if test $ac_cv_c_compiler_gnu = yes; then
3927     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3928 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3929 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932     ac_pattern="Autoconf.*'x'"
3933   cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939 #include <sgtty.h>
3940 Autoconf TIOCGETP
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3944   ac_cv_prog_gcc_traditional=yes
3945 else
3946   ac_cv_prog_gcc_traditional=no
3947 fi
3948 rm -f conftest*
3949
3950
3951   if test $ac_cv_prog_gcc_traditional = no; then
3952     cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958 #include <termio.h>
3959 Autoconf TCGETA
3960 _ACEOF
3961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3962   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3963   ac_cv_prog_gcc_traditional=yes
3964 fi
3965 rm -f conftest*
3966
3967   fi
3968 fi
3969 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3970 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3971   if test $ac_cv_prog_gcc_traditional = yes; then
3972     CC="$CC -traditional"
3973   fi
3974 fi
3975
3976 BASECC=`basename $CC`
3977 have_gcc=no
3978 if test "x$BASECC" = xgcc; then
3979    cat >>confdefs.h <<\_ACEOF
3980 #define HAVE_GCC 1
3981 _ACEOF
3982
3983    have_gcc=yes
3984 fi
3985 # Extract the first word of "$CXX", so it can be a program name with args.
3986 set dummy $CXX; ac_word=$2
3987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_CXX+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   case $CXX in
3993   [\\/]* | ?:[\\/]*)
3994   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3995   ;;
3996   *)
3997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002   for ac_exec_ext in '' $ac_executable_extensions; do
4003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006     break 2
4007   fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4013   ;;
4014 esac
4015 fi
4016 CXX=$ac_cv_path_CXX
4017 if test -n "$CXX"; then
4018   { echo "$as_me:$LINENO: result: $CXX" >&5
4019 echo "${ECHO_T}$CXX" >&6; }
4020 else
4021   { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4023 fi
4024
4025
4026 if test ! -e $CXX; then
4027    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4028 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4029    { (exit 1); exit 1; }; }
4030 fi
4031
4032 # Find a good install program.  We prefer a C program (faster),
4033 # so one script is as good as another.  But avoid the broken or
4034 # incompatible versions:
4035 # SysV /etc/install, /usr/sbin/install
4036 # SunOS /usr/etc/install
4037 # IRIX /sbin/install
4038 # AIX /bin/install
4039 # AmigaOS /C/install, which installs bootblocks on floppy discs
4040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4043 # OS/2's system install, which has a completely different semantic
4044 # ./install, which can be erroneously created by make from ./install.sh.
4045 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4046 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4047 if test -z "$INSTALL"; then
4048 if test "${ac_cv_path_install+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   # Account for people who put trailing slashes in PATH elements.
4057 case $as_dir/ in
4058   ./ | .// | /cC/* | \
4059   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4060   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4061   /usr/ucb/* ) ;;
4062   *)
4063     # OSF1 and SCO ODT 3.0 have their own names for install.
4064     # Don't use installbsd from OSF since it installs stuff as root
4065     # by default.
4066     for ac_prog in ginstall scoinst install; do
4067       for ac_exec_ext in '' $ac_executable_extensions; do
4068         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4069           if test $ac_prog = install &&
4070             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4071             # AIX install.  It has an incompatible calling convention.
4072             :
4073           elif test $ac_prog = install &&
4074             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4075             # program-specific install script used by HP pwplus--don't use.
4076             :
4077           else
4078             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4079             break 3
4080           fi
4081         fi
4082       done
4083     done
4084     ;;
4085 esac
4086 done
4087 IFS=$as_save_IFS
4088
4089
4090 fi
4091   if test "${ac_cv_path_install+set}" = set; then
4092     INSTALL=$ac_cv_path_install
4093   else
4094     # As a last resort, use the slow shell script.  Don't cache a
4095     # value for INSTALL within a source directory, because that will
4096     # break other packages using the cache if that directory is
4097     # removed, or if the value is a relative name.
4098     INSTALL=$ac_install_sh
4099   fi
4100 fi
4101 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4102 echo "${ECHO_T}$INSTALL" >&6; }
4103
4104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4105 # It thinks the first close brace ends the variable substitution.
4106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4107
4108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4109
4110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4111
4112 if test -n "$ac_tool_prefix"; then
4113   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4117 if test "${ac_cv_prog_RANLIB+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   if test -n "$RANLIB"; then
4121   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 fi
4139 fi
4140 RANLIB=$ac_cv_prog_RANLIB
4141 if test -n "$RANLIB"; then
4142   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4143 echo "${ECHO_T}$RANLIB" >&6; }
4144 else
4145   { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4147 fi
4148
4149
4150 fi
4151 if test -z "$ac_cv_prog_RANLIB"; then
4152   ac_ct_RANLIB=$RANLIB
4153   # Extract the first word of "ranlib", so it can be a program name with args.
4154 set dummy ranlib; ac_word=$2
4155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4157 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   if test -n "$ac_ct_RANLIB"; then
4161   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168   for ac_exec_ext in '' $ac_executable_extensions; do
4169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170     ac_cv_prog_ac_ct_RANLIB="ranlib"
4171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172     break 2
4173   fi
4174 done
4175 done
4176 IFS=$as_save_IFS
4177
4178 fi
4179 fi
4180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4181 if test -n "$ac_ct_RANLIB"; then
4182   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4183 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4184 else
4185   { echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6; }
4187 fi
4188
4189   if test "x$ac_ct_RANLIB" = x; then
4190     RANLIB=":"
4191   else
4192     case $cross_compiling:$ac_tool_warned in
4193 yes:)
4194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4195 whose name does not start with the host triplet.  If you think this
4196 configuration is useful to you, please write to autoconf@gnu.org." >&5
4197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4198 whose name does not start with the host triplet.  If you think this
4199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4200 ac_tool_warned=yes ;;
4201 esac
4202     RANLIB=$ac_ct_RANLIB
4203   fi
4204 else
4205   RANLIB="$ac_cv_prog_RANLIB"
4206 fi
4207
4208 # Extract the first word of "mv", so it can be a program name with args.
4209 set dummy mv; ac_word=$2
4210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212 if test "${ac_cv_path_MV+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   case $MV in
4216   [\\/]* | ?:[\\/]*)
4217   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4218   ;;
4219   *)
4220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225   for ac_exec_ext in '' $ac_executable_extensions; do
4226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232 done
4233 IFS=$as_save_IFS
4234
4235   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4236   ;;
4237 esac
4238 fi
4239 MV=$ac_cv_path_MV
4240 if test -n "$MV"; then
4241   { echo "$as_me:$LINENO: result: $MV" >&5
4242 echo "${ECHO_T}$MV" >&6; }
4243 else
4244   { echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6; }
4246 fi
4247
4248
4249 # Extract the first word of "rm", so it can be a program name with args.
4250 set dummy rm; ac_word=$2
4251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4253 if test "${ac_cv_path_RM+set}" = set; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   case $RM in
4257   [\\/]* | ?:[\\/]*)
4258   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4259   ;;
4260   *)
4261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266   for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4277   ;;
4278 esac
4279 fi
4280 RM=$ac_cv_path_RM
4281 if test -n "$RM"; then
4282   { echo "$as_me:$LINENO: result: $RM" >&5
4283 echo "${ECHO_T}$RM" >&6; }
4284 else
4285   { echo "$as_me:$LINENO: result: no" >&5
4286 echo "${ECHO_T}no" >&6; }
4287 fi
4288
4289
4290 # Extract the first word of "cp", so it can be a program name with args.
4291 set dummy cp; ac_word=$2
4292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4294 if test "${ac_cv_path_CP+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   case $CP in
4298   [\\/]* | ?:[\\/]*)
4299   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4300   ;;
4301   *)
4302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307   for ac_exec_ext in '' $ac_executable_extensions; do
4308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314 done
4315 IFS=$as_save_IFS
4316
4317   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4318   ;;
4319 esac
4320 fi
4321 CP=$ac_cv_path_CP
4322 if test -n "$CP"; then
4323   { echo "$as_me:$LINENO: result: $CP" >&5
4324 echo "${ECHO_T}$CP" >&6; }
4325 else
4326   { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4328 fi
4329
4330
4331 # Extract the first word of "sed", so it can be a program name with args.
4332 set dummy sed; ac_word=$2
4333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4335 if test "${ac_cv_path_SED+set}" = set; then
4336   echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338   case $SED in
4339   [\\/]* | ?:[\\/]*)
4340   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4341   ;;
4342   *)
4343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348   for ac_exec_ext in '' $ac_executable_extensions; do
4349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4359   ;;
4360 esac
4361 fi
4362 SED=$ac_cv_path_SED
4363 if test -n "$SED"; then
4364   { echo "$as_me:$LINENO: result: $SED" >&5
4365 echo "${ECHO_T}$SED" >&6; }
4366 else
4367   { echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6; }
4369 fi
4370
4371
4372 # Extract the first word of "echo", so it can be a program name with args.
4373 set dummy echo; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_path_ECHO+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   case $ECHO in
4380   [\\/]* | ?:[\\/]*)
4381   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4382   ;;
4383   *)
4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389   for ac_exec_ext in '' $ac_executable_extensions; do
4390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4400   ;;
4401 esac
4402 fi
4403 ECHO=$ac_cv_path_ECHO
4404 if test -n "$ECHO"; then
4405   { echo "$as_me:$LINENO: result: $ECHO" >&5
4406 echo "${ECHO_T}$ECHO" >&6; }
4407 else
4408   { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4410 fi
4411
4412
4413 # Extract the first word of "cmp", so it can be a program name with args.
4414 set dummy cmp; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_path_CMP+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   case $CMP in
4421   [\\/]* | ?:[\\/]*)
4422   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4423   ;;
4424   *)
4425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428   IFS=$as_save_IFS
4429   test -z "$as_dir" && as_dir=.
4430   for ac_exec_ext in '' $ac_executable_extensions; do
4431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434     break 2
4435   fi
4436 done
4437 done
4438 IFS=$as_save_IFS
4439
4440   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4441   ;;
4442 esac
4443 fi
4444 CMP=$ac_cv_path_CMP
4445 if test -n "$CMP"; then
4446   { echo "$as_me:$LINENO: result: $CMP" >&5
4447 echo "${ECHO_T}$CMP" >&6; }
4448 else
4449   { echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6; }
4451 fi
4452
4453
4454 # Extract the first word of "tbl", so it can be a program name with args.
4455 set dummy tbl; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_path_TBL+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   case $TBL in
4462   [\\/]* | ?:[\\/]*)
4463   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4464   ;;
4465   *)
4466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471   for ac_exec_ext in '' $ac_executable_extensions; do
4472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4482   ;;
4483 esac
4484 fi
4485 TBL=$ac_cv_path_TBL
4486 if test -n "$TBL"; then
4487   { echo "$as_me:$LINENO: result: $TBL" >&5
4488 echo "${ECHO_T}$TBL" >&6; }
4489 else
4490   { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4492 fi
4493
4494
4495 # Extract the first word of "ar", so it can be a program name with args.
4496 set dummy ar; ac_word=$2
4497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4499 if test "${ac_cv_path_AR+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   case $AR in
4503   [\\/]* | ?:[\\/]*)
4504   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4505   ;;
4506   *)
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520 IFS=$as_save_IFS
4521
4522   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4523   ;;
4524 esac
4525 fi
4526 AR=$ac_cv_path_AR
4527 if test -n "$AR"; then
4528   { echo "$as_me:$LINENO: result: $AR" >&5
4529 echo "${ECHO_T}$AR" >&6; }
4530 else
4531   { echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6; }
4533 fi
4534
4535
4536 # Extract the first word of "openssl", so it can be a program name with args.
4537 set dummy openssl; ac_word=$2
4538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4540 if test "${ac_cv_path_OPENSSL+set}" = set; then
4541   echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543   case $OPENSSL in
4544   [\\/]* | ?:[\\/]*)
4545   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4546   ;;
4547   *)
4548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553   for ac_exec_ext in '' $ac_executable_extensions; do
4554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4564   ;;
4565 esac
4566 fi
4567 OPENSSL=$ac_cv_path_OPENSSL
4568 if test -n "$OPENSSL"; then
4569   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4570 echo "${ECHO_T}$OPENSSL" >&6; }
4571 else
4572   { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4574 fi
4575
4576
4577 # Extract the first word of "mtx", so it can be a program name with args.
4578 set dummy mtx; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_path_MTX+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   case $MTX in
4585   [\\/]* | ?:[\\/]*)
4586   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4587   ;;
4588   *)
4589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_exec_ext in '' $ac_executable_extensions; do
4595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601 done
4602 IFS=$as_save_IFS
4603
4604   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4605   ;;
4606 esac
4607 fi
4608 MTX=$ac_cv_path_MTX
4609 if test -n "$MTX"; then
4610   { echo "$as_me:$LINENO: result: $MTX" >&5
4611 echo "${ECHO_T}$MTX" >&6; }
4612 else
4613   { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 fi
4616
4617
4618 # Extract the first word of "dd", so it can be a program name with args.
4619 set dummy dd; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_path_DD+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   case $DD in
4626   [\\/]* | ?:[\\/]*)
4627   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4628   ;;
4629   *)
4630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   test -z "$as_dir" && as_dir=.
4635   for ac_exec_ext in '' $ac_executable_extensions; do
4636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639     break 2
4640   fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4646   ;;
4647 esac
4648 fi
4649 DD=$ac_cv_path_DD
4650 if test -n "$DD"; then
4651   { echo "$as_me:$LINENO: result: $DD" >&5
4652 echo "${ECHO_T}$DD" >&6; }
4653 else
4654   { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656 fi
4657
4658
4659 # Extract the first word of "mkisofs", so it can be a program name with args.
4660 set dummy mkisofs; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_path_MKISOFS+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   case $MKISOFS in
4667   [\\/]* | ?:[\\/]*)
4668   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4669   ;;
4670   *)
4671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4687   ;;
4688 esac
4689 fi
4690 MKISOFS=$ac_cv_path_MKISOFS
4691 if test -n "$MKISOFS"; then
4692   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4693 echo "${ECHO_T}$MKISOFS" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700 # Extract the first word of "python", so it can be a program name with args.
4701 set dummy python; ac_word=$2
4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704 if test "${ac_cv_path_PYTHON+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   case $PYTHON in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   for ac_exec_ext in '' $ac_executable_extensions; do
4718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724 done
4725 IFS=$as_save_IFS
4726
4727   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4728   ;;
4729 esac
4730 fi
4731 PYTHON=$ac_cv_path_PYTHON
4732 if test -n "$PYTHON"; then
4733   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4734 echo "${ECHO_T}$PYTHON" >&6; }
4735 else
4736   { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4738 fi
4739
4740
4741 # Extract the first word of "growisofs", so it can be a program name with args.
4742 set dummy growisofs; ac_word=$2
4743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   case $GROWISOFS in
4749   [\\/]* | ?:[\\/]*)
4750   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4751   ;;
4752   *)
4753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758   for ac_exec_ext in '' $ac_executable_extensions; do
4759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4769   ;;
4770 esac
4771 fi
4772 GROWISOFS=$ac_cv_path_GROWISOFS
4773 if test -n "$GROWISOFS"; then
4774   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4775 echo "${ECHO_T}$GROWISOFS" >&6; }
4776 else
4777   { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4779 fi
4780
4781
4782 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4783 set dummy dvd+rw-mediainfo; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   case $DVDRWMEDIAINFO in
4790   [\\/]* | ?:[\\/]*)
4791   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4792   ;;
4793   *)
4794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4810   ;;
4811 esac
4812 fi
4813 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4814 if test -n "$DVDRWMEDIAINFO"; then
4815   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4816 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4817 else
4818   { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4820 fi
4821
4822
4823 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4824 set dummy dvd+rw-format; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   case $DVDRWFORMAT in
4831   [\\/]* | ?:[\\/]*)
4832   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4833   ;;
4834   *)
4835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840   for ac_exec_ext in '' $ac_executable_extensions; do
4841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844     break 2
4845   fi
4846 done
4847 done
4848 IFS=$as_save_IFS
4849
4850   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4851   ;;
4852 esac
4853 fi
4854 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4855 if test -n "$DVDRWFORMAT"; then
4856   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4857 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4858 else
4859   { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4861 fi
4862
4863
4864 # Extract the first word of "pkg-config", so it can be a program name with args.
4865 set dummy pkg-config; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   case $PKGCONFIG in
4872   [\\/]* | ?:[\\/]*)
4873   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4874   ;;
4875   *)
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4892   ;;
4893 esac
4894 fi
4895 PKGCONFIG=$ac_cv_path_PKGCONFIG
4896 if test -n "$PKGCONFIG"; then
4897   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4898 echo "${ECHO_T}$PKGCONFIG" >&6; }
4899 else
4900   { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4902 fi
4903
4904
4905 # Extract the first word of "qmake", so it can be a program name with args.
4906 set dummy qmake; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_path_QMAKE+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   case $QMAKE in
4913   [\\/]* | ?:[\\/]*)
4914   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4915   ;;
4916   *)
4917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922   for ac_exec_ext in '' $ac_executable_extensions; do
4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4933   ;;
4934 esac
4935 fi
4936 QMAKE=$ac_cv_path_QMAKE
4937 if test -n "$QMAKE"; then
4938   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4939 echo "${ECHO_T}$QMAKE" >&6; }
4940 else
4941   { echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6; }
4943 fi
4944
4945
4946 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4947 set dummy qmake-qt4; ac_word=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4951   echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953   case $QMAKEQT4 in
4954   [\\/]* | ?:[\\/]*)
4955   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4956   ;;
4957   *)
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963   for ac_exec_ext in '' $ac_executable_extensions; do
4964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4974   ;;
4975 esac
4976 fi
4977 QMAKEQT4=$ac_cv_path_QMAKEQT4
4978 if test -n "$QMAKEQT4"; then
4979   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4980 echo "${ECHO_T}$QMAKEQT4" >&6; }
4981 else
4982   { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4984 fi
4985
4986
4987
4988 if test "x$WXCONFIG" = x; then
4989   WXCONFIG=wx-config
4990 fi
4991 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4992 set dummy ${WXCONFIG}; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   case $WXCONFIG in
4999   [\\/]* | ?:[\\/]*)
5000   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5001   ;;
5002   *)
5003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008   for ac_exec_ext in '' $ac_executable_extensions; do
5009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012     break 2
5013   fi
5014 done
5015 done
5016 IFS=$as_save_IFS
5017
5018   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5019   ;;
5020 esac
5021 fi
5022 WXCONFIG=$ac_cv_path_WXCONFIG
5023 if test -n "$WXCONFIG"; then
5024   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5025 echo "${ECHO_T}$WXCONFIG" >&6; }
5026 else
5027   { echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6; }
5029 fi
5030
5031
5032
5033 # Extract the first word of "cdrecord", so it can be a program name with args.
5034 set dummy cdrecord; ac_word=$2
5035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037 if test "${ac_cv_path_CDRECORD+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040   case $CDRECORD in
5041   [\\/]* | ?:[\\/]*)
5042   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5043   ;;
5044   *)
5045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048   IFS=$as_save_IFS
5049   test -z "$as_dir" && as_dir=.
5050   for ac_exec_ext in '' $ac_executable_extensions; do
5051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054     break 2
5055   fi
5056 done
5057 done
5058 IFS=$as_save_IFS
5059
5060   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5061   ;;
5062 esac
5063 fi
5064 CDRECORD=$ac_cv_path_CDRECORD
5065 if test -n "$CDRECORD"; then
5066   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5067 echo "${ECHO_T}$CDRECORD" >&6; }
5068 else
5069   { echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6; }
5071 fi
5072
5073
5074 # Extract the first word of "pidof", so it can be a program name with args.
5075 set dummy pidof; ac_word=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_path_PIDOF+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   case $PIDOF in
5082   [\\/]* | ?:[\\/]*)
5083   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5084   ;;
5085   *)
5086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091   for ac_exec_ext in '' $ac_executable_extensions; do
5092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5102   ;;
5103 esac
5104 fi
5105 PIDOF=$ac_cv_path_PIDOF
5106 if test -n "$PIDOF"; then
5107   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5108 echo "${ECHO_T}$PIDOF" >&6; }
5109 else
5110   { echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6; }
5112 fi
5113
5114
5115 for ac_prog in gawk mawk nawk awk
5116 do
5117   # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5121 if test "${ac_cv_prog_AWK+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   if test -n "$AWK"; then
5125   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132   for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_prog_AWK="$ac_prog"
5135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 AWK=$ac_cv_prog_AWK
5145 if test -n "$AWK"; then
5146   { echo "$as_me:$LINENO: result: $AWK" >&5
5147 echo "${ECHO_T}$AWK" >&6; }
5148 else
5149   { echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6; }
5151 fi
5152
5153
5154   test -n "$AWK" && break
5155 done
5156
5157 # Some AWK programs fail, so test it and warn the user
5158 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5159       { if ((prog == $2) || (("(" prog ")") == $2) ||
5160            (("" prog "") == $2) ||
5161            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5162 else
5163   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5164    The regex engine of $AWK is too broken to be used you
5165    might want to install GNU AWK.
5166    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5167 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5168    The regex engine of $AWK is too broken to be used you
5169    might want to install GNU AWK.
5170    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5171    { (exit 1); exit 1; }; }
5172 fi
5173 THE_AWK=$AWK
5174 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5175 set dummy $THE_AWK; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_AWK+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   case $AWK in
5182   [\\/]* | ?:[\\/]*)
5183   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5184   ;;
5185   *)
5186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191   for ac_exec_ext in '' $ac_executable_extensions; do
5192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5202   ;;
5203 esac
5204 fi
5205 AWK=$ac_cv_path_AWK
5206 if test -n "$AWK"; then
5207   { echo "$as_me:$LINENO: result: $AWK" >&5
5208 echo "${ECHO_T}$AWK" >&6; }
5209 else
5210   { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5212 fi
5213
5214
5215
5216
5217 test -n "$ARFLAG" || ARFLAGS="cr"
5218
5219
5220 MAKE_SHELL=/bin/sh
5221
5222
5223
5224
5225
5226
5227
5228 # Make sure we can run config.sub.
5229 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5230   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5231 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5232    { (exit 1); exit 1; }; }
5233
5234 { echo "$as_me:$LINENO: checking build system type" >&5
5235 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5236 if test "${ac_cv_build+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   ac_build_alias=$build_alias
5240 test "x$ac_build_alias" = x &&
5241   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5242 test "x$ac_build_alias" = x &&
5243   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5244 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5245    { (exit 1); exit 1; }; }
5246 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5247   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5248 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5249    { (exit 1); exit 1; }; }
5250
5251 fi
5252 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5253 echo "${ECHO_T}$ac_cv_build" >&6; }
5254 case $ac_cv_build in
5255 *-*-*) ;;
5256 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5257 echo "$as_me: error: invalid value of canonical build" >&2;}
5258    { (exit 1); exit 1; }; };;
5259 esac
5260 build=$ac_cv_build
5261 ac_save_IFS=$IFS; IFS='-'
5262 set x $ac_cv_build
5263 shift
5264 build_cpu=$1
5265 build_vendor=$2
5266 shift; shift
5267 # Remember, the first character of IFS is used to create $*,
5268 # except with old shells:
5269 build_os=$*
5270 IFS=$ac_save_IFS
5271 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5272
5273
5274
5275 { echo "$as_me:$LINENO: checking host system type" >&5
5276 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5277 if test "${ac_cv_host+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   if test "x$host_alias" = x; then
5281   ac_cv_host=$ac_cv_build
5282 else
5283   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5284     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5285 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5286    { (exit 1); exit 1; }; }
5287 fi
5288
5289 fi
5290 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5291 echo "${ECHO_T}$ac_cv_host" >&6; }
5292 case $ac_cv_host in
5293 *-*-*) ;;
5294 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5295 echo "$as_me: error: invalid value of canonical host" >&2;}
5296    { (exit 1); exit 1; }; };;
5297 esac
5298 host=$ac_cv_host
5299 ac_save_IFS=$IFS; IFS='-'
5300 set x $ac_cv_host
5301 shift
5302 host_cpu=$1
5303 host_vendor=$2
5304 shift; shift
5305 # Remember, the first character of IFS is used to create $*,
5306 # except with old shells:
5307 host_os=$*
5308 IFS=$ac_save_IFS
5309 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5310
5311
5312 case $host_os in
5313   *cygwin* ) CYGWIN=yes;;
5314          * ) CYGWIN=no;;
5315 esac
5316
5317 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5318 then
5319
5320
5321 if $TRUEPRG; then
5322   HAVE_SUN_OS_TRUE=
5323   HAVE_SUN_OS_FALSE='#'
5324 else
5325   HAVE_SUN_OS_TRUE='#'
5326   HAVE_SUN_OS_FALSE=
5327 fi
5328         cat >>confdefs.h <<\_ACEOF
5329 #define HAVE_SUN_OS 1
5330 _ACEOF
5331
5332 else
5333
5334
5335 if $FALSEPRG; then
5336   HAVE_SUN_OS_TRUE=
5337   HAVE_SUN_OS_FALSE='#'
5338 else
5339   HAVE_SUN_OS_TRUE='#'
5340   HAVE_SUN_OS_FALSE=
5341 fi
5342 fi
5343
5344 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5345 then
5346
5347
5348 if $TRUEPRG; then
5349   HAVE_OSF1_OS_TRUE=
5350   HAVE_OSF1_OS_FALSE='#'
5351 else
5352   HAVE_OSF1_OS_TRUE='#'
5353   HAVE_OSF1_OS_FALSE=
5354 fi
5355         cat >>confdefs.h <<\_ACEOF
5356 #define HAVE_OSF1_OS 1
5357 _ACEOF
5358
5359 else
5360
5361
5362 if $FALSEPRG; then
5363   HAVE_OSF1_OS_TRUE=
5364   HAVE_OSF1_OS_FALSE='#'
5365 else
5366   HAVE_OSF1_OS_TRUE='#'
5367   HAVE_OSF1_OS_FALSE=
5368 fi
5369 fi
5370
5371 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5372 then
5373
5374
5375 if $TRUEPRG; then
5376   HAVE_AIX_OS_TRUE=
5377   HAVE_AIX_OS_FALSE='#'
5378 else
5379   HAVE_AIX_OS_TRUE='#'
5380   HAVE_AIX_OS_FALSE=
5381 fi
5382         cat >>confdefs.h <<\_ACEOF
5383 #define HAVE_AIX_OS 1
5384 _ACEOF
5385
5386 else
5387
5388
5389 if $FALSEPRG; then
5390   HAVE_AIX_OS_TRUE=
5391   HAVE_AIX_OS_FALSE='#'
5392 else
5393   HAVE_AIX_OS_TRUE='#'
5394   HAVE_AIX_OS_FALSE=
5395 fi
5396 fi
5397
5398 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5399 then
5400
5401
5402 if $TRUEPRG; then
5403   HAVE_HPUX_OS_TRUE=
5404   HAVE_HPUX_OS_FALSE='#'
5405 else
5406   HAVE_HPUX_OS_TRUE='#'
5407   HAVE_HPUX_OS_FALSE=
5408 fi
5409         cat >>confdefs.h <<\_ACEOF
5410 #define HAVE_HPUX_OS 1
5411 _ACEOF
5412
5413 else
5414
5415
5416 if $FALSEPRG; then
5417   HAVE_HPUX_OS_TRUE=
5418   HAVE_HPUX_OS_FALSE='#'
5419 else
5420   HAVE_HPUX_OS_TRUE='#'
5421   HAVE_HPUX_OS_FALSE=
5422 fi
5423 fi
5424
5425 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5426 then
5427
5428
5429 if $TRUEPRG; then
5430   HAVE_LINUX_OS_TRUE=
5431   HAVE_LINUX_OS_FALSE='#'
5432 else
5433   HAVE_LINUX_OS_TRUE='#'
5434   HAVE_LINUX_OS_FALSE=
5435 fi
5436         cat >>confdefs.h <<\_ACEOF
5437 #define HAVE_LINUX_OS 1
5438 _ACEOF
5439
5440 else
5441
5442
5443 if $FALSEPRG; then
5444   HAVE_LINUX_OS_TRUE=
5445   HAVE_LINUX_OS_FALSE='#'
5446 else
5447   HAVE_LINUX_OS_TRUE='#'
5448   HAVE_LINUX_OS_FALSE=
5449 fi
5450 fi
5451
5452 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5453 then
5454
5455
5456 if $TRUEPRG; then
5457   HAVE_FREEBSD_OS_TRUE=
5458   HAVE_FREEBSD_OS_FALSE='#'
5459 else
5460   HAVE_FREEBSD_OS_TRUE='#'
5461   HAVE_FREEBSD_OS_FALSE=
5462 fi
5463         cat >>confdefs.h <<\_ACEOF
5464 #define HAVE_FREEBSD_OS 1
5465 _ACEOF
5466
5467 else
5468
5469
5470 if $FALSEPRG; then
5471   HAVE_FREEBSD_OS_TRUE=
5472   HAVE_FREEBSD_OS_FALSE='#'
5473 else
5474   HAVE_FREEBSD_OS_TRUE='#'
5475   HAVE_FREEBSD_OS_FALSE=
5476 fi
5477 fi
5478
5479 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5480 then
5481
5482
5483 if $TRUEPRG; then
5484   HAVE_NETBSD_OS_TRUE=
5485   HAVE_NETBSD_OS_FALSE='#'
5486 else
5487   HAVE_NETBSD_OS_TRUE='#'
5488   HAVE_NETBSD_OS_FALSE=
5489 fi
5490         cat >>confdefs.h <<\_ACEOF
5491 #define HAVE_NETBSD_OS 1
5492 _ACEOF
5493
5494 else
5495
5496
5497 if $FALSEPRG; then
5498   HAVE_NETBSD_OS_TRUE=
5499   HAVE_NETBSD_OS_FALSE='#'
5500 else
5501   HAVE_NETBSD_OS_TRUE='#'
5502   HAVE_NETBSD_OS_FALSE=
5503 fi
5504 fi
5505
5506 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5507 then
5508
5509
5510 if $TRUEPRG; then
5511   HAVE_OPENBSD_OS_TRUE=
5512   HAVE_OPENBSD_OS_FALSE='#'
5513 else
5514   HAVE_OPENBSD_OS_TRUE='#'
5515   HAVE_OPENBSD_OS_FALSE=
5516 fi
5517         cat >>confdefs.h <<\_ACEOF
5518 #define HAVE_OPENBSD_OS 1
5519 _ACEOF
5520
5521 else
5522
5523
5524 if $FALSEPRG; then
5525   HAVE_OPENBSD_OS_TRUE=
5526   HAVE_OPENBSD_OS_FALSE='#'
5527 else
5528   HAVE_OPENBSD_OS_TRUE='#'
5529   HAVE_OPENBSD_OS_FALSE=
5530 fi
5531 fi
5532
5533 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5534 then
5535
5536
5537 if $TRUEPRG; then
5538   HAVE_BSDI_OS_TRUE=
5539   HAVE_BSDI_OS_FALSE='#'
5540 else
5541   HAVE_BSDI_OS_TRUE='#'
5542   HAVE_BSDI_OS_FALSE=
5543 fi
5544         cat >>confdefs.h <<\_ACEOF
5545 #define HAVE_BSDI_OS 1
5546 _ACEOF
5547
5548 else
5549
5550
5551 if $FALSEPRG; then
5552   HAVE_BSDI_OS_TRUE=
5553   HAVE_BSDI_OS_FALSE='#'
5554 else
5555   HAVE_BSDI_OS_TRUE='#'
5556   HAVE_BSDI_OS_FALSE=
5557 fi
5558 fi
5559
5560 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5561 then
5562
5563
5564 if $TRUEPRG; then
5565   HAVE_SGI_OS_TRUE=
5566   HAVE_SGI_OS_FALSE='#'
5567 else
5568   HAVE_SGI_OS_TRUE='#'
5569   HAVE_SGI_OS_FALSE=
5570 fi
5571         cat >>confdefs.h <<\_ACEOF
5572 #define HAVE_SGI_OS 1
5573 _ACEOF
5574
5575 else
5576
5577
5578 if $FALSEPRG; then
5579   HAVE_SGI_OS_TRUE=
5580   HAVE_SGI_OS_FALSE='#'
5581 else
5582   HAVE_SGI_OS_TRUE='#'
5583   HAVE_SGI_OS_FALSE=
5584 fi
5585 fi
5586
5587 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5588 then
5589
5590
5591 if $TRUEPRG; then
5592   HAVE_IRIX_OS_TRUE=
5593   HAVE_IRIX_OS_FALSE='#'
5594 else
5595   HAVE_IRIX_OS_TRUE='#'
5596   HAVE_IRIX_OS_FALSE=
5597 fi
5598         cat >>confdefs.h <<\_ACEOF
5599 #define HAVE_IRIX_OS 1
5600 _ACEOF
5601
5602 else
5603
5604
5605 if $FALSEPRG; then
5606   HAVE_IRIX_OS_TRUE=
5607   HAVE_IRIX_OS_FALSE='#'
5608 else
5609   HAVE_IRIX_OS_TRUE='#'
5610   HAVE_IRIX_OS_FALSE=
5611 fi
5612 fi
5613
5614 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5615 then
5616
5617
5618 if $TRUEPRG; then
5619   HAVE_DARWIN_OS_TRUE=
5620   HAVE_DARWIN_OS_FALSE='#'
5621 else
5622   HAVE_DARWIN_OS_TRUE='#'
5623   HAVE_DARWIN_OS_FALSE=
5624 fi
5625     cat >>confdefs.h <<\_ACEOF
5626 #define HAVE_DARWIN_OS 1
5627 _ACEOF
5628
5629 else
5630
5631
5632 if $FALSEPRG; then
5633   HAVE_DARWIN_OS_TRUE=
5634   HAVE_DARWIN_OS_FALSE='#'
5635 else
5636   HAVE_DARWIN_OS_TRUE='#'
5637   HAVE_DARWIN_OS_FALSE=
5638 fi
5639 fi
5640
5641
5642 # -----------------------------------------------------------
5643 # ----------------------------------------------------------
5644 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5645 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5646 if test "x$DISTNAME" != "x"
5647 then
5648         echo "distname set to $DISTNAME"
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5650 then
5651         DISTNAME=alpha
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5653 then
5654         DISTNAME=aix
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5656 then
5657         DISTNAME=hpux
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5659 then
5660         DISTNAME=solaris
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5662 then
5663         DISTNAME=freebsd
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5665 then
5666         DISTNAME=netbsd
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5668 then
5669         DISTNAME=openbsd
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5671 then
5672         DISTNAME=irix
5673 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5674 then
5675         DISTNAME=bsdi
5676 elif test -f /etc/SuSE-release
5677 then
5678         DISTNAME=suse
5679 elif test -d /etc/SuSEconfig
5680 then
5681         DISTNAME=suse5
5682 elif test -f /etc/mandrake-release
5683 then
5684         DISTNAME=mandrake
5685 elif test -f /etc/whitebox-release
5686 then
5687        DISTNAME=redhat
5688 elif test -f /etc/redhat-release
5689 then
5690         DISTNAME=redhat
5691 elif test -f /etc/gentoo-release
5692 then
5693         DISTNAME=gentoo
5694 elif test -f /etc/debian_version
5695 then
5696         DISTNAME=debian
5697 elif test -f /etc/slackware-version
5698 then
5699         DISTNAME=slackware
5700 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5701 then
5702     DISTNAME=darwin
5703 elif test -f /etc/engarde-version
5704 then
5705         DISTNAME=engarde
5706 elif test "$CYGWIN" = yes
5707 then
5708         DISTNAME=cygwin
5709         cat >>confdefs.h <<\_ACEOF
5710 #define HAVE_CYGWIN 1
5711 _ACEOF
5712
5713 else
5714         DISTNAME=unknown
5715 fi
5716 { echo "$as_me:$LINENO: result: done" >&5
5717 echo "${ECHO_T}done" >&6; }
5718
5719
5720 # --------------------------------------------------
5721 # Suppport for gettext (translations)
5722 # By default, $datadir is ${prefix}/share
5723 # --------------------------------------------------
5724 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5725 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5726 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5727 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   cat >conftest.make <<\_ACEOF
5731 SHELL = /bin/sh
5732 all:
5733         @echo '@@@%%%=$(MAKE)=@@@%%%'
5734 _ACEOF
5735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5736 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5737   *@@@%%%=?*=@@@%%%*)
5738     eval ac_cv_prog_make_${ac_make}_set=yes;;
5739   *)
5740     eval ac_cv_prog_make_${ac_make}_set=no;;
5741 esac
5742 rm -f conftest.make
5743 fi
5744 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5745   { echo "$as_me:$LINENO: result: yes" >&5
5746 echo "${ECHO_T}yes" >&6; }
5747   SET_MAKE=
5748 else
5749   { echo "$as_me:$LINENO: result: no" >&5
5750 echo "${ECHO_T}no" >&6; }
5751   SET_MAKE="MAKE=${MAKE-make}"
5752 fi
5753
5754
5755
5756         MKINSTALLDIRS=
5757   if test -n "$ac_aux_dir"; then
5758     case "$ac_aux_dir" in
5759       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5760       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5761     esac
5762   fi
5763   if test -z "$MKINSTALLDIRS"; then
5764     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5765   fi
5766
5767
5768
5769   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5770 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5771     # Check whether --enable-nls was given.
5772 if test "${enable_nls+set}" = set; then
5773   enableval=$enable_nls; USE_NLS=$enableval
5774 else
5775   USE_NLS=yes
5776 fi
5777
5778   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5779 echo "${ECHO_T}$USE_NLS" >&6; }
5780
5781
5782
5783
5784
5785
5786 # Prepare PATH_SEPARATOR.
5787 # The user is always right.
5788 if test "${PATH_SEPARATOR+set}" != set; then
5789   echo "#! /bin/sh" >conf$$.sh
5790   echo  "exit 0"   >>conf$$.sh
5791   chmod +x conf$$.sh
5792   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5793     PATH_SEPARATOR=';'
5794   else
5795     PATH_SEPARATOR=:
5796   fi
5797   rm -f conf$$.sh
5798 fi
5799
5800 # Find out how to test for executable files. Don't use a zero-byte file,
5801 # as systems may use methods other than mode bits to determine executability.
5802 cat >conf$$.file <<_ASEOF
5803 #! /bin/sh
5804 exit 0
5805 _ASEOF
5806 chmod +x conf$$.file
5807 if test -x conf$$.file >/dev/null 2>&1; then
5808   ac_executable_p="test -x"
5809 else
5810   ac_executable_p="test -f"
5811 fi
5812 rm -f conf$$.file
5813
5814 # Extract the first word of "msgfmt", so it can be a program name with args.
5815 set dummy msgfmt; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_path_MSGFMT+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   case "$MSGFMT" in
5822   [\\/]* | ?:[\\/]*)
5823     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5824     ;;
5825   *)
5826     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5827     for ac_dir in $PATH; do
5828       IFS="$ac_save_IFS"
5829       test -z "$ac_dir" && ac_dir=.
5830       for ac_exec_ext in '' $ac_executable_extensions; do
5831         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5832           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5833           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5834      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5835             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5836             break 2
5837           fi
5838         fi
5839       done
5840     done
5841     IFS="$ac_save_IFS"
5842   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5843     ;;
5844 esac
5845 fi
5846 MSGFMT="$ac_cv_path_MSGFMT"
5847 if test "$MSGFMT" != ":"; then
5848   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5849 echo "${ECHO_T}$MSGFMT" >&6; }
5850 else
5851   { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5853 fi
5854
5855   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5856 set dummy gmsgfmt; ac_word=$2
5857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5859 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   case $GMSGFMT in
5863   [\\/]* | ?:[\\/]*)
5864   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5865   ;;
5866   *)
5867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872   for ac_exec_ext in '' $ac_executable_extensions; do
5873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879 done
5880 IFS=$as_save_IFS
5881
5882   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5883   ;;
5884 esac
5885 fi
5886 GMSGFMT=$ac_cv_path_GMSGFMT
5887 if test -n "$GMSGFMT"; then
5888   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5889 echo "${ECHO_T}$GMSGFMT" >&6; }
5890 else
5891   { echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6; }
5893 fi
5894
5895
5896
5897
5898 # Prepare PATH_SEPARATOR.
5899 # The user is always right.
5900 if test "${PATH_SEPARATOR+set}" != set; then
5901   echo "#! /bin/sh" >conf$$.sh
5902   echo  "exit 0"   >>conf$$.sh
5903   chmod +x conf$$.sh
5904   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5905     PATH_SEPARATOR=';'
5906   else
5907     PATH_SEPARATOR=:
5908   fi
5909   rm -f conf$$.sh
5910 fi
5911
5912 # Find out how to test for executable files. Don't use a zero-byte file,
5913 # as systems may use methods other than mode bits to determine executability.
5914 cat >conf$$.file <<_ASEOF
5915 #! /bin/sh
5916 exit 0
5917 _ASEOF
5918 chmod +x conf$$.file
5919 if test -x conf$$.file >/dev/null 2>&1; then
5920   ac_executable_p="test -x"
5921 else
5922   ac_executable_p="test -f"
5923 fi
5924 rm -f conf$$.file
5925
5926 # Extract the first word of "xgettext", so it can be a program name with args.
5927 set dummy xgettext; ac_word=$2
5928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   case "$XGETTEXT" in
5934   [\\/]* | ?:[\\/]*)
5935     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5936     ;;
5937   *)
5938     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5939     for ac_dir in $PATH; do
5940       IFS="$ac_save_IFS"
5941       test -z "$ac_dir" && ac_dir=.
5942       for ac_exec_ext in '' $ac_executable_extensions; do
5943         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5944           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5945           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5946      (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
5947             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5948             break 2
5949           fi
5950         fi
5951       done
5952     done
5953     IFS="$ac_save_IFS"
5954   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5955     ;;
5956 esac
5957 fi
5958 XGETTEXT="$ac_cv_path_XGETTEXT"
5959 if test "$XGETTEXT" != ":"; then
5960   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5961 echo "${ECHO_T}$XGETTEXT" >&6; }
5962 else
5963   { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5965 fi
5966
5967     rm -f messages.po
5968
5969
5970 # Prepare PATH_SEPARATOR.
5971 # The user is always right.
5972 if test "${PATH_SEPARATOR+set}" != set; then
5973   echo "#! /bin/sh" >conf$$.sh
5974   echo  "exit 0"   >>conf$$.sh
5975   chmod +x conf$$.sh
5976   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5977     PATH_SEPARATOR=';'
5978   else
5979     PATH_SEPARATOR=:
5980   fi
5981   rm -f conf$$.sh
5982 fi
5983
5984 # Find out how to test for executable files. Don't use a zero-byte file,
5985 # as systems may use methods other than mode bits to determine executability.
5986 cat >conf$$.file <<_ASEOF
5987 #! /bin/sh
5988 exit 0
5989 _ASEOF
5990 chmod +x conf$$.file
5991 if test -x conf$$.file >/dev/null 2>&1; then
5992   ac_executable_p="test -x"
5993 else
5994   ac_executable_p="test -f"
5995 fi
5996 rm -f conf$$.file
5997
5998 # Extract the first word of "msgmerge", so it can be a program name with args.
5999 set dummy msgmerge; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   case "$MSGMERGE" in
6006   [\\/]* | ?:[\\/]*)
6007     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6008     ;;
6009   *)
6010     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6011     for ac_dir in $PATH; do
6012       IFS="$ac_save_IFS"
6013       test -z "$ac_dir" && ac_dir=.
6014       for ac_exec_ext in '' $ac_executable_extensions; do
6015         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6016           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6017           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6018             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6019             break 2
6020           fi
6021         fi
6022       done
6023     done
6024     IFS="$ac_save_IFS"
6025   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6026     ;;
6027 esac
6028 fi
6029 MSGMERGE="$ac_cv_path_MSGMERGE"
6030 if test "$MSGMERGE" != ":"; then
6031   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6032 echo "${ECHO_T}$MSGMERGE" >&6; }
6033 else
6034   { echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6; }
6036 fi
6037
6038
6039       if test "$GMSGFMT" != ":"; then
6040             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6041        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6042       : ;
6043     else
6044       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6045       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6046 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6047       GMSGFMT=":"
6048     fi
6049   fi
6050
6051       if test "$XGETTEXT" != ":"; then
6052             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6053        (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
6054       : ;
6055     else
6056       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6057 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6058       XGETTEXT=":"
6059     fi
6060         rm -f messages.po
6061   fi
6062
6063   ac_config_commands="$ac_config_commands default-1"
6064
6065
6066
6067       if test "X$prefix" = "XNONE"; then
6068     acl_final_prefix="$ac_default_prefix"
6069   else
6070     acl_final_prefix="$prefix"
6071   fi
6072   if test "X$exec_prefix" = "XNONE"; then
6073     acl_final_exec_prefix='${prefix}'
6074   else
6075     acl_final_exec_prefix="$exec_prefix"
6076   fi
6077   acl_save_prefix="$prefix"
6078   prefix="$acl_final_prefix"
6079   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6080   prefix="$acl_save_prefix"
6081
6082
6083 # Check whether --with-gnu-ld was given.
6084 if test "${with_gnu_ld+set}" = set; then
6085   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6086 else
6087   with_gnu_ld=no
6088 fi
6089
6090 # Prepare PATH_SEPARATOR.
6091 # The user is always right.
6092 if test "${PATH_SEPARATOR+set}" != set; then
6093   echo "#! /bin/sh" >conf$$.sh
6094   echo  "exit 0"   >>conf$$.sh
6095   chmod +x conf$$.sh
6096   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6097     PATH_SEPARATOR=';'
6098   else
6099     PATH_SEPARATOR=:
6100   fi
6101   rm -f conf$$.sh
6102 fi
6103 ac_prog=ld
6104 if test "$GCC" = yes; then
6105   # Check if gcc -print-prog-name=ld gives a path.
6106   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6107 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6108   case $host in
6109   *-*-mingw*)
6110     # gcc leaves a trailing carriage return which upsets mingw
6111     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6112   *)
6113     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6114   esac
6115   case $ac_prog in
6116     # Accept absolute paths.
6117     [\\/]* | [A-Za-z]:[\\/]*)
6118       re_direlt='/[^/][^/]*/\.\./'
6119       # Canonicalize the path of ld
6120       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6121       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6122         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6123       done
6124       test -z "$LD" && LD="$ac_prog"
6125       ;;
6126   "")
6127     # If it fails, then pretend we aren't using GCC.
6128     ac_prog=ld
6129     ;;
6130   *)
6131     # If it is relative, then search for the first ld in PATH.
6132     with_gnu_ld=unknown
6133     ;;
6134   esac
6135 elif test "$with_gnu_ld" = yes; then
6136   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6137 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6138 else
6139   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6140 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6141 fi
6142 if test "${acl_cv_path_LD+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   if test -z "$LD"; then
6146   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6147   for ac_dir in $PATH; do
6148     test -z "$ac_dir" && ac_dir=.
6149     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6150       acl_cv_path_LD="$ac_dir/$ac_prog"
6151       # Check to see if the program is GNU ld.  I'd rather use --version,
6152       # but apparently some GNU ld's only accept -v.
6153       # Break only if it was the GNU/non-GNU ld that we prefer.
6154       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6155       *GNU* | *'with BFD'*)
6156         test "$with_gnu_ld" != no && break ;;
6157       *)
6158         test "$with_gnu_ld" != yes && break ;;
6159       esac
6160     fi
6161   done
6162   IFS="$ac_save_ifs"
6163 else
6164   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6165 fi
6166 fi
6167
6168 LD="$acl_cv_path_LD"
6169 if test -n "$LD"; then
6170   { echo "$as_me:$LINENO: result: $LD" >&5
6171 echo "${ECHO_T}$LD" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6177 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6178    { (exit 1); exit 1; }; }
6179 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6180 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6181 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6185 case `$LD -v 2>&1 </dev/null` in
6186 *GNU* | *'with BFD'*)
6187   acl_cv_prog_gnu_ld=yes ;;
6188 *)
6189   acl_cv_prog_gnu_ld=no ;;
6190 esac
6191 fi
6192 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6193 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6194 with_gnu_ld=$acl_cv_prog_gnu_ld
6195
6196
6197
6198
6199                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6200 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6201 if test "${acl_cv_rpath+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204
6205     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6206     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6207     . ./conftest.sh
6208     rm -f ./conftest.sh
6209     acl_cv_rpath=done
6210
6211 fi
6212 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6213 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6214   wl="$acl_cv_wl"
6215   libext="$acl_cv_libext"
6216   shlibext="$acl_cv_shlibext"
6217   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6218   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6219   hardcode_direct="$acl_cv_hardcode_direct"
6220   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6221     # Check whether --enable-rpath was given.
6222 if test "${enable_rpath+set}" = set; then
6223   enableval=$enable_rpath; :
6224 else
6225   enable_rpath=yes
6226 fi
6227
6228
6229
6230
6231
6232
6233
6234
6235     use_additional=yes
6236
6237   acl_save_prefix="$prefix"
6238   prefix="$acl_final_prefix"
6239   acl_save_exec_prefix="$exec_prefix"
6240   exec_prefix="$acl_final_exec_prefix"
6241
6242     eval additional_includedir=\"$includedir\"
6243     eval additional_libdir=\"$libdir\"
6244
6245   exec_prefix="$acl_save_exec_prefix"
6246   prefix="$acl_save_prefix"
6247
6248
6249 # Check whether --with-libiconv-prefix was given.
6250 if test "${with_libiconv_prefix+set}" = set; then
6251   withval=$with_libiconv_prefix;
6252     if test "X$withval" = "Xno"; then
6253       use_additional=no
6254     else
6255       if test "X$withval" = "X"; then
6256
6257   acl_save_prefix="$prefix"
6258   prefix="$acl_final_prefix"
6259   acl_save_exec_prefix="$exec_prefix"
6260   exec_prefix="$acl_final_exec_prefix"
6261
6262           eval additional_includedir=\"$includedir\"
6263           eval additional_libdir=\"$libdir\"
6264
6265   exec_prefix="$acl_save_exec_prefix"
6266   prefix="$acl_save_prefix"
6267
6268       else
6269         additional_includedir="$withval/include"
6270         additional_libdir="$withval/lib"
6271       fi
6272     fi
6273
6274 fi
6275
6276       LIBICONV=
6277   LTLIBICONV=
6278   INCICONV=
6279   rpathdirs=
6280   ltrpathdirs=
6281   names_already_handled=
6282   names_next_round='iconv '
6283   while test -n "$names_next_round"; do
6284     names_this_round="$names_next_round"
6285     names_next_round=
6286     for name in $names_this_round; do
6287       already_handled=
6288       for n in $names_already_handled; do
6289         if test "$n" = "$name"; then
6290           already_handled=yes
6291           break
6292         fi
6293       done
6294       if test -z "$already_handled"; then
6295         names_already_handled="$names_already_handled $name"
6296                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6297         eval value=\"\$HAVE_LIB$uppername\"
6298         if test -n "$value"; then
6299           if test "$value" = yes; then
6300             eval value=\"\$LIB$uppername\"
6301             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6302             eval value=\"\$LTLIB$uppername\"
6303             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6304           else
6305                                     :
6306           fi
6307         else
6308                               found_dir=
6309           found_la=
6310           found_so=
6311           found_a=
6312           if test $use_additional = yes; then
6313             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6314               found_dir="$additional_libdir"
6315               found_so="$additional_libdir/lib$name.$shlibext"
6316               if test -f "$additional_libdir/lib$name.la"; then
6317                 found_la="$additional_libdir/lib$name.la"
6318               fi
6319             else
6320               if test -f "$additional_libdir/lib$name.$libext"; then
6321                 found_dir="$additional_libdir"
6322                 found_a="$additional_libdir/lib$name.$libext"
6323                 if test -f "$additional_libdir/lib$name.la"; then
6324                   found_la="$additional_libdir/lib$name.la"
6325                 fi
6326               fi
6327             fi
6328           fi
6329           if test "X$found_dir" = "X"; then
6330             for x in $LDFLAGS $LTLIBICONV; do
6331
6332   acl_save_prefix="$prefix"
6333   prefix="$acl_final_prefix"
6334   acl_save_exec_prefix="$exec_prefix"
6335   exec_prefix="$acl_final_exec_prefix"
6336   eval x=\"$x\"
6337   exec_prefix="$acl_save_exec_prefix"
6338   prefix="$acl_save_prefix"
6339
6340               case "$x" in
6341                 -L*)
6342                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6343                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6344                     found_dir="$dir"
6345                     found_so="$dir/lib$name.$shlibext"
6346                     if test -f "$dir/lib$name.la"; then
6347                       found_la="$dir/lib$name.la"
6348                     fi
6349                   else
6350                     if test -f "$dir/lib$name.$libext"; then
6351                       found_dir="$dir"
6352                       found_a="$dir/lib$name.$libext"
6353                       if test -f "$dir/lib$name.la"; then
6354                         found_la="$dir/lib$name.la"
6355                       fi
6356                     fi
6357                   fi
6358                   ;;
6359               esac
6360               if test "X$found_dir" != "X"; then
6361                 break
6362               fi
6363             done
6364           fi
6365           if test "X$found_dir" != "X"; then
6366                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6367             if test "X$found_so" != "X"; then
6368                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6369                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6370               else
6371                                                                                 haveit=
6372                 for x in $ltrpathdirs; do
6373                   if test "X$x" = "X$found_dir"; then
6374                     haveit=yes
6375                     break
6376                   fi
6377                 done
6378                 if test -z "$haveit"; then
6379                   ltrpathdirs="$ltrpathdirs $found_dir"
6380                 fi
6381                                 if test "$hardcode_direct" = yes; then
6382                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6383                 else
6384                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6385                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6386                                                             haveit=
6387                     for x in $rpathdirs; do
6388                       if test "X$x" = "X$found_dir"; then
6389                         haveit=yes
6390                         break
6391                       fi
6392                     done
6393                     if test -z "$haveit"; then
6394                       rpathdirs="$rpathdirs $found_dir"
6395                     fi
6396                   else
6397                                                                                 haveit=
6398                     for x in $LDFLAGS $LIBICONV; do
6399
6400   acl_save_prefix="$prefix"
6401   prefix="$acl_final_prefix"
6402   acl_save_exec_prefix="$exec_prefix"
6403   exec_prefix="$acl_final_exec_prefix"
6404   eval x=\"$x\"
6405   exec_prefix="$acl_save_exec_prefix"
6406   prefix="$acl_save_prefix"
6407
6408                       if test "X$x" = "X-L$found_dir"; then
6409                         haveit=yes
6410                         break
6411                       fi
6412                     done
6413                     if test -z "$haveit"; then
6414                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6415                     fi
6416                     if test "$hardcode_minus_L" != no; then
6417                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6418                     else
6419                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6420                     fi
6421                   fi
6422                 fi
6423               fi
6424             else
6425               if test "X$found_a" != "X"; then
6426                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6427               else
6428                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6429               fi
6430             fi
6431                         additional_includedir=
6432             case "$found_dir" in
6433               */lib | */lib/)
6434                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6435                 additional_includedir="$basedir/include"
6436                 ;;
6437             esac
6438             if test "X$additional_includedir" != "X"; then
6439                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6440                 haveit=
6441                 if test "X$additional_includedir" = "X/usr/local/include"; then
6442                   if test -n "$GCC"; then
6443                     case $host_os in
6444                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6445                     esac
6446                   fi
6447                 fi
6448                 if test -z "$haveit"; then
6449                   for x in $CPPFLAGS $INCICONV; do
6450
6451   acl_save_prefix="$prefix"
6452   prefix="$acl_final_prefix"
6453   acl_save_exec_prefix="$exec_prefix"
6454   exec_prefix="$acl_final_exec_prefix"
6455   eval x=\"$x\"
6456   exec_prefix="$acl_save_exec_prefix"
6457   prefix="$acl_save_prefix"
6458
6459                     if test "X$x" = "X-I$additional_includedir"; then
6460                       haveit=yes
6461                       break
6462                     fi
6463                   done
6464                   if test -z "$haveit"; then
6465                     if test -d "$additional_includedir"; then
6466                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6467                     fi
6468                   fi
6469                 fi
6470               fi
6471             fi
6472                         if test -n "$found_la"; then
6473                                                         save_libdir="$libdir"
6474               case "$found_la" in
6475                 */* | *\\*) . "$found_la" ;;
6476                 *) . "./$found_la" ;;
6477               esac
6478               libdir="$save_libdir"
6479                             for dep in $dependency_libs; do
6480                 case "$dep" in
6481                   -L*)
6482                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6483                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6484                       haveit=
6485                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6486                         if test -n "$GCC"; then
6487                           case $host_os in
6488                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6489                           esac
6490                         fi
6491                       fi
6492                       if test -z "$haveit"; then
6493                         haveit=
6494                         for x in $LDFLAGS $LIBICONV; do
6495
6496   acl_save_prefix="$prefix"
6497   prefix="$acl_final_prefix"
6498   acl_save_exec_prefix="$exec_prefix"
6499   exec_prefix="$acl_final_exec_prefix"
6500   eval x=\"$x\"
6501   exec_prefix="$acl_save_exec_prefix"
6502   prefix="$acl_save_prefix"
6503
6504                           if test "X$x" = "X-L$additional_libdir"; then
6505                             haveit=yes
6506                             break
6507                           fi
6508                         done
6509                         if test -z "$haveit"; then
6510                           if test -d "$additional_libdir"; then
6511                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6512                           fi
6513                         fi
6514                         haveit=
6515                         for x in $LDFLAGS $LTLIBICONV; do
6516
6517   acl_save_prefix="$prefix"
6518   prefix="$acl_final_prefix"
6519   acl_save_exec_prefix="$exec_prefix"
6520   exec_prefix="$acl_final_exec_prefix"
6521   eval x=\"$x\"
6522   exec_prefix="$acl_save_exec_prefix"
6523   prefix="$acl_save_prefix"
6524
6525                           if test "X$x" = "X-L$additional_libdir"; then
6526                             haveit=yes
6527                             break
6528                           fi
6529                         done
6530                         if test -z "$haveit"; then
6531                           if test -d "$additional_libdir"; then
6532                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6533                           fi
6534                         fi
6535                       fi
6536                     fi
6537                     ;;
6538                   -R*)
6539                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6540                     if test "$enable_rpath" != no; then
6541                                                                   haveit=
6542                       for x in $rpathdirs; do
6543                         if test "X$x" = "X$dir"; then
6544                           haveit=yes
6545                           break
6546                         fi
6547                       done
6548                       if test -z "$haveit"; then
6549                         rpathdirs="$rpathdirs $dir"
6550                       fi
6551                                                                   haveit=
6552                       for x in $ltrpathdirs; do
6553                         if test "X$x" = "X$dir"; then
6554                           haveit=yes
6555                           break
6556                         fi
6557                       done
6558                       if test -z "$haveit"; then
6559                         ltrpathdirs="$ltrpathdirs $dir"
6560                       fi
6561                     fi
6562                     ;;
6563                   -l*)
6564                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6565                     ;;
6566                   *.la)
6567                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6568                     ;;
6569                   *)
6570                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6571                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6572                     ;;
6573                 esac
6574               done
6575             fi
6576           else
6577                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6578             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6579           fi
6580         fi
6581       fi
6582     done
6583   done
6584   if test "X$rpathdirs" != "X"; then
6585     if test -n "$hardcode_libdir_separator"; then
6586                         alldirs=
6587       for found_dir in $rpathdirs; do
6588         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6589       done
6590             acl_save_libdir="$libdir"
6591       libdir="$alldirs"
6592       eval flag=\"$hardcode_libdir_flag_spec\"
6593       libdir="$acl_save_libdir"
6594       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6595     else
6596             for found_dir in $rpathdirs; do
6597         acl_save_libdir="$libdir"
6598         libdir="$found_dir"
6599         eval flag=\"$hardcode_libdir_flag_spec\"
6600         libdir="$acl_save_libdir"
6601         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6602       done
6603     fi
6604   fi
6605   if test "X$ltrpathdirs" != "X"; then
6606             for found_dir in $ltrpathdirs; do
6607       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6608     done
6609   fi
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6629 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6630 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   gt_save_CPPFLAGS="$CPPFLAGS"
6634      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6635      gt_save_LIBS="$LIBS"
6636      LIBS="$LIBS -framework CoreFoundation"
6637      cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643 #include <CFPreferences.h>
6644 int
6645 main ()
6646 {
6647 CFPreferencesCopyAppValue(NULL, NULL)
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (ac_try="$ac_link"
6654 case "(($ac_try" in
6655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656   *) ac_try_echo=$ac_try;;
6657 esac
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659   (eval "$ac_link") 2>conftest.er1
6660   ac_status=$?
6661   grep -v '^ *+' conftest.er1 >conftest.err
6662   rm -f conftest.er1
6663   cat conftest.err >&5
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } && {
6666          test -z "$ac_c_werror_flag" ||
6667          test ! -s conftest.err
6668        } && test -s conftest$ac_exeext &&
6669        $as_test_x conftest$ac_exeext; then
6670   gt_cv_func_CFPreferencesCopyAppValue=yes
6671 else
6672   echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675         gt_cv_func_CFPreferencesCopyAppValue=no
6676 fi
6677
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679       conftest$ac_exeext conftest.$ac_ext
6680      CPPFLAGS="$gt_save_CPPFLAGS"
6681      LIBS="$gt_save_LIBS"
6682 fi
6683 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6684 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6685   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6686
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6689 _ACEOF
6690
6691   fi
6692     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6693 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6694 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   gt_save_CPPFLAGS="$CPPFLAGS"
6698      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6699      gt_save_LIBS="$LIBS"
6700      LIBS="$LIBS -framework CoreFoundation"
6701      cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707 #include <CFLocale.h>
6708 int
6709 main ()
6710 {
6711 CFLocaleCopyCurrent();
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (ac_try="$ac_link"
6718 case "(($ac_try" in
6719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720   *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723   (eval "$ac_link") 2>conftest.er1
6724   ac_status=$?
6725   grep -v '^ *+' conftest.er1 >conftest.err
6726   rm -f conftest.er1
6727   cat conftest.err >&5
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); } && {
6730          test -z "$ac_c_werror_flag" ||
6731          test ! -s conftest.err
6732        } && test -s conftest$ac_exeext &&
6733        $as_test_x conftest$ac_exeext; then
6734   gt_cv_func_CFLocaleCopyCurrent=yes
6735 else
6736   echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6738
6739         gt_cv_func_CFLocaleCopyCurrent=no
6740 fi
6741
6742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6743       conftest$ac_exeext conftest.$ac_ext
6744      CPPFLAGS="$gt_save_CPPFLAGS"
6745      LIBS="$gt_save_LIBS"
6746 fi
6747 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6748 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6749   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6750
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_CFLOCALECOPYCURRENT 1
6753 _ACEOF
6754
6755   fi
6756   INTL_MACOSX_LIBS=
6757   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6758     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6759   fi
6760
6761
6762
6763
6764   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6765 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6766     # Check whether --enable-nls was given.
6767 if test "${enable_nls+set}" = set; then
6768   enableval=$enable_nls; USE_NLS=$enableval
6769 else
6770   USE_NLS=yes
6771 fi
6772
6773   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6774 echo "${ECHO_T}$USE_NLS" >&6; }
6775
6776
6777
6778
6779   LIBINTL=
6780   LTLIBINTL=
6781   POSUB=
6782
6783     if test "$USE_NLS" = "yes"; then
6784     gt_use_preinstalled_gnugettext=no
6785
6786
6787
6788
6789
6790
6791         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6792 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6793 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6794   echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796   cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 #include <libintl.h>
6803 extern int _nl_msg_cat_cntr;
6804 extern int *_nl_domain_bindings;
6805 int
6806 main ()
6807 {
6808 bindtextdomain ("", "");
6809 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext conftest$ac_exeext
6815 if { (ac_try="$ac_link"
6816 case "(($ac_try" in
6817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818   *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821   (eval "$ac_link") 2>conftest.er1
6822   ac_status=$?
6823   grep -v '^ *+' conftest.er1 >conftest.err
6824   rm -f conftest.er1
6825   cat conftest.err >&5
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } && {
6828          test -z "$ac_c_werror_flag" ||
6829          test ! -s conftest.err
6830        } && test -s conftest$ac_exeext &&
6831        $as_test_x conftest$ac_exeext; then
6832   gt_cv_func_gnugettext1_libc=yes
6833 else
6834   echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6836
6837         gt_cv_func_gnugettext1_libc=no
6838 fi
6839
6840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6841       conftest$ac_exeext conftest.$ac_ext
6842 fi
6843 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6844 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6845
6846         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6847
6848
6849
6850
6851
6852           am_save_CPPFLAGS="$CPPFLAGS"
6853
6854   for element in $INCICONV; do
6855     haveit=
6856     for x in $CPPFLAGS; do
6857
6858   acl_save_prefix="$prefix"
6859   prefix="$acl_final_prefix"
6860   acl_save_exec_prefix="$exec_prefix"
6861   exec_prefix="$acl_final_exec_prefix"
6862   eval x=\"$x\"
6863   exec_prefix="$acl_save_exec_prefix"
6864   prefix="$acl_save_prefix"
6865
6866       if test "X$x" = "X$element"; then
6867         haveit=yes
6868         break
6869       fi
6870     done
6871     if test -z "$haveit"; then
6872       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6873     fi
6874   done
6875
6876
6877   { echo "$as_me:$LINENO: checking for iconv" >&5
6878 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6879 if test "${am_cv_func_iconv+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882
6883     am_cv_func_iconv="no, consider installing GNU libiconv"
6884     am_cv_lib_iconv=no
6885     cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891 #include <stdlib.h>
6892 #include <iconv.h>
6893 int
6894 main ()
6895 {
6896 iconv_t cd = iconv_open("","");
6897        iconv(cd,NULL,NULL,NULL,NULL);
6898        iconv_close(cd);
6899   ;
6900   return 0;
6901 }
6902 _ACEOF
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (ac_try="$ac_link"
6905 case "(($ac_try" in
6906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907   *) ac_try_echo=$ac_try;;
6908 esac
6909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910   (eval "$ac_link") 2>conftest.er1
6911   ac_status=$?
6912   grep -v '^ *+' conftest.er1 >conftest.err
6913   rm -f conftest.er1
6914   cat conftest.err >&5
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } && {
6917          test -z "$ac_c_werror_flag" ||
6918          test ! -s conftest.err
6919        } && test -s conftest$ac_exeext &&
6920        $as_test_x conftest$ac_exeext; then
6921   am_cv_func_iconv=yes
6922 else
6923   echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926
6927 fi
6928
6929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6930       conftest$ac_exeext conftest.$ac_ext
6931     if test "$am_cv_func_iconv" != yes; then
6932       am_save_LIBS="$LIBS"
6933       LIBS="$LIBS $LIBICONV"
6934       cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h.  */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h.  */
6940 #include <stdlib.h>
6941 #include <iconv.h>
6942 int
6943 main ()
6944 {
6945 iconv_t cd = iconv_open("","");
6946          iconv(cd,NULL,NULL,NULL,NULL);
6947          iconv_close(cd);
6948   ;
6949   return 0;
6950 }
6951 _ACEOF
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6954 case "(($ac_try" in
6955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956   *) ac_try_echo=$ac_try;;
6957 esac
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959   (eval "$ac_link") 2>conftest.er1
6960   ac_status=$?
6961   grep -v '^ *+' conftest.er1 >conftest.err
6962   rm -f conftest.er1
6963   cat conftest.err >&5
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } && {
6966          test -z "$ac_c_werror_flag" ||
6967          test ! -s conftest.err
6968        } && test -s conftest$ac_exeext &&
6969        $as_test_x conftest$ac_exeext; then
6970   am_cv_lib_iconv=yes
6971         am_cv_func_iconv=yes
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976
6977 fi
6978
6979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6980       conftest$ac_exeext conftest.$ac_ext
6981       LIBS="$am_save_LIBS"
6982     fi
6983
6984 fi
6985 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6986 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6987   if test "$am_cv_func_iconv" = yes; then
6988
6989 cat >>confdefs.h <<\_ACEOF
6990 #define HAVE_ICONV 1
6991 _ACEOF
6992
6993   fi
6994   if test "$am_cv_lib_iconv" = yes; then
6995     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6996 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6997     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6998 echo "${ECHO_T}$LIBICONV" >&6; }
6999   else
7000             CPPFLAGS="$am_save_CPPFLAGS"
7001     LIBICONV=
7002     LTLIBICONV=
7003   fi
7004
7005
7006
7007
7008
7009
7010     use_additional=yes
7011
7012   acl_save_prefix="$prefix"
7013   prefix="$acl_final_prefix"
7014   acl_save_exec_prefix="$exec_prefix"
7015   exec_prefix="$acl_final_exec_prefix"
7016
7017     eval additional_includedir=\"$includedir\"
7018     eval additional_libdir=\"$libdir\"
7019
7020   exec_prefix="$acl_save_exec_prefix"
7021   prefix="$acl_save_prefix"
7022
7023
7024 # Check whether --with-libintl-prefix was given.
7025 if test "${with_libintl_prefix+set}" = set; then
7026   withval=$with_libintl_prefix;
7027     if test "X$withval" = "Xno"; then
7028       use_additional=no
7029     else
7030       if test "X$withval" = "X"; then
7031
7032   acl_save_prefix="$prefix"
7033   prefix="$acl_final_prefix"
7034   acl_save_exec_prefix="$exec_prefix"
7035   exec_prefix="$acl_final_exec_prefix"
7036
7037           eval additional_includedir=\"$includedir\"
7038           eval additional_libdir=\"$libdir\"
7039
7040   exec_prefix="$acl_save_exec_prefix"
7041   prefix="$acl_save_prefix"
7042
7043       else
7044         additional_includedir="$withval/include"
7045         additional_libdir="$withval/lib"
7046       fi
7047     fi
7048
7049 fi
7050
7051       LIBINTL=
7052   LTLIBINTL=
7053   INCINTL=
7054   rpathdirs=
7055   ltrpathdirs=
7056   names_already_handled=
7057   names_next_round='intl '
7058   while test -n "$names_next_round"; do
7059     names_this_round="$names_next_round"
7060     names_next_round=
7061     for name in $names_this_round; do
7062       already_handled=
7063       for n in $names_already_handled; do
7064         if test "$n" = "$name"; then
7065           already_handled=yes
7066           break
7067         fi
7068       done
7069       if test -z "$already_handled"; then
7070         names_already_handled="$names_already_handled $name"
7071                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7072         eval value=\"\$HAVE_LIB$uppername\"
7073         if test -n "$value"; then
7074           if test "$value" = yes; then
7075             eval value=\"\$LIB$uppername\"
7076             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7077             eval value=\"\$LTLIB$uppername\"
7078             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7079           else
7080                                     :
7081           fi
7082         else
7083                               found_dir=
7084           found_la=
7085           found_so=
7086           found_a=
7087           if test $use_additional = yes; then
7088             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7089               found_dir="$additional_libdir"
7090               found_so="$additional_libdir/lib$name.$shlibext"
7091               if test -f "$additional_libdir/lib$name.la"; then
7092                 found_la="$additional_libdir/lib$name.la"
7093               fi
7094             else
7095               if test -f "$additional_libdir/lib$name.$libext"; then
7096                 found_dir="$additional_libdir"
7097                 found_a="$additional_libdir/lib$name.$libext"
7098                 if test -f "$additional_libdir/lib$name.la"; then
7099                   found_la="$additional_libdir/lib$name.la"
7100                 fi
7101               fi
7102             fi
7103           fi
7104           if test "X$found_dir" = "X"; then
7105             for x in $LDFLAGS $LTLIBINTL; do
7106
7107   acl_save_prefix="$prefix"
7108   prefix="$acl_final_prefix"
7109   acl_save_exec_prefix="$exec_prefix"
7110   exec_prefix="$acl_final_exec_prefix"
7111   eval x=\"$x\"
7112   exec_prefix="$acl_save_exec_prefix"
7113   prefix="$acl_save_prefix"
7114
7115               case "$x" in
7116                 -L*)
7117                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7118                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7119                     found_dir="$dir"
7120                     found_so="$dir/lib$name.$shlibext"
7121                     if test -f "$dir/lib$name.la"; then
7122                       found_la="$dir/lib$name.la"
7123                     fi
7124                   else
7125                     if test -f "$dir/lib$name.$libext"; then
7126                       found_dir="$dir"
7127                       found_a="$dir/lib$name.$libext"
7128                       if test -f "$dir/lib$name.la"; then
7129                         found_la="$dir/lib$name.la"
7130                       fi
7131                     fi
7132                   fi
7133                   ;;
7134               esac
7135               if test "X$found_dir" != "X"; then
7136                 break
7137               fi
7138             done
7139           fi
7140           if test "X$found_dir" != "X"; then
7141                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7142             if test "X$found_so" != "X"; then
7143                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7144                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7145               else
7146                                                                                 haveit=
7147                 for x in $ltrpathdirs; do
7148                   if test "X$x" = "X$found_dir"; then
7149                     haveit=yes
7150                     break
7151                   fi
7152                 done
7153                 if test -z "$haveit"; then
7154                   ltrpathdirs="$ltrpathdirs $found_dir"
7155                 fi
7156                                 if test "$hardcode_direct" = yes; then
7157                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7158                 else
7159                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7160                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7161                                                             haveit=
7162                     for x in $rpathdirs; do
7163                       if test "X$x" = "X$found_dir"; then
7164                         haveit=yes
7165                         break
7166                       fi
7167                     done
7168                     if test -z "$haveit"; then
7169                       rpathdirs="$rpathdirs $found_dir"
7170                     fi
7171                   else
7172                                                                                 haveit=
7173                     for x in $LDFLAGS $LIBINTL; do
7174
7175   acl_save_prefix="$prefix"
7176   prefix="$acl_final_prefix"
7177   acl_save_exec_prefix="$exec_prefix"
7178   exec_prefix="$acl_final_exec_prefix"
7179   eval x=\"$x\"
7180   exec_prefix="$acl_save_exec_prefix"
7181   prefix="$acl_save_prefix"
7182
7183                       if test "X$x" = "X-L$found_dir"; then
7184                         haveit=yes
7185                         break
7186                       fi
7187                     done
7188                     if test -z "$haveit"; then
7189                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7190                     fi
7191                     if test "$hardcode_minus_L" != no; then
7192                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7193                     else
7194                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7195                     fi
7196                   fi
7197                 fi
7198               fi
7199             else
7200               if test "X$found_a" != "X"; then
7201                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7202               else
7203                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7204               fi
7205             fi
7206                         additional_includedir=
7207             case "$found_dir" in
7208               */lib | */lib/)
7209                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7210                 additional_includedir="$basedir/include"
7211                 ;;
7212             esac
7213             if test "X$additional_includedir" != "X"; then
7214                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7215                 haveit=
7216                 if test "X$additional_includedir" = "X/usr/local/include"; then
7217                   if test -n "$GCC"; then
7218                     case $host_os in
7219                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7220                     esac
7221                   fi
7222                 fi
7223                 if test -z "$haveit"; then
7224                   for x in $CPPFLAGS $INCINTL; do
7225
7226   acl_save_prefix="$prefix"
7227   prefix="$acl_final_prefix"
7228   acl_save_exec_prefix="$exec_prefix"
7229   exec_prefix="$acl_final_exec_prefix"
7230   eval x=\"$x\"
7231   exec_prefix="$acl_save_exec_prefix"
7232   prefix="$acl_save_prefix"
7233
7234                     if test "X$x" = "X-I$additional_includedir"; then
7235                       haveit=yes
7236                       break
7237                     fi
7238                   done
7239                   if test -z "$haveit"; then
7240                     if test -d "$additional_includedir"; then
7241                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7242                     fi
7243                   fi
7244                 fi
7245               fi
7246             fi
7247                         if test -n "$found_la"; then
7248                                                         save_libdir="$libdir"
7249               case "$found_la" in
7250                 */* | *\\*) . "$found_la" ;;
7251                 *) . "./$found_la" ;;
7252               esac
7253               libdir="$save_libdir"
7254                             for dep in $dependency_libs; do
7255                 case "$dep" in
7256                   -L*)
7257                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7258                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7259                       haveit=
7260                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7261                         if test -n "$GCC"; then
7262                           case $host_os in
7263                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7264                           esac
7265                         fi
7266                       fi
7267                       if test -z "$haveit"; then
7268                         haveit=
7269                         for x in $LDFLAGS $LIBINTL; do
7270
7271   acl_save_prefix="$prefix"
7272   prefix="$acl_final_prefix"
7273   acl_save_exec_prefix="$exec_prefix"
7274   exec_prefix="$acl_final_exec_prefix"
7275   eval x=\"$x\"
7276   exec_prefix="$acl_save_exec_prefix"
7277   prefix="$acl_save_prefix"
7278
7279                           if test "X$x" = "X-L$additional_libdir"; then
7280                             haveit=yes
7281                             break
7282                           fi
7283                         done
7284                         if test -z "$haveit"; then
7285                           if test -d "$additional_libdir"; then
7286                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7287                           fi
7288                         fi
7289                         haveit=
7290                         for x in $LDFLAGS $LTLIBINTL; do
7291
7292   acl_save_prefix="$prefix"
7293   prefix="$acl_final_prefix"
7294   acl_save_exec_prefix="$exec_prefix"
7295   exec_prefix="$acl_final_exec_prefix"
7296   eval x=\"$x\"
7297   exec_prefix="$acl_save_exec_prefix"
7298   prefix="$acl_save_prefix"
7299
7300                           if test "X$x" = "X-L$additional_libdir"; then
7301                             haveit=yes
7302                             break
7303                           fi
7304                         done
7305                         if test -z "$haveit"; then
7306                           if test -d "$additional_libdir"; then
7307                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7308                           fi
7309                         fi
7310                       fi
7311                     fi
7312                     ;;
7313                   -R*)
7314                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7315                     if test "$enable_rpath" != no; then
7316                                                                   haveit=
7317                       for x in $rpathdirs; do
7318                         if test "X$x" = "X$dir"; then
7319                           haveit=yes
7320                           break
7321                         fi
7322                       done
7323                       if test -z "$haveit"; then
7324                         rpathdirs="$rpathdirs $dir"
7325                       fi
7326                                                                   haveit=
7327                       for x in $ltrpathdirs; do
7328                         if test "X$x" = "X$dir"; then
7329                           haveit=yes
7330                           break
7331                         fi
7332                       done
7333                       if test -z "$haveit"; then
7334                         ltrpathdirs="$ltrpathdirs $dir"
7335                       fi
7336                     fi
7337                     ;;
7338                   -l*)
7339                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7340                     ;;
7341                   *.la)
7342                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7343                     ;;
7344                   *)
7345                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7346                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7347                     ;;
7348                 esac
7349               done
7350             fi
7351           else
7352                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7353             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7354           fi
7355         fi
7356       fi
7357     done
7358   done
7359   if test "X$rpathdirs" != "X"; then
7360     if test -n "$hardcode_libdir_separator"; then
7361                         alldirs=
7362       for found_dir in $rpathdirs; do
7363         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7364       done
7365             acl_save_libdir="$libdir"
7366       libdir="$alldirs"
7367       eval flag=\"$hardcode_libdir_flag_spec\"
7368       libdir="$acl_save_libdir"
7369       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7370     else
7371             for found_dir in $rpathdirs; do
7372         acl_save_libdir="$libdir"
7373         libdir="$found_dir"
7374         eval flag=\"$hardcode_libdir_flag_spec\"
7375         libdir="$acl_save_libdir"
7376         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7377       done
7378     fi
7379   fi
7380   if test "X$ltrpathdirs" != "X"; then
7381             for found_dir in $ltrpathdirs; do
7382       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7383     done
7384   fi
7385
7386           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7387 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7388 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   gt_save_CPPFLAGS="$CPPFLAGS"
7392             CPPFLAGS="$CPPFLAGS $INCINTL"
7393             gt_save_LIBS="$LIBS"
7394             LIBS="$LIBS $LIBINTL"
7395                         cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h.  */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h.  */
7401 #include <libintl.h>
7402 extern int _nl_msg_cat_cntr;
7403 extern
7404 #ifdef __cplusplus
7405 "C"
7406 #endif
7407 const char *_nl_expand_alias (const char *);
7408 int
7409 main ()
7410 {
7411 bindtextdomain ("", "");
7412 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7413   ;
7414   return 0;
7415 }
7416 _ACEOF
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (ac_try="$ac_link"
7419 case "(($ac_try" in
7420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421   *) ac_try_echo=$ac_try;;
7422 esac
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424   (eval "$ac_link") 2>conftest.er1
7425   ac_status=$?
7426   grep -v '^ *+' conftest.er1 >conftest.err
7427   rm -f conftest.er1
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } && {
7431          test -z "$ac_c_werror_flag" ||
7432          test ! -s conftest.err
7433        } && test -s conftest$ac_exeext &&
7434        $as_test_x conftest$ac_exeext; then
7435   gt_cv_func_gnugettext1_libintl=yes
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440         gt_cv_func_gnugettext1_libintl=no
7441 fi
7442
7443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444       conftest$ac_exeext conftest.$ac_ext
7445                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7446               LIBS="$LIBS $LIBICONV"
7447               cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h.  */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h.  */
7453 #include <libintl.h>
7454 extern int _nl_msg_cat_cntr;
7455 extern
7456 #ifdef __cplusplus
7457 "C"
7458 #endif
7459 const char *_nl_expand_alias (const char *);
7460 int
7461 main ()
7462 {
7463 bindtextdomain ("", "");
7464 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7465   ;
7466   return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (ac_try="$ac_link"
7471 case "(($ac_try" in
7472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473   *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476   (eval "$ac_link") 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && {
7483          test -z "$ac_c_werror_flag" ||
7484          test ! -s conftest.err
7485        } && test -s conftest$ac_exeext &&
7486        $as_test_x conftest$ac_exeext; then
7487   LIBINTL="$LIBINTL $LIBICONV"
7488                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7489                 gt_cv_func_gnugettext1_libintl=yes
7490
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495
7496 fi
7497
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499       conftest$ac_exeext conftest.$ac_ext
7500             fi
7501             CPPFLAGS="$gt_save_CPPFLAGS"
7502             LIBS="$gt_save_LIBS"
7503 fi
7504 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7505 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7506         fi
7507
7508                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7509            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7510                 && test "$PACKAGE" != gettext-runtime \
7511                 && test "$PACKAGE" != gettext-tools; }; then
7512           gt_use_preinstalled_gnugettext=yes
7513         else
7514                     LIBINTL=
7515           LTLIBINTL=
7516           INCINTL=
7517         fi
7518
7519
7520
7521     if test -n "$INTL_MACOSX_LIBS"; then
7522       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7523          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7524                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7525         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7526       fi
7527     fi
7528
7529     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7530        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define ENABLE_NLS 1
7534 _ACEOF
7535
7536     else
7537       USE_NLS=no
7538     fi
7539   fi
7540
7541   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7542 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7543   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7544 echo "${ECHO_T}$USE_NLS" >&6; }
7545   if test "$USE_NLS" = "yes"; then
7546     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7547 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7548     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7549       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7550         gt_source="external libintl"
7551       else
7552         gt_source="libc"
7553       fi
7554     else
7555       gt_source="included intl directory"
7556     fi
7557     { echo "$as_me:$LINENO: result: $gt_source" >&5
7558 echo "${ECHO_T}$gt_source" >&6; }
7559   fi
7560
7561   if test "$USE_NLS" = "yes"; then
7562
7563     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7564       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7565         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7566 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7567         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7568 echo "${ECHO_T}$LIBINTL" >&6; }
7569
7570   for element in $INCINTL; do
7571     haveit=
7572     for x in $CPPFLAGS; do
7573
7574   acl_save_prefix="$prefix"
7575   prefix="$acl_final_prefix"
7576   acl_save_exec_prefix="$exec_prefix"
7577   exec_prefix="$acl_final_exec_prefix"
7578   eval x=\"$x\"
7579   exec_prefix="$acl_save_exec_prefix"
7580   prefix="$acl_save_prefix"
7581
7582       if test "X$x" = "X$element"; then
7583         haveit=yes
7584         break
7585       fi
7586     done
7587     if test -z "$haveit"; then
7588       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7589     fi
7590   done
7591
7592       fi
7593
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_GETTEXT 1
7597 _ACEOF
7598
7599
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_DCGETTEXT 1
7602 _ACEOF
7603
7604     fi
7605
7606         POSUB=po
7607   fi
7608
7609
7610
7611     INTLLIBS="$LIBINTL"
7612
7613
7614
7615
7616
7617
7618 if test x${prefix} = xNONE ; then
7619    if test `eval echo ${datadir}` = NONE/share ; then
7620       datadir=/usr/share
7621    fi
7622 fi
7623
7624 # ------------------------------------------------------------------
7625 #  If the user has not set --prefix, we set our default to nothing.
7626 #  In this case, if the user has not set --sysconfdir, we set it
7627 #  to the package default of /etc/bacula.  If either --prefix or
7628 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7629 # ------------------------------------------------------------------
7630 if test x${prefix} = xNONE ; then
7631     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7632         sysconfdir=/etc/bacula
7633     fi
7634     prefix=
7635 fi
7636 sysconfdir=`eval echo ${sysconfdir}`
7637 datadir=`eval echo ${datadir}`
7638 localedir=`eval echo ${datadir}/locale`
7639 cat >>confdefs.h <<_ACEOF
7640 #define LOCALEDIR "$localedir"
7641 _ACEOF
7642
7643 cat >>confdefs.h <<_ACEOF
7644 #define SYSCONFDIR "$sysconfdir"
7645 _ACEOF
7646
7647
7648 # -------------------------------------------------------------------------
7649 #  If the user has not set --exec-prefix, we default to ${prefix}
7650 # -------------------------------------------------------------------------
7651 if test x${exec_prefix} = xNONE ; then
7652     exec_prefix=${prefix}
7653 fi
7654
7655 # ------------------------------------------------------------------
7656 # If the user has not set --sbindir, we set our default as /sbin
7657 # ------------------------------------------------------------------
7658 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7659     sbindir=${exec_prefix}/sbin
7660 fi
7661 sbindir=`eval echo ${sbindir}`
7662
7663
7664 # -------------------------------------------------------------------------
7665 #  If the user has not set --mandir, we default to /usr/share/man
7666 # -------------------------------------------------------------------------
7667 if test x$mandir = x'${prefix}/man' ; then
7668    mandir=/usr/share/man
7669 fi
7670
7671
7672 for ac_prog in msgfmt
7673 do
7674   # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_MSGFMT+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   case $MSGFMT in
7682   [\\/]* | ?:[\\/]*)
7683   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7684   ;;
7685   *)
7686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_exec_ext in '' $ac_executable_extensions; do
7692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701   ;;
7702 esac
7703 fi
7704 MSGFMT=$ac_cv_path_MSGFMT
7705 if test -n "$MSGFMT"; then
7706   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7707 echo "${ECHO_T}$MSGFMT" >&6; }
7708 else
7709   { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7711 fi
7712
7713
7714   test -n "$MSGFMT" && break
7715 done
7716 test -n "$MSGFMT" || MSGFMT="no"
7717
7718 if test "$MSGFMT" = "no"
7719 then
7720    echo 'msgfmt program not found, disabling NLS !'
7721    USE_NLS=no
7722    USE_INCLUDED_LIBINTL=no
7723 #else
7724
7725     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7726 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7727 if test "${ac_cv_gnu_library_2+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h.  */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h.  */
7736
7737 #include <features.h>
7738 #ifdef __GNU_LIBRARY__
7739  #if (__GLIBC__ >= 2)
7740   Lucky GNU user
7741  #endif
7742 #endif
7743
7744 _ACEOF
7745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7746   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7747   ac_cv_gnu_library_2=yes
7748 else
7749   ac_cv_gnu_library_2=no
7750 fi
7751 rm -f conftest*
7752
7753
7754
7755 fi
7756 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7757 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7758
7759     GLIBC2="$ac_cv_gnu_library_2"
7760
7761
7762
7763         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7764 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7765 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   ac_check_lib_save_LIBS=$LIBS
7769 LIBS="-lcposix  $LIBS"
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776
7777 /* Override any GCC internal prototype to avoid an error.
7778    Use char because int might match the return type of a GCC
7779    builtin and then its argument prototype would still apply.  */
7780 #ifdef __cplusplus
7781 extern "C"
7782 #endif
7783 char strerror ();
7784 int
7785 main ()
7786 {
7787 return strerror ();
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (ac_try="$ac_link"
7794 case "(($ac_try" in
7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796   *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799   (eval "$ac_link") 2>conftest.er1
7800   ac_status=$?
7801   grep -v '^ *+' conftest.er1 >conftest.err
7802   rm -f conftest.er1
7803   cat conftest.err >&5
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); } && {
7806          test -z "$ac_c_werror_flag" ||
7807          test ! -s conftest.err
7808        } && test -s conftest$ac_exeext &&
7809        $as_test_x conftest$ac_exeext; then
7810   ac_cv_lib_cposix_strerror=yes
7811 else
7812   echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815         ac_cv_lib_cposix_strerror=no
7816 fi
7817
7818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7819       conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7821 fi
7822 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7823 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7824 if test $ac_cv_lib_cposix_strerror = yes; then
7825   LIBS="$LIBS -lcposix"
7826 fi
7827
7828
7829
7830 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7831 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7832 if test "${ac_cv_header_stdc+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h.  */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h.  */
7841 #include <stdlib.h>
7842 #include <stdarg.h>
7843 #include <string.h>
7844 #include <float.h>
7845
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7856 case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861   (eval "$ac_compile") 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } && {
7868          test -z "$ac_c_werror_flag" ||
7869          test ! -s conftest.err
7870        } && test -s conftest.$ac_objext; then
7871   ac_cv_header_stdc=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876         ac_cv_header_stdc=no
7877 fi
7878
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880
7881 if test $ac_cv_header_stdc = yes; then
7882   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7883   cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h.  */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h.  */
7889 #include <string.h>
7890
7891 _ACEOF
7892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7893   $EGREP "memchr" >/dev/null 2>&1; then
7894   :
7895 else
7896   ac_cv_header_stdc=no
7897 fi
7898 rm -f conftest*
7899
7900 fi
7901
7902 if test $ac_cv_header_stdc = yes; then
7903   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7904   cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910 #include <stdlib.h>
7911
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914   $EGREP "free" >/dev/null 2>&1; then
7915   :
7916 else
7917   ac_cv_header_stdc=no
7918 fi
7919 rm -f conftest*
7920
7921 fi
7922
7923 if test $ac_cv_header_stdc = yes; then
7924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7925   if test "$cross_compiling" = yes; then
7926   :
7927 else
7928   cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 #include <ctype.h>
7935 #include <stdlib.h>
7936 #if ((' ' & 0x0FF) == 0x020)
7937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7939 #else
7940 # define ISLOWER(c) \
7941                    (('a' <= (c) && (c) <= 'i') \
7942                      || ('j' <= (c) && (c) <= 'r') \
7943                      || ('s' <= (c) && (c) <= 'z'))
7944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7945 #endif
7946
7947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7948 int
7949 main ()
7950 {
7951   int i;
7952   for (i = 0; i < 256; i++)
7953     if (XOR (islower (i), ISLOWER (i))
7954         || toupper (i) != TOUPPER (i))
7955       return 2;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest$ac_exeext
7960 if { (ac_try="$ac_link"
7961 case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_link") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7970   { (case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_try") 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; }; then
7979   :
7980 else
7981   echo "$as_me: program exited with status $ac_status" >&5
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ( exit $ac_status )
7986 ac_cv_header_stdc=no
7987 fi
7988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7989 fi
7990
7991
7992 fi
7993 fi
7994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7996 if test $ac_cv_header_stdc = yes; then
7997
7998 cat >>confdefs.h <<\_ACEOF
7999 #define STDC_HEADERS 1
8000 _ACEOF
8001
8002 fi
8003
8004 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8005 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8006 if test "${ac_cv_c_const+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h.  */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h.  */
8015
8016 int
8017 main ()
8018 {
8019 /* FIXME: Include the comments suggested by Paul. */
8020 #ifndef __cplusplus
8021   /* Ultrix mips cc rejects this.  */
8022   typedef int charset[2];
8023   const charset cs;
8024   /* SunOS 4.1.1 cc rejects this.  */
8025   char const *const *pcpcc;
8026   char **ppc;
8027   /* NEC SVR4.0.2 mips cc rejects this.  */
8028   struct point {int x, y;};
8029   static struct point const zero = {0,0};
8030   /* AIX XL C 1.02.0.0 rejects this.
8031      It does not let you subtract one const X* pointer from another in
8032      an arm of an if-expression whose if-part is not a constant
8033      expression */
8034   const char *g = "string";
8035   pcpcc = &g + (g ? g-g : 0);
8036   /* HPUX 7.0 cc rejects these. */
8037   ++pcpcc;
8038   ppc = (char**) pcpcc;
8039   pcpcc = (char const *const *) ppc;
8040   { /* SCO 3.2v4 cc rejects this.  */
8041     char *t;
8042     char const *s = 0 ? (char *) 0 : (char const *) 0;
8043
8044     *t++ = 0;
8045     if (s) return 0;
8046   }
8047   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8048     int x[] = {25, 17};
8049     const int *foo = &x[0];
8050     ++foo;
8051   }
8052   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8053     typedef const int *iptr;
8054     iptr p = 0;
8055     ++p;
8056   }
8057   { /* AIX XL C 1.02.0.0 rejects this saying
8058        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8059     struct s { int j; const int *ap[3]; };
8060     struct s *b; b->j = 5;
8061   }
8062   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8063     const int foo = 10;
8064     if (!foo) return 0;
8065   }
8066   return !cs[0] && !zero.x;
8067 #endif
8068
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (ac_try="$ac_compile"
8075 case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080   (eval "$ac_compile") 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } && {
8087          test -z "$ac_c_werror_flag" ||
8088          test ! -s conftest.err
8089        } && test -s conftest.$ac_objext; then
8090   ac_cv_c_const=yes
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095         ac_cv_c_const=no
8096 fi
8097
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8101 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8102 if test $ac_cv_c_const = no; then
8103
8104 cat >>confdefs.h <<\_ACEOF
8105 #define const
8106 _ACEOF
8107
8108 fi
8109
8110
8111   { echo "$as_me:$LINENO: checking for signed" >&5
8112 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8113 if test "${bh_cv_c_signed+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122
8123 int
8124 main ()
8125 {
8126 signed char x;
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135   *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138   (eval "$ac_compile") 2>conftest.er1
8139   ac_status=$?
8140   grep -v '^ *+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } && {
8145          test -z "$ac_c_werror_flag" ||
8146          test ! -s conftest.err
8147        } && test -s conftest.$ac_objext; then
8148   bh_cv_c_signed=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153         bh_cv_c_signed=no
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8159 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8160   if test $bh_cv_c_signed = no; then
8161
8162 cat >>confdefs.h <<\_ACEOF
8163 #define signed
8164 _ACEOF
8165
8166   fi
8167
8168 { echo "$as_me:$LINENO: checking for inline" >&5
8169 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8170 if test "${ac_cv_c_inline+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   ac_cv_c_inline=no
8174 for ac_kw in inline __inline__ __inline; do
8175   cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181 #ifndef __cplusplus
8182 typedef int foo_t;
8183 static $ac_kw foo_t static_foo () {return 0; }
8184 $ac_kw foo_t foo () {return 0; }
8185 #endif
8186
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (ac_try="$ac_compile"
8190 case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195   (eval "$ac_compile") 2>conftest.er1
8196   ac_status=$?
8197   grep -v '^ *+' conftest.er1 >conftest.err
8198   rm -f conftest.er1
8199   cat conftest.err >&5
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } && {
8202          test -z "$ac_c_werror_flag" ||
8203          test ! -s conftest.err
8204        } && test -s conftest.$ac_objext; then
8205   ac_cv_c_inline=$ac_kw
8206 else
8207   echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8209
8210
8211 fi
8212
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214   test "$ac_cv_c_inline" != no && break
8215 done
8216
8217 fi
8218 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8219 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8220
8221
8222 case $ac_cv_c_inline in
8223   inline | yes) ;;
8224   *)
8225     case $ac_cv_c_inline in
8226       no) ac_val=;;
8227       *) ac_val=$ac_cv_c_inline;;
8228     esac
8229     cat >>confdefs.h <<_ACEOF
8230 #ifndef __cplusplus
8231 #define inline $ac_val
8232 #endif
8233 _ACEOF
8234     ;;
8235 esac
8236
8237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8248                   inttypes.h stdint.h unistd.h
8249 do
8250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262 $ac_includes_default
8263
8264 #include <$ac_header>
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273   (eval "$ac_compile") 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } && {
8280          test -z "$ac_c_werror_flag" ||
8281          test ! -s conftest.err
8282        } && test -s conftest.$ac_objext; then
8283   eval "$as_ac_Header=yes"
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288         eval "$as_ac_Header=no"
8289 fi
8290
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 fi
8293 ac_res=`eval echo '${'$as_ac_Header'}'`
8294                { echo "$as_me:$LINENO: result: $ac_res" >&5
8295 echo "${ECHO_T}$ac_res" >&6; }
8296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8297   cat >>confdefs.h <<_ACEOF
8298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8299 _ACEOF
8300
8301 fi
8302
8303 done
8304
8305
8306 { echo "$as_me:$LINENO: checking for off_t" >&5
8307 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8308 if test "${ac_cv_type_off_t+set}" = set; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317 $ac_includes_default
8318 typedef off_t ac__type_new_;
8319 int
8320 main ()
8321 {
8322 if ((ac__type_new_ *) 0)
8323   return 0;
8324 if (sizeof (ac__type_new_))
8325   return 0;
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337   (eval "$ac_compile") 2>conftest.er1
8338   ac_status=$?
8339   grep -v '^ *+' conftest.er1 >conftest.err
8340   rm -f conftest.er1
8341   cat conftest.err >&5
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); } && {
8344          test -z "$ac_c_werror_flag" ||
8345          test ! -s conftest.err
8346        } && test -s conftest.$ac_objext; then
8347   ac_cv_type_off_t=yes
8348 else
8349   echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352         ac_cv_type_off_t=no
8353 fi
8354
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 fi
8357 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8358 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8359 if test $ac_cv_type_off_t = yes; then
8360   :
8361 else
8362
8363 cat >>confdefs.h <<_ACEOF
8364 #define off_t long int
8365 _ACEOF
8366
8367 fi
8368
8369 { echo "$as_me:$LINENO: checking for size_t" >&5
8370 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8371 if test "${ac_cv_type_size_t+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380 $ac_includes_default
8381 typedef size_t ac__type_new_;
8382 int
8383 main ()
8384 {
8385 if ((ac__type_new_ *) 0)
8386   return 0;
8387 if (sizeof (ac__type_new_))
8388   return 0;
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_compile") 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } && {
8407          test -z "$ac_c_werror_flag" ||
8408          test ! -s conftest.err
8409        } && test -s conftest.$ac_objext; then
8410   ac_cv_type_size_t=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         ac_cv_type_size_t=no
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8421 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8422 if test $ac_cv_type_size_t = yes; then
8423   :
8424 else
8425
8426 cat >>confdefs.h <<_ACEOF
8427 #define size_t unsigned int
8428 _ACEOF
8429
8430 fi
8431
8432
8433   { echo "$as_me:$LINENO: checking for long long" >&5
8434 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8435 if test "${ac_cv_type_long_long+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444 long long ll = 1LL; int i = 63;
8445 int
8446 main ()
8447 {
8448 long long llmax = (long long) -1;
8449      return ll << i | ll >> i | llmax / ll | llmax % ll;
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8456 case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_link") 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } && {
8468          test -z "$ac_c_werror_flag" ||
8469          test ! -s conftest.err
8470        } && test -s conftest$ac_exeext &&
8471        $as_test_x conftest$ac_exeext; then
8472   ac_cv_type_long_long=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477         ac_cv_type_long_long=no
8478 fi
8479
8480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8481       conftest$ac_exeext conftest.$ac_ext
8482 fi
8483 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8484 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8485   if test $ac_cv_type_long_long = yes; then
8486
8487 cat >>confdefs.h <<\_ACEOF
8488 #define HAVE_LONG_LONG 1
8489 _ACEOF
8490
8491   fi
8492
8493
8494   { echo "$as_me:$LINENO: checking for long double" >&5
8495 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8496 if test "${gt_cv_c_long_double+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   if test "$GCC" = yes; then
8500        gt_cv_c_long_double=yes
8501      else
8502        cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508
8509          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8510          long double foo = 0.0;
8511          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8512          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8513
8514 int
8515 main ()
8516 {
8517
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8524 case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_compile") 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } && {
8536          test -z "$ac_c_werror_flag" ||
8537          test ! -s conftest.err
8538        } && test -s conftest.$ac_objext; then
8539   gt_cv_c_long_double=yes
8540 else
8541   echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8543
8544         gt_cv_c_long_double=no
8545 fi
8546
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548      fi
8549 fi
8550 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8551 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8552   if test $gt_cv_c_long_double = yes; then
8553
8554 cat >>confdefs.h <<\_ACEOF
8555 #define HAVE_LONG_DOUBLE 1
8556 _ACEOF
8557
8558   fi
8559
8560
8561   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8562 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8563 if test "${gt_cv_c_wchar_t+set}" = set; then
8564   echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566   cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 #include <stddef.h>
8573        wchar_t foo = (wchar_t)'\0';
8574 int
8575 main ()
8576 {
8577
8578   ;
8579   return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8584 case "(($ac_try" in
8585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586   *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589   (eval "$ac_compile") 2>conftest.er1
8590   ac_status=$?
8591   grep -v '^ *+' conftest.er1 >conftest.err
8592   rm -f conftest.er1
8593   cat conftest.err >&5
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } && {
8596          test -z "$ac_c_werror_flag" ||
8597          test ! -s conftest.err
8598        } && test -s conftest.$ac_objext; then
8599   gt_cv_c_wchar_t=yes
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604         gt_cv_c_wchar_t=no
8605 fi
8606
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 fi
8609 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8610 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8611   if test $gt_cv_c_wchar_t = yes; then
8612
8613 cat >>confdefs.h <<\_ACEOF
8614 #define HAVE_WCHAR_T 1
8615 _ACEOF
8616
8617   fi
8618
8619
8620   { echo "$as_me:$LINENO: checking for wint_t" >&5
8621 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8622 if test "${gt_cv_c_wint_t+set}" = set; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625   cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631 #include <wchar.h>
8632        wint_t foo = (wchar_t)'\0';
8633 int
8634 main ()
8635 {
8636
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8643 case "(($ac_try" in
8644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645   *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648   (eval "$ac_compile") 2>conftest.er1
8649   ac_status=$?
8650   grep -v '^ *+' conftest.er1 >conftest.err
8651   rm -f conftest.er1
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); } && {
8655          test -z "$ac_c_werror_flag" ||
8656          test ! -s conftest.err
8657        } && test -s conftest.$ac_objext; then
8658   gt_cv_c_wint_t=yes
8659 else
8660   echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663         gt_cv_c_wint_t=no
8664 fi
8665
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 fi
8668 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8669 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8670   if test $gt_cv_c_wint_t = yes; then
8671
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_WINT_T 1
8674 _ACEOF
8675
8676   fi
8677
8678
8679   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8680 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8681 if test "${gl_cv_header_inttypes_h+set}" = set; then
8682   echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684   cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h.  */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h.  */
8690 #include <sys/types.h>
8691 #include <inttypes.h>
8692 int
8693 main ()
8694 {
8695 uintmax_t i = (uintmax_t) -1;
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (ac_try="$ac_compile"
8702 case "(($ac_try" in
8703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704   *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707   (eval "$ac_compile") 2>conftest.er1
8708   ac_status=$?
8709   grep -v '^ *+' conftest.er1 >conftest.err
8710   rm -f conftest.er1
8711   cat conftest.err >&5
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } && {
8714          test -z "$ac_c_werror_flag" ||
8715          test ! -s conftest.err
8716        } && test -s conftest.$ac_objext; then
8717   gl_cv_header_inttypes_h=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722         gl_cv_header_inttypes_h=no
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8728 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8729   if test $gl_cv_header_inttypes_h = yes; then
8730
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8733 _ACEOF
8734
8735   fi
8736
8737
8738   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8739 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8740 if test "${gl_cv_header_stdint_h+set}" = set; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749 #include <sys/types.h>
8750 #include <stdint.h>
8751 int
8752 main ()
8753 {
8754 uintmax_t i = (uintmax_t) -1;
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (ac_try="$ac_compile"
8761 case "(($ac_try" in
8762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763   *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766   (eval "$ac_compile") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } && {
8773          test -z "$ac_c_werror_flag" ||
8774          test ! -s conftest.err
8775        } && test -s conftest.$ac_objext; then
8776   gl_cv_header_stdint_h=yes
8777 else
8778   echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781         gl_cv_header_stdint_h=no
8782 fi
8783
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 fi
8786 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8787 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8788   if test $gl_cv_header_stdint_h = yes; then
8789
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE_STDINT_H_WITH_UINTMAX 1
8792 _ACEOF
8793
8794   fi
8795
8796
8797
8798
8799   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8800 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8801 if test "${gt_cv_c_intmax_t+set}" = set; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810
8811 #include <stddef.h>
8812 #include <stdlib.h>
8813 #if HAVE_STDINT_H_WITH_UINTMAX
8814 #include <stdint.h>
8815 #endif
8816 #if HAVE_INTTYPES_H_WITH_UINTMAX
8817 #include <inttypes.h>
8818 #endif
8819
8820 int
8821 main ()
8822 {
8823 intmax_t x = -1;
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 rm -f conftest.$ac_objext
8829 if { (ac_try="$ac_compile"
8830 case "(($ac_try" in
8831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832   *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835   (eval "$ac_compile") 2>conftest.er1
8836   ac_status=$?
8837   grep -v '^ *+' conftest.er1 >conftest.err
8838   rm -f conftest.er1
8839   cat conftest.err >&5
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); } && {
8842          test -z "$ac_c_werror_flag" ||
8843          test ! -s conftest.err
8844        } && test -s conftest.$ac_objext; then
8845   gt_cv_c_intmax_t=yes
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850         gt_cv_c_intmax_t=no
8851 fi
8852
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8856 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8857   if test $gt_cv_c_intmax_t = yes; then
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_INTMAX_T 1
8861 _ACEOF
8862
8863   fi
8864
8865
8866
8867   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8868 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8869 if test "${gt_cv_func_printf_posix+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872
8873       if test "$cross_compiling" = yes; then
8874
8875         cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h.  */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h.  */
8881
8882 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8883   notposix
8884 #endif
8885
8886 _ACEOF
8887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8888   $EGREP "notposix" >/dev/null 2>&1; then
8889   gt_cv_func_printf_posix="guessing no"
8890 else
8891   gt_cv_func_printf_posix="guessing yes"
8892 fi
8893 rm -f conftest*
8894
8895
8896 else
8897   cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903
8904 #include <stdio.h>
8905 #include <string.h>
8906 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8907    dollar expansion (possibly an autoconf bug).  */
8908 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8909 static char buf[100];
8910 int main ()
8911 {
8912   sprintf (buf, format, 33, 55);
8913   return (strcmp (buf, "55 33") != 0);
8914 }
8915 _ACEOF
8916 rm -f conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_link") 2>&5
8924   ac_status=$?
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8927   { (case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_try") 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   gt_cv_func_printf_posix=yes
8937 else
8938   echo "$as_me: program exited with status $ac_status" >&5
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942 ( exit $ac_status )
8943 gt_cv_func_printf_posix=no
8944 fi
8945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8946 fi
8947
8948
8949
8950 fi
8951 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8952 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8953   case $gt_cv_func_printf_posix in
8954     *yes)
8955
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_POSIX_PRINTF 1
8958 _ACEOF
8959
8960       ;;
8961   esac
8962
8963 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8964 # for constant arguments.  Useless!
8965 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8966 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8967 if test "${ac_cv_working_alloca_h+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970   cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h.  */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h.  */
8976 #include <alloca.h>
8977 int
8978 main ()
8979 {
8980 char *p = (char *) alloca (2 * sizeof (int));
8981                           if (p) return 0;
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (ac_try="$ac_link"
8988 case "(($ac_try" in
8989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990   *) ac_try_echo=$ac_try;;
8991 esac
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993   (eval "$ac_link") 2>conftest.er1
8994   ac_status=$?
8995   grep -v '^ *+' conftest.er1 >conftest.err
8996   rm -f conftest.er1
8997   cat conftest.err >&5
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } && {
9000          test -z "$ac_c_werror_flag" ||
9001          test ! -s conftest.err
9002        } && test -s conftest$ac_exeext &&
9003        $as_test_x conftest$ac_exeext; then
9004   ac_cv_working_alloca_h=yes
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009         ac_cv_working_alloca_h=no
9010 fi
9011
9012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9013       conftest$ac_exeext conftest.$ac_ext
9014 fi
9015 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9016 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9017 if test $ac_cv_working_alloca_h = yes; then
9018
9019 cat >>confdefs.h <<\_ACEOF
9020 #define HAVE_ALLOCA_H 1
9021 _ACEOF
9022
9023 fi
9024
9025 { echo "$as_me:$LINENO: checking for alloca" >&5
9026 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9027 if test "${ac_cv_func_alloca_works+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036 #ifdef __GNUC__
9037 # define alloca __builtin_alloca
9038 #else
9039 # ifdef _MSC_VER
9040 #  include <malloc.h>
9041 #  define alloca _alloca
9042 # else
9043 #  ifdef HAVE_ALLOCA_H
9044 #   include <alloca.h>
9045 #  else
9046 #   ifdef _AIX
9047  #pragma alloca
9048 #   else
9049 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9050 char *alloca ();
9051 #    endif
9052 #   endif
9053 #  endif
9054 # endif
9055 #endif
9056
9057 int
9058 main ()
9059 {
9060 char *p = (char *) alloca (1);
9061                                     if (p) return 0;
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9068 case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073   (eval "$ac_link") 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } && {
9080          test -z "$ac_c_werror_flag" ||
9081          test ! -s conftest.err
9082        } && test -s conftest$ac_exeext &&
9083        $as_test_x conftest$ac_exeext; then
9084   ac_cv_func_alloca_works=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089         ac_cv_func_alloca_works=no
9090 fi
9091
9092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9093       conftest$ac_exeext conftest.$ac_ext
9094 fi
9095 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9096 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9097
9098 if test $ac_cv_func_alloca_works = yes; then
9099
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_ALLOCA 1
9102 _ACEOF
9103
9104 else
9105   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9106 # that cause trouble.  Some versions do not even contain alloca or
9107 # contain a buggy version.  If you still want to use their alloca,
9108 # use ar to extract alloca.o from them instead of compiling alloca.c.
9109
9110 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9111
9112 cat >>confdefs.h <<\_ACEOF
9113 #define C_ALLOCA 1
9114 _ACEOF
9115
9116
9117 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9118 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9119 if test "${ac_cv_os_cray+set}" = set; then
9120   echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122   cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128 #if defined CRAY && ! defined CRAY2
9129 webecray
9130 #else
9131 wenotbecray
9132 #endif
9133
9134 _ACEOF
9135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9136   $EGREP "webecray" >/dev/null 2>&1; then
9137   ac_cv_os_cray=yes
9138 else
9139   ac_cv_os_cray=no
9140 fi
9141 rm -f conftest*
9142
9143 fi
9144 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9145 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9146 if test $ac_cv_os_cray = yes; then
9147   for ac_func in _getb67 GETB67 getb67; do
9148     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154   cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9162 #define $ac_func innocuous_$ac_func
9163
9164 /* System header to define __stub macros and hopefully few prototypes,
9165     which can conflict with char $ac_func (); below.
9166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9167     <limits.h> exists even on freestanding compilers.  */
9168
9169 #ifdef __STDC__
9170 # include <limits.h>
9171 #else
9172 # include <assert.h>
9173 #endif
9174
9175 #undef $ac_func
9176
9177 /* Override any GCC internal prototype to avoid an error.
9178    Use char because int might match the return type of a GCC
9179    builtin and then its argument prototype would still apply.  */
9180 #ifdef __cplusplus
9181 extern "C"
9182 #endif
9183 char $ac_func ();
9184 /* The GNU C library defines this for functions which it implements
9185     to always fail with ENOSYS.  Some functions are actually named
9186     something starting with __ and the normal name is an alias.  */
9187 #if defined __stub_$ac_func || defined __stub___$ac_func
9188 choke me
9189 #endif
9190
9191 int
9192 main ()
9193 {
9194 return $ac_func ();
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (ac_try="$ac_link"
9201 case "(($ac_try" in
9202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203   *) ac_try_echo=$ac_try;;
9204 esac
9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206   (eval "$ac_link") 2>conftest.er1
9207   ac_status=$?
9208   grep -v '^ *+' conftest.er1 >conftest.err
9209   rm -f conftest.er1
9210   cat conftest.err >&5
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } && {
9213          test -z "$ac_c_werror_flag" ||
9214          test ! -s conftest.err
9215        } && test -s conftest$ac_exeext &&
9216        $as_test_x conftest$ac_exeext; then
9217   eval "$as_ac_var=yes"
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222         eval "$as_ac_var=no"
9223 fi
9224
9225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9226       conftest$ac_exeext conftest.$ac_ext
9227 fi
9228 ac_res=`eval echo '${'$as_ac_var'}'`
9229                { echo "$as_me:$LINENO: result: $ac_res" >&5
9230 echo "${ECHO_T}$ac_res" >&6; }
9231 if test `eval echo '${'$as_ac_var'}'` = yes; then
9232
9233 cat >>confdefs.h <<_ACEOF
9234 #define CRAY_STACKSEG_END $ac_func
9235 _ACEOF
9236
9237     break
9238 fi
9239
9240   done
9241 fi
9242
9243 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9244 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9245 if test "${ac_cv_c_stack_direction+set}" = set; then
9246   echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248   if test "$cross_compiling" = yes; then
9249   ac_cv_c_stack_direction=0
9250 else
9251   cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h.  */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h.  */
9257 $ac_includes_default
9258 int
9259 find_stack_direction ()
9260 {
9261   static char *addr = 0;
9262   auto char dummy;
9263   if (addr == 0)
9264     {
9265       addr = &dummy;
9266       return find_stack_direction ();
9267     }
9268   else
9269     return (&dummy > addr) ? 1 : -1;
9270 }
9271
9272 int
9273 main ()
9274 {
9275   return find_stack_direction () < 0;
9276 }
9277 _ACEOF
9278 rm -f conftest$ac_exeext
9279 if { (ac_try="$ac_link"
9280 case "(($ac_try" in
9281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282   *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285   (eval "$ac_link") 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9289   { (case "(($ac_try" in
9290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291   *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294   (eval "$ac_try") 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; }; then
9298   ac_cv_c_stack_direction=1
9299 else
9300   echo "$as_me: program exited with status $ac_status" >&5
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ( exit $ac_status )
9305 ac_cv_c_stack_direction=-1
9306 fi
9307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9308 fi
9309
9310
9311 fi
9312 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9313 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9314
9315 cat >>confdefs.h <<_ACEOF
9316 #define STACK_DIRECTION $ac_cv_c_stack_direction
9317 _ACEOF
9318
9319
9320 fi
9321
9322
9323
9324 for ac_header in stdlib.h unistd.h
9325 do
9326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 fi
9333 ac_res=`eval echo '${'$as_ac_Header'}'`
9334                { echo "$as_me:$LINENO: result: $ac_res" >&5
9335 echo "${ECHO_T}$ac_res" >&6; }
9336 else
9337   # Is the header compilable?
9338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346 $ac_includes_default
9347 #include <$ac_header>
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9351 case "(($ac_try" in
9352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353   *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356   (eval "$ac_compile") 2>conftest.er1
9357   ac_status=$?
9358   grep -v '^ *+' conftest.er1 >conftest.err
9359   rm -f conftest.er1
9360   cat conftest.err >&5
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } && {
9363          test -z "$ac_c_werror_flag" ||
9364          test ! -s conftest.err
9365        } && test -s conftest.$ac_objext; then
9366   ac_header_compiler=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371         ac_header_compiler=no
9372 fi
9373
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9376 echo "${ECHO_T}$ac_header_compiler" >&6; }
9377
9378 # Is the header present?
9379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h.  */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h.  */
9387 #include <$ac_header>
9388 _ACEOF
9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
9390 case "(($ac_try" in
9391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392   *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } >/dev/null && {
9402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9403          test ! -s conftest.err
9404        }; then
9405   ac_header_preproc=yes
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410   ac_header_preproc=no
9411 fi
9412
9413 rm -f conftest.err conftest.$ac_ext
9414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 echo "${ECHO_T}$ac_header_preproc" >&6; }
9416
9417 # So?  What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9419   yes:no: )
9420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424     ac_header_preproc=yes
9425     ;;
9426   no:yes:* )
9427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9439
9440     ;;
9441 esac
9442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   eval "$as_ac_Header=\$ac_header_preproc"
9448 fi
9449 ac_res=`eval echo '${'$as_ac_Header'}'`
9450                { echo "$as_me:$LINENO: result: $ac_res" >&5
9451 echo "${ECHO_T}$ac_res" >&6; }
9452
9453 fi
9454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455   cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9457 _ACEOF
9458
9459 fi
9460
9461 done
9462
9463
9464 for ac_func in getpagesize
9465 do
9466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9480 #define $ac_func innocuous_$ac_func
9481
9482 /* System header to define __stub macros and hopefully few prototypes,
9483     which can conflict with char $ac_func (); below.
9484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9485     <limits.h> exists even on freestanding compilers.  */
9486
9487 #ifdef __STDC__
9488 # include <limits.h>
9489 #else
9490 # include <assert.h>
9491 #endif
9492
9493 #undef $ac_func
9494
9495 /* Override any GCC internal prototype to avoid an error.
9496    Use char because int might match the return type of a GCC
9497    builtin and then its argument prototype would still apply.  */
9498 #ifdef __cplusplus
9499 extern "C"
9500 #endif
9501 char $ac_func ();
9502 /* The GNU C library defines this for functions which it implements
9503     to always fail with ENOSYS.  Some functions are actually named
9504     something starting with __ and the normal name is an alias.  */
9505 #if defined __stub_$ac_func || defined __stub___$ac_func
9506 choke me
9507 #endif
9508
9509 int
9510 main ()
9511 {
9512 return $ac_func ();
9513   ;
9514   return 0;
9515 }
9516 _ACEOF
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (ac_try="$ac_link"
9519 case "(($ac_try" in
9520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521   *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524   (eval "$ac_link") 2>conftest.er1
9525   ac_status=$?
9526   grep -v '^ *+' conftest.er1 >conftest.err
9527   rm -f conftest.er1
9528   cat conftest.err >&5
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); } && {
9531          test -z "$ac_c_werror_flag" ||
9532          test ! -s conftest.err
9533        } && test -s conftest$ac_exeext &&
9534        $as_test_x conftest$ac_exeext; then
9535   eval "$as_ac_var=yes"
9536 else
9537   echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540         eval "$as_ac_var=no"
9541 fi
9542
9543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9544       conftest$ac_exeext conftest.$ac_ext
9545 fi
9546 ac_res=`eval echo '${'$as_ac_var'}'`
9547                { echo "$as_me:$LINENO: result: $ac_res" >&5
9548 echo "${ECHO_T}$ac_res" >&6; }
9549 if test `eval echo '${'$as_ac_var'}'` = yes; then
9550   cat >>confdefs.h <<_ACEOF
9551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9552 _ACEOF
9553
9554 fi
9555 done
9556
9557 { echo "$as_me:$LINENO: checking for working mmap" >&5
9558 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9559 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9560   echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562   if test "$cross_compiling" = yes; then
9563   ac_cv_func_mmap_fixed_mapped=no
9564 else
9565   cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h.  */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h.  */
9571 $ac_includes_default
9572 /* malloc might have been renamed as rpl_malloc. */
9573 #undef malloc
9574
9575 /* Thanks to Mike Haertel and Jim Avera for this test.
9576    Here is a matrix of mmap possibilities:
9577         mmap private not fixed
9578         mmap private fixed at somewhere currently unmapped
9579         mmap private fixed at somewhere already mapped
9580         mmap shared not fixed
9581         mmap shared fixed at somewhere currently unmapped
9582         mmap shared fixed at somewhere already mapped
9583    For private mappings, we should verify that changes cannot be read()
9584    back from the file, nor mmap's back from the file at a different
9585    address.  (There have been systems where private was not correctly
9586    implemented like the infamous i386 svr4.0, and systems where the
9587    VM page cache was not coherent with the file system buffer cache
9588    like early versions of FreeBSD and possibly contemporary NetBSD.)
9589    For shared mappings, we should conversely verify that changes get
9590    propagated back to all the places they're supposed to be.
9591
9592    Grep wants private fixed already mapped.
9593    The main things grep needs to know about mmap are:
9594    * does it exist and is it safe to write into the mmap'd area
9595    * how to use it (BSD variants)  */
9596
9597 #include <fcntl.h>
9598 #include <sys/mman.h>
9599
9600 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9601 char *malloc ();
9602 #endif
9603
9604 /* This mess was copied from the GNU getpagesize.h.  */
9605 #ifndef HAVE_GETPAGESIZE
9606 /* Assume that all systems that can run configure have sys/param.h.  */
9607 # ifndef HAVE_SYS_PARAM_H
9608 #  define HAVE_SYS_PARAM_H 1
9609 # endif
9610
9611 # ifdef _SC_PAGESIZE
9612 #  define getpagesize() sysconf(_SC_PAGESIZE)
9613 # else /* no _SC_PAGESIZE */
9614 #  ifdef HAVE_SYS_PARAM_H
9615 #   include <sys/param.h>
9616 #   ifdef EXEC_PAGESIZE
9617 #    define getpagesize() EXEC_PAGESIZE
9618 #   else /* no EXEC_PAGESIZE */
9619 #    ifdef NBPG
9620 #     define getpagesize() NBPG * CLSIZE
9621 #     ifndef CLSIZE
9622 #      define CLSIZE 1
9623 #     endif /* no CLSIZE */
9624 #    else /* no NBPG */
9625 #     ifdef NBPC
9626 #      define getpagesize() NBPC
9627 #     else /* no NBPC */
9628 #      ifdef PAGESIZE
9629 #       define getpagesize() PAGESIZE
9630 #      endif /* PAGESIZE */
9631 #     endif /* no NBPC */
9632 #    endif /* no NBPG */
9633 #   endif /* no EXEC_PAGESIZE */
9634 #  else /* no HAVE_SYS_PARAM_H */
9635 #   define getpagesize() 8192   /* punt totally */
9636 #  endif /* no HAVE_SYS_PARAM_H */
9637 # endif /* no _SC_PAGESIZE */
9638
9639 #endif /* no HAVE_GETPAGESIZE */
9640
9641 int
9642 main ()
9643 {
9644   char *data, *data2, *data3;
9645   int i, pagesize;
9646   int fd;
9647
9648   pagesize = getpagesize ();
9649
9650   /* First, make a file with some known garbage in it. */
9651   data = (char *) malloc (pagesize);
9652   if (!data)
9653     return 1;
9654   for (i = 0; i < pagesize; ++i)
9655     *(data + i) = rand ();
9656   umask (0);
9657   fd = creat ("conftest.mmap", 0600);
9658   if (fd < 0)
9659     return 1;
9660   if (write (fd, data, pagesize) != pagesize)
9661     return 1;
9662   close (fd);
9663
9664   /* Next, try to mmap the file at a fixed address which already has
9665      something else allocated at it.  If we can, also make sure that
9666      we see the same garbage.  */
9667   fd = open ("conftest.mmap", O_RDWR);
9668   if (fd < 0)
9669     return 1;
9670   data2 = (char *) malloc (2 * pagesize);
9671   if (!data2)
9672     return 1;
9673   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9674   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9675                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9676     return 1;
9677   for (i = 0; i < pagesize; ++i)
9678     if (*(data + i) != *(data2 + i))
9679       return 1;
9680
9681   /* Finally, make sure that changes to the mapped area do not
9682      percolate back to the file as seen by read().  (This is a bug on
9683      some variants of i386 svr4.0.)  */
9684   for (i = 0; i < pagesize; ++i)
9685     *(data2 + i) = *(data2 + i) + 1;
9686   data3 = (char *) malloc (pagesize);
9687   if (!data3)
9688     return 1;
9689   if (read (fd, data3, pagesize) != pagesize)
9690     return 1;
9691   for (i = 0; i < pagesize; ++i)
9692     if (*(data + i) != *(data3 + i))
9693       return 1;
9694   close (fd);
9695   return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9700 case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_link") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9709   { (case "(($ac_try" in
9710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711   *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714   (eval "$ac_try") 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   ac_cv_func_mmap_fixed_mapped=yes
9719 else
9720   echo "$as_me: program exited with status $ac_status" >&5
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ( exit $ac_status )
9725 ac_cv_func_mmap_fixed_mapped=no
9726 fi
9727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9728 fi
9729
9730
9731 fi
9732 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9733 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9734 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9735
9736 cat >>confdefs.h <<\_ACEOF
9737 #define HAVE_MMAP 1
9738 _ACEOF
9739
9740 fi
9741 rm -f conftest.mmap
9742
9743
9744     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9745 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9746 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755
9756 #include <features.h>
9757 #ifdef __GNU_LIBRARY__
9758  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9759   Lucky GNU user
9760  #endif
9761 #endif
9762
9763 _ACEOF
9764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9765   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9766   ac_cv_gnu_library_2_1=yes
9767 else
9768   ac_cv_gnu_library_2_1=no
9769 fi
9770 rm -f conftest*
9771
9772
9773
9774 fi
9775 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9776 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9777
9778     GLIBC21="$ac_cv_gnu_library_2_1"
9779
9780
9781
9782
9783   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9784 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9785 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788
9789       if test "$cross_compiling" = yes; then
9790
9791           # Guess based on the CPU.
9792           case "$host_cpu" in
9793             alpha* | i3456786 | m68k | s390*)
9794               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9795             *)
9796               gt_cv_int_divbyzero_sigfpe="guessing no";;
9797           esac
9798
9799 else
9800   cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h.  */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h.  */
9806
9807 #include <stdlib.h>
9808 #include <signal.h>
9809
9810 static void
9811 #ifdef __cplusplus
9812 sigfpe_handler (int sig)
9813 #else
9814 sigfpe_handler (sig) int sig;
9815 #endif
9816 {
9817   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9818   exit (sig != SIGFPE);
9819 }
9820
9821 int x = 1;
9822 int y = 0;
9823 int z;
9824 int nan;
9825
9826 int main ()
9827 {
9828   signal (SIGFPE, sigfpe_handler);
9829 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9830 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9831   signal (SIGTRAP, sigfpe_handler);
9832 #endif
9833 /* Linux/SPARC yields signal SIGILL.  */
9834 #if defined (__sparc__) && defined (__linux__)
9835   signal (SIGILL, sigfpe_handler);
9836 #endif
9837
9838   z = x / y;
9839   nan = y / y;
9840   exit (1);
9841 }
9842
9843 _ACEOF
9844 rm -f conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9855   { (case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_try") 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   gt_cv_int_divbyzero_sigfpe=yes
9865 else
9866   echo "$as_me: program exited with status $ac_status" >&5
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ( exit $ac_status )
9871 gt_cv_int_divbyzero_sigfpe=no
9872 fi
9873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9874 fi
9875
9876
9877
9878 fi
9879 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9880 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9881   case "$gt_cv_int_divbyzero_sigfpe" in
9882     *yes) value=1;;
9883     *) value=0;;
9884   esac
9885
9886 cat >>confdefs.h <<_ACEOF
9887 #define INTDIV0_RAISES_SIGFPE $value
9888 _ACEOF
9889
9890
9891
9892   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9893 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9894 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903 unsigned long long ull = 1ULL; int i = 63;
9904 int
9905 main ()
9906 {
9907 unsigned long long ullmax = (unsigned long long) -1;
9908      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_link") 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } && {
9927          test -z "$ac_c_werror_flag" ||
9928          test ! -s conftest.err
9929        } && test -s conftest$ac_exeext &&
9930        $as_test_x conftest$ac_exeext; then
9931   ac_cv_type_unsigned_long_long=yes
9932 else
9933   echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936         ac_cv_type_unsigned_long_long=no
9937 fi
9938
9939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9940       conftest$ac_exeext conftest.$ac_ext
9941 fi
9942 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9943 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9944   if test $ac_cv_type_unsigned_long_long = yes; then
9945
9946 cat >>confdefs.h <<\_ACEOF
9947 #define HAVE_UNSIGNED_LONG_LONG 1
9948 _ACEOF
9949
9950   fi
9951
9952
9953
9954
9955   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9956
9957     test $ac_cv_type_unsigned_long_long = yes \
9958       && ac_type='unsigned long long' \
9959       || ac_type='unsigned long'
9960
9961 cat >>confdefs.h <<_ACEOF
9962 #define uintmax_t $ac_type
9963 _ACEOF
9964
9965   else
9966
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_UINTMAX_T 1
9969 _ACEOF
9970
9971   fi
9972
9973
9974   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9975 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9976 if test "${gt_cv_header_inttypes_h+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979
9980     cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h.  */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h.  */
9986 #include <sys/types.h>
9987 #include <inttypes.h>
9988 int
9989 main ()
9990 {
9991
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext
9997 if { (ac_try="$ac_compile"
9998 case "(($ac_try" in
9999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000   *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003   (eval "$ac_compile") 2>conftest.er1
10004   ac_status=$?
10005   grep -v '^ *+' conftest.er1 >conftest.err
10006   rm -f conftest.er1
10007   cat conftest.err >&5
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } && {
10010          test -z "$ac_c_werror_flag" ||
10011          test ! -s conftest.err
10012        } && test -s conftest.$ac_objext; then
10013   gt_cv_header_inttypes_h=yes
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018         gt_cv_header_inttypes_h=no
10019 fi
10020
10021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10022
10023 fi
10024 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10025 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10026   if test $gt_cv_header_inttypes_h = yes; then
10027
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_INTTYPES_H 1
10030 _ACEOF
10031
10032   fi
10033
10034
10035
10036   if test $gt_cv_header_inttypes_h = yes; then
10037     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10038 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10039 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042
10043         cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049 #include <inttypes.h>
10050 #ifdef PRId32
10051 char *p = PRId32;
10052 #endif
10053
10054 int
10055 main ()
10056 {
10057
10058   ;
10059   return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_compile") 2>conftest.er1
10070   ac_status=$?
10071   grep -v '^ *+' conftest.er1 >conftest.err
10072   rm -f conftest.er1
10073   cat conftest.err >&5
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); } && {
10076          test -z "$ac_c_werror_flag" ||
10077          test ! -s conftest.err
10078        } && test -s conftest.$ac_objext; then
10079   gt_cv_inttypes_pri_broken=no
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084         gt_cv_inttypes_pri_broken=yes
10085 fi
10086
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088
10089 fi
10090 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10091 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10092   fi
10093   if test "$gt_cv_inttypes_pri_broken" = yes; then
10094
10095 cat >>confdefs.h <<_ACEOF
10096 #define PRI_MACROS_BROKEN 1
10097 _ACEOF
10098
10099   fi
10100
10101
10102
10103 for ac_header in stdint.h
10104 do
10105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 fi
10112 ac_res=`eval echo '${'$as_ac_Header'}'`
10113                { echo "$as_me:$LINENO: result: $ac_res" >&5
10114 echo "${ECHO_T}$ac_res" >&6; }
10115 else
10116   # Is the header compilable?
10117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125 $ac_includes_default
10126 #include <$ac_header>
10127 _ACEOF
10128 rm -f conftest.$ac_objext
10129 if { (ac_try="$ac_compile"
10130 case "(($ac_try" in
10131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132   *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135   (eval "$ac_compile") 2>conftest.er1
10136   ac_status=$?
10137   grep -v '^ *+' conftest.er1 >conftest.err
10138   rm -f conftest.er1
10139   cat conftest.err >&5
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } && {
10142          test -z "$ac_c_werror_flag" ||
10143          test ! -s conftest.err
10144        } && test -s conftest.$ac_objext; then
10145   ac_header_compiler=yes
10146 else
10147   echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150         ac_header_compiler=no
10151 fi
10152
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10155 echo "${ECHO_T}$ac_header_compiler" >&6; }
10156
10157 # Is the header present?
10158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166 #include <$ac_header>
10167 _ACEOF
10168 if { (ac_try="$ac_cpp conftest.$ac_ext"
10169 case "(($ac_try" in
10170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171   *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10175   ac_status=$?
10176   grep -v '^ *+' conftest.er1 >conftest.err
10177   rm -f conftest.er1
10178   cat conftest.err >&5
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); } >/dev/null && {
10181          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10182          test ! -s conftest.err
10183        }; then
10184   ac_header_preproc=yes
10185 else
10186   echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189   ac_header_preproc=no
10190 fi
10191
10192 rm -f conftest.err conftest.$ac_ext
10193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10194 echo "${ECHO_T}$ac_header_preproc" >&6; }
10195
10196 # So?  What about this header?
10197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10198   yes:no: )
10199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10203     ac_header_preproc=yes
10204     ;;
10205   no:yes:* )
10206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10218
10219     ;;
10220 esac
10221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   eval "$as_ac_Header=\$ac_header_preproc"
10227 fi
10228 ac_res=`eval echo '${'$as_ac_Header'}'`
10229                { echo "$as_me:$LINENO: result: $ac_res" >&5
10230 echo "${ECHO_T}$ac_res" >&6; }
10231
10232 fi
10233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10234   cat >>confdefs.h <<_ACEOF
10235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10236 _ACEOF
10237
10238 fi
10239
10240 done
10241
10242     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10243 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10244   result=
10245   cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251
10252 #include <limits.h>
10253 #if HAVE_STDINT_H
10254 #include <stdint.h>
10255 #endif
10256 #ifdef SIZE_MAX
10257 Found it
10258 #endif
10259
10260 _ACEOF
10261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10262   $EGREP "Found it" >/dev/null 2>&1; then
10263   result=yes
10264 fi
10265 rm -f conftest*
10266
10267   if test -z "$result"; then
10268                     if test "$cross_compiling" = yes; then
10269   # Depending upon the size, compute the lo and hi bounds.
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276 #include <stddef.h>
10277 int
10278 main ()
10279 {
10280 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10281 test_array [0] = 0
10282
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (ac_try="$ac_compile"
10289 case "(($ac_try" in
10290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291   *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294   (eval "$ac_compile") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } && {
10301          test -z "$ac_c_werror_flag" ||
10302          test ! -s conftest.err
10303        } && test -s conftest.$ac_objext; then
10304   ac_lo=0 ac_mid=0
10305   while :; do
10306     cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312 #include <stddef.h>
10313 int
10314 main ()
10315 {
10316 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10317 test_array [0] = 0
10318
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327   *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330   (eval "$ac_compile") 2>conftest.er1
10331   ac_status=$?
10332   grep -v '^ *+' conftest.er1 >conftest.err
10333   rm -f conftest.er1
10334   cat conftest.err >&5
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } && {
10337          test -z "$ac_c_werror_flag" ||
10338          test ! -s conftest.err
10339        } && test -s conftest.$ac_objext; then
10340   ac_hi=$ac_mid; break
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345         ac_lo=`expr $ac_mid + 1`
10346                         if test $ac_lo -le $ac_mid; then
10347                           ac_lo= ac_hi=
10348                           break
10349                         fi
10350                         ac_mid=`expr 2 '*' $ac_mid + 1`
10351 fi
10352
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354   done
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359         cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h.  */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h.  */
10365 #include <stddef.h>
10366 int
10367 main ()
10368 {
10369 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10370 test_array [0] = 0
10371
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext
10377 if { (ac_try="$ac_compile"
10378 case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383   (eval "$ac_compile") 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
10387   cat conftest.err >&5
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } && {
10390          test -z "$ac_c_werror_flag" ||
10391          test ! -s conftest.err
10392        } && test -s conftest.$ac_objext; then
10393   ac_hi=-1 ac_mid=-1
10394   while :; do
10395     cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 #include <stddef.h>
10402 int
10403 main ()
10404 {
10405 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10406 test_array [0] = 0
10407
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext
10413 if { (ac_try="$ac_compile"
10414 case "(($ac_try" in
10415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416   *) ac_try_echo=$ac_try;;
10417 esac
10418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419   (eval "$ac_compile") 2>conftest.er1
10420   ac_status=$?
10421   grep -v '^ *+' conftest.er1 >conftest.err
10422   rm -f conftest.er1
10423   cat conftest.err >&5
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && {
10426          test -z "$ac_c_werror_flag" ||
10427          test ! -s conftest.err
10428        } && test -s conftest.$ac_objext; then
10429   ac_lo=$ac_mid; break
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434         ac_hi=`expr '(' $ac_mid ')' - 1`
10435                         if test $ac_mid -le $ac_hi; then
10436                           ac_lo= ac_hi=
10437                           break
10438                         fi
10439                         ac_mid=`expr 2 '*' $ac_mid`
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10443   done
10444 else
10445   echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448         ac_lo= ac_hi=
10449 fi
10450
10451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452 fi
10453
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 # Binary search between lo and hi bounds.
10456 while test "x$ac_lo" != "x$ac_hi"; do
10457   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10458   cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h.  */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h.  */
10464 #include <stddef.h>
10465 int
10466 main ()
10467 {
10468 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10469 test_array [0] = 0
10470
10471   ;
10472   return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext
10476 if { (ac_try="$ac_compile"
10477 case "(($ac_try" in
10478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479   *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482   (eval "$ac_compile") 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } && {
10489          test -z "$ac_c_werror_flag" ||
10490          test ! -s conftest.err
10491        } && test -s conftest.$ac_objext; then
10492   ac_hi=$ac_mid
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497         ac_lo=`expr '(' $ac_mid ')' + 1`
10498 fi
10499
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 done
10502 case $ac_lo in
10503 ?*) res_hi=$ac_lo;;
10504 '') result=? ;;
10505 esac
10506 else
10507   cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513 #include <stddef.h>
10514 static long int longval () { return ~(size_t)0 / 10; }
10515 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10516 #include <stdio.h>
10517 #include <stdlib.h>
10518 int
10519 main ()
10520 {
10521
10522   FILE *f = fopen ("conftest.val", "w");
10523   if (! f)
10524     return 1;
10525   if ((~(size_t)0 / 10) < 0)
10526     {
10527       long int i = longval ();
10528       if (i != (~(size_t)0 / 10))
10529         return 1;
10530       fprintf (f, "%ld\n", i);
10531     }
10532   else
10533     {
10534       unsigned long int i = ulongval ();
10535       if (i != (~(size_t)0 / 10))
10536         return 1;
10537       fprintf (f, "%lu\n", i);
10538     }
10539   return ferror (f) || fclose (f) != 0;
10540
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_link") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10556   { (case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_try") 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565   res_hi=`cat conftest.val`
10566 else
10567   echo "$as_me: program exited with status $ac_status" >&5
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ( exit $ac_status )
10572 result=?
10573 fi
10574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10575 fi
10576 rm -f conftest.val
10577
10578     if test "$cross_compiling" = yes; then
10579   # Depending upon the size, compute the lo and hi bounds.
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586 #include <stddef.h>
10587 int
10588 main ()
10589 {
10590 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10591 test_array [0] = 0
10592
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604   (eval "$ac_compile") 2>conftest.er1
10605   ac_status=$?
10606   grep -v '^ *+' conftest.er1 >conftest.err
10607   rm -f conftest.er1
10608   cat conftest.err >&5
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } && {
10611          test -z "$ac_c_werror_flag" ||
10612          test ! -s conftest.err
10613        } && test -s conftest.$ac_objext; then
10614   ac_lo=0 ac_mid=0
10615   while :; do
10616     cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 #include <stddef.h>
10623 int
10624 main ()
10625 {
10626 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10627 test_array [0] = 0
10628
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext
10634 if { (ac_try="$ac_compile"
10635 case "(($ac_try" in
10636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637   *) ac_try_echo=$ac_try;;
10638 esac
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640   (eval "$ac_compile") 2>conftest.er1
10641   ac_status=$?
10642   grep -v '^ *+' conftest.er1 >conftest.err
10643   rm -f conftest.er1
10644   cat conftest.err >&5
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } && {
10647          test -z "$ac_c_werror_flag" ||
10648          test ! -s conftest.err
10649        } && test -s conftest.$ac_objext; then
10650   ac_hi=$ac_mid; break
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655         ac_lo=`expr $ac_mid + 1`
10656                         if test $ac_lo -le $ac_mid; then
10657                           ac_lo= ac_hi=
10658                           break
10659                         fi
10660                         ac_mid=`expr 2 '*' $ac_mid + 1`
10661 fi
10662
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664   done
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669         cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h.  */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h.  */
10675 #include <stddef.h>
10676 int
10677 main ()
10678 {
10679 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10680 test_array [0] = 0
10681
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext
10687 if { (ac_try="$ac_compile"
10688 case "(($ac_try" in
10689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690   *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693   (eval "$ac_compile") 2>conftest.er1
10694   ac_status=$?
10695   grep -v '^ *+' conftest.er1 >conftest.err
10696   rm -f conftest.er1
10697   cat conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } && {
10700          test -z "$ac_c_werror_flag" ||
10701          test ! -s conftest.err
10702        } && test -s conftest.$ac_objext; then
10703   ac_hi=-1 ac_mid=-1
10704   while :; do
10705     cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h.  */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h.  */
10711 #include <stddef.h>
10712 int
10713 main ()
10714 {
10715 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10716 test_array [0] = 0
10717
10718   ;
10719   return 0;
10720 }
10721 _ACEOF
10722 rm -f conftest.$ac_objext
10723 if { (ac_try="$ac_compile"
10724 case "(($ac_try" in
10725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726   *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729   (eval "$ac_compile") 2>conftest.er1
10730   ac_status=$?
10731   grep -v '^ *+' conftest.er1 >conftest.err
10732   rm -f conftest.er1
10733   cat conftest.err >&5
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); } && {
10736          test -z "$ac_c_werror_flag" ||
10737          test ! -s conftest.err
10738        } && test -s conftest.$ac_objext; then
10739   ac_lo=$ac_mid; break
10740 else
10741   echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744         ac_hi=`expr '(' $ac_mid ')' - 1`
10745                         if test $ac_mid -le $ac_hi; then
10746                           ac_lo= ac_hi=
10747                           break
10748                         fi
10749                         ac_mid=`expr 2 '*' $ac_mid`
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753   done
10754 else
10755   echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10757
10758         ac_lo= ac_hi=
10759 fi
10760
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 fi
10763
10764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 # Binary search between lo and hi bounds.
10766 while test "x$ac_lo" != "x$ac_hi"; do
10767   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10768   cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h.  */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h.  */
10774 #include <stddef.h>
10775 int
10776 main ()
10777 {
10778 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10779 test_array [0] = 0
10780
10781   ;
10782   return 0;
10783 }
10784 _ACEOF
10785 rm -f conftest.$ac_objext
10786 if { (ac_try="$ac_compile"
10787 case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_compile") 2>conftest.er1
10793   ac_status=$?
10794   grep -v '^ *+' conftest.er1 >conftest.err
10795   rm -f conftest.er1
10796   cat conftest.err >&5
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } && {
10799          test -z "$ac_c_werror_flag" ||
10800          test ! -s conftest.err
10801        } && test -s conftest.$ac_objext; then
10802   ac_hi=$ac_mid
10803 else
10804   echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807         ac_lo=`expr '(' $ac_mid ')' + 1`
10808 fi
10809
10810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 done
10812 case $ac_lo in
10813 ?*) res_lo=$ac_lo;;
10814 '') result=? ;;
10815 esac
10816 else
10817   cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h.  */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h.  */
10823 #include <stddef.h>
10824 static long int longval () { return ~(size_t)0 % 10; }
10825 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10826 #include <stdio.h>
10827 #include <stdlib.h>
10828 int
10829 main ()
10830 {
10831
10832   FILE *f = fopen ("conftest.val", "w");
10833   if (! f)
10834     return 1;
10835   if ((~(size_t)0 % 10) < 0)
10836     {
10837       long int i = longval ();
10838       if (i != (~(size_t)0 % 10))
10839         return 1;
10840       fprintf (f, "%ld\n", i);
10841     }
10842   else
10843     {
10844       unsigned long int i = ulongval ();
10845       if (i != (~(size_t)0 % 10))
10846         return 1;
10847       fprintf (f, "%lu\n", i);
10848     }
10849   return ferror (f) || fclose (f) != 0;
10850
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_link") 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10866   { (case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_try") 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; }; then
10875   res_lo=`cat conftest.val`
10876 else
10877   echo "$as_me: program exited with status $ac_status" >&5
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881 ( exit $ac_status )
10882 result=?
10883 fi
10884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10885 fi
10886 rm -f conftest.val
10887
10888     if test "$cross_compiling" = yes; then
10889   # Depending upon the size, compute the lo and hi bounds.
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h.  */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h.  */
10896 #include <stddef.h>
10897 int
10898 main ()
10899 {
10900 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10901 test_array [0] = 0
10902
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (ac_try="$ac_compile"
10909 case "(($ac_try" in
10910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911   *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914   (eval "$ac_compile") 2>conftest.er1
10915   ac_status=$?
10916   grep -v '^ *+' conftest.er1 >conftest.err
10917   rm -f conftest.er1
10918   cat conftest.err >&5
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); } && {
10921          test -z "$ac_c_werror_flag" ||
10922          test ! -s conftest.err
10923        } && test -s conftest.$ac_objext; then
10924   ac_lo=0 ac_mid=0
10925   while :; do
10926     cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 #include <stddef.h>
10933 int
10934 main ()
10935 {
10936 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10937 test_array [0] = 0
10938
10939   ;
10940   return 0;
10941 }
10942 _ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (ac_try="$ac_compile"
10945 case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_compile") 2>conftest.er1
10951   ac_status=$?
10952   grep -v '^ *+' conftest.er1 >conftest.err
10953   rm -f conftest.er1
10954   cat conftest.err >&5
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); } && {
10957          test -z "$ac_c_werror_flag" ||
10958          test ! -s conftest.err
10959        } && test -s conftest.$ac_objext; then
10960   ac_hi=$ac_mid; break
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965         ac_lo=`expr $ac_mid + 1`
10966                         if test $ac_lo -le $ac_mid; then
10967                           ac_lo= ac_hi=
10968                           break
10969                         fi
10970                         ac_mid=`expr 2 '*' $ac_mid + 1`
10971 fi
10972
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974   done
10975 else
10976   echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979         cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985 #include <stddef.h>
10986 int
10987 main ()
10988 {
10989 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10990 test_array [0] = 0
10991
10992   ;
10993   return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_compile") 2>conftest.er1
11004   ac_status=$?
11005   grep -v '^ *+' conftest.er1 >conftest.err
11006   rm -f conftest.er1
11007   cat conftest.err >&5
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); } && {
11010          test -z "$ac_c_werror_flag" ||
11011          test ! -s conftest.err
11012        } && test -s conftest.$ac_objext; then
11013   ac_hi=-1 ac_mid=-1
11014   while :; do
11015     cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021 #include <stddef.h>
11022 int
11023 main ()
11024 {
11025 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11026 test_array [0] = 0
11027
11028   ;
11029   return 0;
11030 }
11031 _ACEOF
11032 rm -f conftest.$ac_objext
11033 if { (ac_try="$ac_compile"
11034 case "(($ac_try" in
11035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036   *) ac_try_echo=$ac_try;;
11037 esac
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039   (eval "$ac_compile") 2>conftest.er1
11040   ac_status=$?
11041   grep -v '^ *+' conftest.er1 >conftest.err
11042   rm -f conftest.er1
11043   cat conftest.err >&5
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } && {
11046          test -z "$ac_c_werror_flag" ||
11047          test ! -s conftest.err
11048        } && test -s conftest.$ac_objext; then
11049   ac_lo=$ac_mid; break
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054         ac_hi=`expr '(' $ac_mid ')' - 1`
11055                         if test $ac_mid -le $ac_hi; then
11056                           ac_lo= ac_hi=
11057                           break
11058                         fi
11059                         ac_mid=`expr 2 '*' $ac_mid`
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063   done
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068         ac_lo= ac_hi=
11069 fi
11070
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 fi
11073
11074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 # Binary search between lo and hi bounds.
11076 while test "x$ac_lo" != "x$ac_hi"; do
11077   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11078   cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084 #include <stddef.h>
11085 int
11086 main ()
11087 {
11088 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11089 test_array [0] = 0
11090
11091   ;
11092   return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_compile") 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } && {
11109          test -z "$ac_c_werror_flag" ||
11110          test ! -s conftest.err
11111        } && test -s conftest.$ac_objext; then
11112   ac_hi=$ac_mid
11113 else
11114   echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117         ac_lo=`expr '(' $ac_mid ')' + 1`
11118 fi
11119
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 done
11122 case $ac_lo in
11123 ?*) fits_in_uint=$ac_lo;;
11124 '') result=? ;;
11125 esac
11126 else
11127   cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 #include <stddef.h>
11134 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11135 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11136 #include <stdio.h>
11137 #include <stdlib.h>
11138 int
11139 main ()
11140 {
11141
11142   FILE *f = fopen ("conftest.val", "w");
11143   if (! f)
11144     return 1;
11145   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11146     {
11147       long int i = longval ();
11148       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11149         return 1;
11150       fprintf (f, "%ld\n", i);
11151     }
11152   else
11153     {
11154       unsigned long int i = ulongval ();
11155       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11156         return 1;
11157       fprintf (f, "%lu\n", i);
11158     }
11159   return ferror (f) || fclose (f) != 0;
11160
11161   ;
11162   return 0;
11163 }
11164 _ACEOF
11165 rm -f conftest$ac_exeext
11166 if { (ac_try="$ac_link"
11167 case "(($ac_try" in
11168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169   *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172   (eval "$ac_link") 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11176   { (case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_try") 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   fits_in_uint=`cat conftest.val`
11186 else
11187   echo "$as_me: program exited with status $ac_status" >&5
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 ( exit $ac_status )
11192 result=?
11193 fi
11194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11195 fi
11196 rm -f conftest.val
11197
11198     if test "$fits_in_uint" = 1; then
11199                   cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 #include <stddef.h>
11206         extern size_t foo;
11207         extern unsigned long foo;
11208
11209 int
11210 main ()
11211 {
11212
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (ac_try="$ac_compile"
11219 case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_compile") 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } && {
11231          test -z "$ac_c_werror_flag" ||
11232          test ! -s conftest.err
11233        } && test -s conftest.$ac_objext; then
11234   fits_in_uint=0
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239
11240 fi
11241
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243     fi
11244     if test -z "$result"; then
11245       if test "$fits_in_uint" = 1; then
11246         result="$res_hi$res_lo"U
11247       else
11248         result="$res_hi$res_lo"UL
11249       fi
11250     else
11251             result='~(size_t)0'
11252     fi
11253   fi
11254   { echo "$as_me:$LINENO: result: $result" >&5
11255 echo "${ECHO_T}$result" >&6; }
11256   if test "$result" != yes; then
11257
11258 cat >>confdefs.h <<_ACEOF
11259 #define SIZE_MAX $result
11260 _ACEOF
11261
11262   fi
11263
11264
11265
11266
11267
11268 for ac_header in stdint.h
11269 do
11270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 fi
11277 ac_res=`eval echo '${'$as_ac_Header'}'`
11278                { echo "$as_me:$LINENO: result: $ac_res" >&5
11279 echo "${ECHO_T}$ac_res" >&6; }
11280 else
11281   # Is the header compilable?
11282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 $ac_includes_default
11291 #include <$ac_header>
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (ac_try="$ac_compile"
11295 case "(($ac_try" in
11296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297   *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300   (eval "$ac_compile") 2>conftest.er1
11301   ac_status=$?
11302   grep -v '^ *+' conftest.er1 >conftest.err
11303   rm -f conftest.er1
11304   cat conftest.err >&5
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); } && {
11307          test -z "$ac_c_werror_flag" ||
11308          test ! -s conftest.err
11309        } && test -s conftest.$ac_objext; then
11310   ac_header_compiler=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315         ac_header_compiler=no
11316 fi
11317
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 #include <$ac_header>
11332 _ACEOF
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } >/dev/null && {
11346          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11347          test ! -s conftest.err
11348        }; then
11349   ac_header_preproc=yes
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354   ac_header_preproc=no
11355 fi
11356
11357 rm -f conftest.err conftest.$ac_ext
11358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11359 echo "${ECHO_T}$ac_header_preproc" >&6; }
11360
11361 # So?  What about this header?
11362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11363   yes:no: )
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11368     ac_header_preproc=yes
11369     ;;
11370   no:yes:* )
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11383
11384     ;;
11385 esac
11386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   eval "$as_ac_Header=\$ac_header_preproc"
11392 fi
11393 ac_res=`eval echo '${'$as_ac_Header'}'`
11394                { echo "$as_me:$LINENO: result: $ac_res" >&5
11395 echo "${ECHO_T}$ac_res" >&6; }
11396
11397 fi
11398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11399   cat >>confdefs.h <<_ACEOF
11400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11401 _ACEOF
11402
11403 fi
11404
11405 done
11406
11407
11408
11409
11410
11411
11412
11413
11414   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11415 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11416 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11417   echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419   cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425 $ac_includes_default
11426 typedef ptrdiff_t ac__type_new_;
11427 int
11428 main ()
11429 {
11430 if ((ac__type_new_ *) 0)
11431   return 0;
11432 if (sizeof (ac__type_new_))
11433   return 0;
11434   ;
11435   return 0;
11436 }
11437 _ACEOF
11438 rm -f conftest.$ac_objext
11439 if { (ac_try="$ac_compile"
11440 case "(($ac_try" in
11441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442   *) ac_try_echo=$ac_try;;
11443 esac
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445   (eval "$ac_compile") 2>conftest.er1
11446   ac_status=$?
11447   grep -v '^ *+' conftest.er1 >conftest.err
11448   rm -f conftest.er1
11449   cat conftest.err >&5
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); } && {
11452          test -z "$ac_c_werror_flag" ||
11453          test ! -s conftest.err
11454        } && test -s conftest.$ac_objext; then
11455   ac_cv_type_ptrdiff_t=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460         ac_cv_type_ptrdiff_t=no
11461 fi
11462
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 fi
11465 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11466 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11467 if test $ac_cv_type_ptrdiff_t = yes; then
11468   :
11469 else
11470
11471 cat >>confdefs.h <<\_ACEOF
11472 #define ptrdiff_t long
11473 _ACEOF
11474
11475
11476 fi
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11489 stdlib.h string.h unistd.h sys/param.h
11490 do
11491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 fi
11498 ac_res=`eval echo '${'$as_ac_Header'}'`
11499                { echo "$as_me:$LINENO: result: $ac_res" >&5
11500 echo "${ECHO_T}$ac_res" >&6; }
11501 else
11502   # Is the header compilable?
11503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511 $ac_includes_default
11512 #include <$ac_header>
11513 _ACEOF
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_compile") 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } && {
11528          test -z "$ac_c_werror_flag" ||
11529          test ! -s conftest.err
11530        } && test -s conftest.$ac_objext; then
11531   ac_header_compiler=yes
11532 else
11533   echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536         ac_header_compiler=no
11537 fi
11538
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 echo "${ECHO_T}$ac_header_compiler" >&6; }
11542
11543 # Is the header present?
11544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 #include <$ac_header>
11553 _ACEOF
11554 if { (ac_try="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557   *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } >/dev/null && {
11567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11568          test ! -s conftest.err
11569        }; then
11570   ac_header_preproc=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575   ac_header_preproc=no
11576 fi
11577
11578 rm -f conftest.err conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580 echo "${ECHO_T}$ac_header_preproc" >&6; }
11581
11582 # So?  What about this header?
11583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584   yes:no: )
11585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589     ac_header_preproc=yes
11590     ;;
11591   no:yes:* )
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11604
11605     ;;
11606 esac
11607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   eval "$as_ac_Header=\$ac_header_preproc"
11613 fi
11614 ac_res=`eval echo '${'$as_ac_Header'}'`
11615                { echo "$as_me:$LINENO: result: $ac_res" >&5
11616 echo "${ECHO_T}$ac_res" >&6; }
11617
11618 fi
11619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11620   cat >>confdefs.h <<_ACEOF
11621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11622 _ACEOF
11623
11624 fi
11625
11626 done
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11652 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11653 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11654 __fsetlocking
11655 do
11656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11660   echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662   cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11670 #define $ac_func innocuous_$ac_func
11671
11672 /* System header to define __stub macros and hopefully few prototypes,
11673     which can conflict with char $ac_func (); below.
11674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11675     <limits.h> exists even on freestanding compilers.  */
11676
11677 #ifdef __STDC__
11678 # include <limits.h>
11679 #else
11680 # include <assert.h>
11681 #endif
11682
11683 #undef $ac_func
11684
11685 /* Override any GCC internal prototype to avoid an error.
11686    Use char because int might match the return type of a GCC
11687    builtin and then its argument prototype would still apply.  */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 char $ac_func ();
11692 /* The GNU C library defines this for functions which it implements
11693     to always fail with ENOSYS.  Some functions are actually named
11694     something starting with __ and the normal name is an alias.  */
11695 #if defined __stub_$ac_func || defined __stub___$ac_func
11696 choke me
11697 #endif
11698
11699 int
11700 main ()
11701 {
11702 return $ac_func ();
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (ac_try="$ac_link"
11709 case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714   (eval "$ac_link") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } && {
11721          test -z "$ac_c_werror_flag" ||
11722          test ! -s conftest.err
11723        } && test -s conftest$ac_exeext &&
11724        $as_test_x conftest$ac_exeext; then
11725   eval "$as_ac_var=yes"
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730         eval "$as_ac_var=no"
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734       conftest$ac_exeext conftest.$ac_ext
11735 fi
11736 ac_res=`eval echo '${'$as_ac_var'}'`
11737                { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740   cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 _ACEOF
11743
11744 fi
11745 done
11746
11747
11748
11749   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11750 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11751 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h.  */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h.  */
11760 #include <stdio.h>
11761 int
11762 main ()
11763 {
11764
11765 #ifndef _snprintf
11766   char *p = (char *) _snprintf;
11767 #endif
11768
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780   (eval "$ac_compile") 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } && {
11787          test -z "$ac_c_werror_flag" ||
11788          test ! -s conftest.err
11789        } && test -s conftest.$ac_objext; then
11790   ac_cv_have_decl__snprintf=yes
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795         ac_cv_have_decl__snprintf=no
11796 fi
11797
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 fi
11800 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11801 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11802   if test $ac_cv_have_decl__snprintf = yes; then
11803     gt_value=1
11804   else
11805     gt_value=0
11806   fi
11807
11808 cat >>confdefs.h <<_ACEOF
11809 #define HAVE_DECL__SNPRINTF $gt_value
11810 _ACEOF
11811
11812
11813
11814   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11815 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11816 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825 #include <stdio.h>
11826 int
11827 main ()
11828 {
11829
11830 #ifndef _snwprintf
11831   char *p = (char *) _snwprintf;
11832 #endif
11833
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842   *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845   (eval "$ac_compile") 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } && {
11852          test -z "$ac_c_werror_flag" ||
11853          test ! -s conftest.err
11854        } && test -s conftest.$ac_objext; then
11855   ac_cv_have_decl__snwprintf=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860         ac_cv_have_decl__snwprintf=no
11861 fi
11862
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 fi
11865 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11866 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11867   if test $ac_cv_have_decl__snwprintf = yes; then
11868     gt_value=1
11869   else
11870     gt_value=0
11871   fi
11872
11873 cat >>confdefs.h <<_ACEOF
11874 #define HAVE_DECL__SNWPRINTF $gt_value
11875 _ACEOF
11876
11877
11878
11879
11880   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11881 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11882 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 #include <stdio.h>
11892 int
11893 main ()
11894 {
11895
11896 #ifndef feof_unlocked
11897   char *p = (char *) feof_unlocked;
11898 #endif
11899
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext
11905 if { (ac_try="$ac_compile"
11906 case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_compile") 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } && {
11918          test -z "$ac_c_werror_flag" ||
11919          test ! -s conftest.err
11920        } && test -s conftest.$ac_objext; then
11921   ac_cv_have_decl_feof_unlocked=yes
11922 else
11923   echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11925
11926         ac_cv_have_decl_feof_unlocked=no
11927 fi
11928
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 fi
11931 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11932 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11933   if test $ac_cv_have_decl_feof_unlocked = yes; then
11934     gt_value=1
11935   else
11936     gt_value=0
11937   fi
11938
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11941 _ACEOF
11942
11943
11944
11945   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11946 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11947 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956 #include <stdio.h>
11957 int
11958 main ()
11959 {
11960
11961 #ifndef fgets_unlocked
11962   char *p = (char *) fgets_unlocked;
11963 #endif
11964
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (ac_try="$ac_compile"
11971 case "(($ac_try" in
11972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973   *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976   (eval "$ac_compile") 2>conftest.er1
11977   ac_status=$?
11978   grep -v '^ *+' conftest.er1 >conftest.err
11979   rm -f conftest.er1
11980   cat conftest.err >&5
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } && {
11983          test -z "$ac_c_werror_flag" ||
11984          test ! -s conftest.err
11985        } && test -s conftest.$ac_objext; then
11986   ac_cv_have_decl_fgets_unlocked=yes
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991         ac_cv_have_decl_fgets_unlocked=no
11992 fi
11993
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 fi
11996 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11997 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11998   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11999     gt_value=1
12000   else
12001     gt_value=0
12002   fi
12003
12004 cat >>confdefs.h <<_ACEOF
12005 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12006 _ACEOF
12007
12008
12009
12010   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12011 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12012 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12013   echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015   cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h.  */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h.  */
12021 #include <stdio.h>
12022 int
12023 main ()
12024 {
12025
12026 #ifndef getc_unlocked
12027   char *p = (char *) getc_unlocked;
12028 #endif
12029
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_compile") 2>conftest.er1
12042   ac_status=$?
12043   grep -v '^ *+' conftest.er1 >conftest.err
12044   rm -f conftest.er1
12045   cat conftest.err >&5
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } && {
12048          test -z "$ac_c_werror_flag" ||
12049          test ! -s conftest.err
12050        } && test -s conftest.$ac_objext; then
12051   ac_cv_have_decl_getc_unlocked=yes
12052 else
12053   echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12055
12056         ac_cv_have_decl_getc_unlocked=no
12057 fi
12058
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 fi
12061 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12062 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12063   if test $ac_cv_have_decl_getc_unlocked = yes; then
12064     gt_value=1
12065   else
12066     gt_value=0
12067   fi
12068
12069 cat >>confdefs.h <<_ACEOF
12070 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12071 _ACEOF
12072
12073
12074
12075   case $gt_cv_func_printf_posix in
12076     *yes) HAVE_POSIX_PRINTF=1 ;;
12077     *) HAVE_POSIX_PRINTF=0 ;;
12078   esac
12079
12080   if test "$ac_cv_func_asprintf" = yes; then
12081     HAVE_ASPRINTF=1
12082   else
12083     HAVE_ASPRINTF=0
12084   fi
12085
12086   if test "$ac_cv_func_snprintf" = yes; then
12087     HAVE_SNPRINTF=1
12088   else
12089     HAVE_SNPRINTF=0
12090   fi
12091
12092   if test "$ac_cv_func_wprintf" = yes; then
12093     HAVE_WPRINTF=1
12094   else
12095     HAVE_WPRINTF=0
12096   fi
12097
12098
12099
12100
12101
12102
12103
12104           am_save_CPPFLAGS="$CPPFLAGS"
12105
12106   for element in $INCICONV; do
12107     haveit=
12108     for x in $CPPFLAGS; do
12109
12110   acl_save_prefix="$prefix"
12111   prefix="$acl_final_prefix"
12112   acl_save_exec_prefix="$exec_prefix"
12113   exec_prefix="$acl_final_exec_prefix"
12114   eval x=\"$x\"
12115   exec_prefix="$acl_save_exec_prefix"
12116   prefix="$acl_save_prefix"
12117
12118       if test "X$x" = "X$element"; then
12119         haveit=yes
12120         break
12121       fi
12122     done
12123     if test -z "$haveit"; then
12124       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12125     fi
12126   done
12127
12128
12129   { echo "$as_me:$LINENO: checking for iconv" >&5
12130 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12131 if test "${am_cv_func_iconv+set}" = set; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134
12135     am_cv_func_iconv="no, consider installing GNU libiconv"
12136     am_cv_lib_iconv=no
12137     cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 #include <stdlib.h>
12144 #include <iconv.h>
12145 int
12146 main ()
12147 {
12148 iconv_t cd = iconv_open("","");
12149        iconv(cd,NULL,NULL,NULL,NULL);
12150        iconv_close(cd);
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_link") 2>conftest.er1
12163   ac_status=$?
12164   grep -v '^ *+' conftest.er1 >conftest.err
12165   rm -f conftest.er1
12166   cat conftest.err >&5
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } && {
12169          test -z "$ac_c_werror_flag" ||
12170          test ! -s conftest.err
12171        } && test -s conftest$ac_exeext &&
12172        $as_test_x conftest$ac_exeext; then
12173   am_cv_func_iconv=yes
12174 else
12175   echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178
12179 fi
12180
12181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12182       conftest$ac_exeext conftest.$ac_ext
12183     if test "$am_cv_func_iconv" != yes; then
12184       am_save_LIBS="$LIBS"
12185       LIBS="$LIBS $LIBICONV"
12186       cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h.  */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h.  */
12192 #include <stdlib.h>
12193 #include <iconv.h>
12194 int
12195 main ()
12196 {
12197 iconv_t cd = iconv_open("","");
12198          iconv(cd,NULL,NULL,NULL,NULL);
12199          iconv_close(cd);
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_link") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } && {
12218          test -z "$ac_c_werror_flag" ||
12219          test ! -s conftest.err
12220        } && test -s conftest$ac_exeext &&
12221        $as_test_x conftest$ac_exeext; then
12222   am_cv_lib_iconv=yes
12223         am_cv_func_iconv=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228
12229 fi
12230
12231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232       conftest$ac_exeext conftest.$ac_ext
12233       LIBS="$am_save_LIBS"
12234     fi
12235
12236 fi
12237 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12238 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12239   if test "$am_cv_func_iconv" = yes; then
12240
12241 cat >>confdefs.h <<\_ACEOF
12242 #define HAVE_ICONV 1
12243 _ACEOF
12244
12245   fi
12246   if test "$am_cv_lib_iconv" = yes; then
12247     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12248 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12249     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12250 echo "${ECHO_T}$LIBICONV" >&6; }
12251   else
12252             CPPFLAGS="$am_save_CPPFLAGS"
12253     LIBICONV=
12254     LTLIBICONV=
12255   fi
12256
12257
12258
12259   if test "$am_cv_func_iconv" = yes; then
12260     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12261 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12262     if test "${am_cv_proto_iconv+set}" = set; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265
12266       cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272
12273 #include <stdlib.h>
12274 #include <iconv.h>
12275 extern
12276 #ifdef __cplusplus
12277 "C"
12278 #endif
12279 #if defined(__STDC__) || defined(__cplusplus)
12280 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12281 #else
12282 size_t iconv();
12283 #endif
12284
12285 int
12286 main ()
12287 {
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext
12294 if { (ac_try="$ac_compile"
12295 case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_compile") 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } && {
12307          test -z "$ac_c_werror_flag" ||
12308          test ! -s conftest.err
12309        } && test -s conftest.$ac_objext; then
12310   am_cv_proto_iconv_arg1=""
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315         am_cv_proto_iconv_arg1="const"
12316 fi
12317
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319       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);"
12320 fi
12321
12322     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12323     { echo "$as_me:$LINENO: result: ${ac_t:-
12324          }$am_cv_proto_iconv" >&5
12325 echo "${ECHO_T}${ac_t:-
12326          }$am_cv_proto_iconv" >&6; }
12327
12328 cat >>confdefs.h <<_ACEOF
12329 #define ICONV_CONST $am_cv_proto_iconv_arg1
12330 _ACEOF
12331
12332   fi
12333
12334
12335   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12336 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12337 if test "${am_cv_langinfo_codeset+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 #include <langinfo.h>
12347 int
12348 main ()
12349 {
12350 char* cs = nl_langinfo(CODESET);
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (ac_try="$ac_link"
12357 case "(($ac_try" in
12358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359   *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362   (eval "$ac_link") 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } && {
12369          test -z "$ac_c_werror_flag" ||
12370          test ! -s conftest.err
12371        } && test -s conftest$ac_exeext &&
12372        $as_test_x conftest$ac_exeext; then
12373   am_cv_langinfo_codeset=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378         am_cv_langinfo_codeset=no
12379 fi
12380
12381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12382       conftest$ac_exeext conftest.$ac_ext
12383
12384 fi
12385 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12386 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12387   if test $am_cv_langinfo_codeset = yes; then
12388
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_LANGINFO_CODESET 1
12391 _ACEOF
12392
12393   fi
12394
12395   if test $ac_cv_header_locale_h = yes; then
12396
12397   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12398 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12399 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408 #include <locale.h>
12409 int
12410 main ()
12411 {
12412 return LC_MESSAGES
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421   *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424   (eval "$ac_link") 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } && {
12431          test -z "$ac_c_werror_flag" ||
12432          test ! -s conftest.err
12433        } && test -s conftest$ac_exeext &&
12434        $as_test_x conftest$ac_exeext; then
12435   gt_cv_val_LC_MESSAGES=yes
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440         gt_cv_val_LC_MESSAGES=no
12441 fi
12442
12443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12444       conftest$ac_exeext conftest.$ac_ext
12445 fi
12446 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12447 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12448   if test $gt_cv_val_LC_MESSAGES = yes; then
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define HAVE_LC_MESSAGES 1
12452 _ACEOF
12453
12454   fi
12455
12456   fi
12457
12458   if test -n "$INTL_MACOSX_LIBS"; then
12459     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12460   fi
12461
12462                       for ac_prog in bison
12463 do
12464   # Extract the first word of "$ac_prog", so it can be a program name with args.
12465 set dummy $ac_prog; ac_word=$2
12466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12468 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12469   echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471   if test -n "$INTLBISON"; then
12472   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12473 else
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12476 do
12477   IFS=$as_save_IFS
12478   test -z "$as_dir" && as_dir=.
12479   for ac_exec_ext in '' $ac_executable_extensions; do
12480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481     ac_cv_prog_INTLBISON="$ac_prog"
12482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12483     break 2
12484   fi
12485 done
12486 done
12487 IFS=$as_save_IFS
12488
12489 fi
12490 fi
12491 INTLBISON=$ac_cv_prog_INTLBISON
12492 if test -n "$INTLBISON"; then
12493   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12494 echo "${ECHO_T}$INTLBISON" >&6; }
12495 else
12496   { echo "$as_me:$LINENO: result: no" >&5
12497 echo "${ECHO_T}no" >&6; }
12498 fi
12499
12500
12501   test -n "$INTLBISON" && break
12502 done
12503
12504   if test -z "$INTLBISON"; then
12505     ac_verc_fail=yes
12506   else
12507         { echo "$as_me:$LINENO: checking version of bison" >&5
12508 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12509     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12510     case $ac_prog_version in
12511       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12512       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12513          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12514       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12515     esac
12516     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12517 echo "${ECHO_T}$ac_prog_version" >&6; }
12518   fi
12519   if test $ac_verc_fail = yes; then
12520     INTLBISON=:
12521   fi
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12539 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12540 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12541   echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543   gt_save_CPPFLAGS="$CPPFLAGS"
12544      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12545      gt_save_LIBS="$LIBS"
12546      LIBS="$LIBS -framework CoreFoundation"
12547      cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553 #include <CFPreferences.h>
12554 int
12555 main ()
12556 {
12557 CFPreferencesCopyAppValue(NULL, NULL)
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (ac_try="$ac_link"
12564 case "(($ac_try" in
12565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566   *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569   (eval "$ac_link") 2>conftest.er1
12570   ac_status=$?
12571   grep -v '^ *+' conftest.er1 >conftest.err
12572   rm -f conftest.er1
12573   cat conftest.err >&5
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); } && {
12576          test -z "$ac_c_werror_flag" ||
12577          test ! -s conftest.err
12578        } && test -s conftest$ac_exeext &&
12579        $as_test_x conftest$ac_exeext; then
12580   gt_cv_func_CFPreferencesCopyAppValue=yes
12581 else
12582   echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585         gt_cv_func_CFPreferencesCopyAppValue=no
12586 fi
12587
12588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12589       conftest$ac_exeext conftest.$ac_ext
12590      CPPFLAGS="$gt_save_CPPFLAGS"
12591      LIBS="$gt_save_LIBS"
12592 fi
12593 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12594 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12595   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12596
12597 cat >>confdefs.h <<\_ACEOF
12598 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12599 _ACEOF
12600
12601   fi
12602     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12603 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12604 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607   gt_save_CPPFLAGS="$CPPFLAGS"
12608      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12609      gt_save_LIBS="$LIBS"
12610      LIBS="$LIBS -framework CoreFoundation"
12611      cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617 #include <CFLocale.h>
12618 int
12619 main ()
12620 {
12621 CFLocaleCopyCurrent();
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630   *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633   (eval "$ac_link") 2>conftest.er1
12634   ac_status=$?
12635   grep -v '^ *+' conftest.er1 >conftest.err
12636   rm -f conftest.er1
12637   cat conftest.err >&5
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); } && {
12640          test -z "$ac_c_werror_flag" ||
12641          test ! -s conftest.err
12642        } && test -s conftest$ac_exeext &&
12643        $as_test_x conftest$ac_exeext; then
12644   gt_cv_func_CFLocaleCopyCurrent=yes
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649         gt_cv_func_CFLocaleCopyCurrent=no
12650 fi
12651
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653       conftest$ac_exeext conftest.$ac_ext
12654      CPPFLAGS="$gt_save_CPPFLAGS"
12655      LIBS="$gt_save_LIBS"
12656 fi
12657 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12658 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12659   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12660
12661 cat >>confdefs.h <<\_ACEOF
12662 #define HAVE_CFLOCALECOPYCURRENT 1
12663 _ACEOF
12664
12665   fi
12666   INTL_MACOSX_LIBS=
12667   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12668     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12669   fi
12670
12671
12672
12673
12674   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12675 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12676     # Check whether --enable-nls was given.
12677 if test "${enable_nls+set}" = set; then
12678   enableval=$enable_nls; USE_NLS=$enableval
12679 else
12680   USE_NLS=yes
12681 fi
12682
12683   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12684 echo "${ECHO_T}$USE_NLS" >&6; }
12685
12686
12687
12688
12689     BUILD_INCLUDED_LIBINTL=no
12690     USE_INCLUDED_LIBINTL=no
12691
12692   LIBINTL=
12693   LTLIBINTL=
12694   POSUB=
12695
12696     if test "$USE_NLS" = "yes"; then
12697     gt_use_preinstalled_gnugettext=no
12698
12699       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12700 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12701
12702 # Check whether --with-included-gettext was given.
12703 if test "${with_included_gettext+set}" = set; then
12704   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12705 else
12706   nls_cv_force_use_gnu_gettext=no
12707 fi
12708
12709       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12710 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12711
12712       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12713       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12714
12715
12716
12717
12718
12719
12720         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12721 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12722 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725   cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731 #include <libintl.h>
12732 extern int _nl_msg_cat_cntr;
12733 extern int *_nl_domain_bindings;
12734 int
12735 main ()
12736 {
12737 bindtextdomain ("", "");
12738 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 rm -f conftest.$ac_objext conftest$ac_exeext
12744 if { (ac_try="$ac_link"
12745 case "(($ac_try" in
12746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747   *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750   (eval "$ac_link") 2>conftest.er1
12751   ac_status=$?
12752   grep -v '^ *+' conftest.er1 >conftest.err
12753   rm -f conftest.er1
12754   cat conftest.err >&5
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); } && {
12757          test -z "$ac_c_werror_flag" ||
12758          test ! -s conftest.err
12759        } && test -s conftest$ac_exeext &&
12760        $as_test_x conftest$ac_exeext; then
12761   gt_cv_func_gnugettext1_libc=yes
12762 else
12763   echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12765
12766         gt_cv_func_gnugettext1_libc=no
12767 fi
12768
12769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12770       conftest$ac_exeext conftest.$ac_ext
12771 fi
12772 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12773 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12774
12775         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12776
12777
12778
12779     use_additional=yes
12780
12781   acl_save_prefix="$prefix"
12782   prefix="$acl_final_prefix"
12783   acl_save_exec_prefix="$exec_prefix"
12784   exec_prefix="$acl_final_exec_prefix"
12785
12786     eval additional_includedir=\"$includedir\"
12787     eval additional_libdir=\"$libdir\"
12788
12789   exec_prefix="$acl_save_exec_prefix"
12790   prefix="$acl_save_prefix"
12791
12792
12793 # Check whether --with-libintl-prefix was given.
12794 if test "${with_libintl_prefix+set}" = set; then
12795   withval=$with_libintl_prefix;
12796     if test "X$withval" = "Xno"; then
12797       use_additional=no
12798     else
12799       if test "X$withval" = "X"; then
12800
12801   acl_save_prefix="$prefix"
12802   prefix="$acl_final_prefix"
12803   acl_save_exec_prefix="$exec_prefix"
12804   exec_prefix="$acl_final_exec_prefix"
12805
12806           eval additional_includedir=\"$includedir\"
12807           eval additional_libdir=\"$libdir\"
12808
12809   exec_prefix="$acl_save_exec_prefix"
12810   prefix="$acl_save_prefix"
12811
12812       else
12813         additional_includedir="$withval/include"
12814         additional_libdir="$withval/lib"
12815       fi
12816     fi
12817
12818 fi
12819
12820       LIBINTL=
12821   LTLIBINTL=
12822   INCINTL=
12823   rpathdirs=
12824   ltrpathdirs=
12825   names_already_handled=
12826   names_next_round='intl '
12827   while test -n "$names_next_round"; do
12828     names_this_round="$names_next_round"
12829     names_next_round=
12830     for name in $names_this_round; do
12831       already_handled=
12832       for n in $names_already_handled; do
12833         if test "$n" = "$name"; then
12834           already_handled=yes
12835           break
12836         fi
12837       done
12838       if test -z "$already_handled"; then
12839         names_already_handled="$names_already_handled $name"
12840                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12841         eval value=\"\$HAVE_LIB$uppername\"
12842         if test -n "$value"; then
12843           if test "$value" = yes; then
12844             eval value=\"\$LIB$uppername\"
12845             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12846             eval value=\"\$LTLIB$uppername\"
12847             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12848           else
12849                                     :
12850           fi
12851         else
12852                               found_dir=
12853           found_la=
12854           found_so=
12855           found_a=
12856           if test $use_additional = yes; then
12857             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12858               found_dir="$additional_libdir"
12859               found_so="$additional_libdir/lib$name.$shlibext"
12860               if test -f "$additional_libdir/lib$name.la"; then
12861                 found_la="$additional_libdir/lib$name.la"
12862               fi
12863             else
12864               if test -f "$additional_libdir/lib$name.$libext"; then
12865                 found_dir="$additional_libdir"
12866                 found_a="$additional_libdir/lib$name.$libext"
12867                 if test -f "$additional_libdir/lib$name.la"; then
12868                   found_la="$additional_libdir/lib$name.la"
12869                 fi
12870               fi
12871             fi
12872           fi
12873           if test "X$found_dir" = "X"; then
12874             for x in $LDFLAGS $LTLIBINTL; do
12875
12876   acl_save_prefix="$prefix"
12877   prefix="$acl_final_prefix"
12878   acl_save_exec_prefix="$exec_prefix"
12879   exec_prefix="$acl_final_exec_prefix"
12880   eval x=\"$x\"
12881   exec_prefix="$acl_save_exec_prefix"
12882   prefix="$acl_save_prefix"
12883
12884               case "$x" in
12885                 -L*)
12886                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12887                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12888                     found_dir="$dir"
12889                     found_so="$dir/lib$name.$shlibext"
12890                     if test -f "$dir/lib$name.la"; then
12891                       found_la="$dir/lib$name.la"
12892                     fi
12893                   else
12894                     if test -f "$dir/lib$name.$libext"; then
12895                       found_dir="$dir"
12896                       found_a="$dir/lib$name.$libext"
12897                       if test -f "$dir/lib$name.la"; then
12898                         found_la="$dir/lib$name.la"
12899                       fi
12900                     fi
12901                   fi
12902                   ;;
12903               esac
12904               if test "X$found_dir" != "X"; then
12905                 break
12906               fi
12907             done
12908           fi
12909           if test "X$found_dir" != "X"; then
12910                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12911             if test "X$found_so" != "X"; then
12912                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12913                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12914               else
12915                                                                                 haveit=
12916                 for x in $ltrpathdirs; do
12917                   if test "X$x" = "X$found_dir"; then
12918                     haveit=yes
12919                     break
12920                   fi
12921                 done
12922                 if test -z "$haveit"; then
12923                   ltrpathdirs="$ltrpathdirs $found_dir"
12924                 fi
12925                                 if test "$hardcode_direct" = yes; then
12926                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12927                 else
12928                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12929                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12930                                                             haveit=
12931                     for x in $rpathdirs; do
12932                       if test "X$x" = "X$found_dir"; then
12933                         haveit=yes
12934                         break
12935                       fi
12936                     done
12937                     if test -z "$haveit"; then
12938                       rpathdirs="$rpathdirs $found_dir"
12939                     fi
12940                   else
12941                                                                                 haveit=
12942                     for x in $LDFLAGS $LIBINTL; do
12943
12944   acl_save_prefix="$prefix"
12945   prefix="$acl_final_prefix"
12946   acl_save_exec_prefix="$exec_prefix"
12947   exec_prefix="$acl_final_exec_prefix"
12948   eval x=\"$x\"
12949   exec_prefix="$acl_save_exec_prefix"
12950   prefix="$acl_save_prefix"
12951
12952                       if test "X$x" = "X-L$found_dir"; then
12953                         haveit=yes
12954                         break
12955                       fi
12956                     done
12957                     if test -z "$haveit"; then
12958                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12959                     fi
12960                     if test "$hardcode_minus_L" != no; then
12961                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12962                     else
12963                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12964                     fi
12965                   fi
12966                 fi
12967               fi
12968             else
12969               if test "X$found_a" != "X"; then
12970                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12971               else
12972                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12973               fi
12974             fi
12975                         additional_includedir=
12976             case "$found_dir" in
12977               */lib | */lib/)
12978                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12979                 additional_includedir="$basedir/include"
12980                 ;;
12981             esac
12982             if test "X$additional_includedir" != "X"; then
12983                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12984                 haveit=
12985                 if test "X$additional_includedir" = "X/usr/local/include"; then
12986                   if test -n "$GCC"; then
12987                     case $host_os in
12988                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12989                     esac
12990                   fi
12991                 fi
12992                 if test -z "$haveit"; then
12993                   for x in $CPPFLAGS $INCINTL; do
12994
12995   acl_save_prefix="$prefix"
12996   prefix="$acl_final_prefix"
12997   acl_save_exec_prefix="$exec_prefix"
12998   exec_prefix="$acl_final_exec_prefix"
12999   eval x=\"$x\"
13000   exec_prefix="$acl_save_exec_prefix"
13001   prefix="$acl_save_prefix"
13002
13003                     if test "X$x" = "X-I$additional_includedir"; then
13004                       haveit=yes
13005                       break
13006                     fi
13007                   done
13008                   if test -z "$haveit"; then
13009                     if test -d "$additional_includedir"; then
13010                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13011                     fi
13012                   fi
13013                 fi
13014               fi
13015             fi
13016                         if test -n "$found_la"; then
13017                                                         save_libdir="$libdir"
13018               case "$found_la" in
13019                 */* | *\\*) . "$found_la" ;;
13020                 *) . "./$found_la" ;;
13021               esac
13022               libdir="$save_libdir"
13023                             for dep in $dependency_libs; do
13024                 case "$dep" in
13025                   -L*)
13026                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13027                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13028                       haveit=
13029                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13030                         if test -n "$GCC"; then
13031                           case $host_os in
13032                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13033                           esac
13034                         fi
13035                       fi
13036                       if test -z "$haveit"; then
13037                         haveit=
13038                         for x in $LDFLAGS $LIBINTL; do
13039
13040   acl_save_prefix="$prefix"
13041   prefix="$acl_final_prefix"
13042   acl_save_exec_prefix="$exec_prefix"
13043   exec_prefix="$acl_final_exec_prefix"
13044   eval x=\"$x\"
13045   exec_prefix="$acl_save_exec_prefix"
13046   prefix="$acl_save_prefix"
13047
13048                           if test "X$x" = "X-L$additional_libdir"; then
13049                             haveit=yes
13050                             break
13051                           fi
13052                         done
13053                         if test -z "$haveit"; then
13054                           if test -d "$additional_libdir"; then
13055                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13056                           fi
13057                         fi
13058                         haveit=
13059                         for x in $LDFLAGS $LTLIBINTL; do
13060
13061   acl_save_prefix="$prefix"
13062   prefix="$acl_final_prefix"
13063   acl_save_exec_prefix="$exec_prefix"
13064   exec_prefix="$acl_final_exec_prefix"
13065   eval x=\"$x\"
13066   exec_prefix="$acl_save_exec_prefix"
13067   prefix="$acl_save_prefix"
13068
13069                           if test "X$x" = "X-L$additional_libdir"; then
13070                             haveit=yes
13071                             break
13072                           fi
13073                         done
13074                         if test -z "$haveit"; then
13075                           if test -d "$additional_libdir"; then
13076                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13077                           fi
13078                         fi
13079                       fi
13080                     fi
13081                     ;;
13082                   -R*)
13083                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13084                     if test "$enable_rpath" != no; then
13085                                                                   haveit=
13086                       for x in $rpathdirs; do
13087                         if test "X$x" = "X$dir"; then
13088                           haveit=yes
13089                           break
13090                         fi
13091                       done
13092                       if test -z "$haveit"; then
13093                         rpathdirs="$rpathdirs $dir"
13094                       fi
13095                                                                   haveit=
13096                       for x in $ltrpathdirs; do
13097                         if test "X$x" = "X$dir"; then
13098                           haveit=yes
13099                           break
13100                         fi
13101                       done
13102                       if test -z "$haveit"; then
13103                         ltrpathdirs="$ltrpathdirs $dir"
13104                       fi
13105                     fi
13106                     ;;
13107                   -l*)
13108                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13109                     ;;
13110                   *.la)
13111                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13112                     ;;
13113                   *)
13114                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13115                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13116                     ;;
13117                 esac
13118               done
13119             fi
13120           else
13121                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13122             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13123           fi
13124         fi
13125       fi
13126     done
13127   done
13128   if test "X$rpathdirs" != "X"; then
13129     if test -n "$hardcode_libdir_separator"; then
13130                         alldirs=
13131       for found_dir in $rpathdirs; do
13132         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13133       done
13134             acl_save_libdir="$libdir"
13135       libdir="$alldirs"
13136       eval flag=\"$hardcode_libdir_flag_spec\"
13137       libdir="$acl_save_libdir"
13138       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13139     else
13140             for found_dir in $rpathdirs; do
13141         acl_save_libdir="$libdir"
13142         libdir="$found_dir"
13143         eval flag=\"$hardcode_libdir_flag_spec\"
13144         libdir="$acl_save_libdir"
13145         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13146       done
13147     fi
13148   fi
13149   if test "X$ltrpathdirs" != "X"; then
13150             for found_dir in $ltrpathdirs; do
13151       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13152     done
13153   fi
13154
13155           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13156 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13157 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   gt_save_CPPFLAGS="$CPPFLAGS"
13161             CPPFLAGS="$CPPFLAGS $INCINTL"
13162             gt_save_LIBS="$LIBS"
13163             LIBS="$LIBS $LIBINTL"
13164                         cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170 #include <libintl.h>
13171 extern int _nl_msg_cat_cntr;
13172 extern
13173 #ifdef __cplusplus
13174 "C"
13175 #endif
13176 const char *_nl_expand_alias (const char *);
13177 int
13178 main ()
13179 {
13180 bindtextdomain ("", "");
13181 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (ac_try="$ac_link"
13188 case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_link") 2>conftest.er1
13194   ac_status=$?
13195   grep -v '^ *+' conftest.er1 >conftest.err
13196   rm -f conftest.er1
13197   cat conftest.err >&5
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } && {
13200          test -z "$ac_c_werror_flag" ||
13201          test ! -s conftest.err
13202        } && test -s conftest$ac_exeext &&
13203        $as_test_x conftest$ac_exeext; then
13204   gt_cv_func_gnugettext1_libintl=yes
13205 else
13206   echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13208
13209         gt_cv_func_gnugettext1_libintl=no
13210 fi
13211
13212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13213       conftest$ac_exeext conftest.$ac_ext
13214                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13215               LIBS="$LIBS $LIBICONV"
13216               cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222 #include <libintl.h>
13223 extern int _nl_msg_cat_cntr;
13224 extern
13225 #ifdef __cplusplus
13226 "C"
13227 #endif
13228 const char *_nl_expand_alias (const char *);
13229 int
13230 main ()
13231 {
13232 bindtextdomain ("", "");
13233 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_link") 2>conftest.er1
13246   ac_status=$?
13247   grep -v '^ *+' conftest.er1 >conftest.err
13248   rm -f conftest.er1
13249   cat conftest.err >&5
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); } && {
13252          test -z "$ac_c_werror_flag" ||
13253          test ! -s conftest.err
13254        } && test -s conftest$ac_exeext &&
13255        $as_test_x conftest$ac_exeext; then
13256   LIBINTL="$LIBINTL $LIBICONV"
13257                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13258                 gt_cv_func_gnugettext1_libintl=yes
13259
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264
13265 fi
13266
13267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13268       conftest$ac_exeext conftest.$ac_ext
13269             fi
13270             CPPFLAGS="$gt_save_CPPFLAGS"
13271             LIBS="$gt_save_LIBS"
13272 fi
13273 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13274 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13275         fi
13276
13277                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13278            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13279                 && test "$PACKAGE" != gettext-runtime \
13280                 && test "$PACKAGE" != gettext-tools; }; then
13281           gt_use_preinstalled_gnugettext=yes
13282         else
13283                     LIBINTL=
13284           LTLIBINTL=
13285           INCINTL=
13286         fi
13287
13288
13289         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13290                               nls_cv_use_gnu_gettext=yes
13291         fi
13292       fi
13293
13294       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13295                 BUILD_INCLUDED_LIBINTL=yes
13296         USE_INCLUDED_LIBINTL=yes
13297         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13298         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13299         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13300       fi
13301
13302       CATOBJEXT=
13303       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13304          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13305                 CATOBJEXT=.gmo
13306       fi
13307
13308
13309     if test -n "$INTL_MACOSX_LIBS"; then
13310       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13311          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13312                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13313         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13314       fi
13315     fi
13316
13317     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13318        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13319
13320 cat >>confdefs.h <<\_ACEOF
13321 #define ENABLE_NLS 1
13322 _ACEOF
13323
13324     else
13325       USE_NLS=no
13326     fi
13327   fi
13328
13329   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13330 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13331   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13332 echo "${ECHO_T}$USE_NLS" >&6; }
13333   if test "$USE_NLS" = "yes"; then
13334     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13335 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13336     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13337       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13338         gt_source="external libintl"
13339       else
13340         gt_source="libc"
13341       fi
13342     else
13343       gt_source="included intl directory"
13344     fi
13345     { echo "$as_me:$LINENO: result: $gt_source" >&5
13346 echo "${ECHO_T}$gt_source" >&6; }
13347   fi
13348
13349   if test "$USE_NLS" = "yes"; then
13350
13351     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13352       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13353         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13354 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13355         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13356 echo "${ECHO_T}$LIBINTL" >&6; }
13357
13358   for element in $INCINTL; do
13359     haveit=
13360     for x in $CPPFLAGS; do
13361
13362   acl_save_prefix="$prefix"
13363   prefix="$acl_final_prefix"
13364   acl_save_exec_prefix="$exec_prefix"
13365   exec_prefix="$acl_final_exec_prefix"
13366   eval x=\"$x\"
13367   exec_prefix="$acl_save_exec_prefix"
13368   prefix="$acl_save_prefix"
13369
13370       if test "X$x" = "X$element"; then
13371         haveit=yes
13372         break
13373       fi
13374     done
13375     if test -z "$haveit"; then
13376       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13377     fi
13378   done
13379
13380       fi
13381
13382
13383 cat >>confdefs.h <<\_ACEOF
13384 #define HAVE_GETTEXT 1
13385 _ACEOF
13386
13387
13388 cat >>confdefs.h <<\_ACEOF
13389 #define HAVE_DCGETTEXT 1
13390 _ACEOF
13391
13392     fi
13393
13394         POSUB=po
13395   fi
13396
13397
13398             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13399       BUILD_INCLUDED_LIBINTL=yes
13400     fi
13401
13402
13403
13404
13405
13406         nls_cv_header_intl=
13407     nls_cv_header_libgt=
13408
13409         DATADIRNAME=share
13410
13411
13412         INSTOBJEXT=.mo
13413
13414
13415         GENCAT=gencat
13416
13417
13418         INTLOBJS=
13419     if test "$USE_INCLUDED_LIBINTL" = yes; then
13420       INTLOBJS="\$(GETTOBJS)"
13421     fi
13422
13423
13424         INTL_LIBTOOL_SUFFIX_PREFIX=
13425
13426
13427
13428     INTLLIBS="$LIBINTL"
13429
13430
13431
13432
13433
13434
13435 fi
13436
13437 support_mysql=no
13438 support_sqlite=no
13439 support_sqlite3=no
13440 support_postgresql=no
13441 support_dbi=no
13442 support_smartalloc=yes
13443 support_readline=yes
13444 support_conio=yes
13445 support_gnome=no
13446 support_bat=no
13447 support_wx_console=no
13448 support_tls=no
13449 support_crypto=no
13450 gnome_version=
13451 wx_version=
13452 support_static_tools=no
13453 support_static_fd=no
13454 support_static_sd=no
13455 support_static_dir=no
13456 support_static_cons=no
13457 support_python=no
13458 build_client_only=no
13459 build_dird=yes
13460 build_stored=yes
13461 cats=
13462 db_type=Internal
13463 DB_TYPE=bdb
13464
13465
13466 # -------------------------------------------
13467 # gnome (default off)
13468 # -------------------------------------------
13469 # Check whether --enable-gnome was given.
13470 if test "${enable_gnome+set}" = set; then
13471   enableval=$enable_gnome; if test x$enableval = xyes; then
13472     support_gnome=yes
13473   fi
13474 fi
13475
13476
13477 GNOME_DIR=
13478 if test x$support_gnome = xyes; then
13479   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13480   pkg=$?
13481   if test $pkg = 0; then
13482      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13483      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13484      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13485      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13486
13487
13488
13489
13490      GNOME_DIR=src/gnome2-console
13491      gnome_version="Version 2.x"
13492   else
13493      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13494 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13495    { (exit 1); exit 1; }; }
13496   fi
13497 fi
13498
13499
13500 # -------------------------------------------
13501 # bat (default off)
13502 # -------------------------------------------
13503 # Check whether --enable-bat was given.
13504 if test "${enable_bat+set}" = set; then
13505   enableval=$enable_bat; if test x$enableval = xyes; then
13506
13507 cat >>confdefs.h <<\_ACEOF
13508 #define HAVE_BAT 1
13509 _ACEOF
13510
13511     support_bat=yes
13512   fi
13513 fi
13514
13515
13516 BAT_DIR=
13517 if test x$support_bat = xyes; then
13518   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13519   pkg=$?
13520   if test $pkg = 0; then
13521      BAT_DIR=src/qt-console
13522   else
13523      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13524 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13525    { (exit 1); exit 1; }; }
13526   fi
13527 fi
13528
13529 #
13530 #  If bat is enabled, we need the qwt library
13531 got_qwt=no
13532 QWT_INC=
13533 QWT_LDFLAGS=
13534 QWT_LIB=
13535 QWT=
13536 no_qwt=no
13537 if test x$support_bat = xyes; then
13538    { echo "$as_me:$LINENO: checking for qwt support" >&5
13539 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13540
13541 # Check whether --with-qwt was given.
13542 if test "${with_qwt+set}" = set; then
13543   withval=$with_qwt;
13544         case "$with_qwt" in
13545         no)
13546            no_qwt=yes
13547           ;;
13548         yes|*)
13549           if test -f ${with_qwt}/include/qwt.h; then
13550              QWT_INC="${with_qwt}/include"
13551              QWT_LDFLAGS="-L${with_qwt}/lib"
13552              QWT_LIB="-lqwt"
13553              QWT="qwt"
13554           fi
13555           ;;
13556         esac
13557
13558
13559 fi
13560
13561 #
13562 # Search in standard places, or --with-qwt not specified
13563 #
13564    if test $no_qwt = no; then
13565     if test x$QWT_INC = x; then
13566       for root in /usr /usr/local; do
13567          for ver in qwt qwt5 qwt-qt4; do
13568             if test -f ${root}/include/${ver}/qwt.h; then
13569                QWT_INC="${root}/include/${ver}"
13570                if test -d ${root}/lib64/; then
13571                   QWT_LDFLAGS="-L${root}/lib64"
13572                else
13573                   QWT_LDFLAGS="-L${root}/lib"
13574                fi
13575                QWT_LIB="-lqwt"
13576                QWT="qwt"
13577                got_qwt=yes
13578                break;
13579             fi
13580          done
13581       done
13582     fi
13583    fi
13584    if test x$QWT_INC = x; then
13585       { echo "$as_me:$LINENO: result: no" >&5
13586 echo "${ECHO_T}no" >&6; }
13587    else
13588
13589 cat >>confdefs.h <<\_ACEOF
13590 #define HAVE_QWT 1
13591 _ACEOF
13592
13593       { echo "$as_me:$LINENO: result: yes" >&5
13594 echo "${ECHO_T}yes" >&6; }
13595    fi
13596 fi
13597
13598
13599
13600
13601
13602
13603
13604
13605 # -------------------------------------------
13606 # bwx-console (default off)
13607 # -------------------------------------------
13608 # Check whether --enable-bwx-console was given.
13609 if test "${enable_bwx_console+set}" = set; then
13610   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13611     support_wx_console=yes
13612   fi
13613 fi
13614
13615
13616 WX_DIR=
13617 if test x$support_wx_console = xyes; then
13618   abc=`$WXCONFIG $WXFLAGS --cppflags`
13619   pkg=$?
13620   if test $pkg = 0; then
13621      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13622      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13623      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13624
13625
13626
13627      WX_DIR=src/wx-console
13628   else
13629      echo " "
13630      echo "wx-config program not found. bwx-console disabled."
13631      echo " "
13632      support_wx_console=no
13633   fi
13634 fi
13635
13636
13637
13638 # -------------------------------------------
13639 # tray-monitor (default off)
13640 # -------------------------------------------
13641 # Check whether --enable-tray-monitor was given.
13642 if test "${enable_tray_monitor+set}" = set; then
13643   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13644     support_tray_monitor=yes
13645   fi
13646 fi
13647
13648
13649 TRAY_MONITOR_DIR=
13650 if test x$support_tray_monitor = xyes; then
13651   abc=`$PKGCONFIG --exists gtk+-2.0`
13652   pkg=$?
13653   if test $pkg = 0; then
13654      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13655      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13656
13657
13658      TRAY_MONITOR_DIR=src/tray-monitor
13659      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13660      pkg=$?
13661      if test $pkg = 0; then
13662
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_GTK_2_4 1
13665 _ACEOF
13666
13667      fi
13668   fi
13669 fi
13670
13671
13672 # -------------------------------------------
13673 # smartalloc (default off)
13674 # -------------------------------------------
13675 # Check whether --enable-smartalloc was given.
13676 if test "${enable_smartalloc+set}" = set; then
13677   enableval=$enable_smartalloc; if test x$enableval = xno; then
13678     support_smartalloc=no
13679   fi
13680 fi
13681
13682
13683 if test x$support_smartalloc = xyes; then
13684
13685 cat >>confdefs.h <<\_ACEOF
13686 #define SMARTALLOC 1
13687 _ACEOF
13688
13689 fi
13690
13691 # -------------------------------------------
13692 # static-tools (default off)
13693 # -------------------------------------------
13694 # Check whether --enable-static-tools was given.
13695 if test "${enable_static_tools+set}" = set; then
13696   enableval=$enable_static_tools; if test x$enableval = xyes; then
13697      support_static_tools=yes
13698    fi
13699 fi
13700
13701
13702 TTOOL_LDFLAGS=
13703 if test x$support_static_tools = xyes; then
13704    TTOOL_LDFLAGS="-static"
13705 fi
13706
13707
13708 # -------------------------------------------
13709 # static-fd    (default off)
13710 # -------------------------------------------
13711 # Check whether --enable-static-fd was given.
13712 if test "${enable_static_fd+set}" = set; then
13713   enableval=$enable_static_fd; if test x$enableval = xyes; then
13714      support_static_fd=yes
13715    fi
13716 fi
13717
13718
13719 STATIC_FD=
13720 if test x$support_static_fd = xyes; then
13721    STATIC_FD="static-bacula-fd"
13722 fi
13723
13724
13725 # -------------------------------------------
13726 # static-sd    (default off)
13727 # -------------------------------------------
13728 # Check whether --enable-static-sd was given.
13729 if test "${enable_static_sd+set}" = set; then
13730   enableval=$enable_static_sd; if test x$enableval = xyes; then
13731      support_static_sd=yes
13732    fi
13733 fi
13734
13735
13736 STATIC_SD=
13737 if test x$support_static_sd = xyes; then
13738    STATIC_SD="static-bacula-sd"
13739 fi
13740
13741
13742 # -------------------------------------------
13743 # static-dir   (default off)
13744 # -------------------------------------------
13745 # Check whether --enable-static-dir was given.
13746 if test "${enable_static_dir+set}" = set; then
13747   enableval=$enable_static_dir; if test x$enableval = xyes; then
13748      support_static_dir=yes
13749    fi
13750 fi
13751
13752
13753 STATIC_DIR=
13754 if test x$support_static_dir = xyes; then
13755    STATIC_DIR="static-bacula-dir"
13756 fi
13757
13758
13759 # -------------------------------------------
13760 # static-cons  (default off)
13761 # -------------------------------------------
13762 # Check whether --enable-static-cons was given.
13763 if test "${enable_static_cons+set}" = set; then
13764   enableval=$enable_static_cons; if test x$enableval = xyes; then
13765      support_static_cons=yes
13766    fi
13767 fi
13768
13769
13770 STATIC_CONS=
13771 STATIC_GNOME_CONS=
13772 STATIC_WX_CONS=
13773 if test x$support_static_cons = xyes; then
13774    STATIC_CONS="static-bconsole"
13775    STATIC_GNOME_CONS="static-bgnome-console"
13776    STATIC_WX_CONS="static-bwx-console"
13777 fi
13778
13779
13780
13781
13782 # -------------------------------------------
13783 # client_only  (default off)
13784 # -------------------------------------------
13785 # Check whether --enable-client-only was given.
13786 if test "${enable_client_only+set}" = set; then
13787   enableval=$enable_client_only; if test x$enableval = xyes; then
13788       build_client_only=yes
13789       db_type=None
13790       DB_TYPE=none
13791    fi
13792 fi
13793
13794 if test x$build_client_only = xno; then
13795    ALL_DIRS="subdirs"
13796 else
13797    ALL_DIRS=""
13798 fi
13799
13800
13801 # -------------------------------------------
13802 # director  (default on)
13803 # -------------------------------------------
13804 # Check whether --enable-build-dird was given.
13805 if test "${enable_build_dird+set}" = set; then
13806   enableval=$enable_build_dird; if test x$enableval = xno; then
13807       build_dird=no
13808    fi
13809 fi
13810
13811 if test x$build_dird = xyes; then
13812    DIRD_DIR="src/dird"
13813    DIR_TOOLS="DIRTOOLS"
13814 else
13815    DIRD_DIR=""
13816    DIR_TOOLS="NODIRTOOLS"
13817 fi
13818
13819
13820
13821 # -------------------------------------------
13822 # stored  (default on)
13823 # -------------------------------------------
13824 # Check whether --enable-build-stored was given.
13825 if test "${enable_build_stored+set}" = set; then
13826   enableval=$enable_build_stored; if test x$enableval = xno; then
13827       build_stored=no
13828    fi
13829 fi
13830
13831 if test x$build_stored = xyes; then
13832    STORED_DIR="src/stored"
13833 else
13834    STORED_DIR=""
13835 fi
13836
13837
13838 # ---------------------------------------------------
13839 # Check for conio (Bacula readline substitute)(
13840 # ---------------------------------------------------
13841 # this allows you to turn it completely off
13842 # Check whether --enable-conio was given.
13843 if test "${enable_conio+set}" = set; then
13844   enableval=$enable_conio; if test x$enableval = xno; then
13845      support_conio=no
13846   fi
13847
13848 fi
13849
13850
13851
13852 # ---------------------------------------------------
13853 # Check for IPv6 support
13854 # ---------------------------------------------------
13855 # this allows you to turn it completely off
13856 support_ipv6=yes
13857 # Check whether --enable-ipv6 was given.
13858 if test "${enable_ipv6+set}" = set; then
13859   enableval=$enable_ipv6; if test x$enableval = xno; then
13860      support_ipv6=no
13861   fi
13862
13863 fi
13864
13865
13866 if test x$support_ipv6 = xyes; then
13867     cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873  #include <sys/types.h>
13874 #include <sys/socket.h>
13875 #include <netinet/in.h>
13876 int
13877 main ()
13878 {
13879 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_link") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } && {
13898          test -z "$ac_c_werror_flag" ||
13899          test ! -s conftest.err
13900        } && test -s conftest$ac_exeext &&
13901        $as_test_x conftest$ac_exeext; then
13902   support_ipv6=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907         support_ipv6=no
13908 fi
13909
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911       conftest$ac_exeext conftest.$ac_ext
13912 fi
13913
13914 if test x$support_ipv6 = xyes; then
13915
13916 cat >>confdefs.h <<\_ACEOF
13917 #define HAVE_IPV6 1
13918 _ACEOF
13919
13920 fi
13921
13922
13923
13924 got_conio="no"
13925 if test x$support_conio = xyes; then
13926    if test "${ac_cv_header_termcap_h+set}" = set; then
13927   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13928 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13929 if test "${ac_cv_header_termcap_h+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 fi
13932 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13933 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13934 else
13935   # Is the header compilable?
13936 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13937 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h.  */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h.  */
13944 $ac_includes_default
13945 #include <termcap.h>
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (ac_try="$ac_compile"
13949 case "(($ac_try" in
13950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951   *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954   (eval "$ac_compile") 2>conftest.er1
13955   ac_status=$?
13956   grep -v '^ *+' conftest.er1 >conftest.err
13957   rm -f conftest.er1
13958   cat conftest.err >&5
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); } && {
13961          test -z "$ac_c_werror_flag" ||
13962          test ! -s conftest.err
13963        } && test -s conftest.$ac_objext; then
13964   ac_header_compiler=yes
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969         ac_header_compiler=no
13970 fi
13971
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13978 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985 #include <termcap.h>
13986 _ACEOF
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } >/dev/null && {
14000          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14001          test ! -s conftest.err
14002        }; then
14003   ac_header_preproc=yes
14004 else
14005   echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008   ac_header_preproc=no
14009 fi
14010
14011 rm -f conftest.err conftest.$ac_ext
14012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6; }
14014
14015 # So?  What about this header?
14016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017   yes:no: )
14018     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14021 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14022     ac_header_preproc=yes
14023     ;;
14024   no:yes:* )
14025     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14026 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14027     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14028 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14029     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14030 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14032 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14034 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14036 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14037
14038     ;;
14039 esac
14040 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14041 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_termcap_h+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   ac_cv_header_termcap_h=$ac_header_preproc
14046 fi
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14049
14050 fi
14051 if test $ac_cv_header_termcap_h = yes; then
14052    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14053 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14054 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-ltermcap  $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065
14066 /* Override any GCC internal prototype to avoid an error.
14067    Use char because int might match the return type of a GCC
14068    builtin and then its argument prototype would still apply.  */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 char tgetent ();
14073 int
14074 main ()
14075 {
14076 return tgetent ();
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_link") 2>conftest.er1
14089   ac_status=$?
14090   grep -v '^ *+' conftest.er1 >conftest.err
14091   rm -f conftest.er1
14092   cat conftest.err >&5
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } && {
14095          test -z "$ac_c_werror_flag" ||
14096          test ! -s conftest.err
14097        } && test -s conftest$ac_exeext &&
14098        $as_test_x conftest$ac_exeext; then
14099   ac_cv_lib_termcap_tgetent=yes
14100 else
14101   echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14103
14104         ac_cv_lib_termcap_tgetent=no
14105 fi
14106
14107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14108       conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14110 fi
14111 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14112 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14113 if test $ac_cv_lib_termcap_tgetent = yes; then
14114    CONS_LIBS="-ltermcap"
14115          CONS_OBJ="conio.o"
14116          CONS_SRC="conio.c"
14117          got_conio="yes"
14118          support_readline=no
14119
14120 cat >>confdefs.h <<\_ACEOF
14121 #define HAVE_CONIO 1
14122 _ACEOF
14123
14124
14125 else
14126    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14127 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14128 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-lncurses  $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h.  */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h.  */
14139
14140 /* Override any GCC internal prototype to avoid an error.
14141    Use char because int might match the return type of a GCC
14142    builtin and then its argument prototype would still apply.  */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char tgetent ();
14147 int
14148 main ()
14149 {
14150 return tgetent ();
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162   (eval "$ac_link") 2>conftest.er1
14163   ac_status=$?
14164   grep -v '^ *+' conftest.er1 >conftest.err
14165   rm -f conftest.er1
14166   cat conftest.err >&5
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); } && {
14169          test -z "$ac_c_werror_flag" ||
14170          test ! -s conftest.err
14171        } && test -s conftest$ac_exeext &&
14172        $as_test_x conftest$ac_exeext; then
14173   ac_cv_lib_ncurses_tgetent=yes
14174 else
14175   echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14177
14178         ac_cv_lib_ncurses_tgetent=no
14179 fi
14180
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182       conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14184 fi
14185 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14186 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14187 if test $ac_cv_lib_ncurses_tgetent = yes; then
14188    CONS_LIBS="-lncurses"
14189            CONS_OBJ="conio.o"
14190            CONS_SRC="conio.c"
14191            got_conio="yes"
14192            support_readline=no
14193
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_CONIO 1
14196 _ACEOF
14197
14198
14199 fi
14200
14201
14202 fi
14203
14204
14205 else
14206
14207
14208 for ac_header in curses.h
14209 do
14210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14215   echo $ECHO_N "(cached) $ECHO_C" >&6
14216 fi
14217 ac_res=`eval echo '${'$as_ac_Header'}'`
14218                { echo "$as_me:$LINENO: result: $ac_res" >&5
14219 echo "${ECHO_T}$ac_res" >&6; }
14220 else
14221   # Is the header compilable?
14222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14224 cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h.  */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h.  */
14230 $ac_includes_default
14231 #include <$ac_header>
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (ac_try="$ac_compile"
14235 case "(($ac_try" in
14236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237   *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240   (eval "$ac_compile") 2>conftest.er1
14241   ac_status=$?
14242   grep -v '^ *+' conftest.er1 >conftest.err
14243   rm -f conftest.er1
14244   cat conftest.err >&5
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); } && {
14247          test -z "$ac_c_werror_flag" ||
14248          test ! -s conftest.err
14249        } && test -s conftest.$ac_objext; then
14250   ac_header_compiler=yes
14251 else
14252   echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14254
14255         ac_header_compiler=no
14256 fi
14257
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260 echo "${ECHO_T}$ac_header_compiler" >&6; }
14261
14262 # Is the header present?
14263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h.  */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h.  */
14271 #include <$ac_header>
14272 _ACEOF
14273 if { (ac_try="$ac_cpp conftest.$ac_ext"
14274 case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } >/dev/null && {
14286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14287          test ! -s conftest.err
14288        }; then
14289   ac_header_preproc=yes
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294   ac_header_preproc=no
14295 fi
14296
14297 rm -f conftest.err conftest.$ac_ext
14298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14299 echo "${ECHO_T}$ac_header_preproc" >&6; }
14300
14301 # So?  What about this header?
14302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14303   yes:no: )
14304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14308     ac_header_preproc=yes
14309     ;;
14310   no:yes:* )
14311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14323
14324     ;;
14325 esac
14326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14329   echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331   eval "$as_ac_Header=\$ac_header_preproc"
14332 fi
14333 ac_res=`eval echo '${'$as_ac_Header'}'`
14334                { echo "$as_me:$LINENO: result: $ac_res" >&5
14335 echo "${ECHO_T}$ac_res" >&6; }
14336
14337 fi
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339   cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 _ACEOF
14342
14343 fi
14344
14345 done
14346
14347          { echo "$as_me:$LINENO: checking for term.h" >&5
14348 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14349 if test "${ac_cv_header_term_h+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h.  */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h.  */
14358 #if HAVE_CURSES_H
14359 #include <curses.h>
14360 #endif
14361
14362
14363 #include <term.h>
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (ac_try="$ac_compile"
14367 case "(($ac_try" in
14368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369   *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372   (eval "$ac_compile") 2>conftest.er1
14373   ac_status=$?
14374   grep -v '^ *+' conftest.er1 >conftest.err
14375   rm -f conftest.er1
14376   cat conftest.err >&5
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } && {
14379          test -z "$ac_c_werror_flag" ||
14380          test ! -s conftest.err
14381        } && test -s conftest.$ac_objext; then
14382   ac_cv_header_term_h=yes
14383 else
14384   echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14386
14387         ac_cv_header_term_h=no
14388 fi
14389
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 fi
14392 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14393 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14394 if test $ac_cv_header_term_h = yes; then
14395    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14396 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14397 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14398   echo $ECHO_N "(cached) $ECHO_C" >&6
14399 else
14400   ac_check_lib_save_LIBS=$LIBS
14401 LIBS="-lcurses  $LIBS"
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h.  */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h.  */
14408
14409 /* Override any GCC internal prototype to avoid an error.
14410    Use char because int might match the return type of a GCC
14411    builtin and then its argument prototype would still apply.  */
14412 #ifdef __cplusplus
14413 extern "C"
14414 #endif
14415 char tgetent ();
14416 int
14417 main ()
14418 {
14419 return tgetent ();
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext conftest$ac_exeext
14425 if { (ac_try="$ac_link"
14426 case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_link") 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } && {
14438          test -z "$ac_c_werror_flag" ||
14439          test ! -s conftest.err
14440        } && test -s conftest$ac_exeext &&
14441        $as_test_x conftest$ac_exeext; then
14442   ac_cv_lib_curses_tgetent=yes
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447         ac_cv_lib_curses_tgetent=no
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14451       conftest$ac_exeext conftest.$ac_ext
14452 LIBS=$ac_check_lib_save_LIBS
14453 fi
14454 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14455 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14456 if test $ac_cv_lib_curses_tgetent = yes; then
14457    CONS_LIBS="-lcurses"
14458                    CONS_OBJ="conio.o"
14459                    CONS_SRC="conio.c"
14460                    got_conio="yes"
14461                    support_readline=no
14462
14463 cat >>confdefs.h <<\_ACEOF
14464 #define HAVE_CONIO 1
14465 _ACEOF
14466
14467
14468 fi
14469
14470
14471 else
14472    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14473 fi
14474
14475
14476
14477 fi
14478
14479
14480 fi
14481
14482
14483 # ---------------------------------------------------
14484 # Check for readline support/directory (default off)
14485 # ---------------------------------------------------
14486 # this allows you to turn it completely off
14487 # Check whether --enable-readline was given.
14488 if test "${enable_readline+set}" = set; then
14489   enableval=$enable_readline; if test x$enableval = xno; then
14490     support_readline=no
14491   fi
14492 fi
14493
14494
14495 got_readline="no"
14496 READLINE_SRC=
14497 if test x$support_readline = xyes; then
14498
14499 # Check whether --with-readline was given.
14500 if test "${with_readline+set}" = set; then
14501   withval=$with_readline;
14502         case "$with_readline" in
14503         no) : ;;
14504         yes|*)
14505           if test -f ${with_readline}/readline.h; then
14506              CONS_INC="-I${with_readline}"
14507              CONS_LDFLAGS="-L$with_readline"
14508           elif test -f ${with_readline}/include/readline/readline.h; then
14509              CONS_INC="-I${with_readline}/include/readline"
14510              CONS_LDFLAGS="-L${with_readline}/lib"
14511              with_readline="${with_readline}/include/readline"
14512           else
14513              with_readline="/usr/include/readline"
14514           fi
14515           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14518 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520   echo $ECHO_N "(cached) $ECHO_C" >&6
14521 fi
14522 ac_res=`eval echo '${'$as_ac_Header'}'`
14523                { echo "$as_me:$LINENO: result: $ac_res" >&5
14524 echo "${ECHO_T}$ac_res" >&6; }
14525 else
14526   # Is the header compilable?
14527 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14528 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14529 cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 $ac_includes_default
14536 #include <${with_readline}/readline.h>
14537 _ACEOF
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542   *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545   (eval "$ac_compile") 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } && {
14552          test -z "$ac_c_werror_flag" ||
14553          test ! -s conftest.err
14554        } && test -s conftest.$ac_objext; then
14555   ac_header_compiler=yes
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560         ac_header_compiler=no
14561 fi
14562
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14565 echo "${ECHO_T}$ac_header_compiler" >&6; }
14566
14567 # Is the header present?
14568 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14569 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h.  */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h.  */
14576 #include <${with_readline}/readline.h>
14577 _ACEOF
14578 if { (ac_try="$ac_cpp conftest.$ac_ext"
14579 case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14585   ac_status=$?
14586   grep -v '^ *+' conftest.er1 >conftest.err
14587   rm -f conftest.er1
14588   cat conftest.err >&5
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } >/dev/null && {
14591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14592          test ! -s conftest.err
14593        }; then
14594   ac_header_preproc=yes
14595 else
14596   echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599   ac_header_preproc=no
14600 fi
14601
14602 rm -f conftest.err conftest.$ac_ext
14603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14604 echo "${ECHO_T}$ac_header_preproc" >&6; }
14605
14606 # So?  What about this header?
14607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14608   yes:no: )
14609     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14610 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14611     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14613     ac_header_preproc=yes
14614     ;;
14615   no:yes:* )
14616     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14617 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14618     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14619 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14620     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14621 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14622     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14623 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14624     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14625 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14626     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14627 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14628
14629     ;;
14630 esac
14631 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14632 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14634   echo $ECHO_N "(cached) $ECHO_C" >&6
14635 else
14636   eval "$as_ac_Header=\$ac_header_preproc"
14637 fi
14638 ac_res=`eval echo '${'$as_ac_Header'}'`
14639                { echo "$as_me:$LINENO: result: $ac_res" >&5
14640 echo "${ECHO_T}$ac_res" >&6; }
14641
14642 fi
14643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14644
14645 cat >>confdefs.h <<\_ACEOF
14646 #define HAVE_READLINE 1
14647 _ACEOF
14648
14649                CONS_LIBS="-lreadline -lhistory -ltermcap"
14650                got_readline="yes"
14651
14652 else
14653    echo " "
14654                echo "readline.h not found. readline turned off ..."
14655                echo " "
14656
14657
14658 fi
14659
14660
14661           ;;
14662         esac
14663
14664 else
14665
14666        # check for standard readline library
14667        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14668   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14669 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14670 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 fi
14673 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14674 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14675 else
14676   # Is the header compilable?
14677 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14678 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h.  */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h.  */
14685 $ac_includes_default
14686 #include </usr/include/readline/readline.h>
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (ac_try="$ac_compile"
14690 case "(($ac_try" in
14691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692   *) ac_try_echo=$ac_try;;
14693 esac
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695   (eval "$ac_compile") 2>conftest.er1
14696   ac_status=$?
14697   grep -v '^ *+' conftest.er1 >conftest.err
14698   rm -f conftest.er1
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); } && {
14702          test -z "$ac_c_werror_flag" ||
14703          test ! -s conftest.err
14704        } && test -s conftest.$ac_objext; then
14705   ac_header_compiler=yes
14706 else
14707   echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14709
14710         ac_header_compiler=no
14711 fi
14712
14713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14715 echo "${ECHO_T}$ac_header_compiler" >&6; }
14716
14717 # Is the header present?
14718 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14719 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h.  */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h.  */
14726 #include </usr/include/readline/readline.h>
14727 _ACEOF
14728 if { (ac_try="$ac_cpp conftest.$ac_ext"
14729 case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735   ac_status=$?
14736   grep -v '^ *+' conftest.er1 >conftest.err
14737   rm -f conftest.er1
14738   cat conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } >/dev/null && {
14741          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14742          test ! -s conftest.err
14743        }; then
14744   ac_header_preproc=yes
14745 else
14746   echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749   ac_header_preproc=no
14750 fi
14751
14752 rm -f conftest.err conftest.$ac_ext
14753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14754 echo "${ECHO_T}$ac_header_preproc" >&6; }
14755
14756 # So?  What about this header?
14757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14758   yes:no: )
14759     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14760 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14761     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14763     ac_header_preproc=yes
14764     ;;
14765   no:yes:* )
14766     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14767 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14768     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14769 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14770     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14771 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14772     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14773 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14775 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14776     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14777 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14778
14779     ;;
14780 esac
14781 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14782 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14783 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14787 fi
14788 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14789 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14790
14791 fi
14792 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14793
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_READLINE 1
14796 _ACEOF
14797
14798            got_readline="yes"
14799            CONS_INC="-I/usr/include/readline"
14800            CONS_LIBS="-lreadline -ltermcap"
14801
14802 else
14803
14804            # Did not find standard library, so try Bacula's default
14805             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14807   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14808 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14810   echo $ECHO_N "(cached) $ECHO_C" >&6
14811 fi
14812 ac_res=`eval echo '${'$as_ac_Header'}'`
14813                { echo "$as_me:$LINENO: result: $ac_res" >&5
14814 echo "${ECHO_T}$ac_res" >&6; }
14815 else
14816   # Is the header compilable?
14817 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14818 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 $ac_includes_default
14826 #include <${TOP_DIR}/depkgs/readline/readline.h>
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832   *) ac_try_echo=$ac_try;;
14833 esac
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835   (eval "$ac_compile") 2>conftest.er1
14836   ac_status=$?
14837   grep -v '^ *+' conftest.er1 >conftest.err
14838   rm -f conftest.er1
14839   cat conftest.err >&5
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } && {
14842          test -z "$ac_c_werror_flag" ||
14843          test ! -s conftest.err
14844        } && test -s conftest.$ac_objext; then
14845   ac_header_compiler=yes
14846 else
14847   echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14849
14850         ac_header_compiler=no
14851 fi
14852
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14855 echo "${ECHO_T}$ac_header_compiler" >&6; }
14856
14857 # Is the header present?
14858 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14859 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <${TOP_DIR}/depkgs/readline/readline.h>
14867 _ACEOF
14868 if { (ac_try="$ac_cpp conftest.$ac_ext"
14869 case "(($ac_try" in
14870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871   *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } >/dev/null && {
14881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14882          test ! -s conftest.err
14883        }; then
14884   ac_header_preproc=yes
14885 else
14886   echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889   ac_header_preproc=no
14890 fi
14891
14892 rm -f conftest.err conftest.$ac_ext
14893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14894 echo "${ECHO_T}$ac_header_preproc" >&6; }
14895
14896 # So?  What about this header?
14897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14898   yes:no: )
14899     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14900 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14901     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14903     ac_header_preproc=yes
14904     ;;
14905   no:yes:* )
14906     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14907 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14908     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14909 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14911 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14912     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14913 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14914     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14915 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14916     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14917 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14918
14919     ;;
14920 esac
14921 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14922 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14924   echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926   eval "$as_ac_Header=\$ac_header_preproc"
14927 fi
14928 ac_res=`eval echo '${'$as_ac_Header'}'`
14929                { echo "$as_me:$LINENO: result: $ac_res" >&5
14930 echo "${ECHO_T}$ac_res" >&6; }
14931
14932 fi
14933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14934
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_READLINE 1
14937 _ACEOF
14938
14939                  got_readline="yes"
14940                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14941                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14942                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14943                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14944
14945 else
14946    echo " "
14947                 echo "readline.h not found. readline turned off ..."
14948                 echo " "
14949
14950
14951 fi
14952
14953
14954
14955
14956 fi
14957
14958
14959
14960
14961 fi
14962
14963 fi
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974 # Minimal stuff for readline Makefile configuration
14975 MAKE_SHELL=/bin/sh
14976
14977 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14978 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14979 if test "${ac_cv_header_stat_broken+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h.  */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h.  */
14988 #include <sys/types.h>
14989 #include <sys/stat.h>
14990
14991 #if defined S_ISBLK && defined S_IFDIR
14992 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14993 #endif
14994
14995 #if defined S_ISBLK && defined S_IFCHR
14996 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14997 #endif
14998
14999 #if defined S_ISLNK && defined S_IFREG
15000 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15001 #endif
15002
15003 #if defined S_ISSOCK && defined S_IFREG
15004 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15005 #endif
15006
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_compile") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } && {
15022          test -z "$ac_c_werror_flag" ||
15023          test ! -s conftest.err
15024        } && test -s conftest.$ac_objext; then
15025   ac_cv_header_stat_broken=no
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030         ac_cv_header_stat_broken=yes
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 fi
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15036 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15037 if test $ac_cv_header_stat_broken = yes; then
15038
15039 cat >>confdefs.h <<\_ACEOF
15040 #define STAT_MACROS_BROKEN 1
15041 _ACEOF
15042
15043 fi
15044
15045
15046
15047
15048
15049
15050 ac_header_dirent=no
15051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15052   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15053 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15054 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 #include <sys/types.h>
15065 #include <$ac_hdr>
15066
15067 int
15068 main ()
15069 {
15070 if ((DIR *) 0)
15071 return 0;
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080   *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083   (eval "$ac_compile") 2>conftest.er1
15084   ac_status=$?
15085   grep -v '^ *+' conftest.er1 >conftest.err
15086   rm -f conftest.er1
15087   cat conftest.err >&5
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); } && {
15090          test -z "$ac_c_werror_flag" ||
15091          test ! -s conftest.err
15092        } && test -s conftest.$ac_objext; then
15093   eval "$as_ac_Header=yes"
15094 else
15095   echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098         eval "$as_ac_Header=no"
15099 fi
15100
15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 fi
15103 ac_res=`eval echo '${'$as_ac_Header'}'`
15104                { echo "$as_me:$LINENO: result: $ac_res" >&5
15105 echo "${ECHO_T}$ac_res" >&6; }
15106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107   cat >>confdefs.h <<_ACEOF
15108 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15109 _ACEOF
15110
15111 ac_header_dirent=$ac_hdr; break
15112 fi
15113
15114 done
15115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15116 if test $ac_header_dirent = dirent.h; then
15117   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15119 if test "${ac_cv_search_opendir+set}" = set; then
15120   echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122   ac_func_search_save_LIBS=$LIBS
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h.  */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h.  */
15129
15130 /* Override any GCC internal prototype to avoid an error.
15131    Use char because int might match the return type of a GCC
15132    builtin and then its argument prototype would still apply.  */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 char opendir ();
15137 int
15138 main ()
15139 {
15140 return opendir ();
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 for ac_lib in '' dir; do
15146   if test -z "$ac_lib"; then
15147     ac_res="none required"
15148   else
15149     ac_res=-l$ac_lib
15150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15151   fi
15152   rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (ac_try="$ac_link"
15154 case "(($ac_try" in
15155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156   *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159   (eval "$ac_link") 2>conftest.er1
15160   ac_status=$?
15161   grep -v '^ *+' conftest.er1 >conftest.err
15162   rm -f conftest.er1
15163   cat conftest.err >&5
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } && {
15166          test -z "$ac_c_werror_flag" ||
15167          test ! -s conftest.err
15168        } && test -s conftest$ac_exeext &&
15169        $as_test_x conftest$ac_exeext; then
15170   ac_cv_search_opendir=$ac_res
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175
15176 fi
15177
15178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15179       conftest$ac_exeext
15180   if test "${ac_cv_search_opendir+set}" = set; then
15181   break
15182 fi
15183 done
15184 if test "${ac_cv_search_opendir+set}" = set; then
15185   :
15186 else
15187   ac_cv_search_opendir=no
15188 fi
15189 rm conftest.$ac_ext
15190 LIBS=$ac_func_search_save_LIBS
15191 fi
15192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15194 ac_res=$ac_cv_search_opendir
15195 if test "$ac_res" != no; then
15196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15197
15198 fi
15199
15200 else
15201   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15203 if test "${ac_cv_search_opendir+set}" = set; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   ac_func_search_save_LIBS=$LIBS
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213
15214 /* Override any GCC internal prototype to avoid an error.
15215    Use char because int might match the return type of a GCC
15216    builtin and then its argument prototype would still apply.  */
15217 #ifdef __cplusplus
15218 extern "C"
15219 #endif
15220 char opendir ();
15221 int
15222 main ()
15223 {
15224 return opendir ();
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 for ac_lib in '' x; do
15230   if test -z "$ac_lib"; then
15231     ac_res="none required"
15232   else
15233     ac_res=-l$ac_lib
15234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15235   fi
15236   rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (ac_try="$ac_link"
15238 case "(($ac_try" in
15239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240   *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243   (eval "$ac_link") 2>conftest.er1
15244   ac_status=$?
15245   grep -v '^ *+' conftest.er1 >conftest.err
15246   rm -f conftest.er1
15247   cat conftest.err >&5
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } && {
15250          test -z "$ac_c_werror_flag" ||
15251          test ! -s conftest.err
15252        } && test -s conftest$ac_exeext &&
15253        $as_test_x conftest$ac_exeext; then
15254   ac_cv_search_opendir=$ac_res
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259
15260 fi
15261
15262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263       conftest$ac_exeext
15264   if test "${ac_cv_search_opendir+set}" = set; then
15265   break
15266 fi
15267 done
15268 if test "${ac_cv_search_opendir+set}" = set; then
15269   :
15270 else
15271   ac_cv_search_opendir=no
15272 fi
15273 rm conftest.$ac_ext
15274 LIBS=$ac_func_search_save_LIBS
15275 fi
15276 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15277 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15278 ac_res=$ac_cv_search_opendir
15279 if test "$ac_res" != no; then
15280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15281
15282 fi
15283
15284 fi
15285
15286
15287
15288
15289
15290
15291
15292
15293 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15294 do
15295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15299   echo $ECHO_N "(cached) $ECHO_C" >&6
15300 else
15301   cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h.  */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h.  */
15307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15309 #define $ac_func innocuous_$ac_func
15310
15311 /* System header to define __stub macros and hopefully few prototypes,
15312     which can conflict with char $ac_func (); below.
15313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15314     <limits.h> exists even on freestanding compilers.  */
15315
15316 #ifdef __STDC__
15317 # include <limits.h>
15318 #else
15319 # include <assert.h>
15320 #endif
15321
15322 #undef $ac_func
15323
15324 /* Override any GCC internal prototype to avoid an error.
15325    Use char because int might match the return type of a GCC
15326    builtin and then its argument prototype would still apply.  */
15327 #ifdef __cplusplus
15328 extern "C"
15329 #endif
15330 char $ac_func ();
15331 /* The GNU C library defines this for functions which it implements
15332     to always fail with ENOSYS.  Some functions are actually named
15333     something starting with __ and the normal name is an alias.  */
15334 #if defined __stub_$ac_func || defined __stub___$ac_func
15335 choke me
15336 #endif
15337
15338 int
15339 main ()
15340 {
15341 return $ac_func ();
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (ac_try="$ac_link"
15348 case "(($ac_try" in
15349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350   *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353   (eval "$ac_link") 2>conftest.er1
15354   ac_status=$?
15355   grep -v '^ *+' conftest.er1 >conftest.err
15356   rm -f conftest.er1
15357   cat conftest.err >&5
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); } && {
15360          test -z "$ac_c_werror_flag" ||
15361          test ! -s conftest.err
15362        } && test -s conftest$ac_exeext &&
15363        $as_test_x conftest$ac_exeext; then
15364   eval "$as_ac_var=yes"
15365 else
15366   echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15368
15369         eval "$as_ac_var=no"
15370 fi
15371
15372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15373       conftest$ac_exeext conftest.$ac_ext
15374 fi
15375 ac_res=`eval echo '${'$as_ac_var'}'`
15376                { echo "$as_me:$LINENO: result: $ac_res" >&5
15377 echo "${ECHO_T}$ac_res" >&6; }
15378 if test `eval echo '${'$as_ac_var'}'` = yes; then
15379   cat >>confdefs.h <<_ACEOF
15380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15381 _ACEOF
15382
15383 fi
15384 done
15385
15386
15387
15388 for ac_func in nanosleep nl_langinfo
15389 do
15390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h.  */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h.  */
15402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15404 #define $ac_func innocuous_$ac_func
15405
15406 /* System header to define __stub macros and hopefully few prototypes,
15407     which can conflict with char $ac_func (); below.
15408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409     <limits.h> exists even on freestanding compilers.  */
15410
15411 #ifdef __STDC__
15412 # include <limits.h>
15413 #else
15414 # include <assert.h>
15415 #endif
15416
15417 #undef $ac_func
15418
15419 /* Override any GCC internal prototype to avoid an error.
15420    Use char because int might match the return type of a GCC
15421    builtin and then its argument prototype would still apply.  */
15422 #ifdef __cplusplus
15423 extern "C"
15424 #endif
15425 char $ac_func ();
15426 /* The GNU C library defines this for functions which it implements
15427     to always fail with ENOSYS.  Some functions are actually named
15428     something starting with __ and the normal name is an alias.  */
15429 #if defined __stub_$ac_func || defined __stub___$ac_func
15430 choke me
15431 #endif
15432
15433 int
15434 main ()
15435 {
15436 return $ac_func ();
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445   *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448   (eval "$ac_link") 2>conftest.er1
15449   ac_status=$?
15450   grep -v '^ *+' conftest.er1 >conftest.err
15451   rm -f conftest.er1
15452   cat conftest.err >&5
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } && {
15455          test -z "$ac_c_werror_flag" ||
15456          test ! -s conftest.err
15457        } && test -s conftest$ac_exeext &&
15458        $as_test_x conftest$ac_exeext; then
15459   eval "$as_ac_var=yes"
15460 else
15461   echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464         eval "$as_ac_var=no"
15465 fi
15466
15467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15468       conftest$ac_exeext conftest.$ac_ext
15469 fi
15470 ac_res=`eval echo '${'$as_ac_var'}'`
15471                { echo "$as_me:$LINENO: result: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15473 if test `eval echo '${'$as_ac_var'}'` = yes; then
15474   cat >>confdefs.h <<_ACEOF
15475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15476 _ACEOF
15477
15478 fi
15479 done
15480
15481
15482 for ac_header in varargs.h
15483 do
15484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15486   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489   echo $ECHO_N "(cached) $ECHO_C" >&6
15490 fi
15491 ac_res=`eval echo '${'$as_ac_Header'}'`
15492                { echo "$as_me:$LINENO: result: $ac_res" >&5
15493 echo "${ECHO_T}$ac_res" >&6; }
15494 else
15495   # Is the header compilable?
15496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504 $ac_includes_default
15505 #include <$ac_header>
15506 _ACEOF
15507 rm -f conftest.$ac_objext
15508 if { (ac_try="$ac_compile"
15509 case "(($ac_try" in
15510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511   *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514   (eval "$ac_compile") 2>conftest.er1
15515   ac_status=$?
15516   grep -v '^ *+' conftest.er1 >conftest.err
15517   rm -f conftest.er1
15518   cat conftest.err >&5
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } && {
15521          test -z "$ac_c_werror_flag" ||
15522          test ! -s conftest.err
15523        } && test -s conftest.$ac_objext; then
15524   ac_header_compiler=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529         ac_header_compiler=no
15530 fi
15531
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15534 echo "${ECHO_T}$ac_header_compiler" >&6; }
15535
15536 # Is the header present?
15537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h.  */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h.  */
15545 #include <$ac_header>
15546 _ACEOF
15547 if { (ac_try="$ac_cpp conftest.$ac_ext"
15548 case "(($ac_try" in
15549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550   *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } >/dev/null && {
15560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15561          test ! -s conftest.err
15562        }; then
15563   ac_header_preproc=yes
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568   ac_header_preproc=no
15569 fi
15570
15571 rm -f conftest.err conftest.$ac_ext
15572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15573 echo "${ECHO_T}$ac_header_preproc" >&6; }
15574
15575 # So?  What about this header?
15576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15577   yes:no: )
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15582     ac_header_preproc=yes
15583     ;;
15584   no:yes:* )
15585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15587     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15588 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15589     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15591     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15592 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15595     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15597
15598     ;;
15599 esac
15600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603   echo $ECHO_N "(cached) $ECHO_C" >&6
15604 else
15605   eval "$as_ac_Header=\$ac_header_preproc"
15606 fi
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608                { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15610
15611 fi
15612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15613   cat >>confdefs.h <<_ACEOF
15614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15615 _ACEOF
15616
15617 fi
15618
15619 done
15620
15621
15622 # End of readline/conio stuff
15623 # -----------------------------------------------------------------------
15624
15625 # -----------------------------------------------------------------------
15626 #  Check for Python support
15627 #
15628 { echo "$as_me:$LINENO: checking for Python support" >&5
15629 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15630
15631 # Check whether --with-python was given.
15632 if test "${with_python+set}" = set; then
15633   withval=$with_python;
15634   PYTHON_INCDIR=
15635   PYTHON_LIBS=
15636   if test "$withval" != "no"; then
15637      if test "$withval" = "yes"; then
15638         for python_root in /usr /usr/local /usr/sfw; do
15639           for ver in python2.2 python2.3 python2.4 python2.5; do
15640              if test -f $python_root/include/${ver}/Python.h; then
15641                 PYTHON_INCDIR=-I$python_root/include/${ver}
15642                 if test -d $python_root/lib64/${ver}/config; then
15643                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15644                 else
15645                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15646                 fi
15647                 break
15648              fi
15649           done
15650         done
15651         if test x$PYTHON_INCDIR = x; then
15652           if test -f $prefix/include/Python.h; then
15653              PYTHON_INCDIR=-I$prefix/include
15654              if test -d $prefix/lib64/config; then
15655                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15656              else
15657                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15658              fi
15659           else
15660            { echo "$as_me:$LINENO: result: no" >&5
15661 echo "${ECHO_T}no" >&6; }
15662            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15663 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15664    { (exit 1); exit 1; }; }
15665           fi
15666         fi
15667      else
15668         if test -f $withval/Python.h; then
15669            PYTHON_INCDIR=-I$withval
15670            PYTHON_LIBS="-L$withval/config -lpython"
15671         elif test -f $withval/include/Python.h; then
15672            PYTHON_INCDIR=-I$withval/include
15673            if test -d $withval/lib64/config; then
15674               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15675            else
15676               PYTHON_LIBS="-L$withval/lib/config -lpython"
15677            fi
15678         elif test -f $withval/include/python/Python.h; then
15679            PYTHON_INCDIR=-I$withval/include/python
15680            if test -d $withval/lib64/python/config; then
15681               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15682            else
15683               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15684            fi
15685         else
15686            { echo "$as_me:$LINENO: result: no" >&5
15687 echo "${ECHO_T}no" >&6; }
15688            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15689 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15690    { (exit 1); exit 1; }; }
15691         fi
15692      fi
15693      cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_PYTHON 1
15695 _ACEOF
15696
15697      { echo "$as_me:$LINENO: result: yes" >&5
15698 echo "${ECHO_T}yes" >&6; }
15699      support_python=yes
15700      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15701 echo "$as_me: checking for more Python libs" >&6;}
15702      saved_LIBS="$LIBS"; LIBS=
15703      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15704 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15705 if test "${ac_cv_search_shm_open+set}" = set; then
15706   echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708   ac_func_search_save_LIBS=$LIBS
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715
15716 /* Override any GCC internal prototype to avoid an error.
15717    Use char because int might match the return type of a GCC
15718    builtin and then its argument prototype would still apply.  */
15719 #ifdef __cplusplus
15720 extern "C"
15721 #endif
15722 char shm_open ();
15723 int
15724 main ()
15725 {
15726 return shm_open ();
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 for ac_lib in '' rt; do
15732   if test -z "$ac_lib"; then
15733     ac_res="none required"
15734   else
15735     ac_res=-l$ac_lib
15736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15737   fi
15738   rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (ac_try="$ac_link"
15740 case "(($ac_try" in
15741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742   *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745   (eval "$ac_link") 2>conftest.er1
15746   ac_status=$?
15747   grep -v '^ *+' conftest.er1 >conftest.err
15748   rm -f conftest.er1
15749   cat conftest.err >&5
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); } && {
15752          test -z "$ac_c_werror_flag" ||
15753          test ! -s conftest.err
15754        } && test -s conftest$ac_exeext &&
15755        $as_test_x conftest$ac_exeext; then
15756   ac_cv_search_shm_open=$ac_res
15757 else
15758   echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15760
15761
15762 fi
15763
15764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15765       conftest$ac_exeext
15766   if test "${ac_cv_search_shm_open+set}" = set; then
15767   break
15768 fi
15769 done
15770 if test "${ac_cv_search_shm_open+set}" = set; then
15771   :
15772 else
15773   ac_cv_search_shm_open=no
15774 fi
15775 rm conftest.$ac_ext
15776 LIBS=$ac_func_search_save_LIBS
15777 fi
15778 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15779 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15780 ac_res=$ac_cv_search_shm_open
15781 if test "$ac_res" != no; then
15782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15783
15784 fi
15785
15786
15787 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15788 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15789 if test "${ac_cv_lib_util_openpty+set}" = set; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-lutil  $LIBS"
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800
15801 /* Override any GCC internal prototype to avoid an error.
15802    Use char because int might match the return type of a GCC
15803    builtin and then its argument prototype would still apply.  */
15804 #ifdef __cplusplus
15805 extern "C"
15806 #endif
15807 char openpty ();
15808 int
15809 main ()
15810 {
15811 return openpty ();
15812   ;
15813   return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (ac_try="$ac_link"
15818 case "(($ac_try" in
15819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820   *) ac_try_echo=$ac_try;;
15821 esac
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823   (eval "$ac_link") 2>conftest.er1
15824   ac_status=$?
15825   grep -v '^ *+' conftest.er1 >conftest.err
15826   rm -f conftest.er1
15827   cat conftest.err >&5
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); } && {
15830          test -z "$ac_c_werror_flag" ||
15831          test ! -s conftest.err
15832        } && test -s conftest$ac_exeext &&
15833        $as_test_x conftest$ac_exeext; then
15834   ac_cv_lib_util_openpty=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839         ac_cv_lib_util_openpty=no
15840 fi
15841
15842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15843       conftest$ac_exeext conftest.$ac_ext
15844 LIBS=$ac_check_lib_save_LIBS
15845 fi
15846 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15847 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15848 if test $ac_cv_lib_util_openpty = yes; then
15849   cat >>confdefs.h <<_ACEOF
15850 #define HAVE_LIBUTIL 1
15851 _ACEOF
15852
15853   LIBS="-lutil $LIBS"
15854
15855 fi
15856
15857      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15858      LIBS="$saved_LIBS"
15859   else
15860      { echo "$as_me:$LINENO: result: no" >&5
15861 echo "${ECHO_T}no" >&6; }
15862   fi
15863
15864 else
15865
15866   { echo "$as_me:$LINENO: result: no" >&5
15867 echo "${ECHO_T}no" >&6; }
15868
15869 fi
15870
15871
15872
15873
15874 #
15875 # Find where sockets are (especially for Solaris)
15876 # Do this before the TCP Wrappers test since tcp wrappers
15877 # uses the socket library and some linkers are stupid.
15878 #
15879 { echo "$as_me:$LINENO: checking for socket" >&5
15880 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15881 if test "${ac_cv_func_socket+set}" = set; then
15882   echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884   cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15892 #define socket innocuous_socket
15893
15894 /* System header to define __stub macros and hopefully few prototypes,
15895     which can conflict with char socket (); below.
15896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15897     <limits.h> exists even on freestanding compilers.  */
15898
15899 #ifdef __STDC__
15900 # include <limits.h>
15901 #else
15902 # include <assert.h>
15903 #endif
15904
15905 #undef socket
15906
15907 /* Override any GCC internal prototype to avoid an error.
15908    Use char because int might match the return type of a GCC
15909    builtin and then its argument prototype would still apply.  */
15910 #ifdef __cplusplus
15911 extern "C"
15912 #endif
15913 char socket ();
15914 /* The GNU C library defines this for functions which it implements
15915     to always fail with ENOSYS.  Some functions are actually named
15916     something starting with __ and the normal name is an alias.  */
15917 #if defined __stub_socket || defined __stub___socket
15918 choke me
15919 #endif
15920
15921 int
15922 main ()
15923 {
15924 return socket ();
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_link") 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } && {
15943          test -z "$ac_c_werror_flag" ||
15944          test ! -s conftest.err
15945        } && test -s conftest$ac_exeext &&
15946        $as_test_x conftest$ac_exeext; then
15947   ac_cv_func_socket=yes
15948 else
15949   echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952         ac_cv_func_socket=no
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956       conftest$ac_exeext conftest.$ac_ext
15957 fi
15958 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15959 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15960 if test $ac_cv_func_socket = yes; then
15961   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15962 echo "${ECHO_T}using libc's socket" >&6; }
15963 else
15964
15965 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15966 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15967 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15968   echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970   ac_check_lib_save_LIBS=$LIBS
15971 LIBS="-lxnet  $LIBS"
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978
15979 /* Override any GCC internal prototype to avoid an error.
15980    Use char because int might match the return type of a GCC
15981    builtin and then its argument prototype would still apply.  */
15982 #ifdef __cplusplus
15983 extern "C"
15984 #endif
15985 char socket ();
15986 int
15987 main ()
15988 {
15989 return socket ();
15990   ;
15991   return 0;
15992 }
15993 _ACEOF
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998   *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001   (eval "$ac_link") 2>conftest.er1
16002   ac_status=$?
16003   grep -v '^ *+' conftest.er1 >conftest.err
16004   rm -f conftest.er1
16005   cat conftest.err >&5
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); } && {
16008          test -z "$ac_c_werror_flag" ||
16009          test ! -s conftest.err
16010        } && test -s conftest$ac_exeext &&
16011        $as_test_x conftest$ac_exeext; then
16012   ac_cv_lib_xnet_socket=yes
16013 else
16014   echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017         ac_cv_lib_xnet_socket=no
16018 fi
16019
16020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16021       conftest$ac_exeext conftest.$ac_ext
16022 LIBS=$ac_check_lib_save_LIBS
16023 fi
16024 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16025 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16026 if test $ac_cv_lib_xnet_socket = yes; then
16027   cat >>confdefs.h <<_ACEOF
16028 #define HAVE_LIBXNET 1
16029 _ACEOF
16030
16031   LIBS="-lxnet $LIBS"
16032
16033 fi
16034
16035
16036 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16037 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16038 if test "${ac_cv_lib_socket_socket+set}" = set; then
16039   echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041   ac_check_lib_save_LIBS=$LIBS
16042 LIBS="-lsocket  $LIBS"
16043 cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h.  */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h.  */
16049
16050 /* Override any GCC internal prototype to avoid an error.
16051    Use char because int might match the return type of a GCC
16052    builtin and then its argument prototype would still apply.  */
16053 #ifdef __cplusplus
16054 extern "C"
16055 #endif
16056 char socket ();
16057 int
16058 main ()
16059 {
16060 return socket ();
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (ac_try="$ac_link"
16067 case "(($ac_try" in
16068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069   *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072   (eval "$ac_link") 2>conftest.er1
16073   ac_status=$?
16074   grep -v '^ *+' conftest.er1 >conftest.err
16075   rm -f conftest.er1
16076   cat conftest.err >&5
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } && {
16079          test -z "$ac_c_werror_flag" ||
16080          test ! -s conftest.err
16081        } && test -s conftest$ac_exeext &&
16082        $as_test_x conftest$ac_exeext; then
16083   ac_cv_lib_socket_socket=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088         ac_cv_lib_socket_socket=no
16089 fi
16090
16091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16092       conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16094 fi
16095 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16096 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16097 if test $ac_cv_lib_socket_socket = yes; then
16098   cat >>confdefs.h <<_ACEOF
16099 #define HAVE_LIBSOCKET 1
16100 _ACEOF
16101
16102   LIBS="-lsocket $LIBS"
16103
16104 fi
16105
16106
16107 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16108 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16109 if test "${ac_cv_lib_inet_socket+set}" = set; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   ac_check_lib_save_LIBS=$LIBS
16113 LIBS="-linet  $LIBS"
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120
16121 /* Override any GCC internal prototype to avoid an error.
16122    Use char because int might match the return type of a GCC
16123    builtin and then its argument prototype would still apply.  */
16124 #ifdef __cplusplus
16125 extern "C"
16126 #endif
16127 char socket ();
16128 int
16129 main ()
16130 {
16131 return socket ();
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140   *) ac_try_echo=$ac_try;;
16141 esac
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143   (eval "$ac_link") 2>conftest.er1
16144   ac_status=$?
16145   grep -v '^ *+' conftest.er1 >conftest.err
16146   rm -f conftest.er1
16147   cat conftest.err >&5
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); } && {
16150          test -z "$ac_c_werror_flag" ||
16151          test ! -s conftest.err
16152        } && test -s conftest$ac_exeext &&
16153        $as_test_x conftest$ac_exeext; then
16154   ac_cv_lib_inet_socket=yes
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159         ac_cv_lib_inet_socket=no
16160 fi
16161
16162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16163       conftest$ac_exeext conftest.$ac_ext
16164 LIBS=$ac_check_lib_save_LIBS
16165 fi
16166 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16167 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16168 if test $ac_cv_lib_inet_socket = yes; then
16169   cat >>confdefs.h <<_ACEOF
16170 #define HAVE_LIBINET 1
16171 _ACEOF
16172
16173   LIBS="-linet $LIBS"
16174
16175 fi
16176
16177 fi
16178
16179
16180
16181 # -----------------------------------------------------------
16182 # Check whether user wants TCP wrappers support (default off)
16183 # -----------------------------------------------------------
16184 TCPW_MSG="no"
16185 WRAPLIBS=""
16186
16187 # Check whether --with-tcp-wrappers was given.
16188 if test "${with_tcp_wrappers+set}" = set; then
16189   withval=$with_tcp_wrappers;
16190     if test "x$withval" != "xno" ; then
16191        saved_LIBS="$LIBS"
16192        LIBS="$saved_LIBS -lwrap"
16193        { echo "$as_me:$LINENO: checking for libwrap" >&5
16194 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16195        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16196 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16197 if test "${ac_cv_search_nanosleep+set}" = set; then
16198   echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200   ac_func_search_save_LIBS=$LIBS
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h.  */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h.  */
16207
16208 /* Override any GCC internal prototype to avoid an error.
16209    Use char because int might match the return type of a GCC
16210    builtin and then its argument prototype would still apply.  */
16211 #ifdef __cplusplus
16212 extern "C"
16213 #endif
16214 char nanosleep ();
16215 int
16216 main ()
16217 {
16218 return nanosleep ();
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 for ac_lib in '' rt; do
16224   if test -z "$ac_lib"; then
16225     ac_res="none required"
16226   else
16227     ac_res=-l$ac_lib
16228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16229   fi
16230   rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_link") 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } && {
16244          test -z "$ac_c_werror_flag" ||
16245          test ! -s conftest.err
16246        } && test -s conftest$ac_exeext &&
16247        $as_test_x conftest$ac_exeext; then
16248   ac_cv_search_nanosleep=$ac_res
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257       conftest$ac_exeext
16258   if test "${ac_cv_search_nanosleep+set}" = set; then
16259   break
16260 fi
16261 done
16262 if test "${ac_cv_search_nanosleep+set}" = set; then
16263   :
16264 else
16265   ac_cv_search_nanosleep=no
16266 fi
16267 rm conftest.$ac_ext
16268 LIBS=$ac_func_search_save_LIBS
16269 fi
16270 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16271 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16272 ac_res=$ac_cv_search_nanosleep
16273 if test "$ac_res" != no; then
16274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16275
16276 fi
16277
16278        cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h.  */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h.  */
16284  #include <sys/types.h>
16285             #include <tcpd.h>
16286              int deny_severity = 0;
16287              int allow_severity = 0;
16288              struct request_info *req;
16289 int
16290 main ()
16291 {
16292  hosts_access(req);
16293   ;
16294   return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (ac_try="$ac_link"
16299 case "(($ac_try" in
16300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301   *) ac_try_echo=$ac_try;;
16302 esac
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304   (eval "$ac_link") 2>conftest.er1
16305   ac_status=$?
16306   grep -v '^ *+' conftest.er1 >conftest.err
16307   rm -f conftest.er1
16308   cat conftest.err >&5
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); } && {
16311          test -z "$ac_c_werror_flag" ||
16312          test ! -s conftest.err
16313        } && test -s conftest$ac_exeext &&
16314        $as_test_x conftest$ac_exeext; then
16315
16316             { echo "$as_me:$LINENO: result: yes" >&5
16317 echo "${ECHO_T}yes" >&6; }
16318
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_LIBWRAP 1
16321 _ACEOF
16322
16323             TCPW_MSG="yes"
16324             LIBS="$saved_LIBS"
16325             WRAPLIBS="-lwrap"
16326
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331
16332             LIBS="$saved_LIBS -lwrap -lnsl"
16333             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16334             cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h.  */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h.  */
16340  #include <sys/types.h>
16341                  #include <tcpd.h>
16342                  int deny_severity = 0;
16343                  int allow_severity = 0;
16344                  struct request_info *req;
16345 int
16346 main ()
16347 {
16348  hosts_access(req);
16349   ;
16350   return 0;
16351 }
16352 _ACEOF
16353 rm -f conftest.$ac_objext conftest$ac_exeext
16354 if { (ac_try="$ac_link"
16355 case "(($ac_try" in
16356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357   *) ac_try_echo=$ac_try;;
16358 esac
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360   (eval "$ac_link") 2>conftest.er1
16361   ac_status=$?
16362   grep -v '^ *+' conftest.er1 >conftest.err
16363   rm -f conftest.er1
16364   cat conftest.err >&5
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); } && {
16367          test -z "$ac_c_werror_flag" ||
16368          test ! -s conftest.err
16369        } && test -s conftest$ac_exeext &&
16370        $as_test_x conftest$ac_exeext; then
16371
16372                  { echo "$as_me:$LINENO: result: yes" >&5
16373 echo "${ECHO_T}yes" >&6; }
16374
16375 cat >>confdefs.h <<\_ACEOF
16376 #define HAVE_LIBWRAP 1
16377 _ACEOF
16378
16379                  TCPW_MSG="yes"
16380                  LIBS="$saved_LIBS"
16381                  WRAPLIBS="-lwrap"
16382
16383 else
16384   echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16388 echo "$as_me: error: *** libwrap missing" >&2;}
16389    { (exit 1); exit 1; }; }
16390
16391 fi
16392
16393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394       conftest$ac_exeext conftest.$ac_ext
16395
16396 fi
16397
16398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16399       conftest$ac_exeext conftest.$ac_ext
16400     fi
16401
16402
16403 fi
16404
16405
16406 # -----------------------------------------------------------
16407 # Check whether OpenSSL is available
16408 # -----------------------------------------------------------
16409 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16410 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16411
16412 # Check whether --with-openssl was given.
16413 if test "${with_openssl+set}" = set; then
16414   withval=$with_openssl; with_openssl_directory=${withval}
16415 fi
16416
16417
16418 if test "x$with_openssl_directory" != "x"; then
16419         OPENSSL_LIBS="-lssl -lcrypto"
16420         OPENSSL_INC=""
16421
16422         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16423                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16424                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16425         fi
16426
16427         saved_LIBS="${LIBS}"
16428         saved_CFLAGS="${CFLAGS}"
16429         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16430         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16431
16432         cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438  #include <openssl/ssl.h>
16439 int
16440 main ()
16441 {
16442  CRYPTO_set_id_callback(NULL);
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (ac_try="$ac_link"
16449 case "(($ac_try" in
16450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451   *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454   (eval "$ac_link") 2>conftest.er1
16455   ac_status=$?
16456   grep -v '^ *+' conftest.er1 >conftest.err
16457   rm -f conftest.er1
16458   cat conftest.err >&5
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } && {
16461          test -z "$ac_c_werror_flag" ||
16462          test ! -s conftest.err
16463        } && test -s conftest$ac_exeext &&
16464        $as_test_x conftest$ac_exeext; then
16465
16466                         support_tls="yes"
16467                         support_crypto="yes"
16468
16469 else
16470   echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16472
16473          support_tls="no"
16474
16475 fi
16476
16477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16478       conftest$ac_exeext conftest.$ac_ext
16479
16480         cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h.  */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h.  */
16486  #include <openssl/evp.h>
16487 int
16488 main ()
16489 {
16490  EVP_sha512();
16491   ;
16492   return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest.$ac_objext conftest$ac_exeext
16496 if { (ac_try="$ac_link"
16497 case "(($ac_try" in
16498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499   *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502   (eval "$ac_link") 2>conftest.er1
16503   ac_status=$?
16504   grep -v '^ *+' conftest.er1 >conftest.err
16505   rm -f conftest.er1
16506   cat conftest.err >&5
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); } && {
16509          test -z "$ac_c_werror_flag" ||
16510          test ! -s conftest.err
16511        } && test -s conftest$ac_exeext &&
16512        $as_test_x conftest$ac_exeext; then
16513    ac_cv_openssl_sha2="yes"
16514 else
16515   echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16517
16518          ac_cv_openssl_sha2="no"
16519
16520 fi
16521
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523       conftest$ac_exeext conftest.$ac_ext
16524
16525         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16526         # implementation, presumably for export reasons. If 192bit AES
16527         # is available, we assume that we're running with a 'non-export'
16528         # openssl library.
16529         cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h.  */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h.  */
16535  #include <openssl/evp.h>
16536 int
16537 main ()
16538 {
16539  EVP_aes_192_cbc();
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_link") 2>conftest.er1
16552   ac_status=$?
16553   grep -v '^ *+' conftest.er1 >conftest.err
16554   rm -f conftest.er1
16555   cat conftest.err >&5
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); } && {
16558          test -z "$ac_c_werror_flag" ||
16559          test ! -s conftest.err
16560        } && test -s conftest$ac_exeext &&
16561        $as_test_x conftest$ac_exeext; then
16562    ac_cv_openssl_export="no"
16563 else
16564   echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567          ac_cv_openssl_export="yes"
16568
16569 fi
16570
16571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16572       conftest$ac_exeext conftest.$ac_ext
16573
16574         LIBS="${saved_LIBS}"
16575         CFLAGS="${saved_CFLAGS}"
16576
16577         if test "$support_tls" = "yes"; then
16578
16579 cat >>confdefs.h <<\_ACEOF
16580 #define HAVE_OPENSSL 1
16581 _ACEOF
16582
16583
16584 cat >>confdefs.h <<\_ACEOF
16585 #define HAVE_TLS 1
16586 _ACEOF
16587
16588
16589 cat >>confdefs.h <<\_ACEOF
16590 #define HAVE_CRYPTO 1
16591 _ACEOF
16592
16593         fi
16594
16595         if test "$ac_cv_openssl_sha2" = "yes"; then
16596
16597 cat >>confdefs.h <<\_ACEOF
16598 #define HAVE_SHA2 1
16599 _ACEOF
16600
16601         fi
16602
16603         if test "$ac_cv_openssl_export" = "yes"; then
16604
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16607 _ACEOF
16608
16609         fi
16610 else
16611         support_tls="no"
16612         support_crypto="no"
16613         OPENSSL_LIBS=""
16614         OPENSSL_INC=""
16615 fi
16616
16617 { echo "$as_me:$LINENO: result: $support_tls" >&5
16618 echo "${ECHO_T}$support_tls" >&6; }
16619
16620
16621
16622
16623 # -----------------------------------------------------------
16624 # dlopen is needed for plugins
16625 # -----------------------------------------------------------
16626 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16627 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16628 if test "${ac_cv_search_dlopen+set}" = set; then
16629   echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631   ac_func_search_save_LIBS=$LIBS
16632 cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638
16639 /* Override any GCC internal prototype to avoid an error.
16640    Use char because int might match the return type of a GCC
16641    builtin and then its argument prototype would still apply.  */
16642 #ifdef __cplusplus
16643 extern "C"
16644 #endif
16645 char dlopen ();
16646 int
16647 main ()
16648 {
16649 return dlopen ();
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 for ac_lib in '' dl; do
16655   if test -z "$ac_lib"; then
16656     ac_res="none required"
16657   else
16658     ac_res=-l$ac_lib
16659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16660   fi
16661   rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_link") 2>conftest.er1
16669   ac_status=$?
16670   grep -v '^ *+' conftest.er1 >conftest.err
16671   rm -f conftest.er1
16672   cat conftest.err >&5
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); } && {
16675          test -z "$ac_c_werror_flag" ||
16676          test ! -s conftest.err
16677        } && test -s conftest$ac_exeext &&
16678        $as_test_x conftest$ac_exeext; then
16679   ac_cv_search_dlopen=$ac_res
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684
16685 fi
16686
16687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16688       conftest$ac_exeext
16689   if test "${ac_cv_search_dlopen+set}" = set; then
16690   break
16691 fi
16692 done
16693 if test "${ac_cv_search_dlopen+set}" = set; then
16694   :
16695 else
16696   ac_cv_search_dlopen=no
16697 fi
16698 rm conftest.$ac_ext
16699 LIBS=$ac_func_search_save_LIBS
16700 fi
16701 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16702 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16703 ac_res=$ac_cv_search_dlopen
16704 if test "$ac_res" != no; then
16705   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16706
16707 fi
16708
16709
16710 # ------------------------------------------
16711 # Where to place working dir
16712 # ------------------------------------------
16713 working_dir=`eval echo ${prefix}/var/bacula/working`
16714
16715 # Check whether --with-working-dir was given.
16716 if test "${with_working_dir+set}" = set; then
16717   withval=$with_working_dir;
16718        if test "x$withval" != "xno" ; then
16719               working_dir=$withval
16720        fi
16721
16722
16723 fi
16724
16725
16726
16727
16728 # ------------------------------------------------------------------
16729 # If the user has not set archivedir, we set our default as /tmp
16730 # ------------------------------------------------------------------
16731 archive_dir=/tmp
16732
16733 # Check whether --with-archivedir was given.
16734 if test "${with_archivedir+set}" = set; then
16735   withval=$with_archivedir;
16736        if test "x$withval" != "xno" ; then
16737               archivedir=$withval
16738        fi
16739
16740
16741 fi
16742
16743
16744
16745
16746
16747
16748 # ------------------------------------------
16749 # Where to place scriptdir (script files)
16750 # ------------------------------------------
16751 scriptdir=`eval echo ${sysconfdir}`
16752
16753 # Check whether --with-scriptdir was given.
16754 if test "${with_scriptdir+set}" = set; then
16755   withval=$with_scriptdir;
16756        if test "x$withval" != "xno" ; then
16757               scriptdir=$withval
16758        fi
16759
16760
16761 fi
16762
16763
16764
16765
16766
16767 # ------------------------------------------
16768 # Where to send dump email
16769 # ------------------------------------------
16770 dump_email=root@localhost
16771
16772 # Check whether --with-dump-email was given.
16773 if test "${with_dump_email+set}" = set; then
16774   withval=$with_dump_email;
16775        if test "x$withval" != "xno" ; then
16776               dump_email=$withval
16777        fi
16778
16779
16780 fi
16781
16782
16783
16784
16785 # ------------------------------------------
16786 # Where to send job email
16787 # ------------------------------------------
16788 job_email=root@localhost
16789
16790 # Check whether --with-job-email was given.
16791 if test "${with_job_email+set}" = set; then
16792   withval=$with_job_email;
16793        if test "x$withval" != "xno" ; then
16794               job_email=$withval
16795        fi
16796
16797
16798 fi
16799
16800
16801
16802
16803 # ------------------------------------------
16804 # Where to find smtp host
16805 # ------------------------------------------
16806 smtp_host=localhost
16807
16808 # Check whether --with-smtp_host was given.
16809 if test "${with_smtp_host+set}" = set; then
16810   withval=$with_smtp_host;
16811        if test "x$withval" != "xno" ; then
16812               smtp_host=$withval
16813        fi
16814
16815
16816 fi
16817
16818
16819
16820
16821
16822 # ------------------------------------
16823 # Where to place pid files
16824 # ------------------------------------
16825 piddir=/var/run
16826
16827 # Check whether --with-pid-dir was given.
16828 if test "${with_pid_dir+set}" = set; then
16829   withval=$with_pid_dir;
16830         if test "x$withval" != "xno" ; then
16831             piddir=$withval
16832         fi
16833
16834
16835 fi
16836
16837
16838 cat >>confdefs.h <<_ACEOF
16839 #define _PATH_BACULA_PIDDIR "$piddir"
16840 _ACEOF
16841
16842
16843
16844
16845 # ------------------------------------
16846 # Where to place subsys "lock file"
16847 # ------------------------------------
16848 subsysdir=/var/run/subsys
16849 if test -d /var/run/subsys; then
16850    subsysdir=/var/run/subsys
16851 elif test -d /var/lock/subsys; then
16852    subsysdir=/var/lock/subsys
16853 else
16854    subsysdir=/var/run/subsys
16855 fi
16856
16857 # Check whether --with-subsys-dir was given.
16858 if test "${with_subsys_dir+set}" = set; then
16859   withval=$with_subsys_dir;
16860         if test "x$withval" != "xno" ; then
16861             subsysdir=$withval
16862         fi
16863
16864
16865 fi
16866
16867
16868
16869
16870
16871
16872 # ------------------------------------
16873 # Where to start assigning ports
16874 # ------------------------------------
16875 baseport=9101
16876
16877 # Check whether --with-baseport was given.
16878 if test "${with_baseport+set}" = set; then
16879   withval=$with_baseport;
16880         if test "x$withval" != "xno" ; then
16881              baseport=$withval
16882         fi
16883
16884
16885 fi
16886
16887
16888
16889 dir_port=`expr $baseport`
16890 fd_port=`expr $baseport + 1`
16891 sd_port=`expr $fd_port + 1`
16892
16893
16894
16895
16896
16897
16898 # ------------------------------------------
16899 # Generate passwords
16900 # ------------------------------------------
16901 dir_password=
16902
16903 # Check whether --with-dir-password was given.
16904 if test "${with_dir_password+set}" = set; then
16905   withval=$with_dir_password;
16906        if test "x$withval" != "xno" ; then
16907            dir_password=$withval
16908        fi
16909
16910
16911 fi
16912
16913
16914 if test "x$dir_password" = "x" ; then
16915    if test "x$OPENSSL" = "xnone" ; then
16916       key=`autoconf/randpass 33`
16917    else
16918       key=`openssl rand -base64 33`
16919    fi
16920    dir_password=$key
16921 fi
16922
16923 fd_password=
16924
16925 # Check whether --with-fd-password was given.
16926 if test "${with_fd_password+set}" = set; then
16927   withval=$with_fd_password;
16928        if test "x$withval" != "xno" ; then
16929            fd_password=$withval
16930        fi
16931
16932
16933 fi
16934
16935
16936 if test "x$fd_password" = "x" ; then
16937    if test "x$OPENSSL" = "xnone" ; then
16938       key=`autoconf/randpass 37`
16939    else
16940       key=`openssl rand -base64 33`
16941    fi
16942    fd_password=$key
16943 fi
16944
16945 sd_password=
16946
16947 # Check whether --with-sd-password was given.
16948 if test "${with_sd_password+set}" = set; then
16949   withval=$with_sd_password;
16950        if test "x$withval" != "xno" ; then
16951            sd_password=$withval
16952        fi
16953
16954
16955 fi
16956
16957
16958 if test "x$sd_password" = "x" ; then
16959    if test "x$OPENSSL" = "xnone" ; then
16960       key=`autoconf/randpass 41`
16961    else
16962       key=`openssl rand -base64 33`
16963    fi
16964    sd_password=$key
16965 fi
16966
16967 mon_dir_password=
16968
16969 # Check whether --with-mon-dir-password was given.
16970 if test "${with_mon_dir_password+set}" = set; then
16971   withval=$with_mon_dir_password;
16972        if test "x$withval" != "xno" ; then
16973            mon_dir_password=$withval
16974        fi
16975
16976
16977 fi
16978
16979
16980 if test "x$mon_dir_password" = "x" ; then
16981    if test "x$OPENSSL" = "xnone" ; then
16982       key=`autoconf/randpass 33`
16983    else
16984       key=`openssl rand -base64 33`
16985    fi
16986    mon_dir_password=$key
16987 fi
16988
16989 mon_fd_password=
16990
16991 # Check whether --with-mon-fd-password was given.
16992 if test "${with_mon_fd_password+set}" = set; then
16993   withval=$with_mon_fd_password;
16994        if test "x$withval" != "xno" ; then
16995            mon_fd_password=$withval
16996        fi
16997
16998
16999 fi
17000
17001
17002 if test "x$mon_fd_password" = "x" ; then
17003    if test "x$OPENSSL" = "xnone" ; then
17004       key=`autoconf/randpass 37`
17005    else
17006       key=`openssl rand -base64 33`
17007    fi
17008    mon_fd_password=$key
17009 fi
17010
17011 mon_sd_password=
17012
17013 # Check whether --with-mon-sd-password was given.
17014 if test "${with_mon_sd_password+set}" = set; then
17015   withval=$with_mon_sd_password;
17016        if test "x$withval" != "xno" ; then
17017            mon_sd_password=$withval
17018        fi
17019
17020
17021 fi
17022
17023
17024 if test "x$mon_sd_password" = "x" ; then
17025    if test "x$OPENSSL" = "xnone" ; then
17026       key=`autoconf/randpass 41`
17027    else
17028       key=`openssl rand -base64 33`
17029    fi
17030    mon_sd_password=$key
17031 fi
17032
17033
17034
17035
17036
17037
17038
17039
17040 #
17041 # Pickup any database name
17042 #
17043 db_name=bacula
17044
17045 # Check whether --with-db_name was given.
17046 if test "${with_db_name+set}" = set; then
17047   withval=$with_db_name;
17048         if test "x$withval" != "x" ; then
17049              db_name=$withval
17050         fi
17051
17052
17053 fi
17054
17055
17056
17057 db_user=bacula
17058
17059 # Check whether --with-db_user was given.
17060 if test "${with_db_user+set}" = set; then
17061   withval=$with_db_user;
17062         if test "x$withval" != "x" ; then
17063              db_user=$withval
17064         fi
17065
17066
17067 fi
17068
17069
17070
17071 db_password=
17072
17073 # Check whether --with-db_password was given.
17074 if test "${with_db_password+set}" = set; then
17075   withval=$with_db_password;
17076         if test "x$withval" != "x" ; then
17077              db_password=$withval
17078         fi
17079
17080
17081 fi
17082
17083
17084
17085 #
17086 # Pickup a database port
17087 #
17088 db_port=" "
17089
17090 # Check whether --with-db_port was given.
17091 if test "${with_db_port+set}" = set; then
17092   withval=$with_db_port;
17093         if test "x$withval" != "x" ; then
17094              db_port=$withval
17095         fi
17096
17097
17098 fi
17099
17100
17101
17102 #
17103 # Handle users and groups for each daemon
17104 #
17105 dir_user=
17106
17107 # Check whether --with-dir_user was given.
17108 if test "${with_dir_user+set}" = set; then
17109   withval=$with_dir_user;
17110         if test "x$withval" != "x" ; then
17111              dir_user=$withval
17112         fi
17113
17114
17115 fi
17116
17117
17118 dir_group=
17119
17120 # Check whether --with-dir_group was given.
17121 if test "${with_dir_group+set}" = set; then
17122   withval=$with_dir_group;
17123         if test "x$withval" != "x" ; then
17124              dir_group=$withval
17125         fi
17126
17127
17128 fi
17129
17130
17131 sd_user=
17132
17133 # Check whether --with-sd_user was given.
17134 if test "${with_sd_user+set}" = set; then
17135   withval=$with_sd_user;
17136         if test "x$withval" != "x" ; then
17137              sd_user=$withval
17138         fi
17139
17140
17141 fi
17142
17143
17144 sd_group=
17145
17146 # Check whether --with-sd_group was given.
17147 if test "${with_sd_group+set}" = set; then
17148   withval=$with_sd_group;
17149         if test "x$withval" != "x" ; then
17150              sd_group=$withval
17151         fi
17152
17153
17154 fi
17155
17156
17157 fd_user=
17158
17159 # Check whether --with-fd_user was given.
17160 if test "${with_fd_user+set}" = set; then
17161   withval=$with_fd_user;
17162         if test "x$withval" != "x" ; then
17163              fd_user=$withval
17164         fi
17165
17166
17167 fi
17168
17169
17170 fd_group=
17171
17172 # Check whether --with-fd_group was given.
17173 if test "${with_fd_group+set}" = set; then
17174   withval=$with_fd_group;
17175         if test "x$withval" != "x" ; then
17176              fd_group=$withval
17177         fi
17178
17179
17180 fi
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190 #
17191 # allow setting default executable permissions
17192 #
17193 SBINPERM=0754
17194
17195 # Check whether --with-sbin-perm was given.
17196 if test "${with_sbin_perm+set}" = set; then
17197   withval=$with_sbin_perm;
17198         if test "x$withval" != "x" ; then
17199             SBINPERM=$withval
17200         fi
17201
17202
17203 fi
17204
17205
17206
17207
17208 # ------------------------------------------------
17209 # Bacula check for various SQL database engines
17210 # ------------------------------------------------
17211 SQL_LIB=
17212
17213 db_found=no
17214 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17215 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17216
17217 # Check whether --with-postgresql was given.
17218 if test "${with_postgresql+set}" = set; then
17219   withval=$with_postgresql;
17220   if test "$withval" != "no"; then
17221       if test "$db_found" = "yes"; then
17222           { echo "$as_me:$LINENO: result: error" >&5
17223 echo "${ECHO_T}error" >&6; }
17224           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17225 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17226    { (exit 1); exit 1; }; };
17227       fi
17228       if test "$withval" = "yes"; then
17229           PG_CONFIG=`which pg_config`
17230           if test -n "$PG_CONFIG";then
17231               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17232               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17233               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17234           elif test -f /usr/local/include/libpq-fe.h; then
17235               POSTGRESQL_INCDIR=/usr/local/include
17236               if test -d /usr/local/lib64; then
17237                  POSTGRESQL_LIBDIR=/usr/local/lib64
17238               else
17239                  POSTGRESQL_LIBDIR=/usr/local/lib
17240               fi
17241               POSTGRESQL_BINDIR=/usr/local/bin
17242           elif test -f /usr/include/libpq-fe.h; then
17243               POSTGRESQL_INCDIR=/usr/include
17244               if test -d /usr/lib64; then
17245                  POSTGRESQL_LIBDIR=/usr/lib64
17246               else
17247                  POSTGRESQL_LIBDIR=/usr/lib
17248               fi
17249               POSTGRESQL_BINDIR=/usr/bin
17250           elif test -f /usr/include/pgsql/libpq-fe.h; then
17251               POSTGRESQL_INCDIR=/usr/include/pgsql
17252               if test -d /usr/lib64/pgsql; then
17253                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17254               else
17255                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17256               fi
17257               POSTGRESQL_BINDIR=/usr/bin
17258           elif test -f /usr/include/postgresql/libpq-fe.h; then
17259               POSTGRESQL_INCDIR=/usr/include/postgresql
17260               if test -d /usr/lib64/postgresql; then
17261                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17262               else
17263                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17264               fi
17265               POSTGRESQL_BINDIR=/usr/bin
17266           else
17267               { echo "$as_me:$LINENO: result: no" >&5
17268 echo "${ECHO_T}no" >&6; }
17269               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17270 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17271    { (exit 1); exit 1; }; }
17272           fi
17273       elif test -f $withval/include/libpq-fe.h; then
17274           POSTGRESQL_INCDIR=$withval/include
17275           POSTGRESQL_LIBDIR=$withval/lib
17276           POSTGRESQL_BINDIR=$withval/bin
17277       elif test -f $withval/include/postgresql/libpq-fe.h; then
17278           POSTGRESQL_INCDIR=$withval/include/postgresql
17279      if test -d $withval/lib64; then
17280          POSTGRESQL_LIBDIR=$withval/lib64
17281      else
17282          POSTGRESQL_LIBDIR=$withval/lib
17283      fi
17284           POSTGRESQL_BINDIR=$withval/bin
17285       else
17286           { echo "$as_me:$LINENO: result: no" >&5
17287 echo "${ECHO_T}no" >&6; }
17288           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17289 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17290    { (exit 1); exit 1; }; }
17291       fi
17292       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17293       { echo "$as_me:$LINENO: checking for crypt" >&5
17294 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17295 if test "${ac_cv_func_crypt+set}" = set; then
17296   echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298   cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h.  */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h.  */
17304 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17306 #define crypt innocuous_crypt
17307
17308 /* System header to define __stub macros and hopefully few prototypes,
17309     which can conflict with char crypt (); below.
17310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311     <limits.h> exists even on freestanding compilers.  */
17312
17313 #ifdef __STDC__
17314 # include <limits.h>
17315 #else
17316 # include <assert.h>
17317 #endif
17318
17319 #undef crypt
17320
17321 /* Override any GCC internal prototype to avoid an error.
17322    Use char because int might match the return type of a GCC
17323    builtin and then its argument prototype would still apply.  */
17324 #ifdef __cplusplus
17325 extern "C"
17326 #endif
17327 char crypt ();
17328 /* The GNU C library defines this for functions which it implements
17329     to always fail with ENOSYS.  Some functions are actually named
17330     something starting with __ and the normal name is an alias.  */
17331 #if defined __stub_crypt || defined __stub___crypt
17332 choke me
17333 #endif
17334
17335 int
17336 main ()
17337 {
17338 return crypt ();
17339   ;
17340   return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_link") 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } && {
17357          test -z "$ac_c_werror_flag" ||
17358          test ! -s conftest.err
17359        } && test -s conftest$ac_exeext &&
17360        $as_test_x conftest$ac_exeext; then
17361   ac_cv_func_crypt=yes
17362 else
17363   echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366         ac_cv_func_crypt=no
17367 fi
17368
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370       conftest$ac_exeext conftest.$ac_ext
17371 fi
17372 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17373 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17374 if test $ac_cv_func_crypt = yes; then
17375   :
17376 else
17377   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17378 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17379 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17380   echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382   ac_check_lib_save_LIBS=$LIBS
17383 LIBS="-lcrypt  $LIBS"
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390
17391 /* Override any GCC internal prototype to avoid an error.
17392    Use char because int might match the return type of a GCC
17393    builtin and then its argument prototype would still apply.  */
17394 #ifdef __cplusplus
17395 extern "C"
17396 #endif
17397 char crypt ();
17398 int
17399 main ()
17400 {
17401 return crypt ();
17402   ;
17403   return 0;
17404 }
17405 _ACEOF
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_link") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest$ac_exeext &&
17423        $as_test_x conftest$ac_exeext; then
17424   ac_cv_lib_crypt_crypt=yes
17425 else
17426   echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17428
17429         ac_cv_lib_crypt_crypt=no
17430 fi
17431
17432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433       conftest$ac_exeext conftest.$ac_ext
17434 LIBS=$ac_check_lib_save_LIBS
17435 fi
17436 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17437 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17438 if test $ac_cv_lib_crypt_crypt = yes; then
17439   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17440 fi
17441
17442 fi
17443
17444       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17445       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17446       SQL_BINDIR=$POSTGRESQL_BINDIR
17447       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17448
17449       cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_POSTGRESQL 1
17451 _ACEOF
17452
17453       { echo "$as_me:$LINENO: result: yes" >&5
17454 echo "${ECHO_T}yes" >&6; }
17455       db_found=yes
17456       support_postgresql=yes
17457       db_type=PostgreSQL
17458       DB_TYPE=postgresql
17459   else
17460       { echo "$as_me:$LINENO: result: no" >&5
17461 echo "${ECHO_T}no" >&6; }
17462   fi
17463
17464 else
17465
17466   { echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6; }
17468
17469 fi
17470
17471
17472
17473
17474
17475
17476
17477
17478 db_found=no
17479 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17480 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17481
17482 # Check whether --with-mysql was given.
17483 if test "${with_mysql+set}" = set; then
17484   withval=$with_mysql;
17485   if test "$withval" != "no"; then
17486         if test "$withval" = "yes"; then
17487            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17488                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17489                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17490                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17491                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17492                    else
17493                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17494                    fi
17495                    MYSQL_BINDIR=/usr/local/mysql/bin
17496            elif test -f /usr/include/mysql/mysql.h; then
17497                    MYSQL_INCDIR=/usr/include/mysql
17498                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17499                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17500                            MYSQL_LIBDIR=/usr/lib64/mysql
17501                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17502                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17503                            MYSQL_LIBDIR=/usr/lib/mysql
17504                    else
17505                            MYSQL_LIBDIR=/usr/lib
17506                    fi
17507                    MYSQL_BINDIR=/usr/bin
17508            elif test -f /usr/include/mysql.h; then
17509                    MYSQL_INCDIR=/usr/include
17510                    if test -f /usr/lib64/libmysqlclient_r.a \
17511                         -o -f /usr/lib64/libmysqlclient_r.so; then
17512                            MYSQL_LIBDIR=/usr/lib64
17513                    else
17514                            MYSQL_LIBDIR=/usr/lib
17515                    fi
17516                    MYSQL_BINDIR=/usr/bin
17517            elif test -f /usr/local/include/mysql/mysql.h; then
17518                    MYSQL_INCDIR=/usr/local/include/mysql
17519                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17520                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17521                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17522                    else
17523                            MYSQL_LIBDIR=/usr/local/lib/mysql
17524                    fi
17525                    MYSQL_BINDIR=/usr/local/bin
17526            elif test -f /usr/local/include/mysql.h; then
17527                    MYSQL_INCDIR=/usr/local/include
17528                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17529                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17530                            MYSQL_LIBDIR=/usr/local/lib64
17531                    else
17532                            MYSQL_LIBDIR=/usr/local/lib
17533                    fi
17534                    MYSQL_BINDIR=/usr/local/bin
17535            else
17536               { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17538               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17539 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17540    { (exit 1); exit 1; }; }
17541            fi
17542         else
17543            if test -f $withval/include/mysql/mysql.h; then
17544               MYSQL_INCDIR=$withval/include/mysql
17545               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17546                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17547                  MYSQL_LIBDIR=$withval/lib64/mysql
17548               else
17549                  MYSQL_LIBDIR=$withval/lib/mysql
17550                  # Solaris ...
17551                  if test -f $withval/lib/libmysqlclient_r.so; then
17552                     MYSQL_LIBDIR=$withval/lib
17553                  fi
17554               fi
17555               MYSQL_BINDIR=$withval/bin
17556            elif test -f $withval/include/mysql.h; then
17557               MYSQL_INCDIR=$withval/include
17558               if test -f $withval/lib64/libmysqlclient_r.a \
17559                    -o -f $withval/lib64/libmysqlclient_r.so; then
17560                  MYSQL_LIBDIR=$withval/lib64
17561               else
17562                  MYSQL_LIBDIR=$withval/lib
17563               fi
17564               MYSQL_BINDIR=$withval/bin
17565            else
17566               { echo "$as_me:$LINENO: result: no" >&5
17567 echo "${ECHO_T}no" >&6; }
17568               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17569 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17570    { (exit 1); exit 1; }; }
17571            fi
17572         fi
17573     SQL_INCLUDE=-I$MYSQL_INCDIR
17574     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17575          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17576        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17577        cat >>confdefs.h <<\_ACEOF
17578 #define HAVE_THREAD_SAFE_MYSQL 1
17579 _ACEOF
17580
17581     fi
17582     SQL_BINDIR=$MYSQL_BINDIR
17583     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17584
17585     cat >>confdefs.h <<\_ACEOF
17586 #define HAVE_MYSQL 1
17587 _ACEOF
17588
17589     { echo "$as_me:$LINENO: result: yes" >&5
17590 echo "${ECHO_T}yes" >&6; }
17591     db_found=yes
17592     support_mysql=yes
17593     db_type=MySQL
17594     DB_TYPE=mysql
17595
17596   else
17597         { echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6; }
17599   fi
17600
17601
17602 fi
17603
17604
17605
17606 # Check whether --with-embedded-mysql was given.
17607 if test "${with_embedded_mysql+set}" = set; then
17608   withval=$with_embedded_mysql;
17609   if test "$withval" != "no"; then
17610         if test "$withval" = "yes"; then
17611                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17612                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17613                         if test -d /usr/local/mysql/lib64/mysql; then
17614                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17615                         else
17616                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17617                         fi
17618                         MYSQL_BINDIR=/usr/local/mysql/bin
17619                 elif test -f /usr/include/mysql/mysql.h; then
17620                         MYSQL_INCDIR=/usr/include/mysql
17621                         if test -d /usr/lib64/mysql; then
17622                                 MYSQL_LIBDIR=/usr/lib64/mysql
17623                         else
17624                                 MYSQL_LIBDIR=/usr/lib/mysql
17625                         fi
17626                         MYSQL_BINDIR=/usr/bin
17627                 elif test -f /usr/include/mysql.h; then
17628                         MYSQL_INCDIR=/usr/include
17629                         if test -d /usr/lib64; then
17630                                 MYSQL_LIBDIR=/usr/lib64
17631                         else
17632                                 MYSQL_LIBDIR=/usr/lib
17633                         fi
17634                         MYSQL_BINDIR=/usr/bin
17635                 elif test -f /usr/local/include/mysql/mysql.h; then
17636                         MYSQL_INCDIR=/usr/local/include/mysql
17637                         if test -d /usr/local/lib64/mysql; then
17638                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17639                         else
17640                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17641                         fi
17642                         MYSQL_BINDIR=/usr/local/bin
17643                 elif test -f /usr/local/include/mysql.h; then
17644                         MYSQL_INCDIR=/usr/local/include
17645                         if test -d /usr/local/lib64; then
17646                                 MYSQL_LIBDIR=/usr/local/lib64
17647                         else
17648                                 MYSQL_LIBDIR=/usr/local/lib
17649                         fi
17650                         MYSQL_BINDIR=/usr/local/bin
17651                 else
17652                    { echo "$as_me:$LINENO: result: no" >&5
17653 echo "${ECHO_T}no" >&6; }
17654                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17655 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17656    { (exit 1); exit 1; }; }
17657                 fi
17658         else
17659                 if test -f $withval/include/mysql/mysql.h; then
17660                         MYSQL_INCDIR=$withval/include/mysql
17661                         if test -d $withval/lib64/mysql; then
17662                                 MYSQL_LIBDIR=$withval/lib64/mysql
17663                         else
17664                                 MYSQL_LIBDIR=$withval/lib/mysql
17665                         fi
17666                         MYSQL_BINDIR=$withval/bin
17667                 elif test -f $withval/include/mysql.h; then
17668                         MYSQL_INCDIR=$withval/include
17669                         if test -d $withval/lib64; then
17670                                 MYSQL_LIBDIR=$withval/lib64
17671                         else
17672                                 MYSQL_LIBDIR=$withval/lib
17673                         fi
17674                         MYSQL_BINDIR=$withval/bin
17675                 else
17676                    { echo "$as_me:$LINENO: result: no" >&5
17677 echo "${ECHO_T}no" >&6; }
17678                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17679 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17680    { (exit 1); exit 1; }; }
17681                 fi
17682         fi
17683     SQL_INCLUDE=-I$MYSQL_INCDIR
17684     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17685     SQL_BINDIR=$MYSQL_BINDIR
17686     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17687
17688     cat >>confdefs.h <<\_ACEOF
17689 #define HAVE_MYSQL 1
17690 _ACEOF
17691
17692     cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_EMBEDDED_MYSQL 1
17694 _ACEOF
17695
17696     { echo "$as_me:$LINENO: result: yes" >&5
17697 echo "${ECHO_T}yes" >&6; }
17698     db_found=yes
17699     support_mysql=yes
17700     db_type=MySQL
17701     DB_TYPE=mysql
17702
17703   else
17704         { echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6; }
17706   fi
17707
17708
17709 fi
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720 db_found=no
17721 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17722 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17723
17724 # Check whether --with-sqlite3 was given.
17725 if test "${with_sqlite3+set}" = set; then
17726   withval=$with_sqlite3;
17727   if test "$withval" != "no"; then
17728      if test "$withval" = "yes"; then
17729         if test -f /usr/local/include/sqlite3.h; then
17730            SQLITE_INCDIR=/usr/local/include
17731            if test -d /usr/local/lib64; then
17732               SQLITE_LIBDIR=/usr/local/lib64
17733            else
17734               SQLITE_LIBDIR=/usr/local/lib
17735            fi
17736            SQLITE_BINDIR=/usr/local/bin
17737         elif test -f /usr/include/sqlite3.h; then
17738            SQLITE_INCDIR=/usr/include
17739            if test -d /usr/lib64; then
17740               SQLITE_LIBDIR=/usr/lib64
17741            else
17742               SQLITE_LIBDIR=/usr/lib
17743            fi
17744            SQLITE_BINDIR=/usr/bin
17745         elif test -f $prefix/include/sqlite3.h; then
17746            SQLITE_INCDIR=$prefix/include
17747            if test -d $prefix/lib64; then
17748               SQLITE_LIBDIR=$prefix/lib64
17749            else
17750               SQLITE_LIBDIR=$prefix/lib
17751            fi
17752            SQLITE_BINDIR=$prefix/bin
17753         else
17754            { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17756            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17757 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17758    { (exit 1); exit 1; }; }
17759         fi
17760      else
17761         if test -f $withval/sqlite3.h; then
17762            SQLITE_INCDIR=$withval
17763            SQLITE_LIBDIR=$withval
17764            SQLITE_BINDIR=$withval
17765         elif test -f $withval/include/sqlite3.h; then
17766            SQLITE_INCDIR=$withval/include
17767            if test -d $withval/lib64; then
17768               SQLITE_LIBDIR=$withval/lib64
17769            else
17770               SQLITE_LIBDIR=$withval/lib
17771            fi
17772            SQLITE_BINDIR=$withval/bin
17773         else
17774            { echo "$as_me:$LINENO: result: no" >&5
17775 echo "${ECHO_T}no" >&6; }
17776            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17777 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17778    { (exit 1); exit 1; }; }
17779         fi
17780      fi
17781      SQL_INCLUDE=-I$SQLITE_INCDIR
17782      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17783      SQL_BINDIR=$SQLITE_BINDIR
17784      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17785
17786      cat >>confdefs.h <<\_ACEOF
17787 #define HAVE_SQLITE3 1
17788 _ACEOF
17789
17790      { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17792      db_found=yes
17793      support_sqlite3=yes
17794      db_type=SQLite3
17795      DB_TYPE=sqlite3
17796
17797   else
17798      { echo "$as_me:$LINENO: result: no" >&5
17799 echo "${ECHO_T}no" >&6; }
17800   fi
17801
17802 else
17803
17804   { echo "$as_me:$LINENO: result: no" >&5
17805 echo "${ECHO_T}no" >&6; }
17806
17807 fi
17808
17809
17810
17811
17812
17813
17814
17815
17816 db_found=no
17817 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17818 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17819
17820 # Check whether --with-sqlite was given.
17821 if test "${with_sqlite+set}" = set; then
17822   withval=$with_sqlite;
17823   if test "$withval" != "no"; then
17824      if test "$withval" = "yes"; then
17825         if test -f /usr/local/include/sqlite.h; then
17826            SQLITE_INCDIR=/usr/local/include
17827            if test -d /usr/local/lib64; then
17828               SQLITE_LIBDIR=/usr/local/lib64
17829            else
17830               SQLITE_LIBDIR=/usr/local/lib
17831            fi
17832            SQLITE_BINDIR=/usr/local/bin
17833         elif test -f /usr/include/sqlite.h; then
17834            SQLITE_INCDIR=/usr/include
17835            if test -d /usr/lib64; then
17836               SQLITE_LIBDIR=/usr/lib64
17837            else
17838               SQLITE_LIBDIR=/usr/lib
17839            fi
17840            SQLITE_BINDIR=/usr/bin
17841         elif test -f $prefix/include/sqlite.h; then
17842            SQLITE_INCDIR=$prefix/include
17843            if test -d $prefix/lib64; then
17844               SQLITE_LIBDIR=$prefix/lib64
17845            else
17846               SQLITE_LIBDIR=$prefix/lib
17847            fi
17848            SQLITE_BINDIR=$prefix/bin
17849         else
17850            { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17852            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17853 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17854    { (exit 1); exit 1; }; }
17855         fi
17856      else
17857         if test -f $withval/sqlite.h; then
17858            SQLITE_INCDIR=$withval
17859            SQLITE_LIBDIR=$withval
17860            SQLITE_BINDIR=$withval
17861         elif test -f $withval/include/sqlite.h; then
17862            SQLITE_INCDIR=$withval/include
17863            if test -d $withval/lib64; then
17864               SQLITE_LIBDIR=$withval/lib64
17865            else
17866               SQLITE_LIBDIR=$withval/lib
17867            fi
17868            SQLITE_BINDIR=$withval/bin
17869         else
17870            { echo "$as_me:$LINENO: result: no" >&5
17871 echo "${ECHO_T}no" >&6; }
17872            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17873 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17874    { (exit 1); exit 1; }; }
17875         fi
17876      fi
17877      SQL_INCLUDE=-I$SQLITE_INCDIR
17878      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17879      SQL_BINDIR=$SQLITE_BINDIR
17880      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17881
17882      cat >>confdefs.h <<\_ACEOF
17883 #define HAVE_SQLITE 1
17884 _ACEOF
17885
17886      { echo "$as_me:$LINENO: result: yes" >&5
17887 echo "${ECHO_T}yes" >&6; }
17888      db_found=yes
17889      support_sqlite=yes
17890      db_type=SQLite
17891      DB_TYPE=sqlite
17892
17893   else
17894      { echo "$as_me:$LINENO: result: no" >&5
17895 echo "${ECHO_T}no" >&6; }
17896   fi
17897
17898 else
17899
17900   { echo "$as_me:$LINENO: result: no" >&5
17901 echo "${ECHO_T}no" >&6; }
17902
17903 fi
17904
17905
17906
17907
17908
17909
17910
17911
17912 db_found=no
17913 { echo "$as_me:$LINENO: checking for DBI support" >&5
17914 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17915
17916 # Check whether --with-dbi was given.
17917 if test "${with_dbi+set}" = set; then
17918   withval=$with_dbi;
17919   if test "$withval" != "no"; then
17920      if test "$withval" = "yes"; then
17921         if test -f /usr/local/include/dbi/dbi.h; then
17922            DBI_INCDIR=/usr/local/dbi/include
17923            if test -d /usr/local/lib64; then
17924               DBI_LIBDIR=/usr/local/lib64
17925            else
17926               DBI_LIBDIR=/usr/local/lib
17927            fi
17928            DBI_BINDIR=/usr/local/bin
17929         elif test -f /usr/include/dbi/dbi.h; then
17930            DBI_INCDIR=/usr/include
17931            if test -d /usr/lib64; then
17932               DBI_LIBDIR=/usr/lib64
17933            else
17934               DBI_LIBDIR=/usr/lib
17935            fi
17936            DBI_BINDIR=/usr/bin
17937         elif test -f $prefix/include/dbi/dbi.h; then
17938            DBI_INCDIR=$prefix/include
17939            if test -d $prefix/lib64; then
17940               DBI_LIBDIR=$prefix/lib64
17941            else
17942               DBI_LIBDIR=$prefix/lib
17943            fi
17944            DBI_BINDIR=$prefix/bin
17945         else
17946            { echo "$as_me:$LINENO: result: no" >&5
17947 echo "${ECHO_T}no" >&6; }
17948            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17949 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17950    { (exit 1); exit 1; }; }
17951         fi
17952         if test -d /usr/local/lib/dbd; then
17953            DRIVERDIR=/usr/local/lib/dbd
17954            if test -d /usr/local/lib64/dbd; then
17955               DRIVERDIR=/usr/local/lib64/dbd
17956            else
17957               DRIVERDIR=/usr/local/lib/dbd
17958            fi
17959         elif test -d /usr/lib/dbd; then
17960            DRIVERDIR=/usr/lib/dbd
17961            if test -d /usr/lib64/dbd; then
17962               DRIVERDIR=/usr/lib64/dbd
17963            else
17964               DRIVERDIR=/usr/lib/dbd
17965            fi
17966         elif test -d $prefix/lib/dbd; then
17967            if test -d $prefix/lib64/dbd; then
17968               DRIVERDIR=$prefix/lib64/dbd
17969            else
17970               DRIVERDIR=$prefix/lib/dbd
17971            fi
17972         else
17973            { echo "$as_me:$LINENO: result: no" >&5
17974 echo "${ECHO_T}no" >&6; }
17975            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17976 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17977    { (exit 1); exit 1; }; }
17978         fi
17979      else
17980         if test -f $withval/dbi.h; then
17981            DBI_INCDIR=$withval
17982            DBI_LIBDIR=$withval
17983            DBI_BINDIR=$withval
17984         elif test -f $withval/include/dbi/dbi.h; then
17985            DBI_INCDIR=$withval/include
17986            if test -d $withval/lib64; then
17987               DBI_LIBDIR=$withval/lib64
17988            else
17989               DBI_LIBDIR=$withval/lib
17990            fi
17991            DBI_BINDIR=$withval/bin
17992         else
17993            { echo "$as_me:$LINENO: result: no" >&5
17994 echo "${ECHO_T}no" >&6; }
17995            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17996 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17997    { (exit 1); exit 1; }; }
17998         fi
17999         if test -d $withval/dbd; then
18000            DRIVERDIR=$withval/dbd
18001         elif test -d $withval/lib/; then
18002            if test -d $withval/lib64/dbd; then
18003               DRIVERDIR=$withval/lib64/dbd
18004            else
18005               DRIVERDIR=$withval/lib/dbd
18006            fi
18007         else
18008            { echo "$as_me:$LINENO: result: no" >&5
18009 echo "${ECHO_T}no" >&6; }
18010            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
18011 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
18012    { (exit 1); exit 1; }; }
18013         fi
18014      fi
18015      SQL_INCLUDE=-I$DBI_INCDIR
18016      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18017      SQL_BINDIR=$DBI_BINDIR
18018      SQL_LIB=$DBI_LIBDIR/libdbi.a
18019      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18020
18021
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE_DBI 1
18024 _ACEOF
18025
18026      { echo "$as_me:$LINENO: result: yes" >&5
18027 echo "${ECHO_T}yes" >&6; }
18028      db_found=yes
18029      support_dbi=yes
18030      db_type=DBI
18031      DB_TYPE=dbi
18032      uncomment_dbi=" "
18033
18034   else
18035      { echo "$as_me:$LINENO: result: no" >&5
18036 echo "${ECHO_T}no" >&6; }
18037   fi
18038
18039 else
18040
18041   { echo "$as_me:$LINENO: result: no" >&5
18042 echo "${ECHO_T}no" >&6; }
18043
18044 fi
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055 db_found=no
18056 db_prog=no
18057 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18058 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18059
18060 # Check whether --with-dbi-driver was given.
18061 if test "${with_dbi_driver+set}" = set; then
18062   withval=$with_dbi_driver;
18063   if test "$withval" != "no"; then
18064      case $withval in
18065         "mysql")
18066            db_prog="mysql"
18067            if test -f /usr/local/mysql/bin/mysql; then
18068               SQL_BINDIR=/usr/local/mysql/bin
18069               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18070                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18071                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18072               else
18073                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
18074               fi
18075            elif test -f /usr/bin/mysql; then
18076               SQL_BINDIR=/usr/bin
18077               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18078                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18079                   SQL_LIBDIR=/usr/lib64/mysql
18080               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18081                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18082                   SQL_LIBDIR=/usr/lib/mysql
18083               else
18084                   SQL_LIBDIR=/usr/lib
18085               fi
18086            elif test -f /usr/local/bin/mysql; then
18087               SQL_BINDIR=/usr/local/bin
18088               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18089                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18090                   SQL_LIBDIR=/usr/local/lib64/mysql
18091               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18092                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18093                   SQL_LIBDIR=/usr/local/lib/mysql
18094               else
18095                   SQL_LIBDIR=/usr/local/lib
18096               fi
18097            elif test -f $withval/bin/mysql; then
18098               SQL_BINDIR=$withval/bin
18099               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18100                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18101                   SQL_LIBDIR=$withval/lib64/mysql
18102               elif test -f $withval/lib64/libmysqlclient_r.a \
18103                   -o -f $withval/lib64/libmysqlclient_r.so; then
18104                   SQL_LIBDIR=$withval/lib64
18105               elif test -f $withval/lib/libmysqlclient_r.a \
18106                   -o -f $withval/lib/libmysqlclient_r.so; then
18107                   SQL_LIBDIR=$withval/lib/
18108               else
18109                   SQL_LIBDIR=$withval/lib/mysql
18110               fi
18111            else
18112               { echo "$as_me:$LINENO: result: no" >&5
18113 echo "${ECHO_T}no" >&6; }
18114               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18115 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18116    { (exit 1); exit 1; }; }
18117            fi
18118            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18119         ;;
18120         "postgresql")
18121            db_prog="postgresql"
18122            PG_CONFIG=`which pg_config`
18123            if test -n "$PG_CONFIG"; then
18124               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18125               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18126            elif test -f /usr/local/bin/psql; then
18127               SQL_BINDIR=/usr/local/bin
18128               if test -d /usr/local/lib64; then
18129                  SQL_LIBDIR=/usr/local/lib64
18130               else
18131                  SQL_LIBDIR=/usr/local/lib
18132               fi
18133            elif test -f /usr/bin/psql; then
18134               SQL_BINDIR=/usr/local/bin
18135               if test -d /usr/lib64/postgresql; then
18136                  SQL_LIBDIR=/usr/lib64/postgresql
18137               elif test -d /usr/lib/postgresql; then
18138                  SQL_LIBDIR=/usr/lib/postgresql
18139               elif test -d /usr/lib64; then
18140                  SQL_LIBDIR=/usr/lib64
18141               else
18142                  SQL_LIBDIR=/usr/lib
18143               fi
18144            elif test -f $withval/bin/psql; then
18145               SQL_BINDIR=$withval/bin
18146               if test -d $withval/lib64; then
18147                  SQL_LIBDIR=$withval/lib64
18148               else
18149                  SQL_LIBDIR=$withval/lib
18150               fi
18151            else
18152               { echo "$as_me:$LINENO: result: no" >&5
18153 echo "${ECHO_T}no" >&6; }
18154               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18155 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18156    { (exit 1); exit 1; }; }
18157            fi
18158            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18159         ;;
18160         *)
18161            { echo "$as_me:$LINENO: result: no" >&5
18162 echo "${ECHO_T}no" >&6; }
18163            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18164 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18165    { (exit 1); exit 1; }; }
18166         ;;
18167      esac
18168
18169      { echo "$as_me:$LINENO: result: yes" >&5
18170 echo "${ECHO_T}yes" >&6; }
18171      DB_PROG=$db_prog
18172   else
18173      { echo "$as_me:$LINENO: result: no" >&5
18174 echo "${ECHO_T}no" >&6; }
18175   fi
18176
18177 else
18178
18179   { echo "$as_me:$LINENO: result: no" >&5
18180 echo "${ECHO_T}no" >&6; }
18181
18182 fi
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193 # -------------------------------------------
18194 # enable batch attribute DB insert (default on)
18195 # -------------------------------------------
18196 support_batch_insert=no
18197 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18198 pkg=$?
18199 if test $pkg = 0; then
18200    support_batch_insert=yes
18201    # Check whether --enable-batch-insert was given.
18202 if test "${enable_batch_insert+set}" = set; then
18203   enableval=$enable_batch_insert; if test x$enableval = xno; then
18204        support_batch_insert=no
18205       else
18206        support_batch_insert=yes
18207      fi
18208 fi
18209
18210 fi
18211
18212 # Check if postgresql support batch mode
18213 if test x$DB_TYPE = xpostgresql; then
18214    A=`nm $SQL_LIB | grep PQputCopyData`
18215    pkg=$?
18216    if test $pkg != 0; then
18217       support_batch_insert=no
18218    fi
18219 fi
18220
18221 if test x$DB_TYPE = xdbi; then
18222    DB_TYPE=$DB_PROG
18223    db_type=$DB_PROG
18224    pkg=1
18225    # Check for batch insert
18226    if test $DB_PROG = postgresql; then
18227       A=`nm $DB_PROG_LIB | grep PQputCopyData`
18228       pkg=$?
18229    fi
18230
18231    if test $DB_PROG = mysql; then
18232       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18233       pkg=$?
18234    fi
18235
18236    if test $pkg = 0; then
18237       # Check whether --enable-batch-insert was given.
18238 if test "${enable_batch_insert+set}" = set; then
18239   enableval=$enable_batch_insert; if test x$enableval = xno; then
18240          support_batch_insert=no
18241        else
18242          support_batch_insert=yes
18243       fi
18244 fi
18245
18246    fi
18247 else
18248 # If dbi was not chosen, let the comment in file
18249 uncomment_dbi="#"
18250 fi
18251
18252
18253
18254 if test $support_batch_insert = yes ; then
18255
18256 cat >>confdefs.h <<\_ACEOF
18257 #define HAVE_BATCH_FILE_INSERT 1
18258 _ACEOF
18259
18260 fi
18261
18262
18263 cat >>confdefs.h <<\_ACEOF
18264 #define PROTOTYPES 1
18265 _ACEOF
18266
18267
18268 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18269     if test -z "$CCOPTS"; then
18270         CCOPTS='-g -O2 -Wall'
18271     fi
18272     CFLAGS="$CCOPTS"
18273 fi
18274
18275
18276
18277
18278 largefile_support="no"
18279
18280    # Check whether --enable-largefile was given.
18281 if test "${enable_largefile+set}" = set; then
18282   enableval=$enable_largefile;
18283 fi
18284
18285    if test "$enable_largefile" != no; then
18286      if test -n "$ac_tool_prefix"; then
18287   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18288 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18291 if test "${ac_cv_prog_GETCONF+set}" = set; then
18292   echo $ECHO_N "(cached) $ECHO_C" >&6
18293 else
18294   if test -n "$GETCONF"; then
18295   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18296 else
18297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18299 do
18300   IFS=$as_save_IFS
18301   test -z "$as_dir" && as_dir=.
18302   for ac_exec_ext in '' $ac_executable_extensions; do
18303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18304     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18306     break 2
18307   fi
18308 done
18309 done
18310 IFS=$as_save_IFS
18311
18312 fi
18313 fi
18314 GETCONF=$ac_cv_prog_GETCONF
18315 if test -n "$GETCONF"; then
18316   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18317 echo "${ECHO_T}$GETCONF" >&6; }
18318 else
18319   { echo "$as_me:$LINENO: result: no" >&5
18320 echo "${ECHO_T}no" >&6; }
18321 fi
18322
18323
18324 fi
18325 if test -z "$ac_cv_prog_GETCONF"; then
18326   ac_ct_GETCONF=$GETCONF
18327   # Extract the first word of "getconf", so it can be a program name with args.
18328 set dummy getconf; ac_word=$2
18329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18331 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334   if test -n "$ac_ct_GETCONF"; then
18335   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18336 else
18337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18338 for as_dir in $PATH
18339 do
18340   IFS=$as_save_IFS
18341   test -z "$as_dir" && as_dir=.
18342   for ac_exec_ext in '' $ac_executable_extensions; do
18343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18344     ac_cv_prog_ac_ct_GETCONF="getconf"
18345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18346     break 2
18347   fi
18348 done
18349 done
18350 IFS=$as_save_IFS
18351
18352 fi
18353 fi
18354 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18355 if test -n "$ac_ct_GETCONF"; then
18356   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18357 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18358 else
18359   { echo "$as_me:$LINENO: result: no" >&5
18360 echo "${ECHO_T}no" >&6; }
18361 fi
18362
18363   if test "x$ac_ct_GETCONF" = x; then
18364     GETCONF=""
18365   else
18366     case $cross_compiling:$ac_tool_warned in
18367 yes:)
18368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18369 whose name does not start with the host triplet.  If you think this
18370 configuration is useful to you, please write to autoconf@gnu.org." >&5
18371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18372 whose name does not start with the host triplet.  If you think this
18373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18374 ac_tool_warned=yes ;;
18375 esac
18376     GETCONF=$ac_ct_GETCONF
18377   fi
18378 else
18379   GETCONF="$ac_cv_prog_GETCONF"
18380 fi
18381
18382      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18383 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18384 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18385   echo $ECHO_N "(cached) $ECHO_C" >&6
18386 else
18387   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18388         ac_cv_sys_largefile_CFLAGS=no
18389         case "$host_os" in
18390            # IRIX 6.2 and later require cc -n32.
18391            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18392              if test "$GCC" != yes; then
18393                ac_cv_sys_largefile_CFLAGS=-n32
18394              fi
18395              ac_save_CC="$CC"
18396              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18397              cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403
18404 int
18405 main ()
18406 {
18407
18408   ;
18409   return 0;
18410 }
18411 _ACEOF
18412 rm -f conftest.$ac_objext conftest$ac_exeext
18413 if { (ac_try="$ac_link"
18414 case "(($ac_try" in
18415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416   *) ac_try_echo=$ac_try;;
18417 esac
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419   (eval "$ac_link") 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } && {
18426          test -z "$ac_c_werror_flag" ||
18427          test ! -s conftest.err
18428        } && test -s conftest$ac_exeext &&
18429        $as_test_x conftest$ac_exeext; then
18430   :
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435         ac_cv_sys_largefile_CFLAGS=no
18436 fi
18437
18438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439       conftest$ac_exeext conftest.$ac_ext
18440              CC="$ac_save_CC"
18441            esac
18442       }
18443 fi
18444 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18445 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18446      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18447 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18448 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18449   echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18452         ac_cv_sys_largefile_LDFLAGS=no
18453
18454       }
18455 fi
18456 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18457 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18458      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18459 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18460 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18461   echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18464         ac_cv_sys_largefile_LIBS=no
18465
18466       }
18467 fi
18468 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18469 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18470
18471      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18472        case "$ac_flag" in
18473        no) ;;
18474        -D_FILE_OFFSET_BITS=*) ;;
18475        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18476        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18477        -D?* | -I?*)
18478          case "$ac_flag" in
18479    no) ;;
18480    ?*)
18481      case "$CPPFLAGS" in
18482      '') CPPFLAGS="$ac_flag" ;;
18483      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18484      esac ;;
18485    esac ;;
18486        *)
18487          case "$ac_flag" in
18488    no) ;;
18489    ?*)
18490      case "$CFLAGS" in
18491      '') CFLAGS="$ac_flag" ;;
18492      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18493      esac ;;
18494    esac ;;
18495        esac
18496      done
18497      case "$ac_cv_sys_largefile_LDFLAGS" in
18498    no) ;;
18499    ?*)
18500      case "$LDFLAGS" in
18501      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18502      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18503      esac ;;
18504    esac
18505      case "$ac_cv_sys_largefile_LIBS" in
18506    no) ;;
18507    ?*)
18508      case "$LIBS" in
18509      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18510      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18511      esac ;;
18512    esac
18513      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18514 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18516   echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518   ac_cv_sys_file_offset_bits=no
18519       ac_cv_sys_file_offset_bits=64
18520       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18521         case "$ac_flag" in
18522         -D_FILE_OFFSET_BITS)
18523           ac_cv_sys_file_offset_bits=1 ;;
18524         -D_FILE_OFFSET_BITS=*)
18525           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18526         esac
18527       done
18528
18529 fi
18530 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18531 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18532    if test "$ac_cv_sys_file_offset_bits" != no; then
18533
18534 cat >>confdefs.h <<_ACEOF
18535 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18536 _ACEOF
18537
18538    fi
18539      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18540 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18541 if test "${ac_cv_sys_largefile_source+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   ac_cv_sys_largefile_source=no
18545       ac_cv_sys_largefile_source=1
18546       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18547         case "$ac_flag" in
18548         -D_LARGEFILE_SOURCE)
18549           ac_cv_sys_largefile_source=1 ;;
18550         -D_LARGEFILE_SOURCE=*)
18551           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18552         esac
18553       done
18554
18555 fi
18556 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18557 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18558    if test "$ac_cv_sys_largefile_source" != no; then
18559
18560 cat >>confdefs.h <<_ACEOF
18561 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18562 _ACEOF
18563
18564    fi
18565      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18566 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18567 if test "${ac_cv_sys_large_files+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   ac_cv_sys_large_files=no
18571       ac_cv_sys_large_files=1
18572       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18573         case "$ac_flag" in
18574         -D_LARGE_FILES)
18575           ac_cv_sys_large_files=1 ;;
18576         -D_LARGE_FILES=*)
18577           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18578         esac
18579       done
18580
18581 fi
18582 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18583 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18584    if test "$ac_cv_sys_large_files" != no; then
18585
18586 cat >>confdefs.h <<_ACEOF
18587 #define _LARGE_FILES $ac_cv_sys_large_files
18588 _ACEOF
18589
18590    fi
18591    fi
18592
18593
18594
18595 { echo "$as_me:$LINENO: checking for X" >&5
18596 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18597
18598
18599 # Check whether --with-x was given.
18600 if test "${with_x+set}" = set; then
18601   withval=$with_x;
18602 fi
18603
18604 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18605 if test "x$with_x" = xno; then
18606   # The user explicitly disabled X.
18607   have_x=disabled
18608 else
18609   case $x_includes,$x_libraries in #(
18610     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18611 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18612    { (exit 1); exit 1; }; };; #(
18613     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18614   echo $ECHO_N "(cached) $ECHO_C" >&6
18615 else
18616   # One or both of the vars are not set, and there is no cached value.
18617 ac_x_includes=no ac_x_libraries=no
18618 rm -f -r conftest.dir
18619 if mkdir conftest.dir; then
18620   cd conftest.dir
18621   cat >Imakefile <<'_ACEOF'
18622 incroot:
18623         @echo incroot='${INCROOT}'
18624 usrlibdir:
18625         @echo usrlibdir='${USRLIBDIR}'
18626 libdir:
18627         @echo libdir='${LIBDIR}'
18628 _ACEOF
18629   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18630     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18631     for ac_var in incroot usrlibdir libdir; do
18632       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18633     done
18634     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18635     for ac_extension in a so sl; do
18636       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18637          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18638         ac_im_usrlibdir=$ac_im_libdir; break
18639       fi
18640     done
18641     # Screen out bogus values from the imake configuration.  They are
18642     # bogus both because they are the default anyway, and because
18643     # using them would break gcc on systems where it needs fixed includes.
18644     case $ac_im_incroot in
18645         /usr/include) ac_x_includes= ;;
18646         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18647     esac
18648     case $ac_im_usrlibdir in
18649         /usr/lib | /lib) ;;
18650         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18651     esac
18652   fi
18653   cd ..
18654   rm -f -r conftest.dir
18655 fi
18656
18657 # Standard set of common directories for X headers.
18658 # Check X11 before X11Rn because it is often a symlink to the current release.
18659 ac_x_header_dirs='
18660 /usr/X11/include
18661 /usr/X11R6/include
18662 /usr/X11R5/include
18663 /usr/X11R4/include
18664
18665 /usr/include/X11
18666 /usr/include/X11R6
18667 /usr/include/X11R5
18668 /usr/include/X11R4
18669
18670 /usr/local/X11/include
18671 /usr/local/X11R6/include
18672 /usr/local/X11R5/include
18673 /usr/local/X11R4/include
18674
18675 /usr/local/include/X11
18676 /usr/local/include/X11R6
18677 /usr/local/include/X11R5
18678 /usr/local/include/X11R4
18679
18680 /usr/X386/include
18681 /usr/x386/include
18682 /usr/XFree86/include/X11
18683
18684 /usr/include
18685 /usr/local/include
18686 /usr/unsupported/include
18687 /usr/athena/include
18688 /usr/local/x11r5/include
18689 /usr/lpp/Xamples/include
18690
18691 /usr/openwin/include
18692 /usr/openwin/share/include'
18693
18694 if test "$ac_x_includes" = no; then
18695   # Guess where to find include files, by looking for Xlib.h.
18696   # First, try using that file with no special directory specified.
18697   cat >conftest.$ac_ext <<_ACEOF
18698 /* confdefs.h.  */
18699 _ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h.  */
18703 #include <X11/Xlib.h>
18704 _ACEOF
18705 if { (ac_try="$ac_cpp conftest.$ac_ext"
18706 case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18712   ac_status=$?
18713   grep -v '^ *+' conftest.er1 >conftest.err
18714   rm -f conftest.er1
18715   cat conftest.err >&5
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } >/dev/null && {
18718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18719          test ! -s conftest.err
18720        }; then
18721   # We can compile using X headers with no special include directory.
18722 ac_x_includes=
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727   for ac_dir in $ac_x_header_dirs; do
18728   if test -r "$ac_dir/X11/Xlib.h"; then
18729     ac_x_includes=$ac_dir
18730     break
18731   fi
18732 done
18733 fi
18734
18735 rm -f conftest.err conftest.$ac_ext
18736 fi # $ac_x_includes = no
18737
18738 if test "$ac_x_libraries" = no; then
18739   # Check for the libraries.
18740   # See if we find them without any special options.
18741   # Don't add to $LIBS permanently.
18742   ac_save_LIBS=$LIBS
18743   LIBS="-lX11 $LIBS"
18744   cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h.  */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h.  */
18750 #include <X11/Xlib.h>
18751 int
18752 main ()
18753 {
18754 XrmInitialize ()
18755   ;
18756   return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763   *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766   (eval "$ac_link") 2>conftest.er1
18767   ac_status=$?
18768   grep -v '^ *+' conftest.er1 >conftest.err
18769   rm -f conftest.er1
18770   cat conftest.err >&5
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); } && {
18773          test -z "$ac_c_werror_flag" ||
18774          test ! -s conftest.err
18775        } && test -s conftest$ac_exeext &&
18776        $as_test_x conftest$ac_exeext; then
18777   LIBS=$ac_save_LIBS
18778 # We can link X programs with no special library path.
18779 ac_x_libraries=
18780 else
18781   echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784         LIBS=$ac_save_LIBS
18785 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18786 do
18787   # Don't even attempt the hair of trying to link an X program!
18788   for ac_extension in a so sl; do
18789     if test -r "$ac_dir/libX11.$ac_extension"; then
18790       ac_x_libraries=$ac_dir
18791       break 2
18792     fi
18793   done
18794 done
18795 fi
18796
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798       conftest$ac_exeext conftest.$ac_ext
18799 fi # $ac_x_libraries = no
18800
18801 case $ac_x_includes,$ac_x_libraries in #(
18802   no,* | *,no | *\'*)
18803     # Didn't find X, or a directory has "'" in its name.
18804     ac_cv_have_x="have_x=no";; #(
18805   *)
18806     # Record where we found X for the cache.
18807     ac_cv_have_x="have_x=yes\
18808         ac_x_includes='$ac_x_includes'\
18809         ac_x_libraries='$ac_x_libraries'"
18810 esac
18811 fi
18812 ;; #(
18813     *) have_x=yes;;
18814   esac
18815   eval "$ac_cv_have_x"
18816 fi # $with_x != no
18817
18818 if test "$have_x" != yes; then
18819   { echo "$as_me:$LINENO: result: $have_x" >&5
18820 echo "${ECHO_T}$have_x" >&6; }
18821   no_x=yes
18822 else
18823   # If each of the values was on the command line, it overrides each guess.
18824   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18825   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18826   # Update the cache value to reflect the command line values.
18827   ac_cv_have_x="have_x=yes\
18828         ac_x_includes='$x_includes'\
18829         ac_x_libraries='$x_libraries'"
18830   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18831 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18832 fi
18833
18834 if test "$no_x" = yes; then
18835   # Not all programs may use this symbol, but it does not hurt to define it.
18836
18837 cat >>confdefs.h <<\_ACEOF
18838 #define X_DISPLAY_MISSING 1
18839 _ACEOF
18840
18841   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18842 else
18843   if test -n "$x_includes"; then
18844     X_CFLAGS="$X_CFLAGS -I$x_includes"
18845   fi
18846
18847   # It would also be nice to do this for all -L options, not just this one.
18848   if test -n "$x_libraries"; then
18849     X_LIBS="$X_LIBS -L$x_libraries"
18850     # For Solaris; some versions of Sun CC require a space after -R and
18851     # others require no space.  Words are not sufficient . . . .
18852     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18853 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18854     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18855     ac_xsave_c_werror_flag=$ac_c_werror_flag
18856     ac_c_werror_flag=yes
18857     cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863
18864 int
18865 main ()
18866 {
18867
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (ac_try="$ac_link"
18874 case "(($ac_try" in
18875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876   *) ac_try_echo=$ac_try;;
18877 esac
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879   (eval "$ac_link") 2>conftest.er1
18880   ac_status=$?
18881   grep -v '^ *+' conftest.er1 >conftest.err
18882   rm -f conftest.er1
18883   cat conftest.err >&5
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); } && {
18886          test -z "$ac_c_werror_flag" ||
18887          test ! -s conftest.err
18888        } && test -s conftest$ac_exeext &&
18889        $as_test_x conftest$ac_exeext; then
18890   { echo "$as_me:$LINENO: result: no" >&5
18891 echo "${ECHO_T}no" >&6; }
18892        X_LIBS="$X_LIBS -R$x_libraries"
18893 else
18894   echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897         LIBS="$ac_xsave_LIBS -R $x_libraries"
18898        cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904
18905 int
18906 main ()
18907 {
18908
18909   ;
18910   return 0;
18911 }
18912 _ACEOF
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (ac_try="$ac_link"
18915 case "(($ac_try" in
18916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917   *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920   (eval "$ac_link") 2>conftest.er1
18921   ac_status=$?
18922   grep -v '^ *+' conftest.er1 >conftest.err
18923   rm -f conftest.er1
18924   cat conftest.err >&5
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); } && {
18927          test -z "$ac_c_werror_flag" ||
18928          test ! -s conftest.err
18929        } && test -s conftest$ac_exeext &&
18930        $as_test_x conftest$ac_exeext; then
18931   { echo "$as_me:$LINENO: result: yes" >&5
18932 echo "${ECHO_T}yes" >&6; }
18933           X_LIBS="$X_LIBS -R $x_libraries"
18934 else
18935   echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938         { echo "$as_me:$LINENO: result: neither works" >&5
18939 echo "${ECHO_T}neither works" >&6; }
18940 fi
18941
18942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18943       conftest$ac_exeext conftest.$ac_ext
18944 fi
18945
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947       conftest$ac_exeext conftest.$ac_ext
18948     ac_c_werror_flag=$ac_xsave_c_werror_flag
18949     LIBS=$ac_xsave_LIBS
18950   fi
18951
18952   # Check for system-dependent libraries X programs must link with.
18953   # Do this before checking for the system-independent R6 libraries
18954   # (-lICE), since we may need -lsocket or whatever for X linking.
18955
18956   if test "$ISC" = yes; then
18957     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18958   else
18959     # Martyn Johnson says this is needed for Ultrix, if the X
18960     # libraries were built with DECnet support.  And Karl Berry says
18961     # the Alpha needs dnet_stub (dnet does not exist).
18962     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18963     cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h.  */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h.  */
18969
18970 /* Override any GCC internal prototype to avoid an error.
18971    Use char because int might match the return type of a GCC
18972    builtin and then its argument prototype would still apply.  */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 char XOpenDisplay ();
18977 int
18978 main ()
18979 {
18980 return XOpenDisplay ();
18981   ;
18982   return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest.$ac_objext conftest$ac_exeext
18986 if { (ac_try="$ac_link"
18987 case "(($ac_try" in
18988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989   *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992   (eval "$ac_link") 2>conftest.er1
18993   ac_status=$?
18994   grep -v '^ *+' conftest.er1 >conftest.err
18995   rm -f conftest.er1
18996   cat conftest.err >&5
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); } && {
18999          test -z "$ac_c_werror_flag" ||
19000          test ! -s conftest.err
19001        } && test -s conftest$ac_exeext &&
19002        $as_test_x conftest$ac_exeext; then
19003   :
19004 else
19005   echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19009 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19010 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   ac_check_lib_save_LIBS=$LIBS
19014 LIBS="-ldnet  $LIBS"
19015 cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h.  */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h.  */
19021
19022 /* Override any GCC internal prototype to avoid an error.
19023    Use char because int might match the return type of a GCC
19024    builtin and then its argument prototype would still apply.  */
19025 #ifdef __cplusplus
19026 extern "C"
19027 #endif
19028 char dnet_ntoa ();
19029 int
19030 main ()
19031 {
19032 return dnet_ntoa ();
19033   ;
19034   return 0;
19035 }
19036 _ACEOF
19037 rm -f conftest.$ac_objext conftest$ac_exeext
19038 if { (ac_try="$ac_link"
19039 case "(($ac_try" in
19040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041   *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044   (eval "$ac_link") 2>conftest.er1
19045   ac_status=$?
19046   grep -v '^ *+' conftest.er1 >conftest.err
19047   rm -f conftest.er1
19048   cat conftest.err >&5
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); } && {
19051          test -z "$ac_c_werror_flag" ||
19052          test ! -s conftest.err
19053        } && test -s conftest$ac_exeext &&
19054        $as_test_x conftest$ac_exeext; then
19055   ac_cv_lib_dnet_dnet_ntoa=yes
19056 else
19057   echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19059
19060         ac_cv_lib_dnet_dnet_ntoa=no
19061 fi
19062
19063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19064       conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19066 fi
19067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19068 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19069 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19070   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19071 fi
19072
19073     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19074       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19075 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19076 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   ac_check_lib_save_LIBS=$LIBS
19080 LIBS="-ldnet_stub  $LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087
19088 /* Override any GCC internal prototype to avoid an error.
19089    Use char because int might match the return type of a GCC
19090    builtin and then its argument prototype would still apply.  */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char dnet_ntoa ();
19095 int
19096 main ()
19097 {
19098 return dnet_ntoa ();
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_link") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } && {
19117          test -z "$ac_c_werror_flag" ||
19118          test ! -s conftest.err
19119        } && test -s conftest$ac_exeext &&
19120        $as_test_x conftest$ac_exeext; then
19121   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19122 else
19123   echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19125
19126         ac_cv_lib_dnet_stub_dnet_ntoa=no
19127 fi
19128
19129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19130       conftest$ac_exeext conftest.$ac_ext
19131 LIBS=$ac_check_lib_save_LIBS
19132 fi
19133 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19134 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19135 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19136   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19137 fi
19138
19139     fi
19140 fi
19141
19142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143       conftest$ac_exeext conftest.$ac_ext
19144     LIBS="$ac_xsave_LIBS"
19145
19146     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19147     # to get the SysV transport functions.
19148     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19149     # needs -lnsl.
19150     # The nsl library prevents programs from opening the X display
19151     # on Irix 5.2, according to T.E. Dickey.
19152     # The functions gethostbyname, getservbyname, and inet_addr are
19153     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19154     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19155 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_gethostbyname+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19167 #define gethostbyname innocuous_gethostbyname
19168
19169 /* System header to define __stub macros and hopefully few prototypes,
19170     which can conflict with char gethostbyname (); below.
19171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19172     <limits.h> exists even on freestanding compilers.  */
19173
19174 #ifdef __STDC__
19175 # include <limits.h>
19176 #else
19177 # include <assert.h>
19178 #endif
19179
19180 #undef gethostbyname
19181
19182 /* Override any GCC internal prototype to avoid an error.
19183    Use char because int might match the return type of a GCC
19184    builtin and then its argument prototype would still apply.  */
19185 #ifdef __cplusplus
19186 extern "C"
19187 #endif
19188 char gethostbyname ();
19189 /* The GNU C library defines this for functions which it implements
19190     to always fail with ENOSYS.  Some functions are actually named
19191     something starting with __ and the normal name is an alias.  */
19192 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19193 choke me
19194 #endif
19195
19196 int
19197 main ()
19198 {
19199 return gethostbyname ();
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_link") 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } && {
19218          test -z "$ac_c_werror_flag" ||
19219          test ! -s conftest.err
19220        } && test -s conftest$ac_exeext &&
19221        $as_test_x conftest$ac_exeext; then
19222   ac_cv_func_gethostbyname=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         ac_cv_func_gethostbyname=no
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19231       conftest$ac_exeext conftest.$ac_ext
19232 fi
19233 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19234 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19235
19236     if test $ac_cv_func_gethostbyname = no; then
19237       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19238 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19239 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19240   echo $ECHO_N "(cached) $ECHO_C" >&6
19241 else
19242   ac_check_lib_save_LIBS=$LIBS
19243 LIBS="-lnsl  $LIBS"
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h.  */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h.  */
19250
19251 /* Override any GCC internal prototype to avoid an error.
19252    Use char because int might match the return type of a GCC
19253    builtin and then its argument prototype would still apply.  */
19254 #ifdef __cplusplus
19255 extern "C"
19256 #endif
19257 char gethostbyname ();
19258 int
19259 main ()
19260 {
19261 return gethostbyname ();
19262   ;
19263   return 0;
19264 }
19265 _ACEOF
19266 rm -f conftest.$ac_objext conftest$ac_exeext
19267 if { (ac_try="$ac_link"
19268 case "(($ac_try" in
19269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270   *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273   (eval "$ac_link") 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } && {
19280          test -z "$ac_c_werror_flag" ||
19281          test ! -s conftest.err
19282        } && test -s conftest$ac_exeext &&
19283        $as_test_x conftest$ac_exeext; then
19284   ac_cv_lib_nsl_gethostbyname=yes
19285 else
19286   echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289         ac_cv_lib_nsl_gethostbyname=no
19290 fi
19291
19292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19293       conftest$ac_exeext conftest.$ac_ext
19294 LIBS=$ac_check_lib_save_LIBS
19295 fi
19296 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19297 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19298 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19299   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19300 fi
19301
19302       if test $ac_cv_lib_nsl_gethostbyname = no; then
19303         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19304 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19305 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19306   echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308   ac_check_lib_save_LIBS=$LIBS
19309 LIBS="-lbsd  $LIBS"
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316
19317 /* Override any GCC internal prototype to avoid an error.
19318    Use char because int might match the return type of a GCC
19319    builtin and then its argument prototype would still apply.  */
19320 #ifdef __cplusplus
19321 extern "C"
19322 #endif
19323 char gethostbyname ();
19324 int
19325 main ()
19326 {
19327 return gethostbyname ();
19328   ;
19329   return 0;
19330 }
19331 _ACEOF
19332 rm -f conftest.$ac_objext conftest$ac_exeext
19333 if { (ac_try="$ac_link"
19334 case "(($ac_try" in
19335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336   *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339   (eval "$ac_link") 2>conftest.er1
19340   ac_status=$?
19341   grep -v '^ *+' conftest.er1 >conftest.err
19342   rm -f conftest.er1
19343   cat conftest.err >&5
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); } && {
19346          test -z "$ac_c_werror_flag" ||
19347          test ! -s conftest.err
19348        } && test -s conftest$ac_exeext &&
19349        $as_test_x conftest$ac_exeext; then
19350   ac_cv_lib_bsd_gethostbyname=yes
19351 else
19352   echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19354
19355         ac_cv_lib_bsd_gethostbyname=no
19356 fi
19357
19358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19359       conftest$ac_exeext conftest.$ac_ext
19360 LIBS=$ac_check_lib_save_LIBS
19361 fi
19362 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19363 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19364 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19365   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19366 fi
19367
19368       fi
19369     fi
19370
19371     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19372     # socket/setsockopt and other routines are undefined under SCO ODT
19373     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19374     # on later versions), says Simon Leinen: it contains gethostby*
19375     # variants that don't use the name server (or something).  -lsocket
19376     # must be given before -lnsl if both are needed.  We assume that
19377     # if connect needs -lnsl, so does gethostbyname.
19378     { echo "$as_me:$LINENO: checking for connect" >&5
19379 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19380 if test "${ac_cv_func_connect+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
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 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19391 #define connect innocuous_connect
19392
19393 /* System header to define __stub macros and hopefully few prototypes,
19394     which can conflict with char connect (); below.
19395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19396     <limits.h> exists even on freestanding compilers.  */
19397
19398 #ifdef __STDC__
19399 # include <limits.h>
19400 #else
19401 # include <assert.h>
19402 #endif
19403
19404 #undef connect
19405
19406 /* Override any GCC internal prototype to avoid an error.
19407    Use char because int might match the return type of a GCC
19408    builtin and then its argument prototype would still apply.  */
19409 #ifdef __cplusplus
19410 extern "C"
19411 #endif
19412 char connect ();
19413 /* The GNU C library defines this for functions which it implements
19414     to always fail with ENOSYS.  Some functions are actually named
19415     something starting with __ and the normal name is an alias.  */
19416 #if defined __stub_connect || defined __stub___connect
19417 choke me
19418 #endif
19419
19420 int
19421 main ()
19422 {
19423 return connect ();
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_link") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } && {
19442          test -z "$ac_c_werror_flag" ||
19443          test ! -s conftest.err
19444        } && test -s conftest$ac_exeext &&
19445        $as_test_x conftest$ac_exeext; then
19446   ac_cv_func_connect=yes
19447 else
19448   echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451         ac_cv_func_connect=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455       conftest$ac_exeext conftest.$ac_ext
19456 fi
19457 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19458 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19459
19460     if test $ac_cv_func_connect = no; then
19461       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19462 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19463 if test "${ac_cv_lib_socket_connect+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466   ac_check_lib_save_LIBS=$LIBS
19467 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19468 cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h.  */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h.  */
19474
19475 /* Override any GCC internal prototype to avoid an error.
19476    Use char because int might match the return type of a GCC
19477    builtin and then its argument prototype would still apply.  */
19478 #ifdef __cplusplus
19479 extern "C"
19480 #endif
19481 char connect ();
19482 int
19483 main ()
19484 {
19485 return connect ();
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_link") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && {
19504          test -z "$ac_c_werror_flag" ||
19505          test ! -s conftest.err
19506        } && test -s conftest$ac_exeext &&
19507        $as_test_x conftest$ac_exeext; then
19508   ac_cv_lib_socket_connect=yes
19509 else
19510   echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513         ac_cv_lib_socket_connect=no
19514 fi
19515
19516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19517       conftest$ac_exeext conftest.$ac_ext
19518 LIBS=$ac_check_lib_save_LIBS
19519 fi
19520 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19521 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19522 if test $ac_cv_lib_socket_connect = yes; then
19523   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19524 fi
19525
19526     fi
19527
19528     # Guillermo Gomez says -lposix is necessary on A/UX.
19529     { echo "$as_me:$LINENO: checking for remove" >&5
19530 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19531 if test "${ac_cv_func_remove+set}" = set; then
19532   echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534   cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19542 #define remove innocuous_remove
19543
19544 /* System header to define __stub macros and hopefully few prototypes,
19545     which can conflict with char remove (); below.
19546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19547     <limits.h> exists even on freestanding compilers.  */
19548
19549 #ifdef __STDC__
19550 # include <limits.h>
19551 #else
19552 # include <assert.h>
19553 #endif
19554
19555 #undef remove
19556
19557 /* Override any GCC internal prototype to avoid an error.
19558    Use char because int might match the return type of a GCC
19559    builtin and then its argument prototype would still apply.  */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 char remove ();
19564 /* The GNU C library defines this for functions which it implements
19565     to always fail with ENOSYS.  Some functions are actually named
19566     something starting with __ and the normal name is an alias.  */
19567 #if defined __stub_remove || defined __stub___remove
19568 choke me
19569 #endif
19570
19571 int
19572 main ()
19573 {
19574 return remove ();
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_link") 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } && {
19593          test -z "$ac_c_werror_flag" ||
19594          test ! -s conftest.err
19595        } && test -s conftest$ac_exeext &&
19596        $as_test_x conftest$ac_exeext; then
19597   ac_cv_func_remove=yes
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602         ac_cv_func_remove=no
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606       conftest$ac_exeext conftest.$ac_ext
19607 fi
19608 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19609 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19610
19611     if test $ac_cv_func_remove = no; then
19612       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19613 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19614 if test "${ac_cv_lib_posix_remove+set}" = set; then
19615   echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617   ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lposix  $LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h.  */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h.  */
19625
19626 /* Override any GCC internal prototype to avoid an error.
19627    Use char because int might match the return type of a GCC
19628    builtin and then its argument prototype would still apply.  */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 char remove ();
19633 int
19634 main ()
19635 {
19636 return remove ();
19637   ;
19638   return 0;
19639 }
19640 _ACEOF
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645   *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648   (eval "$ac_link") 2>conftest.er1
19649   ac_status=$?
19650   grep -v '^ *+' conftest.er1 >conftest.err
19651   rm -f conftest.er1
19652   cat conftest.err >&5
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); } && {
19655          test -z "$ac_c_werror_flag" ||
19656          test ! -s conftest.err
19657        } && test -s conftest$ac_exeext &&
19658        $as_test_x conftest$ac_exeext; then
19659   ac_cv_lib_posix_remove=yes
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664         ac_cv_lib_posix_remove=no
19665 fi
19666
19667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19668       conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19672 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19673 if test $ac_cv_lib_posix_remove = yes; then
19674   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19675 fi
19676
19677     fi
19678
19679     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19680     { echo "$as_me:$LINENO: checking for shmat" >&5
19681 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19682 if test "${ac_cv_func_shmat+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19693 #define shmat innocuous_shmat
19694
19695 /* System header to define __stub macros and hopefully few prototypes,
19696     which can conflict with char shmat (); below.
19697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698     <limits.h> exists even on freestanding compilers.  */
19699
19700 #ifdef __STDC__
19701 # include <limits.h>
19702 #else
19703 # include <assert.h>
19704 #endif
19705
19706 #undef shmat
19707
19708 /* Override any GCC internal prototype to avoid an error.
19709    Use char because int might match the return type of a GCC
19710    builtin and then its argument prototype would still apply.  */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char shmat ();
19715 /* The GNU C library defines this for functions which it implements
19716     to always fail with ENOSYS.  Some functions are actually named
19717     something starting with __ and the normal name is an alias.  */
19718 #if defined __stub_shmat || defined __stub___shmat
19719 choke me
19720 #endif
19721
19722 int
19723 main ()
19724 {
19725 return shmat ();
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737   (eval "$ac_link") 2>conftest.er1
19738   ac_status=$?
19739   grep -v '^ *+' conftest.er1 >conftest.err
19740   rm -f conftest.er1
19741   cat conftest.err >&5
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } && {
19744          test -z "$ac_c_werror_flag" ||
19745          test ! -s conftest.err
19746        } && test -s conftest$ac_exeext &&
19747        $as_test_x conftest$ac_exeext; then
19748   ac_cv_func_shmat=yes
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753         ac_cv_func_shmat=no
19754 fi
19755
19756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19757       conftest$ac_exeext conftest.$ac_ext
19758 fi
19759 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19760 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19761
19762     if test $ac_cv_func_shmat = no; then
19763       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19764 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19765 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768   ac_check_lib_save_LIBS=$LIBS
19769 LIBS="-lipc  $LIBS"
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776
19777 /* Override any GCC internal prototype to avoid an error.
19778    Use char because int might match the return type of a GCC
19779    builtin and then its argument prototype would still apply.  */
19780 #ifdef __cplusplus
19781 extern "C"
19782 #endif
19783 char shmat ();
19784 int
19785 main ()
19786 {
19787 return shmat ();
19788   ;
19789   return 0;
19790 }
19791 _ACEOF
19792 rm -f conftest.$ac_objext conftest$ac_exeext
19793 if { (ac_try="$ac_link"
19794 case "(($ac_try" in
19795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796   *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799   (eval "$ac_link") 2>conftest.er1
19800   ac_status=$?
19801   grep -v '^ *+' conftest.er1 >conftest.err
19802   rm -f conftest.er1
19803   cat conftest.err >&5
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); } && {
19806          test -z "$ac_c_werror_flag" ||
19807          test ! -s conftest.err
19808        } && test -s conftest$ac_exeext &&
19809        $as_test_x conftest$ac_exeext; then
19810   ac_cv_lib_ipc_shmat=yes
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815         ac_cv_lib_ipc_shmat=no
19816 fi
19817
19818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19819       conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19821 fi
19822 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19823 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19824 if test $ac_cv_lib_ipc_shmat = yes; then
19825   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19826 fi
19827
19828     fi
19829   fi
19830
19831   # Check for libraries that X11R6 Xt/Xaw programs need.
19832   ac_save_LDFLAGS=$LDFLAGS
19833   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19834   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19835   # check for ICE first), but we must link in the order -lSM -lICE or
19836   # we get undefined symbols.  So assume we have SM if we have ICE.
19837   # These have to be linked with before -lX11, unlike the other
19838   # libraries we check for below, so use a different variable.
19839   # John Interrante, Karl Berry
19840   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19841 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19842 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   ac_check_lib_save_LIBS=$LIBS
19846 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853
19854 /* Override any GCC internal prototype to avoid an error.
19855    Use char because int might match the return type of a GCC
19856    builtin and then its argument prototype would still apply.  */
19857 #ifdef __cplusplus
19858 extern "C"
19859 #endif
19860 char IceConnectionNumber ();
19861 int
19862 main ()
19863 {
19864 return IceConnectionNumber ();
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_link") 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } && {
19883          test -z "$ac_c_werror_flag" ||
19884          test ! -s conftest.err
19885        } && test -s conftest$ac_exeext &&
19886        $as_test_x conftest$ac_exeext; then
19887   ac_cv_lib_ICE_IceConnectionNumber=yes
19888 else
19889   echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892         ac_cv_lib_ICE_IceConnectionNumber=no
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19896       conftest$ac_exeext conftest.$ac_ext
19897 LIBS=$ac_check_lib_save_LIBS
19898 fi
19899 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19900 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19901 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19902   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19903 fi
19904
19905   LDFLAGS=$ac_save_LDFLAGS
19906
19907 fi
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940 for ac_header in \
19941         assert.h \
19942         fcntl.h \
19943         grp.h \
19944         pwd.h \
19945         libc.h \
19946         limits.h \
19947         stdarg.h \
19948         stdlib.h \
19949         stdint.h \
19950         string.h \
19951         strings.h \
19952         termios.h \
19953         termcap.h \
19954         term.h \
19955         unistd.h \
19956         sys/bitypes.h \
19957         sys/byteorder.h \
19958         sys/ioctl.h \
19959         sys/select.h \
19960         sys/socket.h \
19961         sys/sockio.h \
19962         sys/stat.h \
19963         sys/time.h \
19964         sys/types.h \
19965         arpa/nameser.h \
19966         resolv.h \
19967         mtio.h \
19968         sys/mtio.h \
19969         sys/tape.h \
19970         regex.h \
19971
19972 do
19973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19975   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 fi
19980 ac_res=`eval echo '${'$as_ac_Header'}'`
19981                { echo "$as_me:$LINENO: result: $ac_res" >&5
19982 echo "${ECHO_T}$ac_res" >&6; }
19983 else
19984   # Is the header compilable?
19985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993 $ac_includes_default
19994 #include <$ac_header>
19995 _ACEOF
19996 rm -f conftest.$ac_objext
19997 if { (ac_try="$ac_compile"
19998 case "(($ac_try" in
19999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000   *) ac_try_echo=$ac_try;;
20001 esac
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003   (eval "$ac_compile") 2>conftest.er1
20004   ac_status=$?
20005   grep -v '^ *+' conftest.er1 >conftest.err
20006   rm -f conftest.er1
20007   cat conftest.err >&5
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); } && {
20010          test -z "$ac_c_werror_flag" ||
20011          test ! -s conftest.err
20012        } && test -s conftest.$ac_objext; then
20013   ac_header_compiler=yes
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018         ac_header_compiler=no
20019 fi
20020
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20023 echo "${ECHO_T}$ac_header_compiler" >&6; }
20024
20025 # Is the header present?
20026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034 #include <$ac_header>
20035 _ACEOF
20036 if { (ac_try="$ac_cpp conftest.$ac_ext"
20037 case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20043   ac_status=$?
20044   grep -v '^ *+' conftest.er1 >conftest.err
20045   rm -f conftest.er1
20046   cat conftest.err >&5
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } >/dev/null && {
20049          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20050          test ! -s conftest.err
20051        }; then
20052   ac_header_preproc=yes
20053 else
20054   echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057   ac_header_preproc=no
20058 fi
20059
20060 rm -f conftest.err conftest.$ac_ext
20061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20062 echo "${ECHO_T}$ac_header_preproc" >&6; }
20063
20064 # So?  What about this header?
20065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066   yes:no: )
20067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20071     ac_header_preproc=yes
20072     ;;
20073   no:yes:* )
20074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20086
20087     ;;
20088 esac
20089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20092   echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094   eval "$as_ac_Header=\$ac_header_preproc"
20095 fi
20096 ac_res=`eval echo '${'$as_ac_Header'}'`
20097                { echo "$as_me:$LINENO: result: $ac_res" >&5
20098 echo "${ECHO_T}$ac_res" >&6; }
20099
20100 fi
20101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20102   cat >>confdefs.h <<_ACEOF
20103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20104 _ACEOF
20105
20106 fi
20107
20108 done
20109
20110 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20112 if test "${ac_cv_header_stdc+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121 #include <stdlib.h>
20122 #include <stdarg.h>
20123 #include <string.h>
20124 #include <float.h>
20125
20126 int
20127 main ()
20128 {
20129
20130   ;
20131   return 0;
20132 }
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138   *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141   (eval "$ac_compile") 2>conftest.er1
20142   ac_status=$?
20143   grep -v '^ *+' conftest.er1 >conftest.err
20144   rm -f conftest.er1
20145   cat conftest.err >&5
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); } && {
20148          test -z "$ac_c_werror_flag" ||
20149          test ! -s conftest.err
20150        } && test -s conftest.$ac_objext; then
20151   ac_cv_header_stdc=yes
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156         ac_cv_header_stdc=no
20157 fi
20158
20159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20160
20161 if test $ac_cv_header_stdc = yes; then
20162   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20163   cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <string.h>
20170
20171 _ACEOF
20172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20173   $EGREP "memchr" >/dev/null 2>&1; then
20174   :
20175 else
20176   ac_cv_header_stdc=no
20177 fi
20178 rm -f conftest*
20179
20180 fi
20181
20182 if test $ac_cv_header_stdc = yes; then
20183   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20184   cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190 #include <stdlib.h>
20191
20192 _ACEOF
20193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20194   $EGREP "free" >/dev/null 2>&1; then
20195   :
20196 else
20197   ac_cv_header_stdc=no
20198 fi
20199 rm -f conftest*
20200
20201 fi
20202
20203 if test $ac_cv_header_stdc = yes; then
20204   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20205   if test "$cross_compiling" = yes; then
20206   :
20207 else
20208   cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 #include <ctype.h>
20215 #include <stdlib.h>
20216 #if ((' ' & 0x0FF) == 0x020)
20217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20219 #else
20220 # define ISLOWER(c) \
20221                    (('a' <= (c) && (c) <= 'i') \
20222                      || ('j' <= (c) && (c) <= 'r') \
20223                      || ('s' <= (c) && (c) <= 'z'))
20224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20225 #endif
20226
20227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20228 int
20229 main ()
20230 {
20231   int i;
20232   for (i = 0; i < 256; i++)
20233     if (XOR (islower (i), ISLOWER (i))
20234         || toupper (i) != TOUPPER (i))
20235       return 2;
20236   return 0;
20237 }
20238 _ACEOF
20239 rm -f conftest$ac_exeext
20240 if { (ac_try="$ac_link"
20241 case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_link") 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20250   { (case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_try") 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; }; then
20259   :
20260 else
20261   echo "$as_me: program exited with status $ac_status" >&5
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20264
20265 ( exit $ac_status )
20266 ac_cv_header_stdc=no
20267 fi
20268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20269 fi
20270
20271
20272 fi
20273 fi
20274 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20275 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20276 if test $ac_cv_header_stdc = yes; then
20277
20278 cat >>confdefs.h <<\_ACEOF
20279 #define STDC_HEADERS 1
20280 _ACEOF
20281
20282 fi
20283
20284 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20285 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20286 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295 #include <sys/types.h>
20296 int
20297 main ()
20298 {
20299 return makedev(0, 0);
20300   ;
20301   return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest.$ac_objext conftest$ac_exeext
20305 if { (ac_try="$ac_link"
20306 case "(($ac_try" in
20307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308   *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311   (eval "$ac_link") 2>conftest.er1
20312   ac_status=$?
20313   grep -v '^ *+' conftest.er1 >conftest.err
20314   rm -f conftest.er1
20315   cat conftest.err >&5
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); } && {
20318          test -z "$ac_c_werror_flag" ||
20319          test ! -s conftest.err
20320        } && test -s conftest$ac_exeext &&
20321        $as_test_x conftest$ac_exeext; then
20322   ac_cv_header_sys_types_h_makedev=yes
20323 else
20324   echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327         ac_cv_header_sys_types_h_makedev=no
20328 fi
20329
20330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20331       conftest$ac_exeext conftest.$ac_ext
20332
20333 fi
20334 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20335 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20336
20337 if test $ac_cv_header_sys_types_h_makedev = no; then
20338 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20339   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20340 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20341 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 fi
20344 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20345 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20346 else
20347   # Is the header compilable?
20348 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20349 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356 $ac_includes_default
20357 #include <sys/mkdev.h>
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (ac_try="$ac_compile"
20361 case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366   (eval "$ac_compile") 2>conftest.er1
20367   ac_status=$?
20368   grep -v '^ *+' conftest.er1 >conftest.err
20369   rm -f conftest.er1
20370   cat conftest.err >&5
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } && {
20373          test -z "$ac_c_werror_flag" ||
20374          test ! -s conftest.err
20375        } && test -s conftest.$ac_objext; then
20376   ac_header_compiler=yes
20377 else
20378   echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381         ac_header_compiler=no
20382 fi
20383
20384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20386 echo "${ECHO_T}$ac_header_compiler" >&6; }
20387
20388 # Is the header present?
20389 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20390 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20391 cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397 #include <sys/mkdev.h>
20398 _ACEOF
20399 if { (ac_try="$ac_cpp conftest.$ac_ext"
20400 case "(($ac_try" in
20401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402   *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20406   ac_status=$?
20407   grep -v '^ *+' conftest.er1 >conftest.err
20408   rm -f conftest.er1
20409   cat conftest.err >&5
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); } >/dev/null && {
20412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20413          test ! -s conftest.err
20414        }; then
20415   ac_header_preproc=yes
20416 else
20417   echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420   ac_header_preproc=no
20421 fi
20422
20423 rm -f conftest.err conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20425 echo "${ECHO_T}$ac_header_preproc" >&6; }
20426
20427 # So?  What about this header?
20428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20429   yes:no: )
20430     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20431 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20432     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20433 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20434     ac_header_preproc=yes
20435     ;;
20436   no:yes:* )
20437     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20438 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20439     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20440 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20441     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20442 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20443     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20444 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20445     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20446 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20447     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20448 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20449
20450     ;;
20451 esac
20452 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20453 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20454 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20458 fi
20459 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20460 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20461
20462 fi
20463 if test $ac_cv_header_sys_mkdev_h = yes; then
20464
20465 cat >>confdefs.h <<\_ACEOF
20466 #define MAJOR_IN_MKDEV 1
20467 _ACEOF
20468
20469 fi
20470
20471
20472
20473   if test $ac_cv_header_sys_mkdev_h = no; then
20474     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20475   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20476 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20477 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20478   echo $ECHO_N "(cached) $ECHO_C" >&6
20479 fi
20480 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20481 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20482 else
20483   # Is the header compilable?
20484 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20485 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492 $ac_includes_default
20493 #include <sys/sysmacros.h>
20494 _ACEOF
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499   *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502   (eval "$ac_compile") 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } && {
20509          test -z "$ac_c_werror_flag" ||
20510          test ! -s conftest.err
20511        } && test -s conftest.$ac_objext; then
20512   ac_header_compiler=yes
20513 else
20514   echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517         ac_header_compiler=no
20518 fi
20519
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20522 echo "${ECHO_T}$ac_header_compiler" >&6; }
20523
20524 # Is the header present?
20525 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20526 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h.  */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h.  */
20533 #include <sys/sysmacros.h>
20534 _ACEOF
20535 if { (ac_try="$ac_cpp conftest.$ac_ext"
20536 case "(($ac_try" in
20537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538   *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20542   ac_status=$?
20543   grep -v '^ *+' conftest.er1 >conftest.err
20544   rm -f conftest.er1
20545   cat conftest.err >&5
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } >/dev/null && {
20548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20549          test ! -s conftest.err
20550        }; then
20551   ac_header_preproc=yes
20552 else
20553   echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556   ac_header_preproc=no
20557 fi
20558
20559 rm -f conftest.err conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20561 echo "${ECHO_T}$ac_header_preproc" >&6; }
20562
20563 # So?  What about this header?
20564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20565   yes:no: )
20566     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20567 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20568     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20569 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20570     ac_header_preproc=yes
20571     ;;
20572   no:yes:* )
20573     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20574 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20575     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20576 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20577     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20578 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20579     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20580 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20581     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20582 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20583     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20584 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20585
20586     ;;
20587 esac
20588 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20589 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20590 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20591   echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20594 fi
20595 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20596 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20597
20598 fi
20599 if test $ac_cv_header_sys_sysmacros_h = yes; then
20600
20601 cat >>confdefs.h <<\_ACEOF
20602 #define MAJOR_IN_SYSMACROS 1
20603 _ACEOF
20604
20605 fi
20606
20607
20608   fi
20609 fi
20610
20611
20612
20613
20614
20615
20616 ac_header_dirent=no
20617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20618   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20619 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20620 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20622   echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624   cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h.  */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h.  */
20630 #include <sys/types.h>
20631 #include <$ac_hdr>
20632
20633 int
20634 main ()
20635 {
20636 if ((DIR *) 0)
20637 return 0;
20638   ;
20639   return 0;
20640 }
20641 _ACEOF
20642 rm -f conftest.$ac_objext
20643 if { (ac_try="$ac_compile"
20644 case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_compile") 2>conftest.er1
20650   ac_status=$?
20651   grep -v '^ *+' conftest.er1 >conftest.err
20652   rm -f conftest.er1
20653   cat conftest.err >&5
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } && {
20656          test -z "$ac_c_werror_flag" ||
20657          test ! -s conftest.err
20658        } && test -s conftest.$ac_objext; then
20659   eval "$as_ac_Header=yes"
20660 else
20661   echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664         eval "$as_ac_Header=no"
20665 fi
20666
20667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 fi
20669 ac_res=`eval echo '${'$as_ac_Header'}'`
20670                { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20673   cat >>confdefs.h <<_ACEOF
20674 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20675 _ACEOF
20676
20677 ac_header_dirent=$ac_hdr; break
20678 fi
20679
20680 done
20681 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20682 if test $ac_header_dirent = dirent.h; then
20683   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20684 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20685 if test "${ac_cv_search_opendir+set}" = set; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   ac_func_search_save_LIBS=$LIBS
20689 cat >conftest.$ac_ext <<_ACEOF
20690 /* confdefs.h.  */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h.  */
20695
20696 /* Override any GCC internal prototype to avoid an error.
20697    Use char because int might match the return type of a GCC
20698    builtin and then its argument prototype would still apply.  */
20699 #ifdef __cplusplus
20700 extern "C"
20701 #endif
20702 char opendir ();
20703 int
20704 main ()
20705 {
20706 return opendir ();
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 for ac_lib in '' dir; do
20712   if test -z "$ac_lib"; then
20713     ac_res="none required"
20714   else
20715     ac_res=-l$ac_lib
20716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20717   fi
20718   rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (ac_try="$ac_link"
20720 case "(($ac_try" in
20721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722   *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725   (eval "$ac_link") 2>conftest.er1
20726   ac_status=$?
20727   grep -v '^ *+' conftest.er1 >conftest.err
20728   rm -f conftest.er1
20729   cat conftest.err >&5
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); } && {
20732          test -z "$ac_c_werror_flag" ||
20733          test ! -s conftest.err
20734        } && test -s conftest$ac_exeext &&
20735        $as_test_x conftest$ac_exeext; then
20736   ac_cv_search_opendir=$ac_res
20737 else
20738   echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741
20742 fi
20743
20744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20745       conftest$ac_exeext
20746   if test "${ac_cv_search_opendir+set}" = set; then
20747   break
20748 fi
20749 done
20750 if test "${ac_cv_search_opendir+set}" = set; then
20751   :
20752 else
20753   ac_cv_search_opendir=no
20754 fi
20755 rm conftest.$ac_ext
20756 LIBS=$ac_func_search_save_LIBS
20757 fi
20758 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20759 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20760 ac_res=$ac_cv_search_opendir
20761 if test "$ac_res" != no; then
20762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20763
20764 fi
20765
20766 else
20767   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20768 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20769 if test "${ac_cv_search_opendir+set}" = set; then
20770   echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772   ac_func_search_save_LIBS=$LIBS
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h.  */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h.  */
20779
20780 /* Override any GCC internal prototype to avoid an error.
20781    Use char because int might match the return type of a GCC
20782    builtin and then its argument prototype would still apply.  */
20783 #ifdef __cplusplus
20784 extern "C"
20785 #endif
20786 char opendir ();
20787 int
20788 main ()
20789 {
20790 return opendir ();
20791   ;
20792   return 0;
20793 }
20794 _ACEOF
20795 for ac_lib in '' x; do
20796   if test -z "$ac_lib"; then
20797     ac_res="none required"
20798   else
20799     ac_res=-l$ac_lib
20800     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20801   fi
20802   rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_link") 2>conftest.er1
20810   ac_status=$?
20811   grep -v '^ *+' conftest.er1 >conftest.err
20812   rm -f conftest.er1
20813   cat conftest.err >&5
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } && {
20816          test -z "$ac_c_werror_flag" ||
20817          test ! -s conftest.err
20818        } && test -s conftest$ac_exeext &&
20819        $as_test_x conftest$ac_exeext; then
20820   ac_cv_search_opendir=$ac_res
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825
20826 fi
20827
20828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20829       conftest$ac_exeext
20830   if test "${ac_cv_search_opendir+set}" = set; then
20831   break
20832 fi
20833 done
20834 if test "${ac_cv_search_opendir+set}" = set; then
20835   :
20836 else
20837   ac_cv_search_opendir=no
20838 fi
20839 rm conftest.$ac_ext
20840 LIBS=$ac_func_search_save_LIBS
20841 fi
20842 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20843 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20844 ac_res=$ac_cv_search_opendir
20845 if test "$ac_res" != no; then
20846   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20847
20848 fi
20849
20850 fi
20851
20852 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20853 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20854 if test "${ac_cv_header_stat_broken+set}" = set; then
20855   echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857   cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 #include <sys/types.h>
20864 #include <sys/stat.h>
20865
20866 #if defined S_ISBLK && defined S_IFDIR
20867 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20868 #endif
20869
20870 #if defined S_ISBLK && defined S_IFCHR
20871 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20872 #endif
20873
20874 #if defined S_ISLNK && defined S_IFREG
20875 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20876 #endif
20877
20878 #if defined S_ISSOCK && defined S_IFREG
20879 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20880 #endif
20881
20882 _ACEOF
20883 rm -f conftest.$ac_objext
20884 if { (ac_try="$ac_compile"
20885 case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_compile") 2>conftest.er1
20891   ac_status=$?
20892   grep -v '^ *+' conftest.er1 >conftest.err
20893   rm -f conftest.er1
20894   cat conftest.err >&5
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } && {
20897          test -z "$ac_c_werror_flag" ||
20898          test ! -s conftest.err
20899        } && test -s conftest.$ac_objext; then
20900   ac_cv_header_stat_broken=no
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905         ac_cv_header_stat_broken=yes
20906 fi
20907
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 fi
20910 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20911 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20912 if test $ac_cv_header_stat_broken = yes; then
20913
20914 cat >>confdefs.h <<\_ACEOF
20915 #define STAT_MACROS_BROKEN 1
20916 _ACEOF
20917
20918 fi
20919
20920 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20921 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20922 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20923   echo $ECHO_N "(cached) $ECHO_C" >&6
20924 else
20925   cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h.  */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h.  */
20931 #include <sys/types.h>
20932 #include <sys/wait.h>
20933 #ifndef WEXITSTATUS
20934 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20935 #endif
20936 #ifndef WIFEXITED
20937 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20938 #endif
20939
20940 int
20941 main ()
20942 {
20943   int s;
20944   wait (&s);
20945   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954   *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957   (eval "$ac_compile") 2>conftest.er1
20958   ac_status=$?
20959   grep -v '^ *+' conftest.er1 >conftest.err
20960   rm -f conftest.er1
20961   cat conftest.err >&5
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } && {
20964          test -z "$ac_c_werror_flag" ||
20965          test ! -s conftest.err
20966        } && test -s conftest.$ac_objext; then
20967   ac_cv_header_sys_wait_h=yes
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972         ac_cv_header_sys_wait_h=no
20973 fi
20974
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 fi
20977 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20978 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20979 if test $ac_cv_header_sys_wait_h = yes; then
20980
20981 cat >>confdefs.h <<\_ACEOF
20982 #define HAVE_SYS_WAIT_H 1
20983 _ACEOF
20984
20985 fi
20986
20987 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20989 if test "${ac_cv_header_time+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 #include <sys/types.h>
20999 #include <sys/time.h>
21000 #include <time.h>
21001
21002 int
21003 main ()
21004 {
21005 if ((struct tm *) 0)
21006 return 0;
21007   ;
21008   return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015   *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018   (eval "$ac_compile") 2>conftest.er1
21019   ac_status=$?
21020   grep -v '^ *+' conftest.er1 >conftest.err
21021   rm -f conftest.er1
21022   cat conftest.err >&5
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); } && {
21025          test -z "$ac_c_werror_flag" ||
21026          test ! -s conftest.err
21027        } && test -s conftest.$ac_objext; then
21028   ac_cv_header_time=yes
21029 else
21030   echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033         ac_cv_header_time=no
21034 fi
21035
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 fi
21038 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21039 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21040 if test $ac_cv_header_time = yes; then
21041
21042 cat >>confdefs.h <<\_ACEOF
21043 #define TIME_WITH_SYS_TIME 1
21044 _ACEOF
21045
21046 fi
21047
21048 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21049 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21050 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21051   echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053   cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 $ac_includes_default
21060 int
21061 main ()
21062 {
21063 static struct stat ac_aggr;
21064 if (ac_aggr.st_blksize)
21065 return 0;
21066   ;
21067   return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_compile") 2>conftest.er1
21078   ac_status=$?
21079   grep -v '^ *+' conftest.er1 >conftest.err
21080   rm -f conftest.er1
21081   cat conftest.err >&5
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } && {
21084          test -z "$ac_c_werror_flag" ||
21085          test ! -s conftest.err
21086        } && test -s conftest.$ac_objext; then
21087   ac_cv_member_struct_stat_st_blksize=yes
21088 else
21089   echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092         cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 $ac_includes_default
21099 int
21100 main ()
21101 {
21102 static struct stat ac_aggr;
21103 if (sizeof ac_aggr.st_blksize)
21104 return 0;
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_compile") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && {
21123          test -z "$ac_c_werror_flag" ||
21124          test ! -s conftest.err
21125        } && test -s conftest.$ac_objext; then
21126   ac_cv_member_struct_stat_st_blksize=yes
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131         ac_cv_member_struct_stat_st_blksize=no
21132 fi
21133
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 fi
21136
21137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21138 fi
21139 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21140 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21141 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21142
21143 cat >>confdefs.h <<_ACEOF
21144 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21145 _ACEOF
21146
21147
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_ST_BLKSIZE 1
21150 _ACEOF
21151
21152 fi
21153
21154
21155 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21156 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21157 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21158   echo $ECHO_N "(cached) $ECHO_C" >&6
21159 else
21160   cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 $ac_includes_default
21167 int
21168 main ()
21169 {
21170 static struct stat ac_aggr;
21171 if (ac_aggr.st_blocks)
21172 return 0;
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_compile") 2>conftest.er1
21185   ac_status=$?
21186   grep -v '^ *+' conftest.er1 >conftest.err
21187   rm -f conftest.er1
21188   cat conftest.err >&5
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } && {
21191          test -z "$ac_c_werror_flag" ||
21192          test ! -s conftest.err
21193        } && test -s conftest.$ac_objext; then
21194   ac_cv_member_struct_stat_st_blocks=yes
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199         cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h.  */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h.  */
21205 $ac_includes_default
21206 int
21207 main ()
21208 {
21209 static struct stat ac_aggr;
21210 if (sizeof ac_aggr.st_blocks)
21211 return 0;
21212   ;
21213   return 0;
21214 }
21215 _ACEOF
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220   *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223   (eval "$ac_compile") 2>conftest.er1
21224   ac_status=$?
21225   grep -v '^ *+' conftest.er1 >conftest.err
21226   rm -f conftest.er1
21227   cat conftest.err >&5
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); } && {
21230          test -z "$ac_c_werror_flag" ||
21231          test ! -s conftest.err
21232        } && test -s conftest.$ac_objext; then
21233   ac_cv_member_struct_stat_st_blocks=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238         ac_cv_member_struct_stat_st_blocks=no
21239 fi
21240
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242 fi
21243
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 fi
21246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21248 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21249
21250 cat >>confdefs.h <<_ACEOF
21251 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21252 _ACEOF
21253
21254
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_ST_BLOCKS 1
21257 _ACEOF
21258
21259 else
21260   case " $LIBOBJS " in
21261   *" fileblocks.$ac_objext "* ) ;;
21262   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21263  ;;
21264 esac
21265
21266 fi
21267
21268
21269 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21270 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21271 if test "${ac_cv_struct_tm+set}" = set; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 #include <sys/types.h>
21281 #include <time.h>
21282
21283 int
21284 main ()
21285 {
21286 struct tm tm;
21287                                      int *p = &tm.tm_sec;
21288                                      return !p;
21289   ;
21290   return 0;
21291 }
21292 _ACEOF
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297   *) ac_try_echo=$ac_try;;
21298 esac
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300   (eval "$ac_compile") 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } && {
21307          test -z "$ac_c_werror_flag" ||
21308          test ! -s conftest.err
21309        } && test -s conftest.$ac_objext; then
21310   ac_cv_struct_tm=time.h
21311 else
21312   echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21314
21315         ac_cv_struct_tm=sys/time.h
21316 fi
21317
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 fi
21320 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21321 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21322 if test $ac_cv_struct_tm = sys/time.h; then
21323
21324 cat >>confdefs.h <<\_ACEOF
21325 #define TM_IN_SYS_TIME 1
21326 _ACEOF
21327
21328 fi
21329
21330 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21331 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21332 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21333   echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335   cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 #include <sys/types.h>
21342 #include <$ac_cv_struct_tm>
21343
21344
21345 int
21346 main ()
21347 {
21348 static struct tm ac_aggr;
21349 if (ac_aggr.tm_zone)
21350 return 0;
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_compile") 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } && {
21369          test -z "$ac_c_werror_flag" ||
21370          test ! -s conftest.err
21371        } && test -s conftest.$ac_objext; then
21372   ac_cv_member_struct_tm_tm_zone=yes
21373 else
21374   echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377         cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383 #include <sys/types.h>
21384 #include <$ac_cv_struct_tm>
21385
21386
21387 int
21388 main ()
21389 {
21390 static struct tm ac_aggr;
21391 if (sizeof ac_aggr.tm_zone)
21392 return 0;
21393   ;
21394   return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401   *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404   (eval "$ac_compile") 2>conftest.er1
21405   ac_status=$?
21406   grep -v '^ *+' conftest.er1 >conftest.err
21407   rm -f conftest.er1
21408   cat conftest.err >&5
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); } && {
21411          test -z "$ac_c_werror_flag" ||
21412          test ! -s conftest.err
21413        } && test -s conftest.$ac_objext; then
21414   ac_cv_member_struct_tm_tm_zone=yes
21415 else
21416   echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419         ac_cv_member_struct_tm_tm_zone=no
21420 fi
21421
21422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21423 fi
21424
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426 fi
21427 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21428 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21429 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21430
21431 cat >>confdefs.h <<_ACEOF
21432 #define HAVE_STRUCT_TM_TM_ZONE 1
21433 _ACEOF
21434
21435
21436 fi
21437
21438 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21439
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_TM_ZONE 1
21442 _ACEOF
21443
21444 else
21445   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21446 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21447 if test "${ac_cv_have_decl_tzname+set}" = set; then
21448   echo $ECHO_N "(cached) $ECHO_C" >&6
21449 else
21450   cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456 #include <time.h>
21457
21458 int
21459 main ()
21460 {
21461 #ifndef tzname
21462   (void) tzname;
21463 #endif
21464
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_compile") 2>conftest.er1
21477   ac_status=$?
21478   grep -v '^ *+' conftest.er1 >conftest.err
21479   rm -f conftest.er1
21480   cat conftest.err >&5
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } && {
21483          test -z "$ac_c_werror_flag" ||
21484          test ! -s conftest.err
21485        } && test -s conftest.$ac_objext; then
21486   ac_cv_have_decl_tzname=yes
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491         ac_cv_have_decl_tzname=no
21492 fi
21493
21494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21495 fi
21496 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21497 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21498 if test $ac_cv_have_decl_tzname = yes; then
21499
21500 cat >>confdefs.h <<_ACEOF
21501 #define HAVE_DECL_TZNAME 1
21502 _ACEOF
21503
21504
21505 else
21506   cat >>confdefs.h <<_ACEOF
21507 #define HAVE_DECL_TZNAME 0
21508 _ACEOF
21509
21510
21511 fi
21512
21513
21514   { echo "$as_me:$LINENO: checking for tzname" >&5
21515 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21516 if test "${ac_cv_var_tzname+set}" = set; then
21517   echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519   cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h.  */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h.  */
21525 #include <time.h>
21526 #if !HAVE_DECL_TZNAME
21527 extern char *tzname[];
21528 #endif
21529
21530 int
21531 main ()
21532 {
21533 return tzname[0][0];
21534   ;
21535   return 0;
21536 }
21537 _ACEOF
21538 rm -f conftest.$ac_objext conftest$ac_exeext
21539 if { (ac_try="$ac_link"
21540 case "(($ac_try" in
21541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542   *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545   (eval "$ac_link") 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } && {
21552          test -z "$ac_c_werror_flag" ||
21553          test ! -s conftest.err
21554        } && test -s conftest$ac_exeext &&
21555        $as_test_x conftest$ac_exeext; then
21556   ac_cv_var_tzname=yes
21557 else
21558   echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561         ac_cv_var_tzname=no
21562 fi
21563
21564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21565       conftest$ac_exeext conftest.$ac_ext
21566 fi
21567 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21568 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21569   if test $ac_cv_var_tzname = yes; then
21570
21571 cat >>confdefs.h <<\_ACEOF
21572 #define HAVE_TZNAME 1
21573 _ACEOF
21574
21575   fi
21576 fi
21577
21578
21579 { echo "$as_me:$LINENO: checking for utime.h" >&5
21580 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21581 if test "${ba_cv_header_utime_h+set}" = set; then
21582   echo $ECHO_N "(cached) $ECHO_C" >&6
21583 else
21584   cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h.  */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h.  */
21590
21591 #include <sys/types.h>
21592 #include <utime.h>
21593 int
21594 main ()
21595 {
21596 struct utimbuf foo
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_compile") 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } && {
21615          test -z "$ac_c_werror_flag" ||
21616          test ! -s conftest.err
21617        } && test -s conftest.$ac_objext; then
21618   ba_cv_header_utime_h=yes
21619 else
21620   echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623         ba_cv_header_utime_h=no
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21627 fi
21628 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21629 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21630 test $ba_cv_header_utime_h = yes &&
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_UTIME_H 1
21633 _ACEOF
21634
21635
21636 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21637 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21638 if test "${ba_cv_header_socklen_t+set}" = set; then
21639   echo $ECHO_N "(cached) $ECHO_C" >&6
21640 else
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647
21648 #include <sys/types.h>
21649 #include <sys/socket.h>
21650 int
21651 main ()
21652 {
21653 socklen_t x
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_compile") 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && {
21672          test -z "$ac_c_werror_flag" ||
21673          test ! -s conftest.err
21674        } && test -s conftest.$ac_objext; then
21675   ba_cv_header_socklen_t=yes
21676 else
21677   echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680         ba_cv_header_socklen_t=no
21681 fi
21682
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 fi
21685 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21686 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21687 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21688 #define HAVE_SOCKLEN_T 1
21689 _ACEOF
21690
21691
21692 { echo "$as_me:$LINENO: checking for bigendian" >&5
21693 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21694 if test "${ba_cv_bigendian+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   if test "$cross_compiling" = yes; then
21698   ba_cv_bigendian=no
21699 else
21700   cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h.  */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h.  */
21706 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21707 _ACEOF
21708 rm -f conftest$ac_exeext
21709 if { (ac_try="$ac_link"
21710 case "(($ac_try" in
21711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712   *) ac_try_echo=$ac_try;;
21713 esac
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715   (eval "$ac_link") 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21719   { (case "(($ac_try" in
21720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721   *) ac_try_echo=$ac_try;;
21722 esac
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724   (eval "$ac_try") 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; }; then
21728   ba_cv_bigendian=yes
21729 else
21730   echo "$as_me: program exited with status $ac_status" >&5
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ( exit $ac_status )
21735 ba_cv_bigendian=no
21736 fi
21737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21738 fi
21739
21740
21741 fi
21742 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21743 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21744 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21745 #define HAVE_BIGENDIAN 1
21746 _ACEOF
21747
21748
21749 ac_ext=cpp
21750 ac_cpp='$CXXCPP $CPPFLAGS'
21751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21754
21755
21756 { echo "$as_me:$LINENO: checking for typeof" >&5
21757 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21758 if test "${ba_cv_have_typeof+set}" = set; then
21759   echo $ECHO_N "(cached) $ECHO_C" >&6
21760 else
21761   if test "$cross_compiling" = yes; then
21762   ba_cv_have_typeof=no
21763 else
21764   cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h.  */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h.  */
21770 main(){char *a = 0; a = (typeof a)a;}
21771 _ACEOF
21772 rm -f conftest$ac_exeext
21773 if { (ac_try="$ac_link"
21774 case "(($ac_try" in
21775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776   *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779   (eval "$ac_link") 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21783   { (case "(($ac_try" in
21784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785   *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788   (eval "$ac_try") 2>&5
21789   ac_status=$?
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); }; }; then
21792   ba_cv_have_typeof=yes
21793 else
21794   echo "$as_me: program exited with status $ac_status" >&5
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 ( exit $ac_status )
21799 ba_cv_have_typeof=no
21800 fi
21801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21802 fi
21803
21804
21805 fi
21806 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21807 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21808 test $ba_cv_have_typeof = yes &&
21809 cat >>confdefs.h <<\_ACEOF
21810 #define HAVE_TYPEOF 1
21811 _ACEOF
21812
21813 ac_ext=c
21814 ac_cpp='$CPP $CPPFLAGS'
21815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21818
21819
21820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21822 if test "${ac_cv_c_const+set}" = set; then
21823   echo $ECHO_N "(cached) $ECHO_C" >&6
21824 else
21825   cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h.  */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h.  */
21831
21832 int
21833 main ()
21834 {
21835 /* FIXME: Include the comments suggested by Paul. */
21836 #ifndef __cplusplus
21837   /* Ultrix mips cc rejects this.  */
21838   typedef int charset[2];
21839   const charset cs;
21840   /* SunOS 4.1.1 cc rejects this.  */
21841   char const *const *pcpcc;
21842   char **ppc;
21843   /* NEC SVR4.0.2 mips cc rejects this.  */
21844   struct point {int x, y;};
21845   static struct point const zero = {0,0};
21846   /* AIX XL C 1.02.0.0 rejects this.
21847      It does not let you subtract one const X* pointer from another in
21848      an arm of an if-expression whose if-part is not a constant
21849      expression */
21850   const char *g = "string";
21851   pcpcc = &g + (g ? g-g : 0);
21852   /* HPUX 7.0 cc rejects these. */
21853   ++pcpcc;
21854   ppc = (char**) pcpcc;
21855   pcpcc = (char const *const *) ppc;
21856   { /* SCO 3.2v4 cc rejects this.  */
21857     char *t;
21858     char const *s = 0 ? (char *) 0 : (char const *) 0;
21859
21860     *t++ = 0;
21861     if (s) return 0;
21862   }
21863   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21864     int x[] = {25, 17};
21865     const int *foo = &x[0];
21866     ++foo;
21867   }
21868   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21869     typedef const int *iptr;
21870     iptr p = 0;
21871     ++p;
21872   }
21873   { /* AIX XL C 1.02.0.0 rejects this saying
21874        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21875     struct s { int j; const int *ap[3]; };
21876     struct s *b; b->j = 5;
21877   }
21878   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21879     const int foo = 10;
21880     if (!foo) return 0;
21881   }
21882   return !cs[0] && !zero.x;
21883 #endif
21884
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext
21890 if { (ac_try="$ac_compile"
21891 case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896   (eval "$ac_compile") 2>conftest.er1
21897   ac_status=$?
21898   grep -v '^ *+' conftest.er1 >conftest.err
21899   rm -f conftest.er1
21900   cat conftest.err >&5
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } && {
21903          test -z "$ac_c_werror_flag" ||
21904          test ! -s conftest.err
21905        } && test -s conftest.$ac_objext; then
21906   ac_cv_c_const=yes
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911         ac_cv_c_const=no
21912 fi
21913
21914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21915 fi
21916 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21917 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21918 if test $ac_cv_c_const = no; then
21919
21920 cat >>confdefs.h <<\_ACEOF
21921 #define const
21922 _ACEOF
21923
21924 fi
21925
21926
21927
21928 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21929 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21930 fstype=no
21931 # The order of these tests is important.
21932 cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938 #include <sys/statvfs.h>
21939 #include <sys/fstyp.h>
21940 _ACEOF
21941 if { (ac_try="$ac_cpp conftest.$ac_ext"
21942 case "(($ac_try" in
21943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944   *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21948   ac_status=$?
21949   grep -v '^ *+' conftest.er1 >conftest.err
21950   rm -f conftest.er1
21951   cat conftest.err >&5
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); } >/dev/null && {
21954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21955          test ! -s conftest.err
21956        }; then
21957   cat >>confdefs.h <<\_ACEOF
21958 #define FSTYPE_STATVFS 1
21959 _ACEOF
21960  fstype=SVR4
21961 else
21962   echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965
21966 fi
21967
21968 rm -f conftest.err conftest.$ac_ext
21969 if test $fstype = no; then
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 #include <sys/statfs.h>
21977 #include <sys/fstyp.h>
21978 _ACEOF
21979 if { (ac_try="$ac_cpp conftest.$ac_ext"
21980 case "(($ac_try" in
21981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982   *) ac_try_echo=$ac_try;;
21983 esac
21984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21986   ac_status=$?
21987   grep -v '^ *+' conftest.er1 >conftest.err
21988   rm -f conftest.er1
21989   cat conftest.err >&5
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); } >/dev/null && {
21992          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21993          test ! -s conftest.err
21994        }; then
21995   cat >>confdefs.h <<\_ACEOF
21996 #define FSTYPE_USG_STATFS 1
21997 _ACEOF
21998  fstype=SVR3
21999 else
22000   echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22002
22003
22004 fi
22005
22006 rm -f conftest.err conftest.$ac_ext
22007 fi
22008 if test $fstype = no; then
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 #include <sys/statfs.h>
22016 #include <sys/vmount.h>
22017 _ACEOF
22018 if { (ac_try="$ac_cpp conftest.$ac_ext"
22019 case "(($ac_try" in
22020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021   *) ac_try_echo=$ac_try;;
22022 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22025   ac_status=$?
22026   grep -v '^ *+' conftest.er1 >conftest.err
22027   rm -f conftest.er1
22028   cat conftest.err >&5
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } >/dev/null && {
22031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22032          test ! -s conftest.err
22033        }; then
22034   cat >>confdefs.h <<\_ACEOF
22035 #define FSTYPE_AIX_STATFS 1
22036 _ACEOF
22037  fstype=AIX
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042
22043 fi
22044
22045 rm -f conftest.err conftest.$ac_ext
22046 fi
22047 if test $fstype = no; then
22048 cat >conftest.$ac_ext <<_ACEOF
22049 /* confdefs.h.  */
22050 _ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h.  */
22054 #include <mntent.h>
22055 _ACEOF
22056 if { (ac_try="$ac_cpp conftest.$ac_ext"
22057 case "(($ac_try" in
22058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059   *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22063   ac_status=$?
22064   grep -v '^ *+' conftest.er1 >conftest.err
22065   rm -f conftest.er1
22066   cat conftest.err >&5
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); } >/dev/null && {
22069          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22070          test ! -s conftest.err
22071        }; then
22072   cat >>confdefs.h <<\_ACEOF
22073 #define FSTYPE_MNTENT 1
22074 _ACEOF
22075  fstype=4.3BSD
22076 else
22077   echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080
22081 fi
22082
22083 rm -f conftest.err conftest.$ac_ext
22084 fi
22085 if test $fstype = no; then
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092 #include <sys/mount.h>
22093
22094 _ACEOF
22095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22096   $EGREP "f_type;" >/dev/null 2>&1; then
22097   cat >>confdefs.h <<\_ACEOF
22098 #define FSTYPE_STATFS 1
22099 _ACEOF
22100  fstype=4.4BSD/OSF1
22101 fi
22102 rm -f conftest*
22103
22104 fi
22105 if test $fstype = no; then
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 #include <sys/mount.h>
22113 #include <sys/fs_types.h>
22114 _ACEOF
22115 if { (ac_try="$ac_cpp conftest.$ac_ext"
22116 case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22122   ac_status=$?
22123   grep -v '^ *+' conftest.er1 >conftest.err
22124   rm -f conftest.er1
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } >/dev/null && {
22128          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22129          test ! -s conftest.err
22130        }; then
22131   cat >>confdefs.h <<\_ACEOF
22132 #define FSTYPE_GETMNT 1
22133 _ACEOF
22134  fstype=Ultrix
22135 else
22136   echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22138
22139
22140 fi
22141
22142 rm -f conftest.err conftest.$ac_ext
22143 fi
22144 { echo "$as_me:$LINENO: result: $fstype" >&5
22145 echo "${ECHO_T}$fstype" >&6; }
22146
22147 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22148   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22149 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22150 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22151   echo $ECHO_N "(cached) $ECHO_C" >&6
22152 fi
22153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22154 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22155 else
22156   # Is the header compilable?
22157 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22158 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22159 cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h.  */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h.  */
22165 $ac_includes_default
22166 #include <sys/statvfs.h>
22167 _ACEOF
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172   *) ac_try_echo=$ac_try;;
22173 esac
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175   (eval "$ac_compile") 2>conftest.er1
22176   ac_status=$?
22177   grep -v '^ *+' conftest.er1 >conftest.err
22178   rm -f conftest.er1
22179   cat conftest.err >&5
22180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); } && {
22182          test -z "$ac_c_werror_flag" ||
22183          test ! -s conftest.err
22184        } && test -s conftest.$ac_objext; then
22185   ac_header_compiler=yes
22186 else
22187   echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190         ac_header_compiler=no
22191 fi
22192
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22195 echo "${ECHO_T}$ac_header_compiler" >&6; }
22196
22197 # Is the header present?
22198 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22199 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22200 cat >conftest.$ac_ext <<_ACEOF
22201 /* confdefs.h.  */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h.  */
22206 #include <sys/statvfs.h>
22207 _ACEOF
22208 if { (ac_try="$ac_cpp conftest.$ac_ext"
22209 case "(($ac_try" in
22210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211   *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22215   ac_status=$?
22216   grep -v '^ *+' conftest.er1 >conftest.err
22217   rm -f conftest.er1
22218   cat conftest.err >&5
22219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); } >/dev/null && {
22221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22222          test ! -s conftest.err
22223        }; then
22224   ac_header_preproc=yes
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229   ac_header_preproc=no
22230 fi
22231
22232 rm -f conftest.err conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22234 echo "${ECHO_T}$ac_header_preproc" >&6; }
22235
22236 # So?  What about this header?
22237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22238   yes:no: )
22239     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22240 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22241     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22242 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22243     ac_header_preproc=yes
22244     ;;
22245   no:yes:* )
22246     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22248     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22250     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22251 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22252     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22253 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22254     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22255 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22256     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22257 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22258
22259     ;;
22260 esac
22261 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22262 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22263 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22267 fi
22268 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22269 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22270
22271 fi
22272 if test $ac_cv_header_sys_statvfs_h = yes; then
22273
22274 cat >>confdefs.h <<\_ACEOF
22275 #define HAVE_SYS_STATVFS_H 1
22276 _ACEOF
22277
22278 fi
22279
22280
22281
22282 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22283 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22284 if test "${ac_cv_type_signal+set}" = set; then
22285   echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287   cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h.  */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h.  */
22293 #include <sys/types.h>
22294 #include <signal.h>
22295
22296 int
22297 main ()
22298 {
22299 return *(signal (0, 0)) (0) == 1;
22300   ;
22301   return 0;
22302 }
22303 _ACEOF
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308   *) ac_try_echo=$ac_try;;
22309 esac
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311   (eval "$ac_compile") 2>conftest.er1
22312   ac_status=$?
22313   grep -v '^ *+' conftest.er1 >conftest.err
22314   rm -f conftest.er1
22315   cat conftest.err >&5
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); } && {
22318          test -z "$ac_c_werror_flag" ||
22319          test ! -s conftest.err
22320        } && test -s conftest.$ac_objext; then
22321   ac_cv_type_signal=int
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326         ac_cv_type_signal=void
22327 fi
22328
22329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22330 fi
22331 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22332 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22333
22334 cat >>confdefs.h <<_ACEOF
22335 #define RETSIGTYPE $ac_cv_type_signal
22336 _ACEOF
22337
22338
22339
22340   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22341 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22342   if test "${bash_cv_signal_vintage+set}" = set; then
22343   echo $ECHO_N "(cached) $ECHO_C" >&6
22344 else
22345
22346     cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h.  */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h.  */
22352 #include <signal.h>
22353 int
22354 main ()
22355 {
22356
22357       sigset_t ss;
22358       struct sigaction sa;
22359       sigemptyset(&ss); sigsuspend(&ss);
22360       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22361       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22362
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (ac_try="$ac_link"
22369 case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_link") 2>conftest.er1
22375   ac_status=$?
22376   grep -v '^ *+' conftest.er1 >conftest.err
22377   rm -f conftest.er1
22378   cat conftest.err >&5
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); } && {
22381          test -z "$ac_c_werror_flag" ||
22382          test ! -s conftest.err
22383        } && test -s conftest$ac_exeext &&
22384        $as_test_x conftest$ac_exeext; then
22385   bash_cv_signal_vintage="posix"
22386 else
22387   echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22389
22390
22391       cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h.  */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h.  */
22397 #include <signal.h>
22398 int
22399 main ()
22400 {
22401
22402           int mask = sigmask(SIGINT);
22403           sigsetmask(mask); sigblock(mask); sigpause(mask);
22404
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 rm -f conftest.$ac_objext conftest$ac_exeext
22410 if { (ac_try="$ac_link"
22411 case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416   (eval "$ac_link") 2>conftest.er1
22417   ac_status=$?
22418   grep -v '^ *+' conftest.er1 >conftest.err
22419   rm -f conftest.er1
22420   cat conftest.err >&5
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); } && {
22423          test -z "$ac_c_werror_flag" ||
22424          test ! -s conftest.err
22425        } && test -s conftest$ac_exeext &&
22426        $as_test_x conftest$ac_exeext; then
22427   bash_cv_signal_vintage="4.2bsd"
22428 else
22429   echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432
22433         cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h.  */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h.  */
22439
22440           #include <signal.h>
22441           RETSIGTYPE foo() { }
22442 int
22443 main ()
22444 {
22445
22446                   int mask = sigmask(SIGINT);
22447                   sigset(SIGINT, foo); sigrelse(SIGINT);
22448                   sighold(SIGINT); sigpause(SIGINT);
22449
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 rm -f conftest.$ac_objext conftest$ac_exeext
22455 if { (ac_try="$ac_link"
22456 case "(($ac_try" in
22457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458   *) ac_try_echo=$ac_try;;
22459 esac
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461   (eval "$ac_link") 2>conftest.er1
22462   ac_status=$?
22463   grep -v '^ *+' conftest.er1 >conftest.err
22464   rm -f conftest.er1
22465   cat conftest.err >&5
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); } && {
22468          test -z "$ac_c_werror_flag" ||
22469          test ! -s conftest.err
22470        } && test -s conftest$ac_exeext &&
22471        $as_test_x conftest$ac_exeext; then
22472   bash_cv_signal_vintage="svr3"
22473 else
22474   echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477         bash_cv_signal_vintage="v7"
22478
22479 fi
22480
22481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22482       conftest$ac_exeext conftest.$ac_ext
22483
22484 fi
22485
22486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22487       conftest$ac_exeext conftest.$ac_ext
22488
22489 fi
22490
22491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22492       conftest$ac_exeext conftest.$ac_ext
22493
22494 fi
22495
22496   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22497 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22498   if test "$bash_cv_signal_vintage" = "posix"; then
22499     cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_POSIX_SIGNALS 1
22501 _ACEOF
22502
22503   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22504     cat >>confdefs.h <<\_ACEOF
22505 #define HAVE_BSD_SIGNALS 1
22506 _ACEOF
22507
22508   elif test "$bash_cv_signal_vintage" = "svr3"; then
22509     cat >>confdefs.h <<\_ACEOF
22510 #define HAVE_USG_SIGHOLD 1
22511 _ACEOF
22512
22513   fi
22514
22515 { echo "$as_me:$LINENO: checking for mode_t" >&5
22516 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22517 if test "${ac_cv_type_mode_t+set}" = set; then
22518   echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520   cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 $ac_includes_default
22527 typedef mode_t ac__type_new_;
22528 int
22529 main ()
22530 {
22531 if ((ac__type_new_ *) 0)
22532   return 0;
22533 if (sizeof (ac__type_new_))
22534   return 0;
22535   ;
22536   return 0;
22537 }
22538 _ACEOF
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543   *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546   (eval "$ac_compile") 2>conftest.er1
22547   ac_status=$?
22548   grep -v '^ *+' conftest.er1 >conftest.err
22549   rm -f conftest.er1
22550   cat conftest.err >&5
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } && {
22553          test -z "$ac_c_werror_flag" ||
22554          test ! -s conftest.err
22555        } && test -s conftest.$ac_objext; then
22556   ac_cv_type_mode_t=yes
22557 else
22558   echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561         ac_cv_type_mode_t=no
22562 fi
22563
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 fi
22566 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22567 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22568 if test $ac_cv_type_mode_t = yes; then
22569   :
22570 else
22571
22572 cat >>confdefs.h <<_ACEOF
22573 #define mode_t int
22574 _ACEOF
22575
22576 fi
22577
22578 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22579 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22580 if test "${ac_cv_type_uid_t+set}" = set; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583   cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 #include <sys/types.h>
22590
22591 _ACEOF
22592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22593   $EGREP "uid_t" >/dev/null 2>&1; then
22594   ac_cv_type_uid_t=yes
22595 else
22596   ac_cv_type_uid_t=no
22597 fi
22598 rm -f conftest*
22599
22600 fi
22601 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22602 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22603 if test $ac_cv_type_uid_t = no; then
22604
22605 cat >>confdefs.h <<\_ACEOF
22606 #define uid_t int
22607 _ACEOF
22608
22609
22610 cat >>confdefs.h <<\_ACEOF
22611 #define gid_t int
22612 _ACEOF
22613
22614 fi
22615
22616 { echo "$as_me:$LINENO: checking for size_t" >&5
22617 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22618 if test "${ac_cv_type_size_t+set}" = set; then
22619   echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621   cat >conftest.$ac_ext <<_ACEOF
22622 /* confdefs.h.  */
22623 _ACEOF
22624 cat confdefs.h >>conftest.$ac_ext
22625 cat >>conftest.$ac_ext <<_ACEOF
22626 /* end confdefs.h.  */
22627 $ac_includes_default
22628 typedef size_t ac__type_new_;
22629 int
22630 main ()
22631 {
22632 if ((ac__type_new_ *) 0)
22633   return 0;
22634 if (sizeof (ac__type_new_))
22635   return 0;
22636   ;
22637   return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext
22641 if { (ac_try="$ac_compile"
22642 case "(($ac_try" in
22643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644   *) ac_try_echo=$ac_try;;
22645 esac
22646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647   (eval "$ac_compile") 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } && {
22654          test -z "$ac_c_werror_flag" ||
22655          test ! -s conftest.err
22656        } && test -s conftest.$ac_objext; then
22657   ac_cv_type_size_t=yes
22658 else
22659   echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22661
22662         ac_cv_type_size_t=no
22663 fi
22664
22665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666 fi
22667 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22668 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22669 if test $ac_cv_type_size_t = yes; then
22670   :
22671 else
22672
22673 cat >>confdefs.h <<_ACEOF
22674 #define size_t unsigned int
22675 _ACEOF
22676
22677 fi
22678
22679 { echo "$as_me:$LINENO: checking for pid_t" >&5
22680 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22681 if test "${ac_cv_type_pid_t+set}" = set; then
22682   echo $ECHO_N "(cached) $ECHO_C" >&6
22683 else
22684   cat >conftest.$ac_ext <<_ACEOF
22685 /* confdefs.h.  */
22686 _ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h.  */
22690 $ac_includes_default
22691 typedef pid_t ac__type_new_;
22692 int
22693 main ()
22694 {
22695 if ((ac__type_new_ *) 0)
22696   return 0;
22697 if (sizeof (ac__type_new_))
22698   return 0;
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext
22704 if { (ac_try="$ac_compile"
22705 case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_compile") 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } && {
22717          test -z "$ac_c_werror_flag" ||
22718          test ! -s conftest.err
22719        } && test -s conftest.$ac_objext; then
22720   ac_cv_type_pid_t=yes
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725         ac_cv_type_pid_t=no
22726 fi
22727
22728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22729 fi
22730 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22731 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22732 if test $ac_cv_type_pid_t = yes; then
22733   :
22734 else
22735
22736 cat >>confdefs.h <<_ACEOF
22737 #define pid_t int
22738 _ACEOF
22739
22740 fi
22741
22742 { echo "$as_me:$LINENO: checking for off_t" >&5
22743 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22744 if test "${ac_cv_type_off_t+set}" = set; then
22745   echo $ECHO_N "(cached) $ECHO_C" >&6
22746 else
22747   cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753 $ac_includes_default
22754 typedef off_t ac__type_new_;
22755 int
22756 main ()
22757 {
22758 if ((ac__type_new_ *) 0)
22759   return 0;
22760 if (sizeof (ac__type_new_))
22761   return 0;
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770   *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773   (eval "$ac_compile") 2>conftest.er1
22774   ac_status=$?
22775   grep -v '^ *+' conftest.er1 >conftest.err
22776   rm -f conftest.er1
22777   cat conftest.err >&5
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); } && {
22780          test -z "$ac_c_werror_flag" ||
22781          test ! -s conftest.err
22782        } && test -s conftest.$ac_objext; then
22783   ac_cv_type_off_t=yes
22784 else
22785   echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788         ac_cv_type_off_t=no
22789 fi
22790
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 fi
22793 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22794 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22795 if test $ac_cv_type_off_t = yes; then
22796   :
22797 else
22798
22799 cat >>confdefs.h <<_ACEOF
22800 #define off_t long int
22801 _ACEOF
22802
22803 fi
22804
22805 { echo "$as_me:$LINENO: checking for ino_t" >&5
22806 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22807 if test "${ac_cv_type_ino_t+set}" = set; then
22808   echo $ECHO_N "(cached) $ECHO_C" >&6
22809 else
22810   cat >conftest.$ac_ext <<_ACEOF
22811 /* confdefs.h.  */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h.  */
22816 $ac_includes_default
22817 typedef ino_t ac__type_new_;
22818 int
22819 main ()
22820 {
22821 if ((ac__type_new_ *) 0)
22822   return 0;
22823 if (sizeof (ac__type_new_))
22824   return 0;
22825   ;
22826   return 0;
22827 }
22828 _ACEOF
22829 rm -f conftest.$ac_objext
22830 if { (ac_try="$ac_compile"
22831 case "(($ac_try" in
22832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833   *) ac_try_echo=$ac_try;;
22834 esac
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836   (eval "$ac_compile") 2>conftest.er1
22837   ac_status=$?
22838   grep -v '^ *+' conftest.er1 >conftest.err
22839   rm -f conftest.er1
22840   cat conftest.err >&5
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); } && {
22843          test -z "$ac_c_werror_flag" ||
22844          test ! -s conftest.err
22845        } && test -s conftest.$ac_objext; then
22846   ac_cv_type_ino_t=yes
22847 else
22848   echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851         ac_cv_type_ino_t=no
22852 fi
22853
22854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22855 fi
22856 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22857 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22858 if test $ac_cv_type_ino_t = yes; then
22859   :
22860 else
22861
22862 cat >>confdefs.h <<_ACEOF
22863 #define ino_t unsigned long
22864 _ACEOF
22865
22866 fi
22867
22868 { echo "$as_me:$LINENO: checking for dev_t" >&5
22869 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22870 if test "${ac_cv_type_dev_t+set}" = set; then
22871   echo $ECHO_N "(cached) $ECHO_C" >&6
22872 else
22873   cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h.  */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h.  */
22879 $ac_includes_default
22880 typedef dev_t ac__type_new_;
22881 int
22882 main ()
22883 {
22884 if ((ac__type_new_ *) 0)
22885   return 0;
22886 if (sizeof (ac__type_new_))
22887   return 0;
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896   *) ac_try_echo=$ac_try;;
22897 esac
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899   (eval "$ac_compile") 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } && {
22906          test -z "$ac_c_werror_flag" ||
22907          test ! -s conftest.err
22908        } && test -s conftest.$ac_objext; then
22909   ac_cv_type_dev_t=yes
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914         ac_cv_type_dev_t=no
22915 fi
22916
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918 fi
22919 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22920 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22921 if test $ac_cv_type_dev_t = yes; then
22922   :
22923 else
22924
22925 cat >>confdefs.h <<_ACEOF
22926 #define dev_t unsigned long
22927 _ACEOF
22928
22929 fi
22930
22931 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22932 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22933 if test "${ac_cv_type_daddr_t+set}" = set; then
22934   echo $ECHO_N "(cached) $ECHO_C" >&6
22935 else
22936   cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h.  */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h.  */
22942 $ac_includes_default
22943 typedef daddr_t ac__type_new_;
22944 int
22945 main ()
22946 {
22947 if ((ac__type_new_ *) 0)
22948   return 0;
22949 if (sizeof (ac__type_new_))
22950   return 0;
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 rm -f conftest.$ac_objext
22956 if { (ac_try="$ac_compile"
22957 case "(($ac_try" in
22958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959   *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962   (eval "$ac_compile") 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && {
22969          test -z "$ac_c_werror_flag" ||
22970          test ! -s conftest.err
22971        } && test -s conftest.$ac_objext; then
22972   ac_cv_type_daddr_t=yes
22973 else
22974   echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977         ac_cv_type_daddr_t=no
22978 fi
22979
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981 fi
22982 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22983 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22984 if test $ac_cv_type_daddr_t = yes; then
22985   :
22986 else
22987
22988 cat >>confdefs.h <<_ACEOF
22989 #define daddr_t long
22990 _ACEOF
22991
22992 fi
22993
22994 { echo "$as_me:$LINENO: checking for major_t" >&5
22995 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22996 if test "${ac_cv_type_major_t+set}" = set; then
22997   echo $ECHO_N "(cached) $ECHO_C" >&6
22998 else
22999   cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h.  */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h.  */
23005 $ac_includes_default
23006 typedef major_t ac__type_new_;
23007 int
23008 main ()
23009 {
23010 if ((ac__type_new_ *) 0)
23011   return 0;
23012 if (sizeof (ac__type_new_))
23013   return 0;
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 rm -f conftest.$ac_objext
23019 if { (ac_try="$ac_compile"
23020 case "(($ac_try" in
23021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022   *) ac_try_echo=$ac_try;;
23023 esac
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025   (eval "$ac_compile") 2>conftest.er1
23026   ac_status=$?
23027   grep -v '^ *+' conftest.er1 >conftest.err
23028   rm -f conftest.er1
23029   cat conftest.err >&5
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); } && {
23032          test -z "$ac_c_werror_flag" ||
23033          test ! -s conftest.err
23034        } && test -s conftest.$ac_objext; then
23035   ac_cv_type_major_t=yes
23036 else
23037   echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23039
23040         ac_cv_type_major_t=no
23041 fi
23042
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044 fi
23045 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23046 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23047 if test $ac_cv_type_major_t = yes; then
23048   :
23049 else
23050
23051 cat >>confdefs.h <<_ACEOF
23052 #define major_t int
23053 _ACEOF
23054
23055 fi
23056
23057 { echo "$as_me:$LINENO: checking for minor_t" >&5
23058 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23059 if test "${ac_cv_type_minor_t+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062   cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h.  */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h.  */
23068 $ac_includes_default
23069 typedef minor_t ac__type_new_;
23070 int
23071 main ()
23072 {
23073 if ((ac__type_new_ *) 0)
23074   return 0;
23075 if (sizeof (ac__type_new_))
23076   return 0;
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 rm -f conftest.$ac_objext
23082 if { (ac_try="$ac_compile"
23083 case "(($ac_try" in
23084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085   *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088   (eval "$ac_compile") 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } && {
23095          test -z "$ac_c_werror_flag" ||
23096          test ! -s conftest.err
23097        } && test -s conftest.$ac_objext; then
23098   ac_cv_type_minor_t=yes
23099 else
23100   echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23102
23103         ac_cv_type_minor_t=no
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107 fi
23108 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23109 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23110 if test $ac_cv_type_minor_t = yes; then
23111   :
23112 else
23113
23114 cat >>confdefs.h <<_ACEOF
23115 #define minor_t int
23116 _ACEOF
23117
23118 fi
23119
23120 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23121 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23122 if test "${ac_cv_type_ssize_t+set}" = set; then
23123   echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125   cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131 $ac_includes_default
23132 typedef ssize_t ac__type_new_;
23133 int
23134 main ()
23135 {
23136 if ((ac__type_new_ *) 0)
23137   return 0;
23138 if (sizeof (ac__type_new_))
23139   return 0;
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest.$ac_objext
23145 if { (ac_try="$ac_compile"
23146 case "(($ac_try" in
23147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148   *) ac_try_echo=$ac_try;;
23149 esac
23150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23151   (eval "$ac_compile") 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } && {
23158          test -z "$ac_c_werror_flag" ||
23159          test ! -s conftest.err
23160        } && test -s conftest.$ac_objext; then
23161   ac_cv_type_ssize_t=yes
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166         ac_cv_type_ssize_t=no
23167 fi
23168
23169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 fi
23171 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23172 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23173 if test $ac_cv_type_ssize_t = yes; then
23174   :
23175 else
23176
23177 cat >>confdefs.h <<_ACEOF
23178 #define ssize_t int
23179 _ACEOF
23180
23181 fi
23182
23183 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23184 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23185 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23194 $ac_includes_default
23195 int
23196 main ()
23197 {
23198 static struct stat ac_aggr;
23199 if (ac_aggr.st_blocks)
23200 return 0;
23201   ;
23202   return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest.$ac_objext
23206 if { (ac_try="$ac_compile"
23207 case "(($ac_try" in
23208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209   *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212   (eval "$ac_compile") 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } && {
23219          test -z "$ac_c_werror_flag" ||
23220          test ! -s conftest.err
23221        } && test -s conftest.$ac_objext; then
23222   ac_cv_member_struct_stat_st_blocks=yes
23223 else
23224   echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23226
23227         cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h.  */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h.  */
23233 $ac_includes_default
23234 int
23235 main ()
23236 {
23237 static struct stat ac_aggr;
23238 if (sizeof ac_aggr.st_blocks)
23239 return 0;
23240   ;
23241   return 0;
23242 }
23243 _ACEOF
23244 rm -f conftest.$ac_objext
23245 if { (ac_try="$ac_compile"
23246 case "(($ac_try" in
23247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248   *) ac_try_echo=$ac_try;;
23249 esac
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251   (eval "$ac_compile") 2>conftest.er1
23252   ac_status=$?
23253   grep -v '^ *+' conftest.er1 >conftest.err
23254   rm -f conftest.er1
23255   cat conftest.err >&5
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); } && {
23258          test -z "$ac_c_werror_flag" ||
23259          test ! -s conftest.err
23260        } && test -s conftest.$ac_objext; then
23261   ac_cv_member_struct_stat_st_blocks=yes
23262 else
23263   echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23265
23266         ac_cv_member_struct_stat_st_blocks=no
23267 fi
23268
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270 fi
23271
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 fi
23274 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23275 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23276 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23277
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23280 _ACEOF
23281
23282
23283 cat >>confdefs.h <<\_ACEOF
23284 #define HAVE_ST_BLOCKS 1
23285 _ACEOF
23286
23287 else
23288   case " $LIBOBJS " in
23289   *" fileblocks.$ac_objext "* ) ;;
23290   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23291  ;;
23292 esac
23293
23294 fi
23295
23296
23297 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23298 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23299 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23300   echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302   cat >conftest.$ac_ext <<_ACEOF
23303 /* confdefs.h.  */
23304 _ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h.  */
23308 $ac_includes_default
23309 int
23310 main ()
23311 {
23312 static struct stat ac_aggr;
23313 if (ac_aggr.st_rdev)
23314 return 0;
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_compile") 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } && {
23333          test -z "$ac_c_werror_flag" ||
23334          test ! -s conftest.err
23335        } && test -s conftest.$ac_objext; then
23336   ac_cv_member_struct_stat_st_rdev=yes
23337 else
23338   echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
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 $ac_includes_default
23348 int
23349 main ()
23350 {
23351 static struct stat ac_aggr;
23352 if (sizeof ac_aggr.st_rdev)
23353 return 0;
23354   ;
23355   return 0;
23356 }
23357 _ACEOF
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362   *) ac_try_echo=$ac_try;;
23363 esac
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365   (eval "$ac_compile") 2>conftest.er1
23366   ac_status=$?
23367   grep -v '^ *+' conftest.er1 >conftest.err
23368   rm -f conftest.er1
23369   cat conftest.err >&5
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); } && {
23372          test -z "$ac_c_werror_flag" ||
23373          test ! -s conftest.err
23374        } && test -s conftest.$ac_objext; then
23375   ac_cv_member_struct_stat_st_rdev=yes
23376 else
23377   echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380         ac_cv_member_struct_stat_st_rdev=no
23381 fi
23382
23383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23384 fi
23385
23386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23387 fi
23388 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23389 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23390 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define HAVE_STRUCT_STAT_ST_RDEV 1
23394 _ACEOF
23395
23396
23397 cat >>confdefs.h <<\_ACEOF
23398 #define HAVE_ST_RDEV 1
23399 _ACEOF
23400
23401 fi
23402
23403
23404 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23405 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23406 if test "${ac_cv_struct_tm+set}" = set; then
23407   echo $ECHO_N "(cached) $ECHO_C" >&6
23408 else
23409   cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415 #include <sys/types.h>
23416 #include <time.h>
23417
23418 int
23419 main ()
23420 {
23421 struct tm tm;
23422                                      int *p = &tm.tm_sec;
23423                                      return !p;
23424   ;
23425   return 0;
23426 }
23427 _ACEOF
23428 rm -f conftest.$ac_objext
23429 if { (ac_try="$ac_compile"
23430 case "(($ac_try" in
23431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432   *) ac_try_echo=$ac_try;;
23433 esac
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435   (eval "$ac_compile") 2>conftest.er1
23436   ac_status=$?
23437   grep -v '^ *+' conftest.er1 >conftest.err
23438   rm -f conftest.er1
23439   cat conftest.err >&5
23440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); } && {
23442          test -z "$ac_c_werror_flag" ||
23443          test ! -s conftest.err
23444        } && test -s conftest.$ac_objext; then
23445   ac_cv_struct_tm=time.h
23446 else
23447   echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23449
23450         ac_cv_struct_tm=sys/time.h
23451 fi
23452
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 fi
23455 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23456 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23457 if test $ac_cv_struct_tm = sys/time.h; then
23458
23459 cat >>confdefs.h <<\_ACEOF
23460 #define TM_IN_SYS_TIME 1
23461 _ACEOF
23462
23463 fi
23464
23465 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23466 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23467 if test "${ac_cv_c_const+set}" = set; then
23468   echo $ECHO_N "(cached) $ECHO_C" >&6
23469 else
23470   cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476
23477 int
23478 main ()
23479 {
23480 /* FIXME: Include the comments suggested by Paul. */
23481 #ifndef __cplusplus
23482   /* Ultrix mips cc rejects this.  */
23483   typedef int charset[2];
23484   const charset cs;
23485   /* SunOS 4.1.1 cc rejects this.  */
23486   char const *const *pcpcc;
23487   char **ppc;
23488   /* NEC SVR4.0.2 mips cc rejects this.  */
23489   struct point {int x, y;};
23490   static struct point const zero = {0,0};
23491   /* AIX XL C 1.02.0.0 rejects this.
23492      It does not let you subtract one const X* pointer from another in
23493      an arm of an if-expression whose if-part is not a constant
23494      expression */
23495   const char *g = "string";
23496   pcpcc = &g + (g ? g-g : 0);
23497   /* HPUX 7.0 cc rejects these. */
23498   ++pcpcc;
23499   ppc = (char**) pcpcc;
23500   pcpcc = (char const *const *) ppc;
23501   { /* SCO 3.2v4 cc rejects this.  */
23502     char *t;
23503     char const *s = 0 ? (char *) 0 : (char const *) 0;
23504
23505     *t++ = 0;
23506     if (s) return 0;
23507   }
23508   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23509     int x[] = {25, 17};
23510     const int *foo = &x[0];
23511     ++foo;
23512   }
23513   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23514     typedef const int *iptr;
23515     iptr p = 0;
23516     ++p;
23517   }
23518   { /* AIX XL C 1.02.0.0 rejects this saying
23519        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23520     struct s { int j; const int *ap[3]; };
23521     struct s *b; b->j = 5;
23522   }
23523   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23524     const int foo = 10;
23525     if (!foo) return 0;
23526   }
23527   return !cs[0] && !zero.x;
23528 #endif
23529
23530   ;
23531   return 0;
23532 }
23533 _ACEOF
23534 rm -f conftest.$ac_objext
23535 if { (ac_try="$ac_compile"
23536 case "(($ac_try" in
23537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538   *) ac_try_echo=$ac_try;;
23539 esac
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541   (eval "$ac_compile") 2>conftest.er1
23542   ac_status=$?
23543   grep -v '^ *+' conftest.er1 >conftest.err
23544   rm -f conftest.er1
23545   cat conftest.err >&5
23546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); } && {
23548          test -z "$ac_c_werror_flag" ||
23549          test ! -s conftest.err
23550        } && test -s conftest.$ac_objext; then
23551   ac_cv_c_const=yes
23552 else
23553   echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23555
23556         ac_cv_c_const=no
23557 fi
23558
23559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560 fi
23561 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23562 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23563 if test $ac_cv_c_const = no; then
23564
23565 cat >>confdefs.h <<\_ACEOF
23566 #define const
23567 _ACEOF
23568
23569 fi
23570
23571
23572
23573 { echo "$as_me:$LINENO: checking for char" >&5
23574 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23575 if test "${ac_cv_type_char+set}" = set; then
23576   echo $ECHO_N "(cached) $ECHO_C" >&6
23577 else
23578   cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584 $ac_includes_default
23585 typedef char ac__type_new_;
23586 int
23587 main ()
23588 {
23589 if ((ac__type_new_ *) 0)
23590   return 0;
23591 if (sizeof (ac__type_new_))
23592   return 0;
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext
23598 if { (ac_try="$ac_compile"
23599 case "(($ac_try" in
23600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601   *) ac_try_echo=$ac_try;;
23602 esac
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604   (eval "$ac_compile") 2>conftest.er1
23605   ac_status=$?
23606   grep -v '^ *+' conftest.er1 >conftest.err
23607   rm -f conftest.er1
23608   cat conftest.err >&5
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } && {
23611          test -z "$ac_c_werror_flag" ||
23612          test ! -s conftest.err
23613        } && test -s conftest.$ac_objext; then
23614   ac_cv_type_char=yes
23615 else
23616   echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619         ac_cv_type_char=no
23620 fi
23621
23622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23623 fi
23624 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23625 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23626
23627 # The cast to long int works around a bug in the HP C Compiler
23628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23630 # This bug is HP SR number 8606223364.
23631 { echo "$as_me:$LINENO: checking size of char" >&5
23632 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23633 if test "${ac_cv_sizeof_char+set}" = set; then
23634   echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636   if test "$cross_compiling" = yes; then
23637   # Depending upon the size, compute the lo and hi bounds.
23638 cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644 $ac_includes_default
23645    typedef char ac__type_sizeof_;
23646 int
23647 main ()
23648 {
23649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23650 test_array [0] = 0
23651
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_compile") 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } && {
23670          test -z "$ac_c_werror_flag" ||
23671          test ! -s conftest.err
23672        } && test -s conftest.$ac_objext; then
23673   ac_lo=0 ac_mid=0
23674   while :; do
23675     cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h.  */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h.  */
23681 $ac_includes_default
23682    typedef char ac__type_sizeof_;
23683 int
23684 main ()
23685 {
23686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23687 test_array [0] = 0
23688
23689   ;
23690   return 0;
23691 }
23692 _ACEOF
23693 rm -f conftest.$ac_objext
23694 if { (ac_try="$ac_compile"
23695 case "(($ac_try" in
23696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697   *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700   (eval "$ac_compile") 2>conftest.er1
23701   ac_status=$?
23702   grep -v '^ *+' conftest.er1 >conftest.err
23703   rm -f conftest.er1
23704   cat conftest.err >&5
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); } && {
23707          test -z "$ac_c_werror_flag" ||
23708          test ! -s conftest.err
23709        } && test -s conftest.$ac_objext; then
23710   ac_hi=$ac_mid; break
23711 else
23712   echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715         ac_lo=`expr $ac_mid + 1`
23716                         if test $ac_lo -le $ac_mid; then
23717                           ac_lo= ac_hi=
23718                           break
23719                         fi
23720                         ac_mid=`expr 2 '*' $ac_mid + 1`
23721 fi
23722
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724   done
23725 else
23726   echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23728
23729         cat >conftest.$ac_ext <<_ACEOF
23730 /* confdefs.h.  */
23731 _ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h.  */
23735 $ac_includes_default
23736    typedef char ac__type_sizeof_;
23737 int
23738 main ()
23739 {
23740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23741 test_array [0] = 0
23742
23743   ;
23744   return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751   *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754   (eval "$ac_compile") 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } && {
23761          test -z "$ac_c_werror_flag" ||
23762          test ! -s conftest.err
23763        } && test -s conftest.$ac_objext; then
23764   ac_hi=-1 ac_mid=-1
23765   while :; do
23766     cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772 $ac_includes_default
23773    typedef char ac__type_sizeof_;
23774 int
23775 main ()
23776 {
23777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23778 test_array [0] = 0
23779
23780   ;
23781   return 0;
23782 }
23783 _ACEOF
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788   *) ac_try_echo=$ac_try;;
23789 esac
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791   (eval "$ac_compile") 2>conftest.er1
23792   ac_status=$?
23793   grep -v '^ *+' conftest.er1 >conftest.err
23794   rm -f conftest.er1
23795   cat conftest.err >&5
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); } && {
23798          test -z "$ac_c_werror_flag" ||
23799          test ! -s conftest.err
23800        } && test -s conftest.$ac_objext; then
23801   ac_lo=$ac_mid; break
23802 else
23803   echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806         ac_hi=`expr '(' $ac_mid ')' - 1`
23807                         if test $ac_mid -le $ac_hi; then
23808                           ac_lo= ac_hi=
23809                           break
23810                         fi
23811                         ac_mid=`expr 2 '*' $ac_mid`
23812 fi
23813
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23815   done
23816 else
23817   echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23819
23820         ac_lo= ac_hi=
23821 fi
23822
23823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23824 fi
23825
23826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23827 # Binary search between lo and hi bounds.
23828 while test "x$ac_lo" != "x$ac_hi"; do
23829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23830   cat >conftest.$ac_ext <<_ACEOF
23831 /* confdefs.h.  */
23832 _ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h.  */
23836 $ac_includes_default
23837    typedef char ac__type_sizeof_;
23838 int
23839 main ()
23840 {
23841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23842 test_array [0] = 0
23843
23844   ;
23845   return 0;
23846 }
23847 _ACEOF
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852   *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855   (eval "$ac_compile") 2>conftest.er1
23856   ac_status=$?
23857   grep -v '^ *+' conftest.er1 >conftest.err
23858   rm -f conftest.er1
23859   cat conftest.err >&5
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); } && {
23862          test -z "$ac_c_werror_flag" ||
23863          test ! -s conftest.err
23864        } && test -s conftest.$ac_objext; then
23865   ac_hi=$ac_mid
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870         ac_lo=`expr '(' $ac_mid ')' + 1`
23871 fi
23872
23873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23874 done
23875 case $ac_lo in
23876 ?*) ac_cv_sizeof_char=$ac_lo;;
23877 '') if test "$ac_cv_type_char" = yes; then
23878      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23879 See \`config.log' for more details." >&5
23880 echo "$as_me: error: cannot compute sizeof (char)
23881 See \`config.log' for more details." >&2;}
23882    { (exit 77); exit 77; }; }
23883    else
23884      ac_cv_sizeof_char=0
23885    fi ;;
23886 esac
23887 else
23888   cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894 $ac_includes_default
23895    typedef char ac__type_sizeof_;
23896 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23897 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23898 #include <stdio.h>
23899 #include <stdlib.h>
23900 int
23901 main ()
23902 {
23903
23904   FILE *f = fopen ("conftest.val", "w");
23905   if (! f)
23906     return 1;
23907   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23908     {
23909       long int i = longval ();
23910       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23911         return 1;
23912       fprintf (f, "%ld\n", i);
23913     }
23914   else
23915     {
23916       unsigned long int i = ulongval ();
23917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23918         return 1;
23919       fprintf (f, "%lu\n", i);
23920     }
23921   return ferror (f) || fclose (f) != 0;
23922
23923   ;
23924   return 0;
23925 }
23926 _ACEOF
23927 rm -f conftest$ac_exeext
23928 if { (ac_try="$ac_link"
23929 case "(($ac_try" in
23930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931   *) ac_try_echo=$ac_try;;
23932 esac
23933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934   (eval "$ac_link") 2>&5
23935   ac_status=$?
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23938   { (case "(($ac_try" in
23939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940   *) ac_try_echo=$ac_try;;
23941 esac
23942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943   (eval "$ac_try") 2>&5
23944   ac_status=$?
23945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946   (exit $ac_status); }; }; then
23947   ac_cv_sizeof_char=`cat conftest.val`
23948 else
23949   echo "$as_me: program exited with status $ac_status" >&5
23950 echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23952
23953 ( exit $ac_status )
23954 if test "$ac_cv_type_char" = yes; then
23955      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23956 See \`config.log' for more details." >&5
23957 echo "$as_me: error: cannot compute sizeof (char)
23958 See \`config.log' for more details." >&2;}
23959    { (exit 77); exit 77; }; }
23960    else
23961      ac_cv_sizeof_char=0
23962    fi
23963 fi
23964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23965 fi
23966 rm -f conftest.val
23967 fi
23968 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23969 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23970
23971
23972
23973 cat >>confdefs.h <<_ACEOF
23974 #define SIZEOF_CHAR $ac_cv_sizeof_char
23975 _ACEOF
23976
23977
23978 { echo "$as_me:$LINENO: checking for short int" >&5
23979 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23980 if test "${ac_cv_type_short_int+set}" = set; then
23981   echo $ECHO_N "(cached) $ECHO_C" >&6
23982 else
23983   cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h.  */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h.  */
23989 $ac_includes_default
23990 typedef short int ac__type_new_;
23991 int
23992 main ()
23993 {
23994 if ((ac__type_new_ *) 0)
23995   return 0;
23996 if (sizeof (ac__type_new_))
23997   return 0;
23998   ;
23999   return 0;
24000 }
24001 _ACEOF
24002 rm -f conftest.$ac_objext
24003 if { (ac_try="$ac_compile"
24004 case "(($ac_try" in
24005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006   *) ac_try_echo=$ac_try;;
24007 esac
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009   (eval "$ac_compile") 2>conftest.er1
24010   ac_status=$?
24011   grep -v '^ *+' conftest.er1 >conftest.err
24012   rm -f conftest.er1
24013   cat conftest.err >&5
24014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015   (exit $ac_status); } && {
24016          test -z "$ac_c_werror_flag" ||
24017          test ! -s conftest.err
24018        } && test -s conftest.$ac_objext; then
24019   ac_cv_type_short_int=yes
24020 else
24021   echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24023
24024         ac_cv_type_short_int=no
24025 fi
24026
24027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24028 fi
24029 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24030 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24031
24032 # The cast to long int works around a bug in the HP C Compiler
24033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24035 # This bug is HP SR number 8606223364.
24036 { echo "$as_me:$LINENO: checking size of short int" >&5
24037 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24038 if test "${ac_cv_sizeof_short_int+set}" = set; then
24039   echo $ECHO_N "(cached) $ECHO_C" >&6
24040 else
24041   if test "$cross_compiling" = yes; then
24042   # Depending upon the size, compute the lo and hi bounds.
24043 cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h.  */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h.  */
24049 $ac_includes_default
24050    typedef short int ac__type_sizeof_;
24051 int
24052 main ()
24053 {
24054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24055 test_array [0] = 0
24056
24057   ;
24058   return 0;
24059 }
24060 _ACEOF
24061 rm -f conftest.$ac_objext
24062 if { (ac_try="$ac_compile"
24063 case "(($ac_try" in
24064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065   *) ac_try_echo=$ac_try;;
24066 esac
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068   (eval "$ac_compile") 2>conftest.er1
24069   ac_status=$?
24070   grep -v '^ *+' conftest.er1 >conftest.err
24071   rm -f conftest.er1
24072   cat conftest.err >&5
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); } && {
24075          test -z "$ac_c_werror_flag" ||
24076          test ! -s conftest.err
24077        } && test -s conftest.$ac_objext; then
24078   ac_lo=0 ac_mid=0
24079   while :; do
24080     cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086 $ac_includes_default
24087    typedef short int ac__type_sizeof_;
24088 int
24089 main ()
24090 {
24091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24092 test_array [0] = 0
24093
24094   ;
24095   return 0;
24096 }
24097 _ACEOF
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102   *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105   (eval "$ac_compile") 2>conftest.er1
24106   ac_status=$?
24107   grep -v '^ *+' conftest.er1 >conftest.err
24108   rm -f conftest.er1
24109   cat conftest.err >&5
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); } && {
24112          test -z "$ac_c_werror_flag" ||
24113          test ! -s conftest.err
24114        } && test -s conftest.$ac_objext; then
24115   ac_hi=$ac_mid; break
24116 else
24117   echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120         ac_lo=`expr $ac_mid + 1`
24121                         if test $ac_lo -le $ac_mid; then
24122                           ac_lo= ac_hi=
24123                           break
24124                         fi
24125                         ac_mid=`expr 2 '*' $ac_mid + 1`
24126 fi
24127
24128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24129   done
24130 else
24131   echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24133
24134         cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24140 $ac_includes_default
24141    typedef short int ac__type_sizeof_;
24142 int
24143 main ()
24144 {
24145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24146 test_array [0] = 0
24147
24148   ;
24149   return 0;
24150 }
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156   *) ac_try_echo=$ac_try;;
24157 esac
24158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24159   (eval "$ac_compile") 2>conftest.er1
24160   ac_status=$?
24161   grep -v '^ *+' conftest.er1 >conftest.err
24162   rm -f conftest.er1
24163   cat conftest.err >&5
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); } && {
24166          test -z "$ac_c_werror_flag" ||
24167          test ! -s conftest.err
24168        } && test -s conftest.$ac_objext; then
24169   ac_hi=-1 ac_mid=-1
24170   while :; do
24171     cat >conftest.$ac_ext <<_ACEOF
24172 /* confdefs.h.  */
24173 _ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h.  */
24177 $ac_includes_default
24178    typedef short int ac__type_sizeof_;
24179 int
24180 main ()
24181 {
24182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24183 test_array [0] = 0
24184
24185   ;
24186   return 0;
24187 }
24188 _ACEOF
24189 rm -f conftest.$ac_objext
24190 if { (ac_try="$ac_compile"
24191 case "(($ac_try" in
24192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193   *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196   (eval "$ac_compile") 2>conftest.er1
24197   ac_status=$?
24198   grep -v '^ *+' conftest.er1 >conftest.err
24199   rm -f conftest.er1
24200   cat conftest.err >&5
24201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202   (exit $ac_status); } && {
24203          test -z "$ac_c_werror_flag" ||
24204          test ! -s conftest.err
24205        } && test -s conftest.$ac_objext; then
24206   ac_lo=$ac_mid; break
24207 else
24208   echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24210
24211         ac_hi=`expr '(' $ac_mid ')' - 1`
24212                         if test $ac_mid -le $ac_hi; then
24213                           ac_lo= ac_hi=
24214                           break
24215                         fi
24216                         ac_mid=`expr 2 '*' $ac_mid`
24217 fi
24218
24219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220   done
24221 else
24222   echo "$as_me: failed program was:" >&5
24223 sed 's/^/| /' conftest.$ac_ext >&5
24224
24225         ac_lo= ac_hi=
24226 fi
24227
24228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24229 fi
24230
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24232 # Binary search between lo and hi bounds.
24233 while test "x$ac_lo" != "x$ac_hi"; do
24234   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24235   cat >conftest.$ac_ext <<_ACEOF
24236 /* confdefs.h.  */
24237 _ACEOF
24238 cat confdefs.h >>conftest.$ac_ext
24239 cat >>conftest.$ac_ext <<_ACEOF
24240 /* end confdefs.h.  */
24241 $ac_includes_default
24242    typedef short int ac__type_sizeof_;
24243 int
24244 main ()
24245 {
24246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24247 test_array [0] = 0
24248
24249   ;
24250   return 0;
24251 }
24252 _ACEOF
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_compile") 2>conftest.er1
24261   ac_status=$?
24262   grep -v '^ *+' conftest.er1 >conftest.err
24263   rm -f conftest.er1
24264   cat conftest.err >&5
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } && {
24267          test -z "$ac_c_werror_flag" ||
24268          test ! -s conftest.err
24269        } && test -s conftest.$ac_objext; then
24270   ac_hi=$ac_mid
24271 else
24272   echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24274
24275         ac_lo=`expr '(' $ac_mid ')' + 1`
24276 fi
24277
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24279 done
24280 case $ac_lo in
24281 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24282 '') if test "$ac_cv_type_short_int" = yes; then
24283      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24284 See \`config.log' for more details." >&5
24285 echo "$as_me: error: cannot compute sizeof (short int)
24286 See \`config.log' for more details." >&2;}
24287    { (exit 77); exit 77; }; }
24288    else
24289      ac_cv_sizeof_short_int=0
24290    fi ;;
24291 esac
24292 else
24293   cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h.  */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h.  */
24299 $ac_includes_default
24300    typedef short int ac__type_sizeof_;
24301 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24302 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24303 #include <stdio.h>
24304 #include <stdlib.h>
24305 int
24306 main ()
24307 {
24308
24309   FILE *f = fopen ("conftest.val", "w");
24310   if (! f)
24311     return 1;
24312   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24313     {
24314       long int i = longval ();
24315       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24316         return 1;
24317       fprintf (f, "%ld\n", i);
24318     }
24319   else
24320     {
24321       unsigned long int i = ulongval ();
24322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24323         return 1;
24324       fprintf (f, "%lu\n", i);
24325     }
24326   return ferror (f) || fclose (f) != 0;
24327
24328   ;
24329   return 0;
24330 }
24331 _ACEOF
24332 rm -f conftest$ac_exeext
24333 if { (ac_try="$ac_link"
24334 case "(($ac_try" in
24335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24336   *) ac_try_echo=$ac_try;;
24337 esac
24338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24339   (eval "$ac_link") 2>&5
24340   ac_status=$?
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24343   { (case "(($ac_try" in
24344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345   *) ac_try_echo=$ac_try;;
24346 esac
24347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24348   (eval "$ac_try") 2>&5
24349   ac_status=$?
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); }; }; then
24352   ac_cv_sizeof_short_int=`cat conftest.val`
24353 else
24354   echo "$as_me: program exited with status $ac_status" >&5
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24357
24358 ( exit $ac_status )
24359 if test "$ac_cv_type_short_int" = yes; then
24360      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24361 See \`config.log' for more details." >&5
24362 echo "$as_me: error: cannot compute sizeof (short int)
24363 See \`config.log' for more details." >&2;}
24364    { (exit 77); exit 77; }; }
24365    else
24366      ac_cv_sizeof_short_int=0
24367    fi
24368 fi
24369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24370 fi
24371 rm -f conftest.val
24372 fi
24373 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24374 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24375
24376
24377
24378 cat >>confdefs.h <<_ACEOF
24379 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24380 _ACEOF
24381
24382
24383 { echo "$as_me:$LINENO: checking for int" >&5
24384 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24385 if test "${ac_cv_type_int+set}" = set; then
24386   echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24388   cat >conftest.$ac_ext <<_ACEOF
24389 /* confdefs.h.  */
24390 _ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h.  */
24394 $ac_includes_default
24395 typedef int ac__type_new_;
24396 int
24397 main ()
24398 {
24399 if ((ac__type_new_ *) 0)
24400   return 0;
24401 if (sizeof (ac__type_new_))
24402   return 0;
24403   ;
24404   return 0;
24405 }
24406 _ACEOF
24407 rm -f conftest.$ac_objext
24408 if { (ac_try="$ac_compile"
24409 case "(($ac_try" in
24410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411   *) ac_try_echo=$ac_try;;
24412 esac
24413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414   (eval "$ac_compile") 2>conftest.er1
24415   ac_status=$?
24416   grep -v '^ *+' conftest.er1 >conftest.err
24417   rm -f conftest.er1
24418   cat conftest.err >&5
24419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420   (exit $ac_status); } && {
24421          test -z "$ac_c_werror_flag" ||
24422          test ! -s conftest.err
24423        } && test -s conftest.$ac_objext; then
24424   ac_cv_type_int=yes
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429         ac_cv_type_int=no
24430 fi
24431
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433 fi
24434 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24435 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24436
24437 # The cast to long int works around a bug in the HP C Compiler
24438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24440 # This bug is HP SR number 8606223364.
24441 { echo "$as_me:$LINENO: checking size of int" >&5
24442 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24443 if test "${ac_cv_sizeof_int+set}" = set; then
24444   echo $ECHO_N "(cached) $ECHO_C" >&6
24445 else
24446   if test "$cross_compiling" = yes; then
24447   # Depending upon the size, compute the lo and hi bounds.
24448 cat >conftest.$ac_ext <<_ACEOF
24449 /* confdefs.h.  */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h.  */
24454 $ac_includes_default
24455    typedef int ac__type_sizeof_;
24456 int
24457 main ()
24458 {
24459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24460 test_array [0] = 0
24461
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470   *) ac_try_echo=$ac_try;;
24471 esac
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473   (eval "$ac_compile") 2>conftest.er1
24474   ac_status=$?
24475   grep -v '^ *+' conftest.er1 >conftest.err
24476   rm -f conftest.er1
24477   cat conftest.err >&5
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); } && {
24480          test -z "$ac_c_werror_flag" ||
24481          test ! -s conftest.err
24482        } && test -s conftest.$ac_objext; then
24483   ac_lo=0 ac_mid=0
24484   while :; do
24485     cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h.  */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h.  */
24491 $ac_includes_default
24492    typedef int ac__type_sizeof_;
24493 int
24494 main ()
24495 {
24496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24497 test_array [0] = 0
24498
24499   ;
24500   return 0;
24501 }
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507   *) ac_try_echo=$ac_try;;
24508 esac
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510   (eval "$ac_compile") 2>conftest.er1
24511   ac_status=$?
24512   grep -v '^ *+' conftest.er1 >conftest.err
24513   rm -f conftest.er1
24514   cat conftest.err >&5
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); } && {
24517          test -z "$ac_c_werror_flag" ||
24518          test ! -s conftest.err
24519        } && test -s conftest.$ac_objext; then
24520   ac_hi=$ac_mid; break
24521 else
24522   echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24524
24525         ac_lo=`expr $ac_mid + 1`
24526                         if test $ac_lo -le $ac_mid; then
24527                           ac_lo= ac_hi=
24528                           break
24529                         fi
24530                         ac_mid=`expr 2 '*' $ac_mid + 1`
24531 fi
24532
24533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24534   done
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539         cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h.  */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h.  */
24545 $ac_includes_default
24546    typedef int ac__type_sizeof_;
24547 int
24548 main ()
24549 {
24550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24551 test_array [0] = 0
24552
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext
24558 if { (ac_try="$ac_compile"
24559 case "(($ac_try" in
24560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561   *) ac_try_echo=$ac_try;;
24562 esac
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564   (eval "$ac_compile") 2>conftest.er1
24565   ac_status=$?
24566   grep -v '^ *+' conftest.er1 >conftest.err
24567   rm -f conftest.er1
24568   cat conftest.err >&5
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); } && {
24571          test -z "$ac_c_werror_flag" ||
24572          test ! -s conftest.err
24573        } && test -s conftest.$ac_objext; then
24574   ac_hi=-1 ac_mid=-1
24575   while :; do
24576     cat >conftest.$ac_ext <<_ACEOF
24577 /* confdefs.h.  */
24578 _ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h.  */
24582 $ac_includes_default
24583    typedef int ac__type_sizeof_;
24584 int
24585 main ()
24586 {
24587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24588 test_array [0] = 0
24589
24590   ;
24591   return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext
24595 if { (ac_try="$ac_compile"
24596 case "(($ac_try" in
24597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598   *) ac_try_echo=$ac_try;;
24599 esac
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601   (eval "$ac_compile") 2>conftest.er1
24602   ac_status=$?
24603   grep -v '^ *+' conftest.er1 >conftest.err
24604   rm -f conftest.er1
24605   cat conftest.err >&5
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); } && {
24608          test -z "$ac_c_werror_flag" ||
24609          test ! -s conftest.err
24610        } && test -s conftest.$ac_objext; then
24611   ac_lo=$ac_mid; break
24612 else
24613   echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24615
24616         ac_hi=`expr '(' $ac_mid ')' - 1`
24617                         if test $ac_mid -le $ac_hi; then
24618                           ac_lo= ac_hi=
24619                           break
24620                         fi
24621                         ac_mid=`expr 2 '*' $ac_mid`
24622 fi
24623
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625   done
24626 else
24627   echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24629
24630         ac_lo= ac_hi=
24631 fi
24632
24633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24634 fi
24635
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 # Binary search between lo and hi bounds.
24638 while test "x$ac_lo" != "x$ac_hi"; do
24639   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24640   cat >conftest.$ac_ext <<_ACEOF
24641 /* confdefs.h.  */
24642 _ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h.  */
24646 $ac_includes_default
24647    typedef int ac__type_sizeof_;
24648 int
24649 main ()
24650 {
24651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24652 test_array [0] = 0
24653
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_compile") 2>conftest.er1
24666   ac_status=$?
24667   grep -v '^ *+' conftest.er1 >conftest.err
24668   rm -f conftest.er1
24669   cat conftest.err >&5
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); } && {
24672          test -z "$ac_c_werror_flag" ||
24673          test ! -s conftest.err
24674        } && test -s conftest.$ac_objext; then
24675   ac_hi=$ac_mid
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680         ac_lo=`expr '(' $ac_mid ')' + 1`
24681 fi
24682
24683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24684 done
24685 case $ac_lo in
24686 ?*) ac_cv_sizeof_int=$ac_lo;;
24687 '') if test "$ac_cv_type_int" = yes; then
24688      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24689 See \`config.log' for more details." >&5
24690 echo "$as_me: error: cannot compute sizeof (int)
24691 See \`config.log' for more details." >&2;}
24692    { (exit 77); exit 77; }; }
24693    else
24694      ac_cv_sizeof_int=0
24695    fi ;;
24696 esac
24697 else
24698   cat >conftest.$ac_ext <<_ACEOF
24699 /* confdefs.h.  */
24700 _ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h.  */
24704 $ac_includes_default
24705    typedef int ac__type_sizeof_;
24706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24708 #include <stdio.h>
24709 #include <stdlib.h>
24710 int
24711 main ()
24712 {
24713
24714   FILE *f = fopen ("conftest.val", "w");
24715   if (! f)
24716     return 1;
24717   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24718     {
24719       long int i = longval ();
24720       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24721         return 1;
24722       fprintf (f, "%ld\n", i);
24723     }
24724   else
24725     {
24726       unsigned long int i = ulongval ();
24727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24728         return 1;
24729       fprintf (f, "%lu\n", i);
24730     }
24731   return ferror (f) || fclose (f) != 0;
24732
24733   ;
24734   return 0;
24735 }
24736 _ACEOF
24737 rm -f conftest$ac_exeext
24738 if { (ac_try="$ac_link"
24739 case "(($ac_try" in
24740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741   *) ac_try_echo=$ac_try;;
24742 esac
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744   (eval "$ac_link") 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24748   { (case "(($ac_try" in
24749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750   *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753   (eval "$ac_try") 2>&5
24754   ac_status=$?
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); }; }; then
24757   ac_cv_sizeof_int=`cat conftest.val`
24758 else
24759   echo "$as_me: program exited with status $ac_status" >&5
24760 echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24762
24763 ( exit $ac_status )
24764 if test "$ac_cv_type_int" = yes; then
24765      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24766 See \`config.log' for more details." >&5
24767 echo "$as_me: error: cannot compute sizeof (int)
24768 See \`config.log' for more details." >&2;}
24769    { (exit 77); exit 77; }; }
24770    else
24771      ac_cv_sizeof_int=0
24772    fi
24773 fi
24774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24775 fi
24776 rm -f conftest.val
24777 fi
24778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24779 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24780
24781
24782
24783 cat >>confdefs.h <<_ACEOF
24784 #define SIZEOF_INT $ac_cv_sizeof_int
24785 _ACEOF
24786
24787
24788 { echo "$as_me:$LINENO: checking for long int" >&5
24789 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24790 if test "${ac_cv_type_long_int+set}" = set; then
24791   echo $ECHO_N "(cached) $ECHO_C" >&6
24792 else
24793   cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h.  */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h.  */
24799 $ac_includes_default
24800 typedef long int ac__type_new_;
24801 int
24802 main ()
24803 {
24804 if ((ac__type_new_ *) 0)
24805   return 0;
24806 if (sizeof (ac__type_new_))
24807   return 0;
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 rm -f conftest.$ac_objext
24813 if { (ac_try="$ac_compile"
24814 case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819   (eval "$ac_compile") 2>conftest.er1
24820   ac_status=$?
24821   grep -v '^ *+' conftest.er1 >conftest.err
24822   rm -f conftest.er1
24823   cat conftest.err >&5
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); } && {
24826          test -z "$ac_c_werror_flag" ||
24827          test ! -s conftest.err
24828        } && test -s conftest.$ac_objext; then
24829   ac_cv_type_long_int=yes
24830 else
24831   echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24833
24834         ac_cv_type_long_int=no
24835 fi
24836
24837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24838 fi
24839 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24840 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24841
24842 # The cast to long int works around a bug in the HP C Compiler
24843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24845 # This bug is HP SR number 8606223364.
24846 { echo "$as_me:$LINENO: checking size of long int" >&5
24847 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24848 if test "${ac_cv_sizeof_long_int+set}" = set; then
24849   echo $ECHO_N "(cached) $ECHO_C" >&6
24850 else
24851   if test "$cross_compiling" = yes; then
24852   # Depending upon the size, compute the lo and hi bounds.
24853 cat >conftest.$ac_ext <<_ACEOF
24854 /* confdefs.h.  */
24855 _ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h.  */
24859 $ac_includes_default
24860    typedef long int ac__type_sizeof_;
24861 int
24862 main ()
24863 {
24864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24865 test_array [0] = 0
24866
24867   ;
24868   return 0;
24869 }
24870 _ACEOF
24871 rm -f conftest.$ac_objext
24872 if { (ac_try="$ac_compile"
24873 case "(($ac_try" in
24874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875   *) ac_try_echo=$ac_try;;
24876 esac
24877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878   (eval "$ac_compile") 2>conftest.er1
24879   ac_status=$?
24880   grep -v '^ *+' conftest.er1 >conftest.err
24881   rm -f conftest.er1
24882   cat conftest.err >&5
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); } && {
24885          test -z "$ac_c_werror_flag" ||
24886          test ! -s conftest.err
24887        } && test -s conftest.$ac_objext; then
24888   ac_lo=0 ac_mid=0
24889   while :; do
24890     cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 $ac_includes_default
24897    typedef long int ac__type_sizeof_;
24898 int
24899 main ()
24900 {
24901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24902 test_array [0] = 0
24903
24904   ;
24905   return 0;
24906 }
24907 _ACEOF
24908 rm -f conftest.$ac_objext
24909 if { (ac_try="$ac_compile"
24910 case "(($ac_try" in
24911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912   *) ac_try_echo=$ac_try;;
24913 esac
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915   (eval "$ac_compile") 2>conftest.er1
24916   ac_status=$?
24917   grep -v '^ *+' conftest.er1 >conftest.err
24918   rm -f conftest.er1
24919   cat conftest.err >&5
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); } && {
24922          test -z "$ac_c_werror_flag" ||
24923          test ! -s conftest.err
24924        } && test -s conftest.$ac_objext; then
24925   ac_hi=$ac_mid; break
24926 else
24927   echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24929
24930         ac_lo=`expr $ac_mid + 1`
24931                         if test $ac_lo -le $ac_mid; then
24932                           ac_lo= ac_hi=
24933                           break
24934                         fi
24935                         ac_mid=`expr 2 '*' $ac_mid + 1`
24936 fi
24937
24938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24939   done
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         cat >conftest.$ac_ext <<_ACEOF
24945 /* confdefs.h.  */
24946 _ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h.  */
24950 $ac_includes_default
24951    typedef long int ac__type_sizeof_;
24952 int
24953 main ()
24954 {
24955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24956 test_array [0] = 0
24957
24958   ;
24959   return 0;
24960 }
24961 _ACEOF
24962 rm -f conftest.$ac_objext
24963 if { (ac_try="$ac_compile"
24964 case "(($ac_try" in
24965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966   *) ac_try_echo=$ac_try;;
24967 esac
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969   (eval "$ac_compile") 2>conftest.er1
24970   ac_status=$?
24971   grep -v '^ *+' conftest.er1 >conftest.err
24972   rm -f conftest.er1
24973   cat conftest.err >&5
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); } && {
24976          test -z "$ac_c_werror_flag" ||
24977          test ! -s conftest.err
24978        } && test -s conftest.$ac_objext; then
24979   ac_hi=-1 ac_mid=-1
24980   while :; do
24981     cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987 $ac_includes_default
24988    typedef long int ac__type_sizeof_;
24989 int
24990 main ()
24991 {
24992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24993 test_array [0] = 0
24994
24995   ;
24996   return 0;
24997 }
24998 _ACEOF
24999 rm -f conftest.$ac_objext
25000 if { (ac_try="$ac_compile"
25001 case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_compile") 2>conftest.er1
25007   ac_status=$?
25008   grep -v '^ *+' conftest.er1 >conftest.err
25009   rm -f conftest.er1
25010   cat conftest.err >&5
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); } && {
25013          test -z "$ac_c_werror_flag" ||
25014          test ! -s conftest.err
25015        } && test -s conftest.$ac_objext; then
25016   ac_lo=$ac_mid; break
25017 else
25018   echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25020
25021         ac_hi=`expr '(' $ac_mid ')' - 1`
25022                         if test $ac_mid -le $ac_hi; then
25023                           ac_lo= ac_hi=
25024                           break
25025                         fi
25026                         ac_mid=`expr 2 '*' $ac_mid`
25027 fi
25028
25029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25030   done
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035         ac_lo= ac_hi=
25036 fi
25037
25038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25039 fi
25040
25041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25042 # Binary search between lo and hi bounds.
25043 while test "x$ac_lo" != "x$ac_hi"; do
25044   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25045   cat >conftest.$ac_ext <<_ACEOF
25046 /* confdefs.h.  */
25047 _ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h.  */
25051 $ac_includes_default
25052    typedef long int ac__type_sizeof_;
25053 int
25054 main ()
25055 {
25056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25057 test_array [0] = 0
25058
25059   ;
25060   return 0;
25061 }
25062 _ACEOF
25063 rm -f conftest.$ac_objext
25064 if { (ac_try="$ac_compile"
25065 case "(($ac_try" in
25066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067   *) ac_try_echo=$ac_try;;
25068 esac
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070   (eval "$ac_compile") 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } && {
25077          test -z "$ac_c_werror_flag" ||
25078          test ! -s conftest.err
25079        } && test -s conftest.$ac_objext; then
25080   ac_hi=$ac_mid
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085         ac_lo=`expr '(' $ac_mid ')' + 1`
25086 fi
25087
25088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25089 done
25090 case $ac_lo in
25091 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25092 '') if test "$ac_cv_type_long_int" = yes; then
25093      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25094 See \`config.log' for more details." >&5
25095 echo "$as_me: error: cannot compute sizeof (long int)
25096 See \`config.log' for more details." >&2;}
25097    { (exit 77); exit 77; }; }
25098    else
25099      ac_cv_sizeof_long_int=0
25100    fi ;;
25101 esac
25102 else
25103   cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h.  */
25105 _ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h.  */
25109 $ac_includes_default
25110    typedef long int ac__type_sizeof_;
25111 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25112 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25113 #include <stdio.h>
25114 #include <stdlib.h>
25115 int
25116 main ()
25117 {
25118
25119   FILE *f = fopen ("conftest.val", "w");
25120   if (! f)
25121     return 1;
25122   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25123     {
25124       long int i = longval ();
25125       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25126         return 1;
25127       fprintf (f, "%ld\n", i);
25128     }
25129   else
25130     {
25131       unsigned long int i = ulongval ();
25132       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25133         return 1;
25134       fprintf (f, "%lu\n", i);
25135     }
25136   return ferror (f) || fclose (f) != 0;
25137
25138   ;
25139   return 0;
25140 }
25141 _ACEOF
25142 rm -f conftest$ac_exeext
25143 if { (ac_try="$ac_link"
25144 case "(($ac_try" in
25145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146   *) ac_try_echo=$ac_try;;
25147 esac
25148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149   (eval "$ac_link") 2>&5
25150   ac_status=$?
25151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25153   { (case "(($ac_try" in
25154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155   *) ac_try_echo=$ac_try;;
25156 esac
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158   (eval "$ac_try") 2>&5
25159   ac_status=$?
25160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161   (exit $ac_status); }; }; then
25162   ac_cv_sizeof_long_int=`cat conftest.val`
25163 else
25164   echo "$as_me: program exited with status $ac_status" >&5
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25167
25168 ( exit $ac_status )
25169 if test "$ac_cv_type_long_int" = yes; then
25170      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25171 See \`config.log' for more details." >&5
25172 echo "$as_me: error: cannot compute sizeof (long int)
25173 See \`config.log' for more details." >&2;}
25174    { (exit 77); exit 77; }; }
25175    else
25176      ac_cv_sizeof_long_int=0
25177    fi
25178 fi
25179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25180 fi
25181 rm -f conftest.val
25182 fi
25183 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25184 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25185
25186
25187
25188 cat >>confdefs.h <<_ACEOF
25189 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25190 _ACEOF
25191
25192
25193 { echo "$as_me:$LINENO: checking for long long int" >&5
25194 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25195 if test "${ac_cv_type_long_long_int+set}" = set; then
25196   echo $ECHO_N "(cached) $ECHO_C" >&6
25197 else
25198   cat >conftest.$ac_ext <<_ACEOF
25199 /* confdefs.h.  */
25200 _ACEOF
25201 cat confdefs.h >>conftest.$ac_ext
25202 cat >>conftest.$ac_ext <<_ACEOF
25203 /* end confdefs.h.  */
25204 $ac_includes_default
25205 typedef long long int ac__type_new_;
25206 int
25207 main ()
25208 {
25209 if ((ac__type_new_ *) 0)
25210   return 0;
25211 if (sizeof (ac__type_new_))
25212   return 0;
25213   ;
25214   return 0;
25215 }
25216 _ACEOF
25217 rm -f conftest.$ac_objext
25218 if { (ac_try="$ac_compile"
25219 case "(($ac_try" in
25220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221   *) ac_try_echo=$ac_try;;
25222 esac
25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224   (eval "$ac_compile") 2>conftest.er1
25225   ac_status=$?
25226   grep -v '^ *+' conftest.er1 >conftest.err
25227   rm -f conftest.er1
25228   cat conftest.err >&5
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); } && {
25231          test -z "$ac_c_werror_flag" ||
25232          test ! -s conftest.err
25233        } && test -s conftest.$ac_objext; then
25234   ac_cv_type_long_long_int=yes
25235 else
25236   echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25238
25239         ac_cv_type_long_long_int=no
25240 fi
25241
25242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25243 fi
25244 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25245 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25246
25247 # The cast to long int works around a bug in the HP C Compiler
25248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25250 # This bug is HP SR number 8606223364.
25251 { echo "$as_me:$LINENO: checking size of long long int" >&5
25252 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25253 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25254   echo $ECHO_N "(cached) $ECHO_C" >&6
25255 else
25256   if test "$cross_compiling" = yes; then
25257   # Depending upon the size, compute the lo and hi bounds.
25258 cat >conftest.$ac_ext <<_ACEOF
25259 /* confdefs.h.  */
25260 _ACEOF
25261 cat confdefs.h >>conftest.$ac_ext
25262 cat >>conftest.$ac_ext <<_ACEOF
25263 /* end confdefs.h.  */
25264 $ac_includes_default
25265    typedef long long int ac__type_sizeof_;
25266 int
25267 main ()
25268 {
25269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25270 test_array [0] = 0
25271
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280   *) ac_try_echo=$ac_try;;
25281 esac
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283   (eval "$ac_compile") 2>conftest.er1
25284   ac_status=$?
25285   grep -v '^ *+' conftest.er1 >conftest.err
25286   rm -f conftest.er1
25287   cat conftest.err >&5
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); } && {
25290          test -z "$ac_c_werror_flag" ||
25291          test ! -s conftest.err
25292        } && test -s conftest.$ac_objext; then
25293   ac_lo=0 ac_mid=0
25294   while :; do
25295     cat >conftest.$ac_ext <<_ACEOF
25296 /* confdefs.h.  */
25297 _ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h.  */
25301 $ac_includes_default
25302    typedef long long int ac__type_sizeof_;
25303 int
25304 main ()
25305 {
25306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25307 test_array [0] = 0
25308
25309   ;
25310   return 0;
25311 }
25312 _ACEOF
25313 rm -f conftest.$ac_objext
25314 if { (ac_try="$ac_compile"
25315 case "(($ac_try" in
25316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317   *) ac_try_echo=$ac_try;;
25318 esac
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320   (eval "$ac_compile") 2>conftest.er1
25321   ac_status=$?
25322   grep -v '^ *+' conftest.er1 >conftest.err
25323   rm -f conftest.er1
25324   cat conftest.err >&5
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); } && {
25327          test -z "$ac_c_werror_flag" ||
25328          test ! -s conftest.err
25329        } && test -s conftest.$ac_objext; then
25330   ac_hi=$ac_mid; break
25331 else
25332   echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335         ac_lo=`expr $ac_mid + 1`
25336                         if test $ac_lo -le $ac_mid; then
25337                           ac_lo= ac_hi=
25338                           break
25339                         fi
25340                         ac_mid=`expr 2 '*' $ac_mid + 1`
25341 fi
25342
25343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344   done
25345 else
25346   echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349         cat >conftest.$ac_ext <<_ACEOF
25350 /* confdefs.h.  */
25351 _ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h.  */
25355 $ac_includes_default
25356    typedef long long int ac__type_sizeof_;
25357 int
25358 main ()
25359 {
25360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25361 test_array [0] = 0
25362
25363   ;
25364   return 0;
25365 }
25366 _ACEOF
25367 rm -f conftest.$ac_objext
25368 if { (ac_try="$ac_compile"
25369 case "(($ac_try" in
25370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25371   *) ac_try_echo=$ac_try;;
25372 esac
25373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25374   (eval "$ac_compile") 2>conftest.er1
25375   ac_status=$?
25376   grep -v '^ *+' conftest.er1 >conftest.err
25377   rm -f conftest.er1
25378   cat conftest.err >&5
25379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380   (exit $ac_status); } && {
25381          test -z "$ac_c_werror_flag" ||
25382          test ! -s conftest.err
25383        } && test -s conftest.$ac_objext; then
25384   ac_hi=-1 ac_mid=-1
25385   while :; do
25386     cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392 $ac_includes_default
25393    typedef long long int ac__type_sizeof_;
25394 int
25395 main ()
25396 {
25397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25398 test_array [0] = 0
25399
25400   ;
25401   return 0;
25402 }
25403 _ACEOF
25404 rm -f conftest.$ac_objext
25405 if { (ac_try="$ac_compile"
25406 case "(($ac_try" in
25407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25408   *) ac_try_echo=$ac_try;;
25409 esac
25410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25411   (eval "$ac_compile") 2>conftest.er1
25412   ac_status=$?
25413   grep -v '^ *+' conftest.er1 >conftest.err
25414   rm -f conftest.er1
25415   cat conftest.err >&5
25416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417   (exit $ac_status); } && {
25418          test -z "$ac_c_werror_flag" ||
25419          test ! -s conftest.err
25420        } && test -s conftest.$ac_objext; then
25421   ac_lo=$ac_mid; break
25422 else
25423   echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25425
25426         ac_hi=`expr '(' $ac_mid ')' - 1`
25427                         if test $ac_mid -le $ac_hi; then
25428                           ac_lo= ac_hi=
25429                           break
25430                         fi
25431                         ac_mid=`expr 2 '*' $ac_mid`
25432 fi
25433
25434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25435   done
25436 else
25437   echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25439
25440         ac_lo= ac_hi=
25441 fi
25442
25443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25444 fi
25445
25446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25447 # Binary search between lo and hi bounds.
25448 while test "x$ac_lo" != "x$ac_hi"; do
25449   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25450   cat >conftest.$ac_ext <<_ACEOF
25451 /* confdefs.h.  */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h.  */
25456 $ac_includes_default
25457    typedef long long int ac__type_sizeof_;
25458 int
25459 main ()
25460 {
25461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25462 test_array [0] = 0
25463
25464   ;
25465   return 0;
25466 }
25467 _ACEOF
25468 rm -f conftest.$ac_objext
25469 if { (ac_try="$ac_compile"
25470 case "(($ac_try" in
25471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472   *) ac_try_echo=$ac_try;;
25473 esac
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475   (eval "$ac_compile") 2>conftest.er1
25476   ac_status=$?
25477   grep -v '^ *+' conftest.er1 >conftest.err
25478   rm -f conftest.er1
25479   cat conftest.err >&5
25480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481   (exit $ac_status); } && {
25482          test -z "$ac_c_werror_flag" ||
25483          test ! -s conftest.err
25484        } && test -s conftest.$ac_objext; then
25485   ac_hi=$ac_mid
25486 else
25487   echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490         ac_lo=`expr '(' $ac_mid ')' + 1`
25491 fi
25492
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 done
25495 case $ac_lo in
25496 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25497 '') if test "$ac_cv_type_long_long_int" = yes; then
25498      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25499 See \`config.log' for more details." >&5
25500 echo "$as_me: error: cannot compute sizeof (long long int)
25501 See \`config.log' for more details." >&2;}
25502    { (exit 77); exit 77; }; }
25503    else
25504      ac_cv_sizeof_long_long_int=0
25505    fi ;;
25506 esac
25507 else
25508   cat >conftest.$ac_ext <<_ACEOF
25509 /* confdefs.h.  */
25510 _ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h.  */
25514 $ac_includes_default
25515    typedef long long int ac__type_sizeof_;
25516 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25517 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25518 #include <stdio.h>
25519 #include <stdlib.h>
25520 int
25521 main ()
25522 {
25523
25524   FILE *f = fopen ("conftest.val", "w");
25525   if (! f)
25526     return 1;
25527   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25528     {
25529       long int i = longval ();
25530       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25531         return 1;
25532       fprintf (f, "%ld\n", i);
25533     }
25534   else
25535     {
25536       unsigned long int i = ulongval ();
25537       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25538         return 1;
25539       fprintf (f, "%lu\n", i);
25540     }
25541   return ferror (f) || fclose (f) != 0;
25542
25543   ;
25544   return 0;
25545 }
25546 _ACEOF
25547 rm -f conftest$ac_exeext
25548 if { (ac_try="$ac_link"
25549 case "(($ac_try" in
25550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25551   *) ac_try_echo=$ac_try;;
25552 esac
25553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25554   (eval "$ac_link") 2>&5
25555   ac_status=$?
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25558   { (case "(($ac_try" in
25559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25560   *) ac_try_echo=$ac_try;;
25561 esac
25562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25563   (eval "$ac_try") 2>&5
25564   ac_status=$?
25565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); }; }; then
25567   ac_cv_sizeof_long_long_int=`cat conftest.val`
25568 else
25569   echo "$as_me: program exited with status $ac_status" >&5
25570 echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25572
25573 ( exit $ac_status )
25574 if test "$ac_cv_type_long_long_int" = yes; then
25575      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25576 See \`config.log' for more details." >&5
25577 echo "$as_me: error: cannot compute sizeof (long long int)
25578 See \`config.log' for more details." >&2;}
25579    { (exit 77); exit 77; }; }
25580    else
25581      ac_cv_sizeof_long_long_int=0
25582    fi
25583 fi
25584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25585 fi
25586 rm -f conftest.val
25587 fi
25588 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25589 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25590
25591
25592
25593 cat >>confdefs.h <<_ACEOF
25594 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25595 _ACEOF
25596
25597
25598 { echo "$as_me:$LINENO: checking for int *" >&5
25599 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25600 if test "${ac_cv_type_int_p+set}" = set; then
25601   echo $ECHO_N "(cached) $ECHO_C" >&6
25602 else
25603   cat >conftest.$ac_ext <<_ACEOF
25604 /* confdefs.h.  */
25605 _ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h.  */
25609 $ac_includes_default
25610 typedef int * ac__type_new_;
25611 int
25612 main ()
25613 {
25614 if ((ac__type_new_ *) 0)
25615   return 0;
25616 if (sizeof (ac__type_new_))
25617   return 0;
25618   ;
25619   return 0;
25620 }
25621 _ACEOF
25622 rm -f conftest.$ac_objext
25623 if { (ac_try="$ac_compile"
25624 case "(($ac_try" in
25625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626   *) ac_try_echo=$ac_try;;
25627 esac
25628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629   (eval "$ac_compile") 2>conftest.er1
25630   ac_status=$?
25631   grep -v '^ *+' conftest.er1 >conftest.err
25632   rm -f conftest.er1
25633   cat conftest.err >&5
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); } && {
25636          test -z "$ac_c_werror_flag" ||
25637          test ! -s conftest.err
25638        } && test -s conftest.$ac_objext; then
25639   ac_cv_type_int_p=yes
25640 else
25641   echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25643
25644         ac_cv_type_int_p=no
25645 fi
25646
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25648 fi
25649 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25650 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25651
25652 # The cast to long int works around a bug in the HP C Compiler
25653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25655 # This bug is HP SR number 8606223364.
25656 { echo "$as_me:$LINENO: checking size of int *" >&5
25657 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25658 if test "${ac_cv_sizeof_int_p+set}" = set; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661   if test "$cross_compiling" = yes; then
25662   # Depending upon the size, compute the lo and hi bounds.
25663 cat >conftest.$ac_ext <<_ACEOF
25664 /* confdefs.h.  */
25665 _ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h.  */
25669 $ac_includes_default
25670    typedef int * ac__type_sizeof_;
25671 int
25672 main ()
25673 {
25674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25675 test_array [0] = 0
25676
25677   ;
25678   return 0;
25679 }
25680 _ACEOF
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685   *) ac_try_echo=$ac_try;;
25686 esac
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688   (eval "$ac_compile") 2>conftest.er1
25689   ac_status=$?
25690   grep -v '^ *+' conftest.er1 >conftest.err
25691   rm -f conftest.er1
25692   cat conftest.err >&5
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); } && {
25695          test -z "$ac_c_werror_flag" ||
25696          test ! -s conftest.err
25697        } && test -s conftest.$ac_objext; then
25698   ac_lo=0 ac_mid=0
25699   while :; do
25700     cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h.  */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h.  */
25706 $ac_includes_default
25707    typedef int * ac__type_sizeof_;
25708 int
25709 main ()
25710 {
25711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25712 test_array [0] = 0
25713
25714   ;
25715   return 0;
25716 }
25717 _ACEOF
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722   *) ac_try_echo=$ac_try;;
25723 esac
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725   (eval "$ac_compile") 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } && {
25732          test -z "$ac_c_werror_flag" ||
25733          test ! -s conftest.err
25734        } && test -s conftest.$ac_objext; then
25735   ac_hi=$ac_mid; break
25736 else
25737   echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25739
25740         ac_lo=`expr $ac_mid + 1`
25741                         if test $ac_lo -le $ac_mid; then
25742                           ac_lo= ac_hi=
25743                           break
25744                         fi
25745                         ac_mid=`expr 2 '*' $ac_mid + 1`
25746 fi
25747
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25749   done
25750 else
25751   echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25753
25754         cat >conftest.$ac_ext <<_ACEOF
25755 /* confdefs.h.  */
25756 _ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h.  */
25760 $ac_includes_default
25761    typedef int * ac__type_sizeof_;
25762 int
25763 main ()
25764 {
25765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25766 test_array [0] = 0
25767
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 rm -f conftest.$ac_objext
25773 if { (ac_try="$ac_compile"
25774 case "(($ac_try" in
25775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776   *) ac_try_echo=$ac_try;;
25777 esac
25778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779   (eval "$ac_compile") 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } && {
25786          test -z "$ac_c_werror_flag" ||
25787          test ! -s conftest.err
25788        } && test -s conftest.$ac_objext; then
25789   ac_hi=-1 ac_mid=-1
25790   while :; do
25791     cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h.  */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h.  */
25797 $ac_includes_default
25798    typedef int * ac__type_sizeof_;
25799 int
25800 main ()
25801 {
25802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25803 test_array [0] = 0
25804
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813   *) ac_try_echo=$ac_try;;
25814 esac
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816   (eval "$ac_compile") 2>conftest.er1
25817   ac_status=$?
25818   grep -v '^ *+' conftest.er1 >conftest.err
25819   rm -f conftest.er1
25820   cat conftest.err >&5
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); } && {
25823          test -z "$ac_c_werror_flag" ||
25824          test ! -s conftest.err
25825        } && test -s conftest.$ac_objext; then
25826   ac_lo=$ac_mid; break
25827 else
25828   echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25830
25831         ac_hi=`expr '(' $ac_mid ')' - 1`
25832                         if test $ac_mid -le $ac_hi; then
25833                           ac_lo= ac_hi=
25834                           break
25835                         fi
25836                         ac_mid=`expr 2 '*' $ac_mid`
25837 fi
25838
25839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25840   done
25841 else
25842   echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25844
25845         ac_lo= ac_hi=
25846 fi
25847
25848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25849 fi
25850
25851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852 # Binary search between lo and hi bounds.
25853 while test "x$ac_lo" != "x$ac_hi"; do
25854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25855   cat >conftest.$ac_ext <<_ACEOF
25856 /* confdefs.h.  */
25857 _ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h.  */
25861 $ac_includes_default
25862    typedef int * ac__type_sizeof_;
25863 int
25864 main ()
25865 {
25866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25867 test_array [0] = 0
25868
25869   ;
25870   return 0;
25871 }
25872 _ACEOF
25873 rm -f conftest.$ac_objext
25874 if { (ac_try="$ac_compile"
25875 case "(($ac_try" in
25876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877   *) ac_try_echo=$ac_try;;
25878 esac
25879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25880   (eval "$ac_compile") 2>conftest.er1
25881   ac_status=$?
25882   grep -v '^ *+' conftest.er1 >conftest.err
25883   rm -f conftest.er1
25884   cat conftest.err >&5
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); } && {
25887          test -z "$ac_c_werror_flag" ||
25888          test ! -s conftest.err
25889        } && test -s conftest.$ac_objext; then
25890   ac_hi=$ac_mid
25891 else
25892   echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25894
25895         ac_lo=`expr '(' $ac_mid ')' + 1`
25896 fi
25897
25898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25899 done
25900 case $ac_lo in
25901 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25902 '') if test "$ac_cv_type_int_p" = yes; then
25903      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25904 See \`config.log' for more details." >&5
25905 echo "$as_me: error: cannot compute sizeof (int *)
25906 See \`config.log' for more details." >&2;}
25907    { (exit 77); exit 77; }; }
25908    else
25909      ac_cv_sizeof_int_p=0
25910    fi ;;
25911 esac
25912 else
25913   cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h.  */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h.  */
25919 $ac_includes_default
25920    typedef int * ac__type_sizeof_;
25921 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25922 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25923 #include <stdio.h>
25924 #include <stdlib.h>
25925 int
25926 main ()
25927 {
25928
25929   FILE *f = fopen ("conftest.val", "w");
25930   if (! f)
25931     return 1;
25932   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25933     {
25934       long int i = longval ();
25935       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25936         return 1;
25937       fprintf (f, "%ld\n", i);
25938     }
25939   else
25940     {
25941       unsigned long int i = ulongval ();
25942       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25943         return 1;
25944       fprintf (f, "%lu\n", i);
25945     }
25946   return ferror (f) || fclose (f) != 0;
25947
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 rm -f conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956   *) ac_try_echo=$ac_try;;
25957 esac
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959   (eval "$ac_link") 2>&5
25960   ac_status=$?
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963   { (case "(($ac_try" in
25964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965   *) ac_try_echo=$ac_try;;
25966 esac
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968   (eval "$ac_try") 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; }; then
25972   ac_cv_sizeof_int_p=`cat conftest.val`
25973 else
25974   echo "$as_me: program exited with status $ac_status" >&5
25975 echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25977
25978 ( exit $ac_status )
25979 if test "$ac_cv_type_int_p" = yes; then
25980      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25981 See \`config.log' for more details." >&5
25982 echo "$as_me: error: cannot compute sizeof (int *)
25983 See \`config.log' for more details." >&2;}
25984    { (exit 77); exit 77; }; }
25985    else
25986      ac_cv_sizeof_int_p=0
25987    fi
25988 fi
25989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25990 fi
25991 rm -f conftest.val
25992 fi
25993 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25994 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25995
25996
25997
25998 cat >>confdefs.h <<_ACEOF
25999 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26000 _ACEOF
26001
26002
26003
26004 # Check for sys/types.h types
26005 { echo "$as_me:$LINENO: checking for u_int type" >&5
26006 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26007 if test "${ac_cv_have_u_int+set}" = set; then
26008   echo $ECHO_N "(cached) $ECHO_C" >&6
26009 else
26010
26011     cat >conftest.$ac_ext <<_ACEOF
26012 /* confdefs.h.  */
26013 _ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h.  */
26017  #include <sys/types.h>
26018 int
26019 main ()
26020 {
26021  u_int a; a = 1;
26022   ;
26023   return 0;
26024 }
26025 _ACEOF
26026 rm -f conftest.$ac_objext
26027 if { (ac_try="$ac_compile"
26028 case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033   (eval "$ac_compile") 2>conftest.er1
26034   ac_status=$?
26035   grep -v '^ *+' conftest.er1 >conftest.err
26036   rm -f conftest.er1
26037   cat conftest.err >&5
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); } && {
26040          test -z "$ac_c_werror_flag" ||
26041          test ! -s conftest.err
26042        } && test -s conftest.$ac_objext; then
26043    ac_cv_have_u_int="yes"
26044 else
26045   echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26047
26048          ac_cv_have_u_int="no"
26049
26050 fi
26051
26052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053
26054 fi
26055 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26056 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26057 if test "x$ac_cv_have_u_int" = "xyes" ; then
26058    cat >>confdefs.h <<\_ACEOF
26059 #define HAVE_U_INT 1
26060 _ACEOF
26061
26062    have_u_int=1
26063 fi
26064
26065 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26066 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26067 if test "${ac_cv_have_intmax_t+set}" = set; then
26068   echo $ECHO_N "(cached) $ECHO_C" >&6
26069 else
26070
26071    cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077  #include <sys/types.h>
26078 int
26079 main ()
26080 {
26081  intmax_t a; a = 1;
26082   ;
26083   return 0;
26084 }
26085 _ACEOF
26086 rm -f conftest.$ac_objext
26087 if { (ac_try="$ac_compile"
26088 case "(($ac_try" in
26089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090   *) ac_try_echo=$ac_try;;
26091 esac
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093   (eval "$ac_compile") 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } && {
26100          test -z "$ac_c_werror_flag" ||
26101          test ! -s conftest.err
26102        } && test -s conftest.$ac_objext; then
26103    ac_cv_have_intmax_t="yes"
26104 else
26105   echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26107
26108
26109          cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115  #include <stdint.h>
26116 int
26117 main ()
26118 {
26119  intmax_t a; a = 1;
26120   ;
26121   return 0;
26122 }
26123 _ACEOF
26124 rm -f conftest.$ac_objext
26125 if { (ac_try="$ac_compile"
26126 case "(($ac_try" in
26127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128   *) ac_try_echo=$ac_try;;
26129 esac
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131   (eval "$ac_compile") 2>conftest.er1
26132   ac_status=$?
26133   grep -v '^ *+' conftest.er1 >conftest.err
26134   rm -f conftest.er1
26135   cat conftest.err >&5
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); } && {
26138          test -z "$ac_c_werror_flag" ||
26139          test ! -s conftest.err
26140        } && test -s conftest.$ac_objext; then
26141    ac_cv_have_intmax_t="yes"
26142 else
26143   echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26145
26146          ac_cv_have_intmax_t="no"
26147
26148 fi
26149
26150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151
26152
26153 fi
26154
26155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26156
26157
26158 fi
26159 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26160 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26161 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26162    cat >>confdefs.h <<\_ACEOF
26163 #define HAVE_INTMAX_T 1
26164 _ACEOF
26165
26166    have_intmax_t=1
26167 fi
26168
26169
26170 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26171 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26172 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26173   echo $ECHO_N "(cached) $ECHO_C" >&6
26174 else
26175
26176    cat >conftest.$ac_ext <<_ACEOF
26177 /* confdefs.h.  */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h.  */
26182  #include <sys/types.h>
26183 int
26184 main ()
26185 {
26186  u_intmax_t a; a = 1;
26187   ;
26188   return 0;
26189 }
26190 _ACEOF
26191 rm -f conftest.$ac_objext
26192 if { (ac_try="$ac_compile"
26193 case "(($ac_try" in
26194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26195   *) ac_try_echo=$ac_try;;
26196 esac
26197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26198   (eval "$ac_compile") 2>conftest.er1
26199   ac_status=$?
26200   grep -v '^ *+' conftest.er1 >conftest.err
26201   rm -f conftest.er1
26202   cat conftest.err >&5
26203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204   (exit $ac_status); } && {
26205          test -z "$ac_c_werror_flag" ||
26206          test ! -s conftest.err
26207        } && test -s conftest.$ac_objext; then
26208    ac_cv_have_u_intmax_t="yes"
26209 else
26210   echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213
26214          cat >conftest.$ac_ext <<_ACEOF
26215 /* confdefs.h.  */
26216 _ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h.  */
26220  #include <stdint.h>
26221 int
26222 main ()
26223 {
26224  u_intmax_t a; a = 1;
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 rm -f conftest.$ac_objext
26230 if { (ac_try="$ac_compile"
26231 case "(($ac_try" in
26232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26233   *) ac_try_echo=$ac_try;;
26234 esac
26235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26236   (eval "$ac_compile") 2>conftest.er1
26237   ac_status=$?
26238   grep -v '^ *+' conftest.er1 >conftest.err
26239   rm -f conftest.er1
26240   cat conftest.err >&5
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); } && {
26243          test -z "$ac_c_werror_flag" ||
26244          test ! -s conftest.err
26245        } && test -s conftest.$ac_objext; then
26246    ac_cv_have_u_intmax_t="yes"
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251          ac_cv_have_u_intmax_t="no"
26252
26253 fi
26254
26255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256
26257
26258 fi
26259
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26261
26262 fi
26263 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26264 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26265 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26266    cat >>confdefs.h <<\_ACEOF
26267 #define HAVE_U_INTMAX_T 1
26268 _ACEOF
26269
26270    have_u_intmax_t=1
26271 fi
26272
26273
26274 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26275 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26276 if test "${ac_cv_have_intxx_t+set}" = set; then
26277   echo $ECHO_N "(cached) $ECHO_C" >&6
26278 else
26279
26280    cat >conftest.$ac_ext <<_ACEOF
26281 /* confdefs.h.  */
26282 _ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h.  */
26286  #include <sys/types.h>
26287 int
26288 main ()
26289 {
26290  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26291   ;
26292   return 0;
26293 }
26294 _ACEOF
26295 rm -f conftest.$ac_objext
26296 if { (ac_try="$ac_compile"
26297 case "(($ac_try" in
26298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26299   *) ac_try_echo=$ac_try;;
26300 esac
26301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26302   (eval "$ac_compile") 2>conftest.er1
26303   ac_status=$?
26304   grep -v '^ *+' conftest.er1 >conftest.err
26305   rm -f conftest.er1
26306   cat conftest.err >&5
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); } && {
26309          test -z "$ac_c_werror_flag" ||
26310          test ! -s conftest.err
26311        } && test -s conftest.$ac_objext; then
26312    ac_cv_have_intxx_t="yes"
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317          ac_cv_have_intxx_t="no"
26318
26319 fi
26320
26321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26322
26323 fi
26324 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26325 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26326 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26327    cat >>confdefs.h <<\_ACEOF
26328 #define HAVE_INTXX_T 1
26329 _ACEOF
26330
26331    have_intxx_t=1
26332 fi
26333
26334 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26335 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26336 if test "${ac_cv_have_int64_t+set}" = set; then
26337   echo $ECHO_N "(cached) $ECHO_C" >&6
26338 else
26339
26340    cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346  #include <sys/types.h>
26347 int
26348 main ()
26349 {
26350  int64_t a; a = 1;
26351   ;
26352   return 0;
26353 }
26354 _ACEOF
26355 rm -f conftest.$ac_objext
26356 if { (ac_try="$ac_compile"
26357 case "(($ac_try" in
26358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26359   *) ac_try_echo=$ac_try;;
26360 esac
26361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26362   (eval "$ac_compile") 2>conftest.er1
26363   ac_status=$?
26364   grep -v '^ *+' conftest.er1 >conftest.err
26365   rm -f conftest.er1
26366   cat conftest.err >&5
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); } && {
26369          test -z "$ac_c_werror_flag" ||
26370          test ! -s conftest.err
26371        } && test -s conftest.$ac_objext; then
26372    ac_cv_have_int64_t="yes"
26373 else
26374   echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26376
26377          ac_cv_have_int64_t="no"
26378
26379 fi
26380
26381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26382
26383 fi
26384 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26385 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26386 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26387    cat >>confdefs.h <<\_ACEOF
26388 #define HAVE_INT64_T 1
26389 _ACEOF
26390
26391    have_int64_t=1
26392 fi
26393
26394 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26395 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26396 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26397   echo $ECHO_N "(cached) $ECHO_C" >&6
26398 else
26399
26400    cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h.  */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h.  */
26406  #include <sys/types.h>
26407 int
26408 main ()
26409 {
26410  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 rm -f conftest.$ac_objext
26416 if { (ac_try="$ac_compile"
26417 case "(($ac_try" in
26418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419   *) ac_try_echo=$ac_try;;
26420 esac
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422   (eval "$ac_compile") 2>conftest.er1
26423   ac_status=$?
26424   grep -v '^ *+' conftest.er1 >conftest.err
26425   rm -f conftest.er1
26426   cat conftest.err >&5
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); } && {
26429          test -z "$ac_c_werror_flag" ||
26430          test ! -s conftest.err
26431        } && test -s conftest.$ac_objext; then
26432    ac_cv_have_u_intxx_t="yes"
26433 else
26434   echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26436
26437          ac_cv_have_u_intxx_t="no"
26438
26439 fi
26440
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442
26443 fi
26444 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26445 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26446 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26447    cat >>confdefs.h <<\_ACEOF
26448 #define HAVE_U_INTXX_T 1
26449 _ACEOF
26450
26451    have_u_intxx_t=1
26452 fi
26453
26454 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26455 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26456 if test "${ac_cv_have_u_int64_t+set}" = set; then
26457   echo $ECHO_N "(cached) $ECHO_C" >&6
26458 else
26459
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/types.h>
26467 int
26468 main ()
26469 {
26470  u_int64_t a; a = 1;
26471   ;
26472   return 0;
26473 }
26474 _ACEOF
26475 rm -f conftest.$ac_objext
26476 if { (ac_try="$ac_compile"
26477 case "(($ac_try" in
26478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26479   *) ac_try_echo=$ac_try;;
26480 esac
26481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26482   (eval "$ac_compile") 2>conftest.er1
26483   ac_status=$?
26484   grep -v '^ *+' conftest.er1 >conftest.err
26485   rm -f conftest.er1
26486   cat conftest.err >&5
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); } && {
26489          test -z "$ac_c_werror_flag" ||
26490          test ! -s conftest.err
26491        } && test -s conftest.$ac_objext; then
26492    ac_cv_have_u_int64_t="yes"
26493 else
26494   echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26496
26497          ac_cv_have_u_int64_t="no"
26498
26499 fi
26500
26501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26502
26503 fi
26504 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26505 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26506 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26507    cat >>confdefs.h <<\_ACEOF
26508 #define HAVE_U_INT64_T 1
26509 _ACEOF
26510
26511    have_u_int64_t=1
26512 fi
26513
26514 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26515            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26516 then
26517    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26518 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26519    cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525  #include <sys/bitypes.h>
26526 int
26527 main ()
26528 {
26529  int8_t a; int16_t b; int32_t c;
26530         u_int8_t e; u_int16_t f; u_int32_t g;
26531         a = b = c = e = f = g = 1;
26532   ;
26533   return 0;
26534 }
26535 _ACEOF
26536 rm -f conftest.$ac_objext
26537 if { (ac_try="$ac_compile"
26538 case "(($ac_try" in
26539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26540   *) ac_try_echo=$ac_try;;
26541 esac
26542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26543   (eval "$ac_compile") 2>conftest.er1
26544   ac_status=$?
26545   grep -v '^ *+' conftest.er1 >conftest.err
26546   rm -f conftest.er1
26547   cat conftest.err >&5
26548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549   (exit $ac_status); } && {
26550          test -z "$ac_c_werror_flag" ||
26551          test ! -s conftest.err
26552        } && test -s conftest.$ac_objext; then
26553    cat >>confdefs.h <<\_ACEOF
26554 #define HAVE_U_INTXX_T 1
26555 _ACEOF
26556
26557         cat >>confdefs.h <<\_ACEOF
26558 #define HAVE_INTXX_T 1
26559 _ACEOF
26560
26561         cat >>confdefs.h <<\_ACEOF
26562 #define HAVE_SYS_BITYPES_H 1
26563 _ACEOF
26564
26565         { echo "$as_me:$LINENO: result: yes" >&5
26566 echo "${ECHO_T}yes" >&6; }
26567 else
26568   echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26570
26571          { echo "$as_me:$LINENO: result: no" >&5
26572 echo "${ECHO_T}no" >&6; }
26573
26574 fi
26575
26576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26577 fi
26578
26579 if test -z "$have_u_intxx_t" ; then
26580    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26581 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26582 if test "${ac_cv_have_uintxx_t+set}" = set; then
26583   echo $ECHO_N "(cached) $ECHO_C" >&6
26584 else
26585
26586       cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h.  */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h.  */
26592  #include <sys/types.h>
26593 int
26594 main ()
26595 {
26596  uint8_t a; uint16_t b;
26597            uint32_t c; a = b = c = 1;
26598   ;
26599   return 0;
26600 }
26601 _ACEOF
26602 rm -f conftest.$ac_objext
26603 if { (ac_try="$ac_compile"
26604 case "(($ac_try" in
26605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606   *) ac_try_echo=$ac_try;;
26607 esac
26608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26609   (eval "$ac_compile") 2>conftest.er1
26610   ac_status=$?
26611   grep -v '^ *+' conftest.er1 >conftest.err
26612   rm -f conftest.er1
26613   cat conftest.err >&5
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); } && {
26616          test -z "$ac_c_werror_flag" ||
26617          test ! -s conftest.err
26618        } && test -s conftest.$ac_objext; then
26619    ac_cv_have_uintxx_t="yes"
26620 else
26621   echo "$as_me: failed program was:" >&5
26622 sed 's/^/| /' conftest.$ac_ext >&5
26623
26624          ac_cv_have_uintxx_t="no"
26625
26626 fi
26627
26628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26629
26630 fi
26631 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26632 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26633    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26634       cat >>confdefs.h <<\_ACEOF
26635 #define HAVE_UINTXX_T 1
26636 _ACEOF
26637
26638    fi
26639 fi
26640
26641 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26642           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26643 then
26644    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26645 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26646    cat >conftest.$ac_ext <<_ACEOF
26647 /* confdefs.h.  */
26648 _ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h.  */
26652  #include <sys/bitypes.h>
26653 int
26654 main ()
26655 {
26656  int64_t a; u_int64_t b;
26657        a = b = 1;
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 rm -f conftest.$ac_objext
26663 if { (ac_try="$ac_compile"
26664 case "(($ac_try" in
26665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666   *) ac_try_echo=$ac_try;;
26667 esac
26668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26669   (eval "$ac_compile") 2>conftest.er1
26670   ac_status=$?
26671   grep -v '^ *+' conftest.er1 >conftest.err
26672   rm -f conftest.er1
26673   cat conftest.err >&5
26674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675   (exit $ac_status); } && {
26676          test -z "$ac_c_werror_flag" ||
26677          test ! -s conftest.err
26678        } && test -s conftest.$ac_objext; then
26679    cat >>confdefs.h <<\_ACEOF
26680 #define HAVE_U_INT64_T 1
26681 _ACEOF
26682
26683        cat >>confdefs.h <<\_ACEOF
26684 #define HAVE_INT64_T 1
26685 _ACEOF
26686
26687        { echo "$as_me:$LINENO: result: yes" >&5
26688 echo "${ECHO_T}yes" >&6; }
26689 else
26690   echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26692
26693          { echo "$as_me:$LINENO: result: no" >&5
26694 echo "${ECHO_T}no" >&6; }
26695
26696 fi
26697
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26699 fi
26700
26701 if (test -z "$have_uintxx_t" && \
26702           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26703 then
26704    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26705 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26706    cat >conftest.$ac_ext <<_ACEOF
26707 /* confdefs.h.  */
26708 _ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h.  */
26712  #include <sys/bitypes.h>
26713 int
26714 main ()
26715 {
26716  uint8_t a; uint16_t b;
26717           uint32_t c; a = b = c = 1;
26718   ;
26719   return 0;
26720 }
26721 _ACEOF
26722 rm -f conftest.$ac_objext
26723 if { (ac_try="$ac_compile"
26724 case "(($ac_try" in
26725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726   *) ac_try_echo=$ac_try;;
26727 esac
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729   (eval "$ac_compile") 2>conftest.er1
26730   ac_status=$?
26731   grep -v '^ *+' conftest.er1 >conftest.err
26732   rm -f conftest.er1
26733   cat conftest.err >&5
26734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); } && {
26736          test -z "$ac_c_werror_flag" ||
26737          test ! -s conftest.err
26738        } && test -s conftest.$ac_objext; then
26739    cat >>confdefs.h <<\_ACEOF
26740 #define HAVE_UINTXX_T 1
26741 _ACEOF
26742
26743        { echo "$as_me:$LINENO: result: yes" >&5
26744 echo "${ECHO_T}yes" >&6; }
26745 else
26746   echo "$as_me: failed program was:" >&5
26747 sed 's/^/| /' conftest.$ac_ext >&5
26748
26749          { echo "$as_me:$LINENO: result: no" >&5
26750 echo "${ECHO_T}no" >&6; }
26751
26752 fi
26753
26754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26755
26756 fi
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774 for ac_func in \
26775         fork \
26776         getcwd \
26777         gethostname \
26778         getpid \
26779         gettimeofday \
26780         setpgid \
26781         setpgrp \
26782         setsid \
26783         signal \
26784         strerror \
26785         strncmp \
26786         strncpy \
26787         vfprintf \
26788
26789 do
26790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26794   echo $ECHO_N "(cached) $ECHO_C" >&6
26795 else
26796   cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26804 #define $ac_func innocuous_$ac_func
26805
26806 /* System header to define __stub macros and hopefully few prototypes,
26807     which can conflict with char $ac_func (); below.
26808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26809     <limits.h> exists even on freestanding compilers.  */
26810
26811 #ifdef __STDC__
26812 # include <limits.h>
26813 #else
26814 # include <assert.h>
26815 #endif
26816
26817 #undef $ac_func
26818
26819 /* Override any GCC internal prototype to avoid an error.
26820    Use char because int might match the return type of a GCC
26821    builtin and then its argument prototype would still apply.  */
26822 #ifdef __cplusplus
26823 extern "C"
26824 #endif
26825 char $ac_func ();
26826 /* The GNU C library defines this for functions which it implements
26827     to always fail with ENOSYS.  Some functions are actually named
26828     something starting with __ and the normal name is an alias.  */
26829 #if defined __stub_$ac_func || defined __stub___$ac_func
26830 choke me
26831 #endif
26832
26833 int
26834 main ()
26835 {
26836 return $ac_func ();
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest.$ac_objext conftest$ac_exeext
26842 if { (ac_try="$ac_link"
26843 case "(($ac_try" in
26844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845   *) ac_try_echo=$ac_try;;
26846 esac
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848   (eval "$ac_link") 2>conftest.er1
26849   ac_status=$?
26850   grep -v '^ *+' conftest.er1 >conftest.err
26851   rm -f conftest.er1
26852   cat conftest.err >&5
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } && {
26855          test -z "$ac_c_werror_flag" ||
26856          test ! -s conftest.err
26857        } && test -s conftest$ac_exeext &&
26858        $as_test_x conftest$ac_exeext; then
26859   eval "$as_ac_var=yes"
26860 else
26861   echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864         eval "$as_ac_var=no"
26865 fi
26866
26867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26868       conftest$ac_exeext conftest.$ac_ext
26869 fi
26870 ac_res=`eval echo '${'$as_ac_var'}'`
26871                { echo "$as_me:$LINENO: result: $ac_res" >&5
26872 echo "${ECHO_T}$ac_res" >&6; }
26873 if test `eval echo '${'$as_ac_var'}'` = yes; then
26874   cat >>confdefs.h <<_ACEOF
26875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26876 _ACEOF
26877
26878 else
26879   echo 'configure: cannot find needed function.'; exit 1
26880
26881 fi
26882 done
26883
26884
26885
26886 for ac_func in fchdir
26887 do
26888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26892   echo $ECHO_N "(cached) $ECHO_C" >&6
26893 else
26894   cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h.  */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h.  */
26900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26902 #define $ac_func innocuous_$ac_func
26903
26904 /* System header to define __stub macros and hopefully few prototypes,
26905     which can conflict with char $ac_func (); below.
26906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26907     <limits.h> exists even on freestanding compilers.  */
26908
26909 #ifdef __STDC__
26910 # include <limits.h>
26911 #else
26912 # include <assert.h>
26913 #endif
26914
26915 #undef $ac_func
26916
26917 /* Override any GCC internal prototype to avoid an error.
26918    Use char because int might match the return type of a GCC
26919    builtin and then its argument prototype would still apply.  */
26920 #ifdef __cplusplus
26921 extern "C"
26922 #endif
26923 char $ac_func ();
26924 /* The GNU C library defines this for functions which it implements
26925     to always fail with ENOSYS.  Some functions are actually named
26926     something starting with __ and the normal name is an alias.  */
26927 #if defined __stub_$ac_func || defined __stub___$ac_func
26928 choke me
26929 #endif
26930
26931 int
26932 main ()
26933 {
26934 return $ac_func ();
26935   ;
26936   return 0;
26937 }
26938 _ACEOF
26939 rm -f conftest.$ac_objext conftest$ac_exeext
26940 if { (ac_try="$ac_link"
26941 case "(($ac_try" in
26942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943   *) ac_try_echo=$ac_try;;
26944 esac
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946   (eval "$ac_link") 2>conftest.er1
26947   ac_status=$?
26948   grep -v '^ *+' conftest.er1 >conftest.err
26949   rm -f conftest.er1
26950   cat conftest.err >&5
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); } && {
26953          test -z "$ac_c_werror_flag" ||
26954          test ! -s conftest.err
26955        } && test -s conftest$ac_exeext &&
26956        $as_test_x conftest$ac_exeext; then
26957   eval "$as_ac_var=yes"
26958 else
26959   echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26961
26962         eval "$as_ac_var=no"
26963 fi
26964
26965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26966       conftest$ac_exeext conftest.$ac_ext
26967 fi
26968 ac_res=`eval echo '${'$as_ac_var'}'`
26969                { echo "$as_me:$LINENO: result: $ac_res" >&5
26970 echo "${ECHO_T}$ac_res" >&6; }
26971 if test `eval echo '${'$as_ac_var'}'` = yes; then
26972   cat >>confdefs.h <<_ACEOF
26973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26974 _ACEOF
26975  cat >>confdefs.h <<\_ACEOF
26976 #define HAVE_FCHDIR 1
26977 _ACEOF
26978
26979 fi
26980 done
26981
26982
26983 for ac_func in strtoll
26984 do
26985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26989   echo $ECHO_N "(cached) $ECHO_C" >&6
26990 else
26991   cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26999 #define $ac_func innocuous_$ac_func
27000
27001 /* System header to define __stub macros and hopefully few prototypes,
27002     which can conflict with char $ac_func (); below.
27003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27004     <limits.h> exists even on freestanding compilers.  */
27005
27006 #ifdef __STDC__
27007 # include <limits.h>
27008 #else
27009 # include <assert.h>
27010 #endif
27011
27012 #undef $ac_func
27013
27014 /* Override any GCC internal prototype to avoid an error.
27015    Use char because int might match the return type of a GCC
27016    builtin and then its argument prototype would still apply.  */
27017 #ifdef __cplusplus
27018 extern "C"
27019 #endif
27020 char $ac_func ();
27021 /* The GNU C library defines this for functions which it implements
27022     to always fail with ENOSYS.  Some functions are actually named
27023     something starting with __ and the normal name is an alias.  */
27024 #if defined __stub_$ac_func || defined __stub___$ac_func
27025 choke me
27026 #endif
27027
27028 int
27029 main ()
27030 {
27031 return $ac_func ();
27032   ;
27033   return 0;
27034 }
27035 _ACEOF
27036 rm -f conftest.$ac_objext conftest$ac_exeext
27037 if { (ac_try="$ac_link"
27038 case "(($ac_try" in
27039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040   *) ac_try_echo=$ac_try;;
27041 esac
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043   (eval "$ac_link") 2>conftest.er1
27044   ac_status=$?
27045   grep -v '^ *+' conftest.er1 >conftest.err
27046   rm -f conftest.er1
27047   cat conftest.err >&5
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); } && {
27050          test -z "$ac_c_werror_flag" ||
27051          test ! -s conftest.err
27052        } && test -s conftest$ac_exeext &&
27053        $as_test_x conftest$ac_exeext; then
27054   eval "$as_ac_var=yes"
27055 else
27056   echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27058
27059         eval "$as_ac_var=no"
27060 fi
27061
27062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27063       conftest$ac_exeext conftest.$ac_ext
27064 fi
27065 ac_res=`eval echo '${'$as_ac_var'}'`
27066                { echo "$as_me:$LINENO: result: $ac_res" >&5
27067 echo "${ECHO_T}$ac_res" >&6; }
27068 if test `eval echo '${'$as_ac_var'}'` = yes; then
27069   cat >>confdefs.h <<_ACEOF
27070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27071 _ACEOF
27072  cat >>confdefs.h <<\_ACEOF
27073 #define HAVE_STRTOLL 1
27074 _ACEOF
27075
27076 fi
27077 done
27078
27079
27080 for ac_func in posix_fadvise
27081 do
27082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088   cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h.  */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h.  */
27094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27096 #define $ac_func innocuous_$ac_func
27097
27098 /* System header to define __stub macros and hopefully few prototypes,
27099     which can conflict with char $ac_func (); below.
27100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27101     <limits.h> exists even on freestanding compilers.  */
27102
27103 #ifdef __STDC__
27104 # include <limits.h>
27105 #else
27106 # include <assert.h>
27107 #endif
27108
27109 #undef $ac_func
27110
27111 /* Override any GCC internal prototype to avoid an error.
27112    Use char because int might match the return type of a GCC
27113    builtin and then its argument prototype would still apply.  */
27114 #ifdef __cplusplus
27115 extern "C"
27116 #endif
27117 char $ac_func ();
27118 /* The GNU C library defines this for functions which it implements
27119     to always fail with ENOSYS.  Some functions are actually named
27120     something starting with __ and the normal name is an alias.  */
27121 #if defined __stub_$ac_func || defined __stub___$ac_func
27122 choke me
27123 #endif
27124
27125 int
27126 main ()
27127 {
27128 return $ac_func ();
27129   ;
27130   return 0;
27131 }
27132 _ACEOF
27133 rm -f conftest.$ac_objext conftest$ac_exeext
27134 if { (ac_try="$ac_link"
27135 case "(($ac_try" in
27136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137   *) ac_try_echo=$ac_try;;
27138 esac
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140   (eval "$ac_link") 2>conftest.er1
27141   ac_status=$?
27142   grep -v '^ *+' conftest.er1 >conftest.err
27143   rm -f conftest.er1
27144   cat conftest.err >&5
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); } && {
27147          test -z "$ac_c_werror_flag" ||
27148          test ! -s conftest.err
27149        } && test -s conftest$ac_exeext &&
27150        $as_test_x conftest$ac_exeext; then
27151   eval "$as_ac_var=yes"
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         eval "$as_ac_var=no"
27157 fi
27158
27159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27160       conftest$ac_exeext conftest.$ac_ext
27161 fi
27162 ac_res=`eval echo '${'$as_ac_var'}'`
27163                { echo "$as_me:$LINENO: result: $ac_res" >&5
27164 echo "${ECHO_T}$ac_res" >&6; }
27165 if test `eval echo '${'$as_ac_var'}'` = yes; then
27166   cat >>confdefs.h <<_ACEOF
27167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27168 _ACEOF
27169
27170 fi
27171 done
27172
27173
27174 for ac_func in fdatasync
27175 do
27176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27180   echo $ECHO_N "(cached) $ECHO_C" >&6
27181 else
27182   cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h.  */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h.  */
27188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27190 #define $ac_func innocuous_$ac_func
27191
27192 /* System header to define __stub macros and hopefully few prototypes,
27193     which can conflict with char $ac_func (); below.
27194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27195     <limits.h> exists even on freestanding compilers.  */
27196
27197 #ifdef __STDC__
27198 # include <limits.h>
27199 #else
27200 # include <assert.h>
27201 #endif
27202
27203 #undef $ac_func
27204
27205 /* Override any GCC internal prototype to avoid an error.
27206    Use char because int might match the return type of a GCC
27207    builtin and then its argument prototype would still apply.  */
27208 #ifdef __cplusplus
27209 extern "C"
27210 #endif
27211 char $ac_func ();
27212 /* The GNU C library defines this for functions which it implements
27213     to always fail with ENOSYS.  Some functions are actually named
27214     something starting with __ and the normal name is an alias.  */
27215 #if defined __stub_$ac_func || defined __stub___$ac_func
27216 choke me
27217 #endif
27218
27219 int
27220 main ()
27221 {
27222 return $ac_func ();
27223   ;
27224   return 0;
27225 }
27226 _ACEOF
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228 if { (ac_try="$ac_link"
27229 case "(($ac_try" in
27230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231   *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234   (eval "$ac_link") 2>conftest.er1
27235   ac_status=$?
27236   grep -v '^ *+' conftest.er1 >conftest.err
27237   rm -f conftest.er1
27238   cat conftest.err >&5
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } && {
27241          test -z "$ac_c_werror_flag" ||
27242          test ! -s conftest.err
27243        } && test -s conftest$ac_exeext &&
27244        $as_test_x conftest$ac_exeext; then
27245   eval "$as_ac_var=yes"
27246 else
27247   echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27249
27250         eval "$as_ac_var=no"
27251 fi
27252
27253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27254       conftest$ac_exeext conftest.$ac_ext
27255 fi
27256 ac_res=`eval echo '${'$as_ac_var'}'`
27257                { echo "$as_me:$LINENO: result: $ac_res" >&5
27258 echo "${ECHO_T}$ac_res" >&6; }
27259 if test `eval echo '${'$as_ac_var'}'` = yes; then
27260   cat >>confdefs.h <<_ACEOF
27261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27262 _ACEOF
27263
27264 fi
27265 done
27266
27267
27268
27269 for ac_func in chflags
27270 do
27271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27275   echo $ECHO_N "(cached) $ECHO_C" >&6
27276 else
27277   cat >conftest.$ac_ext <<_ACEOF
27278 /* confdefs.h.  */
27279 _ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h.  */
27283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27285 #define $ac_func innocuous_$ac_func
27286
27287 /* System header to define __stub macros and hopefully few prototypes,
27288     which can conflict with char $ac_func (); below.
27289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27290     <limits.h> exists even on freestanding compilers.  */
27291
27292 #ifdef __STDC__
27293 # include <limits.h>
27294 #else
27295 # include <assert.h>
27296 #endif
27297
27298 #undef $ac_func
27299
27300 /* Override any GCC internal prototype to avoid an error.
27301    Use char because int might match the return type of a GCC
27302    builtin and then its argument prototype would still apply.  */
27303 #ifdef __cplusplus
27304 extern "C"
27305 #endif
27306 char $ac_func ();
27307 /* The GNU C library defines this for functions which it implements
27308     to always fail with ENOSYS.  Some functions are actually named
27309     something starting with __ and the normal name is an alias.  */
27310 #if defined __stub_$ac_func || defined __stub___$ac_func
27311 choke me
27312 #endif
27313
27314 int
27315 main ()
27316 {
27317 return $ac_func ();
27318   ;
27319   return 0;
27320 }
27321 _ACEOF
27322 rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (ac_try="$ac_link"
27324 case "(($ac_try" in
27325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326   *) ac_try_echo=$ac_try;;
27327 esac
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329   (eval "$ac_link") 2>conftest.er1
27330   ac_status=$?
27331   grep -v '^ *+' conftest.er1 >conftest.err
27332   rm -f conftest.er1
27333   cat conftest.err >&5
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); } && {
27336          test -z "$ac_c_werror_flag" ||
27337          test ! -s conftest.err
27338        } && test -s conftest$ac_exeext &&
27339        $as_test_x conftest$ac_exeext; then
27340   eval "$as_ac_var=yes"
27341 else
27342   echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27344
27345         eval "$as_ac_var=no"
27346 fi
27347
27348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27349       conftest$ac_exeext conftest.$ac_ext
27350 fi
27351 ac_res=`eval echo '${'$as_ac_var'}'`
27352                { echo "$as_me:$LINENO: result: $ac_res" >&5
27353 echo "${ECHO_T}$ac_res" >&6; }
27354 if test `eval echo '${'$as_ac_var'}'` = yes; then
27355   cat >>confdefs.h <<_ACEOF
27356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27357 _ACEOF
27358
27359 fi
27360 done
27361
27362
27363
27364
27365
27366
27367 for ac_func in snprintf vsnprintf gethostid fseeko
27368 do
27369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27373   echo $ECHO_N "(cached) $ECHO_C" >&6
27374 else
27375   cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27383 #define $ac_func innocuous_$ac_func
27384
27385 /* System header to define __stub macros and hopefully few prototypes,
27386     which can conflict with char $ac_func (); below.
27387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27388     <limits.h> exists even on freestanding compilers.  */
27389
27390 #ifdef __STDC__
27391 # include <limits.h>
27392 #else
27393 # include <assert.h>
27394 #endif
27395
27396 #undef $ac_func
27397
27398 /* Override any GCC internal prototype to avoid an error.
27399    Use char because int might match the return type of a GCC
27400    builtin and then its argument prototype would still apply.  */
27401 #ifdef __cplusplus
27402 extern "C"
27403 #endif
27404 char $ac_func ();
27405 /* The GNU C library defines this for functions which it implements
27406     to always fail with ENOSYS.  Some functions are actually named
27407     something starting with __ and the normal name is an alias.  */
27408 #if defined __stub_$ac_func || defined __stub___$ac_func
27409 choke me
27410 #endif
27411
27412 int
27413 main ()
27414 {
27415 return $ac_func ();
27416   ;
27417   return 0;
27418 }
27419 _ACEOF
27420 rm -f conftest.$ac_objext conftest$ac_exeext
27421 if { (ac_try="$ac_link"
27422 case "(($ac_try" in
27423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424   *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427   (eval "$ac_link") 2>conftest.er1
27428   ac_status=$?
27429   grep -v '^ *+' conftest.er1 >conftest.err
27430   rm -f conftest.er1
27431   cat conftest.err >&5
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); } && {
27434          test -z "$ac_c_werror_flag" ||
27435          test ! -s conftest.err
27436        } && test -s conftest$ac_exeext &&
27437        $as_test_x conftest$ac_exeext; then
27438   eval "$as_ac_var=yes"
27439 else
27440   echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27442
27443         eval "$as_ac_var=no"
27444 fi
27445
27446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27447       conftest$ac_exeext conftest.$ac_ext
27448 fi
27449 ac_res=`eval echo '${'$as_ac_var'}'`
27450                { echo "$as_me:$LINENO: result: $ac_res" >&5
27451 echo "${ECHO_T}$ac_res" >&6; }
27452 if test `eval echo '${'$as_ac_var'}'` = yes; then
27453   cat >>confdefs.h <<_ACEOF
27454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27455 _ACEOF
27456
27457 fi
27458 done
27459
27460
27461 { echo "$as_me:$LINENO: checking for va_copy" >&5
27462 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27463 if test "${ba_cv_va_copy+set}" = set; then
27464   echo $ECHO_N "(cached) $ECHO_C" >&6
27465 else
27466   cat >conftest.$ac_ext <<_ACEOF
27467 /* confdefs.h.  */
27468 _ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h.  */
27472
27473 #include <stdarg.h>
27474 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27475 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27476
27477 int
27478 main ()
27479 {
27480 call_use_va_copy(1,2,3)
27481   ;
27482   return 0;
27483 }
27484 _ACEOF
27485 rm -f conftest.$ac_objext conftest$ac_exeext
27486 if { (ac_try="$ac_link"
27487 case "(($ac_try" in
27488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489   *) ac_try_echo=$ac_try;;
27490 esac
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492   (eval "$ac_link") 2>conftest.er1
27493   ac_status=$?
27494   grep -v '^ *+' conftest.er1 >conftest.err
27495   rm -f conftest.er1
27496   cat conftest.err >&5
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); } && {
27499          test -z "$ac_c_werror_flag" ||
27500          test ! -s conftest.err
27501        } && test -s conftest$ac_exeext &&
27502        $as_test_x conftest$ac_exeext; then
27503   ba_cv_va_copy=yes
27504 else
27505   echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27507
27508         ba_cv_va_copy=no
27509 fi
27510
27511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27512       conftest$ac_exeext conftest.$ac_ext
27513 fi
27514 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27515 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27516 test $ba_cv_va_copy = yes &&
27517 cat >>confdefs.h <<\_ACEOF
27518 #define HAVE_VA_COPY 1
27519 _ACEOF
27520
27521
27522
27523
27524
27525
27526
27527 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27528 do
27529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27533   echo $ECHO_N "(cached) $ECHO_C" >&6
27534 else
27535   cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h.  */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h.  */
27541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27543 #define $ac_func innocuous_$ac_func
27544
27545 /* System header to define __stub macros and hopefully few prototypes,
27546     which can conflict with char $ac_func (); below.
27547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27548     <limits.h> exists even on freestanding compilers.  */
27549
27550 #ifdef __STDC__
27551 # include <limits.h>
27552 #else
27553 # include <assert.h>
27554 #endif
27555
27556 #undef $ac_func
27557
27558 /* Override any GCC internal prototype to avoid an error.
27559    Use char because int might match the return type of a GCC
27560    builtin and then its argument prototype would still apply.  */
27561 #ifdef __cplusplus
27562 extern "C"
27563 #endif
27564 char $ac_func ();
27565 /* The GNU C library defines this for functions which it implements
27566     to always fail with ENOSYS.  Some functions are actually named
27567     something starting with __ and the normal name is an alias.  */
27568 #if defined __stub_$ac_func || defined __stub___$ac_func
27569 choke me
27570 #endif
27571
27572 int
27573 main ()
27574 {
27575 return $ac_func ();
27576   ;
27577   return 0;
27578 }
27579 _ACEOF
27580 rm -f conftest.$ac_objext conftest$ac_exeext
27581 if { (ac_try="$ac_link"
27582 case "(($ac_try" in
27583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584   *) ac_try_echo=$ac_try;;
27585 esac
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587   (eval "$ac_link") 2>conftest.er1
27588   ac_status=$?
27589   grep -v '^ *+' conftest.er1 >conftest.err
27590   rm -f conftest.er1
27591   cat conftest.err >&5
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); } && {
27594          test -z "$ac_c_werror_flag" ||
27595          test ! -s conftest.err
27596        } && test -s conftest$ac_exeext &&
27597        $as_test_x conftest$ac_exeext; then
27598   eval "$as_ac_var=yes"
27599 else
27600   echo "$as_me: failed program was:" >&5
27601 sed 's/^/| /' conftest.$ac_ext >&5
27602
27603         eval "$as_ac_var=no"
27604 fi
27605
27606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27607       conftest$ac_exeext conftest.$ac_ext
27608 fi
27609 ac_res=`eval echo '${'$as_ac_var'}'`
27610                { echo "$as_me:$LINENO: result: $ac_res" >&5
27611 echo "${ECHO_T}$ac_res" >&6; }
27612 if test `eval echo '${'$as_ac_var'}'` = yes; then
27613   cat >>confdefs.h <<_ACEOF
27614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27615 _ACEOF
27616
27617 fi
27618 done
27619
27620
27621 # If resolver functions are not in libc check for -lnsl or -lresolv.
27622 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27623 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27624 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27625   echo $ECHO_N "(cached) $ECHO_C" >&6
27626 else
27627   cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h.  */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h.  */
27633 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27635 #define gethostbyname_r innocuous_gethostbyname_r
27636
27637 /* System header to define __stub macros and hopefully few prototypes,
27638     which can conflict with char gethostbyname_r (); below.
27639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27640     <limits.h> exists even on freestanding compilers.  */
27641
27642 #ifdef __STDC__
27643 # include <limits.h>
27644 #else
27645 # include <assert.h>
27646 #endif
27647
27648 #undef gethostbyname_r
27649
27650 /* Override any GCC internal prototype to avoid an error.
27651    Use char because int might match the return type of a GCC
27652    builtin and then its argument prototype would still apply.  */
27653 #ifdef __cplusplus
27654 extern "C"
27655 #endif
27656 char gethostbyname_r ();
27657 /* The GNU C library defines this for functions which it implements
27658     to always fail with ENOSYS.  Some functions are actually named
27659     something starting with __ and the normal name is an alias.  */
27660 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27661 choke me
27662 #endif
27663
27664 int
27665 main ()
27666 {
27667 return gethostbyname_r ();
27668   ;
27669   return 0;
27670 }
27671 _ACEOF
27672 rm -f conftest.$ac_objext conftest$ac_exeext
27673 if { (ac_try="$ac_link"
27674 case "(($ac_try" in
27675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676   *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679   (eval "$ac_link") 2>conftest.er1
27680   ac_status=$?
27681   grep -v '^ *+' conftest.er1 >conftest.err
27682   rm -f conftest.er1
27683   cat conftest.err >&5
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); } && {
27686          test -z "$ac_c_werror_flag" ||
27687          test ! -s conftest.err
27688        } && test -s conftest$ac_exeext &&
27689        $as_test_x conftest$ac_exeext; then
27690   ac_cv_func_gethostbyname_r=yes
27691 else
27692   echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27694
27695         ac_cv_func_gethostbyname_r=no
27696 fi
27697
27698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27699       conftest$ac_exeext conftest.$ac_ext
27700 fi
27701 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27702 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27703 if test $ac_cv_func_gethostbyname_r = yes; then
27704   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27705 echo "${ECHO_T}using libc's resolver" >&6; }
27706 else
27707
27708 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27709 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27710 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27711   echo $ECHO_N "(cached) $ECHO_C" >&6
27712 else
27713   ac_check_lib_save_LIBS=$LIBS
27714 LIBS="-lnsl  $LIBS"
27715 cat >conftest.$ac_ext <<_ACEOF
27716 /* confdefs.h.  */
27717 _ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h.  */
27721
27722 /* Override any GCC internal prototype to avoid an error.
27723    Use char because int might match the return type of a GCC
27724    builtin and then its argument prototype would still apply.  */
27725 #ifdef __cplusplus
27726 extern "C"
27727 #endif
27728 char gethostbyname_r ();
27729 int
27730 main ()
27731 {
27732 return gethostbyname_r ();
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 rm -f conftest.$ac_objext conftest$ac_exeext
27738 if { (ac_try="$ac_link"
27739 case "(($ac_try" in
27740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741   *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744   (eval "$ac_link") 2>conftest.er1
27745   ac_status=$?
27746   grep -v '^ *+' conftest.er1 >conftest.err
27747   rm -f conftest.er1
27748   cat conftest.err >&5
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } && {
27751          test -z "$ac_c_werror_flag" ||
27752          test ! -s conftest.err
27753        } && test -s conftest$ac_exeext &&
27754        $as_test_x conftest$ac_exeext; then
27755   ac_cv_lib_nsl_gethostbyname_r=yes
27756 else
27757   echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760         ac_cv_lib_nsl_gethostbyname_r=no
27761 fi
27762
27763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27764       conftest$ac_exeext conftest.$ac_ext
27765 LIBS=$ac_check_lib_save_LIBS
27766 fi
27767 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27768 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27769 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27770   cat >>confdefs.h <<_ACEOF
27771 #define HAVE_LIBNSL 1
27772 _ACEOF
27773
27774   LIBS="-lnsl $LIBS"
27775
27776 fi
27777
27778
27779 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27780 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27781 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27782   echo $ECHO_N "(cached) $ECHO_C" >&6
27783 else
27784   ac_check_lib_save_LIBS=$LIBS
27785 LIBS="-lresolv  $LIBS"
27786 cat >conftest.$ac_ext <<_ACEOF
27787 /* confdefs.h.  */
27788 _ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h.  */
27792
27793 /* Override any GCC internal prototype to avoid an error.
27794    Use char because int might match the return type of a GCC
27795    builtin and then its argument prototype would still apply.  */
27796 #ifdef __cplusplus
27797 extern "C"
27798 #endif
27799 char gethostbyname_r ();
27800 int
27801 main ()
27802 {
27803 return gethostbyname_r ();
27804   ;
27805   return 0;
27806 }
27807 _ACEOF
27808 rm -f conftest.$ac_objext conftest$ac_exeext
27809 if { (ac_try="$ac_link"
27810 case "(($ac_try" in
27811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812   *) ac_try_echo=$ac_try;;
27813 esac
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815   (eval "$ac_link") 2>conftest.er1
27816   ac_status=$?
27817   grep -v '^ *+' conftest.er1 >conftest.err
27818   rm -f conftest.er1
27819   cat conftest.err >&5
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); } && {
27822          test -z "$ac_c_werror_flag" ||
27823          test ! -s conftest.err
27824        } && test -s conftest$ac_exeext &&
27825        $as_test_x conftest$ac_exeext; then
27826   ac_cv_lib_resolv_gethostbyname_r=yes
27827 else
27828   echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27830
27831         ac_cv_lib_resolv_gethostbyname_r=no
27832 fi
27833
27834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27835       conftest$ac_exeext conftest.$ac_ext
27836 LIBS=$ac_check_lib_save_LIBS
27837 fi
27838 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27839 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27840 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27841   cat >>confdefs.h <<_ACEOF
27842 #define HAVE_LIBRESOLV 1
27843 _ACEOF
27844
27845   LIBS="-lresolv $LIBS"
27846
27847 fi
27848
27849 fi
27850
27851
27852
27853
27854
27855 for ac_func in inet_pton
27856 do
27857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27861   echo $ECHO_N "(cached) $ECHO_C" >&6
27862 else
27863   cat >conftest.$ac_ext <<_ACEOF
27864 /* confdefs.h.  */
27865 _ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h.  */
27869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27871 #define $ac_func innocuous_$ac_func
27872
27873 /* System header to define __stub macros and hopefully few prototypes,
27874     which can conflict with char $ac_func (); below.
27875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27876     <limits.h> exists even on freestanding compilers.  */
27877
27878 #ifdef __STDC__
27879 # include <limits.h>
27880 #else
27881 # include <assert.h>
27882 #endif
27883
27884 #undef $ac_func
27885
27886 /* Override any GCC internal prototype to avoid an error.
27887    Use char because int might match the return type of a GCC
27888    builtin and then its argument prototype would still apply.  */
27889 #ifdef __cplusplus
27890 extern "C"
27891 #endif
27892 char $ac_func ();
27893 /* The GNU C library defines this for functions which it implements
27894     to always fail with ENOSYS.  Some functions are actually named
27895     something starting with __ and the normal name is an alias.  */
27896 #if defined __stub_$ac_func || defined __stub___$ac_func
27897 choke me
27898 #endif
27899
27900 int
27901 main ()
27902 {
27903 return $ac_func ();
27904   ;
27905   return 0;
27906 }
27907 _ACEOF
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (ac_try="$ac_link"
27910 case "(($ac_try" in
27911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912   *) ac_try_echo=$ac_try;;
27913 esac
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915   (eval "$ac_link") 2>conftest.er1
27916   ac_status=$?
27917   grep -v '^ *+' conftest.er1 >conftest.err
27918   rm -f conftest.er1
27919   cat conftest.err >&5
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); } && {
27922          test -z "$ac_c_werror_flag" ||
27923          test ! -s conftest.err
27924        } && test -s conftest$ac_exeext &&
27925        $as_test_x conftest$ac_exeext; then
27926   eval "$as_ac_var=yes"
27927 else
27928   echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27930
27931         eval "$as_ac_var=no"
27932 fi
27933
27934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27935       conftest$ac_exeext conftest.$ac_ext
27936 fi
27937 ac_res=`eval echo '${'$as_ac_var'}'`
27938                { echo "$as_me:$LINENO: result: $ac_res" >&5
27939 echo "${ECHO_T}$ac_res" >&6; }
27940 if test `eval echo '${'$as_ac_var'}'` = yes; then
27941   cat >>confdefs.h <<_ACEOF
27942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27943 _ACEOF
27944  cat >>confdefs.h <<\_ACEOF
27945 #define HAVE_INET_PTON 1
27946 _ACEOF
27947
27948 fi
27949 done
27950
27951
27952 for ac_func in inet_ntop
27953 do
27954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27958   echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960   cat >conftest.$ac_ext <<_ACEOF
27961 /* confdefs.h.  */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h.  */
27966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27968 #define $ac_func innocuous_$ac_func
27969
27970 /* System header to define __stub macros and hopefully few prototypes,
27971     which can conflict with char $ac_func (); below.
27972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27973     <limits.h> exists even on freestanding compilers.  */
27974
27975 #ifdef __STDC__
27976 # include <limits.h>
27977 #else
27978 # include <assert.h>
27979 #endif
27980
27981 #undef $ac_func
27982
27983 /* Override any GCC internal prototype to avoid an error.
27984    Use char because int might match the return type of a GCC
27985    builtin and then its argument prototype would still apply.  */
27986 #ifdef __cplusplus
27987 extern "C"
27988 #endif
27989 char $ac_func ();
27990 /* The GNU C library defines this for functions which it implements
27991     to always fail with ENOSYS.  Some functions are actually named
27992     something starting with __ and the normal name is an alias.  */
27993 #if defined __stub_$ac_func || defined __stub___$ac_func
27994 choke me
27995 #endif
27996
27997 int
27998 main ()
27999 {
28000 return $ac_func ();
28001   ;
28002   return 0;
28003 }
28004 _ACEOF
28005 rm -f conftest.$ac_objext conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_link") 2>conftest.er1
28013   ac_status=$?
28014   grep -v '^ *+' conftest.er1 >conftest.err
28015   rm -f conftest.er1
28016   cat conftest.err >&5
28017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018   (exit $ac_status); } && {
28019          test -z "$ac_c_werror_flag" ||
28020          test ! -s conftest.err
28021        } && test -s conftest$ac_exeext &&
28022        $as_test_x conftest$ac_exeext; then
28023   eval "$as_ac_var=yes"
28024 else
28025   echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28027
28028         eval "$as_ac_var=no"
28029 fi
28030
28031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28032       conftest$ac_exeext conftest.$ac_ext
28033 fi
28034 ac_res=`eval echo '${'$as_ac_var'}'`
28035                { echo "$as_me:$LINENO: result: $ac_res" >&5
28036 echo "${ECHO_T}$ac_res" >&6; }
28037 if test `eval echo '${'$as_ac_var'}'` = yes; then
28038   cat >>confdefs.h <<_ACEOF
28039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28040 _ACEOF
28041  cat >>confdefs.h <<\_ACEOF
28042 #define HAVE_INET_NTOP 1
28043 _ACEOF
28044
28045 fi
28046 done
28047
28048
28049 for ac_func in gethostbyname2
28050 do
28051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28055   echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057   cat >conftest.$ac_ext <<_ACEOF
28058 /* confdefs.h.  */
28059 _ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h.  */
28063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28065 #define $ac_func innocuous_$ac_func
28066
28067 /* System header to define __stub macros and hopefully few prototypes,
28068     which can conflict with char $ac_func (); below.
28069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28070     <limits.h> exists even on freestanding compilers.  */
28071
28072 #ifdef __STDC__
28073 # include <limits.h>
28074 #else
28075 # include <assert.h>
28076 #endif
28077
28078 #undef $ac_func
28079
28080 /* Override any GCC internal prototype to avoid an error.
28081    Use char because int might match the return type of a GCC
28082    builtin and then its argument prototype would still apply.  */
28083 #ifdef __cplusplus
28084 extern "C"
28085 #endif
28086 char $ac_func ();
28087 /* The GNU C library defines this for functions which it implements
28088     to always fail with ENOSYS.  Some functions are actually named
28089     something starting with __ and the normal name is an alias.  */
28090 #if defined __stub_$ac_func || defined __stub___$ac_func
28091 choke me
28092 #endif
28093
28094 int
28095 main ()
28096 {
28097 return $ac_func ();
28098   ;
28099   return 0;
28100 }
28101 _ACEOF
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106   *) ac_try_echo=$ac_try;;
28107 esac
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109   (eval "$ac_link") 2>conftest.er1
28110   ac_status=$?
28111   grep -v '^ *+' conftest.er1 >conftest.err
28112   rm -f conftest.er1
28113   cat conftest.err >&5
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } && {
28116          test -z "$ac_c_werror_flag" ||
28117          test ! -s conftest.err
28118        } && test -s conftest$ac_exeext &&
28119        $as_test_x conftest$ac_exeext; then
28120   eval "$as_ac_var=yes"
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125         eval "$as_ac_var=no"
28126 fi
28127
28128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28129       conftest$ac_exeext conftest.$ac_ext
28130 fi
28131 ac_res=`eval echo '${'$as_ac_var'}'`
28132                { echo "$as_me:$LINENO: result: $ac_res" >&5
28133 echo "${ECHO_T}$ac_res" >&6; }
28134 if test `eval echo '${'$as_ac_var'}'` = yes; then
28135   cat >>confdefs.h <<_ACEOF
28136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28137 _ACEOF
28138  cat >>confdefs.h <<\_ACEOF
28139 #define HAVE_GETHOSTBYNAME2 1
28140 _ACEOF
28141
28142 fi
28143 done
28144
28145
28146 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28147 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28148 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28149   echo $ECHO_N "(cached) $ECHO_C" >&6
28150 else
28151   cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h.  */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h.  */
28157 #include <sys/socket.h>
28158 int
28159 main ()
28160 {
28161 struct sockaddr s; s.sa_len;
28162   ;
28163   return 0;
28164 }
28165 _ACEOF
28166 rm -f conftest.$ac_objext
28167 if { (ac_try="$ac_compile"
28168 case "(($ac_try" in
28169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170   *) ac_try_echo=$ac_try;;
28171 esac
28172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173   (eval "$ac_compile") 2>conftest.er1
28174   ac_status=$?
28175   grep -v '^ *+' conftest.er1 >conftest.err
28176   rm -f conftest.er1
28177   cat conftest.err >&5
28178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); } && {
28180          test -z "$ac_c_werror_flag" ||
28181          test ! -s conftest.err
28182        } && test -s conftest.$ac_objext; then
28183   ac_cv_struct_sockaddr_sa_len=yes
28184 else
28185   echo "$as_me: failed program was:" >&5
28186 sed 's/^/| /' conftest.$ac_ext >&5
28187
28188         ac_cv_struct_sockaddr_sa_len=no
28189 fi
28190
28191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28192 fi
28193 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28194 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28195
28196  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28197
28198 cat >>confdefs.h <<\_ACEOF
28199 #define HAVE_SA_LEN 1
28200 _ACEOF
28201
28202  fi
28203
28204
28205
28206
28207
28208 for ac_func in strftime
28209 do
28210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28214   echo $ECHO_N "(cached) $ECHO_C" >&6
28215 else
28216   cat >conftest.$ac_ext <<_ACEOF
28217 /* confdefs.h.  */
28218 _ACEOF
28219 cat confdefs.h >>conftest.$ac_ext
28220 cat >>conftest.$ac_ext <<_ACEOF
28221 /* end confdefs.h.  */
28222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28224 #define $ac_func innocuous_$ac_func
28225
28226 /* System header to define __stub macros and hopefully few prototypes,
28227     which can conflict with char $ac_func (); below.
28228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28229     <limits.h> exists even on freestanding compilers.  */
28230
28231 #ifdef __STDC__
28232 # include <limits.h>
28233 #else
28234 # include <assert.h>
28235 #endif
28236
28237 #undef $ac_func
28238
28239 /* Override any GCC internal prototype to avoid an error.
28240    Use char because int might match the return type of a GCC
28241    builtin and then its argument prototype would still apply.  */
28242 #ifdef __cplusplus
28243 extern "C"
28244 #endif
28245 char $ac_func ();
28246 /* The GNU C library defines this for functions which it implements
28247     to always fail with ENOSYS.  Some functions are actually named
28248     something starting with __ and the normal name is an alias.  */
28249 #if defined __stub_$ac_func || defined __stub___$ac_func
28250 choke me
28251 #endif
28252
28253 int
28254 main ()
28255 {
28256 return $ac_func ();
28257   ;
28258   return 0;
28259 }
28260 _ACEOF
28261 rm -f conftest.$ac_objext conftest$ac_exeext
28262 if { (ac_try="$ac_link"
28263 case "(($ac_try" in
28264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265   *) ac_try_echo=$ac_try;;
28266 esac
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268   (eval "$ac_link") 2>conftest.er1
28269   ac_status=$?
28270   grep -v '^ *+' conftest.er1 >conftest.err
28271   rm -f conftest.er1
28272   cat conftest.err >&5
28273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274   (exit $ac_status); } && {
28275          test -z "$ac_c_werror_flag" ||
28276          test ! -s conftest.err
28277        } && test -s conftest$ac_exeext &&
28278        $as_test_x conftest$ac_exeext; then
28279   eval "$as_ac_var=yes"
28280 else
28281   echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28283
28284         eval "$as_ac_var=no"
28285 fi
28286
28287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28288       conftest$ac_exeext conftest.$ac_ext
28289 fi
28290 ac_res=`eval echo '${'$as_ac_var'}'`
28291                { echo "$as_me:$LINENO: result: $ac_res" >&5
28292 echo "${ECHO_T}$ac_res" >&6; }
28293 if test `eval echo '${'$as_ac_var'}'` = yes; then
28294   cat >>confdefs.h <<_ACEOF
28295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28296 _ACEOF
28297
28298 else
28299   # strftime is in -lintl on SCO UNIX.
28300 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28301 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28302 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28303   echo $ECHO_N "(cached) $ECHO_C" >&6
28304 else
28305   ac_check_lib_save_LIBS=$LIBS
28306 LIBS="-lintl  $LIBS"
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h.  */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h.  */
28313
28314 /* Override any GCC internal prototype to avoid an error.
28315    Use char because int might match the return type of a GCC
28316    builtin and then its argument prototype would still apply.  */
28317 #ifdef __cplusplus
28318 extern "C"
28319 #endif
28320 char strftime ();
28321 int
28322 main ()
28323 {
28324 return strftime ();
28325   ;
28326   return 0;
28327 }
28328 _ACEOF
28329 rm -f conftest.$ac_objext conftest$ac_exeext
28330 if { (ac_try="$ac_link"
28331 case "(($ac_try" in
28332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333   *) ac_try_echo=$ac_try;;
28334 esac
28335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336   (eval "$ac_link") 2>conftest.er1
28337   ac_status=$?
28338   grep -v '^ *+' conftest.er1 >conftest.err
28339   rm -f conftest.er1
28340   cat conftest.err >&5
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); } && {
28343          test -z "$ac_c_werror_flag" ||
28344          test ! -s conftest.err
28345        } && test -s conftest$ac_exeext &&
28346        $as_test_x conftest$ac_exeext; then
28347   ac_cv_lib_intl_strftime=yes
28348 else
28349   echo "$as_me: failed program was:" >&5
28350 sed 's/^/| /' conftest.$ac_ext >&5
28351
28352         ac_cv_lib_intl_strftime=no
28353 fi
28354
28355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28356       conftest$ac_exeext conftest.$ac_ext
28357 LIBS=$ac_check_lib_save_LIBS
28358 fi
28359 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28360 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28361 if test $ac_cv_lib_intl_strftime = yes; then
28362   cat >>confdefs.h <<\_ACEOF
28363 #define HAVE_STRFTIME 1
28364 _ACEOF
28365
28366 LIBS="-lintl $LIBS"
28367 fi
28368
28369 fi
28370 done
28371
28372
28373 for ac_func in vprintf
28374 do
28375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28379   echo $ECHO_N "(cached) $ECHO_C" >&6
28380 else
28381   cat >conftest.$ac_ext <<_ACEOF
28382 /* confdefs.h.  */
28383 _ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h.  */
28387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28389 #define $ac_func innocuous_$ac_func
28390
28391 /* System header to define __stub macros and hopefully few prototypes,
28392     which can conflict with char $ac_func (); below.
28393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28394     <limits.h> exists even on freestanding compilers.  */
28395
28396 #ifdef __STDC__
28397 # include <limits.h>
28398 #else
28399 # include <assert.h>
28400 #endif
28401
28402 #undef $ac_func
28403
28404 /* Override any GCC internal prototype to avoid an error.
28405    Use char because int might match the return type of a GCC
28406    builtin and then its argument prototype would still apply.  */
28407 #ifdef __cplusplus
28408 extern "C"
28409 #endif
28410 char $ac_func ();
28411 /* The GNU C library defines this for functions which it implements
28412     to always fail with ENOSYS.  Some functions are actually named
28413     something starting with __ and the normal name is an alias.  */
28414 #if defined __stub_$ac_func || defined __stub___$ac_func
28415 choke me
28416 #endif
28417
28418 int
28419 main ()
28420 {
28421 return $ac_func ();
28422   ;
28423   return 0;
28424 }
28425 _ACEOF
28426 rm -f conftest.$ac_objext conftest$ac_exeext
28427 if { (ac_try="$ac_link"
28428 case "(($ac_try" in
28429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430   *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433   (eval "$ac_link") 2>conftest.er1
28434   ac_status=$?
28435   grep -v '^ *+' conftest.er1 >conftest.err
28436   rm -f conftest.er1
28437   cat conftest.err >&5
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); } && {
28440          test -z "$ac_c_werror_flag" ||
28441          test ! -s conftest.err
28442        } && test -s conftest$ac_exeext &&
28443        $as_test_x conftest$ac_exeext; then
28444   eval "$as_ac_var=yes"
28445 else
28446   echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28448
28449         eval "$as_ac_var=no"
28450 fi
28451
28452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28453       conftest$ac_exeext conftest.$ac_ext
28454 fi
28455 ac_res=`eval echo '${'$as_ac_var'}'`
28456                { echo "$as_me:$LINENO: result: $ac_res" >&5
28457 echo "${ECHO_T}$ac_res" >&6; }
28458 if test `eval echo '${'$as_ac_var'}'` = yes; then
28459   cat >>confdefs.h <<_ACEOF
28460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28461 _ACEOF
28462
28463 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28464 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28465 if test "${ac_cv_func__doprnt+set}" = set; then
28466   echo $ECHO_N "(cached) $ECHO_C" >&6
28467 else
28468   cat >conftest.$ac_ext <<_ACEOF
28469 /* confdefs.h.  */
28470 _ACEOF
28471 cat confdefs.h >>conftest.$ac_ext
28472 cat >>conftest.$ac_ext <<_ACEOF
28473 /* end confdefs.h.  */
28474 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28476 #define _doprnt innocuous__doprnt
28477
28478 /* System header to define __stub macros and hopefully few prototypes,
28479     which can conflict with char _doprnt (); below.
28480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28481     <limits.h> exists even on freestanding compilers.  */
28482
28483 #ifdef __STDC__
28484 # include <limits.h>
28485 #else
28486 # include <assert.h>
28487 #endif
28488
28489 #undef _doprnt
28490
28491 /* Override any GCC internal prototype to avoid an error.
28492    Use char because int might match the return type of a GCC
28493    builtin and then its argument prototype would still apply.  */
28494 #ifdef __cplusplus
28495 extern "C"
28496 #endif
28497 char _doprnt ();
28498 /* The GNU C library defines this for functions which it implements
28499     to always fail with ENOSYS.  Some functions are actually named
28500     something starting with __ and the normal name is an alias.  */
28501 #if defined __stub__doprnt || defined __stub____doprnt
28502 choke me
28503 #endif
28504
28505 int
28506 main ()
28507 {
28508 return _doprnt ();
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 rm -f conftest.$ac_objext conftest$ac_exeext
28514 if { (ac_try="$ac_link"
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_link") 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_exeext &&
28530        $as_test_x conftest$ac_exeext; then
28531   ac_cv_func__doprnt=yes
28532 else
28533   echo "$as_me: failed program was:" >&5
28534 sed 's/^/| /' conftest.$ac_ext >&5
28535
28536         ac_cv_func__doprnt=no
28537 fi
28538
28539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28540       conftest$ac_exeext conftest.$ac_ext
28541 fi
28542 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28543 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28544 if test $ac_cv_func__doprnt = yes; then
28545
28546 cat >>confdefs.h <<\_ACEOF
28547 #define HAVE_DOPRNT 1
28548 _ACEOF
28549
28550 fi
28551
28552 fi
28553 done
28554
28555
28556 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28557 # for constant arguments.  Useless!
28558 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28559 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28560 if test "${ac_cv_working_alloca_h+set}" = set; then
28561   echo $ECHO_N "(cached) $ECHO_C" >&6
28562 else
28563   cat >conftest.$ac_ext <<_ACEOF
28564 /* confdefs.h.  */
28565 _ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h.  */
28569 #include <alloca.h>
28570 int
28571 main ()
28572 {
28573 char *p = (char *) alloca (2 * sizeof (int));
28574                           if (p) return 0;
28575   ;
28576   return 0;
28577 }
28578 _ACEOF
28579 rm -f conftest.$ac_objext conftest$ac_exeext
28580 if { (ac_try="$ac_link"
28581 case "(($ac_try" in
28582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583   *) ac_try_echo=$ac_try;;
28584 esac
28585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586   (eval "$ac_link") 2>conftest.er1
28587   ac_status=$?
28588   grep -v '^ *+' conftest.er1 >conftest.err
28589   rm -f conftest.er1
28590   cat conftest.err >&5
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); } && {
28593          test -z "$ac_c_werror_flag" ||
28594          test ! -s conftest.err
28595        } && test -s conftest$ac_exeext &&
28596        $as_test_x conftest$ac_exeext; then
28597   ac_cv_working_alloca_h=yes
28598 else
28599   echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28601
28602         ac_cv_working_alloca_h=no
28603 fi
28604
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28606       conftest$ac_exeext conftest.$ac_ext
28607 fi
28608 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28610 if test $ac_cv_working_alloca_h = yes; then
28611
28612 cat >>confdefs.h <<\_ACEOF
28613 #define HAVE_ALLOCA_H 1
28614 _ACEOF
28615
28616 fi
28617
28618 { echo "$as_me:$LINENO: checking for alloca" >&5
28619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28620 if test "${ac_cv_func_alloca_works+set}" = set; then
28621   echo $ECHO_N "(cached) $ECHO_C" >&6
28622 else
28623   cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h.  */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h.  */
28629 #ifdef __GNUC__
28630 # define alloca __builtin_alloca
28631 #else
28632 # ifdef _MSC_VER
28633 #  include <malloc.h>
28634 #  define alloca _alloca
28635 # else
28636 #  ifdef HAVE_ALLOCA_H
28637 #   include <alloca.h>
28638 #  else
28639 #   ifdef _AIX
28640  #pragma alloca
28641 #   else
28642 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28643 char *alloca ();
28644 #    endif
28645 #   endif
28646 #  endif
28647 # endif
28648 #endif
28649
28650 int
28651 main ()
28652 {
28653 char *p = (char *) alloca (1);
28654                                     if (p) return 0;
28655   ;
28656   return 0;
28657 }
28658 _ACEOF
28659 rm -f conftest.$ac_objext conftest$ac_exeext
28660 if { (ac_try="$ac_link"
28661 case "(($ac_try" in
28662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663   *) ac_try_echo=$ac_try;;
28664 esac
28665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666   (eval "$ac_link") 2>conftest.er1
28667   ac_status=$?
28668   grep -v '^ *+' conftest.er1 >conftest.err
28669   rm -f conftest.er1
28670   cat conftest.err >&5
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); } && {
28673          test -z "$ac_c_werror_flag" ||
28674          test ! -s conftest.err
28675        } && test -s conftest$ac_exeext &&
28676        $as_test_x conftest$ac_exeext; then
28677   ac_cv_func_alloca_works=yes
28678 else
28679   echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28681
28682         ac_cv_func_alloca_works=no
28683 fi
28684
28685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28686       conftest$ac_exeext conftest.$ac_ext
28687 fi
28688 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28689 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28690
28691 if test $ac_cv_func_alloca_works = yes; then
28692
28693 cat >>confdefs.h <<\_ACEOF
28694 #define HAVE_ALLOCA 1
28695 _ACEOF
28696
28697 else
28698   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28699 # that cause trouble.  Some versions do not even contain alloca or
28700 # contain a buggy version.  If you still want to use their alloca,
28701 # use ar to extract alloca.o from them instead of compiling alloca.c.
28702
28703 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28704
28705 cat >>confdefs.h <<\_ACEOF
28706 #define C_ALLOCA 1
28707 _ACEOF
28708
28709
28710 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28711 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28712 if test "${ac_cv_os_cray+set}" = set; then
28713   echo $ECHO_N "(cached) $ECHO_C" >&6
28714 else
28715   cat >conftest.$ac_ext <<_ACEOF
28716 /* confdefs.h.  */
28717 _ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h.  */
28721 #if defined CRAY && ! defined CRAY2
28722 webecray
28723 #else
28724 wenotbecray
28725 #endif
28726
28727 _ACEOF
28728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28729   $EGREP "webecray" >/dev/null 2>&1; then
28730   ac_cv_os_cray=yes
28731 else
28732   ac_cv_os_cray=no
28733 fi
28734 rm -f conftest*
28735
28736 fi
28737 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28738 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28739 if test $ac_cv_os_cray = yes; then
28740   for ac_func in _getb67 GETB67 getb67; do
28741     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28745   echo $ECHO_N "(cached) $ECHO_C" >&6
28746 else
28747   cat >conftest.$ac_ext <<_ACEOF
28748 /* confdefs.h.  */
28749 _ACEOF
28750 cat confdefs.h >>conftest.$ac_ext
28751 cat >>conftest.$ac_ext <<_ACEOF
28752 /* end confdefs.h.  */
28753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28755 #define $ac_func innocuous_$ac_func
28756
28757 /* System header to define __stub macros and hopefully few prototypes,
28758     which can conflict with char $ac_func (); below.
28759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28760     <limits.h> exists even on freestanding compilers.  */
28761
28762 #ifdef __STDC__
28763 # include <limits.h>
28764 #else
28765 # include <assert.h>
28766 #endif
28767
28768 #undef $ac_func
28769
28770 /* Override any GCC internal prototype to avoid an error.
28771    Use char because int might match the return type of a GCC
28772    builtin and then its argument prototype would still apply.  */
28773 #ifdef __cplusplus
28774 extern "C"
28775 #endif
28776 char $ac_func ();
28777 /* The GNU C library defines this for functions which it implements
28778     to always fail with ENOSYS.  Some functions are actually named
28779     something starting with __ and the normal name is an alias.  */
28780 #if defined __stub_$ac_func || defined __stub___$ac_func
28781 choke me
28782 #endif
28783
28784 int
28785 main ()
28786 {
28787 return $ac_func ();
28788   ;
28789   return 0;
28790 }
28791 _ACEOF
28792 rm -f conftest.$ac_objext conftest$ac_exeext
28793 if { (ac_try="$ac_link"
28794 case "(($ac_try" in
28795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796   *) ac_try_echo=$ac_try;;
28797 esac
28798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799   (eval "$ac_link") 2>conftest.er1
28800   ac_status=$?
28801   grep -v '^ *+' conftest.er1 >conftest.err
28802   rm -f conftest.er1
28803   cat conftest.err >&5
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); } && {
28806          test -z "$ac_c_werror_flag" ||
28807          test ! -s conftest.err
28808        } && test -s conftest$ac_exeext &&
28809        $as_test_x conftest$ac_exeext; then
28810   eval "$as_ac_var=yes"
28811 else
28812   echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28814
28815         eval "$as_ac_var=no"
28816 fi
28817
28818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28819       conftest$ac_exeext conftest.$ac_ext
28820 fi
28821 ac_res=`eval echo '${'$as_ac_var'}'`
28822                { echo "$as_me:$LINENO: result: $ac_res" >&5
28823 echo "${ECHO_T}$ac_res" >&6; }
28824 if test `eval echo '${'$as_ac_var'}'` = yes; then
28825
28826 cat >>confdefs.h <<_ACEOF
28827 #define CRAY_STACKSEG_END $ac_func
28828 _ACEOF
28829
28830     break
28831 fi
28832
28833   done
28834 fi
28835
28836 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28837 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28838 if test "${ac_cv_c_stack_direction+set}" = set; then
28839   echo $ECHO_N "(cached) $ECHO_C" >&6
28840 else
28841   if test "$cross_compiling" = yes; then
28842   ac_cv_c_stack_direction=0
28843 else
28844   cat >conftest.$ac_ext <<_ACEOF
28845 /* confdefs.h.  */
28846 _ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h.  */
28850 $ac_includes_default
28851 int
28852 find_stack_direction ()
28853 {
28854   static char *addr = 0;
28855   auto char dummy;
28856   if (addr == 0)
28857     {
28858       addr = &dummy;
28859       return find_stack_direction ();
28860     }
28861   else
28862     return (&dummy > addr) ? 1 : -1;
28863 }
28864
28865 int
28866 main ()
28867 {
28868   return find_stack_direction () < 0;
28869 }
28870 _ACEOF
28871 rm -f conftest$ac_exeext
28872 if { (ac_try="$ac_link"
28873 case "(($ac_try" in
28874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875   *) ac_try_echo=$ac_try;;
28876 esac
28877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878   (eval "$ac_link") 2>&5
28879   ac_status=$?
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28882   { (case "(($ac_try" in
28883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884   *) ac_try_echo=$ac_try;;
28885 esac
28886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28887   (eval "$ac_try") 2>&5
28888   ac_status=$?
28889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890   (exit $ac_status); }; }; then
28891   ac_cv_c_stack_direction=1
28892 else
28893   echo "$as_me: program exited with status $ac_status" >&5
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28896
28897 ( exit $ac_status )
28898 ac_cv_c_stack_direction=-1
28899 fi
28900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28901 fi
28902
28903
28904 fi
28905 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28906 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28907
28908 cat >>confdefs.h <<_ACEOF
28909 #define STACK_DIRECTION $ac_cv_c_stack_direction
28910 _ACEOF
28911
28912
28913 fi
28914
28915 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28916 # -lseq on Dynix/PTX, -lgen on Unixware.
28917 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28918 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28919 if test "${ac_cv_search_getmntent+set}" = set; then
28920   echo $ECHO_N "(cached) $ECHO_C" >&6
28921 else
28922   ac_func_search_save_LIBS=$LIBS
28923 cat >conftest.$ac_ext <<_ACEOF
28924 /* confdefs.h.  */
28925 _ACEOF
28926 cat confdefs.h >>conftest.$ac_ext
28927 cat >>conftest.$ac_ext <<_ACEOF
28928 /* end confdefs.h.  */
28929
28930 /* Override any GCC internal prototype to avoid an error.
28931    Use char because int might match the return type of a GCC
28932    builtin and then its argument prototype would still apply.  */
28933 #ifdef __cplusplus
28934 extern "C"
28935 #endif
28936 char getmntent ();
28937 int
28938 main ()
28939 {
28940 return getmntent ();
28941   ;
28942   return 0;
28943 }
28944 _ACEOF
28945 for ac_lib in '' sun seq gen; do
28946   if test -z "$ac_lib"; then
28947     ac_res="none required"
28948   else
28949     ac_res=-l$ac_lib
28950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28951   fi
28952   rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956   *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959   (eval "$ac_link") 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } && {
28966          test -z "$ac_c_werror_flag" ||
28967          test ! -s conftest.err
28968        } && test -s conftest$ac_exeext &&
28969        $as_test_x conftest$ac_exeext; then
28970   ac_cv_search_getmntent=$ac_res
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975
28976 fi
28977
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979       conftest$ac_exeext
28980   if test "${ac_cv_search_getmntent+set}" = set; then
28981   break
28982 fi
28983 done
28984 if test "${ac_cv_search_getmntent+set}" = set; then
28985   :
28986 else
28987   ac_cv_search_getmntent=no
28988 fi
28989 rm conftest.$ac_ext
28990 LIBS=$ac_func_search_save_LIBS
28991 fi
28992 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28993 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28994 ac_res=$ac_cv_search_getmntent
28995 if test "$ac_res" != no; then
28996   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28997   ac_cv_func_getmntent=yes
28998
28999 cat >>confdefs.h <<\_ACEOF
29000 #define HAVE_GETMNTENT 1
29001 _ACEOF
29002
29003 else
29004   ac_cv_func_getmntent=no
29005 fi
29006
29007
29008 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29009 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
29010 if test "${ac_cv_func_closedir_void+set}" = set; then
29011   echo $ECHO_N "(cached) $ECHO_C" >&6
29012 else
29013   if test "$cross_compiling" = yes; then
29014   ac_cv_func_closedir_void=yes
29015 else
29016   cat >conftest.$ac_ext <<_ACEOF
29017 /* confdefs.h.  */
29018 _ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h.  */
29022 $ac_includes_default
29023 #include <$ac_header_dirent>
29024 #ifndef __cplusplus
29025 int closedir ();
29026 #endif
29027
29028 int
29029 main ()
29030 {
29031 return closedir (opendir (".")) != 0;
29032   ;
29033   return 0;
29034 }
29035 _ACEOF
29036 rm -f conftest$ac_exeext
29037 if { (ac_try="$ac_link"
29038 case "(($ac_try" in
29039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040   *) ac_try_echo=$ac_try;;
29041 esac
29042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29043   (eval "$ac_link") 2>&5
29044   ac_status=$?
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29047   { (case "(($ac_try" in
29048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049   *) ac_try_echo=$ac_try;;
29050 esac
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052   (eval "$ac_try") 2>&5
29053   ac_status=$?
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); }; }; then
29056   ac_cv_func_closedir_void=no
29057 else
29058   echo "$as_me: program exited with status $ac_status" >&5
29059 echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29061
29062 ( exit $ac_status )
29063 ac_cv_func_closedir_void=yes
29064 fi
29065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29066 fi
29067
29068
29069 fi
29070 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29071 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29072 if test $ac_cv_func_closedir_void = yes; then
29073
29074 cat >>confdefs.h <<\_ACEOF
29075 #define CLOSEDIR_VOID 1
29076 _ACEOF
29077
29078 fi
29079
29080 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29081 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29082 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29083   echo $ECHO_N "(cached) $ECHO_C" >&6
29084 else
29085   if test "$cross_compiling" = yes; then
29086   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29087 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29088    { (exit 1); exit 1; }; }
29089 else
29090   cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096 $ac_includes_default
29097 int
29098 main ()
29099 {
29100 /* If this system has a BSD-style setpgrp which takes arguments,
29101   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29102   exit successfully. */
29103   return setpgrp (1,1) != -1;
29104   ;
29105   return 0;
29106 }
29107 _ACEOF
29108 rm -f conftest$ac_exeext
29109 if { (ac_try="$ac_link"
29110 case "(($ac_try" in
29111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112   *) ac_try_echo=$ac_try;;
29113 esac
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115   (eval "$ac_link") 2>&5
29116   ac_status=$?
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29119   { (case "(($ac_try" in
29120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121   *) ac_try_echo=$ac_try;;
29122 esac
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124   (eval "$ac_try") 2>&5
29125   ac_status=$?
29126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); }; }; then
29128   ac_cv_func_setpgrp_void=no
29129 else
29130   echo "$as_me: program exited with status $ac_status" >&5
29131 echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29133
29134 ( exit $ac_status )
29135 ac_cv_func_setpgrp_void=yes
29136 fi
29137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29138 fi
29139
29140
29141 fi
29142 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29143 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29144 if test $ac_cv_func_setpgrp_void = yes; then
29145
29146 cat >>confdefs.h <<\_ACEOF
29147 #define SETPGRP_VOID 1
29148 _ACEOF
29149
29150 fi
29151                       # AC_FUNC_FNMATCH    dnl use local version
29152
29153
29154 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29155 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29156 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29157   echo $ECHO_N "(cached) $ECHO_C" >&6
29158 else
29159   ac_check_lib_save_LIBS=$LIBS
29160 LIBS="-lintl  $LIBS"
29161 cat >conftest.$ac_ext <<_ACEOF
29162 /* confdefs.h.  */
29163 _ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h.  */
29167
29168 /* Override any GCC internal prototype to avoid an error.
29169    Use char because int might match the return type of a GCC
29170    builtin and then its argument prototype would still apply.  */
29171 #ifdef __cplusplus
29172 extern "C"
29173 #endif
29174 char gettext ();
29175 int
29176 main ()
29177 {
29178 return gettext ();
29179   ;
29180   return 0;
29181 }
29182 _ACEOF
29183 rm -f conftest.$ac_objext conftest$ac_exeext
29184 if { (ac_try="$ac_link"
29185 case "(($ac_try" in
29186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187   *) ac_try_echo=$ac_try;;
29188 esac
29189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190   (eval "$ac_link") 2>conftest.er1
29191   ac_status=$?
29192   grep -v '^ *+' conftest.er1 >conftest.err
29193   rm -f conftest.er1
29194   cat conftest.err >&5
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); } && {
29197          test -z "$ac_c_werror_flag" ||
29198          test ! -s conftest.err
29199        } && test -s conftest$ac_exeext &&
29200        $as_test_x conftest$ac_exeext; then
29201   ac_cv_lib_intl_gettext=yes
29202 else
29203   echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29205
29206         ac_cv_lib_intl_gettext=no
29207 fi
29208
29209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29210       conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29212 fi
29213 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29214 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29215 if test $ac_cv_lib_intl_gettext = yes; then
29216   LIBS="$LIBS -lintl"
29217 fi
29218
29219
29220
29221
29222 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29223 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29224 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29225   echo $ECHO_N "(cached) $ECHO_C" >&6
29226 else
29227   ac_check_lib_save_LIBS=$LIBS
29228 LIBS="-lsun  $LIBS"
29229 cat >conftest.$ac_ext <<_ACEOF
29230 /* confdefs.h.  */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h.  */
29235
29236 /* Override any GCC internal prototype to avoid an error.
29237    Use char because int might match the return type of a GCC
29238    builtin and then its argument prototype would still apply.  */
29239 #ifdef __cplusplus
29240 extern "C"
29241 #endif
29242 char getpwnam ();
29243 int
29244 main ()
29245 {
29246 return getpwnam ();
29247   ;
29248   return 0;
29249 }
29250 _ACEOF
29251 rm -f conftest.$ac_objext conftest$ac_exeext
29252 if { (ac_try="$ac_link"
29253 case "(($ac_try" in
29254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255   *) ac_try_echo=$ac_try;;
29256 esac
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258   (eval "$ac_link") 2>conftest.er1
29259   ac_status=$?
29260   grep -v '^ *+' conftest.er1 >conftest.err
29261   rm -f conftest.er1
29262   cat conftest.err >&5
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); } && {
29265          test -z "$ac_c_werror_flag" ||
29266          test ! -s conftest.err
29267        } && test -s conftest$ac_exeext &&
29268        $as_test_x conftest$ac_exeext; then
29269   ac_cv_lib_sun_getpwnam=yes
29270 else
29271   echo "$as_me: failed program was:" >&5
29272 sed 's/^/| /' conftest.$ac_ext >&5
29273
29274         ac_cv_lib_sun_getpwnam=no
29275 fi
29276
29277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29278       conftest$ac_exeext conftest.$ac_ext
29279 LIBS=$ac_check_lib_save_LIBS
29280 fi
29281 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29282 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29283 if test $ac_cv_lib_sun_getpwnam = yes; then
29284   cat >>confdefs.h <<_ACEOF
29285 #define HAVE_LIBSUN 1
29286 _ACEOF
29287
29288   LIBS="-lsun $LIBS"
29289
29290 fi
29291
29292
29293
29294 for ac_header in zlib.h
29295 do
29296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29298   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29301   echo $ECHO_N "(cached) $ECHO_C" >&6
29302 fi
29303 ac_res=`eval echo '${'$as_ac_Header'}'`
29304                { echo "$as_me:$LINENO: result: $ac_res" >&5
29305 echo "${ECHO_T}$ac_res" >&6; }
29306 else
29307   # Is the header compilable?
29308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29310 cat >conftest.$ac_ext <<_ACEOF
29311 /* confdefs.h.  */
29312 _ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h.  */
29316 $ac_includes_default
29317 #include <$ac_header>
29318 _ACEOF
29319 rm -f conftest.$ac_objext
29320 if { (ac_try="$ac_compile"
29321 case "(($ac_try" in
29322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323   *) ac_try_echo=$ac_try;;
29324 esac
29325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326   (eval "$ac_compile") 2>conftest.er1
29327   ac_status=$?
29328   grep -v '^ *+' conftest.er1 >conftest.err
29329   rm -f conftest.er1
29330   cat conftest.err >&5
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); } && {
29333          test -z "$ac_c_werror_flag" ||
29334          test ! -s conftest.err
29335        } && test -s conftest.$ac_objext; then
29336   ac_header_compiler=yes
29337 else
29338   echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29340
29341         ac_header_compiler=no
29342 fi
29343
29344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29346 echo "${ECHO_T}$ac_header_compiler" >&6; }
29347
29348 # Is the header present?
29349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29351 cat >conftest.$ac_ext <<_ACEOF
29352 /* confdefs.h.  */
29353 _ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h.  */
29357 #include <$ac_header>
29358 _ACEOF
29359 if { (ac_try="$ac_cpp conftest.$ac_ext"
29360 case "(($ac_try" in
29361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362   *) ac_try_echo=$ac_try;;
29363 esac
29364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29366   ac_status=$?
29367   grep -v '^ *+' conftest.er1 >conftest.err
29368   rm -f conftest.er1
29369   cat conftest.err >&5
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); } >/dev/null && {
29372          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29373          test ! -s conftest.err
29374        }; then
29375   ac_header_preproc=yes
29376 else
29377   echo "$as_me: failed program was:" >&5
29378 sed 's/^/| /' conftest.$ac_ext >&5
29379
29380   ac_header_preproc=no
29381 fi
29382
29383 rm -f conftest.err conftest.$ac_ext
29384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385 echo "${ECHO_T}$ac_header_preproc" >&6; }
29386
29387 # So?  What about this header?
29388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29389   yes:no: )
29390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394     ac_header_preproc=yes
29395     ;;
29396   no:yes:* )
29397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29409
29410     ;;
29411 esac
29412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417   eval "$as_ac_Header=\$ac_header_preproc"
29418 fi
29419 ac_res=`eval echo '${'$as_ac_Header'}'`
29420                { echo "$as_me:$LINENO: result: $ac_res" >&5
29421 echo "${ECHO_T}$ac_res" >&6; }
29422
29423 fi
29424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29425   cat >>confdefs.h <<_ACEOF
29426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29427 _ACEOF
29428
29429 fi
29430
29431 done
29432
29433 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29434 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29435 if test "${ac_cv_lib_z_deflate+set}" = set; then
29436   echo $ECHO_N "(cached) $ECHO_C" >&6
29437 else
29438   ac_check_lib_save_LIBS=$LIBS
29439 LIBS="-lz  $LIBS"
29440 cat >conftest.$ac_ext <<_ACEOF
29441 /* confdefs.h.  */
29442 _ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h.  */
29446
29447 /* Override any GCC internal prototype to avoid an error.
29448    Use char because int might match the return type of a GCC
29449    builtin and then its argument prototype would still apply.  */
29450 #ifdef __cplusplus
29451 extern "C"
29452 #endif
29453 char deflate ();
29454 int
29455 main ()
29456 {
29457 return deflate ();
29458   ;
29459   return 0;
29460 }
29461 _ACEOF
29462 rm -f conftest.$ac_objext conftest$ac_exeext
29463 if { (ac_try="$ac_link"
29464 case "(($ac_try" in
29465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466   *) ac_try_echo=$ac_try;;
29467 esac
29468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469   (eval "$ac_link") 2>conftest.er1
29470   ac_status=$?
29471   grep -v '^ *+' conftest.er1 >conftest.err
29472   rm -f conftest.er1
29473   cat conftest.err >&5
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); } && {
29476          test -z "$ac_c_werror_flag" ||
29477          test ! -s conftest.err
29478        } && test -s conftest$ac_exeext &&
29479        $as_test_x conftest$ac_exeext; then
29480   ac_cv_lib_z_deflate=yes
29481 else
29482   echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485         ac_cv_lib_z_deflate=no
29486 fi
29487
29488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29489       conftest$ac_exeext conftest.$ac_ext
29490 LIBS=$ac_check_lib_save_LIBS
29491 fi
29492 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29493 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29494 if test $ac_cv_lib_z_deflate = yes; then
29495   FDLIBS="-lz"
29496 fi
29497
29498 have_zlib=no
29499 if test x$FDLIBS = x-lz; then
29500   cat >>confdefs.h <<\_ACEOF
29501 #define HAVE_LIBZ 1
29502 _ACEOF
29503
29504   have_zlib=yes
29505 fi
29506
29507 #
29508 # Check for ACL libraries
29509 #
29510 have_acl=no
29511 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29512   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29513 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29514 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29515   echo $ECHO_N "(cached) $ECHO_C" >&6
29516 fi
29517 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29518 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29519 else
29520   # Is the header compilable?
29521 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29522 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29523 cat >conftest.$ac_ext <<_ACEOF
29524 /* confdefs.h.  */
29525 _ACEOF
29526 cat confdefs.h >>conftest.$ac_ext
29527 cat >>conftest.$ac_ext <<_ACEOF
29528 /* end confdefs.h.  */
29529 $ac_includes_default
29530 #include <sys/acl.h>
29531 _ACEOF
29532 rm -f conftest.$ac_objext
29533 if { (ac_try="$ac_compile"
29534 case "(($ac_try" in
29535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536   *) ac_try_echo=$ac_try;;
29537 esac
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539   (eval "$ac_compile") 2>conftest.er1
29540   ac_status=$?
29541   grep -v '^ *+' conftest.er1 >conftest.err
29542   rm -f conftest.er1
29543   cat conftest.err >&5
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); } && {
29546          test -z "$ac_c_werror_flag" ||
29547          test ! -s conftest.err
29548        } && test -s conftest.$ac_objext; then
29549   ac_header_compiler=yes
29550 else
29551   echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29553
29554         ac_header_compiler=no
29555 fi
29556
29557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29559 echo "${ECHO_T}$ac_header_compiler" >&6; }
29560
29561 # Is the header present?
29562 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29563 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29564 cat >conftest.$ac_ext <<_ACEOF
29565 /* confdefs.h.  */
29566 _ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h.  */
29570 #include <sys/acl.h>
29571 _ACEOF
29572 if { (ac_try="$ac_cpp conftest.$ac_ext"
29573 case "(($ac_try" in
29574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29575   *) ac_try_echo=$ac_try;;
29576 esac
29577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29579   ac_status=$?
29580   grep -v '^ *+' conftest.er1 >conftest.err
29581   rm -f conftest.er1
29582   cat conftest.err >&5
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); } >/dev/null && {
29585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29586          test ! -s conftest.err
29587        }; then
29588   ac_header_preproc=yes
29589 else
29590   echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29592
29593   ac_header_preproc=no
29594 fi
29595
29596 rm -f conftest.err conftest.$ac_ext
29597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29598 echo "${ECHO_T}$ac_header_preproc" >&6; }
29599
29600 # So?  What about this header?
29601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29602   yes:no: )
29603     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29604 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29605     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29606 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29607     ac_header_preproc=yes
29608     ;;
29609   no:yes:* )
29610     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29611 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29612     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29613 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29614     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29615 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29616     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29617 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29618     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29619 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29620     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29621 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29622
29623     ;;
29624 esac
29625 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29626 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29627 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29628   echo $ECHO_N "(cached) $ECHO_C" >&6
29629 else
29630   ac_cv_header_sys_acl_h=$ac_header_preproc
29631 fi
29632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29633 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29634
29635 fi
29636
29637
29638 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29639 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29640 if test "${ac_cv_func_acl_get_file+set}" = set; then
29641   echo $ECHO_N "(cached) $ECHO_C" >&6
29642 else
29643   cat >conftest.$ac_ext <<_ACEOF
29644 /* confdefs.h.  */
29645 _ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h.  */
29649 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29651 #define acl_get_file innocuous_acl_get_file
29652
29653 /* System header to define __stub macros and hopefully few prototypes,
29654     which can conflict with char acl_get_file (); below.
29655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29656     <limits.h> exists even on freestanding compilers.  */
29657
29658 #ifdef __STDC__
29659 # include <limits.h>
29660 #else
29661 # include <assert.h>
29662 #endif
29663
29664 #undef acl_get_file
29665
29666 /* Override any GCC internal prototype to avoid an error.
29667    Use char because int might match the return type of a GCC
29668    builtin and then its argument prototype would still apply.  */
29669 #ifdef __cplusplus
29670 extern "C"
29671 #endif
29672 char acl_get_file ();
29673 /* The GNU C library defines this for functions which it implements
29674     to always fail with ENOSYS.  Some functions are actually named
29675     something starting with __ and the normal name is an alias.  */
29676 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29677 choke me
29678 #endif
29679
29680 int
29681 main ()
29682 {
29683 return acl_get_file ();
29684   ;
29685   return 0;
29686 }
29687 _ACEOF
29688 rm -f conftest.$ac_objext conftest$ac_exeext
29689 if { (ac_try="$ac_link"
29690 case "(($ac_try" in
29691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692   *) ac_try_echo=$ac_try;;
29693 esac
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695   (eval "$ac_link") 2>conftest.er1
29696   ac_status=$?
29697   grep -v '^ *+' conftest.er1 >conftest.err
29698   rm -f conftest.er1
29699   cat conftest.err >&5
29700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701   (exit $ac_status); } && {
29702          test -z "$ac_c_werror_flag" ||
29703          test ! -s conftest.err
29704        } && test -s conftest$ac_exeext &&
29705        $as_test_x conftest$ac_exeext; then
29706   ac_cv_func_acl_get_file=yes
29707 else
29708   echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29710
29711         ac_cv_func_acl_get_file=no
29712 fi
29713
29714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29715       conftest$ac_exeext conftest.$ac_ext
29716 fi
29717 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29718 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29719 if test $ac_cv_func_acl_get_file = yes; then
29720   have_acl=yes
29721 else
29722   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29723 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29724 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lacl  $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h.  */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h.  */
29735
29736 /* Override any GCC internal prototype to avoid an error.
29737    Use char because int might match the return type of a GCC
29738    builtin and then its argument prototype would still apply.  */
29739 #ifdef __cplusplus
29740 extern "C"
29741 #endif
29742 char acl_get_file ();
29743 int
29744 main ()
29745 {
29746 return acl_get_file ();
29747   ;
29748   return 0;
29749 }
29750 _ACEOF
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755   *) ac_try_echo=$ac_try;;
29756 esac
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758   (eval "$ac_link") 2>conftest.er1
29759   ac_status=$?
29760   grep -v '^ *+' conftest.er1 >conftest.err
29761   rm -f conftest.er1
29762   cat conftest.err >&5
29763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); } && {
29765          test -z "$ac_c_werror_flag" ||
29766          test ! -s conftest.err
29767        } && test -s conftest$ac_exeext &&
29768        $as_test_x conftest$ac_exeext; then
29769   ac_cv_lib_acl_acl_get_file=yes
29770 else
29771   echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29773
29774         ac_cv_lib_acl_acl_get_file=no
29775 fi
29776
29777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29778       conftest$ac_exeext conftest.$ac_ext
29779 LIBS=$ac_check_lib_save_LIBS
29780 fi
29781 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29782 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29783 if test $ac_cv_lib_acl_acl_get_file = yes; then
29784   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29785 else
29786   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29787 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29788 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29789   echo $ECHO_N "(cached) $ECHO_C" >&6
29790 else
29791   ac_check_lib_save_LIBS=$LIBS
29792 LIBS="-lsec  $LIBS"
29793 cat >conftest.$ac_ext <<_ACEOF
29794 /* confdefs.h.  */
29795 _ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h.  */
29799
29800 /* Override any GCC internal prototype to avoid an error.
29801    Use char because int might match the return type of a GCC
29802    builtin and then its argument prototype would still apply.  */
29803 #ifdef __cplusplus
29804 extern "C"
29805 #endif
29806 char acltotext ();
29807 int
29808 main ()
29809 {
29810 return acltotext ();
29811   ;
29812   return 0;
29813 }
29814 _ACEOF
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819   *) ac_try_echo=$ac_try;;
29820 esac
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822   (eval "$ac_link") 2>conftest.er1
29823   ac_status=$?
29824   grep -v '^ *+' conftest.er1 >conftest.err
29825   rm -f conftest.er1
29826   cat conftest.err >&5
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); } && {
29829          test -z "$ac_c_werror_flag" ||
29830          test ! -s conftest.err
29831        } && test -s conftest$ac_exeext &&
29832        $as_test_x conftest$ac_exeext; then
29833   ac_cv_lib_sec_acltotext=yes
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838         ac_cv_lib_sec_acltotext=no
29839 fi
29840
29841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29842       conftest$ac_exeext conftest.$ac_ext
29843 LIBS=$ac_check_lib_save_LIBS
29844 fi
29845 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29846 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29847 if test $ac_cv_lib_sec_acltotext = yes; then
29848   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29849 fi
29850
29851
29852 fi
29853
29854
29855 fi
29856
29857 if test $have_acl = yes; then
29858    cat >>confdefs.h <<\_ACEOF
29859 #define HAVE_ACL 1
29860 _ACEOF
29861
29862 fi
29863
29864 PTHREAD_LIB=""
29865 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29866 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29867 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29868   echo $ECHO_N "(cached) $ECHO_C" >&6
29869 else
29870   ac_check_lib_save_LIBS=$LIBS
29871 LIBS="-lpthread  $LIBS"
29872 cat >conftest.$ac_ext <<_ACEOF
29873 /* confdefs.h.  */
29874 _ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h.  */
29878
29879 /* Override any GCC internal prototype to avoid an error.
29880    Use char because int might match the return type of a GCC
29881    builtin and then its argument prototype would still apply.  */
29882 #ifdef __cplusplus
29883 extern "C"
29884 #endif
29885 char pthread_create ();
29886 int
29887 main ()
29888 {
29889 return pthread_create ();
29890   ;
29891   return 0;
29892 }
29893 _ACEOF
29894 rm -f conftest.$ac_objext conftest$ac_exeext
29895 if { (ac_try="$ac_link"
29896 case "(($ac_try" in
29897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29898   *) ac_try_echo=$ac_try;;
29899 esac
29900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29901   (eval "$ac_link") 2>conftest.er1
29902   ac_status=$?
29903   grep -v '^ *+' conftest.er1 >conftest.err
29904   rm -f conftest.er1
29905   cat conftest.err >&5
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); } && {
29908          test -z "$ac_c_werror_flag" ||
29909          test ! -s conftest.err
29910        } && test -s conftest$ac_exeext &&
29911        $as_test_x conftest$ac_exeext; then
29912   ac_cv_lib_pthread_pthread_create=yes
29913 else
29914   echo "$as_me: failed program was:" >&5
29915 sed 's/^/| /' conftest.$ac_ext >&5
29916
29917         ac_cv_lib_pthread_pthread_create=no
29918 fi
29919
29920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29921       conftest$ac_exeext conftest.$ac_ext
29922 LIBS=$ac_check_lib_save_LIBS
29923 fi
29924 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29925 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29926 if test $ac_cv_lib_pthread_pthread_create = yes; then
29927   PTHREAD_LIB="-lpthread"
29928 else
29929   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29930 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29931 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29932   echo $ECHO_N "(cached) $ECHO_C" >&6
29933 else
29934   ac_check_lib_save_LIBS=$LIBS
29935 LIBS="-lpthreads  $LIBS"
29936 cat >conftest.$ac_ext <<_ACEOF
29937 /* confdefs.h.  */
29938 _ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h.  */
29942
29943 /* Override any GCC internal prototype to avoid an error.
29944    Use char because int might match the return type of a GCC
29945    builtin and then its argument prototype would still apply.  */
29946 #ifdef __cplusplus
29947 extern "C"
29948 #endif
29949 char pthread_create ();
29950 int
29951 main ()
29952 {
29953 return pthread_create ();
29954   ;
29955   return 0;
29956 }
29957 _ACEOF
29958 rm -f conftest.$ac_objext conftest$ac_exeext
29959 if { (ac_try="$ac_link"
29960 case "(($ac_try" in
29961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962   *) ac_try_echo=$ac_try;;
29963 esac
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965   (eval "$ac_link") 2>conftest.er1
29966   ac_status=$?
29967   grep -v '^ *+' conftest.er1 >conftest.err
29968   rm -f conftest.er1
29969   cat conftest.err >&5
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); } && {
29972          test -z "$ac_c_werror_flag" ||
29973          test ! -s conftest.err
29974        } && test -s conftest$ac_exeext &&
29975        $as_test_x conftest$ac_exeext; then
29976   ac_cv_lib_pthreads_pthread_create=yes
29977 else
29978   echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29980
29981         ac_cv_lib_pthreads_pthread_create=no
29982 fi
29983
29984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29985       conftest$ac_exeext conftest.$ac_ext
29986 LIBS=$ac_check_lib_save_LIBS
29987 fi
29988 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29989 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29990 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29991   PTHREAD_LIB="-lpthreads"
29992 else
29993   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29994 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29995 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29996   echo $ECHO_N "(cached) $ECHO_C" >&6
29997 else
29998   ac_check_lib_save_LIBS=$LIBS
29999 LIBS="-lc_r  $LIBS"
30000 cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h.  */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h.  */
30006
30007 /* Override any GCC internal prototype to avoid an error.
30008    Use char because int might match the return type of a GCC
30009    builtin and then its argument prototype would still apply.  */
30010 #ifdef __cplusplus
30011 extern "C"
30012 #endif
30013 char pthread_create ();
30014 int
30015 main ()
30016 {
30017 return pthread_create ();
30018   ;
30019   return 0;
30020 }
30021 _ACEOF
30022 rm -f conftest.$ac_objext conftest$ac_exeext
30023 if { (ac_try="$ac_link"
30024 case "(($ac_try" in
30025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026   *) ac_try_echo=$ac_try;;
30027 esac
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029   (eval "$ac_link") 2>conftest.er1
30030   ac_status=$?
30031   grep -v '^ *+' conftest.er1 >conftest.err
30032   rm -f conftest.er1
30033   cat conftest.err >&5
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); } && {
30036          test -z "$ac_c_werror_flag" ||
30037          test ! -s conftest.err
30038        } && test -s conftest$ac_exeext &&
30039        $as_test_x conftest$ac_exeext; then
30040   ac_cv_lib_c_r_pthread_create=yes
30041 else
30042   echo "$as_me: failed program was:" >&5
30043 sed 's/^/| /' conftest.$ac_ext >&5
30044
30045         ac_cv_lib_c_r_pthread_create=no
30046 fi
30047
30048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30049       conftest$ac_exeext conftest.$ac_ext
30050 LIBS=$ac_check_lib_save_LIBS
30051 fi
30052 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30053 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30054 if test $ac_cv_lib_c_r_pthread_create = yes; then
30055   PTHREAD_LIB="-lc_r"
30056 else
30057   { echo "$as_me:$LINENO: checking for pthread_create" >&5
30058 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30059 if test "${ac_cv_func_pthread_create+set}" = set; then
30060   echo $ECHO_N "(cached) $ECHO_C" >&6
30061 else
30062   cat >conftest.$ac_ext <<_ACEOF
30063 /* confdefs.h.  */
30064 _ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h.  */
30068 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30070 #define pthread_create innocuous_pthread_create
30071
30072 /* System header to define __stub macros and hopefully few prototypes,
30073     which can conflict with char pthread_create (); below.
30074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30075     <limits.h> exists even on freestanding compilers.  */
30076
30077 #ifdef __STDC__
30078 # include <limits.h>
30079 #else
30080 # include <assert.h>
30081 #endif
30082
30083 #undef pthread_create
30084
30085 /* Override any GCC internal prototype to avoid an error.
30086    Use char because int might match the return type of a GCC
30087    builtin and then its argument prototype would still apply.  */
30088 #ifdef __cplusplus
30089 extern "C"
30090 #endif
30091 char pthread_create ();
30092 /* The GNU C library defines this for functions which it implements
30093     to always fail with ENOSYS.  Some functions are actually named
30094     something starting with __ and the normal name is an alias.  */
30095 #if defined __stub_pthread_create || defined __stub___pthread_create
30096 choke me
30097 #endif
30098
30099 int
30100 main ()
30101 {
30102 return pthread_create ();
30103   ;
30104   return 0;
30105 }
30106 _ACEOF
30107 rm -f conftest.$ac_objext conftest$ac_exeext
30108 if { (ac_try="$ac_link"
30109 case "(($ac_try" in
30110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111   *) ac_try_echo=$ac_try;;
30112 esac
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114   (eval "$ac_link") 2>conftest.er1
30115   ac_status=$?
30116   grep -v '^ *+' conftest.er1 >conftest.err
30117   rm -f conftest.er1
30118   cat conftest.err >&5
30119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120   (exit $ac_status); } && {
30121          test -z "$ac_c_werror_flag" ||
30122          test ! -s conftest.err
30123        } && test -s conftest$ac_exeext &&
30124        $as_test_x conftest$ac_exeext; then
30125   ac_cv_func_pthread_create=yes
30126 else
30127   echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30129
30130         ac_cv_func_pthread_create=no
30131 fi
30132
30133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30134       conftest$ac_exeext conftest.$ac_ext
30135 fi
30136 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30137 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30138
30139
30140 fi
30141
30142
30143 fi
30144
30145
30146 fi
30147
30148
30149
30150 cat >>confdefs.h <<\_ACEOF
30151 #define FDLIBS 1
30152 _ACEOF
30153
30154
30155
30156 CFLAGS=${CFLAGS--O}
30157
30158 if test x$have_gcc = xyes ; then
30159    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30160    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30161 fi
30162 LDFLAGS=${LDFLAGS--O}
30163 DB_LIBS="${SQL_LFLAGS}"
30164 CPPFLAGS="$CPPFLAGS"
30165 CFLAGS="$CFLAGS"
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182 OBJLIST=
30183
30184
30185 lld="lld"
30186 llu="llu"
30187
30188 WCFLAGS=
30189 WLDFLAGS=
30190
30191 #
30192 # Finally we set appropriate distribution specific
30193 #  variables and defaults
30194 #
30195 # PFILES are platform specific files
30196 PFILES="platforms/Makefile"
30197 PSCMD="ps -e"
30198 WIN32=
30199 MACOSX=
30200 hostname=`uname -n | cut -d '.' -f 1`
30201 if test x${hostname} = x ; then
30202   hostname="localhost"
30203 fi
30204 case "$DISTNAME" in
30205 aix)
30206         DISTVER=`uname -r`
30207         PSCMD="ps -e -o pid,comm"
30208         PFILES="${PFILES} \
30209            platforms/aix/Makefile"
30210         TAPEDRIVE="/dev/rmt0.1"
30211   ;;
30212 alpha)
30213         DISTVER=`uname -r`
30214         PTHREAD_LIB="-lpthread -lexc"
30215         if test "${CC}" = "gcc" ; then
30216            lld="lld"
30217            llu="llu"
30218         else
30219            lld="ld"
30220            llu="lu"
30221         fi
30222         TAPEDRIVE="/dev/nrmt0"
30223   ;;
30224 bsdi)
30225         DISTVER=`uname -a |awk '{print $3}'`
30226         TAPEDRIVE="/dev/nrmt0"
30227         PTHREAD_LIB="-pthread"
30228         CFLAGS="${CFLAGS} -pthread"
30229         PSCMD="ps -ax -o pid,command"
30230         lld="qd"
30231         llu="qu"
30232         PFILES="${PFILES} \
30233             platforms/bsdi/Makefile \
30234             platforms/bsdi/bacula-fd \
30235             platforms/bsdi/bacula-sd \
30236             platforms/bsdi/bacula-dir"
30237         largefile_support="yes"
30238   ;;
30239 cygwin)
30240         DISTVER=`uname -a |awk '{print $3}'`
30241         TAPEDRIVE="/dev/nrst0"
30242         WIN32=win32
30243         WCFLAGS="-mwindows"
30244         WLDFLAGS="-mwindows"
30245   ;;
30246 darwin)
30247         DISTVER=`uname -r`
30248         TAPEDRIVE="/dev/nst0"
30249         PSCMD="ps -e -o pid,command"
30250         MACOSX=macosx
30251         PFILES="${PFILES} \
30252            platforms/darwin/Makefile"
30253   ;;
30254 debian)
30255         if `grep -q ubuntu /etc/apt/sources.list`; then
30256            DISTNAME="ubuntu"
30257         fi
30258         DISTVER=`cat /etc/debian_version`
30259         if test -f /etc/lsb-release ; then
30260            . /etc/lsb-release
30261            if test "x$DISTRIB_ID" != "x" ; then
30262               DISTNAME=$DISTRIB_ID
30263            fi
30264            if test "x$DISTRIB_RELEASE" != "x" ; then
30265               DISTVER=$DISTRIB_RELEASE
30266            fi
30267         fi
30268         if test "$DISTNAME" = "Ubuntu" ; then
30269            DISTNAME="ubuntu"
30270         fi
30271         TAPEDRIVE="/dev/nst0"
30272         PSCMD="ps -e -o pid,command"
30273         if test "$DISTNAME" = "ubuntu" ; then
30274            PFILES="${PFILES} \
30275               platforms/ubuntu/Makefile \
30276               platforms/ubuntu/bacula-fd \
30277               platforms/ubuntu/bacula-sd \
30278               platforms/ubuntu/bacula-dir"
30279         else
30280            PFILES="${PFILES} \
30281               platforms/debian/Makefile \
30282               platforms/debian/bacula-fd \
30283               platforms/debian/bacula-sd \
30284               platforms/debian/bacula-dir"
30285         fi
30286   ;;
30287 freebsd)
30288         DISTVER=`uname -a |awk '{print $3}'`
30289         VER=`echo $DISTVER | cut -c 1`
30290         if test x$VER = x4 ; then
30291            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30292            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30293         fi
30294         lld="qd"
30295         llu="qu"
30296         TAPEDRIVE="/dev/nrsa0"
30297         PSCMD="ps -ax -o pid,command"
30298         PFILES="${PFILES} \
30299             platforms/freebsd/Makefile \
30300             platforms/freebsd/bacula-fd \
30301             platforms/freebsd/bacula-sd \
30302             platforms/freebsd/bacula-dir"
30303         largefile_support="yes"
30304   ;;
30305 hpux)
30306         PSCMD="UNIX95=1; ps -e -o pid,comm"
30307         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30308         DISTVER=`uname -r`
30309         TAPEDRIVE="/dev/rmt/0hnb"
30310         PTHREAD_LIB="-lpthread"
30311         cat >>confdefs.h <<\_ACEOF
30312 #define _INCLUDE_LONGLONG 1
30313 _ACEOF
30314
30315   ;;
30316 irix)
30317         DISTVER=`uname -r`
30318         TAPEDRIVE="/dev/rmt/0cbn"
30319         PSCMD="ps -e -o pid,comm"
30320         PFILES="${PFILES} \
30321             platforms/irix/Makefile \
30322             platforms/irix/bacula-fd \
30323             platforms/irix/bacula-sd \
30324             platforms/irix/bacula-dir"
30325   ;;
30326 netbsd)
30327         DISTVER=`uname -a |awk '{print $3}'`
30328         lld="qd"
30329         llu="qu"
30330         TAPEDRIVE="/dev/nrst0"
30331         PSCMD="ps -ax -o pid,command"
30332         PTHREAD_LIB="-pthread"
30333         CFLAGS="${CFLAGS} -pthread"
30334   ;;
30335 openbsd)
30336         DISTVER=`uname -a |awk '{print $3}'`
30337         lld="qd"
30338         llu="qu"
30339         TAPEDRIVE="/dev/nrst0"
30340         PSCMD="ps -ax -o pid,command"
30341         PTHREAD_LIB="-pthread"
30342         CFLAGS="${CFLAGS} -pthread"
30343         PFILES="${PFILES} \
30344             platforms/openbsd/Makefile \
30345             platforms/openbsd/bacula-fd \
30346             platforms/openbsd/bacula-sd \
30347             platforms/openbsd/bacula-dir"
30348   ;;
30349 redhat)
30350         if test -f /etc/whitebox-release ; then
30351            f=/etc/whitebox-release
30352         else
30353            f=/etc/redhat-release
30354         fi
30355         if test `cat $f | grep release |\
30356                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30357            DISTVER="Enterprise "`cat $f | grep release |\
30358                     cut -f 6 -d ' '`
30359         else
30360             DISTVER=`cat /etc/redhat-release | grep release |\
30361                      cut -f 5 -d ' '`
30362         fi
30363         TAPEDRIVE="/dev/nst0"
30364         PSCMD="ps -e -o pid,command"
30365         PFILES="${PFILES} \
30366             platforms/redhat/Makefile \
30367             platforms/redhat/bacula-fd \
30368             platforms/redhat/bacula-sd \
30369             platforms/redhat/bacula-dir \
30370             platforms/redhat/bacula.spec \
30371             "
30372   ;;
30373 mandrake)
30374         DISTVER=`cat /etc/mandrake-release | grep release |\
30375            cut -f 5 -d ' '`
30376         TAPEDRIVE="/dev/nst0"
30377         PSCMD="ps -e -o pid,command"
30378         PFILES="${PFILES} \
30379             platforms/mandrake/Makefile \
30380             platforms/mandrake/bacula-fd \
30381             platforms/mandrake/bacula-sd \
30382             platforms/mandrake/bacula-dir \
30383             platforms/mandrake/bacula.spec \
30384             "
30385   ;;
30386 gentoo)
30387         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30388         TAPEDRIVE="/dev/nst0"
30389         PSCMD="ps -e -o pid,command"
30390         PFILES="${PFILES} \
30391             platforms/gentoo/Makefile \
30392          platforms/gentoo/bacula-init \
30393             platforms/gentoo/bacula-fd \
30394             platforms/gentoo/bacula-sd \
30395             platforms/gentoo/bacula-dir"
30396   ;;
30397 slackware)
30398         DISTVER=`cat /etc/slackware-version`
30399         TAPEDRIVE="/dev/nst0"
30400         PSCMD="ps -e -o pid,command"
30401         PFILES="${PFILES} \
30402             platforms/slackware/Makefile \
30403             platforms/slackware/rc.bacula-fd \
30404             platforms/slackware/rc.bacula-sd \
30405             platforms/slackware/rc.bacula-dir\
30406             platforms/slackware/functions.bacula"
30407   ;;
30408 solaris)
30409         DISTVER=`uname -r`
30410         TAPEDRIVE="/dev/rmt/0cbn"
30411         PSCMD="ps -e -o pid,comm"
30412         PFILES="${PFILES} \
30413             platforms/solaris/Makefile \
30414             platforms/solaris/bacula-fd \
30415             platforms/solaris/bacula-sd \
30416             platforms/solaris/bacula-dir"
30417         if test x$DISTVER = x5.6 ; then
30418             cat >>confdefs.h <<\_ACEOF
30419 #define HAVE_OLD_SOCKOPT 1
30420 _ACEOF
30421
30422         fi
30423         LIBS="$LIBS -lresolv"
30424   ;;
30425 suse)
30426         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30427             cut -f 3 -d ' '`
30428         TAPEDRIVE="/dev/nst0"
30429         PSCMD="ps -e -o pid,command"
30430         PFILES="${PFILES} \
30431             platforms/suse/Makefile \
30432             platforms/suse/bacula-fd \
30433             platforms/suse/bacula-sd \
30434             platforms/suse/bacula-dir \
30435             platforms/suse/bacula \
30436             platforms/suse/bacula.spec"
30437   ;;
30438 suse5)
30439         DISTNAME=suse
30440         DISTVER=5.x
30441         TAPEDRIVE="/dev/nst0"
30442         PSCMD="ps -e -o pid,command"
30443         PFILES="${PFILES} \
30444             platforms/suse/Makefile \
30445             platforms/suse/bacula-fd \
30446             platforms/suse/bacula-sd \
30447             platforms/suse/bacula-dir"
30448   ;;
30449 unknown)
30450         DISTVER=unknown
30451         TAPEDRIVE="/dev/nst0"
30452   ;;
30453 *)
30454   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30455   ;;
30456 esac
30457
30458
30459
30460 LIBS="$PTHREAD_LIB $LIBS"
30461
30462 cat >>confdefs.h <<_ACEOF
30463 #define lld "$lld"
30464 _ACEOF
30465
30466 cat >>confdefs.h <<_ACEOF
30467 #define llu "$llu"
30468 _ACEOF
30469
30470
30471
30472
30473
30474
30475
30476
30477 MCOMMON=./autoconf/Make.common
30478
30479
30480 if test "x${subsysdir}" = "x${sbindir}" ; then
30481    echo " "
30482    echo " "
30483    echo "You have set both --sbindir and --with-subsys-dir"
30484    echo "  equal to: ${subsysdir} "
30485    echo "This is not permitted. Please reconfigure."
30486    echo " "
30487    echo "Aborting configuration ..."
30488    echo " "
30489    echo " "
30490    exit 1
30491 fi
30492
30493 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"
30494
30495 ac_config_commands="$ac_config_commands default"
30496
30497 cat >confcache <<\_ACEOF
30498 # This file is a shell script that caches the results of configure
30499 # tests run on this system so they can be shared between configure
30500 # scripts and configure runs, see configure's option --config-cache.
30501 # It is not useful on other systems.  If it contains results you don't
30502 # want to keep, you may remove or edit it.
30503 #
30504 # config.status only pays attention to the cache file if you give it
30505 # the --recheck option to rerun configure.
30506 #
30507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30509 # following values.
30510
30511 _ACEOF
30512
30513 # The following way of writing the cache mishandles newlines in values,
30514 # but we know of no workaround that is simple, portable, and efficient.
30515 # So, we kill variables containing newlines.
30516 # Ultrix sh set writes to stderr and can't be redirected directly,
30517 # and sets the high bit in the cache file unless we assign to the vars.
30518 (
30519   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30520     eval ac_val=\$$ac_var
30521     case $ac_val in #(
30522     *${as_nl}*)
30523       case $ac_var in #(
30524       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30525 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30526       esac
30527       case $ac_var in #(
30528       _ | IFS | as_nl) ;; #(
30529       *) $as_unset $ac_var ;;
30530       esac ;;
30531     esac
30532   done
30533
30534   (set) 2>&1 |
30535     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30536     *${as_nl}ac_space=\ *)
30537       # `set' does not quote correctly, so add quotes (double-quote
30538       # substitution turns \\\\ into \\, and sed turns \\ into \).
30539       sed -n \
30540         "s/'/'\\\\''/g;
30541           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30542       ;; #(
30543     *)
30544       # `set' quotes correctly as required by POSIX, so do not add quotes.
30545       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30546       ;;
30547     esac |
30548     sort
30549 ) |
30550   sed '
30551      /^ac_cv_env_/b end
30552      t clear
30553      :clear
30554      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30555      t end
30556      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30557      :end' >>confcache
30558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30559   if test -w "$cache_file"; then
30560     test "x$cache_file" != "x/dev/null" &&
30561       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30562 echo "$as_me: updating cache $cache_file" >&6;}
30563     cat confcache >$cache_file
30564   else
30565     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30566 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30567   fi
30568 fi
30569 rm -f confcache
30570
30571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30572 # Let make expand exec_prefix.
30573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30574
30575 DEFS=-DHAVE_CONFIG_H
30576
30577 ac_libobjs=
30578 ac_ltlibobjs=
30579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30580   # 1. Remove the extension, and $U if already installed.
30581   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30582   ac_i=`echo "$ac_i" | sed "$ac_script"`
30583   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30584   #    will be set to the directory where LIBOBJS objects are built.
30585   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30586   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30587 done
30588 LIBOBJS=$ac_libobjs
30589
30590 LTLIBOBJS=$ac_ltlibobjs
30591
30592
30593
30594 : ${CONFIG_STATUS=./config.status}
30595 ac_clean_files_save=$ac_clean_files
30596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30599 cat >$CONFIG_STATUS <<_ACEOF
30600 #! $SHELL
30601 # Generated by $as_me.
30602 # Run this file to recreate the current configuration.
30603 # Compiler output produced by configure, useful for debugging
30604 # configure, is in config.log if it exists.
30605
30606 debug=false
30607 ac_cs_recheck=false
30608 ac_cs_silent=false
30609 SHELL=\${CONFIG_SHELL-$SHELL}
30610 _ACEOF
30611
30612 cat >>$CONFIG_STATUS <<\_ACEOF
30613 ## --------------------- ##
30614 ## M4sh Initialization.  ##
30615 ## --------------------- ##
30616
30617 # Be more Bourne compatible
30618 DUALCASE=1; export DUALCASE # for MKS sh
30619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30620   emulate sh
30621   NULLCMD=:
30622   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30623   # is contrary to our usage.  Disable this feature.
30624   alias -g '${1+"$@"}'='"$@"'
30625   setopt NO_GLOB_SUBST
30626 else
30627   case `(set -o) 2>/dev/null` in
30628   *posix*) set -o posix ;;
30629 esac
30630
30631 fi
30632
30633
30634
30635
30636 # PATH needs CR
30637 # Avoid depending upon Character Ranges.
30638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30641 as_cr_digits='0123456789'
30642 as_cr_alnum=$as_cr_Letters$as_cr_digits
30643
30644 # The user is always right.
30645 if test "${PATH_SEPARATOR+set}" != set; then
30646   echo "#! /bin/sh" >conf$$.sh
30647   echo  "exit 0"   >>conf$$.sh
30648   chmod +x conf$$.sh
30649   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30650     PATH_SEPARATOR=';'
30651   else
30652     PATH_SEPARATOR=:
30653   fi
30654   rm -f conf$$.sh
30655 fi
30656
30657 # Support unset when possible.
30658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30659   as_unset=unset
30660 else
30661   as_unset=false
30662 fi
30663
30664
30665 # IFS
30666 # We need space, tab and new line, in precisely that order.  Quoting is
30667 # there to prevent editors from complaining about space-tab.
30668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30669 # splitting by setting IFS to empty value.)
30670 as_nl='
30671 '
30672 IFS=" ""        $as_nl"
30673
30674 # Find who we are.  Look in the path if we contain no directory separator.
30675 case $0 in
30676   *[\\/]* ) as_myself=$0 ;;
30677   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30678 for as_dir in $PATH
30679 do
30680   IFS=$as_save_IFS
30681   test -z "$as_dir" && as_dir=.
30682   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30683 done
30684 IFS=$as_save_IFS
30685
30686      ;;
30687 esac
30688 # We did not find ourselves, most probably we were run as `sh COMMAND'
30689 # in which case we are not to be found in the path.
30690 if test "x$as_myself" = x; then
30691   as_myself=$0
30692 fi
30693 if test ! -f "$as_myself"; then
30694   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30695   { (exit 1); exit 1; }
30696 fi
30697
30698 # Work around bugs in pre-3.0 UWIN ksh.
30699 for as_var in ENV MAIL MAILPATH
30700 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30701 done
30702 PS1='$ '
30703 PS2='> '
30704 PS4='+ '
30705
30706 # NLS nuisances.
30707 for as_var in \
30708   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30709   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30710   LC_TELEPHONE LC_TIME
30711 do
30712   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30713     eval $as_var=C; export $as_var
30714   else
30715     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30716   fi
30717 done
30718
30719 # Required to use basename.
30720 if expr a : '\(a\)' >/dev/null 2>&1 &&
30721    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30722   as_expr=expr
30723 else
30724   as_expr=false
30725 fi
30726
30727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30728   as_basename=basename
30729 else
30730   as_basename=false
30731 fi
30732
30733
30734 # Name of the executable.
30735 as_me=`$as_basename -- "$0" ||
30736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30737          X"$0" : 'X\(//\)$' \| \
30738          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30739 echo X/"$0" |
30740     sed '/^.*\/\([^/][^/]*\)\/*$/{
30741             s//\1/
30742             q
30743           }
30744           /^X\/\(\/\/\)$/{
30745             s//\1/
30746             q
30747           }
30748           /^X\/\(\/\).*/{
30749             s//\1/
30750             q
30751           }
30752           s/.*/./; q'`
30753
30754 # CDPATH.
30755 $as_unset CDPATH
30756
30757
30758
30759   as_lineno_1=$LINENO
30760   as_lineno_2=$LINENO
30761   test "x$as_lineno_1" != "x$as_lineno_2" &&
30762   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30763
30764   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30765   # uniformly replaced by the line number.  The first 'sed' inserts a
30766   # line-number line after each line using $LINENO; the second 'sed'
30767   # does the real work.  The second script uses 'N' to pair each
30768   # line-number line with the line containing $LINENO, and appends
30769   # trailing '-' during substitution so that $LINENO is not a special
30770   # case at line end.
30771   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30772   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30773   # E. McMahon (1931-1989) for sed's syntax.  :-)
30774   sed -n '
30775     p
30776     /[$]LINENO/=
30777   ' <$as_myself |
30778     sed '
30779       s/[$]LINENO.*/&-/
30780       t lineno
30781       b
30782       :lineno
30783       N
30784       :loop
30785       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30786       t loop
30787       s/-\n.*//
30788     ' >$as_me.lineno &&
30789   chmod +x "$as_me.lineno" ||
30790     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30791    { (exit 1); exit 1; }; }
30792
30793   # Don't try to exec as it changes $[0], causing all sort of problems
30794   # (the dirname of $[0] is not the place where we might find the
30795   # original and so on.  Autoconf is especially sensitive to this).
30796   . "./$as_me.lineno"
30797   # Exit status is that of the last command.
30798   exit
30799 }
30800
30801
30802 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30803   as_dirname=dirname
30804 else
30805   as_dirname=false
30806 fi
30807
30808 ECHO_C= ECHO_N= ECHO_T=
30809 case `echo -n x` in
30810 -n*)
30811   case `echo 'x\c'` in
30812   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30813   *)   ECHO_C='\c';;
30814   esac;;
30815 *)
30816   ECHO_N='-n';;
30817 esac
30818
30819 if expr a : '\(a\)' >/dev/null 2>&1 &&
30820    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30821   as_expr=expr
30822 else
30823   as_expr=false
30824 fi
30825
30826 rm -f conf$$ conf$$.exe conf$$.file
30827 if test -d conf$$.dir; then
30828   rm -f conf$$.dir/conf$$.file
30829 else
30830   rm -f conf$$.dir
30831   mkdir conf$$.dir
30832 fi
30833 echo >conf$$.file
30834 if ln -s conf$$.file conf$$ 2>/dev/null; then
30835   as_ln_s='ln -s'
30836   # ... but there are two gotchas:
30837   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30838   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30839   # In both cases, we have to default to `cp -p'.
30840   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30841     as_ln_s='cp -p'
30842 elif ln conf$$.file conf$$ 2>/dev/null; then
30843   as_ln_s=ln
30844 else
30845   as_ln_s='cp -p'
30846 fi
30847 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30848 rmdir conf$$.dir 2>/dev/null
30849
30850 if mkdir -p . 2>/dev/null; then
30851   as_mkdir_p=:
30852 else
30853   test -d ./-p && rmdir ./-p
30854   as_mkdir_p=false
30855 fi
30856
30857 if test -x / >/dev/null 2>&1; then
30858   as_test_x='test -x'
30859 else
30860   if ls -dL / >/dev/null 2>&1; then
30861     as_ls_L_option=L
30862   else
30863     as_ls_L_option=
30864   fi
30865   as_test_x='
30866     eval sh -c '\''
30867       if test -d "$1"; then
30868         test -d "$1/.";
30869       else
30870         case $1 in
30871         -*)set "./$1";;
30872         esac;
30873         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30874         ???[sx]*):;;*)false;;esac;fi
30875     '\'' sh
30876   '
30877 fi
30878 as_executable_p=$as_test_x
30879
30880 # Sed expression to map a string onto a valid CPP name.
30881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30882
30883 # Sed expression to map a string onto a valid variable name.
30884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30885
30886
30887 exec 6>&1
30888
30889 # Save the log message, to keep $[0] and so on meaningful, and to
30890 # report actual input values of CONFIG_FILES etc. instead of their
30891 # values after options handling.
30892 ac_log="
30893 This file was extended by $as_me, which was
30894 generated by GNU Autoconf 2.61.  Invocation command line was
30895
30896   CONFIG_FILES    = $CONFIG_FILES
30897   CONFIG_HEADERS  = $CONFIG_HEADERS
30898   CONFIG_LINKS    = $CONFIG_LINKS
30899   CONFIG_COMMANDS = $CONFIG_COMMANDS
30900   $ $0 $@
30901
30902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30903 "
30904
30905 _ACEOF
30906
30907 cat >>$CONFIG_STATUS <<_ACEOF
30908 # Files that config.status was made for.
30909 config_files="$ac_config_files"
30910 config_headers="$ac_config_headers"
30911 config_commands="$ac_config_commands"
30912
30913 _ACEOF
30914
30915 cat >>$CONFIG_STATUS <<\_ACEOF
30916 ac_cs_usage="\
30917 \`$as_me' instantiates files from templates according to the
30918 current configuration.
30919
30920 Usage: $0 [OPTIONS] [FILE]...
30921
30922   -h, --help       print this help, then exit
30923   -V, --version    print version number and configuration settings, then exit
30924   -q, --quiet      do not print progress messages
30925   -d, --debug      don't remove temporary files
30926       --recheck    update $as_me by reconfiguring in the same conditions
30927   --file=FILE[:TEMPLATE]
30928                    instantiate the configuration file FILE
30929   --header=FILE[:TEMPLATE]
30930                    instantiate the configuration header FILE
30931
30932 Configuration files:
30933 $config_files
30934
30935 Configuration headers:
30936 $config_headers
30937
30938 Configuration commands:
30939 $config_commands
30940
30941 Report bugs to <bug-autoconf@gnu.org>."
30942
30943 _ACEOF
30944 cat >>$CONFIG_STATUS <<_ACEOF
30945 ac_cs_version="\\
30946 config.status
30947 configured by $0, generated by GNU Autoconf 2.61,
30948   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30949
30950 Copyright (C) 2006 Free Software Foundation, Inc.
30951 This config.status script is free software; the Free Software Foundation
30952 gives unlimited permission to copy, distribute and modify it."
30953
30954 ac_pwd='$ac_pwd'
30955 srcdir='$srcdir'
30956 INSTALL='$INSTALL'
30957 _ACEOF
30958
30959 cat >>$CONFIG_STATUS <<\_ACEOF
30960 # If no file are specified by the user, then we need to provide default
30961 # value.  By we need to know if files were specified by the user.
30962 ac_need_defaults=:
30963 while test $# != 0
30964 do
30965   case $1 in
30966   --*=*)
30967     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30968     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30969     ac_shift=:
30970     ;;
30971   *)
30972     ac_option=$1
30973     ac_optarg=$2
30974     ac_shift=shift
30975     ;;
30976   esac
30977
30978   case $ac_option in
30979   # Handling of the options.
30980   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30981     ac_cs_recheck=: ;;
30982   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30983     echo "$ac_cs_version"; exit ;;
30984   --debug | --debu | --deb | --de | --d | -d )
30985     debug=: ;;
30986   --file | --fil | --fi | --f )
30987     $ac_shift
30988     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30989     ac_need_defaults=false;;
30990   --header | --heade | --head | --hea )
30991     $ac_shift
30992     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30993     ac_need_defaults=false;;
30994   --he | --h)
30995     # Conflict between --help and --header
30996     { echo "$as_me: error: ambiguous option: $1
30997 Try \`$0 --help' for more information." >&2
30998    { (exit 1); exit 1; }; };;
30999   --help | --hel | -h )
31000     echo "$ac_cs_usage"; exit ;;
31001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31002   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31003     ac_cs_silent=: ;;
31004
31005   # This is an error.
31006   -*) { echo "$as_me: error: unrecognized option: $1
31007 Try \`$0 --help' for more information." >&2
31008    { (exit 1); exit 1; }; } ;;
31009
31010   *) ac_config_targets="$ac_config_targets $1"
31011      ac_need_defaults=false ;;
31012
31013   esac
31014   shift
31015 done
31016
31017 ac_configure_extra_args=
31018
31019 if $ac_cs_silent; then
31020   exec 6>/dev/null
31021   ac_configure_extra_args="$ac_configure_extra_args --silent"
31022 fi
31023
31024 _ACEOF
31025 cat >>$CONFIG_STATUS <<_ACEOF
31026 if \$ac_cs_recheck; then
31027   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31028   CONFIG_SHELL=$SHELL
31029   export CONFIG_SHELL
31030   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31031 fi
31032
31033 _ACEOF
31034 cat >>$CONFIG_STATUS <<\_ACEOF
31035 exec 5>>config.log
31036 {
31037   echo
31038   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31039 ## Running $as_me. ##
31040 _ASBOX
31041   echo "$ac_log"
31042 } >&5
31043
31044 _ACEOF
31045 cat >>$CONFIG_STATUS <<_ACEOF
31046 #
31047 # INIT-COMMANDS
31048 #
31049 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31050     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31051     # from automake.
31052     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31053     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31054     LINGUAS="${LINGUAS-%UNSET%}"
31055
31056
31057 _ACEOF
31058
31059 cat >>$CONFIG_STATUS <<\_ACEOF
31060
31061 # Handling of arguments.
31062 for ac_config_target in $ac_config_targets
31063 do
31064   case $ac_config_target in
31065     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31066     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31067     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31068     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31069     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31070     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31071     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31072     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31073     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31074     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31075     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31076     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31077     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31078     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31079     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31080     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31081     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31082     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31083     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31084     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31085     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31086     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31087     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31088     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31089     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31090     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31091     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31092     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31093     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31094     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31095     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31096     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31097     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31098     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31099     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31100     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31101     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31102     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31103     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31104     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31105     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31106     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31107     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31108     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31109     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31110     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31111     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31112     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31113     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31114     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31115     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31116     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31117     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31118     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31119     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31120     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31121     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31122     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31123     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31124     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31125     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31126     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31127     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31128     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31129     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31130     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31131     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31132     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31133     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31134     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31135     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31136     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31137     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31138     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31139     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31140     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31141     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31142     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31143     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31144     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31145     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31146     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31147     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31148     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31149     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31150     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31151     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31152     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31153     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31154     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31155     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31156     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31157     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31158     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31159     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31160     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31161     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31162     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31163     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31164     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31165     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31166     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31167     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31168     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31169     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31170     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31171     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31172     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31173     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31174     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31175
31176   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31177 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31178    { (exit 1); exit 1; }; };;
31179   esac
31180 done
31181
31182
31183 # If the user did not use the arguments to specify the items to instantiate,
31184 # then the envvar interface is used.  Set only those that are not.
31185 # We use the long form for the default assignment because of an extremely
31186 # bizarre bug on SunOS 4.1.3.
31187 if $ac_need_defaults; then
31188   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31189   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31190   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31191 fi
31192
31193 # Have a temporary directory for convenience.  Make it in the build tree
31194 # simply because there is no reason against having it here, and in addition,
31195 # creating and moving files from /tmp can sometimes cause problems.
31196 # Hook for its removal unless debugging.
31197 # Note that there is a small window in which the directory will not be cleaned:
31198 # after its creation but before its name has been assigned to `$tmp'.
31199 $debug ||
31200 {
31201   tmp=
31202   trap 'exit_status=$?
31203   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31204 ' 0
31205   trap '{ (exit 1); exit 1; }' 1 2 13 15
31206 }
31207 # Create a (secure) tmp directory for tmp files.
31208
31209 {
31210   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31211   test -n "$tmp" && test -d "$tmp"
31212 }  ||
31213 {
31214   tmp=./conf$$-$RANDOM
31215   (umask 077 && mkdir "$tmp")
31216 } ||
31217 {
31218    echo "$me: cannot create a temporary directory in ." >&2
31219    { (exit 1); exit 1; }
31220 }
31221
31222 #
31223 # Set up the sed scripts for CONFIG_FILES section.
31224 #
31225
31226 # No need to generate the scripts if there are no CONFIG_FILES.
31227 # This happens for instance when ./config.status config.h
31228 if test -n "$CONFIG_FILES"; then
31229
31230 _ACEOF
31231
31232 # Create sed commands to just substitute file output variables.
31233
31234 # Remaining file output variables are in a fragment that also has non-file
31235 # output varibles.
31236
31237
31238
31239 ac_delim='%!_!# '
31240 for ac_last_try in false false false false false :; do
31241   cat >conf$$subs.sed <<_ACEOF
31242 SHELL!$SHELL$ac_delim
31243 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31244 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31245 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31246 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31247 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31248 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31249 exec_prefix!$exec_prefix$ac_delim
31250 prefix!$prefix$ac_delim
31251 program_transform_name!$program_transform_name$ac_delim
31252 bindir!$bindir$ac_delim
31253 sbindir!$sbindir$ac_delim
31254 libexecdir!$libexecdir$ac_delim
31255 datarootdir!$datarootdir$ac_delim
31256 datadir!$datadir$ac_delim
31257 sysconfdir!$sysconfdir$ac_delim
31258 sharedstatedir!$sharedstatedir$ac_delim
31259 localstatedir!$localstatedir$ac_delim
31260 includedir!$includedir$ac_delim
31261 oldincludedir!$oldincludedir$ac_delim
31262 docdir!$docdir$ac_delim
31263 infodir!$infodir$ac_delim
31264 htmldir!$htmldir$ac_delim
31265 dvidir!$dvidir$ac_delim
31266 pdfdir!$pdfdir$ac_delim
31267 psdir!$psdir$ac_delim
31268 libdir!$libdir$ac_delim
31269 localedir!$localedir$ac_delim
31270 mandir!$mandir$ac_delim
31271 DEFS!$DEFS$ac_delim
31272 ECHO_C!$ECHO_C$ac_delim
31273 ECHO_N!$ECHO_N$ac_delim
31274 ECHO_T!$ECHO_T$ac_delim
31275 LIBS!$LIBS$ac_delim
31276 build_alias!$build_alias$ac_delim
31277 host_alias!$host_alias$ac_delim
31278 target_alias!$target_alias$ac_delim
31279 BUILD_DIR!$BUILD_DIR$ac_delim
31280 TOP_DIR!$TOP_DIR$ac_delim
31281 TRUEPRG!$TRUEPRG$ac_delim
31282 FALSEPRG!$FALSEPRG$ac_delim
31283 VERSION!$VERSION$ac_delim
31284 DATE!$DATE$ac_delim
31285 LSMDATE!$LSMDATE$ac_delim
31286 CC!$CC$ac_delim
31287 CFLAGS!$CFLAGS$ac_delim
31288 LDFLAGS!$LDFLAGS$ac_delim
31289 CPPFLAGS!$CPPFLAGS$ac_delim
31290 ac_ct_CC!$ac_ct_CC$ac_delim
31291 EXEEXT!$EXEEXT$ac_delim
31292 OBJEXT!$OBJEXT$ac_delim
31293 CXX!$CXX$ac_delim
31294 CXXFLAGS!$CXXFLAGS$ac_delim
31295 ac_ct_CXX!$ac_ct_CXX$ac_delim
31296 CPP!$CPP$ac_delim
31297 GREP!$GREP$ac_delim
31298 EGREP!$EGREP$ac_delim
31299 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31300 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31301 INSTALL_DATA!$INSTALL_DATA$ac_delim
31302 RANLIB!$RANLIB$ac_delim
31303 MV!$MV$ac_delim
31304 RM!$RM$ac_delim
31305 CP!$CP$ac_delim
31306 SED!$SED$ac_delim
31307 ECHO!$ECHO$ac_delim
31308 CMP!$CMP$ac_delim
31309 TBL!$TBL$ac_delim
31310 AR!$AR$ac_delim
31311 OPENSSL!$OPENSSL$ac_delim
31312 MTX!$MTX$ac_delim
31313 DD!$DD$ac_delim
31314 MKISOFS!$MKISOFS$ac_delim
31315 PYTHON!$PYTHON$ac_delim
31316 GROWISOFS!$GROWISOFS$ac_delim
31317 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31318 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31319 PKGCONFIG!$PKGCONFIG$ac_delim
31320 QMAKE!$QMAKE$ac_delim
31321 QMAKEQT4!$QMAKEQT4$ac_delim
31322 WXCONFIG!$WXCONFIG$ac_delim
31323 WXFLAGS!$WXFLAGS$ac_delim
31324 CDRECORD!$CDRECORD$ac_delim
31325 PIDOF!$PIDOF$ac_delim
31326 AWK!$AWK$ac_delim
31327 ARFLAGS!$ARFLAGS$ac_delim
31328 MAKE_SHELL!$MAKE_SHELL$ac_delim
31329 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31330 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31331 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31332 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31333 build!$build$ac_delim
31334 build_cpu!$build_cpu$ac_delim
31335 build_vendor!$build_vendor$ac_delim
31336 _ACEOF
31337
31338   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31339     break
31340   elif $ac_last_try; then
31341     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31342 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31343    { (exit 1); exit 1; }; }
31344   else
31345     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31346   fi
31347 done
31348
31349 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31350 if test -n "$ac_eof"; then
31351   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31352   ac_eof=`expr $ac_eof + 1`
31353 fi
31354
31355 cat >>$CONFIG_STATUS <<_ACEOF
31356 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31358 /^[      ]*@MCOMMON@[    ]*$/{
31359 r $MCOMMON
31360 d
31361 }
31362 _ACEOF
31363 sed '
31364 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31365 s/^/s,@/; s/!/@,|#_!!_#|/
31366 :n
31367 t n
31368 s/'"$ac_delim"'$/,g/; t
31369 s/$/\\/; p
31370 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31371 ' >>$CONFIG_STATUS <conf$$subs.sed
31372 rm -f conf$$subs.sed
31373 cat >>$CONFIG_STATUS <<_ACEOF
31374 CEOF$ac_eof
31375 _ACEOF
31376
31377
31378 ac_delim='%!_!# '
31379 for ac_last_try in false false false false false :; do
31380   cat >conf$$subs.sed <<_ACEOF
31381 build_os!$build_os$ac_delim
31382 host!$host$ac_delim
31383 host_cpu!$host_cpu$ac_delim
31384 host_vendor!$host_vendor$ac_delim
31385 host_os!$host_os$ac_delim
31386 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31387 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31388 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31389 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31390 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31391 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31392 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31393 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31394 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31395 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31396 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31397 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31398 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31399 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31400 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31401 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31402 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31403 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31404 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31405 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31406 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31407 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31408 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31409 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31410 SET_MAKE!$SET_MAKE$ac_delim
31411 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31412 USE_NLS!$USE_NLS$ac_delim
31413 MSGFMT!$MSGFMT$ac_delim
31414 GMSGFMT!$GMSGFMT$ac_delim
31415 XGETTEXT!$XGETTEXT$ac_delim
31416 MSGMERGE!$MSGMERGE$ac_delim
31417 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31418 LIBICONV!$LIBICONV$ac_delim
31419 LTLIBICONV!$LTLIBICONV$ac_delim
31420 INTLLIBS!$INTLLIBS$ac_delim
31421 LIBINTL!$LIBINTL$ac_delim
31422 LTLIBINTL!$LTLIBINTL$ac_delim
31423 POSUB!$POSUB$ac_delim
31424 GLIBC2!$GLIBC2$ac_delim
31425 ALLOCA!$ALLOCA$ac_delim
31426 GLIBC21!$GLIBC21$ac_delim
31427 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31428 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31429 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31430 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31431 INTLBISON!$INTLBISON$ac_delim
31432 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31433 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31434 CATOBJEXT!$CATOBJEXT$ac_delim
31435 DATADIRNAME!$DATADIRNAME$ac_delim
31436 INSTOBJEXT!$INSTOBJEXT$ac_delim
31437 GENCAT!$GENCAT$ac_delim
31438 INTLOBJS!$INTLOBJS$ac_delim
31439 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31440 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31441 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31442 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31443 GNOME_LIBS!$GNOME_LIBS$ac_delim
31444 GNOME_DIR!$GNOME_DIR$ac_delim
31445 BAT_DIR!$BAT_DIR$ac_delim
31446 QWT_INC!$QWT_INC$ac_delim
31447 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31448 QWT_LIB!$QWT_LIB$ac_delim
31449 QWT!$QWT$ac_delim
31450 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31451 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31452 WX_DIR!$WX_DIR$ac_delim
31453 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31454 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31455 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31456 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31457 STATIC_FD!$STATIC_FD$ac_delim
31458 STATIC_SD!$STATIC_SD$ac_delim
31459 STATIC_DIR!$STATIC_DIR$ac_delim
31460 STATIC_CONS!$STATIC_CONS$ac_delim
31461 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31462 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31463 ALL_DIRS!$ALL_DIRS$ac_delim
31464 DIRD_DIR!$DIRD_DIR$ac_delim
31465 DIR_TOOLS!$DIR_TOOLS$ac_delim
31466 STORED_DIR!$STORED_DIR$ac_delim
31467 CONS_INC!$CONS_INC$ac_delim
31468 CONS_OBJ!$CONS_OBJ$ac_delim
31469 CONS_SRC!$CONS_SRC$ac_delim
31470 CONS_LIBS!$CONS_LIBS$ac_delim
31471 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31472 READLINE_SRC!$READLINE_SRC$ac_delim
31473 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31474 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31475 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31476 OPENSSL_INC!$OPENSSL_INC$ac_delim
31477 working_dir!$working_dir$ac_delim
31478 _ACEOF
31479
31480   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31481     break
31482   elif $ac_last_try; then
31483     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31484 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31485    { (exit 1); exit 1; }; }
31486   else
31487     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31488   fi
31489 done
31490
31491 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31492 if test -n "$ac_eof"; then
31493   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31494   ac_eof=`expr $ac_eof + 1`
31495 fi
31496
31497 cat >>$CONFIG_STATUS <<_ACEOF
31498 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31500 _ACEOF
31501 sed '
31502 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31503 s/^/s,@/; s/!/@,|#_!!_#|/
31504 :n
31505 t n
31506 s/'"$ac_delim"'$/,g/; t
31507 s/$/\\/; p
31508 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31509 ' >>$CONFIG_STATUS <conf$$subs.sed
31510 rm -f conf$$subs.sed
31511 cat >>$CONFIG_STATUS <<_ACEOF
31512 CEOF$ac_eof
31513 _ACEOF
31514
31515
31516 ac_delim='%!_!# '
31517 for ac_last_try in false false false false false :; do
31518   cat >conf$$subs.sed <<_ACEOF
31519 archivedir!$archivedir$ac_delim
31520 scriptdir!$scriptdir$ac_delim
31521 dump_email!$dump_email$ac_delim
31522 job_email!$job_email$ac_delim
31523 smtp_host!$smtp_host$ac_delim
31524 piddir!$piddir$ac_delim
31525 subsysdir!$subsysdir$ac_delim
31526 baseport!$baseport$ac_delim
31527 dir_port!$dir_port$ac_delim
31528 fd_port!$fd_port$ac_delim
31529 sd_port!$sd_port$ac_delim
31530 dir_password!$dir_password$ac_delim
31531 fd_password!$fd_password$ac_delim
31532 sd_password!$sd_password$ac_delim
31533 mon_dir_password!$mon_dir_password$ac_delim
31534 mon_fd_password!$mon_fd_password$ac_delim
31535 mon_sd_password!$mon_sd_password$ac_delim
31536 db_name!$db_name$ac_delim
31537 db_user!$db_user$ac_delim
31538 db_password!$db_password$ac_delim
31539 db_port!$db_port$ac_delim
31540 dir_user!$dir_user$ac_delim
31541 dir_group!$dir_group$ac_delim
31542 sd_user!$sd_user$ac_delim
31543 sd_group!$sd_group$ac_delim
31544 fd_user!$fd_user$ac_delim
31545 fd_group!$fd_group$ac_delim
31546 SBINPERM!$SBINPERM$ac_delim
31547 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31548 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31549 SQL_BINDIR!$SQL_BINDIR$ac_delim
31550 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31551 uncomment_dbi!$uncomment_dbi$ac_delim
31552 DB_PROG!$DB_PROG$ac_delim
31553 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31554 cats!$cats$ac_delim
31555 DB_TYPE!$DB_TYPE$ac_delim
31556 GETCONF!$GETCONF$ac_delim
31557 XMKMF!$XMKMF$ac_delim
31558 X_CFLAGS!$X_CFLAGS$ac_delim
31559 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31560 X_LIBS!$X_LIBS$ac_delim
31561 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31562 LIBOBJS!$LIBOBJS$ac_delim
31563 FDLIBS!$FDLIBS$ac_delim
31564 DEBUG!$DEBUG$ac_delim
31565 DINCLUDE!$DINCLUDE$ac_delim
31566 DLIB!$DLIB$ac_delim
31567 DB_LIBS!$DB_LIBS$ac_delim
31568 WCFLAGS!$WCFLAGS$ac_delim
31569 WLDFLAGS!$WLDFLAGS$ac_delim
31570 WRAPLIBS!$WRAPLIBS$ac_delim
31571 OBJLIST!$OBJLIST$ac_delim
31572 hostname!$hostname$ac_delim
31573 TAPEDRIVE!$TAPEDRIVE$ac_delim
31574 PSCMD!$PSCMD$ac_delim
31575 WIN32!$WIN32$ac_delim
31576 MACOSX!$MACOSX$ac_delim
31577 DISTNAME!$DISTNAME$ac_delim
31578 DISTVER!$DISTVER$ac_delim
31579 LTLIBOBJS!$LTLIBOBJS$ac_delim
31580 _ACEOF
31581
31582   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
31583     break
31584   elif $ac_last_try; then
31585     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31587    { (exit 1); exit 1; }; }
31588   else
31589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31590   fi
31591 done
31592
31593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31594 if test -n "$ac_eof"; then
31595   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31596   ac_eof=`expr $ac_eof + 1`
31597 fi
31598
31599 cat >>$CONFIG_STATUS <<_ACEOF
31600 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31602 _ACEOF
31603 sed '
31604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31605 s/^/s,@/; s/!/@,|#_!!_#|/
31606 :n
31607 t n
31608 s/'"$ac_delim"'$/,g/; t
31609 s/$/\\/; p
31610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31611 ' >>$CONFIG_STATUS <conf$$subs.sed
31612 rm -f conf$$subs.sed
31613 cat >>$CONFIG_STATUS <<_ACEOF
31614 :end
31615 s/|#_!!_#|//g
31616 CEOF$ac_eof
31617 _ACEOF
31618
31619
31620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31622 # trailing colons and then remove the whole line if VPATH becomes empty
31623 # (actually we leave an empty line to preserve line numbers).
31624 if test "x$srcdir" = x.; then
31625   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31626 s/:*\$(srcdir):*/:/
31627 s/:*\${srcdir}:*/:/
31628 s/:*@srcdir@:*/:/
31629 s/^\([^=]*=[     ]*\):*/\1/
31630 s/:*$//
31631 s/^[^=]*=[       ]*$//
31632 }'
31633 fi
31634
31635 cat >>$CONFIG_STATUS <<\_ACEOF
31636 fi # test -n "$CONFIG_FILES"
31637
31638
31639 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31640 do
31641   case $ac_tag in
31642   :[FHLC]) ac_mode=$ac_tag; continue;;
31643   esac
31644   case $ac_mode$ac_tag in
31645   :[FHL]*:*);;
31646   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31647 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31648    { (exit 1); exit 1; }; };;
31649   :[FH]-) ac_tag=-:-;;
31650   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31651   esac
31652   ac_save_IFS=$IFS
31653   IFS=:
31654   set x $ac_tag
31655   IFS=$ac_save_IFS
31656   shift
31657   ac_file=$1
31658   shift
31659
31660   case $ac_mode in
31661   :L) ac_source=$1;;
31662   :[FH])
31663     ac_file_inputs=
31664     for ac_f
31665     do
31666       case $ac_f in
31667       -) ac_f="$tmp/stdin";;
31668       *) # Look for the file first in the build tree, then in the source tree
31669          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31670          # because $ac_f cannot contain `:'.
31671          test -f "$ac_f" ||
31672            case $ac_f in
31673            [\\/$]*) false;;
31674            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31675            esac ||
31676            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31677 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31678    { (exit 1); exit 1; }; };;
31679       esac
31680       ac_file_inputs="$ac_file_inputs $ac_f"
31681     done
31682
31683     # Let's still pretend it is `configure' which instantiates (i.e., don't
31684     # use $as_me), people would be surprised to read:
31685     #    /* config.h.  Generated by config.status.  */
31686     configure_input="Generated from "`IFS=:
31687           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31688     if test x"$ac_file" != x-; then
31689       configure_input="$ac_file.  $configure_input"
31690       { echo "$as_me:$LINENO: creating $ac_file" >&5
31691 echo "$as_me: creating $ac_file" >&6;}
31692     fi
31693
31694     case $ac_tag in
31695     *:-:* | *:-) cat >"$tmp/stdin";;
31696     esac
31697     ;;
31698   esac
31699
31700   ac_dir=`$as_dirname -- "$ac_file" ||
31701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31702          X"$ac_file" : 'X\(//\)[^/]' \| \
31703          X"$ac_file" : 'X\(//\)$' \| \
31704          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31705 echo X"$ac_file" |
31706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31707             s//\1/
31708             q
31709           }
31710           /^X\(\/\/\)[^/].*/{
31711             s//\1/
31712             q
31713           }
31714           /^X\(\/\/\)$/{
31715             s//\1/
31716             q
31717           }
31718           /^X\(\/\).*/{
31719             s//\1/
31720             q
31721           }
31722           s/.*/./; q'`
31723   { as_dir="$ac_dir"
31724   case $as_dir in #(
31725   -*) as_dir=./$as_dir;;
31726   esac
31727   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31728     as_dirs=
31729     while :; do
31730       case $as_dir in #(
31731       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31732       *) as_qdir=$as_dir;;
31733       esac
31734       as_dirs="'$as_qdir' $as_dirs"
31735       as_dir=`$as_dirname -- "$as_dir" ||
31736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31737          X"$as_dir" : 'X\(//\)[^/]' \| \
31738          X"$as_dir" : 'X\(//\)$' \| \
31739          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31740 echo X"$as_dir" |
31741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31742             s//\1/
31743             q
31744           }
31745           /^X\(\/\/\)[^/].*/{
31746             s//\1/
31747             q
31748           }
31749           /^X\(\/\/\)$/{
31750             s//\1/
31751             q
31752           }
31753           /^X\(\/\).*/{
31754             s//\1/
31755             q
31756           }
31757           s/.*/./; q'`
31758       test -d "$as_dir" && break
31759     done
31760     test -z "$as_dirs" || eval "mkdir $as_dirs"
31761   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31762 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31763    { (exit 1); exit 1; }; }; }
31764   ac_builddir=.
31765
31766 case "$ac_dir" in
31767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31768 *)
31769   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31770   # A ".." for each directory in $ac_dir_suffix.
31771   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31772   case $ac_top_builddir_sub in
31773   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31774   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31775   esac ;;
31776 esac
31777 ac_abs_top_builddir=$ac_pwd
31778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31779 # for backward compatibility:
31780 ac_top_builddir=$ac_top_build_prefix
31781
31782 case $srcdir in
31783   .)  # We are building in place.
31784     ac_srcdir=.
31785     ac_top_srcdir=$ac_top_builddir_sub
31786     ac_abs_top_srcdir=$ac_pwd ;;
31787   [\\/]* | ?:[\\/]* )  # Absolute name.
31788     ac_srcdir=$srcdir$ac_dir_suffix;
31789     ac_top_srcdir=$srcdir
31790     ac_abs_top_srcdir=$srcdir ;;
31791   *) # Relative name.
31792     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31793     ac_top_srcdir=$ac_top_build_prefix$srcdir
31794     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31795 esac
31796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31797
31798
31799   case $ac_mode in
31800   :F)
31801   #
31802   # CONFIG_FILE
31803   #
31804
31805   case $INSTALL in
31806   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31807   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31808   esac
31809 _ACEOF
31810
31811 cat >>$CONFIG_STATUS <<\_ACEOF
31812 # If the template does not know about datarootdir, expand it.
31813 # FIXME: This hack should be removed a few years after 2.60.
31814 ac_datarootdir_hack=; ac_datarootdir_seen=
31815
31816 case `sed -n '/datarootdir/ {
31817   p
31818   q
31819 }
31820 /@datadir@/p
31821 /@docdir@/p
31822 /@infodir@/p
31823 /@localedir@/p
31824 /@mandir@/p
31825 ' $ac_file_inputs` in
31826 *datarootdir*) ac_datarootdir_seen=yes;;
31827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31828   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31829 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31830 _ACEOF
31831 cat >>$CONFIG_STATUS <<_ACEOF
31832   ac_datarootdir_hack='
31833   s&@datadir@&$datadir&g
31834   s&@docdir@&$docdir&g
31835   s&@infodir@&$infodir&g
31836   s&@localedir@&$localedir&g
31837   s&@mandir@&$mandir&g
31838     s&\\\${datarootdir}&$datarootdir&g' ;;
31839 esac
31840 _ACEOF
31841
31842 # Neutralize VPATH when `$srcdir' = `.'.
31843 # Shell code in configure.ac might set extrasub.
31844 # FIXME: do we really want to maintain this feature?
31845 cat >>$CONFIG_STATUS <<_ACEOF
31846   sed "$ac_vpsub
31847 $extrasub
31848 _ACEOF
31849 cat >>$CONFIG_STATUS <<\_ACEOF
31850 :t
31851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31852 s&@configure_input@&$configure_input&;t t
31853 s&@top_builddir@&$ac_top_builddir_sub&;t t
31854 s&@srcdir@&$ac_srcdir&;t t
31855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31856 s&@top_srcdir@&$ac_top_srcdir&;t t
31857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31858 s&@builddir@&$ac_builddir&;t t
31859 s&@abs_builddir@&$ac_abs_builddir&;t t
31860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31861 s&@INSTALL@&$ac_INSTALL&;t t
31862 $ac_datarootdir_hack
31863 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31864
31865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31866   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31867   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31868   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31869 which seems to be undefined.  Please make sure it is defined." >&5
31870 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31871 which seems to be undefined.  Please make sure it is defined." >&2;}
31872
31873   rm -f "$tmp/stdin"
31874   case $ac_file in
31875   -) cat "$tmp/out"; rm -f "$tmp/out";;
31876   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31877   esac
31878  ;;
31879   :H)
31880   #
31881   # CONFIG_HEADER
31882   #
31883 _ACEOF
31884
31885 # Transform confdefs.h into a sed script `conftest.defines', that
31886 # substitutes the proper values into config.h.in to produce config.h.
31887 rm -f conftest.defines conftest.tail
31888 # First, append a space to every undef/define line, to ease matching.
31889 echo 's/$/ /' >conftest.defines
31890 # Then, protect against being on the right side of a sed subst, or in
31891 # an unquoted here document, in config.status.  If some macros were
31892 # called several times there might be several #defines for the same
31893 # symbol, which is useless.  But do not sort them, since the last
31894 # AC_DEFINE must be honored.
31895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31896 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31897 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31898 # PARAMS is the parameter list in the macro definition--in most cases, it's
31899 # just an empty string.
31900 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31901 ac_dB='\\)[      (].*,\\1define\\2'
31902 ac_dC=' '
31903 ac_dD=' ,'
31904
31905 uniq confdefs.h |
31906   sed -n '
31907         t rset
31908         :rset
31909         s/^[     ]*#[    ]*define[       ][      ]*//
31910         t ok
31911         d
31912         :ok
31913         s/[\\&,]/\\&/g
31914         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31915         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31916   ' >>conftest.defines
31917
31918 # Remove the space that was appended to ease matching.
31919 # Then replace #undef with comments.  This is necessary, for
31920 # example, in the case of _POSIX_SOURCE, which is predefined and required
31921 # on some systems where configure will not decide to define it.
31922 # (The regexp can be short, since the line contains either #define or #undef.)
31923 echo 's/ $//
31924 s,^[     #]*u.*,/* & */,' >>conftest.defines
31925
31926 # Break up conftest.defines:
31927 ac_max_sed_lines=50
31928
31929 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31930 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31931 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31932 # et cetera.
31933 ac_in='$ac_file_inputs'
31934 ac_out='"$tmp/out1"'
31935 ac_nxt='"$tmp/out2"'
31936
31937 while :
31938 do
31939   # Write a here document:
31940     cat >>$CONFIG_STATUS <<_ACEOF
31941     # First, check the format of the line:
31942     cat >"\$tmp/defines.sed" <<\\CEOF
31943 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31944 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31945 b
31946 :def
31947 _ACEOF
31948   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31949   echo 'CEOF
31950     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31951   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31952   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31953   grep . conftest.tail >/dev/null || break
31954   rm -f conftest.defines
31955   mv conftest.tail conftest.defines
31956 done
31957 rm -f conftest.defines conftest.tail
31958
31959 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31960 cat >>$CONFIG_STATUS <<\_ACEOF
31961   if test x"$ac_file" != x-; then
31962     echo "/* $configure_input  */" >"$tmp/config.h"
31963     cat "$ac_result" >>"$tmp/config.h"
31964     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31965       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31966 echo "$as_me: $ac_file is unchanged" >&6;}
31967     else
31968       rm -f $ac_file
31969       mv "$tmp/config.h" $ac_file
31970     fi
31971   else
31972     echo "/* $configure_input  */"
31973     cat "$ac_result"
31974   fi
31975   rm -f "$tmp/out12"
31976  ;;
31977
31978   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31979 echo "$as_me: executing $ac_file commands" >&6;}
31980  ;;
31981   esac
31982
31983
31984   case $ac_file$ac_mode in
31985     "default-1":C)
31986     for ac_file in $CONFIG_FILES; do
31987       # Support "outfile[:infile[:infile...]]"
31988       case "$ac_file" in
31989         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31990       esac
31991       # PO directories have a Makefile.in generated from Makefile.in.in.
31992       case "$ac_file" in */Makefile.in)
31993         # Adjust a relative srcdir.
31994         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31995         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31996         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31997         # In autoconf-2.13 it is called $ac_given_srcdir.
31998         # In autoconf-2.50 it is called $srcdir.
31999         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32000         case "$ac_given_srcdir" in
32001           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32002           /*) top_srcdir="$ac_given_srcdir" ;;
32003           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32004         esac
32005         # Treat a directory as a PO directory if and only if it has a
32006         # POTFILES.in file. This allows packages to have multiple PO
32007         # directories under different names or in different locations.
32008         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32009           rm -f "$ac_dir/POTFILES"
32010           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32011           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32012           POMAKEFILEDEPS="POTFILES.in"
32013           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32014           # on $ac_dir but don't depend on user-specified configuration
32015           # parameters.
32016           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32017             # The LINGUAS file contains the set of available languages.
32018             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32019               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32020             fi
32021             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32022             # Hide the ALL_LINGUAS assigment from automake.
32023             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32024             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32025           else
32026             # The set of available languages was given in configure.in.
32027             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32028           fi
32029           # Compute POFILES
32030           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32031           # Compute UPDATEPOFILES
32032           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32033           # Compute DUMMYPOFILES
32034           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32035           # Compute GMOFILES
32036           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32037           case "$ac_given_srcdir" in
32038             .) srcdirpre= ;;
32039             *) srcdirpre='$(srcdir)/' ;;
32040           esac
32041           POFILES=
32042           UPDATEPOFILES=
32043           DUMMYPOFILES=
32044           GMOFILES=
32045           for lang in $ALL_LINGUAS; do
32046             POFILES="$POFILES $srcdirpre$lang.po"
32047             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32048             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32049             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32050           done
32051           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32052           # environment variable.
32053           INST_LINGUAS=
32054           if test -n "$ALL_LINGUAS"; then
32055             for presentlang in $ALL_LINGUAS; do
32056               useit=no
32057               if test "%UNSET%" != "$LINGUAS"; then
32058                 desiredlanguages="$LINGUAS"
32059               else
32060                 desiredlanguages="$ALL_LINGUAS"
32061               fi
32062               for desiredlang in $desiredlanguages; do
32063                 # Use the presentlang catalog if desiredlang is
32064                 #   a. equal to presentlang, or
32065                 #   b. a variant of presentlang (because in this case,
32066                 #      presentlang can be used as a fallback for messages
32067                 #      which are not translated in the desiredlang catalog).
32068                 case "$desiredlang" in
32069                   "$presentlang"*) useit=yes;;
32070                 esac
32071               done
32072               if test $useit = yes; then
32073                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32074               fi
32075             done
32076           fi
32077           CATALOGS=
32078           if test -n "$INST_LINGUAS"; then
32079             for lang in $INST_LINGUAS; do
32080               CATALOGS="$CATALOGS $lang.gmo"
32081             done
32082           fi
32083           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32084           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"
32085           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32086             if test -f "$f"; then
32087               case "$f" in
32088                 *.orig | *.bak | *~) ;;
32089                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32090               esac
32091             fi
32092           done
32093         fi
32094         ;;
32095       esac
32096     done ;;
32097     "default":C)
32098  ;;
32099
32100   esac
32101 done # for ac_tag
32102
32103
32104 { (exit 0); exit 0; }
32105 _ACEOF
32106 chmod +x $CONFIG_STATUS
32107 ac_clean_files=$ac_clean_files_save
32108
32109
32110 # configure is writing to config.log, and then calls config.status.
32111 # config.status does its own redirection, appending to config.log.
32112 # Unfortunately, on DOS this fails, as config.log is still kept open
32113 # by configure, so config.status won't be able to write to it; its
32114 # output is simply discarded.  So we exec the FD to /dev/null,
32115 # effectively closing config.log, so it can be properly (re)opened and
32116 # appended to by config.status.  When coming back to configure, we
32117 # need to make the FD available again.
32118 if test "$no_create" != yes; then
32119   ac_cs_success=:
32120   ac_config_status_args=
32121   test "$silent" = yes &&
32122     ac_config_status_args="$ac_config_status_args --quiet"
32123   exec 5>/dev/null
32124   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32125   exec 5>>config.log
32126   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32127   # would make configure fail if this is the last instruction.
32128   $ac_cs_success || { (exit 1); exit 1; }
32129 fi
32130
32131
32132 if test "${support_bat}" = "yes" ; then
32133   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32134   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32135   exit 1
32136   fi
32137
32138   QMAKEBIN="qmake"
32139
32140   if test "x$QMAKEQT4" != "xnone"; then
32141     QMAKEBIN=qmake-qt4
32142   fi
32143
32144   cd src/qt-console
32145   chmod 755 install_conf_file build-depkgs-qt-console
32146   echo "Creating bat Makefile"
32147   $QMAKEBIN
32148   make clean
32149   cd ${BUILD_DIR}
32150 fi
32151
32152 # configure and prepare libtokyodbm for bacula
32153 pushd src/lib/tokyocabinet > /dev/null
32154 tcdbm_opt=
32155 if test x$largefile_support = xyes; then
32156    tcdbm_opt=--enable-off64
32157 fi
32158 ./configure $tcdbm_opt
32159 popd > /dev/null
32160 # need tokyo header files for "make depend"
32161 cp src/lib/tokyocabinet/t*.h src/lib
32162
32163 echo "Doing make of dependencies"
32164 ${MAKE:-make} depend
32165
32166 cd scripts
32167 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32168 chmod 755 dvd-handler dvd-simulator
32169 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32170 cd ..
32171
32172 c=updatedb
32173 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32174 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32175
32176 c=src/cats
32177
32178 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32179 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32180
32181 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32182 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32183
32184 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32185 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32186
32187 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32188 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32189
32190 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32191 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32192
32193 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32194 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32195
32196 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32197 chmod 755 $c/sqlite
32198 chmod 755 $c/mysql
32199
32200 chmod 755 src/win32/build-depkgs-mingw32
32201
32202
32203
32204 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32205    largefile_support="yes"
32206 fi
32207
32208 #
32209 # A whole lot of hand springs to get the compiler version.
32210 #  This is because gcc changed the output in version 3.0
32211 #
32212 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32213 if test "x${CCVERSION}" = "x" ; then
32214   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32215 fi
32216 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32217 if test x"${CXXVERSION}" = x ; then
32218   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32219 fi
32220
32221 if test "x${subsysdir}" = "x${sbindir}" ; then
32222    echo " "
32223    echo " "
32224    echo "You have set --sbindir and --with-subsys-dir"
32225    echo "  both equal to: ${subsysdir} "
32226    echo "  This is not permitted. Please reconfigure."
32227    echo " "
32228    echo "Aborting configuration ..."
32229    echo " "
32230    echo " "
32231    exit 1
32232 fi
32233
32234 if test "x${db_type}" = "xInternal" ; then
32235    echo " "
32236    echo " "
32237    echo "You have not specified either --enable-client-only or one of the"
32238    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32239    echo "  This is not permitted. Please reconfigure."
32240    echo " "
32241    echo "Aborting the configuration ..."
32242    echo " "
32243    echo " "
32244    exit 1
32245 fi
32246
32247 echo "
32248 Configuration on `date`:
32249
32250   Host:                       $host -- ${DISTNAME} ${DISTVER}
32251   Bacula version:             ${VERSION} (${DATE})
32252   Source code location:       ${srcdir}
32253   Install binaries:           ${sbindir}
32254   Install config files:       ${sysconfdir}
32255   Scripts directory:          ${scriptdir}
32256   Archive directory:          ${archivedir}
32257   Working directory:          ${working_dir}
32258   PID directory:              ${piddir}
32259   Subsys directory:           ${subsysdir}
32260   Man directory:              ${mandir}
32261   Data directory:             ${datadir}
32262   C Compiler:                 ${CC} ${CCVERSION}
32263   C++ Compiler:               ${CXX} ${CXXVERSION}
32264   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32265   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32266   Libraries:                  ${LIBS}
32267   Statically Linked Tools:    ${support_static_tools}
32268   Statically Linked FD:       ${support_static_fd}
32269   Statically Linked SD:       ${support_static_sd}
32270   Statically Linked DIR:      ${support_static_dir}
32271   Statically Linked CONS:     ${support_static_cons}
32272   Database type:              ${db_type}
32273   Database port:          ${db_port}
32274   Database lib:               ${DB_LIBS}
32275   Database name:              ${db_name}
32276   Database user:              ${db_user}
32277
32278   Job Output Email:           ${job_email}
32279   Traceback Email:            ${dump_email}
32280   SMTP Host Address:          ${smtp_host}
32281
32282   Director Port:              ${dir_port}
32283   File daemon Port:           ${fd_port}
32284   Storage daemon Port:        ${sd_port}
32285
32286   Director User:              ${dir_user}
32287   Director Group:             ${dir_group}
32288   Storage Daemon User:        ${sd_user}
32289   Storage DaemonGroup:        ${sd_group}
32290   File Daemon User:           ${fd_user}
32291   File Daemon Group:          ${fd_group}
32292
32293   SQL binaries Directory      ${SQL_BINDIR}
32294
32295   Large file support:         $largefile_support
32296   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32297   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32298   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32299   TLS support:                ${support_tls}
32300   Encryption support:         ${support_crypto}
32301   ZLIB support:               ${have_zlib}
32302   enable-smartalloc:          ${support_smartalloc}
32303   bat support:                ${support_bat} ${QWT_LDFLAGS}
32304   enable-gnome:               ${support_gnome} ${gnome_version}
32305   enable-bwx-console:         ${support_wx_console} ${wx_version}
32306   enable-tray-monitor:        ${support_tray_monitor}
32307   client-only:                ${build_client_only}
32308   build-dird:                 ${build_dird}
32309   build-stored:               ${build_stored}
32310   ACL support:                ${have_acl}
32311   Python support:             ${support_python} ${PYTHON_LIBS}
32312   Batch insert enabled:       ${support_batch_insert}
32313
32314   " > config.out
32315
32316 cat config.out