]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
ebl new version of accurate project
[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 WXCONS_CPPFLAGS
778 WXCONS_LDFLAGS
779 WX_DIR
780 TRAY_MONITOR_CPPFLAGS
781 TRAY_MONITOR_LDFLAGS
782 TRAY_MONITOR_DIR
783 TTOOL_LDFLAGS
784 STATIC_FD
785 STATIC_SD
786 STATIC_DIR
787 STATIC_CONS
788 STATIC_GNOME_CONS
789 STATIC_WX_CONS
790 ALL_DIRS
791 DIRD_DIR
792 DIR_TOOLS
793 STORED_DIR
794 CONS_INC
795 CONS_OBJ
796 CONS_SRC
797 CONS_LIBS
798 CONS_LDFLAGS
799 READLINE_SRC
800 PYTHON_LIBS
801 PYTHON_INCDIR
802 OPENSSL_LIBS
803 OPENSSL_INC
804 working_dir
805 archivedir
806 scriptdir
807 dump_email
808 job_email
809 smtp_host
810 piddir
811 subsysdir
812 baseport
813 dir_port
814 fd_port
815 sd_port
816 dir_password
817 fd_password
818 sd_password
819 mon_dir_password
820 mon_fd_password
821 mon_sd_password
822 db_name
823 db_user
824 dir_user
825 dir_group
826 sd_user
827 sd_group
828 fd_user
829 fd_group
830 SBINPERM
831 SQL_LFLAGS
832 SQL_INCLUDE
833 SQL_BINDIR
834 cats
835 DB_TYPE
836 GETCONF
837 XMKMF
838 X_CFLAGS
839 X_PRE_LIBS
840 X_LIBS
841 X_EXTRA_LIBS
842 LIBOBJS
843 FDLIBS
844 DEBUG
845 DINCLUDE
846 DLIB
847 DB_LIBS
848 WCFLAGS
849 WLDFLAGS
850 WRAPLIBS
851 OBJLIST
852 hostname
853 TAPEDRIVE
854 PSCMD
855 WIN32
856 MACOSX
857 DISTNAME
858 DISTVER
859 LTLIBOBJS'
860 ac_subst_files='MCOMMON'
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 CXX
870 CXXFLAGS
871 CCC
872 CPP
873 WXCONFIG
874 WXFLAGS
875 XMKMF'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
897
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
923
924 ac_prev=
925 ac_dashdash=
926 for ac_option
927 do
928   # If the previous option needs an argument, assign it.
929   if test -n "$ac_prev"; then
930     eval $ac_prev=\$ac_option
931     ac_prev=
932     continue
933   fi
934
935   case $ac_option in
936   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
982       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983    { (exit 1); exit 1; }; }
984     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
985     eval enable_$ac_feature=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=\$ac_optarg ;;
1005
1006   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008   | --exec | --exe | --ex)
1009     ac_prev=exec_prefix ;;
1010   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012   | --exec=* | --exe=* | --ex=*)
1013     exec_prefix=$ac_optarg ;;
1014
1015   -gas | --gas | --ga | --g)
1016     # Obsolete; use --with-gas.
1017     with_gas=yes ;;
1018
1019   -help | --help | --hel | --he | -h)
1020     ac_init_help=long ;;
1021   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022     ac_init_help=recursive ;;
1023   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024     ac_init_help=short ;;
1025
1026   -host | --host | --hos | --ho)
1027     ac_prev=host_alias ;;
1028   -host=* | --host=* | --hos=* | --ho=*)
1029     host_alias=$ac_optarg ;;
1030
1031   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032     ac_prev=htmldir ;;
1033   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034   | --ht=*)
1035     htmldir=$ac_optarg ;;
1036
1037   -includedir | --includedir | --includedi | --included | --include \
1038   | --includ | --inclu | --incl | --inc)
1039     ac_prev=includedir ;;
1040   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041   | --includ=* | --inclu=* | --incl=* | --inc=*)
1042     includedir=$ac_optarg ;;
1043
1044   -infodir | --infodir | --infodi | --infod | --info | --inf)
1045     ac_prev=infodir ;;
1046   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047     infodir=$ac_optarg ;;
1048
1049   -libdir | --libdir | --libdi | --libd)
1050     ac_prev=libdir ;;
1051   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052     libdir=$ac_optarg ;;
1053
1054   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055   | --libexe | --libex | --libe)
1056     ac_prev=libexecdir ;;
1057   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058   | --libexe=* | --libex=* | --libe=*)
1059     libexecdir=$ac_optarg ;;
1060
1061   -localedir | --localedir | --localedi | --localed | --locale)
1062     ac_prev=localedir ;;
1063   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064     localedir=$ac_optarg ;;
1065
1066   -localstatedir | --localstatedir | --localstatedi | --localstated \
1067   | --localstate | --localstat | --localsta | --localst | --locals)
1068     ac_prev=localstatedir ;;
1069   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071     localstatedir=$ac_optarg ;;
1072
1073   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074     ac_prev=mandir ;;
1075   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076     mandir=$ac_optarg ;;
1077
1078   -nfp | --nfp | --nf)
1079     # Obsolete; use --without-fp.
1080     with_fp=no ;;
1081
1082   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083   | --no-cr | --no-c | -n)
1084     no_create=yes ;;
1085
1086   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088     no_recursion=yes ;;
1089
1090   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092   | --oldin | --oldi | --old | --ol | --o)
1093     ac_prev=oldincludedir ;;
1094   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097     oldincludedir=$ac_optarg ;;
1098
1099   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100     ac_prev=prefix ;;
1101   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102     prefix=$ac_optarg ;;
1103
1104   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105   | --program-pre | --program-pr | --program-p)
1106     ac_prev=program_prefix ;;
1107   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109     program_prefix=$ac_optarg ;;
1110
1111   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112   | --program-suf | --program-su | --program-s)
1113     ac_prev=program_suffix ;;
1114   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116     program_suffix=$ac_optarg ;;
1117
1118   -program-transform-name | --program-transform-name \
1119   | --program-transform-nam | --program-transform-na \
1120   | --program-transform-n | --program-transform- \
1121   | --program-transform | --program-transfor \
1122   | --program-transfo | --program-transf \
1123   | --program-trans | --program-tran \
1124   | --progr-tra | --program-tr | --program-t)
1125     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1134
1135   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136     ac_prev=pdfdir ;;
1137   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138     pdfdir=$ac_optarg ;;
1139
1140   -psdir | --psdir | --psdi | --psd | --ps)
1141     ac_prev=psdir ;;
1142   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143     psdir=$ac_optarg ;;
1144
1145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146   | -silent | --silent | --silen | --sile | --sil)
1147     silent=yes ;;
1148
1149   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150     ac_prev=sbindir ;;
1151   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152   | --sbi=* | --sb=*)
1153     sbindir=$ac_optarg ;;
1154
1155   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157   | --sharedst | --shareds | --shared | --share | --shar \
1158   | --sha | --sh)
1159     ac_prev=sharedstatedir ;;
1160   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163   | --sha=* | --sh=*)
1164     sharedstatedir=$ac_optarg ;;
1165
1166   -site | --site | --sit)
1167     ac_prev=site ;;
1168   -site=* | --site=* | --sit=*)
1169     site=$ac_optarg ;;
1170
1171   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172     ac_prev=srcdir ;;
1173   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174     srcdir=$ac_optarg ;;
1175
1176   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177   | --syscon | --sysco | --sysc | --sys | --sy)
1178     ac_prev=sysconfdir ;;
1179   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181     sysconfdir=$ac_optarg ;;
1182
1183   -target | --target | --targe | --targ | --tar | --ta | --t)
1184     ac_prev=target_alias ;;
1185   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186     target_alias=$ac_optarg ;;
1187
1188   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189     verbose=yes ;;
1190
1191   -version | --version | --versio | --versi | --vers | -V)
1192     ac_init_version=: ;;
1193
1194   -with-* | --with-*)
1195     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198       { echo "$as_me: error: invalid package name: $ac_package" >&2
1199    { (exit 1); exit 1; }; }
1200     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1201     eval with_$ac_package=\$ac_optarg ;;
1202
1203   -without-* | --without-*)
1204     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       { echo "$as_me: error: invalid package name: $ac_package" >&2
1208    { (exit 1); exit 1; }; }
1209     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210     eval with_$ac_package=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232    { (exit 1); exit 1; }; }
1233     ;;
1234
1235   *=*)
1236     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240    { (exit 1); exit 1; }; }
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   { echo "$as_me: error: missing argument to $ac_option" >&2
1258    { (exit 1); exit 1; }; }
1259 fi
1260
1261 # Be sure to have absolute directory names.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273    { (exit 1); exit 1; }; }
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288     If a cross compiler is detected then cross compile mode will be used." >&2
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   { echo "$as_me: error: Working directory cannot be determined" >&2
1304    { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   { echo "$as_me: error: pwd does not report name of working directory" >&2
1307    { (exit 1); exit 1; }; }
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$0" : 'X\(//\)[^/]' \| \
1317          X"$0" : 'X\(//\)$' \| \
1318          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1319 echo X"$0" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352    { (exit 1); exit 1; }; }
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR           user executables [EPREFIX/bin]
1413   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR       program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR           object code libraries [EPREFIX/lib]
1419   --includedir=DIR       C header files [PREFIX/include]
1420   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR          info documentation [DATAROOTDIR/info]
1424   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR           man documentation [DATAROOTDIR/man]
1426   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1427   --htmldir=DIR          html documentation [DOCDIR]
1428   --dvidir=DIR           dvi documentation [DOCDIR]
1429   --pdfdir=DIR           pdf documentation [DOCDIR]
1430   --psdir=DIR            ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 X features:
1436   --x-includes=DIR    X include files are in DIR
1437   --x-libraries=DIR   X library files are in DIR
1438
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452   --disable-nls           do not use Native Language Support
1453   --disable-rpath         do not hardcode runtime library paths
1454   --enable-gnome          enable build of bgnome-console GUI disabled
1455   --enable-bat  enable build of bat Qt4 GUI disabled
1456   --enable-bwx-console     enable build of wxWidgets console disabled
1457   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1458   --enable-smartalloc     enable smartalloc debugging support disabled
1459   --enable-static-tools   enable static tape tools disabled
1460   --enable-static-fd      enable static File daemon disabled
1461   --enable-static-sd      enable static Storage daemon disabled
1462   --enable-static-dir     enable static Director disabled
1463   --enable-static-cons    enable static Console disabled
1464   --enable-client-only    build client (File daemon) only disabled
1465   --enable-build-dird     enable building of dird (Director) enabled
1466   --enable-build-stored   enable building of stored (Storage daemon) enabled
1467  --disable-conio disable conio support enabled
1468
1469   --enable-ipv6             enable ipv6 support enabled
1470
1471   --disable-readline      disable readline support disable
1472
1473         --enable-batch-insert       enable the DB batch insert code disabled
1474   --disable-largefile     omit support for large files
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1480   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1481   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1482   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1483   --without-libintl-prefix     don't search for libintl in includedir and libdir
1484   --with-included-gettext use the GNU gettext library included here
1485  --with-qwt[=DIR]                 specify qwt library directory
1486  --with-readline[=DIR]         specify readline library directory
1487
1488   --with-python[=DIR]   Include Python support.  DIR is the Python base
1489                           install directory, default is to search through
1490                           a number of common places for the Python files.
1491   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1492   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1493   --with-working-dir=PATH        specify path of Bacula working directory
1494   --with-archivedir=PATH        specify path of SD archive directory
1495   --with-scriptdir=PATH    specify path of Bacula scripts directory
1496   --with-dump-email=EMAIL        dump email address
1497   --with-job-email=EMAIL         job output email address
1498   --with-smtp-host=HOST          SMTP mail host address
1499   --with-pid-dir=PATH            specify location of Bacula pid files
1500   --with-subsys-dir=PATH         specify location of Bacula subsys file
1501   --with-baseport=PORT           specify base port address for daemons
1502   --with-dir-password=PASSWORD   specify Director's password
1503   --with-fd-password=PASSWORD    specify Client's password
1504   --with-sd-password=PASSWORD    specify Storage daemon's password
1505   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1506   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1507   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1508   --with-db-name=DBNAME        specify database name (default bacula)
1509   --with-db-user=UNAME         specify database user (default bacula)
1510   --with-dir-user=USER           specify user for Director daemon
1511   --with-dir-group=GROUP                 specify group for Director daemon
1512   --with-sd-user=USER            specify user for Storage daemon
1513   --with-sd-group=GROUP          specify group for Storage daemon
1514   --with-fd-user=USER            specify user for File daemon
1515   --with-fd-group=GROUP          specify group for File daemon
1516   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1517   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1518                           base install directory, defaults to /usr/local/pgsql
1519
1520   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1521                           install directory, default is to search through
1522                           a number of common places for the MySQL files.
1523
1524   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1525                           install directory, default is to search through
1526                           a number of common places for the MySQL files.
1527
1528   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1529                           install directory, default is to search through
1530                           a number of common places for the SQLite3 files.
1531
1532   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1533                           install directory, default is to search through
1534                           a number of common places for the SQLite files.
1535   --with-x                use the X Window System
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   LIBS        libraries to pass to the linker, e.g. -l<library>
1543   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544               you have headers in a nonstandard directory <include dir>
1545   CXX         C++ compiler command
1546   CXXFLAGS    C++ compiler flags
1547   CPP         C preprocessor
1548   WXCONFIG    wx-config command. On some systems, you must set it to
1549               wx-config-2.6 to use wxWidgets 2.6.
1550   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1551   XMKMF       Path to xmkmf, Makefile generator for X Window System
1552
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1555
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561   # If there are subdirs, report their specific --help.
1562   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563     test -d "$ac_dir" || continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for guested configure.
1600     if test -f "$ac_srcdir/configure.gnu"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603     elif test -f "$ac_srcdir/configure"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure" --help=recursive
1606     else
1607       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608     fi || ac_status=$?
1609     cd "$ac_pwd" || { ac_status=$?; break; }
1610   done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615   cat <<\_ACEOF
1616 configure
1617 generated by GNU Autoconf 2.61
1618
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1629
1630 It was created by $as_me, which was
1631 generated by GNU Autoconf 2.61.  Invocation command line was
1632
1633   $ $0 $@
1634
1635 _ACEOF
1636 exec 5>>config.log
1637 {
1638 cat <<_ASUNAME
1639 ## --------- ##
1640 ## Platform. ##
1641 ## --------- ##
1642
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1651
1652 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1653 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1656 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1657 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1658 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1659
1660 _ASUNAME
1661
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   echo "PATH: $as_dir"
1668 done
1669 IFS=$as_save_IFS
1670
1671 } >&5
1672
1673 cat >&5 <<_ACEOF
1674
1675
1676 ## ----------- ##
1677 ## Core tests. ##
1678 ## ----------- ##
1679
1680 _ACEOF
1681
1682
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_configure_args=
1689 ac_configure_args0=
1690 ac_configure_args1=
1691 ac_must_keep_next=false
1692 for ac_pass in 1 2
1693 do
1694   for ac_arg
1695   do
1696     case $ac_arg in
1697     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699     | -silent | --silent | --silen | --sile | --sil)
1700       continue ;;
1701     *\'*)
1702       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703     esac
1704     case $ac_pass in
1705     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706     2)
1707       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708       if test $ac_must_keep_next = true; then
1709         ac_must_keep_next=false # Got value, back to normal.
1710       else
1711         case $ac_arg in
1712           *=* | --config-cache | -C | -disable-* | --disable-* \
1713           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715           | -with-* | --with-* | -without-* | --without-* | --x)
1716             case "$ac_configure_args0 " in
1717               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718             esac
1719             ;;
1720           -* ) ac_must_keep_next=true ;;
1721         esac
1722       fi
1723       ac_configure_args="$ac_configure_args '$ac_arg'"
1724       ;;
1725     esac
1726   done
1727 done
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log.  We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737   # Save into config.log some information that might help in debugging.
1738   {
1739     echo
1740
1741     cat <<\_ASBOX
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1745 _ASBOX
1746     echo
1747     # The following way of writing the cache mishandles newlines in values,
1748 (
1749   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750     eval ac_val=\$$ac_var
1751     case $ac_val in #(
1752     *${as_nl}*)
1753       case $ac_var in #(
1754       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1756       esac
1757       case $ac_var in #(
1758       _ | IFS | as_nl) ;; #(
1759       *) $as_unset $ac_var ;;
1760       esac ;;
1761     esac
1762   done
1763   (set) 2>&1 |
1764     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765     *${as_nl}ac_space=\ *)
1766       sed -n \
1767         "s/'\''/'\''\\\\'\'''\''/g;
1768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769       ;; #(
1770     *)
1771       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772       ;;
1773     esac |
1774     sort
1775 )
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1782 _ASBOX
1783     echo
1784     for ac_var in $ac_subst_vars
1785     do
1786       eval ac_val=\$$ac_var
1787       case $ac_val in
1788       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789       esac
1790       echo "$ac_var='\''$ac_val'\''"
1791     done | sort
1792     echo
1793
1794     if test -n "$ac_subst_files"; then
1795       cat <<\_ASBOX
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1799 _ASBOX
1800       echo
1801       for ac_var in $ac_subst_files
1802       do
1803         eval ac_val=\$$ac_var
1804         case $ac_val in
1805         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806         esac
1807         echo "$ac_var='\''$ac_val'\''"
1808       done | sort
1809       echo
1810     fi
1811
1812     if test -s confdefs.h; then
1813       cat <<\_ASBOX
1814 ## ----------- ##
1815 ## confdefs.h. ##
1816 ## ----------- ##
1817 _ASBOX
1818       echo
1819       cat confdefs.h
1820       echo
1821     fi
1822     test "$ac_signal" != 0 &&
1823       echo "$as_me: caught signal $ac_signal"
1824     echo "$as_me: exit $exit_status"
1825   } >&5
1826   rm -f core *.core core.conftest.* &&
1827     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828     exit $exit_status
1829 ' 0
1830 for ac_signal in 1 2 13 15; do
1831   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 done
1833 ac_signal=0
1834
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1837
1838 # Predefined preprocessor variables.
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 _ACEOF
1863
1864
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868   set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1871 else
1872   set x "$ac_default_prefix/share/config.site" \
1873         "$ac_default_prefix/etc/config.site"
1874 fi
1875 shift
1876 for ac_site_file
1877 do
1878   if test -r "$ac_site_file"; then
1879     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881     sed 's/^/| /' "$ac_site_file" >&5
1882     . "$ac_site_file"
1883   fi
1884 done
1885
1886 if test -r "$cache_file"; then
1887   # Some versions of bash will fail to source /dev/null (special
1888   # files actually), so we avoid doing that.
1889   if test -f "$cache_file"; then
1890     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1892     case $cache_file in
1893       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894       *)                      . "./$cache_file";;
1895     esac
1896   fi
1897 else
1898   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1900   >$cache_file
1901 fi
1902
1903 # Check that the precious variables saved in the cache have kept the same
1904 # value.
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908   eval ac_new_set=\$ac_env_${ac_var}_set
1909   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910   eval ac_new_val=\$ac_env_${ac_var}_value
1911   case $ac_old_set,$ac_new_set in
1912     set,)
1913       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915       ac_cache_corrupted=: ;;
1916     ,set)
1917       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919       ac_cache_corrupted=: ;;
1920     ,);;
1921     *)
1922       if test "x$ac_old_val" != "x$ac_new_val"; then
1923         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1926 echo "$as_me:   former value:  $ac_old_val" >&2;}
1927         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1928 echo "$as_me:   current value: $ac_new_val" >&2;}
1929         ac_cache_corrupted=:
1930       fi;;
1931   esac
1932   # Pass precious variables to config.status.
1933   if test "$ac_new_set" = set; then
1934     case $ac_new_val in
1935     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936     *) ac_arg=$ac_var=$ac_new_val ;;
1937     esac
1938     case " $ac_configure_args " in
1939       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1940       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941     esac
1942   fi
1943 done
1944 if $ac_cache_corrupted; then
1945   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968 ac_ext=c
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973
1974
1975 BUILD_DIR=`pwd`
1976 cd ..
1977 TOP_DIR=`pwd`
1978 cd ${BUILD_DIR}
1979
1980
1981 ac_aux_dir=
1982 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1983   if test -f "$ac_dir/install-sh"; then
1984     ac_aux_dir=$ac_dir
1985     ac_install_sh="$ac_aux_dir/install-sh -c"
1986     break
1987   elif test -f "$ac_dir/install.sh"; then
1988     ac_aux_dir=$ac_dir
1989     ac_install_sh="$ac_aux_dir/install.sh -c"
1990     break
1991   elif test -f "$ac_dir/shtool"; then
1992     ac_aux_dir=$ac_dir
1993     ac_install_sh="$ac_aux_dir/shtool install -c"
1994     break
1995   fi
1996 done
1997 if test -z "$ac_aux_dir"; then
1998   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1999 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2000    { (exit 1); exit 1; }; }
2001 fi
2002
2003 # These three variables are undocumented and unsupported,
2004 # and are intended to be withdrawn in a future Autoconf release.
2005 # They can cause serious problems if a builder's source tree is in a directory
2006 # whose full name contains unusual characters.
2007 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2008 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2009 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2010
2011
2012 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2013
2014
2015
2016
2017
2018 for ac_prog in true
2019 do
2020   # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   case $TRUEPRG in
2028   [\\/]* | ?:[\\/]*)
2029   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2030   ;;
2031   *)
2032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047   ;;
2048 esac
2049 fi
2050 TRUEPRG=$ac_cv_path_TRUEPRG
2051 if test -n "$TRUEPRG"; then
2052   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2053 echo "${ECHO_T}$TRUEPRG" >&6; }
2054 else
2055   { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060   test -n "$TRUEPRG" && break
2061 done
2062 test -n "$TRUEPRG" || TRUEPRG=":"
2063
2064 for ac_prog in false
2065 do
2066   # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   case $FALSEPRG in
2074   [\\/]* | ?:[\\/]*)
2075   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2076   ;;
2077   *)
2078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093   ;;
2094 esac
2095 fi
2096 FALSEPRG=$ac_cv_path_FALSEPRG
2097 if test -n "$FALSEPRG"; then
2098   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2099 echo "${ECHO_T}$FALSEPRG" >&6; }
2100 else
2101   { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2103 fi
2104
2105
2106   test -n "$FALSEPRG" && break
2107 done
2108 test -n "$FALSEPRG" || FALSEPRG=":"
2109
2110
2111
2112 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2113 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2114 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2115 echo "configuring for bacula $VERSION ($DATE)"
2116
2117
2118
2119 ac_ext=c
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 if test -n "$ac_tool_prefix"; then
2125   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140   for ac_exec_ext in '' $ac_executable_extensions; do
2141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162 fi
2163 if test -z "$ac_cv_prog_CC"; then
2164   ac_ct_CC=$CC
2165   # Extract the first word of "gcc", so it can be a program name with args.
2166 set dummy gcc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$ac_ct_CC"; then
2173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_ac_ct_CC="gcc"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193 if test -n "$ac_ct_CC"; then
2194   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195 echo "${ECHO_T}$ac_ct_CC" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201   if test "x$ac_ct_CC" = x; then
2202     CC=""
2203   else
2204     case $cross_compiling:$ac_tool_warned in
2205 yes:)
2206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2207 whose name does not start with the host triplet.  If you think this
2208 configuration is useful to you, please write to autoconf@gnu.org." >&5
2209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2210 whose name does not start with the host triplet.  If you think this
2211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2212 ac_tool_warned=yes ;;
2213 esac
2214     CC=$ac_ct_CC
2215   fi
2216 else
2217   CC="$ac_cv_prog_CC"
2218 fi
2219
2220 if test -z "$CC"; then
2221           if test -n "$ac_tool_prefix"; then
2222     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2223 set dummy ${ac_tool_prefix}cc; ac_word=$2
2224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2226 if test "${ac_cv_prog_CC+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test -n "$CC"; then
2230   ac_cv_prog_CC="$CC" # Let the user override the test.
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235   IFS=$as_save_IFS
2236   test -z "$as_dir" && as_dir=.
2237   for ac_exec_ext in '' $ac_executable_extensions; do
2238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2239     ac_cv_prog_CC="${ac_tool_prefix}cc"
2240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241     break 2
2242   fi
2243 done
2244 done
2245 IFS=$as_save_IFS
2246
2247 fi
2248 fi
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251   { echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6; }
2253 else
2254   { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2256 fi
2257
2258
2259   fi
2260 fi
2261 if test -z "$CC"; then
2262   # Extract the first word of "cc", so it can be a program name with args.
2263 set dummy cc; ac_word=$2
2264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$CC"; then
2270   ac_cv_prog_CC="$CC" # Let the user override the test.
2271 else
2272   ac_prog_rejected=no
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278   for ac_exec_ext in '' $ac_executable_extensions; do
2279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281        ac_prog_rejected=yes
2282        continue
2283      fi
2284     ac_cv_prog_CC="cc"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 if test $ac_prog_rejected = yes; then
2293   # We found a bogon in the path, so make sure we never use it.
2294   set dummy $ac_cv_prog_CC
2295   shift
2296   if test $# != 0; then
2297     # We chose a different compiler from the bogus one.
2298     # However, it has the same basename, so the bogon will be chosen
2299     # first if we set CC to just the basename; use the full file name.
2300     shift
2301     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2302   fi
2303 fi
2304 fi
2305 fi
2306 CC=$ac_cv_prog_CC
2307 if test -n "$CC"; then
2308   { echo "$as_me:$LINENO: result: $CC" >&5
2309 echo "${ECHO_T}$CC" >&6; }
2310 else
2311   { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2313 fi
2314
2315
2316 fi
2317 if test -z "$CC"; then
2318   if test -n "$ac_tool_prefix"; then
2319   for ac_prog in cl.exe
2320   do
2321     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   if test -n "$CC"; then
2329   ac_cv_prog_CC="$CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343 done
2344 IFS=$as_save_IFS
2345
2346 fi
2347 fi
2348 CC=$ac_cv_prog_CC
2349 if test -n "$CC"; then
2350   { echo "$as_me:$LINENO: result: $CC" >&5
2351 echo "${ECHO_T}$CC" >&6; }
2352 else
2353   { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2355 fi
2356
2357
2358     test -n "$CC" && break
2359   done
2360 fi
2361 if test -z "$CC"; then
2362   ac_ct_CC=$CC
2363   for ac_prog in cl.exe
2364 do
2365   # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$ac_ct_CC"; then
2373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382     ac_cv_prog_ac_ct_CC="$ac_prog"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2393 if test -n "$ac_ct_CC"; then
2394   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2395 echo "${ECHO_T}$ac_ct_CC" >&6; }
2396 else
2397   { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2399 fi
2400
2401
2402   test -n "$ac_ct_CC" && break
2403 done
2404
2405   if test "x$ac_ct_CC" = x; then
2406     CC=""
2407   else
2408     case $cross_compiling:$ac_tool_warned in
2409 yes:)
2410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet.  If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&5
2413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet.  If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418     CC=$ac_ct_CC
2419   fi
2420 fi
2421
2422 fi
2423
2424
2425 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: no acceptable C compiler found in \$PATH
2428 See \`config.log' for more details." >&2;}
2429    { (exit 1); exit 1; }; }
2430
2431 # Provide some information about the compiler.
2432 echo "$as_me:$LINENO: checking for C compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (ac_try="$ac_compiler --version >&5"
2435 case "(($ac_try" in
2436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437   *) ac_try_echo=$ac_try;;
2438 esac
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440   (eval "$ac_compiler --version >&5") 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444 { (ac_try="$ac_compiler -v >&5"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_compiler -v >&5") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }
2454 { (ac_try="$ac_compiler -V >&5"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460   (eval "$ac_compiler -V >&5") 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }
2464
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 ac_clean_files_save=$ac_clean_files
2481 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2482 # Try to create an executable without -o first, disregard a.out.
2483 # It will help us diagnose broken compilers, and finding out an intuition
2484 # of exeext.
2485 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2486 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2487 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2488 #
2489 # List of possible output files, starting from the most likely.
2490 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2491 # only as a last resort.  b.out is created by i960 compilers.
2492 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2493 #
2494 # The IRIX 6 linker writes into existing files which may not be
2495 # executable, retaining their permissions.  Remove them first so a
2496 # subsequent execution test works.
2497 ac_rmfiles=
2498 for ac_file in $ac_files
2499 do
2500   case $ac_file in
2501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2502     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2503   esac
2504 done
2505 rm -f $ac_rmfiles
2506
2507 if { (ac_try="$ac_link_default"
2508 case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513   (eval "$ac_link_default") 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; then
2517   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2519 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2520 # so that the user can short-circuit this test for compilers unknown to
2521 # Autoconf.
2522 for ac_file in $ac_files ''
2523 do
2524   test -f "$ac_file" || continue
2525   case $ac_file in
2526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2527         ;;
2528     [ab].out )
2529         # We found the default executable, but exeext='' is most
2530         # certainly right.
2531         break;;
2532     *.* )
2533         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2534         then :; else
2535            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2536         fi
2537         # We set ac_cv_exeext here because the later test for it is not
2538         # safe: cross compilers may not add the suffix if given an `-o'
2539         # argument, so we may need to know it at that point already.
2540         # Even if this section looks crufty: it has the advantage of
2541         # actually working.
2542         break;;
2543     * )
2544         break;;
2545   esac
2546 done
2547 test "$ac_cv_exeext" = no && ac_cv_exeext=
2548
2549 else
2550   ac_file=''
2551 fi
2552
2553 { echo "$as_me:$LINENO: result: $ac_file" >&5
2554 echo "${ECHO_T}$ac_file" >&6; }
2555 if test -z "$ac_file"; then
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563    { (exit 77); exit 77; }; }
2564 fi
2565
2566 ac_exeext=$ac_cv_exeext
2567
2568 # Check that the compiler produces executables we can run.  If not, either
2569 # the compiler is broken, or we cross compile.
2570 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2571 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2573 # If not cross compiling, check that we can run a simple program.
2574 if test "$cross_compiling" != yes; then
2575   if { ac_try='./$ac_file'
2576   { (case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_try") 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585     cross_compiling=no
2586   else
2587     if test "$cross_compiling" = maybe; then
2588         cross_compiling=yes
2589     else
2590         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot run C compiled programs.
2594 If you meant to cross compile, use \`--host'.
2595 See \`config.log' for more details." >&2;}
2596    { (exit 1); exit 1; }; }
2597     fi
2598   fi
2599 fi
2600 { echo "$as_me:$LINENO: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6; }
2602
2603 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 ac_clean_files=$ac_clean_files_save
2605 # Check that the compiler produces executables we can run.  If not, either
2606 # the compiler is broken, or we cross compile.
2607 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2609 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 echo "${ECHO_T}$cross_compiling" >&6; }
2611
2612 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2614 if { (ac_try="$ac_link"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620   (eval "$ac_link") 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; then
2624   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2627 # `rm'.
2628 for ac_file in conftest.exe conftest conftest.*; do
2629   test -f "$ac_file" || continue
2630   case $ac_file in
2631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2632     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633           break;;
2634     * ) break;;
2635   esac
2636 done
2637 else
2638   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2641 See \`config.log' for more details." >&2;}
2642    { (exit 1); exit 1; }; }
2643 fi
2644
2645 rm -f conftest$ac_cv_exeext
2646 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2647 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2648
2649 rm -f conftest.$ac_ext
2650 EXEEXT=$ac_cv_exeext
2651 ac_exeext=$EXEEXT
2652 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2653 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2654 if test "${ac_cv_objext+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663
2664 int
2665 main ()
2666 {
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.o conftest.obj
2673 if { (ac_try="$ac_compile"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679   (eval "$ac_compile") 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; then
2683   for ac_file in conftest.o conftest.obj conftest.*; do
2684   test -f "$ac_file" || continue;
2685   case $ac_file in
2686     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2687     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2688        break;;
2689   esac
2690 done
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2698 See \`config.log' for more details." >&2;}
2699    { (exit 1); exit 1; }; }
2700 fi
2701
2702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2703 fi
2704 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2705 echo "${ECHO_T}$ac_cv_objext" >&6; }
2706 OBJEXT=$ac_cv_objext
2707 ac_objext=$OBJEXT
2708 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2711   echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713   cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719
2720 int
2721 main ()
2722 {
2723 #ifndef __GNUC__
2724        choke me
2725 #endif
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } && {
2745          test -z "$ac_c_werror_flag" ||
2746          test ! -s conftest.err
2747        } && test -s conftest.$ac_objext; then
2748   ac_compiler_gnu=yes
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753         ac_compiler_gnu=no
2754 fi
2755
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2758
2759 fi
2760 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2762 GCC=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CFLAGS=${CFLAGS+set}
2764 ac_save_CFLAGS=$CFLAGS
2765 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2766 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_cc_g+set}" = set; then
2768   echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770   ac_save_c_werror_flag=$ac_c_werror_flag
2771    ac_c_werror_flag=yes
2772    ac_cv_prog_cc_g=no
2773    CFLAGS="-g"
2774    cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780
2781 int
2782 main ()
2783 {
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (ac_try="$ac_compile"
2791 case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796   (eval "$ac_compile") 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } && {
2803          test -z "$ac_c_werror_flag" ||
2804          test ! -s conftest.err
2805        } && test -s conftest.$ac_objext; then
2806   ac_cv_prog_cc_g=yes
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811         CFLAGS=""
2812       cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818
2819 int
2820 main ()
2821 {
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_compile") 2>conftest.er1
2835   ac_status=$?
2836   grep -v '^ *+' conftest.er1 >conftest.err
2837   rm -f conftest.er1
2838   cat conftest.err >&5
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } && {
2841          test -z "$ac_c_werror_flag" ||
2842          test ! -s conftest.err
2843        } && test -s conftest.$ac_objext; then
2844   :
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849         ac_c_werror_flag=$ac_save_c_werror_flag
2850          CFLAGS="-g"
2851          cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h.  */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h.  */
2857
2858 int
2859 main ()
2860 {
2861
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (ac_try="$ac_compile"
2868 case "(($ac_try" in
2869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870   *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873   (eval "$ac_compile") 2>conftest.er1
2874   ac_status=$?
2875   grep -v '^ *+' conftest.er1 >conftest.err
2876   rm -f conftest.er1
2877   cat conftest.err >&5
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); } && {
2880          test -z "$ac_c_werror_flag" ||
2881          test ! -s conftest.err
2882        } && test -s conftest.$ac_objext; then
2883   ac_cv_prog_cc_g=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888
2889 fi
2890
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 fi
2893
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 fi
2896
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898    ac_c_werror_flag=$ac_save_c_werror_flag
2899 fi
2900 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2902 if test "$ac_test_CFLAGS" = set; then
2903   CFLAGS=$ac_save_CFLAGS
2904 elif test $ac_cv_prog_cc_g = yes; then
2905   if test "$GCC" = yes; then
2906     CFLAGS="-g -O2"
2907   else
2908     CFLAGS="-g"
2909   fi
2910 else
2911   if test "$GCC" = yes; then
2912     CFLAGS="-O2"
2913   else
2914     CFLAGS=
2915   fi
2916 fi
2917 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2918 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_cc_c89+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   ac_cv_prog_cc_c89=no
2923 ac_save_CC=$CC
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 #include <stdarg.h>
2931 #include <stdio.h>
2932 #include <sys/types.h>
2933 #include <sys/stat.h>
2934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2935 struct buf { int x; };
2936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2937 static char *e (p, i)
2938      char **p;
2939      int i;
2940 {
2941   return p[i];
2942 }
2943 static char *f (char * (*g) (char **, int), char **p, ...)
2944 {
2945   char *s;
2946   va_list v;
2947   va_start (v,p);
2948   s = g (p, va_arg (v,int));
2949   va_end (v);
2950   return s;
2951 }
2952
2953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2954    function prototypes and stuff, but not '\xHH' hex character constants.
2955    These don't provoke an error unfortunately, instead are silently treated
2956    as 'x'.  The following induces an error, until -std is added to get
2957    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2958    array size at least.  It's necessary to write '\x00'==0 to get something
2959    that's true only with -std.  */
2960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2961
2962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2963    inside strings and character constants.  */
2964 #define FOO(x) 'x'
2965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2966
2967 int test (int i, double x);
2968 struct s1 {int (*f) (int a);};
2969 struct s2 {int (*f) (double a);};
2970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2971 int argc;
2972 char **argv;
2973 int
2974 main ()
2975 {
2976 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2982         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2983 do
2984   CC="$ac_save_CC $ac_arg"
2985   rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } && {
2999          test -z "$ac_c_werror_flag" ||
3000          test ! -s conftest.err
3001        } && test -s conftest.$ac_objext; then
3002   ac_cv_prog_cc_c89=$ac_arg
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext
3011   test "x$ac_cv_prog_cc_c89" != "xno" && break
3012 done
3013 rm -f conftest.$ac_ext
3014 CC=$ac_save_CC
3015
3016 fi
3017 # AC_CACHE_VAL
3018 case "x$ac_cv_prog_cc_c89" in
3019   x)
3020     { echo "$as_me:$LINENO: result: none needed" >&5
3021 echo "${ECHO_T}none needed" >&6; } ;;
3022   xno)
3023     { echo "$as_me:$LINENO: result: unsupported" >&5
3024 echo "${ECHO_T}unsupported" >&6; } ;;
3025   *)
3026     CC="$CC $ac_cv_prog_cc_c89"
3027     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3028 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3029 esac
3030
3031
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038 ac_ext=cpp
3039 ac_cpp='$CXXCPP $CPPFLAGS'
3040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3043 if test -z "$CXX"; then
3044   if test -n "$CCC"; then
3045     CXX=$CCC
3046   else
3047     if test -n "$ac_tool_prefix"; then
3048   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3049   do
3050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3054 if test "${ac_cv_prog_CXX+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057   if test -n "$CXX"; then
3058   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065   for ac_exec_ext in '' $ac_executable_extensions; do
3066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072 done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 CXX=$ac_cv_prog_CXX
3078 if test -n "$CXX"; then
3079   { echo "$as_me:$LINENO: result: $CXX" >&5
3080 echo "${ECHO_T}$CXX" >&6; }
3081 else
3082   { echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6; }
3084 fi
3085
3086
3087     test -n "$CXX" && break
3088   done
3089 fi
3090 if test -z "$CXX"; then
3091   ac_ct_CXX=$CXX
3092   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3093 do
3094   # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3098 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   if test -n "$ac_ct_CXX"; then
3102   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109   for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     ac_cv_prog_ac_ct_CXX="$ac_prog"
3112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3122 if test -n "$ac_ct_CXX"; then
3123   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3124 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3125 else
3126   { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3128 fi
3129
3130
3131   test -n "$ac_ct_CXX" && break
3132 done
3133
3134   if test "x$ac_ct_CXX" = x; then
3135     CXX="g++"
3136   else
3137     case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3140 whose name does not start with the host triplet.  If you think this
3141 configuration is useful to you, please write to autoconf@gnu.org." >&5
3142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3143 whose name does not start with the host triplet.  If you think this
3144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147     CXX=$ac_ct_CXX
3148   fi
3149 fi
3150
3151   fi
3152 fi
3153 # Provide some information about the compiler.
3154 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3155 ac_compiler=`set X $ac_compile; echo $2`
3156 { (ac_try="$ac_compiler --version >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compiler --version >&5") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }
3166 { (ac_try="$ac_compiler -v >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler -v >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compiler -V >&5") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }
3186
3187 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3188 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3189 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202 #ifndef __GNUC__
3203        choke me
3204 #endif
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_compile") 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } && {
3224          test -z "$ac_cxx_werror_flag" ||
3225          test ! -s conftest.err
3226        } && test -s conftest.$ac_objext; then
3227   ac_compiler_gnu=yes
3228 else
3229   echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232         ac_compiler_gnu=no
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3237
3238 fi
3239 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3240 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3241 GXX=`test $ac_compiler_gnu = yes && echo yes`
3242 ac_test_CXXFLAGS=${CXXFLAGS+set}
3243 ac_save_CXXFLAGS=$CXXFLAGS
3244 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3245 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_cxx_g+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3250    ac_cxx_werror_flag=yes
3251    ac_cv_prog_cxx_g=no
3252    CXXFLAGS="-g"
3253    cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_compile") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } && {
3282          test -z "$ac_cxx_werror_flag" ||
3283          test ! -s conftest.err
3284        } && test -s conftest.$ac_objext; then
3285   ac_cv_prog_cxx_g=yes
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290         CXXFLAGS=""
3291       cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297
3298 int
3299 main ()
3300 {
3301
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313   (eval "$ac_compile") 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } && {
3320          test -z "$ac_cxx_werror_flag" ||
3321          test ! -s conftest.err
3322        } && test -s conftest.$ac_objext; then
3323   :
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3329          CXXFLAGS="-g"
3330          cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_compile") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } && {
3359          test -z "$ac_cxx_werror_flag" ||
3360          test ! -s conftest.err
3361        } && test -s conftest.$ac_objext; then
3362   ac_cv_prog_cxx_g=yes
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 fi
3372
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 fi
3375
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3378 fi
3379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3381 if test "$ac_test_CXXFLAGS" = set; then
3382   CXXFLAGS=$ac_save_CXXFLAGS
3383 elif test $ac_cv_prog_cxx_g = yes; then
3384   if test "$GXX" = yes; then
3385     CXXFLAGS="-g -O2"
3386   else
3387     CXXFLAGS="-g"
3388   fi
3389 else
3390   if test "$GXX" = yes; then
3391     CXXFLAGS="-O2"
3392   else
3393     CXXFLAGS=
3394   fi
3395 fi
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402 if test "x$CC" != xcc; then
3403   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3404 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3405 else
3406   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3407 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3408 fi
3409 set dummy $CC; ac_cc=`echo $2 |
3410                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3411 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420
3421 int
3422 main ()
3423 {
3424
3425   ;
3426   return 0;
3427 }
3428 _ACEOF
3429 # Make sure it works both with $CC and with simple cc.
3430 # We do the test twice because some compilers refuse to overwrite an
3431 # existing .o file with -o, though they will create one.
3432 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3433 rm -f conftest2.*
3434 if { (case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_try") 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } &&
3443    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_try") 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); };
3452 then
3453   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3454   if test "x$CC" != xcc; then
3455     # Test first that cc exists at all.
3456     if { ac_try='cc -c conftest.$ac_ext >&5'
3457   { (case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462   (eval "$ac_try") 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); }; }; then
3466       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3467       rm -f conftest2.*
3468       if { (case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473   (eval "$ac_try") 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } &&
3477          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_try") 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); };
3486       then
3487         # cc works too.
3488         :
3489       else
3490         # cc exists but doesn't like -o.
3491         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3492       fi
3493     fi
3494   fi
3495 else
3496   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3497 fi
3498 rm -f core conftest*
3499
3500 fi
3501 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3502   { echo "$as_me:$LINENO: result: yes" >&5
3503 echo "${ECHO_T}yes" >&6; }
3504 else
3505   { echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6; }
3507
3508 cat >>confdefs.h <<\_ACEOF
3509 #define NO_MINUS_C_MINUS_O 1
3510 _ACEOF
3511
3512 fi
3513
3514 ac_ext=c
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3520 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3521 # On Suns, sometimes $CPP names a directory.
3522 if test -n "$CPP" && test -d "$CPP"; then
3523   CPP=
3524 fi
3525 if test -z "$CPP"; then
3526   if test "${ac_cv_prog_CPP+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529       # Double quotes because CPP needs to be expanded
3530     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3531     do
3532       ac_preproc_ok=false
3533 for ac_c_preproc_warn_flag in '' yes
3534 do
3535   # Use a header file that comes with gcc, so configuring glibc
3536   # with a fresh cross-compiler works.
3537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538   # <limits.h> exists even on freestanding compilers.
3539   # On the NeXT, cc -E runs the code through the compiler's parser,
3540   # not just through cpp. "Syntax error" is here to catch this case.
3541   cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 #ifdef __STDC__
3548 # include <limits.h>
3549 #else
3550 # include <assert.h>
3551 #endif
3552                      Syntax error
3553 _ACEOF
3554 if { (ac_try="$ac_cpp conftest.$ac_ext"
3555 case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3561   ac_status=$?
3562   grep -v '^ *+' conftest.er1 >conftest.err
3563   rm -f conftest.er1
3564   cat conftest.err >&5
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); } >/dev/null && {
3567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3568          test ! -s conftest.err
3569        }; then
3570   :
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575   # Broken: fails on valid input.
3576 continue
3577 fi
3578
3579 rm -f conftest.err conftest.$ac_ext
3580
3581   # OK, works on sane cases.  Now check whether nonexistent headers
3582   # can be detected and how.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } >/dev/null && {
3604          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3605          test ! -s conftest.err
3606        }; then
3607   # Broken: success on invalid input.
3608 continue
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613   # Passes both tests.
3614 ac_preproc_ok=:
3615 break
3616 fi
3617
3618 rm -f conftest.err conftest.$ac_ext
3619
3620 done
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3624   break
3625 fi
3626
3627     done
3628     ac_cv_prog_CPP=$CPP
3629
3630 fi
3631   CPP=$ac_cv_prog_CPP
3632 else
3633   ac_cv_prog_CPP=$CPP
3634 fi
3635 { echo "$as_me:$LINENO: result: $CPP" >&5
3636 echo "${ECHO_T}$CPP" >&6; }
3637 ac_preproc_ok=false
3638 for ac_c_preproc_warn_flag in '' yes
3639 do
3640   # Use a header file that comes with gcc, so configuring glibc
3641   # with a fresh cross-compiler works.
3642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643   # <limits.h> exists even on freestanding compilers.
3644   # On the NeXT, cc -E runs the code through the compiler's parser,
3645   # not just through cpp. "Syntax error" is here to catch this case.
3646   cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #ifdef __STDC__
3653 # include <limits.h>
3654 #else
3655 # include <assert.h>
3656 #endif
3657                      Syntax error
3658 _ACEOF
3659 if { (ac_try="$ac_cpp conftest.$ac_ext"
3660 case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } >/dev/null && {
3672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3673          test ! -s conftest.err
3674        }; then
3675   :
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680   # Broken: fails on valid input.
3681 continue
3682 fi
3683
3684 rm -f conftest.err conftest.$ac_ext
3685
3686   # OK, works on sane cases.  Now check whether nonexistent headers
3687   # can be detected and how.
3688   cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h.  */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h.  */
3694 #include <ac_nonexistent.h>
3695 _ACEOF
3696 if { (ac_try="$ac_cpp conftest.$ac_ext"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3703   ac_status=$?
3704   grep -v '^ *+' conftest.er1 >conftest.err
3705   rm -f conftest.er1
3706   cat conftest.err >&5
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } >/dev/null && {
3709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3710          test ! -s conftest.err
3711        }; then
3712   # Broken: success on invalid input.
3713 continue
3714 else
3715   echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718   # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722
3723 rm -f conftest.err conftest.$ac_ext
3724
3725 done
3726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727 rm -f conftest.err conftest.$ac_ext
3728 if $ac_preproc_ok; then
3729   :
3730 else
3731   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734 See \`config.log' for more details." >&2;}
3735    { (exit 1); exit 1; }; }
3736 fi
3737
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3746 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_GREP+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   # Extract the first word of "grep ggrep" to use in msg output
3751 if test -z "$GREP"; then
3752 set dummy grep ggrep; ac_prog_name=$2
3753 if test "${ac_cv_path_GREP+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   ac_path_GREP_found=false
3757 # Loop through the user's path and test for each of PROGNAME-LIST
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for ac_prog in grep ggrep; do
3764   for ac_exec_ext in '' $ac_executable_extensions; do
3765     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3766     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3767     # Check for GNU ac_path_GREP and select it if it is found.
3768   # Check for GNU $ac_path_GREP
3769 case `"$ac_path_GREP" --version 2>&1` in
3770 *GNU*)
3771   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3772 *)
3773   ac_count=0
3774   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775   while :
3776   do
3777     cat "conftest.in" "conftest.in" >"conftest.tmp"
3778     mv "conftest.tmp" "conftest.in"
3779     cp "conftest.in" "conftest.nl"
3780     echo 'GREP' >> "conftest.nl"
3781     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783     ac_count=`expr $ac_count + 1`
3784     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3785       # Best one so far, save it but keep looking for a better one
3786       ac_cv_path_GREP="$ac_path_GREP"
3787       ac_path_GREP_max=$ac_count
3788     fi
3789     # 10*(2^10) chars as input seems more than enough
3790     test $ac_count -gt 10 && break
3791   done
3792   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793 esac
3794
3795
3796     $ac_path_GREP_found && break 3
3797   done
3798 done
3799
3800 done
3801 IFS=$as_save_IFS
3802
3803
3804 fi
3805
3806 GREP="$ac_cv_path_GREP"
3807 if test -z "$GREP"; then
3808   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810    { (exit 1); exit 1; }; }
3811 fi
3812
3813 else
3814   ac_cv_path_GREP=$GREP
3815 fi
3816
3817
3818 fi
3819 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3820 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3821  GREP="$ac_cv_path_GREP"
3822
3823
3824 { echo "$as_me:$LINENO: checking for egrep" >&5
3825 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3826 if test "${ac_cv_path_EGREP+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3830    then ac_cv_path_EGREP="$GREP -E"
3831    else
3832      # Extract the first word of "egrep" to use in msg output
3833 if test -z "$EGREP"; then
3834 set dummy egrep; ac_prog_name=$2
3835 if test "${ac_cv_path_EGREP+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   ac_path_EGREP_found=false
3839 # Loop through the user's path and test for each of PROGNAME-LIST
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3842 do
3843   IFS=$as_save_IFS
3844   test -z "$as_dir" && as_dir=.
3845   for ac_prog in egrep; do
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3848     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3849     # Check for GNU ac_path_EGREP and select it if it is found.
3850   # Check for GNU $ac_path_EGREP
3851 case `"$ac_path_EGREP" --version 2>&1` in
3852 *GNU*)
3853   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3854 *)
3855   ac_count=0
3856   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3857   while :
3858   do
3859     cat "conftest.in" "conftest.in" >"conftest.tmp"
3860     mv "conftest.tmp" "conftest.in"
3861     cp "conftest.in" "conftest.nl"
3862     echo 'EGREP' >> "conftest.nl"
3863     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3864     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3865     ac_count=`expr $ac_count + 1`
3866     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3867       # Best one so far, save it but keep looking for a better one
3868       ac_cv_path_EGREP="$ac_path_EGREP"
3869       ac_path_EGREP_max=$ac_count
3870     fi
3871     # 10*(2^10) chars as input seems more than enough
3872     test $ac_count -gt 10 && break
3873   done
3874   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875 esac
3876
3877
3878     $ac_path_EGREP_found && break 3
3879   done
3880 done
3881
3882 done
3883 IFS=$as_save_IFS
3884
3885
3886 fi
3887
3888 EGREP="$ac_cv_path_EGREP"
3889 if test -z "$EGREP"; then
3890   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3891 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3892    { (exit 1); exit 1; }; }
3893 fi
3894
3895 else
3896   ac_cv_path_EGREP=$EGREP
3897 fi
3898
3899
3900    fi
3901 fi
3902 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3903 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3904  EGREP="$ac_cv_path_EGREP"
3905
3906
3907 if test $ac_cv_c_compiler_gnu = yes; then
3908     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3909 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3910 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913     ac_pattern="Autoconf.*'x'"
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <sgtty.h>
3921 Autoconf TIOCGETP
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3925   ac_cv_prog_gcc_traditional=yes
3926 else
3927   ac_cv_prog_gcc_traditional=no
3928 fi
3929 rm -f conftest*
3930
3931
3932   if test $ac_cv_prog_gcc_traditional = no; then
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 <termio.h>
3940 Autoconf TCGETA
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 fi
3946 rm -f conftest*
3947
3948   fi
3949 fi
3950 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3951 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3952   if test $ac_cv_prog_gcc_traditional = yes; then
3953     CC="$CC -traditional"
3954   fi
3955 fi
3956
3957 BASECC=`basename $CC`
3958 have_gcc=no
3959 if test "x$BASECC" = xgcc; then
3960    cat >>confdefs.h <<\_ACEOF
3961 #define HAVE_GCC 1
3962 _ACEOF
3963
3964    have_gcc=yes
3965 fi
3966 # Extract the first word of "$CXX", so it can be a program name with args.
3967 set dummy $CXX; ac_word=$2
3968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_CXX+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   case $CXX in
3974   [\\/]* | ?:[\\/]*)
3975   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3976   ;;
3977   *)
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991 IFS=$as_save_IFS
3992
3993   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3994   ;;
3995 esac
3996 fi
3997 CXX=$ac_cv_path_CXX
3998 if test -n "$CXX"; then
3999   { echo "$as_me:$LINENO: result: $CXX" >&5
4000 echo "${ECHO_T}$CXX" >&6; }
4001 else
4002   { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4004 fi
4005
4006
4007 if test ! -e $CXX; then
4008    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4009 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4010    { (exit 1); exit 1; }; }
4011 fi
4012
4013 # Find a good install program.  We prefer a C program (faster),
4014 # so one script is as good as another.  But avoid the broken or
4015 # incompatible versions:
4016 # SysV /etc/install, /usr/sbin/install
4017 # SunOS /usr/etc/install
4018 # IRIX /sbin/install
4019 # AIX /bin/install
4020 # AmigaOS /C/install, which installs bootblocks on floppy discs
4021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4024 # OS/2's system install, which has a completely different semantic
4025 # ./install, which can be erroneously created by make from ./install.sh.
4026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4028 if test -z "$INSTALL"; then
4029 if test "${ac_cv_path_install+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   # Account for people who put trailing slashes in PATH elements.
4038 case $as_dir/ in
4039   ./ | .// | /cC/* | \
4040   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4041   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4042   /usr/ucb/* ) ;;
4043   *)
4044     # OSF1 and SCO ODT 3.0 have their own names for install.
4045     # Don't use installbsd from OSF since it installs stuff as root
4046     # by default.
4047     for ac_prog in ginstall scoinst install; do
4048       for ac_exec_ext in '' $ac_executable_extensions; do
4049         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4050           if test $ac_prog = install &&
4051             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4052             # AIX install.  It has an incompatible calling convention.
4053             :
4054           elif test $ac_prog = install &&
4055             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4056             # program-specific install script used by HP pwplus--don't use.
4057             :
4058           else
4059             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4060             break 3
4061           fi
4062         fi
4063       done
4064     done
4065     ;;
4066 esac
4067 done
4068 IFS=$as_save_IFS
4069
4070
4071 fi
4072   if test "${ac_cv_path_install+set}" = set; then
4073     INSTALL=$ac_cv_path_install
4074   else
4075     # As a last resort, use the slow shell script.  Don't cache a
4076     # value for INSTALL within a source directory, because that will
4077     # break other packages using the cache if that directory is
4078     # removed, or if the value is a relative name.
4079     INSTALL=$ac_install_sh
4080   fi
4081 fi
4082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4083 echo "${ECHO_T}$INSTALL" >&6; }
4084
4085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4086 # It thinks the first close brace ends the variable substitution.
4087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4088
4089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4090
4091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4092
4093 if test -n "$ac_tool_prefix"; then
4094   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4098 if test "${ac_cv_prog_RANLIB+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   if test -n "$RANLIB"; then
4102   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109   for ac_exec_ext in '' $ac_executable_extensions; do
4110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 RANLIB=$ac_cv_prog_RANLIB
4122 if test -n "$RANLIB"; then
4123   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4124 echo "${ECHO_T}$RANLIB" >&6; }
4125 else
4126   { echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6; }
4128 fi
4129
4130
4131 fi
4132 if test -z "$ac_cv_prog_RANLIB"; then
4133   ac_ct_RANLIB=$RANLIB
4134   # Extract the first word of "ranlib", so it can be a program name with args.
4135 set dummy ranlib; ac_word=$2
4136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   if test -n "$ac_ct_RANLIB"; then
4142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149   for ac_exec_ext in '' $ac_executable_extensions; do
4150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151     ac_cv_prog_ac_ct_RANLIB="ranlib"
4152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4162 if test -n "$ac_ct_RANLIB"; then
4163   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4165 else
4166   { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4168 fi
4169
4170   if test "x$ac_ct_RANLIB" = x; then
4171     RANLIB=":"
4172   else
4173     case $cross_compiling:$ac_tool_warned in
4174 yes:)
4175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4176 whose name does not start with the host triplet.  If you think this
4177 configuration is useful to you, please write to autoconf@gnu.org." >&5
4178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4179 whose name does not start with the host triplet.  If you think this
4180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4181 ac_tool_warned=yes ;;
4182 esac
4183     RANLIB=$ac_ct_RANLIB
4184   fi
4185 else
4186   RANLIB="$ac_cv_prog_RANLIB"
4187 fi
4188
4189 # Extract the first word of "mv", so it can be a program name with args.
4190 set dummy mv; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_path_MV+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196   case $MV in
4197   [\\/]* | ?:[\\/]*)
4198   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4199   ;;
4200   *)
4201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206   for ac_exec_ext in '' $ac_executable_extensions; do
4207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4217   ;;
4218 esac
4219 fi
4220 MV=$ac_cv_path_MV
4221 if test -n "$MV"; then
4222   { echo "$as_me:$LINENO: result: $MV" >&5
4223 echo "${ECHO_T}$MV" >&6; }
4224 else
4225   { echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6; }
4227 fi
4228
4229
4230 # Extract the first word of "rm", so it can be a program name with args.
4231 set dummy rm; ac_word=$2
4232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4234 if test "${ac_cv_path_RM+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   case $RM in
4238   [\\/]* | ?:[\\/]*)
4239   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4240   ;;
4241   *)
4242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_exec_ext in '' $ac_executable_extensions; do
4248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4258   ;;
4259 esac
4260 fi
4261 RM=$ac_cv_path_RM
4262 if test -n "$RM"; then
4263   { echo "$as_me:$LINENO: result: $RM" >&5
4264 echo "${ECHO_T}$RM" >&6; }
4265 else
4266   { echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6; }
4268 fi
4269
4270
4271 # Extract the first word of "cp", so it can be a program name with args.
4272 set dummy cp; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_path_CP+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   case $CP in
4279   [\\/]* | ?:[\\/]*)
4280   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4281   ;;
4282   *)
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295 done
4296 IFS=$as_save_IFS
4297
4298   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4299   ;;
4300 esac
4301 fi
4302 CP=$ac_cv_path_CP
4303 if test -n "$CP"; then
4304   { echo "$as_me:$LINENO: result: $CP" >&5
4305 echo "${ECHO_T}$CP" >&6; }
4306 else
4307   { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4309 fi
4310
4311
4312 # Extract the first word of "sed", so it can be a program name with args.
4313 set dummy sed; ac_word=$2
4314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4316 if test "${ac_cv_path_SED+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   case $SED in
4320   [\\/]* | ?:[\\/]*)
4321   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4322   ;;
4323   *)
4324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_exec_ext in '' $ac_executable_extensions; do
4330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4340   ;;
4341 esac
4342 fi
4343 SED=$ac_cv_path_SED
4344 if test -n "$SED"; then
4345   { echo "$as_me:$LINENO: result: $SED" >&5
4346 echo "${ECHO_T}$SED" >&6; }
4347 else
4348   { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4350 fi
4351
4352
4353 # Extract the first word of "echo", so it can be a program name with args.
4354 set dummy echo; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_ECHO+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   case $ECHO in
4361   [\\/]* | ?:[\\/]*)
4362   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4363   ;;
4364   *)
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4381   ;;
4382 esac
4383 fi
4384 ECHO=$ac_cv_path_ECHO
4385 if test -n "$ECHO"; then
4386   { echo "$as_me:$LINENO: result: $ECHO" >&5
4387 echo "${ECHO_T}$ECHO" >&6; }
4388 else
4389   { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4391 fi
4392
4393
4394 # Extract the first word of "cmp", so it can be a program name with args.
4395 set dummy cmp; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_CMP+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   case $CMP in
4402   [\\/]* | ?:[\\/]*)
4403   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4404   ;;
4405   *)
4406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4422   ;;
4423 esac
4424 fi
4425 CMP=$ac_cv_path_CMP
4426 if test -n "$CMP"; then
4427   { echo "$as_me:$LINENO: result: $CMP" >&5
4428 echo "${ECHO_T}$CMP" >&6; }
4429 else
4430   { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4432 fi
4433
4434
4435 # Extract the first word of "tbl", so it can be a program name with args.
4436 set dummy tbl; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_path_TBL+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   case $TBL in
4443   [\\/]* | ?:[\\/]*)
4444   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4445   ;;
4446   *)
4447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452   for ac_exec_ext in '' $ac_executable_extensions; do
4453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456     break 2
4457   fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4463   ;;
4464 esac
4465 fi
4466 TBL=$ac_cv_path_TBL
4467 if test -n "$TBL"; then
4468   { echo "$as_me:$LINENO: result: $TBL" >&5
4469 echo "${ECHO_T}$TBL" >&6; }
4470 else
4471   { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4473 fi
4474
4475
4476 # Extract the first word of "ar", so it can be a program name with args.
4477 set dummy ar; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_path_AR+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   case $AR in
4484   [\\/]* | ?:[\\/]*)
4485   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4486   ;;
4487   *)
4488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4504   ;;
4505 esac
4506 fi
4507 AR=$ac_cv_path_AR
4508 if test -n "$AR"; then
4509   { echo "$as_me:$LINENO: result: $AR" >&5
4510 echo "${ECHO_T}$AR" >&6; }
4511 else
4512   { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 fi
4515
4516
4517 # Extract the first word of "openssl", so it can be a program name with args.
4518 set dummy openssl; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_OPENSSL+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   case $OPENSSL in
4525   [\\/]* | ?:[\\/]*)
4526   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4527   ;;
4528   *)
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4545   ;;
4546 esac
4547 fi
4548 OPENSSL=$ac_cv_path_OPENSSL
4549 if test -n "$OPENSSL"; then
4550   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4551 echo "${ECHO_T}$OPENSSL" >&6; }
4552 else
4553   { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556
4557
4558 # Extract the first word of "mtx", so it can be a program name with args.
4559 set dummy mtx; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_MTX+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   case $MTX in
4566   [\\/]* | ?:[\\/]*)
4567   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4568   ;;
4569   *)
4570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575   for ac_exec_ext in '' $ac_executable_extensions; do
4576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4586   ;;
4587 esac
4588 fi
4589 MTX=$ac_cv_path_MTX
4590 if test -n "$MTX"; then
4591   { echo "$as_me:$LINENO: result: $MTX" >&5
4592 echo "${ECHO_T}$MTX" >&6; }
4593 else
4594   { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4597
4598
4599 # Extract the first word of "dd", so it can be a program name with args.
4600 set dummy dd; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_path_DD+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   case $DD in
4607   [\\/]* | ?:[\\/]*)
4608   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4609   ;;
4610   *)
4611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4627   ;;
4628 esac
4629 fi
4630 DD=$ac_cv_path_DD
4631 if test -n "$DD"; then
4632   { echo "$as_me:$LINENO: result: $DD" >&5
4633 echo "${ECHO_T}$DD" >&6; }
4634 else
4635   { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640 # Extract the first word of "mkisofs", so it can be a program name with args.
4641 set dummy mkisofs; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_path_MKISOFS+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   case $MKISOFS in
4648   [\\/]* | ?:[\\/]*)
4649   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4650   ;;
4651   *)
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4668   ;;
4669 esac
4670 fi
4671 MKISOFS=$ac_cv_path_MKISOFS
4672 if test -n "$MKISOFS"; then
4673   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4674 echo "${ECHO_T}$MKISOFS" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681 # Extract the first word of "python", so it can be a program name with args.
4682 set dummy python; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_path_PYTHON+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   case $PYTHON in
4689   [\\/]* | ?:[\\/]*)
4690   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4691   ;;
4692   *)
4693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698   for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4709   ;;
4710 esac
4711 fi
4712 PYTHON=$ac_cv_path_PYTHON
4713 if test -n "$PYTHON"; then
4714   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4715 echo "${ECHO_T}$PYTHON" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722 # Extract the first word of "growisofs", so it can be a program name with args.
4723 set dummy growisofs; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   case $GROWISOFS in
4730   [\\/]* | ?:[\\/]*)
4731   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4732   ;;
4733   *)
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739   for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4750   ;;
4751 esac
4752 fi
4753 GROWISOFS=$ac_cv_path_GROWISOFS
4754 if test -n "$GROWISOFS"; then
4755   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4756 echo "${ECHO_T}$GROWISOFS" >&6; }
4757 else
4758   { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4760 fi
4761
4762
4763 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4764 set dummy dvd+rw-mediainfo; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   case $DVDRWMEDIAINFO in
4771   [\\/]* | ?:[\\/]*)
4772   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4773   ;;
4774   *)
4775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780   for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4791   ;;
4792 esac
4793 fi
4794 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4795 if test -n "$DVDRWMEDIAINFO"; then
4796   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4797 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4798 else
4799   { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 fi
4802
4803
4804 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4805 set dummy dvd+rw-format; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   case $DVDRWFORMAT in
4812   [\\/]* | ?:[\\/]*)
4813   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4814   ;;
4815   *)
4816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4832   ;;
4833 esac
4834 fi
4835 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4836 if test -n "$DVDRWFORMAT"; then
4837   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4838 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4839 else
4840   { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4842 fi
4843
4844
4845 # Extract the first word of "pkg-config", so it can be a program name with args.
4846 set dummy pkg-config; ac_word=$2
4847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   case $PKGCONFIG in
4853   [\\/]* | ?:[\\/]*)
4854   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4855   ;;
4856   *)
4857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4873   ;;
4874 esac
4875 fi
4876 PKGCONFIG=$ac_cv_path_PKGCONFIG
4877 if test -n "$PKGCONFIG"; then
4878   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4879 echo "${ECHO_T}$PKGCONFIG" >&6; }
4880 else
4881   { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4883 fi
4884
4885
4886 # Extract the first word of "qmake", so it can be a program name with args.
4887 set dummy qmake; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_path_QMAKE+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   case $QMAKE in
4894   [\\/]* | ?:[\\/]*)
4895   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4896   ;;
4897   *)
4898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903   for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4914   ;;
4915 esac
4916 fi
4917 QMAKE=$ac_cv_path_QMAKE
4918 if test -n "$QMAKE"; then
4919   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4920 echo "${ECHO_T}$QMAKE" >&6; }
4921 else
4922   { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4924 fi
4925
4926
4927 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4928 set dummy qmake-qt4; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   case $QMAKEQT4 in
4935   [\\/]* | ?:[\\/]*)
4936   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4937   ;;
4938   *)
4939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4955   ;;
4956 esac
4957 fi
4958 QMAKEQT4=$ac_cv_path_QMAKEQT4
4959 if test -n "$QMAKEQT4"; then
4960   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4961 echo "${ECHO_T}$QMAKEQT4" >&6; }
4962 else
4963   { echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6; }
4965 fi
4966
4967
4968
4969 if test "x$WXCONFIG" = x; then
4970   WXCONFIG=wx-config
4971 fi
4972 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4973 set dummy ${WXCONFIG}; ac_word=$2
4974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4976 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   case $WXCONFIG in
4980   [\\/]* | ?:[\\/]*)
4981   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4982   ;;
4983   *)
4984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989   for ac_exec_ext in '' $ac_executable_extensions; do
4990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5000   ;;
5001 esac
5002 fi
5003 WXCONFIG=$ac_cv_path_WXCONFIG
5004 if test -n "$WXCONFIG"; then
5005   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5006 echo "${ECHO_T}$WXCONFIG" >&6; }
5007 else
5008   { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5010 fi
5011
5012
5013
5014 # Extract the first word of "cdrecord", so it can be a program name with args.
5015 set dummy cdrecord; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_path_CDRECORD+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   case $CDRECORD in
5022   [\\/]* | ?:[\\/]*)
5023   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5024   ;;
5025   *)
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5042   ;;
5043 esac
5044 fi
5045 CDRECORD=$ac_cv_path_CDRECORD
5046 if test -n "$CDRECORD"; then
5047   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5048 echo "${ECHO_T}$CDRECORD" >&6; }
5049 else
5050   { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5052 fi
5053
5054
5055 # Extract the first word of "pidof", so it can be a program name with args.
5056 set dummy pidof; ac_word=$2
5057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5059 if test "${ac_cv_path_PIDOF+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   case $PIDOF in
5063   [\\/]* | ?:[\\/]*)
5064   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5065   ;;
5066   *)
5067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072   for ac_exec_ext in '' $ac_executable_extensions; do
5073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079 done
5080 IFS=$as_save_IFS
5081
5082   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5083   ;;
5084 esac
5085 fi
5086 PIDOF=$ac_cv_path_PIDOF
5087 if test -n "$PIDOF"; then
5088   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5089 echo "${ECHO_T}$PIDOF" >&6; }
5090 else
5091   { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5093 fi
5094
5095
5096 for ac_prog in gawk mawk nawk awk
5097 do
5098   # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_prog_AWK+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   if test -n "$AWK"; then
5106   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115     ac_cv_prog_AWK="$ac_prog"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 AWK=$ac_cv_prog_AWK
5126 if test -n "$AWK"; then
5127   { echo "$as_me:$LINENO: result: $AWK" >&5
5128 echo "${ECHO_T}$AWK" >&6; }
5129 else
5130   { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5132 fi
5133
5134
5135   test -n "$AWK" && break
5136 done
5137
5138 # Some AWK programs fail, so test it and warn the user
5139 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5140       { if ((prog == $2) || (("(" prog ")") == $2) ||
5141            (("" prog "") == $2) ||
5142            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5143 else
5144   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5145    The regex engine of $AWK is too broken to be used you
5146    might want to install GNU AWK.
5147    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5148 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5149    The regex engine of $AWK is too broken to be used you
5150    might want to install GNU AWK.
5151    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5152    { (exit 1); exit 1; }; }
5153 fi
5154 THE_AWK=$AWK
5155 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5156 set dummy $THE_AWK; ac_word=$2
5157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5159 if test "${ac_cv_path_AWK+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   case $AWK in
5163   [\\/]* | ?:[\\/]*)
5164   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5165   ;;
5166   *)
5167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172   for ac_exec_ext in '' $ac_executable_extensions; do
5173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5183   ;;
5184 esac
5185 fi
5186 AWK=$ac_cv_path_AWK
5187 if test -n "$AWK"; then
5188   { echo "$as_me:$LINENO: result: $AWK" >&5
5189 echo "${ECHO_T}$AWK" >&6; }
5190 else
5191   { echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6; }
5193 fi
5194
5195
5196
5197
5198 test -n "$ARFLAG" || ARFLAGS="cr"
5199
5200
5201 MAKE_SHELL=/bin/sh
5202
5203
5204
5205
5206
5207
5208
5209 # Make sure we can run config.sub.
5210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5211   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5212 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5213    { (exit 1); exit 1; }; }
5214
5215 { echo "$as_me:$LINENO: checking build system type" >&5
5216 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5217 if test "${ac_cv_build+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   ac_build_alias=$build_alias
5221 test "x$ac_build_alias" = x &&
5222   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5223 test "x$ac_build_alias" = x &&
5224   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5225 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5226    { (exit 1); exit 1; }; }
5227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5228   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5230    { (exit 1); exit 1; }; }
5231
5232 fi
5233 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5234 echo "${ECHO_T}$ac_cv_build" >&6; }
5235 case $ac_cv_build in
5236 *-*-*) ;;
5237 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5238 echo "$as_me: error: invalid value of canonical build" >&2;}
5239    { (exit 1); exit 1; }; };;
5240 esac
5241 build=$ac_cv_build
5242 ac_save_IFS=$IFS; IFS='-'
5243 set x $ac_cv_build
5244 shift
5245 build_cpu=$1
5246 build_vendor=$2
5247 shift; shift
5248 # Remember, the first character of IFS is used to create $*,
5249 # except with old shells:
5250 build_os=$*
5251 IFS=$ac_save_IFS
5252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5253
5254
5255
5256 { echo "$as_me:$LINENO: checking host system type" >&5
5257 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5258 if test "${ac_cv_host+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   if test "x$host_alias" = x; then
5262   ac_cv_host=$ac_cv_build
5263 else
5264   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5265     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5266 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5267    { (exit 1); exit 1; }; }
5268 fi
5269
5270 fi
5271 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5272 echo "${ECHO_T}$ac_cv_host" >&6; }
5273 case $ac_cv_host in
5274 *-*-*) ;;
5275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5276 echo "$as_me: error: invalid value of canonical host" >&2;}
5277    { (exit 1); exit 1; }; };;
5278 esac
5279 host=$ac_cv_host
5280 ac_save_IFS=$IFS; IFS='-'
5281 set x $ac_cv_host
5282 shift
5283 host_cpu=$1
5284 host_vendor=$2
5285 shift; shift
5286 # Remember, the first character of IFS is used to create $*,
5287 # except with old shells:
5288 host_os=$*
5289 IFS=$ac_save_IFS
5290 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5291
5292
5293 case $host_os in
5294   *cygwin* ) CYGWIN=yes;;
5295          * ) CYGWIN=no;;
5296 esac
5297
5298 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5299 then
5300
5301
5302 if $TRUEPRG; then
5303   HAVE_SUN_OS_TRUE=
5304   HAVE_SUN_OS_FALSE='#'
5305 else
5306   HAVE_SUN_OS_TRUE='#'
5307   HAVE_SUN_OS_FALSE=
5308 fi
5309         cat >>confdefs.h <<\_ACEOF
5310 #define HAVE_SUN_OS 1
5311 _ACEOF
5312
5313 else
5314
5315
5316 if $FALSEPRG; then
5317   HAVE_SUN_OS_TRUE=
5318   HAVE_SUN_OS_FALSE='#'
5319 else
5320   HAVE_SUN_OS_TRUE='#'
5321   HAVE_SUN_OS_FALSE=
5322 fi
5323 fi
5324
5325 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5326 then
5327
5328
5329 if $TRUEPRG; then
5330   HAVE_OSF1_OS_TRUE=
5331   HAVE_OSF1_OS_FALSE='#'
5332 else
5333   HAVE_OSF1_OS_TRUE='#'
5334   HAVE_OSF1_OS_FALSE=
5335 fi
5336         cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_OSF1_OS 1
5338 _ACEOF
5339
5340 else
5341
5342
5343 if $FALSEPRG; then
5344   HAVE_OSF1_OS_TRUE=
5345   HAVE_OSF1_OS_FALSE='#'
5346 else
5347   HAVE_OSF1_OS_TRUE='#'
5348   HAVE_OSF1_OS_FALSE=
5349 fi
5350 fi
5351
5352 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5353 then
5354
5355
5356 if $TRUEPRG; then
5357   HAVE_AIX_OS_TRUE=
5358   HAVE_AIX_OS_FALSE='#'
5359 else
5360   HAVE_AIX_OS_TRUE='#'
5361   HAVE_AIX_OS_FALSE=
5362 fi
5363         cat >>confdefs.h <<\_ACEOF
5364 #define HAVE_AIX_OS 1
5365 _ACEOF
5366
5367 else
5368
5369
5370 if $FALSEPRG; then
5371   HAVE_AIX_OS_TRUE=
5372   HAVE_AIX_OS_FALSE='#'
5373 else
5374   HAVE_AIX_OS_TRUE='#'
5375   HAVE_AIX_OS_FALSE=
5376 fi
5377 fi
5378
5379 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5380 then
5381
5382
5383 if $TRUEPRG; then
5384   HAVE_HPUX_OS_TRUE=
5385   HAVE_HPUX_OS_FALSE='#'
5386 else
5387   HAVE_HPUX_OS_TRUE='#'
5388   HAVE_HPUX_OS_FALSE=
5389 fi
5390         cat >>confdefs.h <<\_ACEOF
5391 #define HAVE_HPUX_OS 1
5392 _ACEOF
5393
5394 else
5395
5396
5397 if $FALSEPRG; then
5398   HAVE_HPUX_OS_TRUE=
5399   HAVE_HPUX_OS_FALSE='#'
5400 else
5401   HAVE_HPUX_OS_TRUE='#'
5402   HAVE_HPUX_OS_FALSE=
5403 fi
5404 fi
5405
5406 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5407 then
5408
5409
5410 if $TRUEPRG; then
5411   HAVE_LINUX_OS_TRUE=
5412   HAVE_LINUX_OS_FALSE='#'
5413 else
5414   HAVE_LINUX_OS_TRUE='#'
5415   HAVE_LINUX_OS_FALSE=
5416 fi
5417         cat >>confdefs.h <<\_ACEOF
5418 #define HAVE_LINUX_OS 1
5419 _ACEOF
5420
5421 else
5422
5423
5424 if $FALSEPRG; then
5425   HAVE_LINUX_OS_TRUE=
5426   HAVE_LINUX_OS_FALSE='#'
5427 else
5428   HAVE_LINUX_OS_TRUE='#'
5429   HAVE_LINUX_OS_FALSE=
5430 fi
5431 fi
5432
5433 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5434 then
5435
5436
5437 if $TRUEPRG; then
5438   HAVE_FREEBSD_OS_TRUE=
5439   HAVE_FREEBSD_OS_FALSE='#'
5440 else
5441   HAVE_FREEBSD_OS_TRUE='#'
5442   HAVE_FREEBSD_OS_FALSE=
5443 fi
5444         cat >>confdefs.h <<\_ACEOF
5445 #define HAVE_FREEBSD_OS 1
5446 _ACEOF
5447
5448 else
5449
5450
5451 if $FALSEPRG; then
5452   HAVE_FREEBSD_OS_TRUE=
5453   HAVE_FREEBSD_OS_FALSE='#'
5454 else
5455   HAVE_FREEBSD_OS_TRUE='#'
5456   HAVE_FREEBSD_OS_FALSE=
5457 fi
5458 fi
5459
5460 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5461 then
5462
5463
5464 if $TRUEPRG; then
5465   HAVE_NETBSD_OS_TRUE=
5466   HAVE_NETBSD_OS_FALSE='#'
5467 else
5468   HAVE_NETBSD_OS_TRUE='#'
5469   HAVE_NETBSD_OS_FALSE=
5470 fi
5471         cat >>confdefs.h <<\_ACEOF
5472 #define HAVE_NETBSD_OS 1
5473 _ACEOF
5474
5475 else
5476
5477
5478 if $FALSEPRG; then
5479   HAVE_NETBSD_OS_TRUE=
5480   HAVE_NETBSD_OS_FALSE='#'
5481 else
5482   HAVE_NETBSD_OS_TRUE='#'
5483   HAVE_NETBSD_OS_FALSE=
5484 fi
5485 fi
5486
5487 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5488 then
5489
5490
5491 if $TRUEPRG; then
5492   HAVE_OPENBSD_OS_TRUE=
5493   HAVE_OPENBSD_OS_FALSE='#'
5494 else
5495   HAVE_OPENBSD_OS_TRUE='#'
5496   HAVE_OPENBSD_OS_FALSE=
5497 fi
5498         cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_OPENBSD_OS 1
5500 _ACEOF
5501
5502 else
5503
5504
5505 if $FALSEPRG; then
5506   HAVE_OPENBSD_OS_TRUE=
5507   HAVE_OPENBSD_OS_FALSE='#'
5508 else
5509   HAVE_OPENBSD_OS_TRUE='#'
5510   HAVE_OPENBSD_OS_FALSE=
5511 fi
5512 fi
5513
5514 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5515 then
5516
5517
5518 if $TRUEPRG; then
5519   HAVE_BSDI_OS_TRUE=
5520   HAVE_BSDI_OS_FALSE='#'
5521 else
5522   HAVE_BSDI_OS_TRUE='#'
5523   HAVE_BSDI_OS_FALSE=
5524 fi
5525         cat >>confdefs.h <<\_ACEOF
5526 #define HAVE_BSDI_OS 1
5527 _ACEOF
5528
5529 else
5530
5531
5532 if $FALSEPRG; then
5533   HAVE_BSDI_OS_TRUE=
5534   HAVE_BSDI_OS_FALSE='#'
5535 else
5536   HAVE_BSDI_OS_TRUE='#'
5537   HAVE_BSDI_OS_FALSE=
5538 fi
5539 fi
5540
5541 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5542 then
5543
5544
5545 if $TRUEPRG; then
5546   HAVE_SGI_OS_TRUE=
5547   HAVE_SGI_OS_FALSE='#'
5548 else
5549   HAVE_SGI_OS_TRUE='#'
5550   HAVE_SGI_OS_FALSE=
5551 fi
5552         cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_SGI_OS 1
5554 _ACEOF
5555
5556 else
5557
5558
5559 if $FALSEPRG; then
5560   HAVE_SGI_OS_TRUE=
5561   HAVE_SGI_OS_FALSE='#'
5562 else
5563   HAVE_SGI_OS_TRUE='#'
5564   HAVE_SGI_OS_FALSE=
5565 fi
5566 fi
5567
5568 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5569 then
5570
5571
5572 if $TRUEPRG; then
5573   HAVE_IRIX_OS_TRUE=
5574   HAVE_IRIX_OS_FALSE='#'
5575 else
5576   HAVE_IRIX_OS_TRUE='#'
5577   HAVE_IRIX_OS_FALSE=
5578 fi
5579         cat >>confdefs.h <<\_ACEOF
5580 #define HAVE_IRIX_OS 1
5581 _ACEOF
5582
5583 else
5584
5585
5586 if $FALSEPRG; then
5587   HAVE_IRIX_OS_TRUE=
5588   HAVE_IRIX_OS_FALSE='#'
5589 else
5590   HAVE_IRIX_OS_TRUE='#'
5591   HAVE_IRIX_OS_FALSE=
5592 fi
5593 fi
5594
5595 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5596 then
5597
5598
5599 if $TRUEPRG; then
5600   HAVE_DARWIN_OS_TRUE=
5601   HAVE_DARWIN_OS_FALSE='#'
5602 else
5603   HAVE_DARWIN_OS_TRUE='#'
5604   HAVE_DARWIN_OS_FALSE=
5605 fi
5606     cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_DARWIN_OS 1
5608 _ACEOF
5609
5610 else
5611
5612
5613 if $FALSEPRG; then
5614   HAVE_DARWIN_OS_TRUE=
5615   HAVE_DARWIN_OS_FALSE='#'
5616 else
5617   HAVE_DARWIN_OS_TRUE='#'
5618   HAVE_DARWIN_OS_FALSE=
5619 fi
5620 fi
5621
5622
5623 # -----------------------------------------------------------
5624 # ----------------------------------------------------------
5625 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5626 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5627 if test "x$DISTNAME" != "x"
5628 then
5629         echo "distname set to $DISTNAME"
5630 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5631 then
5632         DISTNAME=alpha
5633 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5634 then
5635         DISTNAME=aix
5636 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5637 then
5638         DISTNAME=hpux
5639 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5640 then
5641         DISTNAME=solaris
5642 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5643 then
5644         DISTNAME=freebsd
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5646 then
5647         DISTNAME=netbsd
5648 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5649 then
5650         DISTNAME=openbsd
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5652 then
5653         DISTNAME=irix
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5655 then
5656         DISTNAME=bsdi
5657 elif test -f /etc/SuSE-release
5658 then
5659         DISTNAME=suse
5660 elif test -d /etc/SuSEconfig
5661 then
5662         DISTNAME=suse5
5663 elif test -f /etc/mandrake-release
5664 then
5665         DISTNAME=mandrake
5666 elif test -f /etc/whitebox-release
5667 then
5668        DISTNAME=redhat
5669 elif test -f /etc/redhat-release
5670 then
5671         DISTNAME=redhat
5672 elif test -f /etc/gentoo-release
5673 then
5674         DISTNAME=gentoo
5675 elif test -f /etc/debian_version
5676 then
5677         DISTNAME=debian
5678 elif test -f /etc/slackware-version
5679 then
5680         DISTNAME=slackware
5681 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5682 then
5683     DISTNAME=darwin
5684 elif test -f /etc/engarde-version
5685 then
5686         DISTNAME=engarde
5687 elif test "$CYGWIN" = yes
5688 then
5689         DISTNAME=cygwin
5690         cat >>confdefs.h <<\_ACEOF
5691 #define HAVE_CYGWIN 1
5692 _ACEOF
5693
5694 else
5695         DISTNAME=unknown
5696 fi
5697 { echo "$as_me:$LINENO: result: done" >&5
5698 echo "${ECHO_T}done" >&6; }
5699
5700
5701 # --------------------------------------------------
5702 # Suppport for gettext (translations)
5703 # By default, $datadir is ${prefix}/share
5704 # --------------------------------------------------
5705 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5706 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5707 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5708 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   cat >conftest.make <<\_ACEOF
5712 SHELL = /bin/sh
5713 all:
5714         @echo '@@@%%%=$(MAKE)=@@@%%%'
5715 _ACEOF
5716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5718   *@@@%%%=?*=@@@%%%*)
5719     eval ac_cv_prog_make_${ac_make}_set=yes;;
5720   *)
5721     eval ac_cv_prog_make_${ac_make}_set=no;;
5722 esac
5723 rm -f conftest.make
5724 fi
5725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5726   { echo "$as_me:$LINENO: result: yes" >&5
5727 echo "${ECHO_T}yes" >&6; }
5728   SET_MAKE=
5729 else
5730   { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732   SET_MAKE="MAKE=${MAKE-make}"
5733 fi
5734
5735
5736
5737         MKINSTALLDIRS=
5738   if test -n "$ac_aux_dir"; then
5739     case "$ac_aux_dir" in
5740       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5741       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5742     esac
5743   fi
5744   if test -z "$MKINSTALLDIRS"; then
5745     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5746   fi
5747
5748
5749
5750   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5751 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5752     # Check whether --enable-nls was given.
5753 if test "${enable_nls+set}" = set; then
5754   enableval=$enable_nls; USE_NLS=$enableval
5755 else
5756   USE_NLS=yes
5757 fi
5758
5759   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5760 echo "${ECHO_T}$USE_NLS" >&6; }
5761
5762
5763
5764
5765
5766
5767 # Prepare PATH_SEPARATOR.
5768 # The user is always right.
5769 if test "${PATH_SEPARATOR+set}" != set; then
5770   echo "#! /bin/sh" >conf$$.sh
5771   echo  "exit 0"   >>conf$$.sh
5772   chmod +x conf$$.sh
5773   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5774     PATH_SEPARATOR=';'
5775   else
5776     PATH_SEPARATOR=:
5777   fi
5778   rm -f conf$$.sh
5779 fi
5780
5781 # Find out how to test for executable files. Don't use a zero-byte file,
5782 # as systems may use methods other than mode bits to determine executability.
5783 cat >conf$$.file <<_ASEOF
5784 #! /bin/sh
5785 exit 0
5786 _ASEOF
5787 chmod +x conf$$.file
5788 if test -x conf$$.file >/dev/null 2>&1; then
5789   ac_executable_p="test -x"
5790 else
5791   ac_executable_p="test -f"
5792 fi
5793 rm -f conf$$.file
5794
5795 # Extract the first word of "msgfmt", so it can be a program name with args.
5796 set dummy msgfmt; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_MSGFMT+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   case "$MSGFMT" in
5803   [\\/]* | ?:[\\/]*)
5804     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5805     ;;
5806   *)
5807     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5808     for ac_dir in $PATH; do
5809       IFS="$ac_save_IFS"
5810       test -z "$ac_dir" && ac_dir=.
5811       for ac_exec_ext in '' $ac_executable_extensions; do
5812         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5813           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5814           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5815      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5816             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5817             break 2
5818           fi
5819         fi
5820       done
5821     done
5822     IFS="$ac_save_IFS"
5823   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5824     ;;
5825 esac
5826 fi
5827 MSGFMT="$ac_cv_path_MSGFMT"
5828 if test "$MSGFMT" != ":"; then
5829   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5830 echo "${ECHO_T}$MSGFMT" >&6; }
5831 else
5832   { echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6; }
5834 fi
5835
5836   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5837 set dummy gmsgfmt; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   case $GMSGFMT in
5844   [\\/]* | ?:[\\/]*)
5845   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5846   ;;
5847   *)
5848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853   for ac_exec_ext in '' $ac_executable_extensions; do
5854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5864   ;;
5865 esac
5866 fi
5867 GMSGFMT=$ac_cv_path_GMSGFMT
5868 if test -n "$GMSGFMT"; then
5869   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5870 echo "${ECHO_T}$GMSGFMT" >&6; }
5871 else
5872   { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5874 fi
5875
5876
5877
5878
5879 # Prepare PATH_SEPARATOR.
5880 # The user is always right.
5881 if test "${PATH_SEPARATOR+set}" != set; then
5882   echo "#! /bin/sh" >conf$$.sh
5883   echo  "exit 0"   >>conf$$.sh
5884   chmod +x conf$$.sh
5885   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5886     PATH_SEPARATOR=';'
5887   else
5888     PATH_SEPARATOR=:
5889   fi
5890   rm -f conf$$.sh
5891 fi
5892
5893 # Find out how to test for executable files. Don't use a zero-byte file,
5894 # as systems may use methods other than mode bits to determine executability.
5895 cat >conf$$.file <<_ASEOF
5896 #! /bin/sh
5897 exit 0
5898 _ASEOF
5899 chmod +x conf$$.file
5900 if test -x conf$$.file >/dev/null 2>&1; then
5901   ac_executable_p="test -x"
5902 else
5903   ac_executable_p="test -f"
5904 fi
5905 rm -f conf$$.file
5906
5907 # Extract the first word of "xgettext", so it can be a program name with args.
5908 set dummy xgettext; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   case "$XGETTEXT" in
5915   [\\/]* | ?:[\\/]*)
5916     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5917     ;;
5918   *)
5919     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5920     for ac_dir in $PATH; do
5921       IFS="$ac_save_IFS"
5922       test -z "$ac_dir" && ac_dir=.
5923       for ac_exec_ext in '' $ac_executable_extensions; do
5924         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5925           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5926           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5927      (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
5928             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5929             break 2
5930           fi
5931         fi
5932       done
5933     done
5934     IFS="$ac_save_IFS"
5935   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5936     ;;
5937 esac
5938 fi
5939 XGETTEXT="$ac_cv_path_XGETTEXT"
5940 if test "$XGETTEXT" != ":"; then
5941   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5942 echo "${ECHO_T}$XGETTEXT" >&6; }
5943 else
5944   { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5946 fi
5947
5948     rm -f messages.po
5949
5950
5951 # Prepare PATH_SEPARATOR.
5952 # The user is always right.
5953 if test "${PATH_SEPARATOR+set}" != set; then
5954   echo "#! /bin/sh" >conf$$.sh
5955   echo  "exit 0"   >>conf$$.sh
5956   chmod +x conf$$.sh
5957   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5958     PATH_SEPARATOR=';'
5959   else
5960     PATH_SEPARATOR=:
5961   fi
5962   rm -f conf$$.sh
5963 fi
5964
5965 # Find out how to test for executable files. Don't use a zero-byte file,
5966 # as systems may use methods other than mode bits to determine executability.
5967 cat >conf$$.file <<_ASEOF
5968 #! /bin/sh
5969 exit 0
5970 _ASEOF
5971 chmod +x conf$$.file
5972 if test -x conf$$.file >/dev/null 2>&1; then
5973   ac_executable_p="test -x"
5974 else
5975   ac_executable_p="test -f"
5976 fi
5977 rm -f conf$$.file
5978
5979 # Extract the first word of "msgmerge", so it can be a program name with args.
5980 set dummy msgmerge; ac_word=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   case "$MSGMERGE" in
5987   [\\/]* | ?:[\\/]*)
5988     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5989     ;;
5990   *)
5991     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5992     for ac_dir in $PATH; do
5993       IFS="$ac_save_IFS"
5994       test -z "$ac_dir" && ac_dir=.
5995       for ac_exec_ext in '' $ac_executable_extensions; do
5996         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5997           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5998           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5999             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6000             break 2
6001           fi
6002         fi
6003       done
6004     done
6005     IFS="$ac_save_IFS"
6006   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6007     ;;
6008 esac
6009 fi
6010 MSGMERGE="$ac_cv_path_MSGMERGE"
6011 if test "$MSGMERGE" != ":"; then
6012   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6013 echo "${ECHO_T}$MSGMERGE" >&6; }
6014 else
6015   { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017 fi
6018
6019
6020       if test "$GMSGFMT" != ":"; then
6021             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6022        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6023       : ;
6024     else
6025       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6026       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6027 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6028       GMSGFMT=":"
6029     fi
6030   fi
6031
6032       if test "$XGETTEXT" != ":"; then
6033             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6034        (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
6035       : ;
6036     else
6037       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6038 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6039       XGETTEXT=":"
6040     fi
6041         rm -f messages.po
6042   fi
6043
6044   ac_config_commands="$ac_config_commands default-1"
6045
6046
6047
6048       if test "X$prefix" = "XNONE"; then
6049     acl_final_prefix="$ac_default_prefix"
6050   else
6051     acl_final_prefix="$prefix"
6052   fi
6053   if test "X$exec_prefix" = "XNONE"; then
6054     acl_final_exec_prefix='${prefix}'
6055   else
6056     acl_final_exec_prefix="$exec_prefix"
6057   fi
6058   acl_save_prefix="$prefix"
6059   prefix="$acl_final_prefix"
6060   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6061   prefix="$acl_save_prefix"
6062
6063
6064 # Check whether --with-gnu-ld was given.
6065 if test "${with_gnu_ld+set}" = set; then
6066   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6067 else
6068   with_gnu_ld=no
6069 fi
6070
6071 # Prepare PATH_SEPARATOR.
6072 # The user is always right.
6073 if test "${PATH_SEPARATOR+set}" != set; then
6074   echo "#! /bin/sh" >conf$$.sh
6075   echo  "exit 0"   >>conf$$.sh
6076   chmod +x conf$$.sh
6077   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6078     PATH_SEPARATOR=';'
6079   else
6080     PATH_SEPARATOR=:
6081   fi
6082   rm -f conf$$.sh
6083 fi
6084 ac_prog=ld
6085 if test "$GCC" = yes; then
6086   # Check if gcc -print-prog-name=ld gives a path.
6087   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6088 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6089   case $host in
6090   *-*-mingw*)
6091     # gcc leaves a trailing carriage return which upsets mingw
6092     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6093   *)
6094     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6095   esac
6096   case $ac_prog in
6097     # Accept absolute paths.
6098     [\\/]* | [A-Za-z]:[\\/]*)
6099       re_direlt='/[^/][^/]*/\.\./'
6100       # Canonicalize the path of ld
6101       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6102       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6103         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6104       done
6105       test -z "$LD" && LD="$ac_prog"
6106       ;;
6107   "")
6108     # If it fails, then pretend we aren't using GCC.
6109     ac_prog=ld
6110     ;;
6111   *)
6112     # If it is relative, then search for the first ld in PATH.
6113     with_gnu_ld=unknown
6114     ;;
6115   esac
6116 elif test "$with_gnu_ld" = yes; then
6117   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6122 fi
6123 if test "${acl_cv_path_LD+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   if test -z "$LD"; then
6127   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6128   for ac_dir in $PATH; do
6129     test -z "$ac_dir" && ac_dir=.
6130     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6131       acl_cv_path_LD="$ac_dir/$ac_prog"
6132       # Check to see if the program is GNU ld.  I'd rather use --version,
6133       # but apparently some GNU ld's only accept -v.
6134       # Break only if it was the GNU/non-GNU ld that we prefer.
6135       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6136       *GNU* | *'with BFD'*)
6137         test "$with_gnu_ld" != no && break ;;
6138       *)
6139         test "$with_gnu_ld" != yes && break ;;
6140       esac
6141     fi
6142   done
6143   IFS="$ac_save_ifs"
6144 else
6145   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6146 fi
6147 fi
6148
6149 LD="$acl_cv_path_LD"
6150 if test -n "$LD"; then
6151   { echo "$as_me:$LINENO: result: $LD" >&5
6152 echo "${ECHO_T}$LD" >&6; }
6153 else
6154   { echo "$as_me:$LINENO: result: no" >&5
6155 echo "${ECHO_T}no" >&6; }
6156 fi
6157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6159    { (exit 1); exit 1; }; }
6160 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6162 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6166 case `$LD -v 2>&1 </dev/null` in
6167 *GNU* | *'with BFD'*)
6168   acl_cv_prog_gnu_ld=yes ;;
6169 *)
6170   acl_cv_prog_gnu_ld=no ;;
6171 esac
6172 fi
6173 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6174 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6175 with_gnu_ld=$acl_cv_prog_gnu_ld
6176
6177
6178
6179
6180                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6181 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6182 if test "${acl_cv_rpath+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185
6186     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6187     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6188     . ./conftest.sh
6189     rm -f ./conftest.sh
6190     acl_cv_rpath=done
6191
6192 fi
6193 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6194 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6195   wl="$acl_cv_wl"
6196   libext="$acl_cv_libext"
6197   shlibext="$acl_cv_shlibext"
6198   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6199   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6200   hardcode_direct="$acl_cv_hardcode_direct"
6201   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6202     # Check whether --enable-rpath was given.
6203 if test "${enable_rpath+set}" = set; then
6204   enableval=$enable_rpath; :
6205 else
6206   enable_rpath=yes
6207 fi
6208
6209
6210
6211
6212
6213
6214
6215
6216     use_additional=yes
6217
6218   acl_save_prefix="$prefix"
6219   prefix="$acl_final_prefix"
6220   acl_save_exec_prefix="$exec_prefix"
6221   exec_prefix="$acl_final_exec_prefix"
6222
6223     eval additional_includedir=\"$includedir\"
6224     eval additional_libdir=\"$libdir\"
6225
6226   exec_prefix="$acl_save_exec_prefix"
6227   prefix="$acl_save_prefix"
6228
6229
6230 # Check whether --with-libiconv-prefix was given.
6231 if test "${with_libiconv_prefix+set}" = set; then
6232   withval=$with_libiconv_prefix;
6233     if test "X$withval" = "Xno"; then
6234       use_additional=no
6235     else
6236       if test "X$withval" = "X"; then
6237
6238   acl_save_prefix="$prefix"
6239   prefix="$acl_final_prefix"
6240   acl_save_exec_prefix="$exec_prefix"
6241   exec_prefix="$acl_final_exec_prefix"
6242
6243           eval additional_includedir=\"$includedir\"
6244           eval additional_libdir=\"$libdir\"
6245
6246   exec_prefix="$acl_save_exec_prefix"
6247   prefix="$acl_save_prefix"
6248
6249       else
6250         additional_includedir="$withval/include"
6251         additional_libdir="$withval/lib"
6252       fi
6253     fi
6254
6255 fi
6256
6257       LIBICONV=
6258   LTLIBICONV=
6259   INCICONV=
6260   rpathdirs=
6261   ltrpathdirs=
6262   names_already_handled=
6263   names_next_round='iconv '
6264   while test -n "$names_next_round"; do
6265     names_this_round="$names_next_round"
6266     names_next_round=
6267     for name in $names_this_round; do
6268       already_handled=
6269       for n in $names_already_handled; do
6270         if test "$n" = "$name"; then
6271           already_handled=yes
6272           break
6273         fi
6274       done
6275       if test -z "$already_handled"; then
6276         names_already_handled="$names_already_handled $name"
6277                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6278         eval value=\"\$HAVE_LIB$uppername\"
6279         if test -n "$value"; then
6280           if test "$value" = yes; then
6281             eval value=\"\$LIB$uppername\"
6282             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6283             eval value=\"\$LTLIB$uppername\"
6284             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6285           else
6286                                     :
6287           fi
6288         else
6289                               found_dir=
6290           found_la=
6291           found_so=
6292           found_a=
6293           if test $use_additional = yes; then
6294             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6295               found_dir="$additional_libdir"
6296               found_so="$additional_libdir/lib$name.$shlibext"
6297               if test -f "$additional_libdir/lib$name.la"; then
6298                 found_la="$additional_libdir/lib$name.la"
6299               fi
6300             else
6301               if test -f "$additional_libdir/lib$name.$libext"; then
6302                 found_dir="$additional_libdir"
6303                 found_a="$additional_libdir/lib$name.$libext"
6304                 if test -f "$additional_libdir/lib$name.la"; then
6305                   found_la="$additional_libdir/lib$name.la"
6306                 fi
6307               fi
6308             fi
6309           fi
6310           if test "X$found_dir" = "X"; then
6311             for x in $LDFLAGS $LTLIBICONV; do
6312
6313   acl_save_prefix="$prefix"
6314   prefix="$acl_final_prefix"
6315   acl_save_exec_prefix="$exec_prefix"
6316   exec_prefix="$acl_final_exec_prefix"
6317   eval x=\"$x\"
6318   exec_prefix="$acl_save_exec_prefix"
6319   prefix="$acl_save_prefix"
6320
6321               case "$x" in
6322                 -L*)
6323                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6324                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6325                     found_dir="$dir"
6326                     found_so="$dir/lib$name.$shlibext"
6327                     if test -f "$dir/lib$name.la"; then
6328                       found_la="$dir/lib$name.la"
6329                     fi
6330                   else
6331                     if test -f "$dir/lib$name.$libext"; then
6332                       found_dir="$dir"
6333                       found_a="$dir/lib$name.$libext"
6334                       if test -f "$dir/lib$name.la"; then
6335                         found_la="$dir/lib$name.la"
6336                       fi
6337                     fi
6338                   fi
6339                   ;;
6340               esac
6341               if test "X$found_dir" != "X"; then
6342                 break
6343               fi
6344             done
6345           fi
6346           if test "X$found_dir" != "X"; then
6347                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6348             if test "X$found_so" != "X"; then
6349                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6350                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6351               else
6352                                                                                 haveit=
6353                 for x in $ltrpathdirs; do
6354                   if test "X$x" = "X$found_dir"; then
6355                     haveit=yes
6356                     break
6357                   fi
6358                 done
6359                 if test -z "$haveit"; then
6360                   ltrpathdirs="$ltrpathdirs $found_dir"
6361                 fi
6362                                 if test "$hardcode_direct" = yes; then
6363                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6364                 else
6365                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6366                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6367                                                             haveit=
6368                     for x in $rpathdirs; do
6369                       if test "X$x" = "X$found_dir"; then
6370                         haveit=yes
6371                         break
6372                       fi
6373                     done
6374                     if test -z "$haveit"; then
6375                       rpathdirs="$rpathdirs $found_dir"
6376                     fi
6377                   else
6378                                                                                 haveit=
6379                     for x in $LDFLAGS $LIBICONV; do
6380
6381   acl_save_prefix="$prefix"
6382   prefix="$acl_final_prefix"
6383   acl_save_exec_prefix="$exec_prefix"
6384   exec_prefix="$acl_final_exec_prefix"
6385   eval x=\"$x\"
6386   exec_prefix="$acl_save_exec_prefix"
6387   prefix="$acl_save_prefix"
6388
6389                       if test "X$x" = "X-L$found_dir"; then
6390                         haveit=yes
6391                         break
6392                       fi
6393                     done
6394                     if test -z "$haveit"; then
6395                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6396                     fi
6397                     if test "$hardcode_minus_L" != no; then
6398                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6399                     else
6400                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6401                     fi
6402                   fi
6403                 fi
6404               fi
6405             else
6406               if test "X$found_a" != "X"; then
6407                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6408               else
6409                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6410               fi
6411             fi
6412                         additional_includedir=
6413             case "$found_dir" in
6414               */lib | */lib/)
6415                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6416                 additional_includedir="$basedir/include"
6417                 ;;
6418             esac
6419             if test "X$additional_includedir" != "X"; then
6420                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6421                 haveit=
6422                 if test "X$additional_includedir" = "X/usr/local/include"; then
6423                   if test -n "$GCC"; then
6424                     case $host_os in
6425                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6426                     esac
6427                   fi
6428                 fi
6429                 if test -z "$haveit"; then
6430                   for x in $CPPFLAGS $INCICONV; do
6431
6432   acl_save_prefix="$prefix"
6433   prefix="$acl_final_prefix"
6434   acl_save_exec_prefix="$exec_prefix"
6435   exec_prefix="$acl_final_exec_prefix"
6436   eval x=\"$x\"
6437   exec_prefix="$acl_save_exec_prefix"
6438   prefix="$acl_save_prefix"
6439
6440                     if test "X$x" = "X-I$additional_includedir"; then
6441                       haveit=yes
6442                       break
6443                     fi
6444                   done
6445                   if test -z "$haveit"; then
6446                     if test -d "$additional_includedir"; then
6447                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6448                     fi
6449                   fi
6450                 fi
6451               fi
6452             fi
6453                         if test -n "$found_la"; then
6454                                                         save_libdir="$libdir"
6455               case "$found_la" in
6456                 */* | *\\*) . "$found_la" ;;
6457                 *) . "./$found_la" ;;
6458               esac
6459               libdir="$save_libdir"
6460                             for dep in $dependency_libs; do
6461                 case "$dep" in
6462                   -L*)
6463                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6464                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6465                       haveit=
6466                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6467                         if test -n "$GCC"; then
6468                           case $host_os in
6469                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6470                           esac
6471                         fi
6472                       fi
6473                       if test -z "$haveit"; then
6474                         haveit=
6475                         for x in $LDFLAGS $LIBICONV; do
6476
6477   acl_save_prefix="$prefix"
6478   prefix="$acl_final_prefix"
6479   acl_save_exec_prefix="$exec_prefix"
6480   exec_prefix="$acl_final_exec_prefix"
6481   eval x=\"$x\"
6482   exec_prefix="$acl_save_exec_prefix"
6483   prefix="$acl_save_prefix"
6484
6485                           if test "X$x" = "X-L$additional_libdir"; then
6486                             haveit=yes
6487                             break
6488                           fi
6489                         done
6490                         if test -z "$haveit"; then
6491                           if test -d "$additional_libdir"; then
6492                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6493                           fi
6494                         fi
6495                         haveit=
6496                         for x in $LDFLAGS $LTLIBICONV; do
6497
6498   acl_save_prefix="$prefix"
6499   prefix="$acl_final_prefix"
6500   acl_save_exec_prefix="$exec_prefix"
6501   exec_prefix="$acl_final_exec_prefix"
6502   eval x=\"$x\"
6503   exec_prefix="$acl_save_exec_prefix"
6504   prefix="$acl_save_prefix"
6505
6506                           if test "X$x" = "X-L$additional_libdir"; then
6507                             haveit=yes
6508                             break
6509                           fi
6510                         done
6511                         if test -z "$haveit"; then
6512                           if test -d "$additional_libdir"; then
6513                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6514                           fi
6515                         fi
6516                       fi
6517                     fi
6518                     ;;
6519                   -R*)
6520                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6521                     if test "$enable_rpath" != no; then
6522                                                                   haveit=
6523                       for x in $rpathdirs; do
6524                         if test "X$x" = "X$dir"; then
6525                           haveit=yes
6526                           break
6527                         fi
6528                       done
6529                       if test -z "$haveit"; then
6530                         rpathdirs="$rpathdirs $dir"
6531                       fi
6532                                                                   haveit=
6533                       for x in $ltrpathdirs; do
6534                         if test "X$x" = "X$dir"; then
6535                           haveit=yes
6536                           break
6537                         fi
6538                       done
6539                       if test -z "$haveit"; then
6540                         ltrpathdirs="$ltrpathdirs $dir"
6541                       fi
6542                     fi
6543                     ;;
6544                   -l*)
6545                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6546                     ;;
6547                   *.la)
6548                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6549                     ;;
6550                   *)
6551                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6552                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6553                     ;;
6554                 esac
6555               done
6556             fi
6557           else
6558                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6559             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6560           fi
6561         fi
6562       fi
6563     done
6564   done
6565   if test "X$rpathdirs" != "X"; then
6566     if test -n "$hardcode_libdir_separator"; then
6567                         alldirs=
6568       for found_dir in $rpathdirs; do
6569         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6570       done
6571             acl_save_libdir="$libdir"
6572       libdir="$alldirs"
6573       eval flag=\"$hardcode_libdir_flag_spec\"
6574       libdir="$acl_save_libdir"
6575       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6576     else
6577             for found_dir in $rpathdirs; do
6578         acl_save_libdir="$libdir"
6579         libdir="$found_dir"
6580         eval flag=\"$hardcode_libdir_flag_spec\"
6581         libdir="$acl_save_libdir"
6582         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6583       done
6584     fi
6585   fi
6586   if test "X$ltrpathdirs" != "X"; then
6587             for found_dir in $ltrpathdirs; do
6588       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6589     done
6590   fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6610 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6611 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   gt_save_CPPFLAGS="$CPPFLAGS"
6615      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6616      gt_save_LIBS="$LIBS"
6617      LIBS="$LIBS -framework CoreFoundation"
6618      cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 #include <CFPreferences.h>
6625 int
6626 main ()
6627 {
6628 CFPreferencesCopyAppValue(NULL, NULL)
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (ac_try="$ac_link"
6635 case "(($ac_try" in
6636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637   *) ac_try_echo=$ac_try;;
6638 esac
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640   (eval "$ac_link") 2>conftest.er1
6641   ac_status=$?
6642   grep -v '^ *+' conftest.er1 >conftest.err
6643   rm -f conftest.er1
6644   cat conftest.err >&5
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } && {
6647          test -z "$ac_c_werror_flag" ||
6648          test ! -s conftest.err
6649        } && test -s conftest$ac_exeext &&
6650        $as_test_x conftest$ac_exeext; then
6651   gt_cv_func_CFPreferencesCopyAppValue=yes
6652 else
6653   echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656         gt_cv_func_CFPreferencesCopyAppValue=no
6657 fi
6658
6659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6660       conftest$ac_exeext conftest.$ac_ext
6661      CPPFLAGS="$gt_save_CPPFLAGS"
6662      LIBS="$gt_save_LIBS"
6663 fi
6664 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6665 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6666   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6667
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6670 _ACEOF
6671
6672   fi
6673     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6674 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6675 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   gt_save_CPPFLAGS="$CPPFLAGS"
6679      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6680      gt_save_LIBS="$LIBS"
6681      LIBS="$LIBS -framework CoreFoundation"
6682      cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 #include <CFLocale.h>
6689 int
6690 main ()
6691 {
6692 CFLocaleCopyCurrent();
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701   *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704   (eval "$ac_link") 2>conftest.er1
6705   ac_status=$?
6706   grep -v '^ *+' conftest.er1 >conftest.err
6707   rm -f conftest.er1
6708   cat conftest.err >&5
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } && {
6711          test -z "$ac_c_werror_flag" ||
6712          test ! -s conftest.err
6713        } && test -s conftest$ac_exeext &&
6714        $as_test_x conftest$ac_exeext; then
6715   gt_cv_func_CFLocaleCopyCurrent=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         gt_cv_func_CFLocaleCopyCurrent=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6724       conftest$ac_exeext conftest.$ac_ext
6725      CPPFLAGS="$gt_save_CPPFLAGS"
6726      LIBS="$gt_save_LIBS"
6727 fi
6728 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6729 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6730   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6731
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_CFLOCALECOPYCURRENT 1
6734 _ACEOF
6735
6736   fi
6737   INTL_MACOSX_LIBS=
6738   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6739     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6740   fi
6741
6742
6743
6744
6745   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6746 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6747     # Check whether --enable-nls was given.
6748 if test "${enable_nls+set}" = set; then
6749   enableval=$enable_nls; USE_NLS=$enableval
6750 else
6751   USE_NLS=yes
6752 fi
6753
6754   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6755 echo "${ECHO_T}$USE_NLS" >&6; }
6756
6757
6758
6759
6760   LIBINTL=
6761   LTLIBINTL=
6762   POSUB=
6763
6764     if test "$USE_NLS" = "yes"; then
6765     gt_use_preinstalled_gnugettext=no
6766
6767
6768
6769
6770
6771
6772         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6773 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6774 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6775   echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777   cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h.  */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h.  */
6783 #include <libintl.h>
6784 extern int _nl_msg_cat_cntr;
6785 extern int *_nl_domain_bindings;
6786 int
6787 main ()
6788 {
6789 bindtextdomain ("", "");
6790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6797 case "(($ac_try" in
6798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799   *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802   (eval "$ac_link") 2>conftest.er1
6803   ac_status=$?
6804   grep -v '^ *+' conftest.er1 >conftest.err
6805   rm -f conftest.er1
6806   cat conftest.err >&5
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } && {
6809          test -z "$ac_c_werror_flag" ||
6810          test ! -s conftest.err
6811        } && test -s conftest$ac_exeext &&
6812        $as_test_x conftest$ac_exeext; then
6813   gt_cv_func_gnugettext1_libc=yes
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818         gt_cv_func_gnugettext1_libc=no
6819 fi
6820
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822       conftest$ac_exeext conftest.$ac_ext
6823 fi
6824 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6825 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6826
6827         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6828
6829
6830
6831
6832
6833           am_save_CPPFLAGS="$CPPFLAGS"
6834
6835   for element in $INCICONV; do
6836     haveit=
6837     for x in $CPPFLAGS; do
6838
6839   acl_save_prefix="$prefix"
6840   prefix="$acl_final_prefix"
6841   acl_save_exec_prefix="$exec_prefix"
6842   exec_prefix="$acl_final_exec_prefix"
6843   eval x=\"$x\"
6844   exec_prefix="$acl_save_exec_prefix"
6845   prefix="$acl_save_prefix"
6846
6847       if test "X$x" = "X$element"; then
6848         haveit=yes
6849         break
6850       fi
6851     done
6852     if test -z "$haveit"; then
6853       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6854     fi
6855   done
6856
6857
6858   { echo "$as_me:$LINENO: checking for iconv" >&5
6859 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6860 if test "${am_cv_func_iconv+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863
6864     am_cv_func_iconv="no, consider installing GNU libiconv"
6865     am_cv_lib_iconv=no
6866     cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872 #include <stdlib.h>
6873 #include <iconv.h>
6874 int
6875 main ()
6876 {
6877 iconv_t cd = iconv_open("","");
6878        iconv(cd,NULL,NULL,NULL,NULL);
6879        iconv_close(cd);
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (ac_try="$ac_link"
6886 case "(($ac_try" in
6887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888   *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891   (eval "$ac_link") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } && {
6898          test -z "$ac_c_werror_flag" ||
6899          test ! -s conftest.err
6900        } && test -s conftest$ac_exeext &&
6901        $as_test_x conftest$ac_exeext; then
6902   am_cv_func_iconv=yes
6903 else
6904   echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907
6908 fi
6909
6910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6911       conftest$ac_exeext conftest.$ac_ext
6912     if test "$am_cv_func_iconv" != yes; then
6913       am_save_LIBS="$LIBS"
6914       LIBS="$LIBS $LIBICONV"
6915       cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 #include <stdlib.h>
6922 #include <iconv.h>
6923 int
6924 main ()
6925 {
6926 iconv_t cd = iconv_open("","");
6927          iconv(cd,NULL,NULL,NULL,NULL);
6928          iconv_close(cd);
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (ac_try="$ac_link"
6935 case "(($ac_try" in
6936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937   *) ac_try_echo=$ac_try;;
6938 esac
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940   (eval "$ac_link") 2>conftest.er1
6941   ac_status=$?
6942   grep -v '^ *+' conftest.er1 >conftest.err
6943   rm -f conftest.er1
6944   cat conftest.err >&5
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } && {
6947          test -z "$ac_c_werror_flag" ||
6948          test ! -s conftest.err
6949        } && test -s conftest$ac_exeext &&
6950        $as_test_x conftest$ac_exeext; then
6951   am_cv_lib_iconv=yes
6952         am_cv_func_iconv=yes
6953 else
6954   echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957
6958 fi
6959
6960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6961       conftest$ac_exeext conftest.$ac_ext
6962       LIBS="$am_save_LIBS"
6963     fi
6964
6965 fi
6966 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6967 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6968   if test "$am_cv_func_iconv" = yes; then
6969
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_ICONV 1
6972 _ACEOF
6973
6974   fi
6975   if test "$am_cv_lib_iconv" = yes; then
6976     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6977 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6978     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6979 echo "${ECHO_T}$LIBICONV" >&6; }
6980   else
6981             CPPFLAGS="$am_save_CPPFLAGS"
6982     LIBICONV=
6983     LTLIBICONV=
6984   fi
6985
6986
6987
6988
6989
6990
6991     use_additional=yes
6992
6993   acl_save_prefix="$prefix"
6994   prefix="$acl_final_prefix"
6995   acl_save_exec_prefix="$exec_prefix"
6996   exec_prefix="$acl_final_exec_prefix"
6997
6998     eval additional_includedir=\"$includedir\"
6999     eval additional_libdir=\"$libdir\"
7000
7001   exec_prefix="$acl_save_exec_prefix"
7002   prefix="$acl_save_prefix"
7003
7004
7005 # Check whether --with-libintl-prefix was given.
7006 if test "${with_libintl_prefix+set}" = set; then
7007   withval=$with_libintl_prefix;
7008     if test "X$withval" = "Xno"; then
7009       use_additional=no
7010     else
7011       if test "X$withval" = "X"; then
7012
7013   acl_save_prefix="$prefix"
7014   prefix="$acl_final_prefix"
7015   acl_save_exec_prefix="$exec_prefix"
7016   exec_prefix="$acl_final_exec_prefix"
7017
7018           eval additional_includedir=\"$includedir\"
7019           eval additional_libdir=\"$libdir\"
7020
7021   exec_prefix="$acl_save_exec_prefix"
7022   prefix="$acl_save_prefix"
7023
7024       else
7025         additional_includedir="$withval/include"
7026         additional_libdir="$withval/lib"
7027       fi
7028     fi
7029
7030 fi
7031
7032       LIBINTL=
7033   LTLIBINTL=
7034   INCINTL=
7035   rpathdirs=
7036   ltrpathdirs=
7037   names_already_handled=
7038   names_next_round='intl '
7039   while test -n "$names_next_round"; do
7040     names_this_round="$names_next_round"
7041     names_next_round=
7042     for name in $names_this_round; do
7043       already_handled=
7044       for n in $names_already_handled; do
7045         if test "$n" = "$name"; then
7046           already_handled=yes
7047           break
7048         fi
7049       done
7050       if test -z "$already_handled"; then
7051         names_already_handled="$names_already_handled $name"
7052                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7053         eval value=\"\$HAVE_LIB$uppername\"
7054         if test -n "$value"; then
7055           if test "$value" = yes; then
7056             eval value=\"\$LIB$uppername\"
7057             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7058             eval value=\"\$LTLIB$uppername\"
7059             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7060           else
7061                                     :
7062           fi
7063         else
7064                               found_dir=
7065           found_la=
7066           found_so=
7067           found_a=
7068           if test $use_additional = yes; then
7069             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7070               found_dir="$additional_libdir"
7071               found_so="$additional_libdir/lib$name.$shlibext"
7072               if test -f "$additional_libdir/lib$name.la"; then
7073                 found_la="$additional_libdir/lib$name.la"
7074               fi
7075             else
7076               if test -f "$additional_libdir/lib$name.$libext"; then
7077                 found_dir="$additional_libdir"
7078                 found_a="$additional_libdir/lib$name.$libext"
7079                 if test -f "$additional_libdir/lib$name.la"; then
7080                   found_la="$additional_libdir/lib$name.la"
7081                 fi
7082               fi
7083             fi
7084           fi
7085           if test "X$found_dir" = "X"; then
7086             for x in $LDFLAGS $LTLIBINTL; do
7087
7088   acl_save_prefix="$prefix"
7089   prefix="$acl_final_prefix"
7090   acl_save_exec_prefix="$exec_prefix"
7091   exec_prefix="$acl_final_exec_prefix"
7092   eval x=\"$x\"
7093   exec_prefix="$acl_save_exec_prefix"
7094   prefix="$acl_save_prefix"
7095
7096               case "$x" in
7097                 -L*)
7098                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7099                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7100                     found_dir="$dir"
7101                     found_so="$dir/lib$name.$shlibext"
7102                     if test -f "$dir/lib$name.la"; then
7103                       found_la="$dir/lib$name.la"
7104                     fi
7105                   else
7106                     if test -f "$dir/lib$name.$libext"; then
7107                       found_dir="$dir"
7108                       found_a="$dir/lib$name.$libext"
7109                       if test -f "$dir/lib$name.la"; then
7110                         found_la="$dir/lib$name.la"
7111                       fi
7112                     fi
7113                   fi
7114                   ;;
7115               esac
7116               if test "X$found_dir" != "X"; then
7117                 break
7118               fi
7119             done
7120           fi
7121           if test "X$found_dir" != "X"; then
7122                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7123             if test "X$found_so" != "X"; then
7124                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7125                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7126               else
7127                                                                                 haveit=
7128                 for x in $ltrpathdirs; do
7129                   if test "X$x" = "X$found_dir"; then
7130                     haveit=yes
7131                     break
7132                   fi
7133                 done
7134                 if test -z "$haveit"; then
7135                   ltrpathdirs="$ltrpathdirs $found_dir"
7136                 fi
7137                                 if test "$hardcode_direct" = yes; then
7138                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7139                 else
7140                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7141                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7142                                                             haveit=
7143                     for x in $rpathdirs; do
7144                       if test "X$x" = "X$found_dir"; then
7145                         haveit=yes
7146                         break
7147                       fi
7148                     done
7149                     if test -z "$haveit"; then
7150                       rpathdirs="$rpathdirs $found_dir"
7151                     fi
7152                   else
7153                                                                                 haveit=
7154                     for x in $LDFLAGS $LIBINTL; do
7155
7156   acl_save_prefix="$prefix"
7157   prefix="$acl_final_prefix"
7158   acl_save_exec_prefix="$exec_prefix"
7159   exec_prefix="$acl_final_exec_prefix"
7160   eval x=\"$x\"
7161   exec_prefix="$acl_save_exec_prefix"
7162   prefix="$acl_save_prefix"
7163
7164                       if test "X$x" = "X-L$found_dir"; then
7165                         haveit=yes
7166                         break
7167                       fi
7168                     done
7169                     if test -z "$haveit"; then
7170                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7171                     fi
7172                     if test "$hardcode_minus_L" != no; then
7173                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7174                     else
7175                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7176                     fi
7177                   fi
7178                 fi
7179               fi
7180             else
7181               if test "X$found_a" != "X"; then
7182                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7183               else
7184                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7185               fi
7186             fi
7187                         additional_includedir=
7188             case "$found_dir" in
7189               */lib | */lib/)
7190                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7191                 additional_includedir="$basedir/include"
7192                 ;;
7193             esac
7194             if test "X$additional_includedir" != "X"; then
7195                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7196                 haveit=
7197                 if test "X$additional_includedir" = "X/usr/local/include"; then
7198                   if test -n "$GCC"; then
7199                     case $host_os in
7200                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7201                     esac
7202                   fi
7203                 fi
7204                 if test -z "$haveit"; then
7205                   for x in $CPPFLAGS $INCINTL; do
7206
7207   acl_save_prefix="$prefix"
7208   prefix="$acl_final_prefix"
7209   acl_save_exec_prefix="$exec_prefix"
7210   exec_prefix="$acl_final_exec_prefix"
7211   eval x=\"$x\"
7212   exec_prefix="$acl_save_exec_prefix"
7213   prefix="$acl_save_prefix"
7214
7215                     if test "X$x" = "X-I$additional_includedir"; then
7216                       haveit=yes
7217                       break
7218                     fi
7219                   done
7220                   if test -z "$haveit"; then
7221                     if test -d "$additional_includedir"; then
7222                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7223                     fi
7224                   fi
7225                 fi
7226               fi
7227             fi
7228                         if test -n "$found_la"; then
7229                                                         save_libdir="$libdir"
7230               case "$found_la" in
7231                 */* | *\\*) . "$found_la" ;;
7232                 *) . "./$found_la" ;;
7233               esac
7234               libdir="$save_libdir"
7235                             for dep in $dependency_libs; do
7236                 case "$dep" in
7237                   -L*)
7238                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7239                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7240                       haveit=
7241                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7242                         if test -n "$GCC"; then
7243                           case $host_os in
7244                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7245                           esac
7246                         fi
7247                       fi
7248                       if test -z "$haveit"; then
7249                         haveit=
7250                         for x in $LDFLAGS $LIBINTL; do
7251
7252   acl_save_prefix="$prefix"
7253   prefix="$acl_final_prefix"
7254   acl_save_exec_prefix="$exec_prefix"
7255   exec_prefix="$acl_final_exec_prefix"
7256   eval x=\"$x\"
7257   exec_prefix="$acl_save_exec_prefix"
7258   prefix="$acl_save_prefix"
7259
7260                           if test "X$x" = "X-L$additional_libdir"; then
7261                             haveit=yes
7262                             break
7263                           fi
7264                         done
7265                         if test -z "$haveit"; then
7266                           if test -d "$additional_libdir"; then
7267                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7268                           fi
7269                         fi
7270                         haveit=
7271                         for x in $LDFLAGS $LTLIBINTL; do
7272
7273   acl_save_prefix="$prefix"
7274   prefix="$acl_final_prefix"
7275   acl_save_exec_prefix="$exec_prefix"
7276   exec_prefix="$acl_final_exec_prefix"
7277   eval x=\"$x\"
7278   exec_prefix="$acl_save_exec_prefix"
7279   prefix="$acl_save_prefix"
7280
7281                           if test "X$x" = "X-L$additional_libdir"; then
7282                             haveit=yes
7283                             break
7284                           fi
7285                         done
7286                         if test -z "$haveit"; then
7287                           if test -d "$additional_libdir"; then
7288                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7289                           fi
7290                         fi
7291                       fi
7292                     fi
7293                     ;;
7294                   -R*)
7295                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7296                     if test "$enable_rpath" != no; then
7297                                                                   haveit=
7298                       for x in $rpathdirs; do
7299                         if test "X$x" = "X$dir"; then
7300                           haveit=yes
7301                           break
7302                         fi
7303                       done
7304                       if test -z "$haveit"; then
7305                         rpathdirs="$rpathdirs $dir"
7306                       fi
7307                                                                   haveit=
7308                       for x in $ltrpathdirs; do
7309                         if test "X$x" = "X$dir"; then
7310                           haveit=yes
7311                           break
7312                         fi
7313                       done
7314                       if test -z "$haveit"; then
7315                         ltrpathdirs="$ltrpathdirs $dir"
7316                       fi
7317                     fi
7318                     ;;
7319                   -l*)
7320                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7321                     ;;
7322                   *.la)
7323                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7324                     ;;
7325                   *)
7326                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7327                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7328                     ;;
7329                 esac
7330               done
7331             fi
7332           else
7333                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7334             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7335           fi
7336         fi
7337       fi
7338     done
7339   done
7340   if test "X$rpathdirs" != "X"; then
7341     if test -n "$hardcode_libdir_separator"; then
7342                         alldirs=
7343       for found_dir in $rpathdirs; do
7344         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7345       done
7346             acl_save_libdir="$libdir"
7347       libdir="$alldirs"
7348       eval flag=\"$hardcode_libdir_flag_spec\"
7349       libdir="$acl_save_libdir"
7350       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7351     else
7352             for found_dir in $rpathdirs; do
7353         acl_save_libdir="$libdir"
7354         libdir="$found_dir"
7355         eval flag=\"$hardcode_libdir_flag_spec\"
7356         libdir="$acl_save_libdir"
7357         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7358       done
7359     fi
7360   fi
7361   if test "X$ltrpathdirs" != "X"; then
7362             for found_dir in $ltrpathdirs; do
7363       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7364     done
7365   fi
7366
7367           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7368 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7369 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   gt_save_CPPFLAGS="$CPPFLAGS"
7373             CPPFLAGS="$CPPFLAGS $INCINTL"
7374             gt_save_LIBS="$LIBS"
7375             LIBS="$LIBS $LIBINTL"
7376                         cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h.  */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h.  */
7382 #include <libintl.h>
7383 extern int _nl_msg_cat_cntr;
7384 extern
7385 #ifdef __cplusplus
7386 "C"
7387 #endif
7388 const char *_nl_expand_alias (const char *);
7389 int
7390 main ()
7391 {
7392 bindtextdomain ("", "");
7393 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7394   ;
7395   return 0;
7396 }
7397 _ACEOF
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7400 case "(($ac_try" in
7401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402   *) ac_try_echo=$ac_try;;
7403 esac
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405   (eval "$ac_link") 2>conftest.er1
7406   ac_status=$?
7407   grep -v '^ *+' conftest.er1 >conftest.err
7408   rm -f conftest.er1
7409   cat conftest.err >&5
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } && {
7412          test -z "$ac_c_werror_flag" ||
7413          test ! -s conftest.err
7414        } && test -s conftest$ac_exeext &&
7415        $as_test_x conftest$ac_exeext; then
7416   gt_cv_func_gnugettext1_libintl=yes
7417 else
7418   echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421         gt_cv_func_gnugettext1_libintl=no
7422 fi
7423
7424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7425       conftest$ac_exeext conftest.$ac_ext
7426                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7427               LIBS="$LIBS $LIBICONV"
7428               cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h.  */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h.  */
7434 #include <libintl.h>
7435 extern int _nl_msg_cat_cntr;
7436 extern
7437 #ifdef __cplusplus
7438 "C"
7439 #endif
7440 const char *_nl_expand_alias (const char *);
7441 int
7442 main ()
7443 {
7444 bindtextdomain ("", "");
7445 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (ac_try="$ac_link"
7452 case "(($ac_try" in
7453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454   *) ac_try_echo=$ac_try;;
7455 esac
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457   (eval "$ac_link") 2>conftest.er1
7458   ac_status=$?
7459   grep -v '^ *+' conftest.er1 >conftest.err
7460   rm -f conftest.er1
7461   cat conftest.err >&5
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); } && {
7464          test -z "$ac_c_werror_flag" ||
7465          test ! -s conftest.err
7466        } && test -s conftest$ac_exeext &&
7467        $as_test_x conftest$ac_exeext; then
7468   LIBINTL="$LIBINTL $LIBICONV"
7469                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7470                 gt_cv_func_gnugettext1_libintl=yes
7471
7472 else
7473   echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476
7477 fi
7478
7479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7480       conftest$ac_exeext conftest.$ac_ext
7481             fi
7482             CPPFLAGS="$gt_save_CPPFLAGS"
7483             LIBS="$gt_save_LIBS"
7484 fi
7485 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7486 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7487         fi
7488
7489                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7490            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7491                 && test "$PACKAGE" != gettext-runtime \
7492                 && test "$PACKAGE" != gettext-tools; }; then
7493           gt_use_preinstalled_gnugettext=yes
7494         else
7495                     LIBINTL=
7496           LTLIBINTL=
7497           INCINTL=
7498         fi
7499
7500
7501
7502     if test -n "$INTL_MACOSX_LIBS"; then
7503       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7504          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7505                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7506         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7507       fi
7508     fi
7509
7510     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7511        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7512
7513 cat >>confdefs.h <<\_ACEOF
7514 #define ENABLE_NLS 1
7515 _ACEOF
7516
7517     else
7518       USE_NLS=no
7519     fi
7520   fi
7521
7522   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7523 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7524   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7525 echo "${ECHO_T}$USE_NLS" >&6; }
7526   if test "$USE_NLS" = "yes"; then
7527     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7528 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7529     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7530       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7531         gt_source="external libintl"
7532       else
7533         gt_source="libc"
7534       fi
7535     else
7536       gt_source="included intl directory"
7537     fi
7538     { echo "$as_me:$LINENO: result: $gt_source" >&5
7539 echo "${ECHO_T}$gt_source" >&6; }
7540   fi
7541
7542   if test "$USE_NLS" = "yes"; then
7543
7544     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7545       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7546         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7547 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7548         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7549 echo "${ECHO_T}$LIBINTL" >&6; }
7550
7551   for element in $INCINTL; do
7552     haveit=
7553     for x in $CPPFLAGS; do
7554
7555   acl_save_prefix="$prefix"
7556   prefix="$acl_final_prefix"
7557   acl_save_exec_prefix="$exec_prefix"
7558   exec_prefix="$acl_final_exec_prefix"
7559   eval x=\"$x\"
7560   exec_prefix="$acl_save_exec_prefix"
7561   prefix="$acl_save_prefix"
7562
7563       if test "X$x" = "X$element"; then
7564         haveit=yes
7565         break
7566       fi
7567     done
7568     if test -z "$haveit"; then
7569       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7570     fi
7571   done
7572
7573       fi
7574
7575
7576 cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_GETTEXT 1
7578 _ACEOF
7579
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_DCGETTEXT 1
7583 _ACEOF
7584
7585     fi
7586
7587         POSUB=po
7588   fi
7589
7590
7591
7592     INTLLIBS="$LIBINTL"
7593
7594
7595
7596
7597
7598
7599 if test x${prefix} = xNONE ; then
7600    if test `eval echo ${datadir}` = NONE/share ; then
7601       datadir=/usr/share
7602    fi
7603 fi
7604
7605 # ------------------------------------------------------------------
7606 #  If the user has not set --prefix, we set our default to nothing.
7607 #  In this case, if the user has not set --sysconfdir, we set it
7608 #  to the package default of /etc/bacula.  If either --prefix or
7609 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7610 # ------------------------------------------------------------------
7611 if test x${prefix} = xNONE ; then
7612     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7613         sysconfdir=/etc/bacula
7614     fi
7615     prefix=
7616 fi
7617 sysconfdir=`eval echo ${sysconfdir}`
7618 datadir=`eval echo ${datadir}`
7619 localedir=`eval echo ${datadir}/locale`
7620 cat >>confdefs.h <<_ACEOF
7621 #define LOCALEDIR "$localedir"
7622 _ACEOF
7623
7624 cat >>confdefs.h <<_ACEOF
7625 #define SYSCONFDIR "$sysconfdir"
7626 _ACEOF
7627
7628
7629 # -------------------------------------------------------------------------
7630 #  If the user has not set --exec-prefix, we default to ${prefix}
7631 # -------------------------------------------------------------------------
7632 if test x${exec_prefix} = xNONE ; then
7633     exec_prefix=${prefix}
7634 fi
7635
7636 # ------------------------------------------------------------------
7637 # If the user has not set --sbindir, we set our default as /sbin
7638 # ------------------------------------------------------------------
7639 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7640     sbindir=${exec_prefix}/sbin
7641 fi
7642 sbindir=`eval echo ${sbindir}`
7643
7644
7645 # -------------------------------------------------------------------------
7646 #  If the user has not set --mandir, we default to /usr/share/man
7647 # -------------------------------------------------------------------------
7648 if test x$mandir = x'${prefix}/man' ; then
7649    mandir=/usr/share/man
7650 fi
7651
7652
7653 for ac_prog in msgfmt
7654 do
7655   # Extract the first word of "$ac_prog", so it can be a program name with args.
7656 set dummy $ac_prog; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_MSGFMT+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   case $MSGFMT in
7663   [\\/]* | ?:[\\/]*)
7664   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7665   ;;
7666   *)
7667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672   for ac_exec_ext in '' $ac_executable_extensions; do
7673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682   ;;
7683 esac
7684 fi
7685 MSGFMT=$ac_cv_path_MSGFMT
7686 if test -n "$MSGFMT"; then
7687   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7688 echo "${ECHO_T}$MSGFMT" >&6; }
7689 else
7690   { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7692 fi
7693
7694
7695   test -n "$MSGFMT" && break
7696 done
7697 test -n "$MSGFMT" || MSGFMT="no"
7698
7699 if test "$MSGFMT" = "no"
7700 then
7701    echo 'msgfmt program not found, disabling NLS !'
7702    USE_NLS=no
7703    USE_INCLUDED_LIBINTL=no
7704 #else
7705
7706     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7707 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7708 if test "${ac_cv_gnu_library_2+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717
7718 #include <features.h>
7719 #ifdef __GNU_LIBRARY__
7720  #if (__GLIBC__ >= 2)
7721   Lucky GNU user
7722  #endif
7723 #endif
7724
7725 _ACEOF
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7728   ac_cv_gnu_library_2=yes
7729 else
7730   ac_cv_gnu_library_2=no
7731 fi
7732 rm -f conftest*
7733
7734
7735
7736 fi
7737 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7738 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7739
7740     GLIBC2="$ac_cv_gnu_library_2"
7741
7742
7743
7744         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7745 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7746 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lcposix  $LIBS"
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757
7758 /* Override any GCC internal prototype to avoid an error.
7759    Use char because int might match the return type of a GCC
7760    builtin and then its argument prototype would still apply.  */
7761 #ifdef __cplusplus
7762 extern "C"
7763 #endif
7764 char strerror ();
7765 int
7766 main ()
7767 {
7768 return strerror ();
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (ac_try="$ac_link"
7775 case "(($ac_try" in
7776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777   *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780   (eval "$ac_link") 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } && {
7787          test -z "$ac_c_werror_flag" ||
7788          test ! -s conftest.err
7789        } && test -s conftest$ac_exeext &&
7790        $as_test_x conftest$ac_exeext; then
7791   ac_cv_lib_cposix_strerror=yes
7792 else
7793   echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796         ac_cv_lib_cposix_strerror=no
7797 fi
7798
7799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7800       conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7802 fi
7803 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7804 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7805 if test $ac_cv_lib_cposix_strerror = yes; then
7806   LIBS="$LIBS -lcposix"
7807 fi
7808
7809
7810
7811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7813 if test "${ac_cv_header_stdc+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822 #include <stdlib.h>
7823 #include <stdarg.h>
7824 #include <string.h>
7825 #include <float.h>
7826
7827 int
7828 main ()
7829 {
7830
7831   ;
7832   return 0;
7833 }
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7837 case "(($ac_try" in
7838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839   *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842   (eval "$ac_compile") 2>conftest.er1
7843   ac_status=$?
7844   grep -v '^ *+' conftest.er1 >conftest.err
7845   rm -f conftest.er1
7846   cat conftest.err >&5
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); } && {
7849          test -z "$ac_c_werror_flag" ||
7850          test ! -s conftest.err
7851        } && test -s conftest.$ac_objext; then
7852   ac_cv_header_stdc=yes
7853 else
7854   echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857         ac_cv_header_stdc=no
7858 fi
7859
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861
7862 if test $ac_cv_header_stdc = yes; then
7863   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7864   cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h.  */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h.  */
7870 #include <string.h>
7871
7872 _ACEOF
7873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7874   $EGREP "memchr" >/dev/null 2>&1; then
7875   :
7876 else
7877   ac_cv_header_stdc=no
7878 fi
7879 rm -f conftest*
7880
7881 fi
7882
7883 if test $ac_cv_header_stdc = yes; then
7884   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <stdlib.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895   $EGREP "free" >/dev/null 2>&1; then
7896   :
7897 else
7898   ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906   if test "$cross_compiling" = yes; then
7907   :
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915 #include <ctype.h>
7916 #include <stdlib.h>
7917 #if ((' ' & 0x0FF) == 0x020)
7918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7920 #else
7921 # define ISLOWER(c) \
7922                    (('a' <= (c) && (c) <= 'i') \
7923                      || ('j' <= (c) && (c) <= 'r') \
7924                      || ('s' <= (c) && (c) <= 'z'))
7925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7926 #endif
7927
7928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7929 int
7930 main ()
7931 {
7932   int i;
7933   for (i = 0; i < 256; i++)
7934     if (XOR (islower (i), ISLOWER (i))
7935         || toupper (i) != TOUPPER (i))
7936       return 2;
7937   return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947   (eval "$ac_link") 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7951   { (case "(($ac_try" in
7952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953   *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956   (eval "$ac_try") 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; }; then
7960   :
7961 else
7962   echo "$as_me: program exited with status $ac_status" >&5
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 ( exit $ac_status )
7967 ac_cv_header_stdc=no
7968 fi
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7970 fi
7971
7972
7973 fi
7974 fi
7975 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7976 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7977 if test $ac_cv_header_stdc = yes; then
7978
7979 cat >>confdefs.h <<\_ACEOF
7980 #define STDC_HEADERS 1
7981 _ACEOF
7982
7983 fi
7984
7985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7987 if test "${ac_cv_c_const+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996
7997 int
7998 main ()
7999 {
8000 /* FIXME: Include the comments suggested by Paul. */
8001 #ifndef __cplusplus
8002   /* Ultrix mips cc rejects this.  */
8003   typedef int charset[2];
8004   const charset cs;
8005   /* SunOS 4.1.1 cc rejects this.  */
8006   char const *const *pcpcc;
8007   char **ppc;
8008   /* NEC SVR4.0.2 mips cc rejects this.  */
8009   struct point {int x, y;};
8010   static struct point const zero = {0,0};
8011   /* AIX XL C 1.02.0.0 rejects this.
8012      It does not let you subtract one const X* pointer from another in
8013      an arm of an if-expression whose if-part is not a constant
8014      expression */
8015   const char *g = "string";
8016   pcpcc = &g + (g ? g-g : 0);
8017   /* HPUX 7.0 cc rejects these. */
8018   ++pcpcc;
8019   ppc = (char**) pcpcc;
8020   pcpcc = (char const *const *) ppc;
8021   { /* SCO 3.2v4 cc rejects this.  */
8022     char *t;
8023     char const *s = 0 ? (char *) 0 : (char const *) 0;
8024
8025     *t++ = 0;
8026     if (s) return 0;
8027   }
8028   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8029     int x[] = {25, 17};
8030     const int *foo = &x[0];
8031     ++foo;
8032   }
8033   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8034     typedef const int *iptr;
8035     iptr p = 0;
8036     ++p;
8037   }
8038   { /* AIX XL C 1.02.0.0 rejects this saying
8039        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8040     struct s { int j; const int *ap[3]; };
8041     struct s *b; b->j = 5;
8042   }
8043   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8044     const int foo = 10;
8045     if (!foo) return 0;
8046   }
8047   return !cs[0] && !zero.x;
8048 #endif
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_compile") 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } && {
8068          test -z "$ac_c_werror_flag" ||
8069          test ! -s conftest.err
8070        } && test -s conftest.$ac_objext; then
8071   ac_cv_c_const=yes
8072 else
8073   echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076         ac_cv_c_const=no
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 fi
8081 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8082 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8083 if test $ac_cv_c_const = no; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define const
8087 _ACEOF
8088
8089 fi
8090
8091
8092   { echo "$as_me:$LINENO: checking for signed" >&5
8093 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8094 if test "${bh_cv_c_signed+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103
8104 int
8105 main ()
8106 {
8107 signed char x;
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8114 case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119   (eval "$ac_compile") 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } && {
8126          test -z "$ac_c_werror_flag" ||
8127          test ! -s conftest.err
8128        } && test -s conftest.$ac_objext; then
8129   bh_cv_c_signed=yes
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134         bh_cv_c_signed=no
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8140 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8141   if test $bh_cv_c_signed = no; then
8142
8143 cat >>confdefs.h <<\_ACEOF
8144 #define signed
8145 _ACEOF
8146
8147   fi
8148
8149 { echo "$as_me:$LINENO: checking for inline" >&5
8150 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8151 if test "${ac_cv_c_inline+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154   ac_cv_c_inline=no
8155 for ac_kw in inline __inline__ __inline; do
8156   cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162 #ifndef __cplusplus
8163 typedef int foo_t;
8164 static $ac_kw foo_t static_foo () {return 0; }
8165 $ac_kw foo_t foo () {return 0; }
8166 #endif
8167
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8171 case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176   (eval "$ac_compile") 2>conftest.er1
8177   ac_status=$?
8178   grep -v '^ *+' conftest.er1 >conftest.err
8179   rm -f conftest.er1
8180   cat conftest.err >&5
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); } && {
8183          test -z "$ac_c_werror_flag" ||
8184          test ! -s conftest.err
8185        } && test -s conftest.$ac_objext; then
8186   ac_cv_c_inline=$ac_kw
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191
8192 fi
8193
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195   test "$ac_cv_c_inline" != no && break
8196 done
8197
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8200 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8201
8202
8203 case $ac_cv_c_inline in
8204   inline | yes) ;;
8205   *)
8206     case $ac_cv_c_inline in
8207       no) ac_val=;;
8208       *) ac_val=$ac_cv_c_inline;;
8209     esac
8210     cat >>confdefs.h <<_ACEOF
8211 #ifndef __cplusplus
8212 #define inline $ac_val
8213 #endif
8214 _ACEOF
8215     ;;
8216 esac
8217
8218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8229                   inttypes.h stdint.h unistd.h
8230 do
8231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 $ac_includes_default
8244
8245 #include <$ac_header>
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251   *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254   (eval "$ac_compile") 2>conftest.er1
8255   ac_status=$?
8256   grep -v '^ *+' conftest.er1 >conftest.err
8257   rm -f conftest.er1
8258   cat conftest.err >&5
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } && {
8261          test -z "$ac_c_werror_flag" ||
8262          test ! -s conftest.err
8263        } && test -s conftest.$ac_objext; then
8264   eval "$as_ac_Header=yes"
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269         eval "$as_ac_Header=no"
8270 fi
8271
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 fi
8274 ac_res=`eval echo '${'$as_ac_Header'}'`
8275                { echo "$as_me:$LINENO: result: $ac_res" >&5
8276 echo "${ECHO_T}$ac_res" >&6; }
8277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8278   cat >>confdefs.h <<_ACEOF
8279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8280 _ACEOF
8281
8282 fi
8283
8284 done
8285
8286
8287 { echo "$as_me:$LINENO: checking for off_t" >&5
8288 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8289 if test "${ac_cv_type_off_t+set}" = set; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 $ac_includes_default
8299 typedef off_t ac__type_new_;
8300 int
8301 main ()
8302 {
8303 if ((ac__type_new_ *) 0)
8304   return 0;
8305 if (sizeof (ac__type_new_))
8306   return 0;
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8313 case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_compile") 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } && {
8325          test -z "$ac_c_werror_flag" ||
8326          test ! -s conftest.err
8327        } && test -s conftest.$ac_objext; then
8328   ac_cv_type_off_t=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333         ac_cv_type_off_t=no
8334 fi
8335
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8339 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8340 if test $ac_cv_type_off_t = yes; then
8341   :
8342 else
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define off_t long int
8346 _ACEOF
8347
8348 fi
8349
8350 { echo "$as_me:$LINENO: checking for size_t" >&5
8351 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8352 if test "${ac_cv_type_size_t+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 $ac_includes_default
8362 typedef size_t ac__type_new_;
8363 int
8364 main ()
8365 {
8366 if ((ac__type_new_ *) 0)
8367   return 0;
8368 if (sizeof (ac__type_new_))
8369   return 0;
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8376 case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_compile") 2>conftest.er1
8382   ac_status=$?
8383   grep -v '^ *+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } && {
8388          test -z "$ac_c_werror_flag" ||
8389          test ! -s conftest.err
8390        } && test -s conftest.$ac_objext; then
8391   ac_cv_type_size_t=yes
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396         ac_cv_type_size_t=no
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8402 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8403 if test $ac_cv_type_size_t = yes; then
8404   :
8405 else
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define size_t unsigned int
8409 _ACEOF
8410
8411 fi
8412
8413
8414   { echo "$as_me:$LINENO: checking for long long" >&5
8415 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8416 if test "${ac_cv_type_long_long+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 long long ll = 1LL; int i = 63;
8426 int
8427 main ()
8428 {
8429 long long llmax = (long long) -1;
8430      return ll << i | ll >> i | llmax / ll | llmax % ll;
8431   ;
8432   return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8437 case "(($ac_try" in
8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439   *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442   (eval "$ac_link") 2>conftest.er1
8443   ac_status=$?
8444   grep -v '^ *+' conftest.er1 >conftest.err
8445   rm -f conftest.er1
8446   cat conftest.err >&5
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } && {
8449          test -z "$ac_c_werror_flag" ||
8450          test ! -s conftest.err
8451        } && test -s conftest$ac_exeext &&
8452        $as_test_x conftest$ac_exeext; then
8453   ac_cv_type_long_long=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458         ac_cv_type_long_long=no
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8462       conftest$ac_exeext conftest.$ac_ext
8463 fi
8464 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8465 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8466   if test $ac_cv_type_long_long = yes; then
8467
8468 cat >>confdefs.h <<\_ACEOF
8469 #define HAVE_LONG_LONG 1
8470 _ACEOF
8471
8472   fi
8473
8474
8475   { echo "$as_me:$LINENO: checking for long double" >&5
8476 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8477 if test "${gt_cv_c_long_double+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   if test "$GCC" = yes; then
8481        gt_cv_c_long_double=yes
8482      else
8483        cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489
8490          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8491          long double foo = 0.0;
8492          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8493          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8494
8495 int
8496 main ()
8497 {
8498
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8505 case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510   (eval "$ac_compile") 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } && {
8517          test -z "$ac_c_werror_flag" ||
8518          test ! -s conftest.err
8519        } && test -s conftest.$ac_objext; then
8520   gt_cv_c_long_double=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525         gt_cv_c_long_double=no
8526 fi
8527
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529      fi
8530 fi
8531 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8532 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8533   if test $gt_cv_c_long_double = yes; then
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define HAVE_LONG_DOUBLE 1
8537 _ACEOF
8538
8539   fi
8540
8541
8542   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8543 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8544 if test "${gt_cv_c_wchar_t+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   cat >conftest.$ac_ext <<_ACEOF
8548 /* confdefs.h.  */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h.  */
8553 #include <stddef.h>
8554        wchar_t foo = (wchar_t)'\0';
8555 int
8556 main ()
8557 {
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570   (eval "$ac_compile") 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } && {
8577          test -z "$ac_c_werror_flag" ||
8578          test ! -s conftest.err
8579        } && test -s conftest.$ac_objext; then
8580   gt_cv_c_wchar_t=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585         gt_cv_c_wchar_t=no
8586 fi
8587
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8591 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8592   if test $gt_cv_c_wchar_t = yes; then
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_WCHAR_T 1
8596 _ACEOF
8597
8598   fi
8599
8600
8601   { echo "$as_me:$LINENO: checking for wint_t" >&5
8602 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8603 if test "${gt_cv_c_wint_t+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612 #include <wchar.h>
8613        wint_t foo = (wchar_t)'\0';
8614 int
8615 main ()
8616 {
8617
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8624 case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_compile") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } && {
8636          test -z "$ac_c_werror_flag" ||
8637          test ! -s conftest.err
8638        } && test -s conftest.$ac_objext; then
8639   gt_cv_c_wint_t=yes
8640 else
8641   echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644         gt_cv_c_wint_t=no
8645 fi
8646
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8650 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8651   if test $gt_cv_c_wint_t = yes; then
8652
8653 cat >>confdefs.h <<\_ACEOF
8654 #define HAVE_WINT_T 1
8655 _ACEOF
8656
8657   fi
8658
8659
8660   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8661 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8662 if test "${gl_cv_header_inttypes_h+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 #include <sys/types.h>
8672 #include <inttypes.h>
8673 int
8674 main ()
8675 {
8676 uintmax_t i = (uintmax_t) -1;
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685   *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688   (eval "$ac_compile") 2>conftest.er1
8689   ac_status=$?
8690   grep -v '^ *+' conftest.er1 >conftest.err
8691   rm -f conftest.er1
8692   cat conftest.err >&5
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); } && {
8695          test -z "$ac_c_werror_flag" ||
8696          test ! -s conftest.err
8697        } && test -s conftest.$ac_objext; then
8698   gl_cv_header_inttypes_h=yes
8699 else
8700   echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703         gl_cv_header_inttypes_h=no
8704 fi
8705
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8709 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8710   if test $gl_cv_header_inttypes_h = yes; then
8711
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8714 _ACEOF
8715
8716   fi
8717
8718
8719   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8720 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8721 if test "${gl_cv_header_stdint_h+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730 #include <sys/types.h>
8731 #include <stdint.h>
8732 int
8733 main ()
8734 {
8735 uintmax_t i = (uintmax_t) -1;
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (ac_try="$ac_compile"
8742 case "(($ac_try" in
8743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744   *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747   (eval "$ac_compile") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } && {
8754          test -z "$ac_c_werror_flag" ||
8755          test ! -s conftest.err
8756        } && test -s conftest.$ac_objext; then
8757   gl_cv_header_stdint_h=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762         gl_cv_header_stdint_h=no
8763 fi
8764
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8768 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8769   if test $gl_cv_header_stdint_h = yes; then
8770
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_STDINT_H_WITH_UINTMAX 1
8773 _ACEOF
8774
8775   fi
8776
8777
8778
8779
8780   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8781 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8782 if test "${gt_cv_c_intmax_t+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h.  */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h.  */
8791
8792 #include <stddef.h>
8793 #include <stdlib.h>
8794 #if HAVE_STDINT_H_WITH_UINTMAX
8795 #include <stdint.h>
8796 #endif
8797 #if HAVE_INTTYPES_H_WITH_UINTMAX
8798 #include <inttypes.h>
8799 #endif
8800
8801 int
8802 main ()
8803 {
8804 intmax_t x = -1;
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813   *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816   (eval "$ac_compile") 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } && {
8823          test -z "$ac_c_werror_flag" ||
8824          test ! -s conftest.err
8825        } && test -s conftest.$ac_objext; then
8826   gt_cv_c_intmax_t=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831         gt_cv_c_intmax_t=no
8832 fi
8833
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8837 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8838   if test $gt_cv_c_intmax_t = yes; then
8839
8840 cat >>confdefs.h <<\_ACEOF
8841 #define HAVE_INTMAX_T 1
8842 _ACEOF
8843
8844   fi
8845
8846
8847
8848   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8849 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8850 if test "${gt_cv_func_printf_posix+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853
8854       if test "$cross_compiling" = yes; then
8855
8856         cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h.  */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h.  */
8862
8863 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8864   notposix
8865 #endif
8866
8867 _ACEOF
8868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8869   $EGREP "notposix" >/dev/null 2>&1; then
8870   gt_cv_func_printf_posix="guessing no"
8871 else
8872   gt_cv_func_printf_posix="guessing yes"
8873 fi
8874 rm -f conftest*
8875
8876
8877 else
8878   cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884
8885 #include <stdio.h>
8886 #include <string.h>
8887 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8888    dollar expansion (possibly an autoconf bug).  */
8889 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8890 static char buf[100];
8891 int main ()
8892 {
8893   sprintf (buf, format, 33, 55);
8894   return (strcmp (buf, "55 33") != 0);
8895 }
8896 _ACEOF
8897 rm -f conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8899 case "(($ac_try" in
8900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901   *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904   (eval "$ac_link") 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8908   { (case "(($ac_try" in
8909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910   *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913   (eval "$ac_try") 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   gt_cv_func_printf_posix=yes
8918 else
8919   echo "$as_me: program exited with status $ac_status" >&5
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 ( exit $ac_status )
8924 gt_cv_func_printf_posix=no
8925 fi
8926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8927 fi
8928
8929
8930
8931 fi
8932 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8933 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8934   case $gt_cv_func_printf_posix in
8935     *yes)
8936
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_POSIX_PRINTF 1
8939 _ACEOF
8940
8941       ;;
8942   esac
8943
8944 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8945 # for constant arguments.  Useless!
8946 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8947 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8948 if test "${ac_cv_working_alloca_h+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 #include <alloca.h>
8958 int
8959 main ()
8960 {
8961 char *p = (char *) alloca (2 * sizeof (int));
8962                           if (p) return 0;
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (ac_try="$ac_link"
8969 case "(($ac_try" in
8970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971   *) ac_try_echo=$ac_try;;
8972 esac
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974   (eval "$ac_link") 2>conftest.er1
8975   ac_status=$?
8976   grep -v '^ *+' conftest.er1 >conftest.err
8977   rm -f conftest.er1
8978   cat conftest.err >&5
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } && {
8981          test -z "$ac_c_werror_flag" ||
8982          test ! -s conftest.err
8983        } && test -s conftest$ac_exeext &&
8984        $as_test_x conftest$ac_exeext; then
8985   ac_cv_working_alloca_h=yes
8986 else
8987   echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990         ac_cv_working_alloca_h=no
8991 fi
8992
8993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8994       conftest$ac_exeext conftest.$ac_ext
8995 fi
8996 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8997 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8998 if test $ac_cv_working_alloca_h = yes; then
8999
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_ALLOCA_H 1
9002 _ACEOF
9003
9004 fi
9005
9006 { echo "$as_me:$LINENO: checking for alloca" >&5
9007 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9008 if test "${ac_cv_func_alloca_works+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017 #ifdef __GNUC__
9018 # define alloca __builtin_alloca
9019 #else
9020 # ifdef _MSC_VER
9021 #  include <malloc.h>
9022 #  define alloca _alloca
9023 # else
9024 #  ifdef HAVE_ALLOCA_H
9025 #   include <alloca.h>
9026 #  else
9027 #   ifdef _AIX
9028  #pragma alloca
9029 #   else
9030 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9031 char *alloca ();
9032 #    endif
9033 #   endif
9034 #  endif
9035 # endif
9036 #endif
9037
9038 int
9039 main ()
9040 {
9041 char *p = (char *) alloca (1);
9042                                     if (p) return 0;
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9049 case "(($ac_try" in
9050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051   *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054   (eval "$ac_link") 2>conftest.er1
9055   ac_status=$?
9056   grep -v '^ *+' conftest.er1 >conftest.err
9057   rm -f conftest.er1
9058   cat conftest.err >&5
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); } && {
9061          test -z "$ac_c_werror_flag" ||
9062          test ! -s conftest.err
9063        } && test -s conftest$ac_exeext &&
9064        $as_test_x conftest$ac_exeext; then
9065   ac_cv_func_alloca_works=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070         ac_cv_func_alloca_works=no
9071 fi
9072
9073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9074       conftest$ac_exeext conftest.$ac_ext
9075 fi
9076 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9077 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9078
9079 if test $ac_cv_func_alloca_works = yes; then
9080
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_ALLOCA 1
9083 _ACEOF
9084
9085 else
9086   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9087 # that cause trouble.  Some versions do not even contain alloca or
9088 # contain a buggy version.  If you still want to use their alloca,
9089 # use ar to extract alloca.o from them instead of compiling alloca.c.
9090
9091 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9092
9093 cat >>confdefs.h <<\_ACEOF
9094 #define C_ALLOCA 1
9095 _ACEOF
9096
9097
9098 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9099 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9100 if test "${ac_cv_os_cray+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109 #if defined CRAY && ! defined CRAY2
9110 webecray
9111 #else
9112 wenotbecray
9113 #endif
9114
9115 _ACEOF
9116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9117   $EGREP "webecray" >/dev/null 2>&1; then
9118   ac_cv_os_cray=yes
9119 else
9120   ac_cv_os_cray=no
9121 fi
9122 rm -f conftest*
9123
9124 fi
9125 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9126 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9127 if test $ac_cv_os_cray = yes; then
9128   for ac_func in _getb67 GETB67 getb67; do
9129     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9143 #define $ac_func innocuous_$ac_func
9144
9145 /* System header to define __stub macros and hopefully few prototypes,
9146     which can conflict with char $ac_func (); below.
9147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148     <limits.h> exists even on freestanding compilers.  */
9149
9150 #ifdef __STDC__
9151 # include <limits.h>
9152 #else
9153 # include <assert.h>
9154 #endif
9155
9156 #undef $ac_func
9157
9158 /* Override any GCC internal prototype to avoid an error.
9159    Use char because int might match the return type of a GCC
9160    builtin and then its argument prototype would still apply.  */
9161 #ifdef __cplusplus
9162 extern "C"
9163 #endif
9164 char $ac_func ();
9165 /* The GNU C library defines this for functions which it implements
9166     to always fail with ENOSYS.  Some functions are actually named
9167     something starting with __ and the normal name is an alias.  */
9168 #if defined __stub_$ac_func || defined __stub___$ac_func
9169 choke me
9170 #endif
9171
9172 int
9173 main ()
9174 {
9175 return $ac_func ();
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (ac_try="$ac_link"
9182 case "(($ac_try" in
9183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184   *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187   (eval "$ac_link") 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && {
9194          test -z "$ac_c_werror_flag" ||
9195          test ! -s conftest.err
9196        } && test -s conftest$ac_exeext &&
9197        $as_test_x conftest$ac_exeext; then
9198   eval "$as_ac_var=yes"
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203         eval "$as_ac_var=no"
9204 fi
9205
9206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207       conftest$ac_exeext conftest.$ac_ext
9208 fi
9209 ac_res=`eval echo '${'$as_ac_var'}'`
9210                { echo "$as_me:$LINENO: result: $ac_res" >&5
9211 echo "${ECHO_T}$ac_res" >&6; }
9212 if test `eval echo '${'$as_ac_var'}'` = yes; then
9213
9214 cat >>confdefs.h <<_ACEOF
9215 #define CRAY_STACKSEG_END $ac_func
9216 _ACEOF
9217
9218     break
9219 fi
9220
9221   done
9222 fi
9223
9224 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9225 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9226 if test "${ac_cv_c_stack_direction+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   if test "$cross_compiling" = yes; then
9230   ac_cv_c_stack_direction=0
9231 else
9232   cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238 $ac_includes_default
9239 int
9240 find_stack_direction ()
9241 {
9242   static char *addr = 0;
9243   auto char dummy;
9244   if (addr == 0)
9245     {
9246       addr = &dummy;
9247       return find_stack_direction ();
9248     }
9249   else
9250     return (&dummy > addr) ? 1 : -1;
9251 }
9252
9253 int
9254 main ()
9255 {
9256   return find_stack_direction () < 0;
9257 }
9258 _ACEOF
9259 rm -f conftest$ac_exeext
9260 if { (ac_try="$ac_link"
9261 case "(($ac_try" in
9262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263   *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266   (eval "$ac_link") 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9270   { (case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_try") 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; }; then
9279   ac_cv_c_stack_direction=1
9280 else
9281   echo "$as_me: program exited with status $ac_status" >&5
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285 ( exit $ac_status )
9286 ac_cv_c_stack_direction=-1
9287 fi
9288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9289 fi
9290
9291
9292 fi
9293 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9294 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9295
9296 cat >>confdefs.h <<_ACEOF
9297 #define STACK_DIRECTION $ac_cv_c_stack_direction
9298 _ACEOF
9299
9300
9301 fi
9302
9303
9304
9305 for ac_header in stdlib.h unistd.h
9306 do
9307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9309   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 fi
9314 ac_res=`eval echo '${'$as_ac_Header'}'`
9315                { echo "$as_me:$LINENO: result: $ac_res" >&5
9316 echo "${ECHO_T}$ac_res" >&6; }
9317 else
9318   # Is the header compilable?
9319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327 $ac_includes_default
9328 #include <$ac_header>
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9332 case "(($ac_try" in
9333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334   *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337   (eval "$ac_compile") 2>conftest.er1
9338   ac_status=$?
9339   grep -v '^ *+' conftest.er1 >conftest.err
9340   rm -f conftest.er1
9341   cat conftest.err >&5
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } && {
9344          test -z "$ac_c_werror_flag" ||
9345          test ! -s conftest.err
9346        } && test -s conftest.$ac_objext; then
9347   ac_header_compiler=yes
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352         ac_header_compiler=no
9353 fi
9354
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9357 echo "${ECHO_T}$ac_header_compiler" >&6; }
9358
9359 # Is the header present?
9360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h.  */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h.  */
9368 #include <$ac_header>
9369 _ACEOF
9370 if { (ac_try="$ac_cpp conftest.$ac_ext"
9371 case "(($ac_try" in
9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373   *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9377   ac_status=$?
9378   grep -v '^ *+' conftest.er1 >conftest.err
9379   rm -f conftest.er1
9380   cat conftest.err >&5
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } >/dev/null && {
9383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9384          test ! -s conftest.err
9385        }; then
9386   ac_header_preproc=yes
9387 else
9388   echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391   ac_header_preproc=no
9392 fi
9393
9394 rm -f conftest.err conftest.$ac_ext
9395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9396 echo "${ECHO_T}$ac_header_preproc" >&6; }
9397
9398 # So?  What about this header?
9399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9400   yes:no: )
9401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9405     ac_header_preproc=yes
9406     ;;
9407   no:yes:* )
9408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9420
9421     ;;
9422 esac
9423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   eval "$as_ac_Header=\$ac_header_preproc"
9429 fi
9430 ac_res=`eval echo '${'$as_ac_Header'}'`
9431                { echo "$as_me:$LINENO: result: $ac_res" >&5
9432 echo "${ECHO_T}$ac_res" >&6; }
9433
9434 fi
9435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9436   cat >>confdefs.h <<_ACEOF
9437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9438 _ACEOF
9439
9440 fi
9441
9442 done
9443
9444
9445 for ac_func in getpagesize
9446 do
9447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453   cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h.  */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h.  */
9459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9461 #define $ac_func innocuous_$ac_func
9462
9463 /* System header to define __stub macros and hopefully few prototypes,
9464     which can conflict with char $ac_func (); below.
9465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9466     <limits.h> exists even on freestanding compilers.  */
9467
9468 #ifdef __STDC__
9469 # include <limits.h>
9470 #else
9471 # include <assert.h>
9472 #endif
9473
9474 #undef $ac_func
9475
9476 /* Override any GCC internal prototype to avoid an error.
9477    Use char because int might match the return type of a GCC
9478    builtin and then its argument prototype would still apply.  */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 char $ac_func ();
9483 /* The GNU C library defines this for functions which it implements
9484     to always fail with ENOSYS.  Some functions are actually named
9485     something starting with __ and the normal name is an alias.  */
9486 #if defined __stub_$ac_func || defined __stub___$ac_func
9487 choke me
9488 #endif
9489
9490 int
9491 main ()
9492 {
9493 return $ac_func ();
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9500 case "(($ac_try" in
9501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502   *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505   (eval "$ac_link") 2>conftest.er1
9506   ac_status=$?
9507   grep -v '^ *+' conftest.er1 >conftest.err
9508   rm -f conftest.er1
9509   cat conftest.err >&5
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } && {
9512          test -z "$ac_c_werror_flag" ||
9513          test ! -s conftest.err
9514        } && test -s conftest$ac_exeext &&
9515        $as_test_x conftest$ac_exeext; then
9516   eval "$as_ac_var=yes"
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521         eval "$as_ac_var=no"
9522 fi
9523
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525       conftest$ac_exeext conftest.$ac_ext
9526 fi
9527 ac_res=`eval echo '${'$as_ac_var'}'`
9528                { echo "$as_me:$LINENO: result: $ac_res" >&5
9529 echo "${ECHO_T}$ac_res" >&6; }
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531   cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533 _ACEOF
9534
9535 fi
9536 done
9537
9538 { echo "$as_me:$LINENO: checking for working mmap" >&5
9539 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   if test "$cross_compiling" = yes; then
9544   ac_cv_func_mmap_fixed_mapped=no
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 $ac_includes_default
9553 /* malloc might have been renamed as rpl_malloc. */
9554 #undef malloc
9555
9556 /* Thanks to Mike Haertel and Jim Avera for this test.
9557    Here is a matrix of mmap possibilities:
9558         mmap private not fixed
9559         mmap private fixed at somewhere currently unmapped
9560         mmap private fixed at somewhere already mapped
9561         mmap shared not fixed
9562         mmap shared fixed at somewhere currently unmapped
9563         mmap shared fixed at somewhere already mapped
9564    For private mappings, we should verify that changes cannot be read()
9565    back from the file, nor mmap's back from the file at a different
9566    address.  (There have been systems where private was not correctly
9567    implemented like the infamous i386 svr4.0, and systems where the
9568    VM page cache was not coherent with the file system buffer cache
9569    like early versions of FreeBSD and possibly contemporary NetBSD.)
9570    For shared mappings, we should conversely verify that changes get
9571    propagated back to all the places they're supposed to be.
9572
9573    Grep wants private fixed already mapped.
9574    The main things grep needs to know about mmap are:
9575    * does it exist and is it safe to write into the mmap'd area
9576    * how to use it (BSD variants)  */
9577
9578 #include <fcntl.h>
9579 #include <sys/mman.h>
9580
9581 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9582 char *malloc ();
9583 #endif
9584
9585 /* This mess was copied from the GNU getpagesize.h.  */
9586 #ifndef HAVE_GETPAGESIZE
9587 /* Assume that all systems that can run configure have sys/param.h.  */
9588 # ifndef HAVE_SYS_PARAM_H
9589 #  define HAVE_SYS_PARAM_H 1
9590 # endif
9591
9592 # ifdef _SC_PAGESIZE
9593 #  define getpagesize() sysconf(_SC_PAGESIZE)
9594 # else /* no _SC_PAGESIZE */
9595 #  ifdef HAVE_SYS_PARAM_H
9596 #   include <sys/param.h>
9597 #   ifdef EXEC_PAGESIZE
9598 #    define getpagesize() EXEC_PAGESIZE
9599 #   else /* no EXEC_PAGESIZE */
9600 #    ifdef NBPG
9601 #     define getpagesize() NBPG * CLSIZE
9602 #     ifndef CLSIZE
9603 #      define CLSIZE 1
9604 #     endif /* no CLSIZE */
9605 #    else /* no NBPG */
9606 #     ifdef NBPC
9607 #      define getpagesize() NBPC
9608 #     else /* no NBPC */
9609 #      ifdef PAGESIZE
9610 #       define getpagesize() PAGESIZE
9611 #      endif /* PAGESIZE */
9612 #     endif /* no NBPC */
9613 #    endif /* no NBPG */
9614 #   endif /* no EXEC_PAGESIZE */
9615 #  else /* no HAVE_SYS_PARAM_H */
9616 #   define getpagesize() 8192   /* punt totally */
9617 #  endif /* no HAVE_SYS_PARAM_H */
9618 # endif /* no _SC_PAGESIZE */
9619
9620 #endif /* no HAVE_GETPAGESIZE */
9621
9622 int
9623 main ()
9624 {
9625   char *data, *data2, *data3;
9626   int i, pagesize;
9627   int fd;
9628
9629   pagesize = getpagesize ();
9630
9631   /* First, make a file with some known garbage in it. */
9632   data = (char *) malloc (pagesize);
9633   if (!data)
9634     return 1;
9635   for (i = 0; i < pagesize; ++i)
9636     *(data + i) = rand ();
9637   umask (0);
9638   fd = creat ("conftest.mmap", 0600);
9639   if (fd < 0)
9640     return 1;
9641   if (write (fd, data, pagesize) != pagesize)
9642     return 1;
9643   close (fd);
9644
9645   /* Next, try to mmap the file at a fixed address which already has
9646      something else allocated at it.  If we can, also make sure that
9647      we see the same garbage.  */
9648   fd = open ("conftest.mmap", O_RDWR);
9649   if (fd < 0)
9650     return 1;
9651   data2 = (char *) malloc (2 * pagesize);
9652   if (!data2)
9653     return 1;
9654   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9655   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9656                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9657     return 1;
9658   for (i = 0; i < pagesize; ++i)
9659     if (*(data + i) != *(data2 + i))
9660       return 1;
9661
9662   /* Finally, make sure that changes to the mapped area do not
9663      percolate back to the file as seen by read().  (This is a bug on
9664      some variants of i386 svr4.0.)  */
9665   for (i = 0; i < pagesize; ++i)
9666     *(data2 + i) = *(data2 + i) + 1;
9667   data3 = (char *) malloc (pagesize);
9668   if (!data3)
9669     return 1;
9670   if (read (fd, data3, pagesize) != pagesize)
9671     return 1;
9672   for (i = 0; i < pagesize; ++i)
9673     if (*(data + i) != *(data3 + i))
9674       return 1;
9675   close (fd);
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9681 case "(($ac_try" in
9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683   *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686   (eval "$ac_link") 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9690   { (case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_try") 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_cv_func_mmap_fixed_mapped=yes
9700 else
9701   echo "$as_me: program exited with status $ac_status" >&5
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ( exit $ac_status )
9706 ac_cv_func_mmap_fixed_mapped=no
9707 fi
9708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9709 fi
9710
9711
9712 fi
9713 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9714 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9715 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9716
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_MMAP 1
9719 _ACEOF
9720
9721 fi
9722 rm -f conftest.mmap
9723
9724
9725     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9726 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9727 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 #include <features.h>
9738 #ifdef __GNU_LIBRARY__
9739  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9740   Lucky GNU user
9741  #endif
9742 #endif
9743
9744 _ACEOF
9745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9746   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9747   ac_cv_gnu_library_2_1=yes
9748 else
9749   ac_cv_gnu_library_2_1=no
9750 fi
9751 rm -f conftest*
9752
9753
9754
9755 fi
9756 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9757 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9758
9759     GLIBC21="$ac_cv_gnu_library_2_1"
9760
9761
9762
9763
9764   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9765 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9766 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769
9770       if test "$cross_compiling" = yes; then
9771
9772           # Guess based on the CPU.
9773           case "$host_cpu" in
9774             alpha* | i3456786 | m68k | s390*)
9775               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9776             *)
9777               gt_cv_int_divbyzero_sigfpe="guessing no";;
9778           esac
9779
9780 else
9781   cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787
9788 #include <stdlib.h>
9789 #include <signal.h>
9790
9791 static void
9792 #ifdef __cplusplus
9793 sigfpe_handler (int sig)
9794 #else
9795 sigfpe_handler (sig) int sig;
9796 #endif
9797 {
9798   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9799   exit (sig != SIGFPE);
9800 }
9801
9802 int x = 1;
9803 int y = 0;
9804 int z;
9805 int nan;
9806
9807 int main ()
9808 {
9809   signal (SIGFPE, sigfpe_handler);
9810 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9811 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9812   signal (SIGTRAP, sigfpe_handler);
9813 #endif
9814 /* Linux/SPARC yields signal SIGILL.  */
9815 #if defined (__sparc__) && defined (__linux__)
9816   signal (SIGILL, sigfpe_handler);
9817 #endif
9818
9819   z = x / y;
9820   nan = y / y;
9821   exit (1);
9822 }
9823
9824 _ACEOF
9825 rm -f conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9827 case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_link") 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9836   { (case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841   (eval "$ac_try") 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   gt_cv_int_divbyzero_sigfpe=yes
9846 else
9847   echo "$as_me: program exited with status $ac_status" >&5
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ( exit $ac_status )
9852 gt_cv_int_divbyzero_sigfpe=no
9853 fi
9854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9855 fi
9856
9857
9858
9859 fi
9860 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9861 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9862   case "$gt_cv_int_divbyzero_sigfpe" in
9863     *yes) value=1;;
9864     *) value=0;;
9865   esac
9866
9867 cat >>confdefs.h <<_ACEOF
9868 #define INTDIV0_RAISES_SIGFPE $value
9869 _ACEOF
9870
9871
9872
9873   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9874 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9875 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884 unsigned long long ull = 1ULL; int i = 63;
9885 int
9886 main ()
9887 {
9888 unsigned long long ullmax = (unsigned long long) -1;
9889      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (ac_try="$ac_link"
9896 case "(($ac_try" in
9897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898   *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901   (eval "$ac_link") 2>conftest.er1
9902   ac_status=$?
9903   grep -v '^ *+' conftest.er1 >conftest.err
9904   rm -f conftest.er1
9905   cat conftest.err >&5
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } && {
9908          test -z "$ac_c_werror_flag" ||
9909          test ! -s conftest.err
9910        } && test -s conftest$ac_exeext &&
9911        $as_test_x conftest$ac_exeext; then
9912   ac_cv_type_unsigned_long_long=yes
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917         ac_cv_type_unsigned_long_long=no
9918 fi
9919
9920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921       conftest$ac_exeext conftest.$ac_ext
9922 fi
9923 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9924 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9925   if test $ac_cv_type_unsigned_long_long = yes; then
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_UNSIGNED_LONG_LONG 1
9929 _ACEOF
9930
9931   fi
9932
9933
9934
9935
9936   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9937
9938     test $ac_cv_type_unsigned_long_long = yes \
9939       && ac_type='unsigned long long' \
9940       || ac_type='unsigned long'
9941
9942 cat >>confdefs.h <<_ACEOF
9943 #define uintmax_t $ac_type
9944 _ACEOF
9945
9946   else
9947
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_UINTMAX_T 1
9950 _ACEOF
9951
9952   fi
9953
9954
9955   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9956 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9957 if test "${gt_cv_header_inttypes_h+set}" = set; then
9958   echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960
9961     cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 #include <sys/types.h>
9968 #include <inttypes.h>
9969 int
9970 main ()
9971 {
9972
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext
9978 if { (ac_try="$ac_compile"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_compile") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } && {
9991          test -z "$ac_c_werror_flag" ||
9992          test ! -s conftest.err
9993        } && test -s conftest.$ac_objext; then
9994   gt_cv_header_inttypes_h=yes
9995 else
9996   echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999         gt_cv_header_inttypes_h=no
10000 fi
10001
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003
10004 fi
10005 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10006 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10007   if test $gt_cv_header_inttypes_h = yes; then
10008
10009 cat >>confdefs.h <<_ACEOF
10010 #define HAVE_INTTYPES_H 1
10011 _ACEOF
10012
10013   fi
10014
10015
10016
10017   if test $gt_cv_header_inttypes_h = yes; then
10018     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10019 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10020 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023
10024         cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030 #include <inttypes.h>
10031 #ifdef PRId32
10032 char *p = PRId32;
10033 #endif
10034
10035 int
10036 main ()
10037 {
10038
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext
10044 if { (ac_try="$ac_compile"
10045 case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_compile") 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && {
10057          test -z "$ac_c_werror_flag" ||
10058          test ! -s conftest.err
10059        } && test -s conftest.$ac_objext; then
10060   gt_cv_inttypes_pri_broken=no
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065         gt_cv_inttypes_pri_broken=yes
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069
10070 fi
10071 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10072 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10073   fi
10074   if test "$gt_cv_inttypes_pri_broken" = yes; then
10075
10076 cat >>confdefs.h <<_ACEOF
10077 #define PRI_MACROS_BROKEN 1
10078 _ACEOF
10079
10080   fi
10081
10082
10083
10084 for ac_header in stdint.h
10085 do
10086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 fi
10093 ac_res=`eval echo '${'$as_ac_Header'}'`
10094                { echo "$as_me:$LINENO: result: $ac_res" >&5
10095 echo "${ECHO_T}$ac_res" >&6; }
10096 else
10097   # Is the header compilable?
10098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106 $ac_includes_default
10107 #include <$ac_header>
10108 _ACEOF
10109 rm -f conftest.$ac_objext
10110 if { (ac_try="$ac_compile"
10111 case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_compile") 2>conftest.er1
10117   ac_status=$?
10118   grep -v '^ *+' conftest.er1 >conftest.err
10119   rm -f conftest.er1
10120   cat conftest.err >&5
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } && {
10123          test -z "$ac_c_werror_flag" ||
10124          test ! -s conftest.err
10125        } && test -s conftest.$ac_objext; then
10126   ac_header_compiler=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131         ac_header_compiler=no
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10136 echo "${ECHO_T}$ac_header_compiler" >&6; }
10137
10138 # Is the header present?
10139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h.  */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h.  */
10147 #include <$ac_header>
10148 _ACEOF
10149 if { (ac_try="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } >/dev/null && {
10162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163          test ! -s conftest.err
10164        }; then
10165   ac_header_preproc=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170   ac_header_preproc=no
10171 fi
10172
10173 rm -f conftest.err conftest.$ac_ext
10174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6; }
10176
10177 # So?  What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10179   yes:no: )
10180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184     ac_header_preproc=yes
10185     ;;
10186   no:yes:* )
10187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10199
10200     ;;
10201 esac
10202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10205   echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207   eval "$as_ac_Header=\$ac_header_preproc"
10208 fi
10209 ac_res=`eval echo '${'$as_ac_Header'}'`
10210                { echo "$as_me:$LINENO: result: $ac_res" >&5
10211 echo "${ECHO_T}$ac_res" >&6; }
10212
10213 fi
10214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10215   cat >>confdefs.h <<_ACEOF
10216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217 _ACEOF
10218
10219 fi
10220
10221 done
10222
10223     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10224 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10225   result=
10226   cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232
10233 #include <limits.h>
10234 #if HAVE_STDINT_H
10235 #include <stdint.h>
10236 #endif
10237 #ifdef SIZE_MAX
10238 Found it
10239 #endif
10240
10241 _ACEOF
10242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10243   $EGREP "Found it" >/dev/null 2>&1; then
10244   result=yes
10245 fi
10246 rm -f conftest*
10247
10248   if test -z "$result"; then
10249                     if test "$cross_compiling" = yes; then
10250   # Depending upon the size, compute the lo and hi bounds.
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257 #include <stddef.h>
10258 int
10259 main ()
10260 {
10261 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10262 test_array [0] = 0
10263
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext
10269 if { (ac_try="$ac_compile"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_compile") 2>conftest.er1
10276   ac_status=$?
10277   grep -v '^ *+' conftest.er1 >conftest.err
10278   rm -f conftest.er1
10279   cat conftest.err >&5
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } && {
10282          test -z "$ac_c_werror_flag" ||
10283          test ! -s conftest.err
10284        } && test -s conftest.$ac_objext; then
10285   ac_lo=0 ac_mid=0
10286   while :; do
10287     cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #include <stddef.h>
10294 int
10295 main ()
10296 {
10297 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10298 test_array [0] = 0
10299
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308   *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311   (eval "$ac_compile") 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } && {
10318          test -z "$ac_c_werror_flag" ||
10319          test ! -s conftest.err
10320        } && test -s conftest.$ac_objext; then
10321   ac_hi=$ac_mid; break
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326         ac_lo=`expr $ac_mid + 1`
10327                         if test $ac_lo -le $ac_mid; then
10328                           ac_lo= ac_hi=
10329                           break
10330                         fi
10331                         ac_mid=`expr 2 '*' $ac_mid + 1`
10332 fi
10333
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335   done
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340         cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h.  */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h.  */
10346 #include <stddef.h>
10347 int
10348 main ()
10349 {
10350 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10351 test_array [0] = 0
10352
10353   ;
10354   return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_compile") 2>conftest.er1
10365   ac_status=$?
10366   grep -v '^ *+' conftest.er1 >conftest.err
10367   rm -f conftest.er1
10368   cat conftest.err >&5
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && {
10371          test -z "$ac_c_werror_flag" ||
10372          test ! -s conftest.err
10373        } && test -s conftest.$ac_objext; then
10374   ac_hi=-1 ac_mid=-1
10375   while :; do
10376     cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382 #include <stddef.h>
10383 int
10384 main ()
10385 {
10386 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10387 test_array [0] = 0
10388
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397   *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400   (eval "$ac_compile") 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } && {
10407          test -z "$ac_c_werror_flag" ||
10408          test ! -s conftest.err
10409        } && test -s conftest.$ac_objext; then
10410   ac_lo=$ac_mid; break
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415         ac_hi=`expr '(' $ac_mid ')' - 1`
10416                         if test $ac_mid -le $ac_hi; then
10417                           ac_lo= ac_hi=
10418                           break
10419                         fi
10420                         ac_mid=`expr 2 '*' $ac_mid`
10421 fi
10422
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424   done
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429         ac_lo= ac_hi=
10430 fi
10431
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 fi
10434
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 # Binary search between lo and hi bounds.
10437 while test "x$ac_lo" != "x$ac_hi"; do
10438   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10439   cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h.  */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h.  */
10445 #include <stddef.h>
10446 int
10447 main ()
10448 {
10449 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10450 test_array [0] = 0
10451
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (ac_try="$ac_compile"
10458 case "(($ac_try" in
10459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460   *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463   (eval "$ac_compile") 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } && {
10470          test -z "$ac_c_werror_flag" ||
10471          test ! -s conftest.err
10472        } && test -s conftest.$ac_objext; then
10473   ac_hi=$ac_mid
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478         ac_lo=`expr '(' $ac_mid ')' + 1`
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 done
10483 case $ac_lo in
10484 ?*) res_hi=$ac_lo;;
10485 '') result=? ;;
10486 esac
10487 else
10488   cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494 #include <stddef.h>
10495 static long int longval () { return ~(size_t)0 / 10; }
10496 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10497 #include <stdio.h>
10498 #include <stdlib.h>
10499 int
10500 main ()
10501 {
10502
10503   FILE *f = fopen ("conftest.val", "w");
10504   if (! f)
10505     return 1;
10506   if ((~(size_t)0 / 10) < 0)
10507     {
10508       long int i = longval ();
10509       if (i != (~(size_t)0 / 10))
10510         return 1;
10511       fprintf (f, "%ld\n", i);
10512     }
10513   else
10514     {
10515       unsigned long int i = ulongval ();
10516       if (i != (~(size_t)0 / 10))
10517         return 1;
10518       fprintf (f, "%lu\n", i);
10519     }
10520   return ferror (f) || fclose (f) != 0;
10521
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 rm -f conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530   *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533   (eval "$ac_link") 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10537   { (case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_try") 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; }; then
10546   res_hi=`cat conftest.val`
10547 else
10548   echo "$as_me: program exited with status $ac_status" >&5
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 ( exit $ac_status )
10553 result=?
10554 fi
10555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10556 fi
10557 rm -f conftest.val
10558
10559     if test "$cross_compiling" = yes; then
10560   # Depending upon the size, compute the lo and hi bounds.
10561 cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h.  */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h.  */
10567 #include <stddef.h>
10568 int
10569 main ()
10570 {
10571 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10572 test_array [0] = 0
10573
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext
10579 if { (ac_try="$ac_compile"
10580 case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585   (eval "$ac_compile") 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } && {
10592          test -z "$ac_c_werror_flag" ||
10593          test ! -s conftest.err
10594        } && test -s conftest.$ac_objext; then
10595   ac_lo=0 ac_mid=0
10596   while :; do
10597     cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 #include <stddef.h>
10604 int
10605 main ()
10606 {
10607 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10608 test_array [0] = 0
10609
10610   ;
10611   return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext
10615 if { (ac_try="$ac_compile"
10616 case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_compile") 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } && {
10628          test -z "$ac_c_werror_flag" ||
10629          test ! -s conftest.err
10630        } && test -s conftest.$ac_objext; then
10631   ac_hi=$ac_mid; break
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636         ac_lo=`expr $ac_mid + 1`
10637                         if test $ac_lo -le $ac_mid; then
10638                           ac_lo= ac_hi=
10639                           break
10640                         fi
10641                         ac_mid=`expr 2 '*' $ac_mid + 1`
10642 fi
10643
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645   done
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650         cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 #include <stddef.h>
10657 int
10658 main ()
10659 {
10660 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10661 test_array [0] = 0
10662
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671   *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674   (eval "$ac_compile") 2>conftest.er1
10675   ac_status=$?
10676   grep -v '^ *+' conftest.er1 >conftest.err
10677   rm -f conftest.er1
10678   cat conftest.err >&5
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } && {
10681          test -z "$ac_c_werror_flag" ||
10682          test ! -s conftest.err
10683        } && test -s conftest.$ac_objext; then
10684   ac_hi=-1 ac_mid=-1
10685   while :; do
10686     cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 #include <stddef.h>
10693 int
10694 main ()
10695 {
10696 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10697 test_array [0] = 0
10698
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_compile") 2>conftest.er1
10711   ac_status=$?
10712   grep -v '^ *+' conftest.er1 >conftest.err
10713   rm -f conftest.er1
10714   cat conftest.err >&5
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } && {
10717          test -z "$ac_c_werror_flag" ||
10718          test ! -s conftest.err
10719        } && test -s conftest.$ac_objext; then
10720   ac_lo=$ac_mid; break
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725         ac_hi=`expr '(' $ac_mid ')' - 1`
10726                         if test $ac_mid -le $ac_hi; then
10727                           ac_lo= ac_hi=
10728                           break
10729                         fi
10730                         ac_mid=`expr 2 '*' $ac_mid`
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734   done
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739         ac_lo= ac_hi=
10740 fi
10741
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 fi
10744
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 # Binary search between lo and hi bounds.
10747 while test "x$ac_lo" != "x$ac_hi"; do
10748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10749   cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h.  */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h.  */
10755 #include <stddef.h>
10756 int
10757 main ()
10758 {
10759 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10760 test_array [0] = 0
10761
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext
10767 if { (ac_try="$ac_compile"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773   (eval "$ac_compile") 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } && {
10780          test -z "$ac_c_werror_flag" ||
10781          test ! -s conftest.err
10782        } && test -s conftest.$ac_objext; then
10783   ac_hi=$ac_mid
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788         ac_lo=`expr '(' $ac_mid ')' + 1`
10789 fi
10790
10791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792 done
10793 case $ac_lo in
10794 ?*) res_lo=$ac_lo;;
10795 '') result=? ;;
10796 esac
10797 else
10798   cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h.  */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h.  */
10804 #include <stddef.h>
10805 static long int longval () { return ~(size_t)0 % 10; }
10806 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10807 #include <stdio.h>
10808 #include <stdlib.h>
10809 int
10810 main ()
10811 {
10812
10813   FILE *f = fopen ("conftest.val", "w");
10814   if (! f)
10815     return 1;
10816   if ((~(size_t)0 % 10) < 0)
10817     {
10818       long int i = longval ();
10819       if (i != (~(size_t)0 % 10))
10820         return 1;
10821       fprintf (f, "%ld\n", i);
10822     }
10823   else
10824     {
10825       unsigned long int i = ulongval ();
10826       if (i != (~(size_t)0 % 10))
10827         return 1;
10828       fprintf (f, "%lu\n", i);
10829     }
10830   return ferror (f) || fclose (f) != 0;
10831
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 rm -f conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_link") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10847   { (case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852   (eval "$ac_try") 2>&5
10853   ac_status=$?
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); }; }; then
10856   res_lo=`cat conftest.val`
10857 else
10858   echo "$as_me: program exited with status $ac_status" >&5
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ( exit $ac_status )
10863 result=?
10864 fi
10865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10866 fi
10867 rm -f conftest.val
10868
10869     if test "$cross_compiling" = yes; then
10870   # Depending upon the size, compute the lo and hi bounds.
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877 #include <stddef.h>
10878 int
10879 main ()
10880 {
10881 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10882 test_array [0] = 0
10883
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_compile") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } && {
10902          test -z "$ac_c_werror_flag" ||
10903          test ! -s conftest.err
10904        } && test -s conftest.$ac_objext; then
10905   ac_lo=0 ac_mid=0
10906   while :; do
10907     cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <stddef.h>
10914 int
10915 main ()
10916 {
10917 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10918 test_array [0] = 0
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_compile") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } && {
10938          test -z "$ac_c_werror_flag" ||
10939          test ! -s conftest.err
10940        } && test -s conftest.$ac_objext; then
10941   ac_hi=$ac_mid; break
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946         ac_lo=`expr $ac_mid + 1`
10947                         if test $ac_lo -le $ac_mid; then
10948                           ac_lo= ac_hi=
10949                           break
10950                         fi
10951                         ac_mid=`expr 2 '*' $ac_mid + 1`
10952 fi
10953
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955   done
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960         cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h.  */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h.  */
10966 #include <stddef.h>
10967 int
10968 main ()
10969 {
10970 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10971 test_array [0] = 0
10972
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981   *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984   (eval "$ac_compile") 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } && {
10991          test -z "$ac_c_werror_flag" ||
10992          test ! -s conftest.err
10993        } && test -s conftest.$ac_objext; then
10994   ac_hi=-1 ac_mid=-1
10995   while :; do
10996     cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 #include <stddef.h>
11003 int
11004 main ()
11005 {
11006 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11007 test_array [0] = 0
11008
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (ac_try="$ac_compile"
11015 case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020   (eval "$ac_compile") 2>conftest.er1
11021   ac_status=$?
11022   grep -v '^ *+' conftest.er1 >conftest.err
11023   rm -f conftest.er1
11024   cat conftest.err >&5
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); } && {
11027          test -z "$ac_c_werror_flag" ||
11028          test ! -s conftest.err
11029        } && test -s conftest.$ac_objext; then
11030   ac_lo=$ac_mid; break
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035         ac_hi=`expr '(' $ac_mid ')' - 1`
11036                         if test $ac_mid -le $ac_hi; then
11037                           ac_lo= ac_hi=
11038                           break
11039                         fi
11040                         ac_mid=`expr 2 '*' $ac_mid`
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044   done
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049         ac_lo= ac_hi=
11050 fi
11051
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053 fi
11054
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 # Binary search between lo and hi bounds.
11057 while test "x$ac_lo" != "x$ac_hi"; do
11058   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11059   cat >conftest.$ac_ext <<_ACEOF
11060 /* confdefs.h.  */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h.  */
11065 #include <stddef.h>
11066 int
11067 main ()
11068 {
11069 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11070 test_array [0] = 0
11071
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 rm -f conftest.$ac_objext
11077 if { (ac_try="$ac_compile"
11078 case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083   (eval "$ac_compile") 2>conftest.er1
11084   ac_status=$?
11085   grep -v '^ *+' conftest.er1 >conftest.err
11086   rm -f conftest.er1
11087   cat conftest.err >&5
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } && {
11090          test -z "$ac_c_werror_flag" ||
11091          test ! -s conftest.err
11092        } && test -s conftest.$ac_objext; then
11093   ac_hi=$ac_mid
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098         ac_lo=`expr '(' $ac_mid ')' + 1`
11099 fi
11100
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 done
11103 case $ac_lo in
11104 ?*) fits_in_uint=$ac_lo;;
11105 '') result=? ;;
11106 esac
11107 else
11108   cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 #include <stddef.h>
11115 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11116 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11117 #include <stdio.h>
11118 #include <stdlib.h>
11119 int
11120 main ()
11121 {
11122
11123   FILE *f = fopen ("conftest.val", "w");
11124   if (! f)
11125     return 1;
11126   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11127     {
11128       long int i = longval ();
11129       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11130         return 1;
11131       fprintf (f, "%ld\n", i);
11132     }
11133   else
11134     {
11135       unsigned long int i = ulongval ();
11136       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11137         return 1;
11138       fprintf (f, "%lu\n", i);
11139     }
11140   return ferror (f) || fclose (f) != 0;
11141
11142   ;
11143   return 0;
11144 }
11145 _ACEOF
11146 rm -f conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_link") 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11157   { (case "(($ac_try" in
11158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159   *) ac_try_echo=$ac_try;;
11160 esac
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162   (eval "$ac_try") 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); }; }; then
11166   fits_in_uint=`cat conftest.val`
11167 else
11168   echo "$as_me: program exited with status $ac_status" >&5
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ( exit $ac_status )
11173 result=?
11174 fi
11175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11176 fi
11177 rm -f conftest.val
11178
11179     if test "$fits_in_uint" = 1; then
11180                   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 #include <stddef.h>
11187         extern size_t foo;
11188         extern unsigned long foo;
11189
11190 int
11191 main ()
11192 {
11193
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 rm -f conftest.$ac_objext
11199 if { (ac_try="$ac_compile"
11200 case "(($ac_try" in
11201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202   *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205   (eval "$ac_compile") 2>conftest.er1
11206   ac_status=$?
11207   grep -v '^ *+' conftest.er1 >conftest.err
11208   rm -f conftest.er1
11209   cat conftest.err >&5
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); } && {
11212          test -z "$ac_c_werror_flag" ||
11213          test ! -s conftest.err
11214        } && test -s conftest.$ac_objext; then
11215   fits_in_uint=0
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220
11221 fi
11222
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224     fi
11225     if test -z "$result"; then
11226       if test "$fits_in_uint" = 1; then
11227         result="$res_hi$res_lo"U
11228       else
11229         result="$res_hi$res_lo"UL
11230       fi
11231     else
11232             result='~(size_t)0'
11233     fi
11234   fi
11235   { echo "$as_me:$LINENO: result: $result" >&5
11236 echo "${ECHO_T}$result" >&6; }
11237   if test "$result" != yes; then
11238
11239 cat >>confdefs.h <<_ACEOF
11240 #define SIZE_MAX $result
11241 _ACEOF
11242
11243   fi
11244
11245
11246
11247
11248
11249 for ac_header in stdint.h
11250 do
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 fi
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259                { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11261 else
11262   # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h.  */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h.  */
11271 $ac_includes_default
11272 #include <$ac_header>
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_compile") 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } && {
11288          test -z "$ac_c_werror_flag" ||
11289          test ! -s conftest.err
11290        } && test -s conftest.$ac_objext; then
11291   ac_header_compiler=yes
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296         ac_header_compiler=no
11297 fi
11298
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301 echo "${ECHO_T}$ac_header_compiler" >&6; }
11302
11303 # Is the header present?
11304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 #include <$ac_header>
11313 _ACEOF
11314 if { (ac_try="$ac_cpp conftest.$ac_ext"
11315 case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11321   ac_status=$?
11322   grep -v '^ *+' conftest.er1 >conftest.err
11323   rm -f conftest.er1
11324   cat conftest.err >&5
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } >/dev/null && {
11327          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11328          test ! -s conftest.err
11329        }; then
11330   ac_header_preproc=yes
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335   ac_header_preproc=no
11336 fi
11337
11338 rm -f conftest.err conftest.$ac_ext
11339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340 echo "${ECHO_T}$ac_header_preproc" >&6; }
11341
11342 # So?  What about this header?
11343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11344   yes:no: )
11345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349     ac_header_preproc=yes
11350     ;;
11351   no:yes:* )
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364
11365     ;;
11366 esac
11367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   eval "$as_ac_Header=\$ac_header_preproc"
11373 fi
11374 ac_res=`eval echo '${'$as_ac_Header'}'`
11375                { echo "$as_me:$LINENO: result: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11377
11378 fi
11379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11380   cat >>confdefs.h <<_ACEOF
11381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11382 _ACEOF
11383
11384 fi
11385
11386 done
11387
11388
11389
11390
11391
11392
11393
11394
11395   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11396 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11397 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 $ac_includes_default
11407 typedef ptrdiff_t ac__type_new_;
11408 int
11409 main ()
11410 {
11411 if ((ac__type_new_ *) 0)
11412   return 0;
11413 if (sizeof (ac__type_new_))
11414   return 0;
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423   *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426   (eval "$ac_compile") 2>conftest.er1
11427   ac_status=$?
11428   grep -v '^ *+' conftest.er1 >conftest.err
11429   rm -f conftest.er1
11430   cat conftest.err >&5
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } && {
11433          test -z "$ac_c_werror_flag" ||
11434          test ! -s conftest.err
11435        } && test -s conftest.$ac_objext; then
11436   ac_cv_type_ptrdiff_t=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441         ac_cv_type_ptrdiff_t=no
11442 fi
11443
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 fi
11446 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11447 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11448 if test $ac_cv_type_ptrdiff_t = yes; then
11449   :
11450 else
11451
11452 cat >>confdefs.h <<\_ACEOF
11453 #define ptrdiff_t long
11454 _ACEOF
11455
11456
11457 fi
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11470 stdlib.h string.h unistd.h sys/param.h
11471 do
11472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 fi
11479 ac_res=`eval echo '${'$as_ac_Header'}'`
11480                { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11482 else
11483   # Is the header compilable?
11484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492 $ac_includes_default
11493 #include <$ac_header>
11494 _ACEOF
11495 rm -f conftest.$ac_objext
11496 if { (ac_try="$ac_compile"
11497 case "(($ac_try" in
11498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499   *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502   (eval "$ac_compile") 2>conftest.er1
11503   ac_status=$?
11504   grep -v '^ *+' conftest.er1 >conftest.err
11505   rm -f conftest.er1
11506   cat conftest.err >&5
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); } && {
11509          test -z "$ac_c_werror_flag" ||
11510          test ! -s conftest.err
11511        } && test -s conftest.$ac_objext; then
11512   ac_header_compiler=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517         ac_header_compiler=no
11518 fi
11519
11520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11522 echo "${ECHO_T}$ac_header_compiler" >&6; }
11523
11524 # Is the header present?
11525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 #include <$ac_header>
11534 _ACEOF
11535 if { (ac_try="$ac_cpp conftest.$ac_ext"
11536 case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } >/dev/null && {
11548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11549          test ! -s conftest.err
11550        }; then
11551   ac_header_preproc=yes
11552 else
11553   echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556   ac_header_preproc=no
11557 fi
11558
11559 rm -f conftest.err conftest.$ac_ext
11560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11561 echo "${ECHO_T}$ac_header_preproc" >&6; }
11562
11563 # So?  What about this header?
11564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11565   yes:no: )
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11570     ac_header_preproc=yes
11571     ;;
11572   no:yes:* )
11573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11585
11586     ;;
11587 esac
11588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   eval "$as_ac_Header=\$ac_header_preproc"
11594 fi
11595 ac_res=`eval echo '${'$as_ac_Header'}'`
11596                { echo "$as_me:$LINENO: result: $ac_res" >&5
11597 echo "${ECHO_T}$ac_res" >&6; }
11598
11599 fi
11600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11601   cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11603 _ACEOF
11604
11605 fi
11606
11607 done
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11633 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11634 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11635 __fsetlocking
11636 do
11637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11651 #define $ac_func innocuous_$ac_func
11652
11653 /* System header to define __stub macros and hopefully few prototypes,
11654     which can conflict with char $ac_func (); below.
11655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656     <limits.h> exists even on freestanding compilers.  */
11657
11658 #ifdef __STDC__
11659 # include <limits.h>
11660 #else
11661 # include <assert.h>
11662 #endif
11663
11664 #undef $ac_func
11665
11666 /* Override any GCC internal prototype to avoid an error.
11667    Use char because int might match the return type of a GCC
11668    builtin and then its argument prototype would still apply.  */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 char $ac_func ();
11673 /* The GNU C library defines this for functions which it implements
11674     to always fail with ENOSYS.  Some functions are actually named
11675     something starting with __ and the normal name is an alias.  */
11676 #if defined __stub_$ac_func || defined __stub___$ac_func
11677 choke me
11678 #endif
11679
11680 int
11681 main ()
11682 {
11683 return $ac_func ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695   (eval "$ac_link") 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } && {
11702          test -z "$ac_c_werror_flag" ||
11703          test ! -s conftest.err
11704        } && test -s conftest$ac_exeext &&
11705        $as_test_x conftest$ac_exeext; then
11706   eval "$as_ac_var=yes"
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711         eval "$as_ac_var=no"
11712 fi
11713
11714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11715       conftest$ac_exeext conftest.$ac_ext
11716 fi
11717 ac_res=`eval echo '${'$as_ac_var'}'`
11718                { echo "$as_me:$LINENO: result: $ac_res" >&5
11719 echo "${ECHO_T}$ac_res" >&6; }
11720 if test `eval echo '${'$as_ac_var'}'` = yes; then
11721   cat >>confdefs.h <<_ACEOF
11722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11723 _ACEOF
11724
11725 fi
11726 done
11727
11728
11729
11730   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11731 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11732 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 #include <stdio.h>
11742 int
11743 main ()
11744 {
11745
11746 #ifndef _snprintf
11747   char *p = (char *) _snprintf;
11748 #endif
11749
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (ac_try="$ac_compile"
11756 case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_compile") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } && {
11768          test -z "$ac_c_werror_flag" ||
11769          test ! -s conftest.err
11770        } && test -s conftest.$ac_objext; then
11771   ac_cv_have_decl__snprintf=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776         ac_cv_have_decl__snprintf=no
11777 fi
11778
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 fi
11781 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11782 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11783   if test $ac_cv_have_decl__snprintf = yes; then
11784     gt_value=1
11785   else
11786     gt_value=0
11787   fi
11788
11789 cat >>confdefs.h <<_ACEOF
11790 #define HAVE_DECL__SNPRINTF $gt_value
11791 _ACEOF
11792
11793
11794
11795   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11796 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11797 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #include <stdio.h>
11807 int
11808 main ()
11809 {
11810
11811 #ifndef _snwprintf
11812   char *p = (char *) _snwprintf;
11813 #endif
11814
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_compile") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } && {
11833          test -z "$ac_c_werror_flag" ||
11834          test ! -s conftest.err
11835        } && test -s conftest.$ac_objext; then
11836   ac_cv_have_decl__snwprintf=yes
11837 else
11838   echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841         ac_cv_have_decl__snwprintf=no
11842 fi
11843
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 fi
11846 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11847 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11848   if test $ac_cv_have_decl__snwprintf = yes; then
11849     gt_value=1
11850   else
11851     gt_value=0
11852   fi
11853
11854 cat >>confdefs.h <<_ACEOF
11855 #define HAVE_DECL__SNWPRINTF $gt_value
11856 _ACEOF
11857
11858
11859
11860
11861   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11862 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11863 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 #include <stdio.h>
11873 int
11874 main ()
11875 {
11876
11877 #ifndef feof_unlocked
11878   char *p = (char *) feof_unlocked;
11879 #endif
11880
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (ac_try="$ac_compile"
11887 case "(($ac_try" in
11888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889   *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892   (eval "$ac_compile") 2>conftest.er1
11893   ac_status=$?
11894   grep -v '^ *+' conftest.er1 >conftest.err
11895   rm -f conftest.er1
11896   cat conftest.err >&5
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } && {
11899          test -z "$ac_c_werror_flag" ||
11900          test ! -s conftest.err
11901        } && test -s conftest.$ac_objext; then
11902   ac_cv_have_decl_feof_unlocked=yes
11903 else
11904   echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11906
11907         ac_cv_have_decl_feof_unlocked=no
11908 fi
11909
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 fi
11912 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11913 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11914   if test $ac_cv_have_decl_feof_unlocked = yes; then
11915     gt_value=1
11916   else
11917     gt_value=0
11918   fi
11919
11920 cat >>confdefs.h <<_ACEOF
11921 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11922 _ACEOF
11923
11924
11925
11926   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11927 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11928 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11929   echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931   cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h.  */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h.  */
11937 #include <stdio.h>
11938 int
11939 main ()
11940 {
11941
11942 #ifndef fgets_unlocked
11943   char *p = (char *) fgets_unlocked;
11944 #endif
11945
11946   ;
11947   return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext
11951 if { (ac_try="$ac_compile"
11952 case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_compile") 2>conftest.er1
11958   ac_status=$?
11959   grep -v '^ *+' conftest.er1 >conftest.err
11960   rm -f conftest.er1
11961   cat conftest.err >&5
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } && {
11964          test -z "$ac_c_werror_flag" ||
11965          test ! -s conftest.err
11966        } && test -s conftest.$ac_objext; then
11967   ac_cv_have_decl_fgets_unlocked=yes
11968 else
11969   echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972         ac_cv_have_decl_fgets_unlocked=no
11973 fi
11974
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11978 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11979   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11980     gt_value=1
11981   else
11982     gt_value=0
11983   fi
11984
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11987 _ACEOF
11988
11989
11990
11991   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11992 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11993 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002 #include <stdio.h>
12003 int
12004 main ()
12005 {
12006
12007 #ifndef getc_unlocked
12008   char *p = (char *) getc_unlocked;
12009 #endif
12010
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest.$ac_objext
12016 if { (ac_try="$ac_compile"
12017 case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_compile") 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } && {
12029          test -z "$ac_c_werror_flag" ||
12030          test ! -s conftest.err
12031        } && test -s conftest.$ac_objext; then
12032   ac_cv_have_decl_getc_unlocked=yes
12033 else
12034   echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037         ac_cv_have_decl_getc_unlocked=no
12038 fi
12039
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12043 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12044   if test $ac_cv_have_decl_getc_unlocked = yes; then
12045     gt_value=1
12046   else
12047     gt_value=0
12048   fi
12049
12050 cat >>confdefs.h <<_ACEOF
12051 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12052 _ACEOF
12053
12054
12055
12056   case $gt_cv_func_printf_posix in
12057     *yes) HAVE_POSIX_PRINTF=1 ;;
12058     *) HAVE_POSIX_PRINTF=0 ;;
12059   esac
12060
12061   if test "$ac_cv_func_asprintf" = yes; then
12062     HAVE_ASPRINTF=1
12063   else
12064     HAVE_ASPRINTF=0
12065   fi
12066
12067   if test "$ac_cv_func_snprintf" = yes; then
12068     HAVE_SNPRINTF=1
12069   else
12070     HAVE_SNPRINTF=0
12071   fi
12072
12073   if test "$ac_cv_func_wprintf" = yes; then
12074     HAVE_WPRINTF=1
12075   else
12076     HAVE_WPRINTF=0
12077   fi
12078
12079
12080
12081
12082
12083
12084
12085           am_save_CPPFLAGS="$CPPFLAGS"
12086
12087   for element in $INCICONV; do
12088     haveit=
12089     for x in $CPPFLAGS; do
12090
12091   acl_save_prefix="$prefix"
12092   prefix="$acl_final_prefix"
12093   acl_save_exec_prefix="$exec_prefix"
12094   exec_prefix="$acl_final_exec_prefix"
12095   eval x=\"$x\"
12096   exec_prefix="$acl_save_exec_prefix"
12097   prefix="$acl_save_prefix"
12098
12099       if test "X$x" = "X$element"; then
12100         haveit=yes
12101         break
12102       fi
12103     done
12104     if test -z "$haveit"; then
12105       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12106     fi
12107   done
12108
12109
12110   { echo "$as_me:$LINENO: checking for iconv" >&5
12111 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12112 if test "${am_cv_func_iconv+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115
12116     am_cv_func_iconv="no, consider installing GNU libiconv"
12117     am_cv_lib_iconv=no
12118     cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <stdlib.h>
12125 #include <iconv.h>
12126 int
12127 main ()
12128 {
12129 iconv_t cd = iconv_open("","");
12130        iconv(cd,NULL,NULL,NULL,NULL);
12131        iconv_close(cd);
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } && {
12150          test -z "$ac_c_werror_flag" ||
12151          test ! -s conftest.err
12152        } && test -s conftest$ac_exeext &&
12153        $as_test_x conftest$ac_exeext; then
12154   am_cv_func_iconv=yes
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159
12160 fi
12161
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163       conftest$ac_exeext conftest.$ac_ext
12164     if test "$am_cv_func_iconv" != yes; then
12165       am_save_LIBS="$LIBS"
12166       LIBS="$LIBS $LIBICONV"
12167       cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173 #include <stdlib.h>
12174 #include <iconv.h>
12175 int
12176 main ()
12177 {
12178 iconv_t cd = iconv_open("","");
12179          iconv(cd,NULL,NULL,NULL,NULL);
12180          iconv_close(cd);
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_link") 2>conftest.er1
12193   ac_status=$?
12194   grep -v '^ *+' conftest.er1 >conftest.err
12195   rm -f conftest.er1
12196   cat conftest.err >&5
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } && {
12199          test -z "$ac_c_werror_flag" ||
12200          test ! -s conftest.err
12201        } && test -s conftest$ac_exeext &&
12202        $as_test_x conftest$ac_exeext; then
12203   am_cv_lib_iconv=yes
12204         am_cv_func_iconv=yes
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209
12210 fi
12211
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213       conftest$ac_exeext conftest.$ac_ext
12214       LIBS="$am_save_LIBS"
12215     fi
12216
12217 fi
12218 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12219 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12220   if test "$am_cv_func_iconv" = yes; then
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_ICONV 1
12224 _ACEOF
12225
12226   fi
12227   if test "$am_cv_lib_iconv" = yes; then
12228     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12229 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12230     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12231 echo "${ECHO_T}$LIBICONV" >&6; }
12232   else
12233             CPPFLAGS="$am_save_CPPFLAGS"
12234     LIBICONV=
12235     LTLIBICONV=
12236   fi
12237
12238
12239
12240   if test "$am_cv_func_iconv" = yes; then
12241     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12242 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12243     if test "${am_cv_proto_iconv+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246
12247       cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253
12254 #include <stdlib.h>
12255 #include <iconv.h>
12256 extern
12257 #ifdef __cplusplus
12258 "C"
12259 #endif
12260 #if defined(__STDC__) || defined(__cplusplus)
12261 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12262 #else
12263 size_t iconv();
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_compile") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } && {
12288          test -z "$ac_c_werror_flag" ||
12289          test ! -s conftest.err
12290        } && test -s conftest.$ac_objext; then
12291   am_cv_proto_iconv_arg1=""
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         am_cv_proto_iconv_arg1="const"
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300       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);"
12301 fi
12302
12303     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12304     { echo "$as_me:$LINENO: result: ${ac_t:-
12305          }$am_cv_proto_iconv" >&5
12306 echo "${ECHO_T}${ac_t:-
12307          }$am_cv_proto_iconv" >&6; }
12308
12309 cat >>confdefs.h <<_ACEOF
12310 #define ICONV_CONST $am_cv_proto_iconv_arg1
12311 _ACEOF
12312
12313   fi
12314
12315
12316   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12317 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12318 if test "${am_cv_langinfo_codeset+set}" = set; then
12319   echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321   cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h.  */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h.  */
12327 #include <langinfo.h>
12328 int
12329 main ()
12330 {
12331 char* cs = nl_langinfo(CODESET);
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_link") 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } && {
12350          test -z "$ac_c_werror_flag" ||
12351          test ! -s conftest.err
12352        } && test -s conftest$ac_exeext &&
12353        $as_test_x conftest$ac_exeext; then
12354   am_cv_langinfo_codeset=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359         am_cv_langinfo_codeset=no
12360 fi
12361
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363       conftest$ac_exeext conftest.$ac_ext
12364
12365 fi
12366 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12367 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12368   if test $am_cv_langinfo_codeset = yes; then
12369
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_LANGINFO_CODESET 1
12372 _ACEOF
12373
12374   fi
12375
12376   if test $ac_cv_header_locale_h = yes; then
12377
12378   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12379 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12380 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389 #include <locale.h>
12390 int
12391 main ()
12392 {
12393 return LC_MESSAGES
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_link") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && {
12412          test -z "$ac_c_werror_flag" ||
12413          test ! -s conftest.err
12414        } && test -s conftest$ac_exeext &&
12415        $as_test_x conftest$ac_exeext; then
12416   gt_cv_val_LC_MESSAGES=yes
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421         gt_cv_val_LC_MESSAGES=no
12422 fi
12423
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425       conftest$ac_exeext conftest.$ac_ext
12426 fi
12427 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12428 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12429   if test $gt_cv_val_LC_MESSAGES = yes; then
12430
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_LC_MESSAGES 1
12433 _ACEOF
12434
12435   fi
12436
12437   fi
12438
12439   if test -n "$INTL_MACOSX_LIBS"; then
12440     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12441   fi
12442
12443                       for ac_prog in bison
12444 do
12445   # Extract the first word of "$ac_prog", so it can be a program name with args.
12446 set dummy $ac_prog; ac_word=$2
12447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12449 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   if test -n "$INTLBISON"; then
12453   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458   IFS=$as_save_IFS
12459   test -z "$as_dir" && as_dir=.
12460   for ac_exec_ext in '' $ac_executable_extensions; do
12461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462     ac_cv_prog_INTLBISON="$ac_prog"
12463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12464     break 2
12465   fi
12466 done
12467 done
12468 IFS=$as_save_IFS
12469
12470 fi
12471 fi
12472 INTLBISON=$ac_cv_prog_INTLBISON
12473 if test -n "$INTLBISON"; then
12474   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12475 echo "${ECHO_T}$INTLBISON" >&6; }
12476 else
12477   { echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6; }
12479 fi
12480
12481
12482   test -n "$INTLBISON" && break
12483 done
12484
12485   if test -z "$INTLBISON"; then
12486     ac_verc_fail=yes
12487   else
12488         { echo "$as_me:$LINENO: checking version of bison" >&5
12489 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12490     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12491     case $ac_prog_version in
12492       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12493       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12494          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12495       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12496     esac
12497     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12498 echo "${ECHO_T}$ac_prog_version" >&6; }
12499   fi
12500   if test $ac_verc_fail = yes; then
12501     INTLBISON=:
12502   fi
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12520 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12521 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   gt_save_CPPFLAGS="$CPPFLAGS"
12525      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12526      gt_save_LIBS="$LIBS"
12527      LIBS="$LIBS -framework CoreFoundation"
12528      cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534 #include <CFPreferences.h>
12535 int
12536 main ()
12537 {
12538 CFPreferencesCopyAppValue(NULL, NULL)
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547   *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550   (eval "$ac_link") 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } && {
12557          test -z "$ac_c_werror_flag" ||
12558          test ! -s conftest.err
12559        } && test -s conftest$ac_exeext &&
12560        $as_test_x conftest$ac_exeext; then
12561   gt_cv_func_CFPreferencesCopyAppValue=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566         gt_cv_func_CFPreferencesCopyAppValue=no
12567 fi
12568
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570       conftest$ac_exeext conftest.$ac_ext
12571      CPPFLAGS="$gt_save_CPPFLAGS"
12572      LIBS="$gt_save_LIBS"
12573 fi
12574 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12575 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12576   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12580 _ACEOF
12581
12582   fi
12583     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12584 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12585 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12586   echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588   gt_save_CPPFLAGS="$CPPFLAGS"
12589      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12590      gt_save_LIBS="$LIBS"
12591      LIBS="$LIBS -framework CoreFoundation"
12592      cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 #include <CFLocale.h>
12599 int
12600 main ()
12601 {
12602 CFLocaleCopyCurrent();
12603   ;
12604   return 0;
12605 }
12606 _ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_link") 2>conftest.er1
12615   ac_status=$?
12616   grep -v '^ *+' conftest.er1 >conftest.err
12617   rm -f conftest.er1
12618   cat conftest.err >&5
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } && {
12621          test -z "$ac_c_werror_flag" ||
12622          test ! -s conftest.err
12623        } && test -s conftest$ac_exeext &&
12624        $as_test_x conftest$ac_exeext; then
12625   gt_cv_func_CFLocaleCopyCurrent=yes
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630         gt_cv_func_CFLocaleCopyCurrent=no
12631 fi
12632
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634       conftest$ac_exeext conftest.$ac_ext
12635      CPPFLAGS="$gt_save_CPPFLAGS"
12636      LIBS="$gt_save_LIBS"
12637 fi
12638 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12639 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12640   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12641
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_CFLOCALECOPYCURRENT 1
12644 _ACEOF
12645
12646   fi
12647   INTL_MACOSX_LIBS=
12648   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12649     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12650   fi
12651
12652
12653
12654
12655   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12656 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12657     # Check whether --enable-nls was given.
12658 if test "${enable_nls+set}" = set; then
12659   enableval=$enable_nls; USE_NLS=$enableval
12660 else
12661   USE_NLS=yes
12662 fi
12663
12664   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12665 echo "${ECHO_T}$USE_NLS" >&6; }
12666
12667
12668
12669
12670     BUILD_INCLUDED_LIBINTL=no
12671     USE_INCLUDED_LIBINTL=no
12672
12673   LIBINTL=
12674   LTLIBINTL=
12675   POSUB=
12676
12677     if test "$USE_NLS" = "yes"; then
12678     gt_use_preinstalled_gnugettext=no
12679
12680       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12681 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12682
12683 # Check whether --with-included-gettext was given.
12684 if test "${with_included_gettext+set}" = set; then
12685   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12686 else
12687   nls_cv_force_use_gnu_gettext=no
12688 fi
12689
12690       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12691 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12692
12693       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12694       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12695
12696
12697
12698
12699
12700
12701         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12702 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12703 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h.  */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h.  */
12712 #include <libintl.h>
12713 extern int _nl_msg_cat_cntr;
12714 extern int *_nl_domain_bindings;
12715 int
12716 main ()
12717 {
12718 bindtextdomain ("", "");
12719 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (ac_try="$ac_link"
12726 case "(($ac_try" in
12727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728   *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731   (eval "$ac_link") 2>conftest.er1
12732   ac_status=$?
12733   grep -v '^ *+' conftest.er1 >conftest.err
12734   rm -f conftest.er1
12735   cat conftest.err >&5
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); } && {
12738          test -z "$ac_c_werror_flag" ||
12739          test ! -s conftest.err
12740        } && test -s conftest$ac_exeext &&
12741        $as_test_x conftest$ac_exeext; then
12742   gt_cv_func_gnugettext1_libc=yes
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747         gt_cv_func_gnugettext1_libc=no
12748 fi
12749
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751       conftest$ac_exeext conftest.$ac_ext
12752 fi
12753 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12754 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12755
12756         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12757
12758
12759
12760     use_additional=yes
12761
12762   acl_save_prefix="$prefix"
12763   prefix="$acl_final_prefix"
12764   acl_save_exec_prefix="$exec_prefix"
12765   exec_prefix="$acl_final_exec_prefix"
12766
12767     eval additional_includedir=\"$includedir\"
12768     eval additional_libdir=\"$libdir\"
12769
12770   exec_prefix="$acl_save_exec_prefix"
12771   prefix="$acl_save_prefix"
12772
12773
12774 # Check whether --with-libintl-prefix was given.
12775 if test "${with_libintl_prefix+set}" = set; then
12776   withval=$with_libintl_prefix;
12777     if test "X$withval" = "Xno"; then
12778       use_additional=no
12779     else
12780       if test "X$withval" = "X"; then
12781
12782   acl_save_prefix="$prefix"
12783   prefix="$acl_final_prefix"
12784   acl_save_exec_prefix="$exec_prefix"
12785   exec_prefix="$acl_final_exec_prefix"
12786
12787           eval additional_includedir=\"$includedir\"
12788           eval additional_libdir=\"$libdir\"
12789
12790   exec_prefix="$acl_save_exec_prefix"
12791   prefix="$acl_save_prefix"
12792
12793       else
12794         additional_includedir="$withval/include"
12795         additional_libdir="$withval/lib"
12796       fi
12797     fi
12798
12799 fi
12800
12801       LIBINTL=
12802   LTLIBINTL=
12803   INCINTL=
12804   rpathdirs=
12805   ltrpathdirs=
12806   names_already_handled=
12807   names_next_round='intl '
12808   while test -n "$names_next_round"; do
12809     names_this_round="$names_next_round"
12810     names_next_round=
12811     for name in $names_this_round; do
12812       already_handled=
12813       for n in $names_already_handled; do
12814         if test "$n" = "$name"; then
12815           already_handled=yes
12816           break
12817         fi
12818       done
12819       if test -z "$already_handled"; then
12820         names_already_handled="$names_already_handled $name"
12821                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12822         eval value=\"\$HAVE_LIB$uppername\"
12823         if test -n "$value"; then
12824           if test "$value" = yes; then
12825             eval value=\"\$LIB$uppername\"
12826             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12827             eval value=\"\$LTLIB$uppername\"
12828             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12829           else
12830                                     :
12831           fi
12832         else
12833                               found_dir=
12834           found_la=
12835           found_so=
12836           found_a=
12837           if test $use_additional = yes; then
12838             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12839               found_dir="$additional_libdir"
12840               found_so="$additional_libdir/lib$name.$shlibext"
12841               if test -f "$additional_libdir/lib$name.la"; then
12842                 found_la="$additional_libdir/lib$name.la"
12843               fi
12844             else
12845               if test -f "$additional_libdir/lib$name.$libext"; then
12846                 found_dir="$additional_libdir"
12847                 found_a="$additional_libdir/lib$name.$libext"
12848                 if test -f "$additional_libdir/lib$name.la"; then
12849                   found_la="$additional_libdir/lib$name.la"
12850                 fi
12851               fi
12852             fi
12853           fi
12854           if test "X$found_dir" = "X"; then
12855             for x in $LDFLAGS $LTLIBINTL; do
12856
12857   acl_save_prefix="$prefix"
12858   prefix="$acl_final_prefix"
12859   acl_save_exec_prefix="$exec_prefix"
12860   exec_prefix="$acl_final_exec_prefix"
12861   eval x=\"$x\"
12862   exec_prefix="$acl_save_exec_prefix"
12863   prefix="$acl_save_prefix"
12864
12865               case "$x" in
12866                 -L*)
12867                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12868                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12869                     found_dir="$dir"
12870                     found_so="$dir/lib$name.$shlibext"
12871                     if test -f "$dir/lib$name.la"; then
12872                       found_la="$dir/lib$name.la"
12873                     fi
12874                   else
12875                     if test -f "$dir/lib$name.$libext"; then
12876                       found_dir="$dir"
12877                       found_a="$dir/lib$name.$libext"
12878                       if test -f "$dir/lib$name.la"; then
12879                         found_la="$dir/lib$name.la"
12880                       fi
12881                     fi
12882                   fi
12883                   ;;
12884               esac
12885               if test "X$found_dir" != "X"; then
12886                 break
12887               fi
12888             done
12889           fi
12890           if test "X$found_dir" != "X"; then
12891                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12892             if test "X$found_so" != "X"; then
12893                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12894                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12895               else
12896                                                                                 haveit=
12897                 for x in $ltrpathdirs; do
12898                   if test "X$x" = "X$found_dir"; then
12899                     haveit=yes
12900                     break
12901                   fi
12902                 done
12903                 if test -z "$haveit"; then
12904                   ltrpathdirs="$ltrpathdirs $found_dir"
12905                 fi
12906                                 if test "$hardcode_direct" = yes; then
12907                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12908                 else
12909                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12910                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12911                                                             haveit=
12912                     for x in $rpathdirs; do
12913                       if test "X$x" = "X$found_dir"; then
12914                         haveit=yes
12915                         break
12916                       fi
12917                     done
12918                     if test -z "$haveit"; then
12919                       rpathdirs="$rpathdirs $found_dir"
12920                     fi
12921                   else
12922                                                                                 haveit=
12923                     for x in $LDFLAGS $LIBINTL; do
12924
12925   acl_save_prefix="$prefix"
12926   prefix="$acl_final_prefix"
12927   acl_save_exec_prefix="$exec_prefix"
12928   exec_prefix="$acl_final_exec_prefix"
12929   eval x=\"$x\"
12930   exec_prefix="$acl_save_exec_prefix"
12931   prefix="$acl_save_prefix"
12932
12933                       if test "X$x" = "X-L$found_dir"; then
12934                         haveit=yes
12935                         break
12936                       fi
12937                     done
12938                     if test -z "$haveit"; then
12939                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12940                     fi
12941                     if test "$hardcode_minus_L" != no; then
12942                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12943                     else
12944                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12945                     fi
12946                   fi
12947                 fi
12948               fi
12949             else
12950               if test "X$found_a" != "X"; then
12951                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12952               else
12953                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12954               fi
12955             fi
12956                         additional_includedir=
12957             case "$found_dir" in
12958               */lib | */lib/)
12959                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12960                 additional_includedir="$basedir/include"
12961                 ;;
12962             esac
12963             if test "X$additional_includedir" != "X"; then
12964                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12965                 haveit=
12966                 if test "X$additional_includedir" = "X/usr/local/include"; then
12967                   if test -n "$GCC"; then
12968                     case $host_os in
12969                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12970                     esac
12971                   fi
12972                 fi
12973                 if test -z "$haveit"; then
12974                   for x in $CPPFLAGS $INCINTL; do
12975
12976   acl_save_prefix="$prefix"
12977   prefix="$acl_final_prefix"
12978   acl_save_exec_prefix="$exec_prefix"
12979   exec_prefix="$acl_final_exec_prefix"
12980   eval x=\"$x\"
12981   exec_prefix="$acl_save_exec_prefix"
12982   prefix="$acl_save_prefix"
12983
12984                     if test "X$x" = "X-I$additional_includedir"; then
12985                       haveit=yes
12986                       break
12987                     fi
12988                   done
12989                   if test -z "$haveit"; then
12990                     if test -d "$additional_includedir"; then
12991                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12992                     fi
12993                   fi
12994                 fi
12995               fi
12996             fi
12997                         if test -n "$found_la"; then
12998                                                         save_libdir="$libdir"
12999               case "$found_la" in
13000                 */* | *\\*) . "$found_la" ;;
13001                 *) . "./$found_la" ;;
13002               esac
13003               libdir="$save_libdir"
13004                             for dep in $dependency_libs; do
13005                 case "$dep" in
13006                   -L*)
13007                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13008                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13009                       haveit=
13010                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13011                         if test -n "$GCC"; then
13012                           case $host_os in
13013                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13014                           esac
13015                         fi
13016                       fi
13017                       if test -z "$haveit"; then
13018                         haveit=
13019                         for x in $LDFLAGS $LIBINTL; do
13020
13021   acl_save_prefix="$prefix"
13022   prefix="$acl_final_prefix"
13023   acl_save_exec_prefix="$exec_prefix"
13024   exec_prefix="$acl_final_exec_prefix"
13025   eval x=\"$x\"
13026   exec_prefix="$acl_save_exec_prefix"
13027   prefix="$acl_save_prefix"
13028
13029                           if test "X$x" = "X-L$additional_libdir"; then
13030                             haveit=yes
13031                             break
13032                           fi
13033                         done
13034                         if test -z "$haveit"; then
13035                           if test -d "$additional_libdir"; then
13036                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13037                           fi
13038                         fi
13039                         haveit=
13040                         for x in $LDFLAGS $LTLIBINTL; do
13041
13042   acl_save_prefix="$prefix"
13043   prefix="$acl_final_prefix"
13044   acl_save_exec_prefix="$exec_prefix"
13045   exec_prefix="$acl_final_exec_prefix"
13046   eval x=\"$x\"
13047   exec_prefix="$acl_save_exec_prefix"
13048   prefix="$acl_save_prefix"
13049
13050                           if test "X$x" = "X-L$additional_libdir"; then
13051                             haveit=yes
13052                             break
13053                           fi
13054                         done
13055                         if test -z "$haveit"; then
13056                           if test -d "$additional_libdir"; then
13057                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13058                           fi
13059                         fi
13060                       fi
13061                     fi
13062                     ;;
13063                   -R*)
13064                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13065                     if test "$enable_rpath" != no; then
13066                                                                   haveit=
13067                       for x in $rpathdirs; do
13068                         if test "X$x" = "X$dir"; then
13069                           haveit=yes
13070                           break
13071                         fi
13072                       done
13073                       if test -z "$haveit"; then
13074                         rpathdirs="$rpathdirs $dir"
13075                       fi
13076                                                                   haveit=
13077                       for x in $ltrpathdirs; do
13078                         if test "X$x" = "X$dir"; then
13079                           haveit=yes
13080                           break
13081                         fi
13082                       done
13083                       if test -z "$haveit"; then
13084                         ltrpathdirs="$ltrpathdirs $dir"
13085                       fi
13086                     fi
13087                     ;;
13088                   -l*)
13089                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13090                     ;;
13091                   *.la)
13092                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13093                     ;;
13094                   *)
13095                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13096                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13097                     ;;
13098                 esac
13099               done
13100             fi
13101           else
13102                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13103             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13104           fi
13105         fi
13106       fi
13107     done
13108   done
13109   if test "X$rpathdirs" != "X"; then
13110     if test -n "$hardcode_libdir_separator"; then
13111                         alldirs=
13112       for found_dir in $rpathdirs; do
13113         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13114       done
13115             acl_save_libdir="$libdir"
13116       libdir="$alldirs"
13117       eval flag=\"$hardcode_libdir_flag_spec\"
13118       libdir="$acl_save_libdir"
13119       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13120     else
13121             for found_dir in $rpathdirs; do
13122         acl_save_libdir="$libdir"
13123         libdir="$found_dir"
13124         eval flag=\"$hardcode_libdir_flag_spec\"
13125         libdir="$acl_save_libdir"
13126         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13127       done
13128     fi
13129   fi
13130   if test "X$ltrpathdirs" != "X"; then
13131             for found_dir in $ltrpathdirs; do
13132       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13133     done
13134   fi
13135
13136           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13137 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13138 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   gt_save_CPPFLAGS="$CPPFLAGS"
13142             CPPFLAGS="$CPPFLAGS $INCINTL"
13143             gt_save_LIBS="$LIBS"
13144             LIBS="$LIBS $LIBINTL"
13145                         cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151 #include <libintl.h>
13152 extern int _nl_msg_cat_cntr;
13153 extern
13154 #ifdef __cplusplus
13155 "C"
13156 #endif
13157 const char *_nl_expand_alias (const char *);
13158 int
13159 main ()
13160 {
13161 bindtextdomain ("", "");
13162 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_link") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } && {
13181          test -z "$ac_c_werror_flag" ||
13182          test ! -s conftest.err
13183        } && test -s conftest$ac_exeext &&
13184        $as_test_x conftest$ac_exeext; then
13185   gt_cv_func_gnugettext1_libintl=yes
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190         gt_cv_func_gnugettext1_libintl=no
13191 fi
13192
13193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13194       conftest$ac_exeext conftest.$ac_ext
13195                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13196               LIBS="$LIBS $LIBICONV"
13197               cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203 #include <libintl.h>
13204 extern int _nl_msg_cat_cntr;
13205 extern
13206 #ifdef __cplusplus
13207 "C"
13208 #endif
13209 const char *_nl_expand_alias (const char *);
13210 int
13211 main ()
13212 {
13213 bindtextdomain ("", "");
13214 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_link") 2>conftest.er1
13227   ac_status=$?
13228   grep -v '^ *+' conftest.er1 >conftest.err
13229   rm -f conftest.er1
13230   cat conftest.err >&5
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); } && {
13233          test -z "$ac_c_werror_flag" ||
13234          test ! -s conftest.err
13235        } && test -s conftest$ac_exeext &&
13236        $as_test_x conftest$ac_exeext; then
13237   LIBINTL="$LIBINTL $LIBICONV"
13238                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13239                 gt_cv_func_gnugettext1_libintl=yes
13240
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245
13246 fi
13247
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249       conftest$ac_exeext conftest.$ac_ext
13250             fi
13251             CPPFLAGS="$gt_save_CPPFLAGS"
13252             LIBS="$gt_save_LIBS"
13253 fi
13254 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13255 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13256         fi
13257
13258                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13259            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13260                 && test "$PACKAGE" != gettext-runtime \
13261                 && test "$PACKAGE" != gettext-tools; }; then
13262           gt_use_preinstalled_gnugettext=yes
13263         else
13264                     LIBINTL=
13265           LTLIBINTL=
13266           INCINTL=
13267         fi
13268
13269
13270         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13271                               nls_cv_use_gnu_gettext=yes
13272         fi
13273       fi
13274
13275       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13276                 BUILD_INCLUDED_LIBINTL=yes
13277         USE_INCLUDED_LIBINTL=yes
13278         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13279         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13280         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13281       fi
13282
13283       CATOBJEXT=
13284       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13285          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13286                 CATOBJEXT=.gmo
13287       fi
13288
13289
13290     if test -n "$INTL_MACOSX_LIBS"; then
13291       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13292          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13293                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13294         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13295       fi
13296     fi
13297
13298     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13299        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13300
13301 cat >>confdefs.h <<\_ACEOF
13302 #define ENABLE_NLS 1
13303 _ACEOF
13304
13305     else
13306       USE_NLS=no
13307     fi
13308   fi
13309
13310   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13311 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13312   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13313 echo "${ECHO_T}$USE_NLS" >&6; }
13314   if test "$USE_NLS" = "yes"; then
13315     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13316 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13317     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13318       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13319         gt_source="external libintl"
13320       else
13321         gt_source="libc"
13322       fi
13323     else
13324       gt_source="included intl directory"
13325     fi
13326     { echo "$as_me:$LINENO: result: $gt_source" >&5
13327 echo "${ECHO_T}$gt_source" >&6; }
13328   fi
13329
13330   if test "$USE_NLS" = "yes"; then
13331
13332     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13333       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13334         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13335 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13336         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13337 echo "${ECHO_T}$LIBINTL" >&6; }
13338
13339   for element in $INCINTL; do
13340     haveit=
13341     for x in $CPPFLAGS; do
13342
13343   acl_save_prefix="$prefix"
13344   prefix="$acl_final_prefix"
13345   acl_save_exec_prefix="$exec_prefix"
13346   exec_prefix="$acl_final_exec_prefix"
13347   eval x=\"$x\"
13348   exec_prefix="$acl_save_exec_prefix"
13349   prefix="$acl_save_prefix"
13350
13351       if test "X$x" = "X$element"; then
13352         haveit=yes
13353         break
13354       fi
13355     done
13356     if test -z "$haveit"; then
13357       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13358     fi
13359   done
13360
13361       fi
13362
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_GETTEXT 1
13366 _ACEOF
13367
13368
13369 cat >>confdefs.h <<\_ACEOF
13370 #define HAVE_DCGETTEXT 1
13371 _ACEOF
13372
13373     fi
13374
13375         POSUB=po
13376   fi
13377
13378
13379             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13380       BUILD_INCLUDED_LIBINTL=yes
13381     fi
13382
13383
13384
13385
13386
13387         nls_cv_header_intl=
13388     nls_cv_header_libgt=
13389
13390         DATADIRNAME=share
13391
13392
13393         INSTOBJEXT=.mo
13394
13395
13396         GENCAT=gencat
13397
13398
13399         INTLOBJS=
13400     if test "$USE_INCLUDED_LIBINTL" = yes; then
13401       INTLOBJS="\$(GETTOBJS)"
13402     fi
13403
13404
13405         INTL_LIBTOOL_SUFFIX_PREFIX=
13406
13407
13408
13409     INTLLIBS="$LIBINTL"
13410
13411
13412
13413
13414
13415
13416 fi
13417
13418
13419 support_mysql=no
13420 support_sqlite=no
13421 support_sqlite3=no
13422 support_postgresql=no
13423 support_smartalloc=yes
13424 support_readline=yes
13425 support_conio=yes
13426 support_gnome=no
13427 support_bat=no
13428 support_wx_console=no
13429 support_tls=no
13430 support_crypto=no
13431 gnome_version=
13432 wx_version=
13433 support_static_tools=no
13434 support_static_fd=no
13435 support_static_sd=no
13436 support_static_dir=no
13437 support_static_cons=no
13438 support_python=no
13439 build_client_only=no
13440 build_dird=yes
13441 build_stored=yes
13442 cats=
13443 db_type=Internal
13444 DB_TYPE=bdb
13445
13446
13447 # -------------------------------------------
13448 # gnome (default off)
13449 # -------------------------------------------
13450 # Check whether --enable-gnome was given.
13451 if test "${enable_gnome+set}" = set; then
13452   enableval=$enable_gnome; if test x$enableval = xyes; then
13453     support_gnome=yes
13454   fi
13455 fi
13456
13457
13458 GNOME_DIR=
13459 if test x$support_gnome = xyes; then
13460   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13461   pkg=$?
13462   if test $pkg = 0; then
13463      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13464      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13465      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13466      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13467
13468
13469
13470
13471      GNOME_DIR=src/gnome2-console
13472      gnome_version="Version 2.x"
13473   else
13474      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13475 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13476    { (exit 1); exit 1; }; }
13477   fi
13478 fi
13479
13480
13481 # -------------------------------------------
13482 # bat (default off)
13483 # -------------------------------------------
13484 # Check whether --enable-bat was given.
13485 if test "${enable_bat+set}" = set; then
13486   enableval=$enable_bat; if test x$enableval = xyes; then
13487
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_BAT 1
13490 _ACEOF
13491
13492     support_bat=yes
13493   fi
13494 fi
13495
13496
13497 BAT_DIR=
13498 if test x$support_bat = xyes; then
13499   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13500   pkg=$?
13501   if test $pkg = 0; then
13502      BAT_DIR=src/qt-console
13503   else
13504      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13505 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13506    { (exit 1); exit 1; }; }
13507   fi
13508 fi
13509
13510 #
13511 #  If bat is enabled, we need the qwt library
13512 got_qwt=no
13513 QWT_INC=
13514 QWT_LDFLAGS=
13515 if test x$support_bat = xyes; then
13516    { echo "$as_me:$LINENO: checking for qwt support" >&5
13517 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13518
13519 # Check whether --with-qwt was given.
13520 if test "${with_qwt+set}" = set; then
13521   withval=$with_qwt;
13522         case "$with_qwt" in
13523         no)
13524           ;;
13525         yes|*)
13526           if test -f ${with_qwt}/include/qwt.h; then
13527              QWT_INC="${with_qwt}/include"
13528              QWT_LDFLAGS="-L${with_qwt}/lib"
13529           fi
13530           ;;
13531         esac
13532
13533
13534 fi
13535
13536 #
13537 # Search in standard places, or --with-qwt not specified
13538 #
13539    if test x$QWT_INC = x; then
13540       for root in /usr /usr/local; do
13541          for ver in qwt qwt5 qwt-qt4; do
13542             if test -f ${root}/include/${ver}/qwt.h; then
13543                QWT_INC="${root}/include/${ver}"
13544                if test -d ${root}/lib64/; then
13545                   QWT_LDFLAGS="-L${root}/lib64"
13546                else
13547                   QWT_LDFLAGS="-L${root}/lib"
13548                fi
13549                got_qwt=yes
13550                break;
13551             fi
13552          done
13553       done
13554    fi
13555    if test x$QWT_INC = x; then
13556       { echo "$as_me:$LINENO: result: no" >&5
13557 echo "${ECHO_T}no" >&6; }
13558       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13559 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13560    { (exit 1); exit 1; }; }
13561       BAT_DIR=
13562       support_bat=no
13563    else
13564       { echo "$as_me:$LINENO: result: yes" >&5
13565 echo "${ECHO_T}yes" >&6; }
13566    fi
13567 fi
13568
13569
13570
13571
13572
13573
13574 # -------------------------------------------
13575 # bwx-console (default off)
13576 # -------------------------------------------
13577 # Check whether --enable-bwx-console was given.
13578 if test "${enable_bwx_console+set}" = set; then
13579   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13580     support_wx_console=yes
13581   fi
13582 fi
13583
13584
13585 WX_DIR=
13586 if test x$support_wx_console = xyes; then
13587   abc=`$WXCONFIG $WXFLAGS --cppflags`
13588   pkg=$?
13589   if test $pkg = 0; then
13590      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13591      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13592      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13593
13594
13595
13596      WX_DIR=src/wx-console
13597   else
13598      echo " "
13599      echo "wx-config program not found. bwx-console disabled."
13600      echo " "
13601      support_wx_console=no
13602   fi
13603 fi
13604
13605
13606
13607 # -------------------------------------------
13608 # tray-monitor (default off)
13609 # -------------------------------------------
13610 # Check whether --enable-tray-monitor was given.
13611 if test "${enable_tray_monitor+set}" = set; then
13612   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13613     support_tray_monitor=yes
13614   fi
13615 fi
13616
13617
13618 TRAY_MONITOR_DIR=
13619 if test x$support_tray_monitor = xyes; then
13620   abc=`$PKGCONFIG --exists gtk+-2.0`
13621   pkg=$?
13622   if test $pkg = 0; then
13623      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13624      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13625
13626
13627      TRAY_MONITOR_DIR=src/tray-monitor
13628      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13629      pkg=$?
13630      if test $pkg = 0; then
13631
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_GTK_2_4 1
13634 _ACEOF
13635
13636      fi
13637   fi
13638 fi
13639
13640
13641 # -------------------------------------------
13642 # smartalloc (default off)
13643 # -------------------------------------------
13644 # Check whether --enable-smartalloc was given.
13645 if test "${enable_smartalloc+set}" = set; then
13646   enableval=$enable_smartalloc; if test x$enableval = xno; then
13647     support_smartalloc=no
13648   fi
13649 fi
13650
13651
13652 if test x$support_smartalloc = xyes; then
13653
13654 cat >>confdefs.h <<\_ACEOF
13655 #define SMARTALLOC 1
13656 _ACEOF
13657
13658 fi
13659
13660 # -------------------------------------------
13661 # static-tools (default off)
13662 # -------------------------------------------
13663 # Check whether --enable-static-tools was given.
13664 if test "${enable_static_tools+set}" = set; then
13665   enableval=$enable_static_tools; if test x$enableval = xyes; then
13666      support_static_tools=yes
13667    fi
13668 fi
13669
13670
13671 TTOOL_LDFLAGS=
13672 if test x$support_static_tools = xyes; then
13673    TTOOL_LDFLAGS="-static"
13674 fi
13675
13676
13677 # -------------------------------------------
13678 # static-fd    (default off)
13679 # -------------------------------------------
13680 # Check whether --enable-static-fd was given.
13681 if test "${enable_static_fd+set}" = set; then
13682   enableval=$enable_static_fd; if test x$enableval = xyes; then
13683      support_static_fd=yes
13684    fi
13685 fi
13686
13687
13688 STATIC_FD=
13689 if test x$support_static_fd = xyes; then
13690    STATIC_FD="static-bacula-fd"
13691 fi
13692
13693
13694 # -------------------------------------------
13695 # static-sd    (default off)
13696 # -------------------------------------------
13697 # Check whether --enable-static-sd was given.
13698 if test "${enable_static_sd+set}" = set; then
13699   enableval=$enable_static_sd; if test x$enableval = xyes; then
13700      support_static_sd=yes
13701    fi
13702 fi
13703
13704
13705 STATIC_SD=
13706 if test x$support_static_sd = xyes; then
13707    STATIC_SD="static-bacula-sd"
13708 fi
13709
13710
13711 # -------------------------------------------
13712 # static-dir   (default off)
13713 # -------------------------------------------
13714 # Check whether --enable-static-dir was given.
13715 if test "${enable_static_dir+set}" = set; then
13716   enableval=$enable_static_dir; if test x$enableval = xyes; then
13717      support_static_dir=yes
13718    fi
13719 fi
13720
13721
13722 STATIC_DIR=
13723 if test x$support_static_dir = xyes; then
13724    STATIC_DIR="static-bacula-dir"
13725 fi
13726
13727
13728 # -------------------------------------------
13729 # static-cons  (default off)
13730 # -------------------------------------------
13731 # Check whether --enable-static-cons was given.
13732 if test "${enable_static_cons+set}" = set; then
13733   enableval=$enable_static_cons; if test x$enableval = xyes; then
13734      support_static_cons=yes
13735    fi
13736 fi
13737
13738
13739 STATIC_CONS=
13740 STATIC_GNOME_CONS=
13741 STATIC_WX_CONS=
13742 if test x$support_static_cons = xyes; then
13743    STATIC_CONS="static-bconsole"
13744    STATIC_GNOME_CONS="static-bgnome-console"
13745    STATIC_WX_CONS="static-bwx-console"
13746 fi
13747
13748
13749
13750
13751 # -------------------------------------------
13752 # client_only  (default off)
13753 # -------------------------------------------
13754 # Check whether --enable-client-only was given.
13755 if test "${enable_client_only+set}" = set; then
13756   enableval=$enable_client_only; if test x$enableval = xyes; then
13757       build_client_only=yes
13758       db_type=None
13759       DB_TYPE=none
13760    fi
13761 fi
13762
13763 if test x$build_client_only = xno; then
13764    ALL_DIRS="subdirs"
13765 else
13766    ALL_DIRS=""
13767 fi
13768
13769
13770 # -------------------------------------------
13771 # director  (default on)
13772 # -------------------------------------------
13773 # Check whether --enable-build-dird was given.
13774 if test "${enable_build_dird+set}" = set; then
13775   enableval=$enable_build_dird; if test x$enableval = xno; then
13776       build_dird=no
13777    fi
13778 fi
13779
13780 if test x$build_dird = xyes; then
13781    DIRD_DIR="src/dird"
13782    DIR_TOOLS="DIRTOOLS"
13783 else
13784    DIRD_DIR=""
13785    DIR_TOOLS="NODIRTOOLS"
13786 fi
13787
13788
13789
13790 # -------------------------------------------
13791 # stored  (default on)
13792 # -------------------------------------------
13793 # Check whether --enable-build-stored was given.
13794 if test "${enable_build_stored+set}" = set; then
13795   enableval=$enable_build_stored; if test x$enableval = xno; then
13796       build_stored=no
13797    fi
13798 fi
13799
13800 if test x$build_stored = xyes; then
13801    STORED_DIR="src/stored"
13802 else
13803    STORED_DIR=""
13804 fi
13805
13806
13807 # ---------------------------------------------------
13808 # Check for conio (Bacula readline substitute)(
13809 # ---------------------------------------------------
13810 # this allows you to turn it completely off
13811 # Check whether --enable-conio was given.
13812 if test "${enable_conio+set}" = set; then
13813   enableval=$enable_conio; if test x$enableval = xno; then
13814      support_conio=no
13815   fi
13816
13817 fi
13818
13819
13820
13821 # ---------------------------------------------------
13822 # Check for IPv6 support
13823 # ---------------------------------------------------
13824 # this allows you to turn it completely off
13825 support_ipv6=yes
13826 # Check whether --enable-ipv6 was given.
13827 if test "${enable_ipv6+set}" = set; then
13828   enableval=$enable_ipv6; if test x$enableval = xno; then
13829      support_ipv6=no
13830   fi
13831
13832 fi
13833
13834
13835 if test x$support_ipv6 = xyes; then
13836     cat >conftest.$ac_ext <<_ACEOF
13837 /* confdefs.h.  */
13838 _ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h.  */
13842  #include <sys/types.h>
13843 #include <sys/socket.h>
13844 #include <netinet/in.h>
13845 int
13846 main ()
13847 {
13848 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853 rm -f conftest.$ac_objext conftest$ac_exeext
13854 if { (ac_try="$ac_link"
13855 case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_link") 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } && {
13867          test -z "$ac_c_werror_flag" ||
13868          test ! -s conftest.err
13869        } && test -s conftest$ac_exeext &&
13870        $as_test_x conftest$ac_exeext; then
13871   support_ipv6=yes
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876         support_ipv6=no
13877 fi
13878
13879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13880       conftest$ac_exeext conftest.$ac_ext
13881 fi
13882
13883 if test x$support_ipv6 = xyes; then
13884
13885 cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_IPV6 1
13887 _ACEOF
13888
13889 fi
13890
13891
13892
13893 got_conio="no"
13894 if test x$support_conio = xyes; then
13895    if test "${ac_cv_header_termcap_h+set}" = set; then
13896   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13897 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13898 if test "${ac_cv_header_termcap_h+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 fi
13901 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13902 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13903 else
13904   # Is the header compilable?
13905 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13906 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913 $ac_includes_default
13914 #include <termcap.h>
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_compile") 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } && {
13930          test -z "$ac_c_werror_flag" ||
13931          test ! -s conftest.err
13932        } && test -s conftest.$ac_objext; then
13933   ac_header_compiler=yes
13934 else
13935   echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938         ac_header_compiler=no
13939 fi
13940
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13943 echo "${ECHO_T}$ac_header_compiler" >&6; }
13944
13945 # Is the header present?
13946 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13947 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 #include <termcap.h>
13955 _ACEOF
13956 if { (ac_try="$ac_cpp conftest.$ac_ext"
13957 case "(($ac_try" in
13958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959   *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13963   ac_status=$?
13964   grep -v '^ *+' conftest.er1 >conftest.err
13965   rm -f conftest.er1
13966   cat conftest.err >&5
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } >/dev/null && {
13969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13970          test ! -s conftest.err
13971        }; then
13972   ac_header_preproc=yes
13973 else
13974   echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977   ac_header_preproc=no
13978 fi
13979
13980 rm -f conftest.err conftest.$ac_ext
13981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13982 echo "${ECHO_T}$ac_header_preproc" >&6; }
13983
13984 # So?  What about this header?
13985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13986   yes:no: )
13987     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13988 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13989     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13990 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13991     ac_header_preproc=yes
13992     ;;
13993   no:yes:* )
13994     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13995 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13996     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13997 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13998     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13999 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14001 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14003 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14004     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14005 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14006
14007     ;;
14008 esac
14009 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14010 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14011 if test "${ac_cv_header_termcap_h+set}" = set; then
14012   echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014   ac_cv_header_termcap_h=$ac_header_preproc
14015 fi
14016 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14017 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14018
14019 fi
14020 if test $ac_cv_header_termcap_h = yes; then
14021    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14022 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14024   echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026   ac_check_lib_save_LIBS=$LIBS
14027 LIBS="-ltermcap  $LIBS"
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034
14035 /* Override any GCC internal prototype to avoid an error.
14036    Use char because int might match the return type of a GCC
14037    builtin and then its argument prototype would still apply.  */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char tgetent ();
14042 int
14043 main ()
14044 {
14045 return tgetent ();
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_link") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } && {
14064          test -z "$ac_c_werror_flag" ||
14065          test ! -s conftest.err
14066        } && test -s conftest$ac_exeext &&
14067        $as_test_x conftest$ac_exeext; then
14068   ac_cv_lib_termcap_tgetent=yes
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073         ac_cv_lib_termcap_tgetent=no
14074 fi
14075
14076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077       conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14079 fi
14080 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14081 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14082 if test $ac_cv_lib_termcap_tgetent = yes; then
14083    CONS_LIBS="-ltermcap"
14084          CONS_OBJ="conio.o"
14085          CONS_SRC="conio.c"
14086          got_conio="yes"
14087          support_readline=no
14088
14089 cat >>confdefs.h <<\_ACEOF
14090 #define HAVE_CONIO 1
14091 _ACEOF
14092
14093
14094 else
14095    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14096 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14098   echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100   ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lncurses  $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108
14109 /* Override any GCC internal prototype to avoid an error.
14110    Use char because int might match the return type of a GCC
14111    builtin and then its argument prototype would still apply.  */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 char tgetent ();
14116 int
14117 main ()
14118 {
14119 return tgetent ();
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_link") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } && {
14138          test -z "$ac_c_werror_flag" ||
14139          test ! -s conftest.err
14140        } && test -s conftest$ac_exeext &&
14141        $as_test_x conftest$ac_exeext; then
14142   ac_cv_lib_ncurses_tgetent=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147         ac_cv_lib_ncurses_tgetent=no
14148 fi
14149
14150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14151       conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14153 fi
14154 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14155 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14156 if test $ac_cv_lib_ncurses_tgetent = yes; then
14157    CONS_LIBS="-lncurses"
14158            CONS_OBJ="conio.o"
14159            CONS_SRC="conio.c"
14160            got_conio="yes"
14161            support_readline=no
14162
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_CONIO 1
14165 _ACEOF
14166
14167
14168 fi
14169
14170
14171 fi
14172
14173
14174 else
14175
14176
14177 for ac_header in curses.h
14178 do
14179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 fi
14186 ac_res=`eval echo '${'$as_ac_Header'}'`
14187                { echo "$as_me:$LINENO: result: $ac_res" >&5
14188 echo "${ECHO_T}$ac_res" >&6; }
14189 else
14190   # Is the header compilable?
14191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 $ac_includes_default
14200 #include <$ac_header>
14201 _ACEOF
14202 rm -f conftest.$ac_objext
14203 if { (ac_try="$ac_compile"
14204 case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_compile") 2>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } && {
14216          test -z "$ac_c_werror_flag" ||
14217          test ! -s conftest.err
14218        } && test -s conftest.$ac_objext; then
14219   ac_header_compiler=yes
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224         ac_header_compiler=no
14225 fi
14226
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14229 echo "${ECHO_T}$ac_header_compiler" >&6; }
14230
14231 # Is the header present?
14232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14234 cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h.  */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h.  */
14240 #include <$ac_header>
14241 _ACEOF
14242 if { (ac_try="$ac_cpp conftest.$ac_ext"
14243 case "(($ac_try" in
14244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245   *) ac_try_echo=$ac_try;;
14246 esac
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } >/dev/null && {
14255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14256          test ! -s conftest.err
14257        }; then
14258   ac_header_preproc=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263   ac_header_preproc=no
14264 fi
14265
14266 rm -f conftest.err conftest.$ac_ext
14267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14268 echo "${ECHO_T}$ac_header_preproc" >&6; }
14269
14270 # So?  What about this header?
14271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14272   yes:no: )
14273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14277     ac_header_preproc=yes
14278     ;;
14279   no:yes:* )
14280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14292
14293     ;;
14294 esac
14295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300   eval "$as_ac_Header=\$ac_header_preproc"
14301 fi
14302 ac_res=`eval echo '${'$as_ac_Header'}'`
14303                { echo "$as_me:$LINENO: result: $ac_res" >&5
14304 echo "${ECHO_T}$ac_res" >&6; }
14305
14306 fi
14307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14308   cat >>confdefs.h <<_ACEOF
14309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14310 _ACEOF
14311
14312 fi
14313
14314 done
14315
14316          { echo "$as_me:$LINENO: checking for term.h" >&5
14317 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14318 if test "${ac_cv_header_term_h+set}" = set; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327 #if HAVE_CURSES_H
14328 #include <curses.h>
14329 #endif
14330
14331
14332 #include <term.h>
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_compile") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } && {
14348          test -z "$ac_c_werror_flag" ||
14349          test ! -s conftest.err
14350        } && test -s conftest.$ac_objext; then
14351   ac_cv_header_term_h=yes
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356         ac_cv_header_term_h=no
14357 fi
14358
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 fi
14361 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14362 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14363 if test $ac_cv_header_term_h = yes; then
14364    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14365 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14366 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lcurses  $LIBS"
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377
14378 /* Override any GCC internal prototype to avoid an error.
14379    Use char because int might match the return type of a GCC
14380    builtin and then its argument prototype would still apply.  */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 char tgetent ();
14385 int
14386 main ()
14387 {
14388 return tgetent ();
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_link") 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } && {
14407          test -z "$ac_c_werror_flag" ||
14408          test ! -s conftest.err
14409        } && test -s conftest$ac_exeext &&
14410        $as_test_x conftest$ac_exeext; then
14411   ac_cv_lib_curses_tgetent=yes
14412 else
14413   echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14415
14416         ac_cv_lib_curses_tgetent=no
14417 fi
14418
14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14420       conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14422 fi
14423 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14424 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14425 if test $ac_cv_lib_curses_tgetent = yes; then
14426    CONS_LIBS="-lcurses"
14427                    CONS_OBJ="conio.o"
14428                    CONS_SRC="conio.c"
14429                    got_conio="yes"
14430                    support_readline=no
14431
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_CONIO 1
14434 _ACEOF
14435
14436
14437 fi
14438
14439
14440 else
14441    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14442 fi
14443
14444
14445
14446 fi
14447
14448
14449 fi
14450
14451
14452 # ---------------------------------------------------
14453 # Check for readline support/directory (default off)
14454 # ---------------------------------------------------
14455 # this allows you to turn it completely off
14456 # Check whether --enable-readline was given.
14457 if test "${enable_readline+set}" = set; then
14458   enableval=$enable_readline; if test x$enableval = xno; then
14459     support_readline=no
14460   fi
14461 fi
14462
14463
14464 got_readline="no"
14465 READLINE_SRC=
14466 if test x$support_readline = xyes; then
14467
14468 # Check whether --with-readline was given.
14469 if test "${with_readline+set}" = set; then
14470   withval=$with_readline;
14471         case "$with_readline" in
14472         no) : ;;
14473         yes|*)
14474           if test -f ${with_readline}/readline.h; then
14475              CONS_INC="-I${with_readline}"
14476              CONS_LDFLAGS="-L$with_readline"
14477           elif test -f ${with_readline}/include/readline/readline.h; then
14478              CONS_INC="-I${with_readline}/include/readline"
14479              CONS_LDFLAGS="-L${with_readline}/lib"
14480              with_readline="${with_readline}/include/readline"
14481           else
14482              with_readline="/usr/include/readline"
14483           fi
14484           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14486   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14487 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 fi
14491 ac_res=`eval echo '${'$as_ac_Header'}'`
14492                { echo "$as_me:$LINENO: result: $ac_res" >&5
14493 echo "${ECHO_T}$ac_res" >&6; }
14494 else
14495   # Is the header compilable?
14496 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14497 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 #include <${with_readline}/readline.h>
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (ac_try="$ac_compile"
14509 case "(($ac_try" in
14510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511   *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514   (eval "$ac_compile") 2>conftest.er1
14515   ac_status=$?
14516   grep -v '^ *+' conftest.er1 >conftest.err
14517   rm -f conftest.er1
14518   cat conftest.err >&5
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); } && {
14521          test -z "$ac_c_werror_flag" ||
14522          test ! -s conftest.err
14523        } && test -s conftest.$ac_objext; then
14524   ac_header_compiler=yes
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529         ac_header_compiler=no
14530 fi
14531
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14534 echo "${ECHO_T}$ac_header_compiler" >&6; }
14535
14536 # Is the header present?
14537 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14538 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <${with_readline}/readline.h>
14546 _ACEOF
14547 if { (ac_try="$ac_cpp conftest.$ac_ext"
14548 case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } >/dev/null && {
14560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14561          test ! -s conftest.err
14562        }; then
14563   ac_header_preproc=yes
14564 else
14565   echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568   ac_header_preproc=no
14569 fi
14570
14571 rm -f conftest.err conftest.$ac_ext
14572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14573 echo "${ECHO_T}$ac_header_preproc" >&6; }
14574
14575 # So?  What about this header?
14576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14577   yes:no: )
14578     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14579 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14580     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14581 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14582     ac_header_preproc=yes
14583     ;;
14584   no:yes:* )
14585     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14586 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14587     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14588 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14589     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14590 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14591     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14593     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14594 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14595     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14596 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14597
14598     ;;
14599 esac
14600 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14601 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   eval "$as_ac_Header=\$ac_header_preproc"
14606 fi
14607 ac_res=`eval echo '${'$as_ac_Header'}'`
14608                { echo "$as_me:$LINENO: result: $ac_res" >&5
14609 echo "${ECHO_T}$ac_res" >&6; }
14610
14611 fi
14612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14613
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_READLINE 1
14616 _ACEOF
14617
14618                CONS_LIBS="-lreadline -lhistory -ltermcap"
14619                got_readline="yes"
14620
14621 else
14622    echo " "
14623                echo "readline.h not found. readline turned off ..."
14624                echo " "
14625
14626
14627 fi
14628
14629
14630           ;;
14631         esac
14632
14633 else
14634
14635        # check for standard readline library
14636        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14637   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14638 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14639 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 fi
14642 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14643 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14644 else
14645   # Is the header compilable?
14646 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14647 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 $ac_includes_default
14655 #include </usr/include/readline/readline.h>
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661   *) ac_try_echo=$ac_try;;
14662 esac
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664   (eval "$ac_compile") 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } && {
14671          test -z "$ac_c_werror_flag" ||
14672          test ! -s conftest.err
14673        } && test -s conftest.$ac_objext; then
14674   ac_header_compiler=yes
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679         ac_header_compiler=no
14680 fi
14681
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14684 echo "${ECHO_T}$ac_header_compiler" >&6; }
14685
14686 # Is the header present?
14687 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14688 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695 #include </usr/include/readline/readline.h>
14696 _ACEOF
14697 if { (ac_try="$ac_cpp conftest.$ac_ext"
14698 case "(($ac_try" in
14699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700   *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14704   ac_status=$?
14705   grep -v '^ *+' conftest.er1 >conftest.err
14706   rm -f conftest.er1
14707   cat conftest.err >&5
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); } >/dev/null && {
14710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14711          test ! -s conftest.err
14712        }; then
14713   ac_header_preproc=yes
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718   ac_header_preproc=no
14719 fi
14720
14721 rm -f conftest.err conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14723 echo "${ECHO_T}$ac_header_preproc" >&6; }
14724
14725 # So?  What about this header?
14726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14727   yes:no: )
14728     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14729 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14730     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14731 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14732     ac_header_preproc=yes
14733     ;;
14734   no:yes:* )
14735     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14736 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14737     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14738 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14739     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14740 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14741     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14743     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14744 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14745     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14746 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14747
14748     ;;
14749 esac
14750 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14751 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14752 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14756 fi
14757 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14758 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14759
14760 fi
14761 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14762
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_READLINE 1
14765 _ACEOF
14766
14767            got_readline="yes"
14768            CONS_INC="-I/usr/include/readline"
14769            CONS_LIBS="-lreadline -ltermcap"
14770
14771 else
14772
14773            # Did not find standard library, so try Bacula's default
14774             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14776   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14777 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 fi
14781 ac_res=`eval echo '${'$as_ac_Header'}'`
14782                { echo "$as_me:$LINENO: result: $ac_res" >&5
14783 echo "${ECHO_T}$ac_res" >&6; }
14784 else
14785   # Is the header compilable?
14786 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14787 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h.  */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h.  */
14794 $ac_includes_default
14795 #include <${TOP_DIR}/depkgs/readline/readline.h>
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801   *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804   (eval "$ac_compile") 2>conftest.er1
14805   ac_status=$?
14806   grep -v '^ *+' conftest.er1 >conftest.err
14807   rm -f conftest.er1
14808   cat conftest.err >&5
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } && {
14811          test -z "$ac_c_werror_flag" ||
14812          test ! -s conftest.err
14813        } && test -s conftest.$ac_objext; then
14814   ac_header_compiler=yes
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819         ac_header_compiler=no
14820 fi
14821
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6; }
14825
14826 # Is the header present?
14827 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14828 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 #include <${TOP_DIR}/depkgs/readline/readline.h>
14836 _ACEOF
14837 if { (ac_try="$ac_cpp conftest.$ac_ext"
14838 case "(($ac_try" in
14839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840   *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14844   ac_status=$?
14845   grep -v '^ *+' conftest.er1 >conftest.err
14846   rm -f conftest.er1
14847   cat conftest.err >&5
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } >/dev/null && {
14850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14851          test ! -s conftest.err
14852        }; then
14853   ac_header_preproc=yes
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858   ac_header_preproc=no
14859 fi
14860
14861 rm -f conftest.err conftest.$ac_ext
14862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 echo "${ECHO_T}$ac_header_preproc" >&6; }
14864
14865 # So?  What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14867   yes:no: )
14868     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14869 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14871 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14872     ac_header_preproc=yes
14873     ;;
14874   no:yes:* )
14875     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14876 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14877     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14878 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14879     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14880 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14883     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14884 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14885     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14886 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14887
14888     ;;
14889 esac
14890 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14891 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   eval "$as_ac_Header=\$ac_header_preproc"
14896 fi
14897 ac_res=`eval echo '${'$as_ac_Header'}'`
14898                { echo "$as_me:$LINENO: result: $ac_res" >&5
14899 echo "${ECHO_T}$ac_res" >&6; }
14900
14901 fi
14902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14903
14904 cat >>confdefs.h <<\_ACEOF
14905 #define HAVE_READLINE 1
14906 _ACEOF
14907
14908                  got_readline="yes"
14909                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14910                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14911                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14912                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14913
14914 else
14915    echo " "
14916                 echo "readline.h not found. readline turned off ..."
14917                 echo " "
14918
14919
14920 fi
14921
14922
14923
14924
14925 fi
14926
14927
14928
14929
14930 fi
14931
14932 fi
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943 # Minimal stuff for readline Makefile configuration
14944 MAKE_SHELL=/bin/sh
14945
14946 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14947 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14948 if test "${ac_cv_header_stat_broken+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h.  */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h.  */
14957 #include <sys/types.h>
14958 #include <sys/stat.h>
14959
14960 #if defined S_ISBLK && defined S_IFDIR
14961 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14962 #endif
14963
14964 #if defined S_ISBLK && defined S_IFCHR
14965 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14966 #endif
14967
14968 #if defined S_ISLNK && defined S_IFREG
14969 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14970 #endif
14971
14972 #if defined S_ISSOCK && defined S_IFREG
14973 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14974 #endif
14975
14976 _ACEOF
14977 rm -f conftest.$ac_objext
14978 if { (ac_try="$ac_compile"
14979 case "(($ac_try" in
14980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981   *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984   (eval "$ac_compile") 2>conftest.er1
14985   ac_status=$?
14986   grep -v '^ *+' conftest.er1 >conftest.err
14987   rm -f conftest.er1
14988   cat conftest.err >&5
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); } && {
14991          test -z "$ac_c_werror_flag" ||
14992          test ! -s conftest.err
14993        } && test -s conftest.$ac_objext; then
14994   ac_cv_header_stat_broken=no
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999         ac_cv_header_stat_broken=yes
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15005 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15006 if test $ac_cv_header_stat_broken = yes; then
15007
15008 cat >>confdefs.h <<\_ACEOF
15009 #define STAT_MACROS_BROKEN 1
15010 _ACEOF
15011
15012 fi
15013
15014
15015
15016
15017
15018
15019 ac_header_dirent=no
15020 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15021   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15022 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15023 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h.  */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h.  */
15033 #include <sys/types.h>
15034 #include <$ac_hdr>
15035
15036 int
15037 main ()
15038 {
15039 if ((DIR *) 0)
15040 return 0;
15041   ;
15042   return 0;
15043 }
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (ac_try="$ac_compile"
15047 case "(($ac_try" in
15048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049   *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052   (eval "$ac_compile") 2>conftest.er1
15053   ac_status=$?
15054   grep -v '^ *+' conftest.er1 >conftest.err
15055   rm -f conftest.er1
15056   cat conftest.err >&5
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } && {
15059          test -z "$ac_c_werror_flag" ||
15060          test ! -s conftest.err
15061        } && test -s conftest.$ac_objext; then
15062   eval "$as_ac_Header=yes"
15063 else
15064   echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067         eval "$as_ac_Header=no"
15068 fi
15069
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 fi
15072 ac_res=`eval echo '${'$as_ac_Header'}'`
15073                { echo "$as_me:$LINENO: result: $ac_res" >&5
15074 echo "${ECHO_T}$ac_res" >&6; }
15075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15076   cat >>confdefs.h <<_ACEOF
15077 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15078 _ACEOF
15079
15080 ac_header_dirent=$ac_hdr; break
15081 fi
15082
15083 done
15084 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15085 if test $ac_header_dirent = dirent.h; then
15086   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15087 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15088 if test "${ac_cv_search_opendir+set}" = set; then
15089   echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091   ac_func_search_save_LIBS=$LIBS
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098
15099 /* Override any GCC internal prototype to avoid an error.
15100    Use char because int might match the return type of a GCC
15101    builtin and then its argument prototype would still apply.  */
15102 #ifdef __cplusplus
15103 extern "C"
15104 #endif
15105 char opendir ();
15106 int
15107 main ()
15108 {
15109 return opendir ();
15110   ;
15111   return 0;
15112 }
15113 _ACEOF
15114 for ac_lib in '' dir; do
15115   if test -z "$ac_lib"; then
15116     ac_res="none required"
15117   else
15118     ac_res=-l$ac_lib
15119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15120   fi
15121   rm -f conftest.$ac_objext conftest$ac_exeext
15122 if { (ac_try="$ac_link"
15123 case "(($ac_try" in
15124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125   *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128   (eval "$ac_link") 2>conftest.er1
15129   ac_status=$?
15130   grep -v '^ *+' conftest.er1 >conftest.err
15131   rm -f conftest.er1
15132   cat conftest.err >&5
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } && {
15135          test -z "$ac_c_werror_flag" ||
15136          test ! -s conftest.err
15137        } && test -s conftest$ac_exeext &&
15138        $as_test_x conftest$ac_exeext; then
15139   ac_cv_search_opendir=$ac_res
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144
15145 fi
15146
15147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15148       conftest$ac_exeext
15149   if test "${ac_cv_search_opendir+set}" = set; then
15150   break
15151 fi
15152 done
15153 if test "${ac_cv_search_opendir+set}" = set; then
15154   :
15155 else
15156   ac_cv_search_opendir=no
15157 fi
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15160 fi
15161 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15162 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15163 ac_res=$ac_cv_search_opendir
15164 if test "$ac_res" != no; then
15165   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15166
15167 fi
15168
15169 else
15170   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15171 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15172 if test "${ac_cv_search_opendir+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   ac_func_search_save_LIBS=$LIBS
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182
15183 /* Override any GCC internal prototype to avoid an error.
15184    Use char because int might match the return type of a GCC
15185    builtin and then its argument prototype would still apply.  */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char opendir ();
15190 int
15191 main ()
15192 {
15193 return opendir ();
15194   ;
15195   return 0;
15196 }
15197 _ACEOF
15198 for ac_lib in '' x; do
15199   if test -z "$ac_lib"; then
15200     ac_res="none required"
15201   else
15202     ac_res=-l$ac_lib
15203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15204   fi
15205   rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_link") 2>conftest.er1
15213   ac_status=$?
15214   grep -v '^ *+' conftest.er1 >conftest.err
15215   rm -f conftest.er1
15216   cat conftest.err >&5
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); } && {
15219          test -z "$ac_c_werror_flag" ||
15220          test ! -s conftest.err
15221        } && test -s conftest$ac_exeext &&
15222        $as_test_x conftest$ac_exeext; then
15223   ac_cv_search_opendir=$ac_res
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228
15229 fi
15230
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232       conftest$ac_exeext
15233   if test "${ac_cv_search_opendir+set}" = set; then
15234   break
15235 fi
15236 done
15237 if test "${ac_cv_search_opendir+set}" = set; then
15238   :
15239 else
15240   ac_cv_search_opendir=no
15241 fi
15242 rm conftest.$ac_ext
15243 LIBS=$ac_func_search_save_LIBS
15244 fi
15245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15247 ac_res=$ac_cv_search_opendir
15248 if test "$ac_res" != no; then
15249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15250
15251 fi
15252
15253 fi
15254
15255
15256
15257
15258
15259
15260
15261
15262 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15263 do
15264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15278 #define $ac_func innocuous_$ac_func
15279
15280 /* System header to define __stub macros and hopefully few prototypes,
15281     which can conflict with char $ac_func (); below.
15282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283     <limits.h> exists even on freestanding compilers.  */
15284
15285 #ifdef __STDC__
15286 # include <limits.h>
15287 #else
15288 # include <assert.h>
15289 #endif
15290
15291 #undef $ac_func
15292
15293 /* Override any GCC internal prototype to avoid an error.
15294    Use char because int might match the return type of a GCC
15295    builtin and then its argument prototype would still apply.  */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char $ac_func ();
15300 /* The GNU C library defines this for functions which it implements
15301     to always fail with ENOSYS.  Some functions are actually named
15302     something starting with __ and the normal name is an alias.  */
15303 #if defined __stub_$ac_func || defined __stub___$ac_func
15304 choke me
15305 #endif
15306
15307 int
15308 main ()
15309 {
15310 return $ac_func ();
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } && {
15329          test -z "$ac_c_werror_flag" ||
15330          test ! -s conftest.err
15331        } && test -s conftest$ac_exeext &&
15332        $as_test_x conftest$ac_exeext; then
15333   eval "$as_ac_var=yes"
15334 else
15335   echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338         eval "$as_ac_var=no"
15339 fi
15340
15341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15342       conftest$ac_exeext conftest.$ac_ext
15343 fi
15344 ac_res=`eval echo '${'$as_ac_var'}'`
15345                { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15347 if test `eval echo '${'$as_ac_var'}'` = yes; then
15348   cat >>confdefs.h <<_ACEOF
15349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15350 _ACEOF
15351
15352 fi
15353 done
15354
15355
15356
15357 for ac_func in nanosleep nl_langinfo
15358 do
15359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15363   echo $ECHO_N "(cached) $ECHO_C" >&6
15364 else
15365   cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15373 #define $ac_func innocuous_$ac_func
15374
15375 /* System header to define __stub macros and hopefully few prototypes,
15376     which can conflict with char $ac_func (); below.
15377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15378     <limits.h> exists even on freestanding compilers.  */
15379
15380 #ifdef __STDC__
15381 # include <limits.h>
15382 #else
15383 # include <assert.h>
15384 #endif
15385
15386 #undef $ac_func
15387
15388 /* Override any GCC internal prototype to avoid an error.
15389    Use char because int might match the return type of a GCC
15390    builtin and then its argument prototype would still apply.  */
15391 #ifdef __cplusplus
15392 extern "C"
15393 #endif
15394 char $ac_func ();
15395 /* The GNU C library defines this for functions which it implements
15396     to always fail with ENOSYS.  Some functions are actually named
15397     something starting with __ and the normal name is an alias.  */
15398 #if defined __stub_$ac_func || defined __stub___$ac_func
15399 choke me
15400 #endif
15401
15402 int
15403 main ()
15404 {
15405 return $ac_func ();
15406   ;
15407   return 0;
15408 }
15409 _ACEOF
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (ac_try="$ac_link"
15412 case "(($ac_try" in
15413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414   *) ac_try_echo=$ac_try;;
15415 esac
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417   (eval "$ac_link") 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } && {
15424          test -z "$ac_c_werror_flag" ||
15425          test ! -s conftest.err
15426        } && test -s conftest$ac_exeext &&
15427        $as_test_x conftest$ac_exeext; then
15428   eval "$as_ac_var=yes"
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433         eval "$as_ac_var=no"
15434 fi
15435
15436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15437       conftest$ac_exeext conftest.$ac_ext
15438 fi
15439 ac_res=`eval echo '${'$as_ac_var'}'`
15440                { echo "$as_me:$LINENO: result: $ac_res" >&5
15441 echo "${ECHO_T}$ac_res" >&6; }
15442 if test `eval echo '${'$as_ac_var'}'` = yes; then
15443   cat >>confdefs.h <<_ACEOF
15444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15445 _ACEOF
15446
15447 fi
15448 done
15449
15450
15451 for ac_header in varargs.h
15452 do
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 fi
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461                { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15463 else
15464   # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h.  */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h.  */
15473 $ac_includes_default
15474 #include <$ac_header>
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483   (eval "$ac_compile") 2>conftest.er1
15484   ac_status=$?
15485   grep -v '^ *+' conftest.er1 >conftest.err
15486   rm -f conftest.er1
15487   cat conftest.err >&5
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } && {
15490          test -z "$ac_c_werror_flag" ||
15491          test ! -s conftest.err
15492        } && test -s conftest.$ac_objext; then
15493   ac_header_compiler=yes
15494 else
15495   echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498         ac_header_compiler=no
15499 fi
15500
15501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15503 echo "${ECHO_T}$ac_header_compiler" >&6; }
15504
15505 # Is the header present?
15506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h.  */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h.  */
15514 #include <$ac_header>
15515 _ACEOF
15516 if { (ac_try="$ac_cpp conftest.$ac_ext"
15517 case "(($ac_try" in
15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519   *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } >/dev/null && {
15529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15530          test ! -s conftest.err
15531        }; then
15532   ac_header_preproc=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537   ac_header_preproc=no
15538 fi
15539
15540 rm -f conftest.err conftest.$ac_ext
15541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15542 echo "${ECHO_T}$ac_header_preproc" >&6; }
15543
15544 # So?  What about this header?
15545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15546   yes:no: )
15547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15551     ac_header_preproc=yes
15552     ;;
15553   no:yes:* )
15554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15557 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15558     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15561 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15564     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15566
15567     ;;
15568 esac
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   eval "$as_ac_Header=\$ac_header_preproc"
15575 fi
15576 ac_res=`eval echo '${'$as_ac_Header'}'`
15577                { echo "$as_me:$LINENO: result: $ac_res" >&5
15578 echo "${ECHO_T}$ac_res" >&6; }
15579
15580 fi
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582   cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584 _ACEOF
15585
15586 fi
15587
15588 done
15589
15590
15591 # End of readline/conio stuff
15592 # -----------------------------------------------------------------------
15593
15594 # -----------------------------------------------------------------------
15595 #  Check for Python support
15596 #
15597 { echo "$as_me:$LINENO: checking for Python support" >&5
15598 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15599
15600 # Check whether --with-python was given.
15601 if test "${with_python+set}" = set; then
15602   withval=$with_python;
15603   PYTHON_INCDIR=
15604   PYTHON_LIBS=
15605   if test "$withval" != "no"; then
15606      if test "$withval" = "yes"; then
15607         for python_root in /usr /usr/local /usr/sfw; do
15608           for ver in python2.2 python2.3 python2.4 python2.5; do
15609              if test -f $python_root/include/${ver}/Python.h; then
15610                 PYTHON_INCDIR=-I$python_root/include/${ver}
15611                 if test -d $python_root/lib64/${ver}/config; then
15612                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15613                 else
15614                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15615                 fi
15616                 break
15617              fi
15618           done
15619         done
15620         if test x$PYTHON_INCDIR = x; then
15621           if test -f $prefix/include/Python.h; then
15622              PYTHON_INCDIR=-I$prefix/include
15623              if test -d $prefix/lib64/config; then
15624                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15625              else
15626                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15627              fi
15628           else
15629            { echo "$as_me:$LINENO: result: no" >&5
15630 echo "${ECHO_T}no" >&6; }
15631            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15632 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15633    { (exit 1); exit 1; }; }
15634           fi
15635         fi
15636      else
15637         if test -f $withval/Python.h; then
15638            PYTHON_INCDIR=-I$withval
15639            PYTHON_LIBS="-L$withval/config -lpython"
15640         elif test -f $withval/include/Python.h; then
15641            PYTHON_INCDIR=-I$withval/include
15642            if test -d $withval/lib64/config; then
15643               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15644            else
15645               PYTHON_LIBS="-L$withval/lib/config -lpython"
15646            fi
15647         elif test -f $withval/include/python/Python.h; then
15648            PYTHON_INCDIR=-I$withval/include/python
15649            if test -d $withval/lib64/python/config; then
15650               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15651            else
15652               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15653            fi
15654         else
15655            { echo "$as_me:$LINENO: result: no" >&5
15656 echo "${ECHO_T}no" >&6; }
15657            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15658 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15659    { (exit 1); exit 1; }; }
15660         fi
15661      fi
15662      cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_PYTHON 1
15664 _ACEOF
15665
15666      { echo "$as_me:$LINENO: result: yes" >&5
15667 echo "${ECHO_T}yes" >&6; }
15668      support_python=yes
15669      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15670 echo "$as_me: checking for more Python libs" >&6;}
15671      saved_LIBS="$LIBS"; LIBS=
15672      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15673 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15674 if test "${ac_cv_search_shm_open+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   ac_func_search_save_LIBS=$LIBS
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684
15685 /* Override any GCC internal prototype to avoid an error.
15686    Use char because int might match the return type of a GCC
15687    builtin and then its argument prototype would still apply.  */
15688 #ifdef __cplusplus
15689 extern "C"
15690 #endif
15691 char shm_open ();
15692 int
15693 main ()
15694 {
15695 return shm_open ();
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 for ac_lib in '' rt; do
15701   if test -z "$ac_lib"; then
15702     ac_res="none required"
15703   else
15704     ac_res=-l$ac_lib
15705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15706   fi
15707   rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711   *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714   (eval "$ac_link") 2>conftest.er1
15715   ac_status=$?
15716   grep -v '^ *+' conftest.er1 >conftest.err
15717   rm -f conftest.er1
15718   cat conftest.err >&5
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } && {
15721          test -z "$ac_c_werror_flag" ||
15722          test ! -s conftest.err
15723        } && test -s conftest$ac_exeext &&
15724        $as_test_x conftest$ac_exeext; then
15725   ac_cv_search_shm_open=$ac_res
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730
15731 fi
15732
15733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15734       conftest$ac_exeext
15735   if test "${ac_cv_search_shm_open+set}" = set; then
15736   break
15737 fi
15738 done
15739 if test "${ac_cv_search_shm_open+set}" = set; then
15740   :
15741 else
15742   ac_cv_search_shm_open=no
15743 fi
15744 rm conftest.$ac_ext
15745 LIBS=$ac_func_search_save_LIBS
15746 fi
15747 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15748 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15749 ac_res=$ac_cv_search_shm_open
15750 if test "$ac_res" != no; then
15751   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15752
15753 fi
15754
15755
15756 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15757 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15758 if test "${ac_cv_lib_util_openpty+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   ac_check_lib_save_LIBS=$LIBS
15762 LIBS="-lutil  $LIBS"
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769
15770 /* Override any GCC internal prototype to avoid an error.
15771    Use char because int might match the return type of a GCC
15772    builtin and then its argument prototype would still apply.  */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 char openpty ();
15777 int
15778 main ()
15779 {
15780 return openpty ();
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 rm -f conftest.$ac_objext conftest$ac_exeext
15786 if { (ac_try="$ac_link"
15787 case "(($ac_try" in
15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789   *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792   (eval "$ac_link") 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } && {
15799          test -z "$ac_c_werror_flag" ||
15800          test ! -s conftest.err
15801        } && test -s conftest$ac_exeext &&
15802        $as_test_x conftest$ac_exeext; then
15803   ac_cv_lib_util_openpty=yes
15804 else
15805   echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808         ac_cv_lib_util_openpty=no
15809 fi
15810
15811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15812       conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15814 fi
15815 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15816 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15817 if test $ac_cv_lib_util_openpty = yes; then
15818   cat >>confdefs.h <<_ACEOF
15819 #define HAVE_LIBUTIL 1
15820 _ACEOF
15821
15822   LIBS="-lutil $LIBS"
15823
15824 fi
15825
15826      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15827      LIBS="$saved_LIBS"
15828   else
15829      { echo "$as_me:$LINENO: result: no" >&5
15830 echo "${ECHO_T}no" >&6; }
15831   fi
15832
15833 else
15834
15835   { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15837
15838 fi
15839
15840
15841
15842
15843 #
15844 # Find where sockets are (especially for Solaris)
15845 # Do this before the TCP Wrappers test since tcp wrappers
15846 # uses the socket library and some linkers are stupid.
15847 #
15848 { echo "$as_me:$LINENO: checking for socket" >&5
15849 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15850 if test "${ac_cv_func_socket+set}" = set; then
15851   echo $ECHO_N "(cached) $ECHO_C" >&6
15852 else
15853   cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15861 #define socket innocuous_socket
15862
15863 /* System header to define __stub macros and hopefully few prototypes,
15864     which can conflict with char socket (); below.
15865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15866     <limits.h> exists even on freestanding compilers.  */
15867
15868 #ifdef __STDC__
15869 # include <limits.h>
15870 #else
15871 # include <assert.h>
15872 #endif
15873
15874 #undef socket
15875
15876 /* Override any GCC internal prototype to avoid an error.
15877    Use char because int might match the return type of a GCC
15878    builtin and then its argument prototype would still apply.  */
15879 #ifdef __cplusplus
15880 extern "C"
15881 #endif
15882 char socket ();
15883 /* The GNU C library defines this for functions which it implements
15884     to always fail with ENOSYS.  Some functions are actually named
15885     something starting with __ and the normal name is an alias.  */
15886 #if defined __stub_socket || defined __stub___socket
15887 choke me
15888 #endif
15889
15890 int
15891 main ()
15892 {
15893 return socket ();
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902   *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905   (eval "$ac_link") 2>conftest.er1
15906   ac_status=$?
15907   grep -v '^ *+' conftest.er1 >conftest.err
15908   rm -f conftest.er1
15909   cat conftest.err >&5
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); } && {
15912          test -z "$ac_c_werror_flag" ||
15913          test ! -s conftest.err
15914        } && test -s conftest$ac_exeext &&
15915        $as_test_x conftest$ac_exeext; then
15916   ac_cv_func_socket=yes
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921         ac_cv_func_socket=no
15922 fi
15923
15924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15925       conftest$ac_exeext conftest.$ac_ext
15926 fi
15927 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15928 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15929 if test $ac_cv_func_socket = yes; then
15930   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15931 echo "${ECHO_T}using libc's socket" >&6; }
15932 else
15933
15934 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15935 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15936 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15937   echo $ECHO_N "(cached) $ECHO_C" >&6
15938 else
15939   ac_check_lib_save_LIBS=$LIBS
15940 LIBS="-lxnet  $LIBS"
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947
15948 /* Override any GCC internal prototype to avoid an error.
15949    Use char because int might match the return type of a GCC
15950    builtin and then its argument prototype would still apply.  */
15951 #ifdef __cplusplus
15952 extern "C"
15953 #endif
15954 char socket ();
15955 int
15956 main ()
15957 {
15958 return socket ();
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (ac_try="$ac_link"
15965 case "(($ac_try" in
15966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967   *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970   (eval "$ac_link") 2>conftest.er1
15971   ac_status=$?
15972   grep -v '^ *+' conftest.er1 >conftest.err
15973   rm -f conftest.er1
15974   cat conftest.err >&5
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); } && {
15977          test -z "$ac_c_werror_flag" ||
15978          test ! -s conftest.err
15979        } && test -s conftest$ac_exeext &&
15980        $as_test_x conftest$ac_exeext; then
15981   ac_cv_lib_xnet_socket=yes
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986         ac_cv_lib_xnet_socket=no
15987 fi
15988
15989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15990       conftest$ac_exeext conftest.$ac_ext
15991 LIBS=$ac_check_lib_save_LIBS
15992 fi
15993 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15994 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
15995 if test $ac_cv_lib_xnet_socket = yes; then
15996   cat >>confdefs.h <<_ACEOF
15997 #define HAVE_LIBXNET 1
15998 _ACEOF
15999
16000   LIBS="-lxnet $LIBS"
16001
16002 fi
16003
16004
16005 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16006 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16007 if test "${ac_cv_lib_socket_socket+set}" = set; then
16008   echo $ECHO_N "(cached) $ECHO_C" >&6
16009 else
16010   ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-lsocket  $LIBS"
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16018
16019 /* Override any GCC internal prototype to avoid an error.
16020    Use char because int might match the return type of a GCC
16021    builtin and then its argument prototype would still apply.  */
16022 #ifdef __cplusplus
16023 extern "C"
16024 #endif
16025 char socket ();
16026 int
16027 main ()
16028 {
16029 return socket ();
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038   *) ac_try_echo=$ac_try;;
16039 esac
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041   (eval "$ac_link") 2>conftest.er1
16042   ac_status=$?
16043   grep -v '^ *+' conftest.er1 >conftest.err
16044   rm -f conftest.er1
16045   cat conftest.err >&5
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); } && {
16048          test -z "$ac_c_werror_flag" ||
16049          test ! -s conftest.err
16050        } && test -s conftest$ac_exeext &&
16051        $as_test_x conftest$ac_exeext; then
16052   ac_cv_lib_socket_socket=yes
16053 else
16054   echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057         ac_cv_lib_socket_socket=no
16058 fi
16059
16060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16061       conftest$ac_exeext conftest.$ac_ext
16062 LIBS=$ac_check_lib_save_LIBS
16063 fi
16064 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16065 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16066 if test $ac_cv_lib_socket_socket = yes; then
16067   cat >>confdefs.h <<_ACEOF
16068 #define HAVE_LIBSOCKET 1
16069 _ACEOF
16070
16071   LIBS="-lsocket $LIBS"
16072
16073 fi
16074
16075
16076 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16077 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16078 if test "${ac_cv_lib_inet_socket+set}" = set; then
16079   echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081   ac_check_lib_save_LIBS=$LIBS
16082 LIBS="-linet  $LIBS"
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089
16090 /* Override any GCC internal prototype to avoid an error.
16091    Use char because int might match the return type of a GCC
16092    builtin and then its argument prototype would still apply.  */
16093 #ifdef __cplusplus
16094 extern "C"
16095 #endif
16096 char socket ();
16097 int
16098 main ()
16099 {
16100 return socket ();
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (ac_try="$ac_link"
16107 case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112   (eval "$ac_link") 2>conftest.er1
16113   ac_status=$?
16114   grep -v '^ *+' conftest.er1 >conftest.err
16115   rm -f conftest.er1
16116   cat conftest.err >&5
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } && {
16119          test -z "$ac_c_werror_flag" ||
16120          test ! -s conftest.err
16121        } && test -s conftest$ac_exeext &&
16122        $as_test_x conftest$ac_exeext; then
16123   ac_cv_lib_inet_socket=yes
16124 else
16125   echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16127
16128         ac_cv_lib_inet_socket=no
16129 fi
16130
16131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16132       conftest$ac_exeext conftest.$ac_ext
16133 LIBS=$ac_check_lib_save_LIBS
16134 fi
16135 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16136 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16137 if test $ac_cv_lib_inet_socket = yes; then
16138   cat >>confdefs.h <<_ACEOF
16139 #define HAVE_LIBINET 1
16140 _ACEOF
16141
16142   LIBS="-linet $LIBS"
16143
16144 fi
16145
16146 fi
16147
16148
16149
16150 # -----------------------------------------------------------
16151 # Check whether user wants TCP wrappers support (default off)
16152 # -----------------------------------------------------------
16153 TCPW_MSG="no"
16154 WRAPLIBS=""
16155
16156 # Check whether --with-tcp-wrappers was given.
16157 if test "${with_tcp_wrappers+set}" = set; then
16158   withval=$with_tcp_wrappers;
16159     if test "x$withval" != "xno" ; then
16160        saved_LIBS="$LIBS"
16161        LIBS="$saved_LIBS -lwrap"
16162        { echo "$as_me:$LINENO: checking for libwrap" >&5
16163 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16164        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16165 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16166 if test "${ac_cv_search_nanosleep+set}" = set; then
16167   echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169   ac_func_search_save_LIBS=$LIBS
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h.  */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h.  */
16176
16177 /* Override any GCC internal prototype to avoid an error.
16178    Use char because int might match the return type of a GCC
16179    builtin and then its argument prototype would still apply.  */
16180 #ifdef __cplusplus
16181 extern "C"
16182 #endif
16183 char nanosleep ();
16184 int
16185 main ()
16186 {
16187 return nanosleep ();
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 for ac_lib in '' rt; do
16193   if test -z "$ac_lib"; then
16194     ac_res="none required"
16195   else
16196     ac_res=-l$ac_lib
16197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16198   fi
16199   rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (ac_try="$ac_link"
16201 case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_link") 2>conftest.er1
16207   ac_status=$?
16208   grep -v '^ *+' conftest.er1 >conftest.err
16209   rm -f conftest.er1
16210   cat conftest.err >&5
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); } && {
16213          test -z "$ac_c_werror_flag" ||
16214          test ! -s conftest.err
16215        } && test -s conftest$ac_exeext &&
16216        $as_test_x conftest$ac_exeext; then
16217   ac_cv_search_nanosleep=$ac_res
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16221
16222
16223 fi
16224
16225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16226       conftest$ac_exeext
16227   if test "${ac_cv_search_nanosleep+set}" = set; then
16228   break
16229 fi
16230 done
16231 if test "${ac_cv_search_nanosleep+set}" = set; then
16232   :
16233 else
16234   ac_cv_search_nanosleep=no
16235 fi
16236 rm conftest.$ac_ext
16237 LIBS=$ac_func_search_save_LIBS
16238 fi
16239 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16240 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16241 ac_res=$ac_cv_search_nanosleep
16242 if test "$ac_res" != no; then
16243   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16244
16245 fi
16246
16247        cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253  #include <sys/types.h>
16254             #include <tcpd.h>
16255              int deny_severity = 0;
16256              int allow_severity = 0;
16257              struct request_info *req;
16258 int
16259 main ()
16260 {
16261  hosts_access(req);
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273   (eval "$ac_link") 2>conftest.er1
16274   ac_status=$?
16275   grep -v '^ *+' conftest.er1 >conftest.err
16276   rm -f conftest.er1
16277   cat conftest.err >&5
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } && {
16280          test -z "$ac_c_werror_flag" ||
16281          test ! -s conftest.err
16282        } && test -s conftest$ac_exeext &&
16283        $as_test_x conftest$ac_exeext; then
16284
16285             { echo "$as_me:$LINENO: result: yes" >&5
16286 echo "${ECHO_T}yes" >&6; }
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_LIBWRAP 1
16290 _ACEOF
16291
16292             TCPW_MSG="yes"
16293             LIBS="$saved_LIBS"
16294             WRAPLIBS="-lwrap"
16295
16296 else
16297   echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300
16301             LIBS="$saved_LIBS -lwrap -lnsl"
16302             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16303             cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309  #include <sys/types.h>
16310                  #include <tcpd.h>
16311                  int deny_severity = 0;
16312                  int allow_severity = 0;
16313                  struct request_info *req;
16314 int
16315 main ()
16316 {
16317  hosts_access(req);
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326   *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329   (eval "$ac_link") 2>conftest.er1
16330   ac_status=$?
16331   grep -v '^ *+' conftest.er1 >conftest.err
16332   rm -f conftest.er1
16333   cat conftest.err >&5
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); } && {
16336          test -z "$ac_c_werror_flag" ||
16337          test ! -s conftest.err
16338        } && test -s conftest$ac_exeext &&
16339        $as_test_x conftest$ac_exeext; then
16340
16341                  { echo "$as_me:$LINENO: result: yes" >&5
16342 echo "${ECHO_T}yes" >&6; }
16343
16344 cat >>confdefs.h <<\_ACEOF
16345 #define HAVE_LIBWRAP 1
16346 _ACEOF
16347
16348                  TCPW_MSG="yes"
16349                  LIBS="$saved_LIBS"
16350                  WRAPLIBS="-lwrap"
16351
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16357 echo "$as_me: error: *** libwrap missing" >&2;}
16358    { (exit 1); exit 1; }; }
16359
16360 fi
16361
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363       conftest$ac_exeext conftest.$ac_ext
16364
16365 fi
16366
16367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16368       conftest$ac_exeext conftest.$ac_ext
16369     fi
16370
16371
16372 fi
16373
16374
16375 # -----------------------------------------------------------
16376 # Check whether OpenSSL is available
16377 # -----------------------------------------------------------
16378 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16379 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16380
16381 # Check whether --with-openssl was given.
16382 if test "${with_openssl+set}" = set; then
16383   withval=$with_openssl; with_openssl_directory=${withval}
16384 fi
16385
16386
16387 if test "x$with_openssl_directory" != "x"; then
16388         OPENSSL_LIBS="-lssl -lcrypto"
16389         OPENSSL_INC=""
16390
16391         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16392                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16393                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16394         fi
16395
16396         saved_LIBS="${LIBS}"
16397         saved_CFLAGS="${CFLAGS}"
16398         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16399         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16400
16401         cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407  #include <openssl/ssl.h>
16408 int
16409 main ()
16410 {
16411  CRYPTO_set_id_callback(NULL);
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext conftest$ac_exeext
16417 if { (ac_try="$ac_link"
16418 case "(($ac_try" in
16419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420   *) ac_try_echo=$ac_try;;
16421 esac
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423   (eval "$ac_link") 2>conftest.er1
16424   ac_status=$?
16425   grep -v '^ *+' conftest.er1 >conftest.err
16426   rm -f conftest.er1
16427   cat conftest.err >&5
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); } && {
16430          test -z "$ac_c_werror_flag" ||
16431          test ! -s conftest.err
16432        } && test -s conftest$ac_exeext &&
16433        $as_test_x conftest$ac_exeext; then
16434
16435                         support_tls="yes"
16436                         support_crypto="yes"
16437
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442          support_tls="no"
16443
16444 fi
16445
16446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16447       conftest$ac_exeext conftest.$ac_ext
16448
16449         cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455  #include <openssl/evp.h>
16456 int
16457 main ()
16458 {
16459  EVP_sha512();
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_link") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } && {
16478          test -z "$ac_c_werror_flag" ||
16479          test ! -s conftest.err
16480        } && test -s conftest$ac_exeext &&
16481        $as_test_x conftest$ac_exeext; then
16482    ac_cv_openssl_sha2="yes"
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487          ac_cv_openssl_sha2="no"
16488
16489 fi
16490
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492       conftest$ac_exeext conftest.$ac_ext
16493
16494         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16495         # implementation, presumably for export reasons. If 192bit AES
16496         # is available, we assume that we're running with a 'non-export'
16497         # openssl library.
16498         cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504  #include <openssl/evp.h>
16505 int
16506 main ()
16507 {
16508  EVP_aes_192_cbc();
16509   ;
16510   return 0;
16511 }
16512 _ACEOF
16513 rm -f conftest.$ac_objext conftest$ac_exeext
16514 if { (ac_try="$ac_link"
16515 case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520   (eval "$ac_link") 2>conftest.er1
16521   ac_status=$?
16522   grep -v '^ *+' conftest.er1 >conftest.err
16523   rm -f conftest.er1
16524   cat conftest.err >&5
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); } && {
16527          test -z "$ac_c_werror_flag" ||
16528          test ! -s conftest.err
16529        } && test -s conftest$ac_exeext &&
16530        $as_test_x conftest$ac_exeext; then
16531    ac_cv_openssl_export="no"
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536          ac_cv_openssl_export="yes"
16537
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16541       conftest$ac_exeext conftest.$ac_ext
16542
16543         LIBS="${saved_LIBS}"
16544         CFLAGS="${saved_CFLAGS}"
16545
16546         if test "$support_tls" = "yes"; then
16547
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_OPENSSL 1
16550 _ACEOF
16551
16552
16553 cat >>confdefs.h <<\_ACEOF
16554 #define HAVE_TLS 1
16555 _ACEOF
16556
16557
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE_CRYPTO 1
16560 _ACEOF
16561
16562         fi
16563
16564         if test "$ac_cv_openssl_sha2" = "yes"; then
16565
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_SHA2 1
16568 _ACEOF
16569
16570         fi
16571
16572         if test "$ac_cv_openssl_export" = "yes"; then
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16576 _ACEOF
16577
16578         fi
16579 else
16580         support_tls="no"
16581         support_crypto="no"
16582         OPENSSL_LIBS=""
16583         OPENSSL_INC=""
16584 fi
16585
16586 { echo "$as_me:$LINENO: result: $support_tls" >&5
16587 echo "${ECHO_T}$support_tls" >&6; }
16588
16589
16590
16591
16592 # -----------------------------------------------------------
16593 # dlopen is needed for plugins
16594 # -----------------------------------------------------------
16595 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16596 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16597 if test "${ac_cv_search_dlopen+set}" = set; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   ac_func_search_save_LIBS=$LIBS
16601 cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607
16608 /* Override any GCC internal prototype to avoid an error.
16609    Use char because int might match the return type of a GCC
16610    builtin and then its argument prototype would still apply.  */
16611 #ifdef __cplusplus
16612 extern "C"
16613 #endif
16614 char dlopen ();
16615 int
16616 main ()
16617 {
16618 return dlopen ();
16619   ;
16620   return 0;
16621 }
16622 _ACEOF
16623 for ac_lib in '' dl; do
16624   if test -z "$ac_lib"; then
16625     ac_res="none required"
16626   else
16627     ac_res=-l$ac_lib
16628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16629   fi
16630   rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_link") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } && {
16644          test -z "$ac_c_werror_flag" ||
16645          test ! -s conftest.err
16646        } && test -s conftest$ac_exeext &&
16647        $as_test_x conftest$ac_exeext; then
16648   ac_cv_search_dlopen=$ac_res
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653
16654 fi
16655
16656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16657       conftest$ac_exeext
16658   if test "${ac_cv_search_dlopen+set}" = set; then
16659   break
16660 fi
16661 done
16662 if test "${ac_cv_search_dlopen+set}" = set; then
16663   :
16664 else
16665   ac_cv_search_dlopen=no
16666 fi
16667 rm conftest.$ac_ext
16668 LIBS=$ac_func_search_save_LIBS
16669 fi
16670 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16671 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16672 ac_res=$ac_cv_search_dlopen
16673 if test "$ac_res" != no; then
16674   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16675
16676 fi
16677
16678
16679 # ------------------------------------------
16680 # Where to place working dir
16681 # ------------------------------------------
16682 working_dir=`eval echo ${prefix}/var/bacula/working`
16683
16684 # Check whether --with-working-dir was given.
16685 if test "${with_working_dir+set}" = set; then
16686   withval=$with_working_dir;
16687        if test "x$withval" != "xno" ; then
16688               working_dir=$withval
16689        fi
16690
16691
16692 fi
16693
16694
16695
16696
16697 # ------------------------------------------------------------------
16698 # If the user has not set archivedir, we set our default as /tmp
16699 # ------------------------------------------------------------------
16700 archive_dir=/tmp
16701
16702 # Check whether --with-archivedir was given.
16703 if test "${with_archivedir+set}" = set; then
16704   withval=$with_archivedir;
16705        if test "x$withval" != "xno" ; then
16706               archivedir=$withval
16707        fi
16708
16709
16710 fi
16711
16712
16713
16714
16715
16716
16717 # ------------------------------------------
16718 # Where to place scriptdir (script files)
16719 # ------------------------------------------
16720 scriptdir=`eval echo ${sysconfdir}`
16721
16722 # Check whether --with-scriptdir was given.
16723 if test "${with_scriptdir+set}" = set; then
16724   withval=$with_scriptdir;
16725        if test "x$withval" != "xno" ; then
16726               scriptdir=$withval
16727        fi
16728
16729
16730 fi
16731
16732
16733
16734
16735
16736 # ------------------------------------------
16737 # Where to send dump email
16738 # ------------------------------------------
16739 dump_email=root@localhost
16740
16741 # Check whether --with-dump-email was given.
16742 if test "${with_dump_email+set}" = set; then
16743   withval=$with_dump_email;
16744        if test "x$withval" != "xno" ; then
16745               dump_email=$withval
16746        fi
16747
16748
16749 fi
16750
16751
16752
16753
16754 # ------------------------------------------
16755 # Where to send job email
16756 # ------------------------------------------
16757 job_email=root@localhost
16758
16759 # Check whether --with-job-email was given.
16760 if test "${with_job_email+set}" = set; then
16761   withval=$with_job_email;
16762        if test "x$withval" != "xno" ; then
16763               job_email=$withval
16764        fi
16765
16766
16767 fi
16768
16769
16770
16771
16772 # ------------------------------------------
16773 # Where to find smtp host
16774 # ------------------------------------------
16775 smtp_host=localhost
16776
16777 # Check whether --with-smtp_host was given.
16778 if test "${with_smtp_host+set}" = set; then
16779   withval=$with_smtp_host;
16780        if test "x$withval" != "xno" ; then
16781               smtp_host=$withval
16782        fi
16783
16784
16785 fi
16786
16787
16788
16789
16790
16791 # ------------------------------------
16792 # Where to place pid files
16793 # ------------------------------------
16794 piddir=/var/run
16795
16796 # Check whether --with-pid-dir was given.
16797 if test "${with_pid_dir+set}" = set; then
16798   withval=$with_pid_dir;
16799         if test "x$withval" != "xno" ; then
16800             piddir=$withval
16801         fi
16802
16803
16804 fi
16805
16806
16807 cat >>confdefs.h <<_ACEOF
16808 #define _PATH_BACULA_PIDDIR "$piddir"
16809 _ACEOF
16810
16811
16812
16813
16814 # ------------------------------------
16815 # Where to place subsys "lock file"
16816 # ------------------------------------
16817 subsysdir=/var/run/subsys
16818 if test -d /var/run/subsys; then
16819    subsysdir=/var/run/subsys
16820 elif test -d /var/lock/subsys; then
16821    subsysdir=/var/lock/subsys
16822 else
16823    subsysdir=/var/run/subsys
16824 fi
16825
16826 # Check whether --with-subsys-dir was given.
16827 if test "${with_subsys_dir+set}" = set; then
16828   withval=$with_subsys_dir;
16829         if test "x$withval" != "xno" ; then
16830             subsysdir=$withval
16831         fi
16832
16833
16834 fi
16835
16836
16837
16838
16839
16840
16841 # ------------------------------------
16842 # Where to start assigning ports
16843 # ------------------------------------
16844 baseport=9101
16845
16846 # Check whether --with-baseport was given.
16847 if test "${with_baseport+set}" = set; then
16848   withval=$with_baseport;
16849         if test "x$withval" != "xno" ; then
16850              baseport=$withval
16851         fi
16852
16853
16854 fi
16855
16856
16857
16858 dir_port=`expr $baseport`
16859 fd_port=`expr $baseport + 1`
16860 sd_port=`expr $fd_port + 1`
16861
16862
16863
16864
16865
16866
16867 # ------------------------------------------
16868 # Generate passwords
16869 # ------------------------------------------
16870 dir_password=
16871
16872 # Check whether --with-dir-password was given.
16873 if test "${with_dir_password+set}" = set; then
16874   withval=$with_dir_password;
16875        if test "x$withval" != "xno" ; then
16876            dir_password=$withval
16877        fi
16878
16879
16880 fi
16881
16882
16883 if test "x$dir_password" = "x" ; then
16884    if test "x$OPENSSL" = "xnone" ; then
16885       key=`autoconf/randpass 33`
16886    else
16887       key=`openssl rand -base64 33`
16888    fi
16889    dir_password=$key
16890 fi
16891
16892 fd_password=
16893
16894 # Check whether --with-fd-password was given.
16895 if test "${with_fd_password+set}" = set; then
16896   withval=$with_fd_password;
16897        if test "x$withval" != "xno" ; then
16898            fd_password=$withval
16899        fi
16900
16901
16902 fi
16903
16904
16905 if test "x$fd_password" = "x" ; then
16906    if test "x$OPENSSL" = "xnone" ; then
16907       key=`autoconf/randpass 37`
16908    else
16909       key=`openssl rand -base64 33`
16910    fi
16911    fd_password=$key
16912 fi
16913
16914 sd_password=
16915
16916 # Check whether --with-sd-password was given.
16917 if test "${with_sd_password+set}" = set; then
16918   withval=$with_sd_password;
16919        if test "x$withval" != "xno" ; then
16920            sd_password=$withval
16921        fi
16922
16923
16924 fi
16925
16926
16927 if test "x$sd_password" = "x" ; then
16928    if test "x$OPENSSL" = "xnone" ; then
16929       key=`autoconf/randpass 41`
16930    else
16931       key=`openssl rand -base64 33`
16932    fi
16933    sd_password=$key
16934 fi
16935
16936 mon_dir_password=
16937
16938 # Check whether --with-mon-dir-password was given.
16939 if test "${with_mon_dir_password+set}" = set; then
16940   withval=$with_mon_dir_password;
16941        if test "x$withval" != "xno" ; then
16942            mon_dir_password=$withval
16943        fi
16944
16945
16946 fi
16947
16948
16949 if test "x$mon_dir_password" = "x" ; then
16950    if test "x$OPENSSL" = "xnone" ; then
16951       key=`autoconf/randpass 33`
16952    else
16953       key=`openssl rand -base64 33`
16954    fi
16955    mon_dir_password=$key
16956 fi
16957
16958 mon_fd_password=
16959
16960 # Check whether --with-mon-fd-password was given.
16961 if test "${with_mon_fd_password+set}" = set; then
16962   withval=$with_mon_fd_password;
16963        if test "x$withval" != "xno" ; then
16964            mon_fd_password=$withval
16965        fi
16966
16967
16968 fi
16969
16970
16971 if test "x$mon_fd_password" = "x" ; then
16972    if test "x$OPENSSL" = "xnone" ; then
16973       key=`autoconf/randpass 37`
16974    else
16975       key=`openssl rand -base64 33`
16976    fi
16977    mon_fd_password=$key
16978 fi
16979
16980 mon_sd_password=
16981
16982 # Check whether --with-mon-sd-password was given.
16983 if test "${with_mon_sd_password+set}" = set; then
16984   withval=$with_mon_sd_password;
16985        if test "x$withval" != "xno" ; then
16986            mon_sd_password=$withval
16987        fi
16988
16989
16990 fi
16991
16992
16993 if test "x$mon_sd_password" = "x" ; then
16994    if test "x$OPENSSL" = "xnone" ; then
16995       key=`autoconf/randpass 41`
16996    else
16997       key=`openssl rand -base64 33`
16998    fi
16999    mon_sd_password=$key
17000 fi
17001
17002
17003
17004
17005
17006
17007
17008
17009 #
17010 # Pickup any database name
17011 #
17012 db_name=bacula
17013
17014 # Check whether --with-db_name was given.
17015 if test "${with_db_name+set}" = set; then
17016   withval=$with_db_name;
17017         if test "x$withval" != "x" ; then
17018              db_name=$withval
17019         fi
17020
17021
17022 fi
17023
17024
17025
17026 db_user=bacula
17027
17028 # Check whether --with-db_user was given.
17029 if test "${with_db_user+set}" = set; then
17030   withval=$with_db_user;
17031         if test "x$withval" != "x" ; then
17032              db_user=$withval
17033         fi
17034
17035
17036 fi
17037
17038
17039
17040
17041 #
17042 # Handle users and groups for each daemon
17043 #
17044 dir_user=
17045
17046 # Check whether --with-dir_user was given.
17047 if test "${with_dir_user+set}" = set; then
17048   withval=$with_dir_user;
17049         if test "x$withval" != "x" ; then
17050              dir_user=$withval
17051         fi
17052
17053
17054 fi
17055
17056
17057 dir_group=
17058
17059 # Check whether --with-dir_group was given.
17060 if test "${with_dir_group+set}" = set; then
17061   withval=$with_dir_group;
17062         if test "x$withval" != "x" ; then
17063              dir_group=$withval
17064         fi
17065
17066
17067 fi
17068
17069
17070 sd_user=
17071
17072 # Check whether --with-sd_user was given.
17073 if test "${with_sd_user+set}" = set; then
17074   withval=$with_sd_user;
17075         if test "x$withval" != "x" ; then
17076              sd_user=$withval
17077         fi
17078
17079
17080 fi
17081
17082
17083 sd_group=
17084
17085 # Check whether --with-sd_group was given.
17086 if test "${with_sd_group+set}" = set; then
17087   withval=$with_sd_group;
17088         if test "x$withval" != "x" ; then
17089              sd_group=$withval
17090         fi
17091
17092
17093 fi
17094
17095
17096 fd_user=
17097
17098 # Check whether --with-fd_user was given.
17099 if test "${with_fd_user+set}" = set; then
17100   withval=$with_fd_user;
17101         if test "x$withval" != "x" ; then
17102              fd_user=$withval
17103         fi
17104
17105
17106 fi
17107
17108
17109 fd_group=
17110
17111 # Check whether --with-fd_group was given.
17112 if test "${with_fd_group+set}" = set; then
17113   withval=$with_fd_group;
17114         if test "x$withval" != "x" ; then
17115              fd_group=$withval
17116         fi
17117
17118
17119 fi
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129 #
17130 # allow setting default executable permissions
17131 #
17132 SBINPERM=0754
17133
17134 # Check whether --with-sbin-perm was given.
17135 if test "${with_sbin_perm+set}" = set; then
17136   withval=$with_sbin_perm;
17137         if test "x$withval" != "x" ; then
17138             SBINPERM=$withval
17139         fi
17140
17141
17142 fi
17143
17144
17145
17146
17147 # ------------------------------------------------
17148 # Bacula check for various SQL database engines
17149 # ------------------------------------------------
17150 SQL_LIB=
17151
17152 db_found=no
17153 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17154 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17155
17156 # Check whether --with-postgresql was given.
17157 if test "${with_postgresql+set}" = set; then
17158   withval=$with_postgresql;
17159   if test "$withval" != "no"; then
17160       if test "$db_found" = "yes"; then
17161           { echo "$as_me:$LINENO: result: error" >&5
17162 echo "${ECHO_T}error" >&6; }
17163           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17164 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17165    { (exit 1); exit 1; }; };
17166       fi
17167       if test "$withval" = "yes"; then
17168           PG_CONFIG=`which pg_config`
17169           if test -n "$PG_CONFIG";then
17170               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17171               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17172               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17173           elif test -f /usr/local/include/libpq-fe.h; then
17174               POSTGRESQL_INCDIR=/usr/local/include
17175               if test -d /usr/local/lib64; then
17176                  POSTGRESQL_LIBDIR=/usr/local/lib64
17177               else
17178                  POSTGRESQL_LIBDIR=/usr/local/lib
17179               fi
17180               POSTGRESQL_BINDIR=/usr/local/bin
17181           elif test -f /usr/include/libpq-fe.h; then
17182               POSTGRESQL_INCDIR=/usr/include
17183               if test -d /usr/lib64; then
17184                  POSTGRESQL_LIBDIR=/usr/lib64
17185               else
17186                  POSTGRESQL_LIBDIR=/usr/lib
17187               fi
17188               POSTGRESQL_BINDIR=/usr/bin
17189           elif test -f /usr/include/pgsql/libpq-fe.h; then
17190               POSTGRESQL_INCDIR=/usr/include/pgsql
17191               if test -d /usr/lib64/pgsql; then
17192                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17193               else
17194                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17195               fi
17196               POSTGRESQL_BINDIR=/usr/bin
17197           elif test -f /usr/include/postgresql/libpq-fe.h; then
17198               POSTGRESQL_INCDIR=/usr/include/postgresql
17199               if test -d /usr/lib64/postgresql; then
17200                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17201               else
17202                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17203               fi
17204               POSTGRESQL_BINDIR=/usr/bin
17205           else
17206               { echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6; }
17208               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17209 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17210    { (exit 1); exit 1; }; }
17211           fi
17212       elif test -f $withval/include/libpq-fe.h; then
17213           POSTGRESQL_INCDIR=$withval/include
17214           POSTGRESQL_LIBDIR=$withval/lib
17215           POSTGRESQL_BINDIR=$withval/bin
17216       elif test -f $withval/include/postgresql/libpq-fe.h; then
17217           POSTGRESQL_INCDIR=$withval/include/postgresql
17218      if test -d $withval/lib64; then
17219          POSTGRESQL_LIBDIR=$withval/lib64
17220      else
17221          POSTGRESQL_LIBDIR=$withval/lib
17222      fi
17223           POSTGRESQL_BINDIR=$withval/bin
17224       else
17225           { echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6; }
17227           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17228 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17229    { (exit 1); exit 1; }; }
17230       fi
17231       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17232       { echo "$as_me:$LINENO: checking for crypt" >&5
17233 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17234 if test "${ac_cv_func_crypt+set}" = set; then
17235   echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237   cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17245 #define crypt innocuous_crypt
17246
17247 /* System header to define __stub macros and hopefully few prototypes,
17248     which can conflict with char crypt (); below.
17249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17250     <limits.h> exists even on freestanding compilers.  */
17251
17252 #ifdef __STDC__
17253 # include <limits.h>
17254 #else
17255 # include <assert.h>
17256 #endif
17257
17258 #undef crypt
17259
17260 /* Override any GCC internal prototype to avoid an error.
17261    Use char because int might match the return type of a GCC
17262    builtin and then its argument prototype would still apply.  */
17263 #ifdef __cplusplus
17264 extern "C"
17265 #endif
17266 char crypt ();
17267 /* The GNU C library defines this for functions which it implements
17268     to always fail with ENOSYS.  Some functions are actually named
17269     something starting with __ and the normal name is an alias.  */
17270 #if defined __stub_crypt || defined __stub___crypt
17271 choke me
17272 #endif
17273
17274 int
17275 main ()
17276 {
17277 return crypt ();
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (ac_try="$ac_link"
17284 case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289   (eval "$ac_link") 2>conftest.er1
17290   ac_status=$?
17291   grep -v '^ *+' conftest.er1 >conftest.err
17292   rm -f conftest.er1
17293   cat conftest.err >&5
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } && {
17296          test -z "$ac_c_werror_flag" ||
17297          test ! -s conftest.err
17298        } && test -s conftest$ac_exeext &&
17299        $as_test_x conftest$ac_exeext; then
17300   ac_cv_func_crypt=yes
17301 else
17302   echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305         ac_cv_func_crypt=no
17306 fi
17307
17308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17309       conftest$ac_exeext conftest.$ac_ext
17310 fi
17311 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17312 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17313 if test $ac_cv_func_crypt = yes; then
17314   :
17315 else
17316   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17317 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17318 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321   ac_check_lib_save_LIBS=$LIBS
17322 LIBS="-lcrypt  $LIBS"
17323 cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h.  */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h.  */
17329
17330 /* Override any GCC internal prototype to avoid an error.
17331    Use char because int might match the return type of a GCC
17332    builtin and then its argument prototype would still apply.  */
17333 #ifdef __cplusplus
17334 extern "C"
17335 #endif
17336 char crypt ();
17337 int
17338 main ()
17339 {
17340 return crypt ();
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (ac_try="$ac_link"
17347 case "(($ac_try" in
17348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349   *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352   (eval "$ac_link") 2>conftest.er1
17353   ac_status=$?
17354   grep -v '^ *+' conftest.er1 >conftest.err
17355   rm -f conftest.er1
17356   cat conftest.err >&5
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); } && {
17359          test -z "$ac_c_werror_flag" ||
17360          test ! -s conftest.err
17361        } && test -s conftest$ac_exeext &&
17362        $as_test_x conftest$ac_exeext; then
17363   ac_cv_lib_crypt_crypt=yes
17364 else
17365   echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368         ac_cv_lib_crypt_crypt=no
17369 fi
17370
17371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17372       conftest$ac_exeext conftest.$ac_ext
17373 LIBS=$ac_check_lib_save_LIBS
17374 fi
17375 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17376 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17377 if test $ac_cv_lib_crypt_crypt = yes; then
17378   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17379 fi
17380
17381 fi
17382
17383       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17384       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17385       SQL_BINDIR=$POSTGRESQL_BINDIR
17386       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17387
17388       cat >>confdefs.h <<\_ACEOF
17389 #define HAVE_POSTGRESQL 1
17390 _ACEOF
17391
17392       { echo "$as_me:$LINENO: result: yes" >&5
17393 echo "${ECHO_T}yes" >&6; }
17394       db_found=yes
17395       support_postgresql=yes
17396       db_type=PostgreSQL
17397       DB_TYPE=postgresql
17398   else
17399       { echo "$as_me:$LINENO: result: no" >&5
17400 echo "${ECHO_T}no" >&6; }
17401   fi
17402
17403 else
17404
17405   { echo "$as_me:$LINENO: result: no" >&5
17406 echo "${ECHO_T}no" >&6; }
17407
17408 fi
17409
17410
17411
17412
17413
17414
17415
17416
17417 db_found=no
17418 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17419 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17420
17421 # Check whether --with-mysql was given.
17422 if test "${with_mysql+set}" = set; then
17423   withval=$with_mysql;
17424   if test "$withval" != "no"; then
17425         if test "$withval" = "yes"; then
17426            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17427                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17428                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17429                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17430                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17431                    else
17432                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17433                    fi
17434                    MYSQL_BINDIR=/usr/local/mysql/bin
17435            elif test -f /usr/include/mysql/mysql.h; then
17436                    MYSQL_INCDIR=/usr/include/mysql
17437                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17438                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17439                            MYSQL_LIBDIR=/usr/lib64/mysql
17440                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17441                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17442                            MYSQL_LIBDIR=/usr/lib/mysql
17443                    else
17444                            MYSQL_LIBDIR=/usr/lib
17445                    fi
17446                    MYSQL_BINDIR=/usr/bin
17447            elif test -f /usr/include/mysql.h; then
17448                    MYSQL_INCDIR=/usr/include
17449                    if test -f /usr/lib64/libmysqlclient_r.a \
17450                         -o -f /usr/lib64/libmysqlclient_r.so; then
17451                            MYSQL_LIBDIR=/usr/lib64
17452                    else
17453                            MYSQL_LIBDIR=/usr/lib
17454                    fi
17455                    MYSQL_BINDIR=/usr/bin
17456            elif test -f /usr/local/include/mysql/mysql.h; then
17457                    MYSQL_INCDIR=/usr/local/include/mysql
17458                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17459                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17460                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17461                    else
17462                            MYSQL_LIBDIR=/usr/local/lib/mysql
17463                    fi
17464                    MYSQL_BINDIR=/usr/local/bin
17465            elif test -f /usr/local/include/mysql.h; then
17466                    MYSQL_INCDIR=/usr/local/include
17467                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17468                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17469                            MYSQL_LIBDIR=/usr/local/lib64
17470                    else
17471                            MYSQL_LIBDIR=/usr/local/lib
17472                    fi
17473                    MYSQL_BINDIR=/usr/local/bin
17474            else
17475               { echo "$as_me:$LINENO: result: no" >&5
17476 echo "${ECHO_T}no" >&6; }
17477               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17478 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17479    { (exit 1); exit 1; }; }
17480            fi
17481         else
17482            if test -f $withval/include/mysql/mysql.h; then
17483               MYSQL_INCDIR=$withval/include/mysql
17484               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17485                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17486                  MYSQL_LIBDIR=$withval/lib64/mysql
17487               else
17488                  MYSQL_LIBDIR=$withval/lib/mysql
17489                  # Solaris ...
17490                  if test -f $withval/lib/libmysqlclient_r.so; then
17491                     MYSQL_LIBDIR=$withval/lib
17492                  fi
17493               fi
17494               MYSQL_BINDIR=$withval/bin
17495            elif test -f $withval/include/mysql.h; then
17496               MYSQL_INCDIR=$withval/include
17497               if test -f $withval/lib64/libmysqlclient_r.a \
17498                    -o -f $withval/lib64/libmysqlclient_r.so; then
17499                  MYSQL_LIBDIR=$withval/lib64
17500               else
17501                  MYSQL_LIBDIR=$withval/lib
17502               fi
17503               MYSQL_BINDIR=$withval/bin
17504            else
17505               { echo "$as_me:$LINENO: result: no" >&5
17506 echo "${ECHO_T}no" >&6; }
17507               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17508 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17509    { (exit 1); exit 1; }; }
17510            fi
17511         fi
17512     SQL_INCLUDE=-I$MYSQL_INCDIR
17513     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17514          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17515        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17516        cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_THREAD_SAFE_MYSQL 1
17518 _ACEOF
17519
17520     fi
17521     SQL_BINDIR=$MYSQL_BINDIR
17522     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17523
17524     cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_MYSQL 1
17526 _ACEOF
17527
17528     { echo "$as_me:$LINENO: result: yes" >&5
17529 echo "${ECHO_T}yes" >&6; }
17530     db_found=yes
17531     support_mysql=yes
17532     db_type=MySQL
17533     DB_TYPE=mysql
17534
17535   else
17536         { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17538   fi
17539
17540
17541 fi
17542
17543
17544
17545 # Check whether --with-embedded-mysql was given.
17546 if test "${with_embedded_mysql+set}" = set; then
17547   withval=$with_embedded_mysql;
17548   if test "$withval" != "no"; then
17549         if test "$withval" = "yes"; then
17550                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17551                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17552                         if test -d /usr/local/mysql/lib64/mysql; then
17553                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17554                         else
17555                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17556                         fi
17557                         MYSQL_BINDIR=/usr/local/mysql/bin
17558                 elif test -f /usr/include/mysql/mysql.h; then
17559                         MYSQL_INCDIR=/usr/include/mysql
17560                         if test -d /usr/lib64/mysql; then
17561                                 MYSQL_LIBDIR=/usr/lib64/mysql
17562                         else
17563                                 MYSQL_LIBDIR=/usr/lib/mysql
17564                         fi
17565                         MYSQL_BINDIR=/usr/bin
17566                 elif test -f /usr/include/mysql.h; then
17567                         MYSQL_INCDIR=/usr/include
17568                         if test -d /usr/lib64; then
17569                                 MYSQL_LIBDIR=/usr/lib64
17570                         else
17571                                 MYSQL_LIBDIR=/usr/lib
17572                         fi
17573                         MYSQL_BINDIR=/usr/bin
17574                 elif test -f /usr/local/include/mysql/mysql.h; then
17575                         MYSQL_INCDIR=/usr/local/include/mysql
17576                         if test -d /usr/local/lib64/mysql; then
17577                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17578                         else
17579                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17580                         fi
17581                         MYSQL_BINDIR=/usr/local/bin
17582                 elif test -f /usr/local/include/mysql.h; then
17583                         MYSQL_INCDIR=/usr/local/include
17584                         if test -d /usr/local/lib64; then
17585                                 MYSQL_LIBDIR=/usr/local/lib64
17586                         else
17587                                 MYSQL_LIBDIR=/usr/local/lib
17588                         fi
17589                         MYSQL_BINDIR=/usr/local/bin
17590                 else
17591                    { echo "$as_me:$LINENO: result: no" >&5
17592 echo "${ECHO_T}no" >&6; }
17593                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17594 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17595    { (exit 1); exit 1; }; }
17596                 fi
17597         else
17598                 if test -f $withval/include/mysql/mysql.h; then
17599                         MYSQL_INCDIR=$withval/include/mysql
17600                         if test -d $withval/lib64/mysql; then
17601                                 MYSQL_LIBDIR=$withval/lib64/mysql
17602                         else
17603                                 MYSQL_LIBDIR=$withval/lib/mysql
17604                         fi
17605                         MYSQL_BINDIR=$withval/bin
17606                 elif test -f $withval/include/mysql.h; then
17607                         MYSQL_INCDIR=$withval/include
17608                         if test -d $withval/lib64; then
17609                                 MYSQL_LIBDIR=$withval/lib64
17610                         else
17611                                 MYSQL_LIBDIR=$withval/lib
17612                         fi
17613                         MYSQL_BINDIR=$withval/bin
17614                 else
17615                    { echo "$as_me:$LINENO: result: no" >&5
17616 echo "${ECHO_T}no" >&6; }
17617                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17618 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17619    { (exit 1); exit 1; }; }
17620                 fi
17621         fi
17622     SQL_INCLUDE=-I$MYSQL_INCDIR
17623     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17624     SQL_BINDIR=$MYSQL_BINDIR
17625     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17626
17627     cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_MYSQL 1
17629 _ACEOF
17630
17631     cat >>confdefs.h <<\_ACEOF
17632 #define HAVE_EMBEDDED_MYSQL 1
17633 _ACEOF
17634
17635     { echo "$as_me:$LINENO: result: yes" >&5
17636 echo "${ECHO_T}yes" >&6; }
17637     db_found=yes
17638     support_mysql=yes
17639     db_type=MySQL
17640     DB_TYPE=mysql
17641
17642   else
17643         { echo "$as_me:$LINENO: result: no" >&5
17644 echo "${ECHO_T}no" >&6; }
17645   fi
17646
17647
17648 fi
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659 db_found=no
17660 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17661 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17662
17663 # Check whether --with-sqlite3 was given.
17664 if test "${with_sqlite3+set}" = set; then
17665   withval=$with_sqlite3;
17666   if test "$withval" != "no"; then
17667      if test "$withval" = "yes"; then
17668         if test -f /usr/local/include/sqlite3.h; then
17669            SQLITE_INCDIR=/usr/local/include
17670            if test -d /usr/local/lib64; then
17671               SQLITE_LIBDIR=/usr/local/lib64
17672            else
17673               SQLITE_LIBDIR=/usr/local/lib
17674            fi
17675            SQLITE_BINDIR=/usr/local/bin
17676         elif test -f /usr/include/sqlite3.h; then
17677            SQLITE_INCDIR=/usr/include
17678            if test -d /usr/lib64; then
17679               SQLITE_LIBDIR=/usr/lib64
17680            else
17681               SQLITE_LIBDIR=/usr/lib
17682            fi
17683            SQLITE_BINDIR=/usr/bin
17684         elif test -f $prefix/include/sqlite3.h; then
17685            SQLITE_INCDIR=$prefix/include
17686            if test -d $prefix/lib64; then
17687               SQLITE_LIBDIR=$prefix/lib64
17688            else
17689               SQLITE_LIBDIR=$prefix/lib
17690            fi
17691            SQLITE_BINDIR=$prefix/bin
17692         else
17693            { echo "$as_me:$LINENO: result: no" >&5
17694 echo "${ECHO_T}no" >&6; }
17695            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17696 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17697    { (exit 1); exit 1; }; }
17698         fi
17699      else
17700         if test -f $withval/sqlite3.h; then
17701            SQLITE_INCDIR=$withval
17702            SQLITE_LIBDIR=$withval
17703            SQLITE_BINDIR=$withval
17704         elif test -f $withval/include/sqlite3.h; then
17705            SQLITE_INCDIR=$withval/include
17706            if test -d $withval/lib64; then
17707               SQLITE_LIBDIR=$withval/lib64
17708            else
17709               SQLITE_LIBDIR=$withval/lib
17710            fi
17711            SQLITE_BINDIR=$withval/bin
17712         else
17713            { echo "$as_me:$LINENO: result: no" >&5
17714 echo "${ECHO_T}no" >&6; }
17715            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17716 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17717    { (exit 1); exit 1; }; }
17718         fi
17719      fi
17720      SQL_INCLUDE=-I$SQLITE_INCDIR
17721      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17722      SQL_BINDIR=$SQLITE_BINDIR
17723      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17724
17725      cat >>confdefs.h <<\_ACEOF
17726 #define HAVE_SQLITE3 1
17727 _ACEOF
17728
17729      { echo "$as_me:$LINENO: result: yes" >&5
17730 echo "${ECHO_T}yes" >&6; }
17731      db_found=yes
17732      support_sqlite3=yes
17733      db_type=SQLite3
17734      DB_TYPE=sqlite3
17735
17736   else
17737      { echo "$as_me:$LINENO: result: no" >&5
17738 echo "${ECHO_T}no" >&6; }
17739   fi
17740
17741 else
17742
17743   { echo "$as_me:$LINENO: result: no" >&5
17744 echo "${ECHO_T}no" >&6; }
17745
17746 fi
17747
17748
17749
17750
17751
17752
17753
17754
17755 db_found=no
17756 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17757 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17758
17759 # Check whether --with-sqlite was given.
17760 if test "${with_sqlite+set}" = set; then
17761   withval=$with_sqlite;
17762   if test "$withval" != "no"; then
17763      if test "$withval" = "yes"; then
17764         if test -f /usr/local/include/sqlite.h; then
17765            SQLITE_INCDIR=/usr/local/include
17766            if test -d /usr/local/lib64; then
17767               SQLITE_LIBDIR=/usr/local/lib64
17768            else
17769               SQLITE_LIBDIR=/usr/local/lib
17770            fi
17771            SQLITE_BINDIR=/usr/local/bin
17772         elif test -f /usr/include/sqlite.h; then
17773            SQLITE_INCDIR=/usr/include
17774            if test -d /usr/lib64; then
17775               SQLITE_LIBDIR=/usr/lib64
17776            else
17777               SQLITE_LIBDIR=/usr/lib
17778            fi
17779            SQLITE_BINDIR=/usr/bin
17780         elif test -f $prefix/include/sqlite.h; then
17781            SQLITE_INCDIR=$prefix/include
17782            if test -d $prefix/lib64; then
17783               SQLITE_LIBDIR=$prefix/lib64
17784            else
17785               SQLITE_LIBDIR=$prefix/lib
17786            fi
17787            SQLITE_BINDIR=$prefix/bin
17788         else
17789            { echo "$as_me:$LINENO: result: no" >&5
17790 echo "${ECHO_T}no" >&6; }
17791            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17792 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17793    { (exit 1); exit 1; }; }
17794         fi
17795      else
17796         if test -f $withval/sqlite.h; then
17797            SQLITE_INCDIR=$withval
17798            SQLITE_LIBDIR=$withval
17799            SQLITE_BINDIR=$withval
17800         elif test -f $withval/include/sqlite.h; then
17801            SQLITE_INCDIR=$withval/include
17802            if test -d $withval/lib64; then
17803               SQLITE_LIBDIR=$withval/lib64
17804            else
17805               SQLITE_LIBDIR=$withval/lib
17806            fi
17807            SQLITE_BINDIR=$withval/bin
17808         else
17809            { echo "$as_me:$LINENO: result: no" >&5
17810 echo "${ECHO_T}no" >&6; }
17811            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17812 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17813    { (exit 1); exit 1; }; }
17814         fi
17815      fi
17816      SQL_INCLUDE=-I$SQLITE_INCDIR
17817      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17818      SQL_BINDIR=$SQLITE_BINDIR
17819      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17820
17821      cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_SQLITE 1
17823 _ACEOF
17824
17825      { echo "$as_me:$LINENO: result: yes" >&5
17826 echo "${ECHO_T}yes" >&6; }
17827      db_found=yes
17828      support_sqlite=yes
17829      db_type=SQLite
17830      DB_TYPE=sqlite
17831
17832   else
17833      { echo "$as_me:$LINENO: result: no" >&5
17834 echo "${ECHO_T}no" >&6; }
17835   fi
17836
17837 else
17838
17839   { echo "$as_me:$LINENO: result: no" >&5
17840 echo "${ECHO_T}no" >&6; }
17841
17842 fi
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853 # -------------------------------------------
17854 # enable batch attribute DB insert (default on)
17855 # -------------------------------------------
17856 support_batch_insert=no
17857 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17858 pkg=$?
17859 if test $pkg = 0; then
17860    support_batch_insert=yes
17861    # Check whether --enable-batch-insert was given.
17862 if test "${enable_batch_insert+set}" = set; then
17863   enableval=$enable_batch_insert; if test x$enableval = xno; then
17864        support_batch_insert=no
17865       else
17866        support_batch_insert=yes
17867      fi
17868 fi
17869
17870 fi
17871
17872 # Check if postgresql support batch mode
17873 if test x$DB_TYPE = xpostgresql; then
17874    A=`nm $SQL_LIB | grep PQputCopyData`
17875    pkg=$?
17876    if test $pkg != 0; then
17877       support_batch_insert=no
17878    fi
17879 fi
17880
17881 if test $support_batch_insert = yes ; then
17882
17883 cat >>confdefs.h <<\_ACEOF
17884 #define HAVE_BATCH_FILE_INSERT 1
17885 _ACEOF
17886
17887 fi
17888
17889
17890 cat >>confdefs.h <<\_ACEOF
17891 #define PROTOTYPES 1
17892 _ACEOF
17893
17894
17895 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17896     if test -z "$CCOPTS"; then
17897         CCOPTS='-g -O2 -Wall'
17898     fi
17899     CFLAGS="$CCOPTS"
17900 fi
17901
17902
17903
17904
17905 largefile_support="no"
17906
17907    # Check whether --enable-largefile was given.
17908 if test "${enable_largefile+set}" = set; then
17909   enableval=$enable_largefile;
17910 fi
17911
17912    if test "$enable_largefile" != no; then
17913      if test -n "$ac_tool_prefix"; then
17914   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17915 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17918 if test "${ac_cv_prog_GETCONF+set}" = set; then
17919   echo $ECHO_N "(cached) $ECHO_C" >&6
17920 else
17921   if test -n "$GETCONF"; then
17922   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17923 else
17924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17926 do
17927   IFS=$as_save_IFS
17928   test -z "$as_dir" && as_dir=.
17929   for ac_exec_ext in '' $ac_executable_extensions; do
17930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17931     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17933     break 2
17934   fi
17935 done
17936 done
17937 IFS=$as_save_IFS
17938
17939 fi
17940 fi
17941 GETCONF=$ac_cv_prog_GETCONF
17942 if test -n "$GETCONF"; then
17943   { echo "$as_me:$LINENO: result: $GETCONF" >&5
17944 echo "${ECHO_T}$GETCONF" >&6; }
17945 else
17946   { echo "$as_me:$LINENO: result: no" >&5
17947 echo "${ECHO_T}no" >&6; }
17948 fi
17949
17950
17951 fi
17952 if test -z "$ac_cv_prog_GETCONF"; then
17953   ac_ct_GETCONF=$GETCONF
17954   # Extract the first word of "getconf", so it can be a program name with args.
17955 set dummy getconf; ac_word=$2
17956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17958 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961   if test -n "$ac_ct_GETCONF"; then
17962   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17963 else
17964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17965 for as_dir in $PATH
17966 do
17967   IFS=$as_save_IFS
17968   test -z "$as_dir" && as_dir=.
17969   for ac_exec_ext in '' $ac_executable_extensions; do
17970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17971     ac_cv_prog_ac_ct_GETCONF="getconf"
17972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17973     break 2
17974   fi
17975 done
17976 done
17977 IFS=$as_save_IFS
17978
17979 fi
17980 fi
17981 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17982 if test -n "$ac_ct_GETCONF"; then
17983   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17984 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
17985 else
17986   { echo "$as_me:$LINENO: result: no" >&5
17987 echo "${ECHO_T}no" >&6; }
17988 fi
17989
17990   if test "x$ac_ct_GETCONF" = x; then
17991     GETCONF=""
17992   else
17993     case $cross_compiling:$ac_tool_warned in
17994 yes:)
17995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17996 whose name does not start with the host triplet.  If you think this
17997 configuration is useful to you, please write to autoconf@gnu.org." >&5
17998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17999 whose name does not start with the host triplet.  If you think this
18000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18001 ac_tool_warned=yes ;;
18002 esac
18003     GETCONF=$ac_ct_GETCONF
18004   fi
18005 else
18006   GETCONF="$ac_cv_prog_GETCONF"
18007 fi
18008
18009      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18010 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18011 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18015         ac_cv_sys_largefile_CFLAGS=no
18016         case "$host_os" in
18017            # IRIX 6.2 and later require cc -n32.
18018            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18019              if test "$GCC" != yes; then
18020                ac_cv_sys_largefile_CFLAGS=-n32
18021              fi
18022              ac_save_CC="$CC"
18023              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18024              cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18030
18031 int
18032 main ()
18033 {
18034
18035   ;
18036   return 0;
18037 }
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (ac_try="$ac_link"
18041 case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046   (eval "$ac_link") 2>conftest.er1
18047   ac_status=$?
18048   grep -v '^ *+' conftest.er1 >conftest.err
18049   rm -f conftest.er1
18050   cat conftest.err >&5
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } && {
18053          test -z "$ac_c_werror_flag" ||
18054          test ! -s conftest.err
18055        } && test -s conftest$ac_exeext &&
18056        $as_test_x conftest$ac_exeext; then
18057   :
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062         ac_cv_sys_largefile_CFLAGS=no
18063 fi
18064
18065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18066       conftest$ac_exeext conftest.$ac_ext
18067              CC="$ac_save_CC"
18068            esac
18069       }
18070 fi
18071 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18072 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18073      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18074 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18075 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18076   echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18079         ac_cv_sys_largefile_LDFLAGS=no
18080
18081       }
18082 fi
18083 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18084 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18085      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18086 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18087 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18088   echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18091         ac_cv_sys_largefile_LIBS=no
18092
18093       }
18094 fi
18095 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18096 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18097
18098      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18099        case "$ac_flag" in
18100        no) ;;
18101        -D_FILE_OFFSET_BITS=*) ;;
18102        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18103        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18104        -D?* | -I?*)
18105          case "$ac_flag" in
18106    no) ;;
18107    ?*)
18108      case "$CPPFLAGS" in
18109      '') CPPFLAGS="$ac_flag" ;;
18110      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18111      esac ;;
18112    esac ;;
18113        *)
18114          case "$ac_flag" in
18115    no) ;;
18116    ?*)
18117      case "$CFLAGS" in
18118      '') CFLAGS="$ac_flag" ;;
18119      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18120      esac ;;
18121    esac ;;
18122        esac
18123      done
18124      case "$ac_cv_sys_largefile_LDFLAGS" in
18125    no) ;;
18126    ?*)
18127      case "$LDFLAGS" in
18128      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18129      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18130      esac ;;
18131    esac
18132      case "$ac_cv_sys_largefile_LIBS" in
18133    no) ;;
18134    ?*)
18135      case "$LIBS" in
18136      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18137      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18138      esac ;;
18139    esac
18140      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18141 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18142 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18143   echo $ECHO_N "(cached) $ECHO_C" >&6
18144 else
18145   ac_cv_sys_file_offset_bits=no
18146       ac_cv_sys_file_offset_bits=64
18147       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18148         case "$ac_flag" in
18149         -D_FILE_OFFSET_BITS)
18150           ac_cv_sys_file_offset_bits=1 ;;
18151         -D_FILE_OFFSET_BITS=*)
18152           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18153         esac
18154       done
18155
18156 fi
18157 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18158 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18159    if test "$ac_cv_sys_file_offset_bits" != no; then
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18163 _ACEOF
18164
18165    fi
18166      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18167 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18168 if test "${ac_cv_sys_largefile_source+set}" = set; then
18169   echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171   ac_cv_sys_largefile_source=no
18172       ac_cv_sys_largefile_source=1
18173       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18174         case "$ac_flag" in
18175         -D_LARGEFILE_SOURCE)
18176           ac_cv_sys_largefile_source=1 ;;
18177         -D_LARGEFILE_SOURCE=*)
18178           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18179         esac
18180       done
18181
18182 fi
18183 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18184 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18185    if test "$ac_cv_sys_largefile_source" != no; then
18186
18187 cat >>confdefs.h <<_ACEOF
18188 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18189 _ACEOF
18190
18191    fi
18192      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18193 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18194 if test "${ac_cv_sys_large_files+set}" = set; then
18195   echo $ECHO_N "(cached) $ECHO_C" >&6
18196 else
18197   ac_cv_sys_large_files=no
18198       ac_cv_sys_large_files=1
18199       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18200         case "$ac_flag" in
18201         -D_LARGE_FILES)
18202           ac_cv_sys_large_files=1 ;;
18203         -D_LARGE_FILES=*)
18204           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18205         esac
18206       done
18207
18208 fi
18209 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18210 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18211    if test "$ac_cv_sys_large_files" != no; then
18212
18213 cat >>confdefs.h <<_ACEOF
18214 #define _LARGE_FILES $ac_cv_sys_large_files
18215 _ACEOF
18216
18217    fi
18218    fi
18219
18220
18221
18222 { echo "$as_me:$LINENO: checking for X" >&5
18223 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18224
18225
18226 # Check whether --with-x was given.
18227 if test "${with_x+set}" = set; then
18228   withval=$with_x;
18229 fi
18230
18231 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18232 if test "x$with_x" = xno; then
18233   # The user explicitly disabled X.
18234   have_x=disabled
18235 else
18236   case $x_includes,$x_libraries in #(
18237     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18238 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18239    { (exit 1); exit 1; }; };; #(
18240     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18241   echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243   # One or both of the vars are not set, and there is no cached value.
18244 ac_x_includes=no ac_x_libraries=no
18245 rm -f -r conftest.dir
18246 if mkdir conftest.dir; then
18247   cd conftest.dir
18248   cat >Imakefile <<'_ACEOF'
18249 incroot:
18250         @echo incroot='${INCROOT}'
18251 usrlibdir:
18252         @echo usrlibdir='${USRLIBDIR}'
18253 libdir:
18254         @echo libdir='${LIBDIR}'
18255 _ACEOF
18256   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18257     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18258     for ac_var in incroot usrlibdir libdir; do
18259       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18260     done
18261     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18262     for ac_extension in a so sl; do
18263       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18264          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18265         ac_im_usrlibdir=$ac_im_libdir; break
18266       fi
18267     done
18268     # Screen out bogus values from the imake configuration.  They are
18269     # bogus both because they are the default anyway, and because
18270     # using them would break gcc on systems where it needs fixed includes.
18271     case $ac_im_incroot in
18272         /usr/include) ac_x_includes= ;;
18273         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18274     esac
18275     case $ac_im_usrlibdir in
18276         /usr/lib | /lib) ;;
18277         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18278     esac
18279   fi
18280   cd ..
18281   rm -f -r conftest.dir
18282 fi
18283
18284 # Standard set of common directories for X headers.
18285 # Check X11 before X11Rn because it is often a symlink to the current release.
18286 ac_x_header_dirs='
18287 /usr/X11/include
18288 /usr/X11R6/include
18289 /usr/X11R5/include
18290 /usr/X11R4/include
18291
18292 /usr/include/X11
18293 /usr/include/X11R6
18294 /usr/include/X11R5
18295 /usr/include/X11R4
18296
18297 /usr/local/X11/include
18298 /usr/local/X11R6/include
18299 /usr/local/X11R5/include
18300 /usr/local/X11R4/include
18301
18302 /usr/local/include/X11
18303 /usr/local/include/X11R6
18304 /usr/local/include/X11R5
18305 /usr/local/include/X11R4
18306
18307 /usr/X386/include
18308 /usr/x386/include
18309 /usr/XFree86/include/X11
18310
18311 /usr/include
18312 /usr/local/include
18313 /usr/unsupported/include
18314 /usr/athena/include
18315 /usr/local/x11r5/include
18316 /usr/lpp/Xamples/include
18317
18318 /usr/openwin/include
18319 /usr/openwin/share/include'
18320
18321 if test "$ac_x_includes" = no; then
18322   # Guess where to find include files, by looking for Xlib.h.
18323   # First, try using that file with no special directory specified.
18324   cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h.  */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h.  */
18330 #include <X11/Xlib.h>
18331 _ACEOF
18332 if { (ac_try="$ac_cpp conftest.$ac_ext"
18333 case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18339   ac_status=$?
18340   grep -v '^ *+' conftest.er1 >conftest.err
18341   rm -f conftest.er1
18342   cat conftest.err >&5
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); } >/dev/null && {
18345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18346          test ! -s conftest.err
18347        }; then
18348   # We can compile using X headers with no special include directory.
18349 ac_x_includes=
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354   for ac_dir in $ac_x_header_dirs; do
18355   if test -r "$ac_dir/X11/Xlib.h"; then
18356     ac_x_includes=$ac_dir
18357     break
18358   fi
18359 done
18360 fi
18361
18362 rm -f conftest.err conftest.$ac_ext
18363 fi # $ac_x_includes = no
18364
18365 if test "$ac_x_libraries" = no; then
18366   # Check for the libraries.
18367   # See if we find them without any special options.
18368   # Don't add to $LIBS permanently.
18369   ac_save_LIBS=$LIBS
18370   LIBS="-lX11 $LIBS"
18371   cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377 #include <X11/Xlib.h>
18378 int
18379 main ()
18380 {
18381 XrmInitialize ()
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (ac_try="$ac_link"
18388 case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393   (eval "$ac_link") 2>conftest.er1
18394   ac_status=$?
18395   grep -v '^ *+' conftest.er1 >conftest.err
18396   rm -f conftest.er1
18397   cat conftest.err >&5
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); } && {
18400          test -z "$ac_c_werror_flag" ||
18401          test ! -s conftest.err
18402        } && test -s conftest$ac_exeext &&
18403        $as_test_x conftest$ac_exeext; then
18404   LIBS=$ac_save_LIBS
18405 # We can link X programs with no special library path.
18406 ac_x_libraries=
18407 else
18408   echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18410
18411         LIBS=$ac_save_LIBS
18412 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18413 do
18414   # Don't even attempt the hair of trying to link an X program!
18415   for ac_extension in a so sl; do
18416     if test -r "$ac_dir/libX11.$ac_extension"; then
18417       ac_x_libraries=$ac_dir
18418       break 2
18419     fi
18420   done
18421 done
18422 fi
18423
18424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18425       conftest$ac_exeext conftest.$ac_ext
18426 fi # $ac_x_libraries = no
18427
18428 case $ac_x_includes,$ac_x_libraries in #(
18429   no,* | *,no | *\'*)
18430     # Didn't find X, or a directory has "'" in its name.
18431     ac_cv_have_x="have_x=no";; #(
18432   *)
18433     # Record where we found X for the cache.
18434     ac_cv_have_x="have_x=yes\
18435         ac_x_includes='$ac_x_includes'\
18436         ac_x_libraries='$ac_x_libraries'"
18437 esac
18438 fi
18439 ;; #(
18440     *) have_x=yes;;
18441   esac
18442   eval "$ac_cv_have_x"
18443 fi # $with_x != no
18444
18445 if test "$have_x" != yes; then
18446   { echo "$as_me:$LINENO: result: $have_x" >&5
18447 echo "${ECHO_T}$have_x" >&6; }
18448   no_x=yes
18449 else
18450   # If each of the values was on the command line, it overrides each guess.
18451   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18452   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18453   # Update the cache value to reflect the command line values.
18454   ac_cv_have_x="have_x=yes\
18455         ac_x_includes='$x_includes'\
18456         ac_x_libraries='$x_libraries'"
18457   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18458 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18459 fi
18460
18461 if test "$no_x" = yes; then
18462   # Not all programs may use this symbol, but it does not hurt to define it.
18463
18464 cat >>confdefs.h <<\_ACEOF
18465 #define X_DISPLAY_MISSING 1
18466 _ACEOF
18467
18468   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18469 else
18470   if test -n "$x_includes"; then
18471     X_CFLAGS="$X_CFLAGS -I$x_includes"
18472   fi
18473
18474   # It would also be nice to do this for all -L options, not just this one.
18475   if test -n "$x_libraries"; then
18476     X_LIBS="$X_LIBS -L$x_libraries"
18477     # For Solaris; some versions of Sun CC require a space after -R and
18478     # others require no space.  Words are not sufficient . . . .
18479     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18480 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18481     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18482     ac_xsave_c_werror_flag=$ac_c_werror_flag
18483     ac_c_werror_flag=yes
18484     cat >conftest.$ac_ext <<_ACEOF
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490
18491 int
18492 main ()
18493 {
18494
18495   ;
18496   return 0;
18497 }
18498 _ACEOF
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503   *) ac_try_echo=$ac_try;;
18504 esac
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506   (eval "$ac_link") 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } && {
18513          test -z "$ac_c_werror_flag" ||
18514          test ! -s conftest.err
18515        } && test -s conftest$ac_exeext &&
18516        $as_test_x conftest$ac_exeext; then
18517   { echo "$as_me:$LINENO: result: no" >&5
18518 echo "${ECHO_T}no" >&6; }
18519        X_LIBS="$X_LIBS -R$x_libraries"
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524         LIBS="$ac_xsave_LIBS -R $x_libraries"
18525        cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h.  */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h.  */
18531
18532 int
18533 main ()
18534 {
18535
18536   ;
18537   return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544   *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547   (eval "$ac_link") 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } && {
18554          test -z "$ac_c_werror_flag" ||
18555          test ! -s conftest.err
18556        } && test -s conftest$ac_exeext &&
18557        $as_test_x conftest$ac_exeext; then
18558   { echo "$as_me:$LINENO: result: yes" >&5
18559 echo "${ECHO_T}yes" >&6; }
18560           X_LIBS="$X_LIBS -R $x_libraries"
18561 else
18562   echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18564
18565         { echo "$as_me:$LINENO: result: neither works" >&5
18566 echo "${ECHO_T}neither works" >&6; }
18567 fi
18568
18569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570       conftest$ac_exeext conftest.$ac_ext
18571 fi
18572
18573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18574       conftest$ac_exeext conftest.$ac_ext
18575     ac_c_werror_flag=$ac_xsave_c_werror_flag
18576     LIBS=$ac_xsave_LIBS
18577   fi
18578
18579   # Check for system-dependent libraries X programs must link with.
18580   # Do this before checking for the system-independent R6 libraries
18581   # (-lICE), since we may need -lsocket or whatever for X linking.
18582
18583   if test "$ISC" = yes; then
18584     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18585   else
18586     # Martyn Johnson says this is needed for Ultrix, if the X
18587     # libraries were built with DECnet support.  And Karl Berry says
18588     # the Alpha needs dnet_stub (dnet does not exist).
18589     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18590     cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596
18597 /* Override any GCC internal prototype to avoid an error.
18598    Use char because int might match the return type of a GCC
18599    builtin and then its argument prototype would still apply.  */
18600 #ifdef __cplusplus
18601 extern "C"
18602 #endif
18603 char XOpenDisplay ();
18604 int
18605 main ()
18606 {
18607 return XOpenDisplay ();
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619   (eval "$ac_link") 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } && {
18626          test -z "$ac_c_werror_flag" ||
18627          test ! -s conftest.err
18628        } && test -s conftest$ac_exeext &&
18629        $as_test_x conftest$ac_exeext; then
18630   :
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18636 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18637 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18638   echo $ECHO_N "(cached) $ECHO_C" >&6
18639 else
18640   ac_check_lib_save_LIBS=$LIBS
18641 LIBS="-ldnet  $LIBS"
18642 cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648
18649 /* Override any GCC internal prototype to avoid an error.
18650    Use char because int might match the return type of a GCC
18651    builtin and then its argument prototype would still apply.  */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char dnet_ntoa ();
18656 int
18657 main ()
18658 {
18659 return dnet_ntoa ();
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671   (eval "$ac_link") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } && {
18678          test -z "$ac_c_werror_flag" ||
18679          test ! -s conftest.err
18680        } && test -s conftest$ac_exeext &&
18681        $as_test_x conftest$ac_exeext; then
18682   ac_cv_lib_dnet_dnet_ntoa=yes
18683 else
18684   echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687         ac_cv_lib_dnet_dnet_ntoa=no
18688 fi
18689
18690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18691       conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18693 fi
18694 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18695 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18696 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18697   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18698 fi
18699
18700     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18701       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18702 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18703 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18704   echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706   ac_check_lib_save_LIBS=$LIBS
18707 LIBS="-ldnet_stub  $LIBS"
18708 cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h.  */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h.  */
18714
18715 /* Override any GCC internal prototype to avoid an error.
18716    Use char because int might match the return type of a GCC
18717    builtin and then its argument prototype would still apply.  */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char dnet_ntoa ();
18722 int
18723 main ()
18724 {
18725 return dnet_ntoa ();
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_link") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && {
18744          test -z "$ac_c_werror_flag" ||
18745          test ! -s conftest.err
18746        } && test -s conftest$ac_exeext &&
18747        $as_test_x conftest$ac_exeext; then
18748   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18749 else
18750   echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18752
18753         ac_cv_lib_dnet_stub_dnet_ntoa=no
18754 fi
18755
18756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18757       conftest$ac_exeext conftest.$ac_ext
18758 LIBS=$ac_check_lib_save_LIBS
18759 fi
18760 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18761 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18762 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18763   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18764 fi
18765
18766     fi
18767 fi
18768
18769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18770       conftest$ac_exeext conftest.$ac_ext
18771     LIBS="$ac_xsave_LIBS"
18772
18773     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18774     # to get the SysV transport functions.
18775     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18776     # needs -lnsl.
18777     # The nsl library prevents programs from opening the X display
18778     # on Irix 5.2, according to T.E. Dickey.
18779     # The functions gethostbyname, getservbyname, and inet_addr are
18780     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18781     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18782 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18783 if test "${ac_cv_func_gethostbyname+set}" = set; then
18784   echo $ECHO_N "(cached) $ECHO_C" >&6
18785 else
18786   cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h.  */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h.  */
18792 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18794 #define gethostbyname innocuous_gethostbyname
18795
18796 /* System header to define __stub macros and hopefully few prototypes,
18797     which can conflict with char gethostbyname (); below.
18798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18799     <limits.h> exists even on freestanding compilers.  */
18800
18801 #ifdef __STDC__
18802 # include <limits.h>
18803 #else
18804 # include <assert.h>
18805 #endif
18806
18807 #undef gethostbyname
18808
18809 /* Override any GCC internal prototype to avoid an error.
18810    Use char because int might match the return type of a GCC
18811    builtin and then its argument prototype would still apply.  */
18812 #ifdef __cplusplus
18813 extern "C"
18814 #endif
18815 char gethostbyname ();
18816 /* The GNU C library defines this for functions which it implements
18817     to always fail with ENOSYS.  Some functions are actually named
18818     something starting with __ and the normal name is an alias.  */
18819 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18820 choke me
18821 #endif
18822
18823 int
18824 main ()
18825 {
18826 return gethostbyname ();
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835   *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838   (eval "$ac_link") 2>conftest.er1
18839   ac_status=$?
18840   grep -v '^ *+' conftest.er1 >conftest.err
18841   rm -f conftest.er1
18842   cat conftest.err >&5
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); } && {
18845          test -z "$ac_c_werror_flag" ||
18846          test ! -s conftest.err
18847        } && test -s conftest$ac_exeext &&
18848        $as_test_x conftest$ac_exeext; then
18849   ac_cv_func_gethostbyname=yes
18850 else
18851   echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854         ac_cv_func_gethostbyname=no
18855 fi
18856
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858       conftest$ac_exeext conftest.$ac_ext
18859 fi
18860 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18861 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18862
18863     if test $ac_cv_func_gethostbyname = no; then
18864       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18865 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18866 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18867   echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869   ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lnsl  $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h.  */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h.  */
18877
18878 /* Override any GCC internal prototype to avoid an error.
18879    Use char because int might match the return type of a GCC
18880    builtin and then its argument prototype would still apply.  */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char gethostbyname ();
18885 int
18886 main ()
18887 {
18888 return gethostbyname ();
18889   ;
18890   return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_link") 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && {
18907          test -z "$ac_c_werror_flag" ||
18908          test ! -s conftest.err
18909        } && test -s conftest$ac_exeext &&
18910        $as_test_x conftest$ac_exeext; then
18911   ac_cv_lib_nsl_gethostbyname=yes
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916         ac_cv_lib_nsl_gethostbyname=no
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920       conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18922 fi
18923 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18924 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18925 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18926   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18927 fi
18928
18929       if test $ac_cv_lib_nsl_gethostbyname = no; then
18930         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18931 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18932 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lbsd  $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943
18944 /* Override any GCC internal prototype to avoid an error.
18945    Use char because int might match the return type of a GCC
18946    builtin and then its argument prototype would still apply.  */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 char gethostbyname ();
18951 int
18952 main ()
18953 {
18954 return gethostbyname ();
18955   ;
18956   return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966   (eval "$ac_link") 2>conftest.er1
18967   ac_status=$?
18968   grep -v '^ *+' conftest.er1 >conftest.err
18969   rm -f conftest.er1
18970   cat conftest.err >&5
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); } && {
18973          test -z "$ac_c_werror_flag" ||
18974          test ! -s conftest.err
18975        } && test -s conftest$ac_exeext &&
18976        $as_test_x conftest$ac_exeext; then
18977   ac_cv_lib_bsd_gethostbyname=yes
18978 else
18979   echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18981
18982         ac_cv_lib_bsd_gethostbyname=no
18983 fi
18984
18985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18986       conftest$ac_exeext conftest.$ac_ext
18987 LIBS=$ac_check_lib_save_LIBS
18988 fi
18989 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18990 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
18991 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18992   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18993 fi
18994
18995       fi
18996     fi
18997
18998     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18999     # socket/setsockopt and other routines are undefined under SCO ODT
19000     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19001     # on later versions), says Simon Leinen: it contains gethostby*
19002     # variants that don't use the name server (or something).  -lsocket
19003     # must be given before -lnsl if both are needed.  We assume that
19004     # if connect needs -lnsl, so does gethostbyname.
19005     { echo "$as_me:$LINENO: checking for connect" >&5
19006 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19007 if test "${ac_cv_func_connect+set}" = set; then
19008   echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010   cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h.  */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h.  */
19016 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19018 #define connect innocuous_connect
19019
19020 /* System header to define __stub macros and hopefully few prototypes,
19021     which can conflict with char connect (); below.
19022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19023     <limits.h> exists even on freestanding compilers.  */
19024
19025 #ifdef __STDC__
19026 # include <limits.h>
19027 #else
19028 # include <assert.h>
19029 #endif
19030
19031 #undef connect
19032
19033 /* Override any GCC internal prototype to avoid an error.
19034    Use char because int might match the return type of a GCC
19035    builtin and then its argument prototype would still apply.  */
19036 #ifdef __cplusplus
19037 extern "C"
19038 #endif
19039 char connect ();
19040 /* The GNU C library defines this for functions which it implements
19041     to always fail with ENOSYS.  Some functions are actually named
19042     something starting with __ and the normal name is an alias.  */
19043 #if defined __stub_connect || defined __stub___connect
19044 choke me
19045 #endif
19046
19047 int
19048 main ()
19049 {
19050 return connect ();
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062   (eval "$ac_link") 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } && {
19069          test -z "$ac_c_werror_flag" ||
19070          test ! -s conftest.err
19071        } && test -s conftest$ac_exeext &&
19072        $as_test_x conftest$ac_exeext; then
19073   ac_cv_func_connect=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078         ac_cv_func_connect=no
19079 fi
19080
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082       conftest$ac_exeext conftest.$ac_ext
19083 fi
19084 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19085 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19086
19087     if test $ac_cv_func_connect = no; then
19088       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19089 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19090 if test "${ac_cv_lib_socket_connect+set}" = set; then
19091   echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093   ac_check_lib_save_LIBS=$LIBS
19094 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19095 cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h.  */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h.  */
19101
19102 /* Override any GCC internal prototype to avoid an error.
19103    Use char because int might match the return type of a GCC
19104    builtin and then its argument prototype would still apply.  */
19105 #ifdef __cplusplus
19106 extern "C"
19107 #endif
19108 char connect ();
19109 int
19110 main ()
19111 {
19112 return connect ();
19113   ;
19114   return 0;
19115 }
19116 _ACEOF
19117 rm -f conftest.$ac_objext conftest$ac_exeext
19118 if { (ac_try="$ac_link"
19119 case "(($ac_try" in
19120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121   *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124   (eval "$ac_link") 2>conftest.er1
19125   ac_status=$?
19126   grep -v '^ *+' conftest.er1 >conftest.err
19127   rm -f conftest.er1
19128   cat conftest.err >&5
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); } && {
19131          test -z "$ac_c_werror_flag" ||
19132          test ! -s conftest.err
19133        } && test -s conftest$ac_exeext &&
19134        $as_test_x conftest$ac_exeext; then
19135   ac_cv_lib_socket_connect=yes
19136 else
19137   echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140         ac_cv_lib_socket_connect=no
19141 fi
19142
19143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19144       conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19146 fi
19147 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19148 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19149 if test $ac_cv_lib_socket_connect = yes; then
19150   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19151 fi
19152
19153     fi
19154
19155     # Guillermo Gomez says -lposix is necessary on A/UX.
19156     { echo "$as_me:$LINENO: checking for remove" >&5
19157 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19158 if test "${ac_cv_func_remove+set}" = set; then
19159   echo $ECHO_N "(cached) $ECHO_C" >&6
19160 else
19161   cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19169 #define remove innocuous_remove
19170
19171 /* System header to define __stub macros and hopefully few prototypes,
19172     which can conflict with char remove (); below.
19173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19174     <limits.h> exists even on freestanding compilers.  */
19175
19176 #ifdef __STDC__
19177 # include <limits.h>
19178 #else
19179 # include <assert.h>
19180 #endif
19181
19182 #undef remove
19183
19184 /* Override any GCC internal prototype to avoid an error.
19185    Use char because int might match the return type of a GCC
19186    builtin and then its argument prototype would still apply.  */
19187 #ifdef __cplusplus
19188 extern "C"
19189 #endif
19190 char remove ();
19191 /* The GNU C library defines this for functions which it implements
19192     to always fail with ENOSYS.  Some functions are actually named
19193     something starting with __ and the normal name is an alias.  */
19194 #if defined __stub_remove || defined __stub___remove
19195 choke me
19196 #endif
19197
19198 int
19199 main ()
19200 {
19201 return remove ();
19202   ;
19203   return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_link") 2>conftest.er1
19214   ac_status=$?
19215   grep -v '^ *+' conftest.er1 >conftest.err
19216   rm -f conftest.er1
19217   cat conftest.err >&5
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); } && {
19220          test -z "$ac_c_werror_flag" ||
19221          test ! -s conftest.err
19222        } && test -s conftest$ac_exeext &&
19223        $as_test_x conftest$ac_exeext; then
19224   ac_cv_func_remove=yes
19225 else
19226   echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229         ac_cv_func_remove=no
19230 fi
19231
19232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19233       conftest$ac_exeext conftest.$ac_ext
19234 fi
19235 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19236 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19237
19238     if test $ac_cv_func_remove = no; then
19239       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19240 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19241 if test "${ac_cv_lib_posix_remove+set}" = set; then
19242   echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244   ac_check_lib_save_LIBS=$LIBS
19245 LIBS="-lposix  $LIBS"
19246 cat >conftest.$ac_ext <<_ACEOF
19247 /* confdefs.h.  */
19248 _ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h.  */
19252
19253 /* Override any GCC internal prototype to avoid an error.
19254    Use char because int might match the return type of a GCC
19255    builtin and then its argument prototype would still apply.  */
19256 #ifdef __cplusplus
19257 extern "C"
19258 #endif
19259 char remove ();
19260 int
19261 main ()
19262 {
19263 return remove ();
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext conftest$ac_exeext
19269 if { (ac_try="$ac_link"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_link") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } && {
19282          test -z "$ac_c_werror_flag" ||
19283          test ! -s conftest.err
19284        } && test -s conftest$ac_exeext &&
19285        $as_test_x conftest$ac_exeext; then
19286   ac_cv_lib_posix_remove=yes
19287 else
19288   echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19290
19291         ac_cv_lib_posix_remove=no
19292 fi
19293
19294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19295       conftest$ac_exeext conftest.$ac_ext
19296 LIBS=$ac_check_lib_save_LIBS
19297 fi
19298 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19299 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19300 if test $ac_cv_lib_posix_remove = yes; then
19301   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19302 fi
19303
19304     fi
19305
19306     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19307     { echo "$as_me:$LINENO: checking for shmat" >&5
19308 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19309 if test "${ac_cv_func_shmat+set}" = set; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h.  */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h.  */
19318 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19320 #define shmat innocuous_shmat
19321
19322 /* System header to define __stub macros and hopefully few prototypes,
19323     which can conflict with char shmat (); below.
19324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19325     <limits.h> exists even on freestanding compilers.  */
19326
19327 #ifdef __STDC__
19328 # include <limits.h>
19329 #else
19330 # include <assert.h>
19331 #endif
19332
19333 #undef shmat
19334
19335 /* Override any GCC internal prototype to avoid an error.
19336    Use char because int might match the return type of a GCC
19337    builtin and then its argument prototype would still apply.  */
19338 #ifdef __cplusplus
19339 extern "C"
19340 #endif
19341 char shmat ();
19342 /* The GNU C library defines this for functions which it implements
19343     to always fail with ENOSYS.  Some functions are actually named
19344     something starting with __ and the normal name is an alias.  */
19345 #if defined __stub_shmat || defined __stub___shmat
19346 choke me
19347 #endif
19348
19349 int
19350 main ()
19351 {
19352 return shmat ();
19353   ;
19354   return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (ac_try="$ac_link"
19359 case "(($ac_try" in
19360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361   *) ac_try_echo=$ac_try;;
19362 esac
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364   (eval "$ac_link") 2>conftest.er1
19365   ac_status=$?
19366   grep -v '^ *+' conftest.er1 >conftest.err
19367   rm -f conftest.er1
19368   cat conftest.err >&5
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); } && {
19371          test -z "$ac_c_werror_flag" ||
19372          test ! -s conftest.err
19373        } && test -s conftest$ac_exeext &&
19374        $as_test_x conftest$ac_exeext; then
19375   ac_cv_func_shmat=yes
19376 else
19377   echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19379
19380         ac_cv_func_shmat=no
19381 fi
19382
19383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19384       conftest$ac_exeext conftest.$ac_ext
19385 fi
19386 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19387 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19388
19389     if test $ac_cv_func_shmat = no; then
19390       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19391 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19392 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   ac_check_lib_save_LIBS=$LIBS
19396 LIBS="-lipc  $LIBS"
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403
19404 /* Override any GCC internal prototype to avoid an error.
19405    Use char because int might match the return type of a GCC
19406    builtin and then its argument prototype would still apply.  */
19407 #ifdef __cplusplus
19408 extern "C"
19409 #endif
19410 char shmat ();
19411 int
19412 main ()
19413 {
19414 return shmat ();
19415   ;
19416   return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest.$ac_objext conftest$ac_exeext
19420 if { (ac_try="$ac_link"
19421 case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_link") 2>conftest.er1
19427   ac_status=$?
19428   grep -v '^ *+' conftest.er1 >conftest.err
19429   rm -f conftest.er1
19430   cat conftest.err >&5
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } && {
19433          test -z "$ac_c_werror_flag" ||
19434          test ! -s conftest.err
19435        } && test -s conftest$ac_exeext &&
19436        $as_test_x conftest$ac_exeext; then
19437   ac_cv_lib_ipc_shmat=yes
19438 else
19439   echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19441
19442         ac_cv_lib_ipc_shmat=no
19443 fi
19444
19445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19446       conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19448 fi
19449 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19450 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19451 if test $ac_cv_lib_ipc_shmat = yes; then
19452   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19453 fi
19454
19455     fi
19456   fi
19457
19458   # Check for libraries that X11R6 Xt/Xaw programs need.
19459   ac_save_LDFLAGS=$LDFLAGS
19460   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19461   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19462   # check for ICE first), but we must link in the order -lSM -lICE or
19463   # we get undefined symbols.  So assume we have SM if we have ICE.
19464   # These have to be linked with before -lX11, unlike the other
19465   # libraries we check for below, so use a different variable.
19466   # John Interrante, Karl Berry
19467   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19468 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19469 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19470   echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472   ac_check_lib_save_LIBS=$LIBS
19473 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h.  */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h.  */
19480
19481 /* Override any GCC internal prototype to avoid an error.
19482    Use char because int might match the return type of a GCC
19483    builtin and then its argument prototype would still apply.  */
19484 #ifdef __cplusplus
19485 extern "C"
19486 #endif
19487 char IceConnectionNumber ();
19488 int
19489 main ()
19490 {
19491 return IceConnectionNumber ();
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (ac_try="$ac_link"
19498 case "(($ac_try" in
19499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500   *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503   (eval "$ac_link") 2>conftest.er1
19504   ac_status=$?
19505   grep -v '^ *+' conftest.er1 >conftest.err
19506   rm -f conftest.er1
19507   cat conftest.err >&5
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); } && {
19510          test -z "$ac_c_werror_flag" ||
19511          test ! -s conftest.err
19512        } && test -s conftest$ac_exeext &&
19513        $as_test_x conftest$ac_exeext; then
19514   ac_cv_lib_ICE_IceConnectionNumber=yes
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519         ac_cv_lib_ICE_IceConnectionNumber=no
19520 fi
19521
19522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19523       conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19525 fi
19526 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19527 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19528 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19529   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19530 fi
19531
19532   LDFLAGS=$ac_save_LDFLAGS
19533
19534 fi
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567 for ac_header in \
19568         assert.h \
19569         fcntl.h \
19570         grp.h \
19571         pwd.h \
19572         libc.h \
19573         limits.h \
19574         stdarg.h \
19575         stdlib.h \
19576         stdint.h \
19577         string.h \
19578         strings.h \
19579         termios.h \
19580         termcap.h \
19581         term.h \
19582         unistd.h \
19583         sys/bitypes.h \
19584         sys/byteorder.h \
19585         sys/ioctl.h \
19586         sys/select.h \
19587         sys/socket.h \
19588         sys/sockio.h \
19589         sys/stat.h \
19590         sys/time.h \
19591         sys/types.h \
19592         arpa/nameser.h \
19593         resolv.h \
19594         mtio.h \
19595         sys/mtio.h \
19596         sys/tape.h \
19597         regex.h \
19598
19599 do
19600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 fi
19607 ac_res=`eval echo '${'$as_ac_Header'}'`
19608                { echo "$as_me:$LINENO: result: $ac_res" >&5
19609 echo "${ECHO_T}$ac_res" >&6; }
19610 else
19611   # Is the header compilable?
19612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 $ac_includes_default
19621 #include <$ac_header>
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627   *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630   (eval "$ac_compile") 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } && {
19637          test -z "$ac_c_werror_flag" ||
19638          test ! -s conftest.err
19639        } && test -s conftest.$ac_objext; then
19640   ac_header_compiler=yes
19641 else
19642   echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645         ac_header_compiler=no
19646 fi
19647
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19650 echo "${ECHO_T}$ac_header_compiler" >&6; }
19651
19652 # Is the header present?
19653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h.  */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h.  */
19661 #include <$ac_header>
19662 _ACEOF
19663 if { (ac_try="$ac_cpp conftest.$ac_ext"
19664 case "(($ac_try" in
19665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666   *) ac_try_echo=$ac_try;;
19667 esac
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19670   ac_status=$?
19671   grep -v '^ *+' conftest.er1 >conftest.err
19672   rm -f conftest.er1
19673   cat conftest.err >&5
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); } >/dev/null && {
19676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19677          test ! -s conftest.err
19678        }; then
19679   ac_header_preproc=yes
19680 else
19681   echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684   ac_header_preproc=no
19685 fi
19686
19687 rm -f conftest.err conftest.$ac_ext
19688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19689 echo "${ECHO_T}$ac_header_preproc" >&6; }
19690
19691 # So?  What about this header?
19692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19693   yes:no: )
19694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19698     ac_header_preproc=yes
19699     ;;
19700   no:yes:* )
19701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19713
19714     ;;
19715 esac
19716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   eval "$as_ac_Header=\$ac_header_preproc"
19722 fi
19723 ac_res=`eval echo '${'$as_ac_Header'}'`
19724                { echo "$as_me:$LINENO: result: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19726
19727 fi
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729   cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19731 _ACEOF
19732
19733 fi
19734
19735 done
19736
19737 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19739 if test "${ac_cv_header_stdc+set}" = set; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742   cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 #include <stdlib.h>
19749 #include <stdarg.h>
19750 #include <string.h>
19751 #include <float.h>
19752
19753 int
19754 main ()
19755 {
19756
19757   ;
19758   return 0;
19759 }
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (ac_try="$ac_compile"
19763 case "(($ac_try" in
19764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765   *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768   (eval "$ac_compile") 2>conftest.er1
19769   ac_status=$?
19770   grep -v '^ *+' conftest.er1 >conftest.err
19771   rm -f conftest.er1
19772   cat conftest.err >&5
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); } && {
19775          test -z "$ac_c_werror_flag" ||
19776          test ! -s conftest.err
19777        } && test -s conftest.$ac_objext; then
19778   ac_cv_header_stdc=yes
19779 else
19780   echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783         ac_cv_header_stdc=no
19784 fi
19785
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787
19788 if test $ac_cv_header_stdc = yes; then
19789   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19790   cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h.  */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h.  */
19796 #include <string.h>
19797
19798 _ACEOF
19799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800   $EGREP "memchr" >/dev/null 2>&1; then
19801   :
19802 else
19803   ac_cv_header_stdc=no
19804 fi
19805 rm -f conftest*
19806
19807 fi
19808
19809 if test $ac_cv_header_stdc = yes; then
19810   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19811   cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817 #include <stdlib.h>
19818
19819 _ACEOF
19820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19821   $EGREP "free" >/dev/null 2>&1; then
19822   :
19823 else
19824   ac_cv_header_stdc=no
19825 fi
19826 rm -f conftest*
19827
19828 fi
19829
19830 if test $ac_cv_header_stdc = yes; then
19831   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19832   if test "$cross_compiling" = yes; then
19833   :
19834 else
19835   cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 #include <ctype.h>
19842 #include <stdlib.h>
19843 #if ((' ' & 0x0FF) == 0x020)
19844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19846 #else
19847 # define ISLOWER(c) \
19848                    (('a' <= (c) && (c) <= 'i') \
19849                      || ('j' <= (c) && (c) <= 'r') \
19850                      || ('s' <= (c) && (c) <= 'z'))
19851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19852 #endif
19853
19854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19855 int
19856 main ()
19857 {
19858   int i;
19859   for (i = 0; i < 256; i++)
19860     if (XOR (islower (i), ISLOWER (i))
19861         || toupper (i) != TOUPPER (i))
19862       return 2;
19863   return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest$ac_exeext
19867 if { (ac_try="$ac_link"
19868 case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_link") 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19877   { (case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_try") 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; }; then
19886   :
19887 else
19888   echo "$as_me: program exited with status $ac_status" >&5
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 ( exit $ac_status )
19893 ac_cv_header_stdc=no
19894 fi
19895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19896 fi
19897
19898
19899 fi
19900 fi
19901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19903 if test $ac_cv_header_stdc = yes; then
19904
19905 cat >>confdefs.h <<\_ACEOF
19906 #define STDC_HEADERS 1
19907 _ACEOF
19908
19909 fi
19910
19911 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19912 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19913 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916   cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 #include <sys/types.h>
19923 int
19924 main ()
19925 {
19926 return makedev(0, 0);
19927   ;
19928   return 0;
19929 }
19930 _ACEOF
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (ac_try="$ac_link"
19933 case "(($ac_try" in
19934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935   *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938   (eval "$ac_link") 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } && {
19945          test -z "$ac_c_werror_flag" ||
19946          test ! -s conftest.err
19947        } && test -s conftest$ac_exeext &&
19948        $as_test_x conftest$ac_exeext; then
19949   ac_cv_header_sys_types_h_makedev=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954         ac_cv_header_sys_types_h_makedev=no
19955 fi
19956
19957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19958       conftest$ac_exeext conftest.$ac_ext
19959
19960 fi
19961 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19962 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19963
19964 if test $ac_cv_header_sys_types_h_makedev = no; then
19965 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19966   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19967 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19968 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 fi
19971 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19972 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19973 else
19974   # Is the header compilable?
19975 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19976 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h.  */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h.  */
19983 $ac_includes_default
19984 #include <sys/mkdev.h>
19985 _ACEOF
19986 rm -f conftest.$ac_objext
19987 if { (ac_try="$ac_compile"
19988 case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_compile") 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } && {
20000          test -z "$ac_c_werror_flag" ||
20001          test ! -s conftest.err
20002        } && test -s conftest.$ac_objext; then
20003   ac_header_compiler=yes
20004 else
20005   echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008         ac_header_compiler=no
20009 fi
20010
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20013 echo "${ECHO_T}$ac_header_compiler" >&6; }
20014
20015 # Is the header present?
20016 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20017 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024 #include <sys/mkdev.h>
20025 _ACEOF
20026 if { (ac_try="$ac_cpp conftest.$ac_ext"
20027 case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } >/dev/null && {
20039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20040          test ! -s conftest.err
20041        }; then
20042   ac_header_preproc=yes
20043 else
20044   echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047   ac_header_preproc=no
20048 fi
20049
20050 rm -f conftest.err conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20052 echo "${ECHO_T}$ac_header_preproc" >&6; }
20053
20054 # So?  What about this header?
20055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20056   yes:no: )
20057     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20058 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20059     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20060 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20061     ac_header_preproc=yes
20062     ;;
20063   no:yes:* )
20064     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20065 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20067 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20069 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20071 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20073 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20074     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20075 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20076
20077     ;;
20078 esac
20079 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20080 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20081 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20085 fi
20086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20087 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20088
20089 fi
20090 if test $ac_cv_header_sys_mkdev_h = yes; then
20091
20092 cat >>confdefs.h <<\_ACEOF
20093 #define MAJOR_IN_MKDEV 1
20094 _ACEOF
20095
20096 fi
20097
20098
20099
20100   if test $ac_cv_header_sys_mkdev_h = no; then
20101     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20102   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20103 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20104 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 fi
20107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20109 else
20110   # Is the header compilable?
20111 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20112 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20113 cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 $ac_includes_default
20120 #include <sys/sysmacros.h>
20121 _ACEOF
20122 rm -f conftest.$ac_objext
20123 if { (ac_try="$ac_compile"
20124 case "(($ac_try" in
20125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126   *) ac_try_echo=$ac_try;;
20127 esac
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129   (eval "$ac_compile") 2>conftest.er1
20130   ac_status=$?
20131   grep -v '^ *+' conftest.er1 >conftest.err
20132   rm -f conftest.er1
20133   cat conftest.err >&5
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); } && {
20136          test -z "$ac_c_werror_flag" ||
20137          test ! -s conftest.err
20138        } && test -s conftest.$ac_objext; then
20139   ac_header_compiler=yes
20140 else
20141   echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144         ac_header_compiler=no
20145 fi
20146
20147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20149 echo "${ECHO_T}$ac_header_compiler" >&6; }
20150
20151 # Is the header present?
20152 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20153 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h.  */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h.  */
20160 #include <sys/sysmacros.h>
20161 _ACEOF
20162 if { (ac_try="$ac_cpp conftest.$ac_ext"
20163 case "(($ac_try" in
20164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165   *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } >/dev/null && {
20175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20176          test ! -s conftest.err
20177        }; then
20178   ac_header_preproc=yes
20179 else
20180   echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183   ac_header_preproc=no
20184 fi
20185
20186 rm -f conftest.err conftest.$ac_ext
20187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20188 echo "${ECHO_T}$ac_header_preproc" >&6; }
20189
20190 # So?  What about this header?
20191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20192   yes:no: )
20193     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20194 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20195     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20196 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20197     ac_header_preproc=yes
20198     ;;
20199   no:yes:* )
20200     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20201 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20202     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20203 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20204     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20205 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20206     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20207 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20208     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20209 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20210     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20211 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20212
20213     ;;
20214 esac
20215 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20216 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20217 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20218   echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20221 fi
20222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20223 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20224
20225 fi
20226 if test $ac_cv_header_sys_sysmacros_h = yes; then
20227
20228 cat >>confdefs.h <<\_ACEOF
20229 #define MAJOR_IN_SYSMACROS 1
20230 _ACEOF
20231
20232 fi
20233
20234
20235   fi
20236 fi
20237
20238
20239
20240
20241
20242
20243 ac_header_dirent=no
20244 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20245   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20246 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20247 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20249   echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251   cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h.  */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h.  */
20257 #include <sys/types.h>
20258 #include <$ac_hdr>
20259
20260 int
20261 main ()
20262 {
20263 if ((DIR *) 0)
20264 return 0;
20265   ;
20266   return 0;
20267 }
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273   *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276   (eval "$ac_compile") 2>conftest.er1
20277   ac_status=$?
20278   grep -v '^ *+' conftest.er1 >conftest.err
20279   rm -f conftest.er1
20280   cat conftest.err >&5
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); } && {
20283          test -z "$ac_c_werror_flag" ||
20284          test ! -s conftest.err
20285        } && test -s conftest.$ac_objext; then
20286   eval "$as_ac_Header=yes"
20287 else
20288   echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20290
20291         eval "$as_ac_Header=no"
20292 fi
20293
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20295 fi
20296 ac_res=`eval echo '${'$as_ac_Header'}'`
20297                { echo "$as_me:$LINENO: result: $ac_res" >&5
20298 echo "${ECHO_T}$ac_res" >&6; }
20299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20300   cat >>confdefs.h <<_ACEOF
20301 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20302 _ACEOF
20303
20304 ac_header_dirent=$ac_hdr; break
20305 fi
20306
20307 done
20308 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20309 if test $ac_header_dirent = dirent.h; then
20310   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20311 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20312 if test "${ac_cv_search_opendir+set}" = set; then
20313   echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315   ac_func_search_save_LIBS=$LIBS
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322
20323 /* Override any GCC internal prototype to avoid an error.
20324    Use char because int might match the return type of a GCC
20325    builtin and then its argument prototype would still apply.  */
20326 #ifdef __cplusplus
20327 extern "C"
20328 #endif
20329 char opendir ();
20330 int
20331 main ()
20332 {
20333 return opendir ();
20334   ;
20335   return 0;
20336 }
20337 _ACEOF
20338 for ac_lib in '' dir; do
20339   if test -z "$ac_lib"; then
20340     ac_res="none required"
20341   else
20342     ac_res=-l$ac_lib
20343     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20344   fi
20345   rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_link") 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } && {
20359          test -z "$ac_c_werror_flag" ||
20360          test ! -s conftest.err
20361        } && test -s conftest$ac_exeext &&
20362        $as_test_x conftest$ac_exeext; then
20363   ac_cv_search_opendir=$ac_res
20364 else
20365   echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368
20369 fi
20370
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20372       conftest$ac_exeext
20373   if test "${ac_cv_search_opendir+set}" = set; then
20374   break
20375 fi
20376 done
20377 if test "${ac_cv_search_opendir+set}" = set; then
20378   :
20379 else
20380   ac_cv_search_opendir=no
20381 fi
20382 rm conftest.$ac_ext
20383 LIBS=$ac_func_search_save_LIBS
20384 fi
20385 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20386 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20387 ac_res=$ac_cv_search_opendir
20388 if test "$ac_res" != no; then
20389   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20390
20391 fi
20392
20393 else
20394   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20396 if test "${ac_cv_search_opendir+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399   ac_func_search_save_LIBS=$LIBS
20400 cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20406
20407 /* Override any GCC internal prototype to avoid an error.
20408    Use char because int might match the return type of a GCC
20409    builtin and then its argument prototype would still apply.  */
20410 #ifdef __cplusplus
20411 extern "C"
20412 #endif
20413 char opendir ();
20414 int
20415 main ()
20416 {
20417 return opendir ();
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 for ac_lib in '' x; do
20423   if test -z "$ac_lib"; then
20424     ac_res="none required"
20425   else
20426     ac_res=-l$ac_lib
20427     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20428   fi
20429   rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_link") 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } && {
20443          test -z "$ac_c_werror_flag" ||
20444          test ! -s conftest.err
20445        } && test -s conftest$ac_exeext &&
20446        $as_test_x conftest$ac_exeext; then
20447   ac_cv_search_opendir=$ac_res
20448 else
20449   echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452
20453 fi
20454
20455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20456       conftest$ac_exeext
20457   if test "${ac_cv_search_opendir+set}" = set; then
20458   break
20459 fi
20460 done
20461 if test "${ac_cv_search_opendir+set}" = set; then
20462   :
20463 else
20464   ac_cv_search_opendir=no
20465 fi
20466 rm conftest.$ac_ext
20467 LIBS=$ac_func_search_save_LIBS
20468 fi
20469 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20470 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20471 ac_res=$ac_cv_search_opendir
20472 if test "$ac_res" != no; then
20473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20474
20475 fi
20476
20477 fi
20478
20479 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20480 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20481 if test "${ac_cv_header_stat_broken+set}" = set; then
20482   echo $ECHO_N "(cached) $ECHO_C" >&6
20483 else
20484   cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h.  */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h.  */
20490 #include <sys/types.h>
20491 #include <sys/stat.h>
20492
20493 #if defined S_ISBLK && defined S_IFDIR
20494 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20495 #endif
20496
20497 #if defined S_ISBLK && defined S_IFCHR
20498 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20499 #endif
20500
20501 #if defined S_ISLNK && defined S_IFREG
20502 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20503 #endif
20504
20505 #if defined S_ISSOCK && defined S_IFREG
20506 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20507 #endif
20508
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514   *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517   (eval "$ac_compile") 2>conftest.er1
20518   ac_status=$?
20519   grep -v '^ *+' conftest.er1 >conftest.err
20520   rm -f conftest.er1
20521   cat conftest.err >&5
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } && {
20524          test -z "$ac_c_werror_flag" ||
20525          test ! -s conftest.err
20526        } && test -s conftest.$ac_objext; then
20527   ac_cv_header_stat_broken=no
20528 else
20529   echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20531
20532         ac_cv_header_stat_broken=yes
20533 fi
20534
20535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536 fi
20537 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20538 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20539 if test $ac_cv_header_stat_broken = yes; then
20540
20541 cat >>confdefs.h <<\_ACEOF
20542 #define STAT_MACROS_BROKEN 1
20543 _ACEOF
20544
20545 fi
20546
20547 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20548 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20549 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20550   echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552   cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558 #include <sys/types.h>
20559 #include <sys/wait.h>
20560 #ifndef WEXITSTATUS
20561 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20562 #endif
20563 #ifndef WIFEXITED
20564 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20565 #endif
20566
20567 int
20568 main ()
20569 {
20570   int s;
20571   wait (&s);
20572   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20573   ;
20574   return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (ac_try="$ac_compile"
20579 case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_compile") 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } && {
20591          test -z "$ac_c_werror_flag" ||
20592          test ! -s conftest.err
20593        } && test -s conftest.$ac_objext; then
20594   ac_cv_header_sys_wait_h=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599         ac_cv_header_sys_wait_h=no
20600 fi
20601
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 fi
20604 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20605 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20606 if test $ac_cv_header_sys_wait_h = yes; then
20607
20608 cat >>confdefs.h <<\_ACEOF
20609 #define HAVE_SYS_WAIT_H 1
20610 _ACEOF
20611
20612 fi
20613
20614 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20615 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20616 if test "${ac_cv_header_time+set}" = set; then
20617   echo $ECHO_N "(cached) $ECHO_C" >&6
20618 else
20619   cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <sys/types.h>
20626 #include <sys/time.h>
20627 #include <time.h>
20628
20629 int
20630 main ()
20631 {
20632 if ((struct tm *) 0)
20633 return 0;
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_compile") 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } && {
20652          test -z "$ac_c_werror_flag" ||
20653          test ! -s conftest.err
20654        } && test -s conftest.$ac_objext; then
20655   ac_cv_header_time=yes
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660         ac_cv_header_time=no
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 fi
20665 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20666 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20667 if test $ac_cv_header_time = yes; then
20668
20669 cat >>confdefs.h <<\_ACEOF
20670 #define TIME_WITH_SYS_TIME 1
20671 _ACEOF
20672
20673 fi
20674
20675 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20676 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20677 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20678   echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680   cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 $ac_includes_default
20687 int
20688 main ()
20689 {
20690 static struct stat ac_aggr;
20691 if (ac_aggr.st_blksize)
20692 return 0;
20693   ;
20694   return 0;
20695 }
20696 _ACEOF
20697 rm -f conftest.$ac_objext
20698 if { (ac_try="$ac_compile"
20699 case "(($ac_try" in
20700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701   *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704   (eval "$ac_compile") 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
20708   cat conftest.err >&5
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } && {
20711          test -z "$ac_c_werror_flag" ||
20712          test ! -s conftest.err
20713        } && test -s conftest.$ac_objext; then
20714   ac_cv_member_struct_stat_st_blksize=yes
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719         cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h.  */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h.  */
20725 $ac_includes_default
20726 int
20727 main ()
20728 {
20729 static struct stat ac_aggr;
20730 if (sizeof ac_aggr.st_blksize)
20731 return 0;
20732   ;
20733   return 0;
20734 }
20735 _ACEOF
20736 rm -f conftest.$ac_objext
20737 if { (ac_try="$ac_compile"
20738 case "(($ac_try" in
20739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740   *) ac_try_echo=$ac_try;;
20741 esac
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743   (eval "$ac_compile") 2>conftest.er1
20744   ac_status=$?
20745   grep -v '^ *+' conftest.er1 >conftest.err
20746   rm -f conftest.er1
20747   cat conftest.err >&5
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } && {
20750          test -z "$ac_c_werror_flag" ||
20751          test ! -s conftest.err
20752        } && test -s conftest.$ac_objext; then
20753   ac_cv_member_struct_stat_st_blksize=yes
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758         ac_cv_member_struct_stat_st_blksize=no
20759 fi
20760
20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20762 fi
20763
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 fi
20766 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20767 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20768 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20769
20770 cat >>confdefs.h <<_ACEOF
20771 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20772 _ACEOF
20773
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_ST_BLKSIZE 1
20777 _ACEOF
20778
20779 fi
20780
20781
20782 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20783 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20784 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 $ac_includes_default
20794 int
20795 main ()
20796 {
20797 static struct stat ac_aggr;
20798 if (ac_aggr.st_blocks)
20799 return 0;
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_compile") 2>conftest.er1
20812   ac_status=$?
20813   grep -v '^ *+' conftest.er1 >conftest.err
20814   rm -f conftest.er1
20815   cat conftest.err >&5
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } && {
20818          test -z "$ac_c_werror_flag" ||
20819          test ! -s conftest.err
20820        } && test -s conftest.$ac_objext; then
20821   ac_cv_member_struct_stat_st_blocks=yes
20822 else
20823   echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826         cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832 $ac_includes_default
20833 int
20834 main ()
20835 {
20836 static struct stat ac_aggr;
20837 if (sizeof ac_aggr.st_blocks)
20838 return 0;
20839   ;
20840   return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847   *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850   (eval "$ac_compile") 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } && {
20857          test -z "$ac_c_werror_flag" ||
20858          test ! -s conftest.err
20859        } && test -s conftest.$ac_objext; then
20860   ac_cv_member_struct_stat_st_blocks=yes
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865         ac_cv_member_struct_stat_st_blocks=no
20866 fi
20867
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869 fi
20870
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 fi
20873 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20874 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20875 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20876
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20879 _ACEOF
20880
20881
20882 cat >>confdefs.h <<\_ACEOF
20883 #define HAVE_ST_BLOCKS 1
20884 _ACEOF
20885
20886 else
20887   case " $LIBOBJS " in
20888   *" fileblocks.$ac_objext "* ) ;;
20889   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20890  ;;
20891 esac
20892
20893 fi
20894
20895
20896 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20897 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20898 if test "${ac_cv_struct_tm+set}" = set; then
20899   echo $ECHO_N "(cached) $ECHO_C" >&6
20900 else
20901   cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907 #include <sys/types.h>
20908 #include <time.h>
20909
20910 int
20911 main ()
20912 {
20913 struct tm tm;
20914                                      int *p = &tm.tm_sec;
20915                                      return !p;
20916   ;
20917   return 0;
20918 }
20919 _ACEOF
20920 rm -f conftest.$ac_objext
20921 if { (ac_try="$ac_compile"
20922 case "(($ac_try" in
20923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924   *) ac_try_echo=$ac_try;;
20925 esac
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927   (eval "$ac_compile") 2>conftest.er1
20928   ac_status=$?
20929   grep -v '^ *+' conftest.er1 >conftest.err
20930   rm -f conftest.er1
20931   cat conftest.err >&5
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); } && {
20934          test -z "$ac_c_werror_flag" ||
20935          test ! -s conftest.err
20936        } && test -s conftest.$ac_objext; then
20937   ac_cv_struct_tm=time.h
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         ac_cv_struct_tm=sys/time.h
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 fi
20947 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20948 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20949 if test $ac_cv_struct_tm = sys/time.h; then
20950
20951 cat >>confdefs.h <<\_ACEOF
20952 #define TM_IN_SYS_TIME 1
20953 _ACEOF
20954
20955 fi
20956
20957 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20958 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20959 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20960   echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962   cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h.  */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h.  */
20968 #include <sys/types.h>
20969 #include <$ac_cv_struct_tm>
20970
20971
20972 int
20973 main ()
20974 {
20975 static struct tm ac_aggr;
20976 if (ac_aggr.tm_zone)
20977 return 0;
20978   ;
20979   return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986   *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989   (eval "$ac_compile") 2>conftest.er1
20990   ac_status=$?
20991   grep -v '^ *+' conftest.er1 >conftest.err
20992   rm -f conftest.er1
20993   cat conftest.err >&5
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } && {
20996          test -z "$ac_c_werror_flag" ||
20997          test ! -s conftest.err
20998        } && test -s conftest.$ac_objext; then
20999   ac_cv_member_struct_tm_tm_zone=yes
21000 else
21001   echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004         cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h.  */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h.  */
21010 #include <sys/types.h>
21011 #include <$ac_cv_struct_tm>
21012
21013
21014 int
21015 main ()
21016 {
21017 static struct tm ac_aggr;
21018 if (sizeof ac_aggr.tm_zone)
21019 return 0;
21020   ;
21021   return 0;
21022 }
21023 _ACEOF
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028   *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031   (eval "$ac_compile") 2>conftest.er1
21032   ac_status=$?
21033   grep -v '^ *+' conftest.er1 >conftest.err
21034   rm -f conftest.er1
21035   cat conftest.err >&5
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); } && {
21038          test -z "$ac_c_werror_flag" ||
21039          test ! -s conftest.err
21040        } && test -s conftest.$ac_objext; then
21041   ac_cv_member_struct_tm_tm_zone=yes
21042 else
21043   echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21045
21046         ac_cv_member_struct_tm_tm_zone=no
21047 fi
21048
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 fi
21051
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 fi
21054 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21055 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21056 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21057
21058 cat >>confdefs.h <<_ACEOF
21059 #define HAVE_STRUCT_TM_TM_ZONE 1
21060 _ACEOF
21061
21062
21063 fi
21064
21065 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21066
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_TM_ZONE 1
21069 _ACEOF
21070
21071 else
21072   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21073 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21074 if test "${ac_cv_have_decl_tzname+set}" = set; then
21075   echo $ECHO_N "(cached) $ECHO_C" >&6
21076 else
21077   cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h.  */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h.  */
21083 #include <time.h>
21084
21085 int
21086 main ()
21087 {
21088 #ifndef tzname
21089   (void) tzname;
21090 #endif
21091
21092   ;
21093   return 0;
21094 }
21095 _ACEOF
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100   *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103   (eval "$ac_compile") 2>conftest.er1
21104   ac_status=$?
21105   grep -v '^ *+' conftest.er1 >conftest.err
21106   rm -f conftest.er1
21107   cat conftest.err >&5
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); } && {
21110          test -z "$ac_c_werror_flag" ||
21111          test ! -s conftest.err
21112        } && test -s conftest.$ac_objext; then
21113   ac_cv_have_decl_tzname=yes
21114 else
21115   echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118         ac_cv_have_decl_tzname=no
21119 fi
21120
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122 fi
21123 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21124 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21125 if test $ac_cv_have_decl_tzname = yes; then
21126
21127 cat >>confdefs.h <<_ACEOF
21128 #define HAVE_DECL_TZNAME 1
21129 _ACEOF
21130
21131
21132 else
21133   cat >>confdefs.h <<_ACEOF
21134 #define HAVE_DECL_TZNAME 0
21135 _ACEOF
21136
21137
21138 fi
21139
21140
21141   { echo "$as_me:$LINENO: checking for tzname" >&5
21142 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21143 if test "${ac_cv_var_tzname+set}" = set; then
21144   echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146   cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h.  */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h.  */
21152 #include <time.h>
21153 #if !HAVE_DECL_TZNAME
21154 extern char *tzname[];
21155 #endif
21156
21157 int
21158 main ()
21159 {
21160 return tzname[0][0];
21161   ;
21162   return 0;
21163 }
21164 _ACEOF
21165 rm -f conftest.$ac_objext conftest$ac_exeext
21166 if { (ac_try="$ac_link"
21167 case "(($ac_try" in
21168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169   *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172   (eval "$ac_link") 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } && {
21179          test -z "$ac_c_werror_flag" ||
21180          test ! -s conftest.err
21181        } && test -s conftest$ac_exeext &&
21182        $as_test_x conftest$ac_exeext; then
21183   ac_cv_var_tzname=yes
21184 else
21185   echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188         ac_cv_var_tzname=no
21189 fi
21190
21191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21192       conftest$ac_exeext conftest.$ac_ext
21193 fi
21194 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21195 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21196   if test $ac_cv_var_tzname = yes; then
21197
21198 cat >>confdefs.h <<\_ACEOF
21199 #define HAVE_TZNAME 1
21200 _ACEOF
21201
21202   fi
21203 fi
21204
21205
21206 { echo "$as_me:$LINENO: checking for utime.h" >&5
21207 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21208 if test "${ba_cv_header_utime_h+set}" = set; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211   cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217
21218 #include <sys/types.h>
21219 #include <utime.h>
21220 int
21221 main ()
21222 {
21223 struct utimbuf foo
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (ac_try="$ac_compile"
21230 case "(($ac_try" in
21231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232   *) ac_try_echo=$ac_try;;
21233 esac
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235   (eval "$ac_compile") 2>conftest.er1
21236   ac_status=$?
21237   grep -v '^ *+' conftest.er1 >conftest.err
21238   rm -f conftest.er1
21239   cat conftest.err >&5
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); } && {
21242          test -z "$ac_c_werror_flag" ||
21243          test ! -s conftest.err
21244        } && test -s conftest.$ac_objext; then
21245   ba_cv_header_utime_h=yes
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250         ba_cv_header_utime_h=no
21251 fi
21252
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 fi
21255 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21256 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21257 test $ba_cv_header_utime_h = yes &&
21258 cat >>confdefs.h <<\_ACEOF
21259 #define HAVE_UTIME_H 1
21260 _ACEOF
21261
21262
21263 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21264 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21265 if test "${ba_cv_header_socklen_t+set}" = set; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274
21275 #include <sys/types.h>
21276 #include <sys/socket.h>
21277 int
21278 main ()
21279 {
21280 socklen_t x
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_compile") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && {
21299          test -z "$ac_c_werror_flag" ||
21300          test ! -s conftest.err
21301        } && test -s conftest.$ac_objext; then
21302   ba_cv_header_socklen_t=yes
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307         ba_cv_header_socklen_t=no
21308 fi
21309
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 fi
21312 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21313 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21314 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_SOCKLEN_T 1
21316 _ACEOF
21317
21318
21319 { echo "$as_me:$LINENO: checking for bigendian" >&5
21320 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21321 if test "${ba_cv_bigendian+set}" = set; then
21322   echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324   if test "$cross_compiling" = yes; then
21325   ba_cv_bigendian=no
21326 else
21327   cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h.  */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h.  */
21333 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21334 _ACEOF
21335 rm -f conftest$ac_exeext
21336 if { (ac_try="$ac_link"
21337 case "(($ac_try" in
21338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339   *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342   (eval "$ac_link") 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21346   { (case "(($ac_try" in
21347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348   *) ac_try_echo=$ac_try;;
21349 esac
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351   (eval "$ac_try") 2>&5
21352   ac_status=$?
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); }; }; then
21355   ba_cv_bigendian=yes
21356 else
21357   echo "$as_me: program exited with status $ac_status" >&5
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 ( exit $ac_status )
21362 ba_cv_bigendian=no
21363 fi
21364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21365 fi
21366
21367
21368 fi
21369 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21370 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21371 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21372 #define HAVE_BIGENDIAN 1
21373 _ACEOF
21374
21375
21376 ac_ext=cpp
21377 ac_cpp='$CXXCPP $CPPFLAGS'
21378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21381
21382
21383 { echo "$as_me:$LINENO: checking for typeof" >&5
21384 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21385 if test "${ba_cv_have_typeof+set}" = set; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388   if test "$cross_compiling" = yes; then
21389   ba_cv_have_typeof=no
21390 else
21391   cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 main(){char *a = 0; a = (typeof a)a;}
21398 _ACEOF
21399 rm -f conftest$ac_exeext
21400 if { (ac_try="$ac_link"
21401 case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_link") 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21410   { (case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_try") 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; }; then
21419   ba_cv_have_typeof=yes
21420 else
21421   echo "$as_me: program exited with status $ac_status" >&5
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425 ( exit $ac_status )
21426 ba_cv_have_typeof=no
21427 fi
21428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21429 fi
21430
21431
21432 fi
21433 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21434 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21435 test $ba_cv_have_typeof = yes &&
21436 cat >>confdefs.h <<\_ACEOF
21437 #define HAVE_TYPEOF 1
21438 _ACEOF
21439
21440 ac_ext=c
21441 ac_cpp='$CPP $CPPFLAGS'
21442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445
21446
21447 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21448 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21449 if test "${ac_cv_c_const+set}" = set; then
21450   echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452   cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h.  */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h.  */
21458
21459 int
21460 main ()
21461 {
21462 /* FIXME: Include the comments suggested by Paul. */
21463 #ifndef __cplusplus
21464   /* Ultrix mips cc rejects this.  */
21465   typedef int charset[2];
21466   const charset cs;
21467   /* SunOS 4.1.1 cc rejects this.  */
21468   char const *const *pcpcc;
21469   char **ppc;
21470   /* NEC SVR4.0.2 mips cc rejects this.  */
21471   struct point {int x, y;};
21472   static struct point const zero = {0,0};
21473   /* AIX XL C 1.02.0.0 rejects this.
21474      It does not let you subtract one const X* pointer from another in
21475      an arm of an if-expression whose if-part is not a constant
21476      expression */
21477   const char *g = "string";
21478   pcpcc = &g + (g ? g-g : 0);
21479   /* HPUX 7.0 cc rejects these. */
21480   ++pcpcc;
21481   ppc = (char**) pcpcc;
21482   pcpcc = (char const *const *) ppc;
21483   { /* SCO 3.2v4 cc rejects this.  */
21484     char *t;
21485     char const *s = 0 ? (char *) 0 : (char const *) 0;
21486
21487     *t++ = 0;
21488     if (s) return 0;
21489   }
21490   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21491     int x[] = {25, 17};
21492     const int *foo = &x[0];
21493     ++foo;
21494   }
21495   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21496     typedef const int *iptr;
21497     iptr p = 0;
21498     ++p;
21499   }
21500   { /* AIX XL C 1.02.0.0 rejects this saying
21501        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21502     struct s { int j; const int *ap[3]; };
21503     struct s *b; b->j = 5;
21504   }
21505   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21506     const int foo = 10;
21507     if (!foo) return 0;
21508   }
21509   return !cs[0] && !zero.x;
21510 #endif
21511
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_compile") 2>conftest.er1
21524   ac_status=$?
21525   grep -v '^ *+' conftest.er1 >conftest.err
21526   rm -f conftest.er1
21527   cat conftest.err >&5
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } && {
21530          test -z "$ac_c_werror_flag" ||
21531          test ! -s conftest.err
21532        } && test -s conftest.$ac_objext; then
21533   ac_cv_c_const=yes
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         ac_cv_c_const=no
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 fi
21543 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21544 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21545 if test $ac_cv_c_const = no; then
21546
21547 cat >>confdefs.h <<\_ACEOF
21548 #define const
21549 _ACEOF
21550
21551 fi
21552
21553
21554
21555 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21556 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21557 fstype=no
21558 # The order of these tests is important.
21559 cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h.  */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h.  */
21565 #include <sys/statvfs.h>
21566 #include <sys/fstyp.h>
21567 _ACEOF
21568 if { (ac_try="$ac_cpp conftest.$ac_ext"
21569 case "(($ac_try" in
21570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571   *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21575   ac_status=$?
21576   grep -v '^ *+' conftest.er1 >conftest.err
21577   rm -f conftest.er1
21578   cat conftest.err >&5
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } >/dev/null && {
21581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21582          test ! -s conftest.err
21583        }; then
21584   cat >>confdefs.h <<\_ACEOF
21585 #define FSTYPE_STATVFS 1
21586 _ACEOF
21587  fstype=SVR4
21588 else
21589   echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21591
21592
21593 fi
21594
21595 rm -f conftest.err conftest.$ac_ext
21596 if test $fstype = no; then
21597 cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 #include <sys/statfs.h>
21604 #include <sys/fstyp.h>
21605 _ACEOF
21606 if { (ac_try="$ac_cpp conftest.$ac_ext"
21607 case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } >/dev/null && {
21619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21620          test ! -s conftest.err
21621        }; then
21622   cat >>confdefs.h <<\_ACEOF
21623 #define FSTYPE_USG_STATFS 1
21624 _ACEOF
21625  fstype=SVR3
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21629
21630
21631 fi
21632
21633 rm -f conftest.err conftest.$ac_ext
21634 fi
21635 if test $fstype = no; then
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642 #include <sys/statfs.h>
21643 #include <sys/vmount.h>
21644 _ACEOF
21645 if { (ac_try="$ac_cpp conftest.$ac_ext"
21646 case "(($ac_try" in
21647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648   *) ac_try_echo=$ac_try;;
21649 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21652   ac_status=$?
21653   grep -v '^ *+' conftest.er1 >conftest.err
21654   rm -f conftest.er1
21655   cat conftest.err >&5
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); } >/dev/null && {
21658          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21659          test ! -s conftest.err
21660        }; then
21661   cat >>confdefs.h <<\_ACEOF
21662 #define FSTYPE_AIX_STATFS 1
21663 _ACEOF
21664  fstype=AIX
21665 else
21666   echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669
21670 fi
21671
21672 rm -f conftest.err conftest.$ac_ext
21673 fi
21674 if test $fstype = no; then
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681 #include <mntent.h>
21682 _ACEOF
21683 if { (ac_try="$ac_cpp conftest.$ac_ext"
21684 case "(($ac_try" in
21685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686   *) ac_try_echo=$ac_try;;
21687 esac
21688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21690   ac_status=$?
21691   grep -v '^ *+' conftest.er1 >conftest.err
21692   rm -f conftest.er1
21693   cat conftest.err >&5
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); } >/dev/null && {
21696          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21697          test ! -s conftest.err
21698        }; then
21699   cat >>confdefs.h <<\_ACEOF
21700 #define FSTYPE_MNTENT 1
21701 _ACEOF
21702  fstype=4.3BSD
21703 else
21704   echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707
21708 fi
21709
21710 rm -f conftest.err conftest.$ac_ext
21711 fi
21712 if test $fstype = no; then
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719 #include <sys/mount.h>
21720
21721 _ACEOF
21722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21723   $EGREP "f_type;" >/dev/null 2>&1; then
21724   cat >>confdefs.h <<\_ACEOF
21725 #define FSTYPE_STATFS 1
21726 _ACEOF
21727  fstype=4.4BSD/OSF1
21728 fi
21729 rm -f conftest*
21730
21731 fi
21732 if test $fstype = no; then
21733 cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739 #include <sys/mount.h>
21740 #include <sys/fs_types.h>
21741 _ACEOF
21742 if { (ac_try="$ac_cpp conftest.$ac_ext"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } >/dev/null && {
21755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21756          test ! -s conftest.err
21757        }; then
21758   cat >>confdefs.h <<\_ACEOF
21759 #define FSTYPE_GETMNT 1
21760 _ACEOF
21761  fstype=Ultrix
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766
21767 fi
21768
21769 rm -f conftest.err conftest.$ac_ext
21770 fi
21771 { echo "$as_me:$LINENO: result: $fstype" >&5
21772 echo "${ECHO_T}$fstype" >&6; }
21773
21774 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21775   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21776 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21777 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 fi
21780 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21781 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21782 else
21783   # Is the header compilable?
21784 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21785 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 $ac_includes_default
21793 #include <sys/statvfs.h>
21794 _ACEOF
21795 rm -f conftest.$ac_objext
21796 if { (ac_try="$ac_compile"
21797 case "(($ac_try" in
21798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21799   *) ac_try_echo=$ac_try;;
21800 esac
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802   (eval "$ac_compile") 2>conftest.er1
21803   ac_status=$?
21804   grep -v '^ *+' conftest.er1 >conftest.err
21805   rm -f conftest.er1
21806   cat conftest.err >&5
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); } && {
21809          test -z "$ac_c_werror_flag" ||
21810          test ! -s conftest.err
21811        } && test -s conftest.$ac_objext; then
21812   ac_header_compiler=yes
21813 else
21814   echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817         ac_header_compiler=no
21818 fi
21819
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21822 echo "${ECHO_T}$ac_header_compiler" >&6; }
21823
21824 # Is the header present?
21825 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21826 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h.  */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h.  */
21833 #include <sys/statvfs.h>
21834 _ACEOF
21835 if { (ac_try="$ac_cpp conftest.$ac_ext"
21836 case "(($ac_try" in
21837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838   *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21842   ac_status=$?
21843   grep -v '^ *+' conftest.er1 >conftest.err
21844   rm -f conftest.er1
21845   cat conftest.err >&5
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); } >/dev/null && {
21848          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21849          test ! -s conftest.err
21850        }; then
21851   ac_header_preproc=yes
21852 else
21853   echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856   ac_header_preproc=no
21857 fi
21858
21859 rm -f conftest.err conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21861 echo "${ECHO_T}$ac_header_preproc" >&6; }
21862
21863 # So?  What about this header?
21864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21865   yes:no: )
21866     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21867 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21868     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21869 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21870     ac_header_preproc=yes
21871     ;;
21872   no:yes:* )
21873     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21874 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21875     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21876 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21877     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21878 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21879     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21880 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21881     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21882 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21883     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21884 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21885
21886     ;;
21887 esac
21888 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21889 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21890 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21894 fi
21895 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21896 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21897
21898 fi
21899 if test $ac_cv_header_sys_statvfs_h = yes; then
21900
21901 cat >>confdefs.h <<\_ACEOF
21902 #define HAVE_SYS_STATVFS_H 1
21903 _ACEOF
21904
21905 fi
21906
21907
21908
21909 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21910 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21911 if test "${ac_cv_type_signal+set}" = set; then
21912   echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914   cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h.  */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h.  */
21920 #include <sys/types.h>
21921 #include <signal.h>
21922
21923 int
21924 main ()
21925 {
21926 return *(signal (0, 0)) (0) == 1;
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_compile") 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && {
21945          test -z "$ac_c_werror_flag" ||
21946          test ! -s conftest.err
21947        } && test -s conftest.$ac_objext; then
21948   ac_cv_type_signal=int
21949 else
21950   echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953         ac_cv_type_signal=void
21954 fi
21955
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21959 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21960
21961 cat >>confdefs.h <<_ACEOF
21962 #define RETSIGTYPE $ac_cv_type_signal
21963 _ACEOF
21964
21965
21966
21967   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
21968 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
21969   if test "${bash_cv_signal_vintage+set}" = set; then
21970   echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972
21973     cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 #include <signal.h>
21980 int
21981 main ()
21982 {
21983
21984       sigset_t ss;
21985       struct sigaction sa;
21986       sigemptyset(&ss); sigsuspend(&ss);
21987       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21988       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21989
21990   ;
21991   return 0;
21992 }
21993 _ACEOF
21994 rm -f conftest.$ac_objext conftest$ac_exeext
21995 if { (ac_try="$ac_link"
21996 case "(($ac_try" in
21997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998   *) ac_try_echo=$ac_try;;
21999 esac
22000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001   (eval "$ac_link") 2>conftest.er1
22002   ac_status=$?
22003   grep -v '^ *+' conftest.er1 >conftest.err
22004   rm -f conftest.er1
22005   cat conftest.err >&5
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); } && {
22008          test -z "$ac_c_werror_flag" ||
22009          test ! -s conftest.err
22010        } && test -s conftest$ac_exeext &&
22011        $as_test_x conftest$ac_exeext; then
22012   bash_cv_signal_vintage="posix"
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017
22018       cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h.  */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h.  */
22024 #include <signal.h>
22025 int
22026 main ()
22027 {
22028
22029           int mask = sigmask(SIGINT);
22030           sigsetmask(mask); sigblock(mask); sigpause(mask);
22031
22032   ;
22033   return 0;
22034 }
22035 _ACEOF
22036 rm -f conftest.$ac_objext conftest$ac_exeext
22037 if { (ac_try="$ac_link"
22038 case "(($ac_try" in
22039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040   *) ac_try_echo=$ac_try;;
22041 esac
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043   (eval "$ac_link") 2>conftest.er1
22044   ac_status=$?
22045   grep -v '^ *+' conftest.er1 >conftest.err
22046   rm -f conftest.er1
22047   cat conftest.err >&5
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); } && {
22050          test -z "$ac_c_werror_flag" ||
22051          test ! -s conftest.err
22052        } && test -s conftest$ac_exeext &&
22053        $as_test_x conftest$ac_exeext; then
22054   bash_cv_signal_vintage="4.2bsd"
22055 else
22056   echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059
22060         cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h.  */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h.  */
22066
22067           #include <signal.h>
22068           RETSIGTYPE foo() { }
22069 int
22070 main ()
22071 {
22072
22073                   int mask = sigmask(SIGINT);
22074                   sigset(SIGINT, foo); sigrelse(SIGINT);
22075                   sighold(SIGINT); sigpause(SIGINT);
22076
22077   ;
22078   return 0;
22079 }
22080 _ACEOF
22081 rm -f conftest.$ac_objext conftest$ac_exeext
22082 if { (ac_try="$ac_link"
22083 case "(($ac_try" in
22084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085   *) ac_try_echo=$ac_try;;
22086 esac
22087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088   (eval "$ac_link") 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } && {
22095          test -z "$ac_c_werror_flag" ||
22096          test ! -s conftest.err
22097        } && test -s conftest$ac_exeext &&
22098        $as_test_x conftest$ac_exeext; then
22099   bash_cv_signal_vintage="svr3"
22100 else
22101   echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104         bash_cv_signal_vintage="v7"
22105
22106 fi
22107
22108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22109       conftest$ac_exeext conftest.$ac_ext
22110
22111 fi
22112
22113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22114       conftest$ac_exeext conftest.$ac_ext
22115
22116 fi
22117
22118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119       conftest$ac_exeext conftest.$ac_ext
22120
22121 fi
22122
22123   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22124 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22125   if test "$bash_cv_signal_vintage" = "posix"; then
22126     cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_POSIX_SIGNALS 1
22128 _ACEOF
22129
22130   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22131     cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_BSD_SIGNALS 1
22133 _ACEOF
22134
22135   elif test "$bash_cv_signal_vintage" = "svr3"; then
22136     cat >>confdefs.h <<\_ACEOF
22137 #define HAVE_USG_SIGHOLD 1
22138 _ACEOF
22139
22140   fi
22141
22142 { echo "$as_me:$LINENO: checking for mode_t" >&5
22143 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22144 if test "${ac_cv_type_mode_t+set}" = set; then
22145   echo $ECHO_N "(cached) $ECHO_C" >&6
22146 else
22147   cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h.  */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h.  */
22153 $ac_includes_default
22154 typedef mode_t ac__type_new_;
22155 int
22156 main ()
22157 {
22158 if ((ac__type_new_ *) 0)
22159   return 0;
22160 if (sizeof (ac__type_new_))
22161   return 0;
22162   ;
22163   return 0;
22164 }
22165 _ACEOF
22166 rm -f conftest.$ac_objext
22167 if { (ac_try="$ac_compile"
22168 case "(($ac_try" in
22169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170   *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173   (eval "$ac_compile") 2>conftest.er1
22174   ac_status=$?
22175   grep -v '^ *+' conftest.er1 >conftest.err
22176   rm -f conftest.er1
22177   cat conftest.err >&5
22178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179   (exit $ac_status); } && {
22180          test -z "$ac_c_werror_flag" ||
22181          test ! -s conftest.err
22182        } && test -s conftest.$ac_objext; then
22183   ac_cv_type_mode_t=yes
22184 else
22185   echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188         ac_cv_type_mode_t=no
22189 fi
22190
22191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192 fi
22193 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22194 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22195 if test $ac_cv_type_mode_t = yes; then
22196   :
22197 else
22198
22199 cat >>confdefs.h <<_ACEOF
22200 #define mode_t int
22201 _ACEOF
22202
22203 fi
22204
22205 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22206 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22207 if test "${ac_cv_type_uid_t+set}" = set; then
22208   echo $ECHO_N "(cached) $ECHO_C" >&6
22209 else
22210   cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h.  */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h.  */
22216 #include <sys/types.h>
22217
22218 _ACEOF
22219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22220   $EGREP "uid_t" >/dev/null 2>&1; then
22221   ac_cv_type_uid_t=yes
22222 else
22223   ac_cv_type_uid_t=no
22224 fi
22225 rm -f conftest*
22226
22227 fi
22228 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22229 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22230 if test $ac_cv_type_uid_t = no; then
22231
22232 cat >>confdefs.h <<\_ACEOF
22233 #define uid_t int
22234 _ACEOF
22235
22236
22237 cat >>confdefs.h <<\_ACEOF
22238 #define gid_t int
22239 _ACEOF
22240
22241 fi
22242
22243 { echo "$as_me:$LINENO: checking for size_t" >&5
22244 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22245 if test "${ac_cv_type_size_t+set}" = set; then
22246   echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248   cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254 $ac_includes_default
22255 typedef size_t ac__type_new_;
22256 int
22257 main ()
22258 {
22259 if ((ac__type_new_ *) 0)
22260   return 0;
22261 if (sizeof (ac__type_new_))
22262   return 0;
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274   (eval "$ac_compile") 2>conftest.er1
22275   ac_status=$?
22276   grep -v '^ *+' conftest.er1 >conftest.err
22277   rm -f conftest.er1
22278   cat conftest.err >&5
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); } && {
22281          test -z "$ac_c_werror_flag" ||
22282          test ! -s conftest.err
22283        } && test -s conftest.$ac_objext; then
22284   ac_cv_type_size_t=yes
22285 else
22286   echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22288
22289         ac_cv_type_size_t=no
22290 fi
22291
22292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 fi
22294 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22295 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22296 if test $ac_cv_type_size_t = yes; then
22297   :
22298 else
22299
22300 cat >>confdefs.h <<_ACEOF
22301 #define size_t unsigned int
22302 _ACEOF
22303
22304 fi
22305
22306 { echo "$as_me:$LINENO: checking for pid_t" >&5
22307 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22308 if test "${ac_cv_type_pid_t+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311   cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h.  */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h.  */
22317 $ac_includes_default
22318 typedef pid_t ac__type_new_;
22319 int
22320 main ()
22321 {
22322 if ((ac__type_new_ *) 0)
22323   return 0;
22324 if (sizeof (ac__type_new_))
22325   return 0;
22326   ;
22327   return 0;
22328 }
22329 _ACEOF
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334   *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337   (eval "$ac_compile") 2>conftest.er1
22338   ac_status=$?
22339   grep -v '^ *+' conftest.er1 >conftest.err
22340   rm -f conftest.er1
22341   cat conftest.err >&5
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); } && {
22344          test -z "$ac_c_werror_flag" ||
22345          test ! -s conftest.err
22346        } && test -s conftest.$ac_objext; then
22347   ac_cv_type_pid_t=yes
22348 else
22349   echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352         ac_cv_type_pid_t=no
22353 fi
22354
22355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22356 fi
22357 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22358 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22359 if test $ac_cv_type_pid_t = yes; then
22360   :
22361 else
22362
22363 cat >>confdefs.h <<_ACEOF
22364 #define pid_t int
22365 _ACEOF
22366
22367 fi
22368
22369 { echo "$as_me:$LINENO: checking for off_t" >&5
22370 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22371 if test "${ac_cv_type_off_t+set}" = set; then
22372   echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374   cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h.  */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h.  */
22380 $ac_includes_default
22381 typedef off_t ac__type_new_;
22382 int
22383 main ()
22384 {
22385 if ((ac__type_new_ *) 0)
22386   return 0;
22387 if (sizeof (ac__type_new_))
22388   return 0;
22389   ;
22390   return 0;
22391 }
22392 _ACEOF
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397   *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400   (eval "$ac_compile") 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } && {
22407          test -z "$ac_c_werror_flag" ||
22408          test ! -s conftest.err
22409        } && test -s conftest.$ac_objext; then
22410   ac_cv_type_off_t=yes
22411 else
22412   echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         ac_cv_type_off_t=no
22416 fi
22417
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 fi
22420 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22421 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22422 if test $ac_cv_type_off_t = yes; then
22423   :
22424 else
22425
22426 cat >>confdefs.h <<_ACEOF
22427 #define off_t long int
22428 _ACEOF
22429
22430 fi
22431
22432 { echo "$as_me:$LINENO: checking for ino_t" >&5
22433 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22434 if test "${ac_cv_type_ino_t+set}" = set; then
22435   echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437   cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h.  */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h.  */
22443 $ac_includes_default
22444 typedef ino_t ac__type_new_;
22445 int
22446 main ()
22447 {
22448 if ((ac__type_new_ *) 0)
22449   return 0;
22450 if (sizeof (ac__type_new_))
22451   return 0;
22452   ;
22453   return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext
22457 if { (ac_try="$ac_compile"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_compile") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } && {
22470          test -z "$ac_c_werror_flag" ||
22471          test ! -s conftest.err
22472        } && test -s conftest.$ac_objext; then
22473   ac_cv_type_ino_t=yes
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478         ac_cv_type_ino_t=no
22479 fi
22480
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 fi
22483 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22484 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22485 if test $ac_cv_type_ino_t = yes; then
22486   :
22487 else
22488
22489 cat >>confdefs.h <<_ACEOF
22490 #define ino_t unsigned long
22491 _ACEOF
22492
22493 fi
22494
22495 { echo "$as_me:$LINENO: checking for dev_t" >&5
22496 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22497 if test "${ac_cv_type_dev_t+set}" = set; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500   cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h.  */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h.  */
22506 $ac_includes_default
22507 typedef dev_t ac__type_new_;
22508 int
22509 main ()
22510 {
22511 if ((ac__type_new_ *) 0)
22512   return 0;
22513 if (sizeof (ac__type_new_))
22514   return 0;
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523   *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526   (eval "$ac_compile") 2>conftest.er1
22527   ac_status=$?
22528   grep -v '^ *+' conftest.er1 >conftest.err
22529   rm -f conftest.er1
22530   cat conftest.err >&5
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); } && {
22533          test -z "$ac_c_werror_flag" ||
22534          test ! -s conftest.err
22535        } && test -s conftest.$ac_objext; then
22536   ac_cv_type_dev_t=yes
22537 else
22538   echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541         ac_cv_type_dev_t=no
22542 fi
22543
22544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22545 fi
22546 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22547 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22548 if test $ac_cv_type_dev_t = yes; then
22549   :
22550 else
22551
22552 cat >>confdefs.h <<_ACEOF
22553 #define dev_t unsigned long
22554 _ACEOF
22555
22556 fi
22557
22558 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22559 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22560 if test "${ac_cv_type_daddr_t+set}" = set; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 else
22563   cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h.  */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h.  */
22569 $ac_includes_default
22570 typedef daddr_t ac__type_new_;
22571 int
22572 main ()
22573 {
22574 if ((ac__type_new_ *) 0)
22575   return 0;
22576 if (sizeof (ac__type_new_))
22577   return 0;
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586   *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589   (eval "$ac_compile") 2>conftest.er1
22590   ac_status=$?
22591   grep -v '^ *+' conftest.er1 >conftest.err
22592   rm -f conftest.er1
22593   cat conftest.err >&5
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); } && {
22596          test -z "$ac_c_werror_flag" ||
22597          test ! -s conftest.err
22598        } && test -s conftest.$ac_objext; then
22599   ac_cv_type_daddr_t=yes
22600 else
22601   echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604         ac_cv_type_daddr_t=no
22605 fi
22606
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608 fi
22609 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22610 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22611 if test $ac_cv_type_daddr_t = yes; then
22612   :
22613 else
22614
22615 cat >>confdefs.h <<_ACEOF
22616 #define daddr_t long
22617 _ACEOF
22618
22619 fi
22620
22621 { echo "$as_me:$LINENO: checking for major_t" >&5
22622 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22623 if test "${ac_cv_type_major_t+set}" = set; then
22624   echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626   cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h.  */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h.  */
22632 $ac_includes_default
22633 typedef major_t ac__type_new_;
22634 int
22635 main ()
22636 {
22637 if ((ac__type_new_ *) 0)
22638   return 0;
22639 if (sizeof (ac__type_new_))
22640   return 0;
22641   ;
22642   return 0;
22643 }
22644 _ACEOF
22645 rm -f conftest.$ac_objext
22646 if { (ac_try="$ac_compile"
22647 case "(($ac_try" in
22648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649   *) ac_try_echo=$ac_try;;
22650 esac
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652   (eval "$ac_compile") 2>conftest.er1
22653   ac_status=$?
22654   grep -v '^ *+' conftest.er1 >conftest.err
22655   rm -f conftest.er1
22656   cat conftest.err >&5
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); } && {
22659          test -z "$ac_c_werror_flag" ||
22660          test ! -s conftest.err
22661        } && test -s conftest.$ac_objext; then
22662   ac_cv_type_major_t=yes
22663 else
22664   echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667         ac_cv_type_major_t=no
22668 fi
22669
22670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22671 fi
22672 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22673 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22674 if test $ac_cv_type_major_t = yes; then
22675   :
22676 else
22677
22678 cat >>confdefs.h <<_ACEOF
22679 #define major_t int
22680 _ACEOF
22681
22682 fi
22683
22684 { echo "$as_me:$LINENO: checking for minor_t" >&5
22685 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22686 if test "${ac_cv_type_minor_t+set}" = set; then
22687   echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689   cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h.  */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h.  */
22695 $ac_includes_default
22696 typedef minor_t ac__type_new_;
22697 int
22698 main ()
22699 {
22700 if ((ac__type_new_ *) 0)
22701   return 0;
22702 if (sizeof (ac__type_new_))
22703   return 0;
22704   ;
22705   return 0;
22706 }
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712   *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715   (eval "$ac_compile") 2>conftest.er1
22716   ac_status=$?
22717   grep -v '^ *+' conftest.er1 >conftest.err
22718   rm -f conftest.er1
22719   cat conftest.err >&5
22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); } && {
22722          test -z "$ac_c_werror_flag" ||
22723          test ! -s conftest.err
22724        } && test -s conftest.$ac_objext; then
22725   ac_cv_type_minor_t=yes
22726 else
22727   echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22729
22730         ac_cv_type_minor_t=no
22731 fi
22732
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22734 fi
22735 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22736 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22737 if test $ac_cv_type_minor_t = yes; then
22738   :
22739 else
22740
22741 cat >>confdefs.h <<_ACEOF
22742 #define minor_t int
22743 _ACEOF
22744
22745 fi
22746
22747 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22748 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22749 if test "${ac_cv_type_ssize_t+set}" = set; then
22750   echo $ECHO_N "(cached) $ECHO_C" >&6
22751 else
22752   cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 $ac_includes_default
22759 typedef ssize_t ac__type_new_;
22760 int
22761 main ()
22762 {
22763 if ((ac__type_new_ *) 0)
22764   return 0;
22765 if (sizeof (ac__type_new_))
22766   return 0;
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext
22772 if { (ac_try="$ac_compile"
22773 case "(($ac_try" in
22774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775   *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778   (eval "$ac_compile") 2>conftest.er1
22779   ac_status=$?
22780   grep -v '^ *+' conftest.er1 >conftest.err
22781   rm -f conftest.er1
22782   cat conftest.err >&5
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); } && {
22785          test -z "$ac_c_werror_flag" ||
22786          test ! -s conftest.err
22787        } && test -s conftest.$ac_objext; then
22788   ac_cv_type_ssize_t=yes
22789 else
22790   echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22792
22793         ac_cv_type_ssize_t=no
22794 fi
22795
22796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 fi
22798 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22799 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22800 if test $ac_cv_type_ssize_t = yes; then
22801   :
22802 else
22803
22804 cat >>confdefs.h <<_ACEOF
22805 #define ssize_t int
22806 _ACEOF
22807
22808 fi
22809
22810 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22811 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22812 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22813   echo $ECHO_N "(cached) $ECHO_C" >&6
22814 else
22815   cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h.  */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h.  */
22821 $ac_includes_default
22822 int
22823 main ()
22824 {
22825 static struct stat ac_aggr;
22826 if (ac_aggr.st_blocks)
22827 return 0;
22828   ;
22829   return 0;
22830 }
22831 _ACEOF
22832 rm -f conftest.$ac_objext
22833 if { (ac_try="$ac_compile"
22834 case "(($ac_try" in
22835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836   *) ac_try_echo=$ac_try;;
22837 esac
22838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839   (eval "$ac_compile") 2>conftest.er1
22840   ac_status=$?
22841   grep -v '^ *+' conftest.er1 >conftest.err
22842   rm -f conftest.er1
22843   cat conftest.err >&5
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); } && {
22846          test -z "$ac_c_werror_flag" ||
22847          test ! -s conftest.err
22848        } && test -s conftest.$ac_objext; then
22849   ac_cv_member_struct_stat_st_blocks=yes
22850 else
22851   echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22853
22854         cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h.  */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h.  */
22860 $ac_includes_default
22861 int
22862 main ()
22863 {
22864 static struct stat ac_aggr;
22865 if (sizeof ac_aggr.st_blocks)
22866 return 0;
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875   *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878   (eval "$ac_compile") 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } && {
22885          test -z "$ac_c_werror_flag" ||
22886          test ! -s conftest.err
22887        } && test -s conftest.$ac_objext; then
22888   ac_cv_member_struct_stat_st_blocks=yes
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893         ac_cv_member_struct_stat_st_blocks=no
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 fi
22901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22903 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22904
22905 cat >>confdefs.h <<_ACEOF
22906 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22907 _ACEOF
22908
22909
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_ST_BLOCKS 1
22912 _ACEOF
22913
22914 else
22915   case " $LIBOBJS " in
22916   *" fileblocks.$ac_objext "* ) ;;
22917   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22918  ;;
22919 esac
22920
22921 fi
22922
22923
22924 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22925 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22926 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22927   echo $ECHO_N "(cached) $ECHO_C" >&6
22928 else
22929   cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935 $ac_includes_default
22936 int
22937 main ()
22938 {
22939 static struct stat ac_aggr;
22940 if (ac_aggr.st_rdev)
22941 return 0;
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_compile") 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } && {
22960          test -z "$ac_c_werror_flag" ||
22961          test ! -s conftest.err
22962        } && test -s conftest.$ac_objext; then
22963   ac_cv_member_struct_stat_st_rdev=yes
22964 else
22965   echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968         cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974 $ac_includes_default
22975 int
22976 main ()
22977 {
22978 static struct stat ac_aggr;
22979 if (sizeof ac_aggr.st_rdev)
22980 return 0;
22981   ;
22982   return 0;
22983 }
22984 _ACEOF
22985 rm -f conftest.$ac_objext
22986 if { (ac_try="$ac_compile"
22987 case "(($ac_try" in
22988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989   *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992   (eval "$ac_compile") 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } && {
22999          test -z "$ac_c_werror_flag" ||
23000          test ! -s conftest.err
23001        } && test -s conftest.$ac_objext; then
23002   ac_cv_member_struct_stat_st_rdev=yes
23003 else
23004   echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23006
23007         ac_cv_member_struct_stat_st_rdev=no
23008 fi
23009
23010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23011 fi
23012
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 fi
23015 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23017 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23018
23019 cat >>confdefs.h <<_ACEOF
23020 #define HAVE_STRUCT_STAT_ST_RDEV 1
23021 _ACEOF
23022
23023
23024 cat >>confdefs.h <<\_ACEOF
23025 #define HAVE_ST_RDEV 1
23026 _ACEOF
23027
23028 fi
23029
23030
23031 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23033 if test "${ac_cv_struct_tm+set}" = set; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036   cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h.  */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h.  */
23042 #include <sys/types.h>
23043 #include <time.h>
23044
23045 int
23046 main ()
23047 {
23048 struct tm tm;
23049                                      int *p = &tm.tm_sec;
23050                                      return !p;
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059   *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062   (eval "$ac_compile") 2>conftest.er1
23063   ac_status=$?
23064   grep -v '^ *+' conftest.er1 >conftest.err
23065   rm -f conftest.er1
23066   cat conftest.err >&5
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); } && {
23069          test -z "$ac_c_werror_flag" ||
23070          test ! -s conftest.err
23071        } && test -s conftest.$ac_objext; then
23072   ac_cv_struct_tm=time.h
23073 else
23074   echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077         ac_cv_struct_tm=sys/time.h
23078 fi
23079
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 fi
23082 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23083 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23084 if test $ac_cv_struct_tm = sys/time.h; then
23085
23086 cat >>confdefs.h <<\_ACEOF
23087 #define TM_IN_SYS_TIME 1
23088 _ACEOF
23089
23090 fi
23091
23092 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23094 if test "${ac_cv_c_const+set}" = set; then
23095   echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097   cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h.  */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h.  */
23103
23104 int
23105 main ()
23106 {
23107 /* FIXME: Include the comments suggested by Paul. */
23108 #ifndef __cplusplus
23109   /* Ultrix mips cc rejects this.  */
23110   typedef int charset[2];
23111   const charset cs;
23112   /* SunOS 4.1.1 cc rejects this.  */
23113   char const *const *pcpcc;
23114   char **ppc;
23115   /* NEC SVR4.0.2 mips cc rejects this.  */
23116   struct point {int x, y;};
23117   static struct point const zero = {0,0};
23118   /* AIX XL C 1.02.0.0 rejects this.
23119      It does not let you subtract one const X* pointer from another in
23120      an arm of an if-expression whose if-part is not a constant
23121      expression */
23122   const char *g = "string";
23123   pcpcc = &g + (g ? g-g : 0);
23124   /* HPUX 7.0 cc rejects these. */
23125   ++pcpcc;
23126   ppc = (char**) pcpcc;
23127   pcpcc = (char const *const *) ppc;
23128   { /* SCO 3.2v4 cc rejects this.  */
23129     char *t;
23130     char const *s = 0 ? (char *) 0 : (char const *) 0;
23131
23132     *t++ = 0;
23133     if (s) return 0;
23134   }
23135   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23136     int x[] = {25, 17};
23137     const int *foo = &x[0];
23138     ++foo;
23139   }
23140   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23141     typedef const int *iptr;
23142     iptr p = 0;
23143     ++p;
23144   }
23145   { /* AIX XL C 1.02.0.0 rejects this saying
23146        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23147     struct s { int j; const int *ap[3]; };
23148     struct s *b; b->j = 5;
23149   }
23150   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23151     const int foo = 10;
23152     if (!foo) return 0;
23153   }
23154   return !cs[0] && !zero.x;
23155 #endif
23156
23157   ;
23158   return 0;
23159 }
23160 _ACEOF
23161 rm -f conftest.$ac_objext
23162 if { (ac_try="$ac_compile"
23163 case "(($ac_try" in
23164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165   *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168   (eval "$ac_compile") 2>conftest.er1
23169   ac_status=$?
23170   grep -v '^ *+' conftest.er1 >conftest.err
23171   rm -f conftest.er1
23172   cat conftest.err >&5
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); } && {
23175          test -z "$ac_c_werror_flag" ||
23176          test ! -s conftest.err
23177        } && test -s conftest.$ac_objext; then
23178   ac_cv_c_const=yes
23179 else
23180   echo "$as_me: failed program was:" >&5
23181 sed 's/^/| /' conftest.$ac_ext >&5
23182
23183         ac_cv_c_const=no
23184 fi
23185
23186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23187 fi
23188 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23189 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23190 if test $ac_cv_c_const = no; then
23191
23192 cat >>confdefs.h <<\_ACEOF
23193 #define const
23194 _ACEOF
23195
23196 fi
23197
23198
23199
23200 { echo "$as_me:$LINENO: checking for char" >&5
23201 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23202 if test "${ac_cv_type_char+set}" = set; then
23203   echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205   cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 $ac_includes_default
23212 typedef char ac__type_new_;
23213 int
23214 main ()
23215 {
23216 if ((ac__type_new_ *) 0)
23217   return 0;
23218 if (sizeof (ac__type_new_))
23219   return 0;
23220   ;
23221   return 0;
23222 }
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (ac_try="$ac_compile"
23226 case "(($ac_try" in
23227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228   *) ac_try_echo=$ac_try;;
23229 esac
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231   (eval "$ac_compile") 2>conftest.er1
23232   ac_status=$?
23233   grep -v '^ *+' conftest.er1 >conftest.err
23234   rm -f conftest.er1
23235   cat conftest.err >&5
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); } && {
23238          test -z "$ac_c_werror_flag" ||
23239          test ! -s conftest.err
23240        } && test -s conftest.$ac_objext; then
23241   ac_cv_type_char=yes
23242 else
23243   echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23245
23246         ac_cv_type_char=no
23247 fi
23248
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 fi
23251 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23252 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23253
23254 # The cast to long int works around a bug in the HP C Compiler
23255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23257 # This bug is HP SR number 8606223364.
23258 { echo "$as_me:$LINENO: checking size of char" >&5
23259 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23260 if test "${ac_cv_sizeof_char+set}" = set; then
23261   echo $ECHO_N "(cached) $ECHO_C" >&6
23262 else
23263   if test "$cross_compiling" = yes; then
23264   # Depending upon the size, compute the lo and hi bounds.
23265 cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271 $ac_includes_default
23272    typedef char ac__type_sizeof_;
23273 int
23274 main ()
23275 {
23276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23277 test_array [0] = 0
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290   (eval "$ac_compile") 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } && {
23297          test -z "$ac_c_werror_flag" ||
23298          test ! -s conftest.err
23299        } && test -s conftest.$ac_objext; then
23300   ac_lo=0 ac_mid=0
23301   while :; do
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    typedef char ac__type_sizeof_;
23310 int
23311 main ()
23312 {
23313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23314 test_array [0] = 0
23315
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324   *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327   (eval "$ac_compile") 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } && {
23334          test -z "$ac_c_werror_flag" ||
23335          test ! -s conftest.err
23336        } && test -s conftest.$ac_objext; then
23337   ac_hi=$ac_mid; break
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342         ac_lo=`expr $ac_mid + 1`
23343                         if test $ac_lo -le $ac_mid; then
23344                           ac_lo= ac_hi=
23345                           break
23346                         fi
23347                         ac_mid=`expr 2 '*' $ac_mid + 1`
23348 fi
23349
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351   done
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356         cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h.  */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h.  */
23362 $ac_includes_default
23363    typedef char ac__type_sizeof_;
23364 int
23365 main ()
23366 {
23367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23368 test_array [0] = 0
23369
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 rm -f conftest.$ac_objext
23375 if { (ac_try="$ac_compile"
23376 case "(($ac_try" in
23377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378   *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381   (eval "$ac_compile") 2>conftest.er1
23382   ac_status=$?
23383   grep -v '^ *+' conftest.er1 >conftest.err
23384   rm -f conftest.er1
23385   cat conftest.err >&5
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); } && {
23388          test -z "$ac_c_werror_flag" ||
23389          test ! -s conftest.err
23390        } && test -s conftest.$ac_objext; then
23391   ac_hi=-1 ac_mid=-1
23392   while :; do
23393     cat >conftest.$ac_ext <<_ACEOF
23394 /* confdefs.h.  */
23395 _ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h.  */
23399 $ac_includes_default
23400    typedef char ac__type_sizeof_;
23401 int
23402 main ()
23403 {
23404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23405 test_array [0] = 0
23406
23407   ;
23408   return 0;
23409 }
23410 _ACEOF
23411 rm -f conftest.$ac_objext
23412 if { (ac_try="$ac_compile"
23413 case "(($ac_try" in
23414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415   *) ac_try_echo=$ac_try;;
23416 esac
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418   (eval "$ac_compile") 2>conftest.er1
23419   ac_status=$?
23420   grep -v '^ *+' conftest.er1 >conftest.err
23421   rm -f conftest.er1
23422   cat conftest.err >&5
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); } && {
23425          test -z "$ac_c_werror_flag" ||
23426          test ! -s conftest.err
23427        } && test -s conftest.$ac_objext; then
23428   ac_lo=$ac_mid; break
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433         ac_hi=`expr '(' $ac_mid ')' - 1`
23434                         if test $ac_mid -le $ac_hi; then
23435                           ac_lo= ac_hi=
23436                           break
23437                         fi
23438                         ac_mid=`expr 2 '*' $ac_mid`
23439 fi
23440
23441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23442   done
23443 else
23444   echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23446
23447         ac_lo= ac_hi=
23448 fi
23449
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23451 fi
23452
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 # Binary search between lo and hi bounds.
23455 while test "x$ac_lo" != "x$ac_hi"; do
23456   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23457   cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h.  */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h.  */
23463 $ac_includes_default
23464    typedef char ac__type_sizeof_;
23465 int
23466 main ()
23467 {
23468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23469 test_array [0] = 0
23470
23471   ;
23472   return 0;
23473 }
23474 _ACEOF
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479   *) ac_try_echo=$ac_try;;
23480 esac
23481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23482   (eval "$ac_compile") 2>conftest.er1
23483   ac_status=$?
23484   grep -v '^ *+' conftest.er1 >conftest.err
23485   rm -f conftest.er1
23486   cat conftest.err >&5
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); } && {
23489          test -z "$ac_c_werror_flag" ||
23490          test ! -s conftest.err
23491        } && test -s conftest.$ac_objext; then
23492   ac_hi=$ac_mid
23493 else
23494   echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23496
23497         ac_lo=`expr '(' $ac_mid ')' + 1`
23498 fi
23499
23500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23501 done
23502 case $ac_lo in
23503 ?*) ac_cv_sizeof_char=$ac_lo;;
23504 '') if test "$ac_cv_type_char" = yes; then
23505      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23506 See \`config.log' for more details." >&5
23507 echo "$as_me: error: cannot compute sizeof (char)
23508 See \`config.log' for more details." >&2;}
23509    { (exit 77); exit 77; }; }
23510    else
23511      ac_cv_sizeof_char=0
23512    fi ;;
23513 esac
23514 else
23515   cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h.  */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h.  */
23521 $ac_includes_default
23522    typedef char ac__type_sizeof_;
23523 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23524 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23525 #include <stdio.h>
23526 #include <stdlib.h>
23527 int
23528 main ()
23529 {
23530
23531   FILE *f = fopen ("conftest.val", "w");
23532   if (! f)
23533     return 1;
23534   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23535     {
23536       long int i = longval ();
23537       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23538         return 1;
23539       fprintf (f, "%ld\n", i);
23540     }
23541   else
23542     {
23543       unsigned long int i = ulongval ();
23544       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23545         return 1;
23546       fprintf (f, "%lu\n", i);
23547     }
23548   return ferror (f) || fclose (f) != 0;
23549
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558   *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561   (eval "$ac_link") 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23565   { (case "(($ac_try" in
23566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567   *) ac_try_echo=$ac_try;;
23568 esac
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570   (eval "$ac_try") 2>&5
23571   ac_status=$?
23572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573   (exit $ac_status); }; }; then
23574   ac_cv_sizeof_char=`cat conftest.val`
23575 else
23576   echo "$as_me: program exited with status $ac_status" >&5
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23579
23580 ( exit $ac_status )
23581 if test "$ac_cv_type_char" = yes; then
23582      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23583 See \`config.log' for more details." >&5
23584 echo "$as_me: error: cannot compute sizeof (char)
23585 See \`config.log' for more details." >&2;}
23586    { (exit 77); exit 77; }; }
23587    else
23588      ac_cv_sizeof_char=0
23589    fi
23590 fi
23591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23592 fi
23593 rm -f conftest.val
23594 fi
23595 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23596 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23597
23598
23599
23600 cat >>confdefs.h <<_ACEOF
23601 #define SIZEOF_CHAR $ac_cv_sizeof_char
23602 _ACEOF
23603
23604
23605 { echo "$as_me:$LINENO: checking for short int" >&5
23606 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23607 if test "${ac_cv_type_short_int+set}" = set; then
23608   echo $ECHO_N "(cached) $ECHO_C" >&6
23609 else
23610   cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616 $ac_includes_default
23617 typedef short int ac__type_new_;
23618 int
23619 main ()
23620 {
23621 if ((ac__type_new_ *) 0)
23622   return 0;
23623 if (sizeof (ac__type_new_))
23624   return 0;
23625   ;
23626   return 0;
23627 }
23628 _ACEOF
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633   *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636   (eval "$ac_compile") 2>conftest.er1
23637   ac_status=$?
23638   grep -v '^ *+' conftest.er1 >conftest.err
23639   rm -f conftest.er1
23640   cat conftest.err >&5
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); } && {
23643          test -z "$ac_c_werror_flag" ||
23644          test ! -s conftest.err
23645        } && test -s conftest.$ac_objext; then
23646   ac_cv_type_short_int=yes
23647 else
23648   echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651         ac_cv_type_short_int=no
23652 fi
23653
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655 fi
23656 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23657 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23658
23659 # The cast to long int works around a bug in the HP C Compiler
23660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23662 # This bug is HP SR number 8606223364.
23663 { echo "$as_me:$LINENO: checking size of short int" >&5
23664 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23665 if test "${ac_cv_sizeof_short_int+set}" = set; then
23666   echo $ECHO_N "(cached) $ECHO_C" >&6
23667 else
23668   if test "$cross_compiling" = yes; then
23669   # Depending upon the size, compute the lo and hi bounds.
23670 cat >conftest.$ac_ext <<_ACEOF
23671 /* confdefs.h.  */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h.  */
23676 $ac_includes_default
23677    typedef short int ac__type_sizeof_;
23678 int
23679 main ()
23680 {
23681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23682 test_array [0] = 0
23683
23684   ;
23685   return 0;
23686 }
23687 _ACEOF
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
23690 case "(($ac_try" in
23691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692   *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695   (eval "$ac_compile") 2>conftest.er1
23696   ac_status=$?
23697   grep -v '^ *+' conftest.er1 >conftest.err
23698   rm -f conftest.er1
23699   cat conftest.err >&5
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); } && {
23702          test -z "$ac_c_werror_flag" ||
23703          test ! -s conftest.err
23704        } && test -s conftest.$ac_objext; then
23705   ac_lo=0 ac_mid=0
23706   while :; do
23707     cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713 $ac_includes_default
23714    typedef short int ac__type_sizeof_;
23715 int
23716 main ()
23717 {
23718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23719 test_array [0] = 0
23720
23721   ;
23722   return 0;
23723 }
23724 _ACEOF
23725 rm -f conftest.$ac_objext
23726 if { (ac_try="$ac_compile"
23727 case "(($ac_try" in
23728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729   *) ac_try_echo=$ac_try;;
23730 esac
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732   (eval "$ac_compile") 2>conftest.er1
23733   ac_status=$?
23734   grep -v '^ *+' conftest.er1 >conftest.err
23735   rm -f conftest.er1
23736   cat conftest.err >&5
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); } && {
23739          test -z "$ac_c_werror_flag" ||
23740          test ! -s conftest.err
23741        } && test -s conftest.$ac_objext; then
23742   ac_hi=$ac_mid; break
23743 else
23744   echo "$as_me: failed program was:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23746
23747         ac_lo=`expr $ac_mid + 1`
23748                         if test $ac_lo -le $ac_mid; then
23749                           ac_lo= ac_hi=
23750                           break
23751                         fi
23752                         ac_mid=`expr 2 '*' $ac_mid + 1`
23753 fi
23754
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756   done
23757 else
23758   echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761         cat >conftest.$ac_ext <<_ACEOF
23762 /* confdefs.h.  */
23763 _ACEOF
23764 cat confdefs.h >>conftest.$ac_ext
23765 cat >>conftest.$ac_ext <<_ACEOF
23766 /* end confdefs.h.  */
23767 $ac_includes_default
23768    typedef short int ac__type_sizeof_;
23769 int
23770 main ()
23771 {
23772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23773 test_array [0] = 0
23774
23775   ;
23776   return 0;
23777 }
23778 _ACEOF
23779 rm -f conftest.$ac_objext
23780 if { (ac_try="$ac_compile"
23781 case "(($ac_try" in
23782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783   *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786   (eval "$ac_compile") 2>conftest.er1
23787   ac_status=$?
23788   grep -v '^ *+' conftest.er1 >conftest.err
23789   rm -f conftest.er1
23790   cat conftest.err >&5
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); } && {
23793          test -z "$ac_c_werror_flag" ||
23794          test ! -s conftest.err
23795        } && test -s conftest.$ac_objext; then
23796   ac_hi=-1 ac_mid=-1
23797   while :; do
23798     cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h.  */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h.  */
23804 $ac_includes_default
23805    typedef short int ac__type_sizeof_;
23806 int
23807 main ()
23808 {
23809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23810 test_array [0] = 0
23811
23812   ;
23813   return 0;
23814 }
23815 _ACEOF
23816 rm -f conftest.$ac_objext
23817 if { (ac_try="$ac_compile"
23818 case "(($ac_try" in
23819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820   *) ac_try_echo=$ac_try;;
23821 esac
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823   (eval "$ac_compile") 2>conftest.er1
23824   ac_status=$?
23825   grep -v '^ *+' conftest.er1 >conftest.err
23826   rm -f conftest.er1
23827   cat conftest.err >&5
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); } && {
23830          test -z "$ac_c_werror_flag" ||
23831          test ! -s conftest.err
23832        } && test -s conftest.$ac_objext; then
23833   ac_lo=$ac_mid; break
23834 else
23835   echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23837
23838         ac_hi=`expr '(' $ac_mid ')' - 1`
23839                         if test $ac_mid -le $ac_hi; then
23840                           ac_lo= ac_hi=
23841                           break
23842                         fi
23843                         ac_mid=`expr 2 '*' $ac_mid`
23844 fi
23845
23846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23847   done
23848 else
23849   echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852         ac_lo= ac_hi=
23853 fi
23854
23855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23856 fi
23857
23858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23859 # Binary search between lo and hi bounds.
23860 while test "x$ac_lo" != "x$ac_hi"; do
23861   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23862   cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h.  */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h.  */
23868 $ac_includes_default
23869    typedef short int ac__type_sizeof_;
23870 int
23871 main ()
23872 {
23873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23874 test_array [0] = 0
23875
23876   ;
23877   return 0;
23878 }
23879 _ACEOF
23880 rm -f conftest.$ac_objext
23881 if { (ac_try="$ac_compile"
23882 case "(($ac_try" in
23883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884   *) ac_try_echo=$ac_try;;
23885 esac
23886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887   (eval "$ac_compile") 2>conftest.er1
23888   ac_status=$?
23889   grep -v '^ *+' conftest.er1 >conftest.err
23890   rm -f conftest.er1
23891   cat conftest.err >&5
23892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893   (exit $ac_status); } && {
23894          test -z "$ac_c_werror_flag" ||
23895          test ! -s conftest.err
23896        } && test -s conftest.$ac_objext; then
23897   ac_hi=$ac_mid
23898 else
23899   echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23901
23902         ac_lo=`expr '(' $ac_mid ')' + 1`
23903 fi
23904
23905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 done
23907 case $ac_lo in
23908 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23909 '') if test "$ac_cv_type_short_int" = yes; then
23910      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23911 See \`config.log' for more details." >&5
23912 echo "$as_me: error: cannot compute sizeof (short int)
23913 See \`config.log' for more details." >&2;}
23914    { (exit 77); exit 77; }; }
23915    else
23916      ac_cv_sizeof_short_int=0
23917    fi ;;
23918 esac
23919 else
23920   cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h.  */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h.  */
23926 $ac_includes_default
23927    typedef short int ac__type_sizeof_;
23928 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23929 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23930 #include <stdio.h>
23931 #include <stdlib.h>
23932 int
23933 main ()
23934 {
23935
23936   FILE *f = fopen ("conftest.val", "w");
23937   if (! f)
23938     return 1;
23939   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23940     {
23941       long int i = longval ();
23942       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23943         return 1;
23944       fprintf (f, "%ld\n", i);
23945     }
23946   else
23947     {
23948       unsigned long int i = ulongval ();
23949       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23950         return 1;
23951       fprintf (f, "%lu\n", i);
23952     }
23953   return ferror (f) || fclose (f) != 0;
23954
23955   ;
23956   return 0;
23957 }
23958 _ACEOF
23959 rm -f conftest$ac_exeext
23960 if { (ac_try="$ac_link"
23961 case "(($ac_try" in
23962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963   *) ac_try_echo=$ac_try;;
23964 esac
23965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23966   (eval "$ac_link") 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23970   { (case "(($ac_try" in
23971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972   *) ac_try_echo=$ac_try;;
23973 esac
23974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23975   (eval "$ac_try") 2>&5
23976   ac_status=$?
23977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); }; }; then
23979   ac_cv_sizeof_short_int=`cat conftest.val`
23980 else
23981   echo "$as_me: program exited with status $ac_status" >&5
23982 echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23984
23985 ( exit $ac_status )
23986 if test "$ac_cv_type_short_int" = yes; then
23987      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23988 See \`config.log' for more details." >&5
23989 echo "$as_me: error: cannot compute sizeof (short int)
23990 See \`config.log' for more details." >&2;}
23991    { (exit 77); exit 77; }; }
23992    else
23993      ac_cv_sizeof_short_int=0
23994    fi
23995 fi
23996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23997 fi
23998 rm -f conftest.val
23999 fi
24000 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24001 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24002
24003
24004
24005 cat >>confdefs.h <<_ACEOF
24006 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24007 _ACEOF
24008
24009
24010 { echo "$as_me:$LINENO: checking for int" >&5
24011 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24012 if test "${ac_cv_type_int+set}" = set; then
24013   echo $ECHO_N "(cached) $ECHO_C" >&6
24014 else
24015   cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021 $ac_includes_default
24022 typedef int ac__type_new_;
24023 int
24024 main ()
24025 {
24026 if ((ac__type_new_ *) 0)
24027   return 0;
24028 if (sizeof (ac__type_new_))
24029   return 0;
24030   ;
24031   return 0;
24032 }
24033 _ACEOF
24034 rm -f conftest.$ac_objext
24035 if { (ac_try="$ac_compile"
24036 case "(($ac_try" in
24037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038   *) ac_try_echo=$ac_try;;
24039 esac
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041   (eval "$ac_compile") 2>conftest.er1
24042   ac_status=$?
24043   grep -v '^ *+' conftest.er1 >conftest.err
24044   rm -f conftest.er1
24045   cat conftest.err >&5
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); } && {
24048          test -z "$ac_c_werror_flag" ||
24049          test ! -s conftest.err
24050        } && test -s conftest.$ac_objext; then
24051   ac_cv_type_int=yes
24052 else
24053   echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24055
24056         ac_cv_type_int=no
24057 fi
24058
24059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24060 fi
24061 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24062 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24063
24064 # The cast to long int works around a bug in the HP C Compiler
24065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24067 # This bug is HP SR number 8606223364.
24068 { echo "$as_me:$LINENO: checking size of int" >&5
24069 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24070 if test "${ac_cv_sizeof_int+set}" = set; then
24071   echo $ECHO_N "(cached) $ECHO_C" >&6
24072 else
24073   if test "$cross_compiling" = yes; then
24074   # Depending upon the size, compute the lo and hi bounds.
24075 cat >conftest.$ac_ext <<_ACEOF
24076 /* confdefs.h.  */
24077 _ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h.  */
24081 $ac_includes_default
24082    typedef int ac__type_sizeof_;
24083 int
24084 main ()
24085 {
24086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24087 test_array [0] = 0
24088
24089   ;
24090   return 0;
24091 }
24092 _ACEOF
24093 rm -f conftest.$ac_objext
24094 if { (ac_try="$ac_compile"
24095 case "(($ac_try" in
24096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097   *) ac_try_echo=$ac_try;;
24098 esac
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100   (eval "$ac_compile") 2>conftest.er1
24101   ac_status=$?
24102   grep -v '^ *+' conftest.er1 >conftest.err
24103   rm -f conftest.er1
24104   cat conftest.err >&5
24105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106   (exit $ac_status); } && {
24107          test -z "$ac_c_werror_flag" ||
24108          test ! -s conftest.err
24109        } && test -s conftest.$ac_objext; then
24110   ac_lo=0 ac_mid=0
24111   while :; do
24112     cat >conftest.$ac_ext <<_ACEOF
24113 /* confdefs.h.  */
24114 _ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h.  */
24118 $ac_includes_default
24119    typedef int ac__type_sizeof_;
24120 int
24121 main ()
24122 {
24123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24124 test_array [0] = 0
24125
24126   ;
24127   return 0;
24128 }
24129 _ACEOF
24130 rm -f conftest.$ac_objext
24131 if { (ac_try="$ac_compile"
24132 case "(($ac_try" in
24133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134   *) ac_try_echo=$ac_try;;
24135 esac
24136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137   (eval "$ac_compile") 2>conftest.er1
24138   ac_status=$?
24139   grep -v '^ *+' conftest.er1 >conftest.err
24140   rm -f conftest.er1
24141   cat conftest.err >&5
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); } && {
24144          test -z "$ac_c_werror_flag" ||
24145          test ! -s conftest.err
24146        } && test -s conftest.$ac_objext; then
24147   ac_hi=$ac_mid; break
24148 else
24149   echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24151
24152         ac_lo=`expr $ac_mid + 1`
24153                         if test $ac_lo -le $ac_mid; then
24154                           ac_lo= ac_hi=
24155                           break
24156                         fi
24157                         ac_mid=`expr 2 '*' $ac_mid + 1`
24158 fi
24159
24160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24161   done
24162 else
24163   echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24165
24166         cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h.  */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h.  */
24172 $ac_includes_default
24173    typedef int ac__type_sizeof_;
24174 int
24175 main ()
24176 {
24177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24178 test_array [0] = 0
24179
24180   ;
24181   return 0;
24182 }
24183 _ACEOF
24184 rm -f conftest.$ac_objext
24185 if { (ac_try="$ac_compile"
24186 case "(($ac_try" in
24187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188   *) ac_try_echo=$ac_try;;
24189 esac
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191   (eval "$ac_compile") 2>conftest.er1
24192   ac_status=$?
24193   grep -v '^ *+' conftest.er1 >conftest.err
24194   rm -f conftest.er1
24195   cat conftest.err >&5
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); } && {
24198          test -z "$ac_c_werror_flag" ||
24199          test ! -s conftest.err
24200        } && test -s conftest.$ac_objext; then
24201   ac_hi=-1 ac_mid=-1
24202   while :; do
24203     cat >conftest.$ac_ext <<_ACEOF
24204 /* confdefs.h.  */
24205 _ACEOF
24206 cat confdefs.h >>conftest.$ac_ext
24207 cat >>conftest.$ac_ext <<_ACEOF
24208 /* end confdefs.h.  */
24209 $ac_includes_default
24210    typedef int ac__type_sizeof_;
24211 int
24212 main ()
24213 {
24214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24215 test_array [0] = 0
24216
24217   ;
24218   return 0;
24219 }
24220 _ACEOF
24221 rm -f conftest.$ac_objext
24222 if { (ac_try="$ac_compile"
24223 case "(($ac_try" in
24224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225   *) ac_try_echo=$ac_try;;
24226 esac
24227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24228   (eval "$ac_compile") 2>conftest.er1
24229   ac_status=$?
24230   grep -v '^ *+' conftest.er1 >conftest.err
24231   rm -f conftest.er1
24232   cat conftest.err >&5
24233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234   (exit $ac_status); } && {
24235          test -z "$ac_c_werror_flag" ||
24236          test ! -s conftest.err
24237        } && test -s conftest.$ac_objext; then
24238   ac_lo=$ac_mid; break
24239 else
24240   echo "$as_me: failed program was:" >&5
24241 sed 's/^/| /' conftest.$ac_ext >&5
24242
24243         ac_hi=`expr '(' $ac_mid ')' - 1`
24244                         if test $ac_mid -le $ac_hi; then
24245                           ac_lo= ac_hi=
24246                           break
24247                         fi
24248                         ac_mid=`expr 2 '*' $ac_mid`
24249 fi
24250
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24252   done
24253 else
24254   echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24256
24257         ac_lo= ac_hi=
24258 fi
24259
24260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24261 fi
24262
24263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24264 # Binary search between lo and hi bounds.
24265 while test "x$ac_lo" != "x$ac_hi"; do
24266   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24267   cat >conftest.$ac_ext <<_ACEOF
24268 /* confdefs.h.  */
24269 _ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h.  */
24273 $ac_includes_default
24274    typedef int ac__type_sizeof_;
24275 int
24276 main ()
24277 {
24278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24279 test_array [0] = 0
24280
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 rm -f conftest.$ac_objext
24286 if { (ac_try="$ac_compile"
24287 case "(($ac_try" in
24288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289   *) ac_try_echo=$ac_try;;
24290 esac
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292   (eval "$ac_compile") 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } && {
24299          test -z "$ac_c_werror_flag" ||
24300          test ! -s conftest.err
24301        } && test -s conftest.$ac_objext; then
24302   ac_hi=$ac_mid
24303 else
24304   echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24306
24307         ac_lo=`expr '(' $ac_mid ')' + 1`
24308 fi
24309
24310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311 done
24312 case $ac_lo in
24313 ?*) ac_cv_sizeof_int=$ac_lo;;
24314 '') if test "$ac_cv_type_int" = yes; then
24315      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24316 See \`config.log' for more details." >&5
24317 echo "$as_me: error: cannot compute sizeof (int)
24318 See \`config.log' for more details." >&2;}
24319    { (exit 77); exit 77; }; }
24320    else
24321      ac_cv_sizeof_int=0
24322    fi ;;
24323 esac
24324 else
24325   cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331 $ac_includes_default
24332    typedef int ac__type_sizeof_;
24333 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24334 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24335 #include <stdio.h>
24336 #include <stdlib.h>
24337 int
24338 main ()
24339 {
24340
24341   FILE *f = fopen ("conftest.val", "w");
24342   if (! f)
24343     return 1;
24344   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24345     {
24346       long int i = longval ();
24347       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24348         return 1;
24349       fprintf (f, "%ld\n", i);
24350     }
24351   else
24352     {
24353       unsigned long int i = ulongval ();
24354       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24355         return 1;
24356       fprintf (f, "%lu\n", i);
24357     }
24358   return ferror (f) || fclose (f) != 0;
24359
24360   ;
24361   return 0;
24362 }
24363 _ACEOF
24364 rm -f conftest$ac_exeext
24365 if { (ac_try="$ac_link"
24366 case "(($ac_try" in
24367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368   *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371   (eval "$ac_link") 2>&5
24372   ac_status=$?
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24375   { (case "(($ac_try" in
24376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377   *) ac_try_echo=$ac_try;;
24378 esac
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380   (eval "$ac_try") 2>&5
24381   ac_status=$?
24382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383   (exit $ac_status); }; }; then
24384   ac_cv_sizeof_int=`cat conftest.val`
24385 else
24386   echo "$as_me: program exited with status $ac_status" >&5
24387 echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24389
24390 ( exit $ac_status )
24391 if test "$ac_cv_type_int" = yes; then
24392      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24393 See \`config.log' for more details." >&5
24394 echo "$as_me: error: cannot compute sizeof (int)
24395 See \`config.log' for more details." >&2;}
24396    { (exit 77); exit 77; }; }
24397    else
24398      ac_cv_sizeof_int=0
24399    fi
24400 fi
24401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24402 fi
24403 rm -f conftest.val
24404 fi
24405 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24406 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24407
24408
24409
24410 cat >>confdefs.h <<_ACEOF
24411 #define SIZEOF_INT $ac_cv_sizeof_int
24412 _ACEOF
24413
24414
24415 { echo "$as_me:$LINENO: checking for long int" >&5
24416 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24417 if test "${ac_cv_type_long_int+set}" = set; then
24418   echo $ECHO_N "(cached) $ECHO_C" >&6
24419 else
24420   cat >conftest.$ac_ext <<_ACEOF
24421 /* confdefs.h.  */
24422 _ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h.  */
24426 $ac_includes_default
24427 typedef long int ac__type_new_;
24428 int
24429 main ()
24430 {
24431 if ((ac__type_new_ *) 0)
24432   return 0;
24433 if (sizeof (ac__type_new_))
24434   return 0;
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_compile") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_c_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest.$ac_objext; then
24456   ac_cv_type_long_int=yes
24457 else
24458   echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461         ac_cv_type_long_int=no
24462 fi
24463
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465 fi
24466 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24467 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24468
24469 # The cast to long int works around a bug in the HP C Compiler
24470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24472 # This bug is HP SR number 8606223364.
24473 { echo "$as_me:$LINENO: checking size of long int" >&5
24474 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24475 if test "${ac_cv_sizeof_long_int+set}" = set; then
24476   echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478   if test "$cross_compiling" = yes; then
24479   # Depending upon the size, compute the lo and hi bounds.
24480 cat >conftest.$ac_ext <<_ACEOF
24481 /* confdefs.h.  */
24482 _ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h.  */
24486 $ac_includes_default
24487    typedef long int ac__type_sizeof_;
24488 int
24489 main ()
24490 {
24491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24492 test_array [0] = 0
24493
24494   ;
24495   return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext
24499 if { (ac_try="$ac_compile"
24500 case "(($ac_try" in
24501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502   *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505   (eval "$ac_compile") 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } && {
24512          test -z "$ac_c_werror_flag" ||
24513          test ! -s conftest.err
24514        } && test -s conftest.$ac_objext; then
24515   ac_lo=0 ac_mid=0
24516   while :; do
24517     cat >conftest.$ac_ext <<_ACEOF
24518 /* confdefs.h.  */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h.  */
24523 $ac_includes_default
24524    typedef long int ac__type_sizeof_;
24525 int
24526 main ()
24527 {
24528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24529 test_array [0] = 0
24530
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 rm -f conftest.$ac_objext
24536 if { (ac_try="$ac_compile"
24537 case "(($ac_try" in
24538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539   *) ac_try_echo=$ac_try;;
24540 esac
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542   (eval "$ac_compile") 2>conftest.er1
24543   ac_status=$?
24544   grep -v '^ *+' conftest.er1 >conftest.err
24545   rm -f conftest.er1
24546   cat conftest.err >&5
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); } && {
24549          test -z "$ac_c_werror_flag" ||
24550          test ! -s conftest.err
24551        } && test -s conftest.$ac_objext; then
24552   ac_hi=$ac_mid; break
24553 else
24554   echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24556
24557         ac_lo=`expr $ac_mid + 1`
24558                         if test $ac_lo -le $ac_mid; then
24559                           ac_lo= ac_hi=
24560                           break
24561                         fi
24562                         ac_mid=`expr 2 '*' $ac_mid + 1`
24563 fi
24564
24565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24566   done
24567 else
24568   echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24570
24571         cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h.  */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h.  */
24577 $ac_includes_default
24578    typedef long int ac__type_sizeof_;
24579 int
24580 main ()
24581 {
24582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24583 test_array [0] = 0
24584
24585   ;
24586   return 0;
24587 }
24588 _ACEOF
24589 rm -f conftest.$ac_objext
24590 if { (ac_try="$ac_compile"
24591 case "(($ac_try" in
24592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593   *) ac_try_echo=$ac_try;;
24594 esac
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596   (eval "$ac_compile") 2>conftest.er1
24597   ac_status=$?
24598   grep -v '^ *+' conftest.er1 >conftest.err
24599   rm -f conftest.er1
24600   cat conftest.err >&5
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); } && {
24603          test -z "$ac_c_werror_flag" ||
24604          test ! -s conftest.err
24605        } && test -s conftest.$ac_objext; then
24606   ac_hi=-1 ac_mid=-1
24607   while :; do
24608     cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h.  */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h.  */
24614 $ac_includes_default
24615    typedef long int ac__type_sizeof_;
24616 int
24617 main ()
24618 {
24619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24620 test_array [0] = 0
24621
24622   ;
24623   return 0;
24624 }
24625 _ACEOF
24626 rm -f conftest.$ac_objext
24627 if { (ac_try="$ac_compile"
24628 case "(($ac_try" in
24629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630   *) ac_try_echo=$ac_try;;
24631 esac
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633   (eval "$ac_compile") 2>conftest.er1
24634   ac_status=$?
24635   grep -v '^ *+' conftest.er1 >conftest.err
24636   rm -f conftest.er1
24637   cat conftest.err >&5
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); } && {
24640          test -z "$ac_c_werror_flag" ||
24641          test ! -s conftest.err
24642        } && test -s conftest.$ac_objext; then
24643   ac_lo=$ac_mid; break
24644 else
24645   echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24647
24648         ac_hi=`expr '(' $ac_mid ')' - 1`
24649                         if test $ac_mid -le $ac_hi; then
24650                           ac_lo= ac_hi=
24651                           break
24652                         fi
24653                         ac_mid=`expr 2 '*' $ac_mid`
24654 fi
24655
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657   done
24658 else
24659   echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662         ac_lo= ac_hi=
24663 fi
24664
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 fi
24667
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 # Binary search between lo and hi bounds.
24670 while test "x$ac_lo" != "x$ac_hi"; do
24671   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24672   cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h.  */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h.  */
24678 $ac_includes_default
24679    typedef long int ac__type_sizeof_;
24680 int
24681 main ()
24682 {
24683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24684 test_array [0] = 0
24685
24686   ;
24687   return 0;
24688 }
24689 _ACEOF
24690 rm -f conftest.$ac_objext
24691 if { (ac_try="$ac_compile"
24692 case "(($ac_try" in
24693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694   *) ac_try_echo=$ac_try;;
24695 esac
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697   (eval "$ac_compile") 2>conftest.er1
24698   ac_status=$?
24699   grep -v '^ *+' conftest.er1 >conftest.err
24700   rm -f conftest.er1
24701   cat conftest.err >&5
24702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703   (exit $ac_status); } && {
24704          test -z "$ac_c_werror_flag" ||
24705          test ! -s conftest.err
24706        } && test -s conftest.$ac_objext; then
24707   ac_hi=$ac_mid
24708 else
24709   echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24711
24712         ac_lo=`expr '(' $ac_mid ')' + 1`
24713 fi
24714
24715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24716 done
24717 case $ac_lo in
24718 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24719 '') if test "$ac_cv_type_long_int" = yes; then
24720      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24721 See \`config.log' for more details." >&5
24722 echo "$as_me: error: cannot compute sizeof (long int)
24723 See \`config.log' for more details." >&2;}
24724    { (exit 77); exit 77; }; }
24725    else
24726      ac_cv_sizeof_long_int=0
24727    fi ;;
24728 esac
24729 else
24730   cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 $ac_includes_default
24737    typedef long int ac__type_sizeof_;
24738 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24739 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24740 #include <stdio.h>
24741 #include <stdlib.h>
24742 int
24743 main ()
24744 {
24745
24746   FILE *f = fopen ("conftest.val", "w");
24747   if (! f)
24748     return 1;
24749   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24750     {
24751       long int i = longval ();
24752       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24753         return 1;
24754       fprintf (f, "%ld\n", i);
24755     }
24756   else
24757     {
24758       unsigned long int i = ulongval ();
24759       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24760         return 1;
24761       fprintf (f, "%lu\n", i);
24762     }
24763   return ferror (f) || fclose (f) != 0;
24764
24765   ;
24766   return 0;
24767 }
24768 _ACEOF
24769 rm -f conftest$ac_exeext
24770 if { (ac_try="$ac_link"
24771 case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_link") 2>&5
24777   ac_status=$?
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24780   { (case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785   (eval "$ac_try") 2>&5
24786   ac_status=$?
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); }; }; then
24789   ac_cv_sizeof_long_int=`cat conftest.val`
24790 else
24791   echo "$as_me: program exited with status $ac_status" >&5
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795 ( exit $ac_status )
24796 if test "$ac_cv_type_long_int" = yes; then
24797      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24798 See \`config.log' for more details." >&5
24799 echo "$as_me: error: cannot compute sizeof (long int)
24800 See \`config.log' for more details." >&2;}
24801    { (exit 77); exit 77; }; }
24802    else
24803      ac_cv_sizeof_long_int=0
24804    fi
24805 fi
24806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24807 fi
24808 rm -f conftest.val
24809 fi
24810 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24811 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24812
24813
24814
24815 cat >>confdefs.h <<_ACEOF
24816 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24817 _ACEOF
24818
24819
24820 { echo "$as_me:$LINENO: checking for long long int" >&5
24821 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24822 if test "${ac_cv_type_long_long_int+set}" = set; then
24823   echo $ECHO_N "(cached) $ECHO_C" >&6
24824 else
24825   cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831 $ac_includes_default
24832 typedef long long int ac__type_new_;
24833 int
24834 main ()
24835 {
24836 if ((ac__type_new_ *) 0)
24837   return 0;
24838 if (sizeof (ac__type_new_))
24839   return 0;
24840   ;
24841   return 0;
24842 }
24843 _ACEOF
24844 rm -f conftest.$ac_objext
24845 if { (ac_try="$ac_compile"
24846 case "(($ac_try" in
24847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848   *) ac_try_echo=$ac_try;;
24849 esac
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851   (eval "$ac_compile") 2>conftest.er1
24852   ac_status=$?
24853   grep -v '^ *+' conftest.er1 >conftest.err
24854   rm -f conftest.er1
24855   cat conftest.err >&5
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); } && {
24858          test -z "$ac_c_werror_flag" ||
24859          test ! -s conftest.err
24860        } && test -s conftest.$ac_objext; then
24861   ac_cv_type_long_long_int=yes
24862 else
24863   echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866         ac_cv_type_long_long_int=no
24867 fi
24868
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870 fi
24871 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24872 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24873
24874 # The cast to long int works around a bug in the HP C Compiler
24875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24877 # This bug is HP SR number 8606223364.
24878 { echo "$as_me:$LINENO: checking size of long long int" >&5
24879 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24880 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24881   echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883   if test "$cross_compiling" = yes; then
24884   # Depending upon the size, compute the lo and hi bounds.
24885 cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891 $ac_includes_default
24892    typedef long long int ac__type_sizeof_;
24893 int
24894 main ()
24895 {
24896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24897 test_array [0] = 0
24898
24899   ;
24900   return 0;
24901 }
24902 _ACEOF
24903 rm -f conftest.$ac_objext
24904 if { (ac_try="$ac_compile"
24905 case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910   (eval "$ac_compile") 2>conftest.er1
24911   ac_status=$?
24912   grep -v '^ *+' conftest.er1 >conftest.err
24913   rm -f conftest.er1
24914   cat conftest.err >&5
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); } && {
24917          test -z "$ac_c_werror_flag" ||
24918          test ! -s conftest.err
24919        } && test -s conftest.$ac_objext; then
24920   ac_lo=0 ac_mid=0
24921   while :; do
24922     cat >conftest.$ac_ext <<_ACEOF
24923 /* confdefs.h.  */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h.  */
24928 $ac_includes_default
24929    typedef long long int ac__type_sizeof_;
24930 int
24931 main ()
24932 {
24933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24934 test_array [0] = 0
24935
24936   ;
24937   return 0;
24938 }
24939 _ACEOF
24940 rm -f conftest.$ac_objext
24941 if { (ac_try="$ac_compile"
24942 case "(($ac_try" in
24943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944   *) ac_try_echo=$ac_try;;
24945 esac
24946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24947   (eval "$ac_compile") 2>conftest.er1
24948   ac_status=$?
24949   grep -v '^ *+' conftest.er1 >conftest.err
24950   rm -f conftest.er1
24951   cat conftest.err >&5
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); } && {
24954          test -z "$ac_c_werror_flag" ||
24955          test ! -s conftest.err
24956        } && test -s conftest.$ac_objext; then
24957   ac_hi=$ac_mid; break
24958 else
24959   echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24961
24962         ac_lo=`expr $ac_mid + 1`
24963                         if test $ac_lo -le $ac_mid; then
24964                           ac_lo= ac_hi=
24965                           break
24966                         fi
24967                         ac_mid=`expr 2 '*' $ac_mid + 1`
24968 fi
24969
24970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24971   done
24972 else
24973   echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976         cat >conftest.$ac_ext <<_ACEOF
24977 /* confdefs.h.  */
24978 _ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h.  */
24982 $ac_includes_default
24983    typedef long long int ac__type_sizeof_;
24984 int
24985 main ()
24986 {
24987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24988 test_array [0] = 0
24989
24990   ;
24991   return 0;
24992 }
24993 _ACEOF
24994 rm -f conftest.$ac_objext
24995 if { (ac_try="$ac_compile"
24996 case "(($ac_try" in
24997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998   *) ac_try_echo=$ac_try;;
24999 esac
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001   (eval "$ac_compile") 2>conftest.er1
25002   ac_status=$?
25003   grep -v '^ *+' conftest.er1 >conftest.err
25004   rm -f conftest.er1
25005   cat conftest.err >&5
25006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); } && {
25008          test -z "$ac_c_werror_flag" ||
25009          test ! -s conftest.err
25010        } && test -s conftest.$ac_objext; then
25011   ac_hi=-1 ac_mid=-1
25012   while :; do
25013     cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h.  */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h.  */
25019 $ac_includes_default
25020    typedef long long int ac__type_sizeof_;
25021 int
25022 main ()
25023 {
25024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25025 test_array [0] = 0
25026
25027   ;
25028   return 0;
25029 }
25030 _ACEOF
25031 rm -f conftest.$ac_objext
25032 if { (ac_try="$ac_compile"
25033 case "(($ac_try" in
25034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035   *) ac_try_echo=$ac_try;;
25036 esac
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038   (eval "$ac_compile") 2>conftest.er1
25039   ac_status=$?
25040   grep -v '^ *+' conftest.er1 >conftest.err
25041   rm -f conftest.er1
25042   cat conftest.err >&5
25043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044   (exit $ac_status); } && {
25045          test -z "$ac_c_werror_flag" ||
25046          test ! -s conftest.err
25047        } && test -s conftest.$ac_objext; then
25048   ac_lo=$ac_mid; break
25049 else
25050   echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053         ac_hi=`expr '(' $ac_mid ')' - 1`
25054                         if test $ac_mid -le $ac_hi; then
25055                           ac_lo= ac_hi=
25056                           break
25057                         fi
25058                         ac_mid=`expr 2 '*' $ac_mid`
25059 fi
25060
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062   done
25063 else
25064   echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25066
25067         ac_lo= ac_hi=
25068 fi
25069
25070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071 fi
25072
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 # Binary search between lo and hi bounds.
25075 while test "x$ac_lo" != "x$ac_hi"; do
25076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25077   cat >conftest.$ac_ext <<_ACEOF
25078 /* confdefs.h.  */
25079 _ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h.  */
25083 $ac_includes_default
25084    typedef long long int ac__type_sizeof_;
25085 int
25086 main ()
25087 {
25088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25089 test_array [0] = 0
25090
25091   ;
25092   return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099   *) ac_try_echo=$ac_try;;
25100 esac
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102   (eval "$ac_compile") 2>conftest.er1
25103   ac_status=$?
25104   grep -v '^ *+' conftest.er1 >conftest.err
25105   rm -f conftest.er1
25106   cat conftest.err >&5
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); } && {
25109          test -z "$ac_c_werror_flag" ||
25110          test ! -s conftest.err
25111        } && test -s conftest.$ac_objext; then
25112   ac_hi=$ac_mid
25113 else
25114   echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117         ac_lo=`expr '(' $ac_mid ')' + 1`
25118 fi
25119
25120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25121 done
25122 case $ac_lo in
25123 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25124 '') if test "$ac_cv_type_long_long_int" = yes; then
25125      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25126 See \`config.log' for more details." >&5
25127 echo "$as_me: error: cannot compute sizeof (long long int)
25128 See \`config.log' for more details." >&2;}
25129    { (exit 77); exit 77; }; }
25130    else
25131      ac_cv_sizeof_long_long_int=0
25132    fi ;;
25133 esac
25134 else
25135   cat >conftest.$ac_ext <<_ACEOF
25136 /* confdefs.h.  */
25137 _ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h.  */
25141 $ac_includes_default
25142    typedef long long int ac__type_sizeof_;
25143 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25144 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25145 #include <stdio.h>
25146 #include <stdlib.h>
25147 int
25148 main ()
25149 {
25150
25151   FILE *f = fopen ("conftest.val", "w");
25152   if (! f)
25153     return 1;
25154   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25155     {
25156       long int i = longval ();
25157       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25158         return 1;
25159       fprintf (f, "%ld\n", i);
25160     }
25161   else
25162     {
25163       unsigned long int i = ulongval ();
25164       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25165         return 1;
25166       fprintf (f, "%lu\n", i);
25167     }
25168   return ferror (f) || fclose (f) != 0;
25169
25170   ;
25171   return 0;
25172 }
25173 _ACEOF
25174 rm -f conftest$ac_exeext
25175 if { (ac_try="$ac_link"
25176 case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181   (eval "$ac_link") 2>&5
25182   ac_status=$?
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25185   { (case "(($ac_try" in
25186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187   *) ac_try_echo=$ac_try;;
25188 esac
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190   (eval "$ac_try") 2>&5
25191   ac_status=$?
25192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193   (exit $ac_status); }; }; then
25194   ac_cv_sizeof_long_long_int=`cat conftest.val`
25195 else
25196   echo "$as_me: program exited with status $ac_status" >&5
25197 echo "$as_me: failed program was:" >&5
25198 sed 's/^/| /' conftest.$ac_ext >&5
25199
25200 ( exit $ac_status )
25201 if test "$ac_cv_type_long_long_int" = yes; then
25202      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25203 See \`config.log' for more details." >&5
25204 echo "$as_me: error: cannot compute sizeof (long long int)
25205 See \`config.log' for more details." >&2;}
25206    { (exit 77); exit 77; }; }
25207    else
25208      ac_cv_sizeof_long_long_int=0
25209    fi
25210 fi
25211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25212 fi
25213 rm -f conftest.val
25214 fi
25215 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25216 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25217
25218
25219
25220 cat >>confdefs.h <<_ACEOF
25221 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25222 _ACEOF
25223
25224
25225 { echo "$as_me:$LINENO: checking for int *" >&5
25226 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25227 if test "${ac_cv_type_int_p+set}" = set; then
25228   echo $ECHO_N "(cached) $ECHO_C" >&6
25229 else
25230   cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h.  */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h.  */
25236 $ac_includes_default
25237 typedef int * ac__type_new_;
25238 int
25239 main ()
25240 {
25241 if ((ac__type_new_ *) 0)
25242   return 0;
25243 if (sizeof (ac__type_new_))
25244   return 0;
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 rm -f conftest.$ac_objext
25250 if { (ac_try="$ac_compile"
25251 case "(($ac_try" in
25252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253   *) ac_try_echo=$ac_try;;
25254 esac
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256   (eval "$ac_compile") 2>conftest.er1
25257   ac_status=$?
25258   grep -v '^ *+' conftest.er1 >conftest.err
25259   rm -f conftest.er1
25260   cat conftest.err >&5
25261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262   (exit $ac_status); } && {
25263          test -z "$ac_c_werror_flag" ||
25264          test ! -s conftest.err
25265        } && test -s conftest.$ac_objext; then
25266   ac_cv_type_int_p=yes
25267 else
25268   echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271         ac_cv_type_int_p=no
25272 fi
25273
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25275 fi
25276 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25277 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25278
25279 # The cast to long int works around a bug in the HP C Compiler
25280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25282 # This bug is HP SR number 8606223364.
25283 { echo "$as_me:$LINENO: checking size of int *" >&5
25284 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25285 if test "${ac_cv_sizeof_int_p+set}" = set; then
25286   echo $ECHO_N "(cached) $ECHO_C" >&6
25287 else
25288   if test "$cross_compiling" = yes; then
25289   # Depending upon the size, compute the lo and hi bounds.
25290 cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h.  */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h.  */
25296 $ac_includes_default
25297    typedef int * ac__type_sizeof_;
25298 int
25299 main ()
25300 {
25301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25302 test_array [0] = 0
25303
25304   ;
25305   return 0;
25306 }
25307 _ACEOF
25308 rm -f conftest.$ac_objext
25309 if { (ac_try="$ac_compile"
25310 case "(($ac_try" in
25311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312   *) ac_try_echo=$ac_try;;
25313 esac
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315   (eval "$ac_compile") 2>conftest.er1
25316   ac_status=$?
25317   grep -v '^ *+' conftest.er1 >conftest.err
25318   rm -f conftest.er1
25319   cat conftest.err >&5
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); } && {
25322          test -z "$ac_c_werror_flag" ||
25323          test ! -s conftest.err
25324        } && test -s conftest.$ac_objext; then
25325   ac_lo=0 ac_mid=0
25326   while :; do
25327     cat >conftest.$ac_ext <<_ACEOF
25328 /* confdefs.h.  */
25329 _ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h.  */
25333 $ac_includes_default
25334    typedef int * ac__type_sizeof_;
25335 int
25336 main ()
25337 {
25338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25339 test_array [0] = 0
25340
25341   ;
25342   return 0;
25343 }
25344 _ACEOF
25345 rm -f conftest.$ac_objext
25346 if { (ac_try="$ac_compile"
25347 case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352   (eval "$ac_compile") 2>conftest.er1
25353   ac_status=$?
25354   grep -v '^ *+' conftest.er1 >conftest.err
25355   rm -f conftest.er1
25356   cat conftest.err >&5
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } && {
25359          test -z "$ac_c_werror_flag" ||
25360          test ! -s conftest.err
25361        } && test -s conftest.$ac_objext; then
25362   ac_hi=$ac_mid; break
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367         ac_lo=`expr $ac_mid + 1`
25368                         if test $ac_lo -le $ac_mid; then
25369                           ac_lo= ac_hi=
25370                           break
25371                         fi
25372                         ac_mid=`expr 2 '*' $ac_mid + 1`
25373 fi
25374
25375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25376   done
25377 else
25378   echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25380
25381         cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h.  */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h.  */
25387 $ac_includes_default
25388    typedef int * ac__type_sizeof_;
25389 int
25390 main ()
25391 {
25392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25393 test_array [0] = 0
25394
25395   ;
25396   return 0;
25397 }
25398 _ACEOF
25399 rm -f conftest.$ac_objext
25400 if { (ac_try="$ac_compile"
25401 case "(($ac_try" in
25402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403   *) ac_try_echo=$ac_try;;
25404 esac
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406   (eval "$ac_compile") 2>conftest.er1
25407   ac_status=$?
25408   grep -v '^ *+' conftest.er1 >conftest.err
25409   rm -f conftest.er1
25410   cat conftest.err >&5
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } && {
25413          test -z "$ac_c_werror_flag" ||
25414          test ! -s conftest.err
25415        } && test -s conftest.$ac_objext; then
25416   ac_hi=-1 ac_mid=-1
25417   while :; do
25418     cat >conftest.$ac_ext <<_ACEOF
25419 /* confdefs.h.  */
25420 _ACEOF
25421 cat confdefs.h >>conftest.$ac_ext
25422 cat >>conftest.$ac_ext <<_ACEOF
25423 /* end confdefs.h.  */
25424 $ac_includes_default
25425    typedef int * ac__type_sizeof_;
25426 int
25427 main ()
25428 {
25429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25430 test_array [0] = 0
25431
25432   ;
25433   return 0;
25434 }
25435 _ACEOF
25436 rm -f conftest.$ac_objext
25437 if { (ac_try="$ac_compile"
25438 case "(($ac_try" in
25439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25440   *) ac_try_echo=$ac_try;;
25441 esac
25442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25443   (eval "$ac_compile") 2>conftest.er1
25444   ac_status=$?
25445   grep -v '^ *+' conftest.er1 >conftest.err
25446   rm -f conftest.er1
25447   cat conftest.err >&5
25448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); } && {
25450          test -z "$ac_c_werror_flag" ||
25451          test ! -s conftest.err
25452        } && test -s conftest.$ac_objext; then
25453   ac_lo=$ac_mid; break
25454 else
25455   echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25457
25458         ac_hi=`expr '(' $ac_mid ')' - 1`
25459                         if test $ac_mid -le $ac_hi; then
25460                           ac_lo= ac_hi=
25461                           break
25462                         fi
25463                         ac_mid=`expr 2 '*' $ac_mid`
25464 fi
25465
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467   done
25468 else
25469   echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472         ac_lo= ac_hi=
25473 fi
25474
25475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25476 fi
25477
25478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25479 # Binary search between lo and hi bounds.
25480 while test "x$ac_lo" != "x$ac_hi"; do
25481   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25482   cat >conftest.$ac_ext <<_ACEOF
25483 /* confdefs.h.  */
25484 _ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h.  */
25488 $ac_includes_default
25489    typedef int * ac__type_sizeof_;
25490 int
25491 main ()
25492 {
25493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25494 test_array [0] = 0
25495
25496   ;
25497   return 0;
25498 }
25499 _ACEOF
25500 rm -f conftest.$ac_objext
25501 if { (ac_try="$ac_compile"
25502 case "(($ac_try" in
25503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504   *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507   (eval "$ac_compile") 2>conftest.er1
25508   ac_status=$?
25509   grep -v '^ *+' conftest.er1 >conftest.err
25510   rm -f conftest.er1
25511   cat conftest.err >&5
25512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513   (exit $ac_status); } && {
25514          test -z "$ac_c_werror_flag" ||
25515          test ! -s conftest.err
25516        } && test -s conftest.$ac_objext; then
25517   ac_hi=$ac_mid
25518 else
25519   echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25521
25522         ac_lo=`expr '(' $ac_mid ')' + 1`
25523 fi
25524
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526 done
25527 case $ac_lo in
25528 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25529 '') if test "$ac_cv_type_int_p" = yes; then
25530      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25531 See \`config.log' for more details." >&5
25532 echo "$as_me: error: cannot compute sizeof (int *)
25533 See \`config.log' for more details." >&2;}
25534    { (exit 77); exit 77; }; }
25535    else
25536      ac_cv_sizeof_int_p=0
25537    fi ;;
25538 esac
25539 else
25540   cat >conftest.$ac_ext <<_ACEOF
25541 /* confdefs.h.  */
25542 _ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h.  */
25546 $ac_includes_default
25547    typedef int * ac__type_sizeof_;
25548 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25549 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25550 #include <stdio.h>
25551 #include <stdlib.h>
25552 int
25553 main ()
25554 {
25555
25556   FILE *f = fopen ("conftest.val", "w");
25557   if (! f)
25558     return 1;
25559   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25560     {
25561       long int i = longval ();
25562       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25563         return 1;
25564       fprintf (f, "%ld\n", i);
25565     }
25566   else
25567     {
25568       unsigned long int i = ulongval ();
25569       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25570         return 1;
25571       fprintf (f, "%lu\n", i);
25572     }
25573   return ferror (f) || fclose (f) != 0;
25574
25575   ;
25576   return 0;
25577 }
25578 _ACEOF
25579 rm -f conftest$ac_exeext
25580 if { (ac_try="$ac_link"
25581 case "(($ac_try" in
25582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583   *) ac_try_echo=$ac_try;;
25584 esac
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586   (eval "$ac_link") 2>&5
25587   ac_status=$?
25588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25590   { (case "(($ac_try" in
25591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592   *) ac_try_echo=$ac_try;;
25593 esac
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595   (eval "$ac_try") 2>&5
25596   ac_status=$?
25597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598   (exit $ac_status); }; }; then
25599   ac_cv_sizeof_int_p=`cat conftest.val`
25600 else
25601   echo "$as_me: program exited with status $ac_status" >&5
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ( exit $ac_status )
25606 if test "$ac_cv_type_int_p" = yes; then
25607      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25608 See \`config.log' for more details." >&5
25609 echo "$as_me: error: cannot compute sizeof (int *)
25610 See \`config.log' for more details." >&2;}
25611    { (exit 77); exit 77; }; }
25612    else
25613      ac_cv_sizeof_int_p=0
25614    fi
25615 fi
25616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25617 fi
25618 rm -f conftest.val
25619 fi
25620 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25621 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25622
25623
25624
25625 cat >>confdefs.h <<_ACEOF
25626 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25627 _ACEOF
25628
25629
25630
25631 # Check for sys/types.h types
25632 { echo "$as_me:$LINENO: checking for u_int type" >&5
25633 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25634 if test "${ac_cv_have_u_int+set}" = set; then
25635   echo $ECHO_N "(cached) $ECHO_C" >&6
25636 else
25637
25638     cat >conftest.$ac_ext <<_ACEOF
25639 /* confdefs.h.  */
25640 _ACEOF
25641 cat confdefs.h >>conftest.$ac_ext
25642 cat >>conftest.$ac_ext <<_ACEOF
25643 /* end confdefs.h.  */
25644  #include <sys/types.h>
25645 int
25646 main ()
25647 {
25648  u_int a; a = 1;
25649   ;
25650   return 0;
25651 }
25652 _ACEOF
25653 rm -f conftest.$ac_objext
25654 if { (ac_try="$ac_compile"
25655 case "(($ac_try" in
25656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657   *) ac_try_echo=$ac_try;;
25658 esac
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660   (eval "$ac_compile") 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } && {
25667          test -z "$ac_c_werror_flag" ||
25668          test ! -s conftest.err
25669        } && test -s conftest.$ac_objext; then
25670    ac_cv_have_u_int="yes"
25671 else
25672   echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25674
25675          ac_cv_have_u_int="no"
25676
25677 fi
25678
25679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25680
25681 fi
25682 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25683 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25684 if test "x$ac_cv_have_u_int" = "xyes" ; then
25685    cat >>confdefs.h <<\_ACEOF
25686 #define HAVE_U_INT 1
25687 _ACEOF
25688
25689    have_u_int=1
25690 fi
25691
25692 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25693 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25694 if test "${ac_cv_have_intmax_t+set}" = set; then
25695   echo $ECHO_N "(cached) $ECHO_C" >&6
25696 else
25697
25698    cat >conftest.$ac_ext <<_ACEOF
25699 /* confdefs.h.  */
25700 _ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h.  */
25704  #include <sys/types.h>
25705 int
25706 main ()
25707 {
25708  intmax_t a; a = 1;
25709   ;
25710   return 0;
25711 }
25712 _ACEOF
25713 rm -f conftest.$ac_objext
25714 if { (ac_try="$ac_compile"
25715 case "(($ac_try" in
25716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717   *) ac_try_echo=$ac_try;;
25718 esac
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720   (eval "$ac_compile") 2>conftest.er1
25721   ac_status=$?
25722   grep -v '^ *+' conftest.er1 >conftest.err
25723   rm -f conftest.er1
25724   cat conftest.err >&5
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); } && {
25727          test -z "$ac_c_werror_flag" ||
25728          test ! -s conftest.err
25729        } && test -s conftest.$ac_objext; then
25730    ac_cv_have_intmax_t="yes"
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735
25736          cat >conftest.$ac_ext <<_ACEOF
25737 /* confdefs.h.  */
25738 _ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h.  */
25742  #include <stdint.h>
25743 int
25744 main ()
25745 {
25746  intmax_t a; a = 1;
25747   ;
25748   return 0;
25749 }
25750 _ACEOF
25751 rm -f conftest.$ac_objext
25752 if { (ac_try="$ac_compile"
25753 case "(($ac_try" in
25754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25755   *) ac_try_echo=$ac_try;;
25756 esac
25757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25758   (eval "$ac_compile") 2>conftest.er1
25759   ac_status=$?
25760   grep -v '^ *+' conftest.er1 >conftest.err
25761   rm -f conftest.er1
25762   cat conftest.err >&5
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); } && {
25765          test -z "$ac_c_werror_flag" ||
25766          test ! -s conftest.err
25767        } && test -s conftest.$ac_objext; then
25768    ac_cv_have_intmax_t="yes"
25769 else
25770   echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773          ac_cv_have_intmax_t="no"
25774
25775 fi
25776
25777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25778
25779
25780 fi
25781
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783
25784
25785 fi
25786 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25787 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25788 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25789    cat >>confdefs.h <<\_ACEOF
25790 #define HAVE_INTMAX_T 1
25791 _ACEOF
25792
25793    have_intmax_t=1
25794 fi
25795
25796
25797 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25798 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25799 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25800   echo $ECHO_N "(cached) $ECHO_C" >&6
25801 else
25802
25803    cat >conftest.$ac_ext <<_ACEOF
25804 /* confdefs.h.  */
25805 _ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h.  */
25809  #include <sys/types.h>
25810 int
25811 main ()
25812 {
25813  u_intmax_t a; a = 1;
25814   ;
25815   return 0;
25816 }
25817 _ACEOF
25818 rm -f conftest.$ac_objext
25819 if { (ac_try="$ac_compile"
25820 case "(($ac_try" in
25821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25822   *) ac_try_echo=$ac_try;;
25823 esac
25824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25825   (eval "$ac_compile") 2>conftest.er1
25826   ac_status=$?
25827   grep -v '^ *+' conftest.er1 >conftest.err
25828   rm -f conftest.er1
25829   cat conftest.err >&5
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); } && {
25832          test -z "$ac_c_werror_flag" ||
25833          test ! -s conftest.err
25834        } && test -s conftest.$ac_objext; then
25835    ac_cv_have_u_intmax_t="yes"
25836 else
25837   echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25839
25840
25841          cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h.  */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h.  */
25847  #include <stdint.h>
25848 int
25849 main ()
25850 {
25851  u_intmax_t a; a = 1;
25852   ;
25853   return 0;
25854 }
25855 _ACEOF
25856 rm -f conftest.$ac_objext
25857 if { (ac_try="$ac_compile"
25858 case "(($ac_try" in
25859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860   *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863   (eval "$ac_compile") 2>conftest.er1
25864   ac_status=$?
25865   grep -v '^ *+' conftest.er1 >conftest.err
25866   rm -f conftest.er1
25867   cat conftest.err >&5
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); } && {
25870          test -z "$ac_c_werror_flag" ||
25871          test ! -s conftest.err
25872        } && test -s conftest.$ac_objext; then
25873    ac_cv_have_u_intmax_t="yes"
25874 else
25875   echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25877
25878          ac_cv_have_u_intmax_t="no"
25879
25880 fi
25881
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25883
25884
25885 fi
25886
25887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25888
25889 fi
25890 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25891 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25892 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25893    cat >>confdefs.h <<\_ACEOF
25894 #define HAVE_U_INTMAX_T 1
25895 _ACEOF
25896
25897    have_u_intmax_t=1
25898 fi
25899
25900
25901 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25902 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25903 if test "${ac_cv_have_intxx_t+set}" = set; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906
25907    cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913  #include <sys/types.h>
25914 int
25915 main ()
25916 {
25917  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25918   ;
25919   return 0;
25920 }
25921 _ACEOF
25922 rm -f conftest.$ac_objext
25923 if { (ac_try="$ac_compile"
25924 case "(($ac_try" in
25925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926   *) ac_try_echo=$ac_try;;
25927 esac
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929   (eval "$ac_compile") 2>conftest.er1
25930   ac_status=$?
25931   grep -v '^ *+' conftest.er1 >conftest.err
25932   rm -f conftest.er1
25933   cat conftest.err >&5
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } && {
25936          test -z "$ac_c_werror_flag" ||
25937          test ! -s conftest.err
25938        } && test -s conftest.$ac_objext; then
25939    ac_cv_have_intxx_t="yes"
25940 else
25941   echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25943
25944          ac_cv_have_intxx_t="no"
25945
25946 fi
25947
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949
25950 fi
25951 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25952 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25953 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25954    cat >>confdefs.h <<\_ACEOF
25955 #define HAVE_INTXX_T 1
25956 _ACEOF
25957
25958    have_intxx_t=1
25959 fi
25960
25961 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25962 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25963 if test "${ac_cv_have_int64_t+set}" = set; then
25964   echo $ECHO_N "(cached) $ECHO_C" >&6
25965 else
25966
25967    cat >conftest.$ac_ext <<_ACEOF
25968 /* confdefs.h.  */
25969 _ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h.  */
25973  #include <sys/types.h>
25974 int
25975 main ()
25976 {
25977  int64_t a; a = 1;
25978   ;
25979   return 0;
25980 }
25981 _ACEOF
25982 rm -f conftest.$ac_objext
25983 if { (ac_try="$ac_compile"
25984 case "(($ac_try" in
25985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986   *) ac_try_echo=$ac_try;;
25987 esac
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989   (eval "$ac_compile") 2>conftest.er1
25990   ac_status=$?
25991   grep -v '^ *+' conftest.er1 >conftest.err
25992   rm -f conftest.er1
25993   cat conftest.err >&5
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); } && {
25996          test -z "$ac_c_werror_flag" ||
25997          test ! -s conftest.err
25998        } && test -s conftest.$ac_objext; then
25999    ac_cv_have_int64_t="yes"
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004          ac_cv_have_int64_t="no"
26005
26006 fi
26007
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009
26010 fi
26011 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26012 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26013 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26014    cat >>confdefs.h <<\_ACEOF
26015 #define HAVE_INT64_T 1
26016 _ACEOF
26017
26018    have_int64_t=1
26019 fi
26020
26021 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26022 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26023 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26024   echo $ECHO_N "(cached) $ECHO_C" >&6
26025 else
26026
26027    cat >conftest.$ac_ext <<_ACEOF
26028 /* confdefs.h.  */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h.  */
26033  #include <sys/types.h>
26034 int
26035 main ()
26036 {
26037  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26038   ;
26039   return 0;
26040 }
26041 _ACEOF
26042 rm -f conftest.$ac_objext
26043 if { (ac_try="$ac_compile"
26044 case "(($ac_try" in
26045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046   *) ac_try_echo=$ac_try;;
26047 esac
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049   (eval "$ac_compile") 2>conftest.er1
26050   ac_status=$?
26051   grep -v '^ *+' conftest.er1 >conftest.err
26052   rm -f conftest.er1
26053   cat conftest.err >&5
26054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055   (exit $ac_status); } && {
26056          test -z "$ac_c_werror_flag" ||
26057          test ! -s conftest.err
26058        } && test -s conftest.$ac_objext; then
26059    ac_cv_have_u_intxx_t="yes"
26060 else
26061   echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26063
26064          ac_cv_have_u_intxx_t="no"
26065
26066 fi
26067
26068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26069
26070 fi
26071 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26072 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26073 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26074    cat >>confdefs.h <<\_ACEOF
26075 #define HAVE_U_INTXX_T 1
26076 _ACEOF
26077
26078    have_u_intxx_t=1
26079 fi
26080
26081 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26082 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26083 if test "${ac_cv_have_u_int64_t+set}" = set; then
26084   echo $ECHO_N "(cached) $ECHO_C" >&6
26085 else
26086
26087    cat >conftest.$ac_ext <<_ACEOF
26088 /* confdefs.h.  */
26089 _ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h.  */
26093  #include <sys/types.h>
26094 int
26095 main ()
26096 {
26097  u_int64_t a; a = 1;
26098   ;
26099   return 0;
26100 }
26101 _ACEOF
26102 rm -f conftest.$ac_objext
26103 if { (ac_try="$ac_compile"
26104 case "(($ac_try" in
26105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106   *) ac_try_echo=$ac_try;;
26107 esac
26108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26109   (eval "$ac_compile") 2>conftest.er1
26110   ac_status=$?
26111   grep -v '^ *+' conftest.er1 >conftest.err
26112   rm -f conftest.er1
26113   cat conftest.err >&5
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } && {
26116          test -z "$ac_c_werror_flag" ||
26117          test ! -s conftest.err
26118        } && test -s conftest.$ac_objext; then
26119    ac_cv_have_u_int64_t="yes"
26120 else
26121   echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124          ac_cv_have_u_int64_t="no"
26125
26126 fi
26127
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129
26130 fi
26131 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26132 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26133 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26134    cat >>confdefs.h <<\_ACEOF
26135 #define HAVE_U_INT64_T 1
26136 _ACEOF
26137
26138    have_u_int64_t=1
26139 fi
26140
26141 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26142            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26143 then
26144    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26145 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26146    cat >conftest.$ac_ext <<_ACEOF
26147 /* confdefs.h.  */
26148 _ACEOF
26149 cat confdefs.h >>conftest.$ac_ext
26150 cat >>conftest.$ac_ext <<_ACEOF
26151 /* end confdefs.h.  */
26152  #include <sys/bitypes.h>
26153 int
26154 main ()
26155 {
26156  int8_t a; int16_t b; int32_t c;
26157         u_int8_t e; u_int16_t f; u_int32_t g;
26158         a = b = c = e = f = g = 1;
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 rm -f conftest.$ac_objext
26164 if { (ac_try="$ac_compile"
26165 case "(($ac_try" in
26166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167   *) ac_try_echo=$ac_try;;
26168 esac
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170   (eval "$ac_compile") 2>conftest.er1
26171   ac_status=$?
26172   grep -v '^ *+' conftest.er1 >conftest.err
26173   rm -f conftest.er1
26174   cat conftest.err >&5
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); } && {
26177          test -z "$ac_c_werror_flag" ||
26178          test ! -s conftest.err
26179        } && test -s conftest.$ac_objext; then
26180    cat >>confdefs.h <<\_ACEOF
26181 #define HAVE_U_INTXX_T 1
26182 _ACEOF
26183
26184         cat >>confdefs.h <<\_ACEOF
26185 #define HAVE_INTXX_T 1
26186 _ACEOF
26187
26188         cat >>confdefs.h <<\_ACEOF
26189 #define HAVE_SYS_BITYPES_H 1
26190 _ACEOF
26191
26192         { echo "$as_me:$LINENO: result: yes" >&5
26193 echo "${ECHO_T}yes" >&6; }
26194 else
26195   echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26197
26198          { echo "$as_me:$LINENO: result: no" >&5
26199 echo "${ECHO_T}no" >&6; }
26200
26201 fi
26202
26203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26204 fi
26205
26206 if test -z "$have_u_intxx_t" ; then
26207    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26208 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26209 if test "${ac_cv_have_uintxx_t+set}" = set; then
26210   echo $ECHO_N "(cached) $ECHO_C" >&6
26211 else
26212
26213       cat >conftest.$ac_ext <<_ACEOF
26214 /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219  #include <sys/types.h>
26220 int
26221 main ()
26222 {
26223  uint8_t a; uint16_t b;
26224            uint32_t c; a = b = c = 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_uintxx_t="yes"
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251          ac_cv_have_uintxx_t="no"
26252
26253 fi
26254
26255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256
26257 fi
26258 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26259 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26260    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26261       cat >>confdefs.h <<\_ACEOF
26262 #define HAVE_UINTXX_T 1
26263 _ACEOF
26264
26265    fi
26266 fi
26267
26268 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26269           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26270 then
26271    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26272 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26273    cat >conftest.$ac_ext <<_ACEOF
26274 /* confdefs.h.  */
26275 _ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h.  */
26279  #include <sys/bitypes.h>
26280 int
26281 main ()
26282 {
26283  int64_t a; u_int64_t b;
26284        a = b = 1;
26285   ;
26286   return 0;
26287 }
26288 _ACEOF
26289 rm -f conftest.$ac_objext
26290 if { (ac_try="$ac_compile"
26291 case "(($ac_try" in
26292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293   *) ac_try_echo=$ac_try;;
26294 esac
26295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26296   (eval "$ac_compile") 2>conftest.er1
26297   ac_status=$?
26298   grep -v '^ *+' conftest.er1 >conftest.err
26299   rm -f conftest.er1
26300   cat conftest.err >&5
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); } && {
26303          test -z "$ac_c_werror_flag" ||
26304          test ! -s conftest.err
26305        } && test -s conftest.$ac_objext; then
26306    cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_U_INT64_T 1
26308 _ACEOF
26309
26310        cat >>confdefs.h <<\_ACEOF
26311 #define HAVE_INT64_T 1
26312 _ACEOF
26313
26314        { echo "$as_me:$LINENO: result: yes" >&5
26315 echo "${ECHO_T}yes" >&6; }
26316 else
26317   echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320          { echo "$as_me:$LINENO: result: no" >&5
26321 echo "${ECHO_T}no" >&6; }
26322
26323 fi
26324
26325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326 fi
26327
26328 if (test -z "$have_uintxx_t" && \
26329           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26330 then
26331    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26332 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26333    cat >conftest.$ac_ext <<_ACEOF
26334 /* confdefs.h.  */
26335 _ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h.  */
26339  #include <sys/bitypes.h>
26340 int
26341 main ()
26342 {
26343  uint8_t a; uint16_t b;
26344           uint32_t c; a = b = c = 1;
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 rm -f conftest.$ac_objext
26350 if { (ac_try="$ac_compile"
26351 case "(($ac_try" in
26352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353   *) ac_try_echo=$ac_try;;
26354 esac
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26356   (eval "$ac_compile") 2>conftest.er1
26357   ac_status=$?
26358   grep -v '^ *+' conftest.er1 >conftest.err
26359   rm -f conftest.er1
26360   cat conftest.err >&5
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); } && {
26363          test -z "$ac_c_werror_flag" ||
26364          test ! -s conftest.err
26365        } && test -s conftest.$ac_objext; then
26366    cat >>confdefs.h <<\_ACEOF
26367 #define HAVE_UINTXX_T 1
26368 _ACEOF
26369
26370        { echo "$as_me:$LINENO: result: yes" >&5
26371 echo "${ECHO_T}yes" >&6; }
26372 else
26373   echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26375
26376          { echo "$as_me:$LINENO: result: no" >&5
26377 echo "${ECHO_T}no" >&6; }
26378
26379 fi
26380
26381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26382
26383 fi
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401 for ac_func in \
26402         fork \
26403         getcwd \
26404         gethostname \
26405         getpid \
26406         gettimeofday \
26407         setpgid \
26408         setpgrp \
26409         setsid \
26410         signal \
26411         strerror \
26412         strncmp \
26413         strncpy \
26414         vfprintf \
26415
26416 do
26417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26421   echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423   cat >conftest.$ac_ext <<_ACEOF
26424 /* confdefs.h.  */
26425 _ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h.  */
26429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26431 #define $ac_func innocuous_$ac_func
26432
26433 /* System header to define __stub macros and hopefully few prototypes,
26434     which can conflict with char $ac_func (); below.
26435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26436     <limits.h> exists even on freestanding compilers.  */
26437
26438 #ifdef __STDC__
26439 # include <limits.h>
26440 #else
26441 # include <assert.h>
26442 #endif
26443
26444 #undef $ac_func
26445
26446 /* Override any GCC internal prototype to avoid an error.
26447    Use char because int might match the return type of a GCC
26448    builtin and then its argument prototype would still apply.  */
26449 #ifdef __cplusplus
26450 extern "C"
26451 #endif
26452 char $ac_func ();
26453 /* The GNU C library defines this for functions which it implements
26454     to always fail with ENOSYS.  Some functions are actually named
26455     something starting with __ and the normal name is an alias.  */
26456 #if defined __stub_$ac_func || defined __stub___$ac_func
26457 choke me
26458 #endif
26459
26460 int
26461 main ()
26462 {
26463 return $ac_func ();
26464   ;
26465   return 0;
26466 }
26467 _ACEOF
26468 rm -f conftest.$ac_objext conftest$ac_exeext
26469 if { (ac_try="$ac_link"
26470 case "(($ac_try" in
26471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26472   *) ac_try_echo=$ac_try;;
26473 esac
26474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26475   (eval "$ac_link") 2>conftest.er1
26476   ac_status=$?
26477   grep -v '^ *+' conftest.er1 >conftest.err
26478   rm -f conftest.er1
26479   cat conftest.err >&5
26480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); } && {
26482          test -z "$ac_c_werror_flag" ||
26483          test ! -s conftest.err
26484        } && test -s conftest$ac_exeext &&
26485        $as_test_x conftest$ac_exeext; then
26486   eval "$as_ac_var=yes"
26487 else
26488   echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26490
26491         eval "$as_ac_var=no"
26492 fi
26493
26494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26495       conftest$ac_exeext conftest.$ac_ext
26496 fi
26497 ac_res=`eval echo '${'$as_ac_var'}'`
26498                { echo "$as_me:$LINENO: result: $ac_res" >&5
26499 echo "${ECHO_T}$ac_res" >&6; }
26500 if test `eval echo '${'$as_ac_var'}'` = yes; then
26501   cat >>confdefs.h <<_ACEOF
26502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26503 _ACEOF
26504
26505 else
26506   echo 'configure: cannot find needed function.'; exit 1
26507
26508 fi
26509 done
26510
26511
26512
26513 for ac_func in fchdir
26514 do
26515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26519   echo $ECHO_N "(cached) $ECHO_C" >&6
26520 else
26521   cat >conftest.$ac_ext <<_ACEOF
26522 /* confdefs.h.  */
26523 _ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h.  */
26527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26529 #define $ac_func innocuous_$ac_func
26530
26531 /* System header to define __stub macros and hopefully few prototypes,
26532     which can conflict with char $ac_func (); below.
26533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26534     <limits.h> exists even on freestanding compilers.  */
26535
26536 #ifdef __STDC__
26537 # include <limits.h>
26538 #else
26539 # include <assert.h>
26540 #endif
26541
26542 #undef $ac_func
26543
26544 /* Override any GCC internal prototype to avoid an error.
26545    Use char because int might match the return type of a GCC
26546    builtin and then its argument prototype would still apply.  */
26547 #ifdef __cplusplus
26548 extern "C"
26549 #endif
26550 char $ac_func ();
26551 /* The GNU C library defines this for functions which it implements
26552     to always fail with ENOSYS.  Some functions are actually named
26553     something starting with __ and the normal name is an alias.  */
26554 #if defined __stub_$ac_func || defined __stub___$ac_func
26555 choke me
26556 #endif
26557
26558 int
26559 main ()
26560 {
26561 return $ac_func ();
26562   ;
26563   return 0;
26564 }
26565 _ACEOF
26566 rm -f conftest.$ac_objext conftest$ac_exeext
26567 if { (ac_try="$ac_link"
26568 case "(($ac_try" in
26569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26570   *) ac_try_echo=$ac_try;;
26571 esac
26572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26573   (eval "$ac_link") 2>conftest.er1
26574   ac_status=$?
26575   grep -v '^ *+' conftest.er1 >conftest.err
26576   rm -f conftest.er1
26577   cat conftest.err >&5
26578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); } && {
26580          test -z "$ac_c_werror_flag" ||
26581          test ! -s conftest.err
26582        } && test -s conftest$ac_exeext &&
26583        $as_test_x conftest$ac_exeext; then
26584   eval "$as_ac_var=yes"
26585 else
26586   echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26588
26589         eval "$as_ac_var=no"
26590 fi
26591
26592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26593       conftest$ac_exeext conftest.$ac_ext
26594 fi
26595 ac_res=`eval echo '${'$as_ac_var'}'`
26596                { echo "$as_me:$LINENO: result: $ac_res" >&5
26597 echo "${ECHO_T}$ac_res" >&6; }
26598 if test `eval echo '${'$as_ac_var'}'` = yes; then
26599   cat >>confdefs.h <<_ACEOF
26600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26601 _ACEOF
26602  cat >>confdefs.h <<\_ACEOF
26603 #define HAVE_FCHDIR 1
26604 _ACEOF
26605
26606 fi
26607 done
26608
26609
26610 for ac_func in strtoll
26611 do
26612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26616   echo $ECHO_N "(cached) $ECHO_C" >&6
26617 else
26618   cat >conftest.$ac_ext <<_ACEOF
26619 /* confdefs.h.  */
26620 _ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h.  */
26624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26626 #define $ac_func innocuous_$ac_func
26627
26628 /* System header to define __stub macros and hopefully few prototypes,
26629     which can conflict with char $ac_func (); below.
26630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26631     <limits.h> exists even on freestanding compilers.  */
26632
26633 #ifdef __STDC__
26634 # include <limits.h>
26635 #else
26636 # include <assert.h>
26637 #endif
26638
26639 #undef $ac_func
26640
26641 /* Override any GCC internal prototype to avoid an error.
26642    Use char because int might match the return type of a GCC
26643    builtin and then its argument prototype would still apply.  */
26644 #ifdef __cplusplus
26645 extern "C"
26646 #endif
26647 char $ac_func ();
26648 /* The GNU C library defines this for functions which it implements
26649     to always fail with ENOSYS.  Some functions are actually named
26650     something starting with __ and the normal name is an alias.  */
26651 #if defined __stub_$ac_func || defined __stub___$ac_func
26652 choke me
26653 #endif
26654
26655 int
26656 main ()
26657 {
26658 return $ac_func ();
26659   ;
26660   return 0;
26661 }
26662 _ACEOF
26663 rm -f conftest.$ac_objext conftest$ac_exeext
26664 if { (ac_try="$ac_link"
26665 case "(($ac_try" in
26666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667   *) ac_try_echo=$ac_try;;
26668 esac
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670   (eval "$ac_link") 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } && {
26677          test -z "$ac_c_werror_flag" ||
26678          test ! -s conftest.err
26679        } && test -s conftest$ac_exeext &&
26680        $as_test_x conftest$ac_exeext; then
26681   eval "$as_ac_var=yes"
26682 else
26683   echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26685
26686         eval "$as_ac_var=no"
26687 fi
26688
26689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26690       conftest$ac_exeext conftest.$ac_ext
26691 fi
26692 ac_res=`eval echo '${'$as_ac_var'}'`
26693                { echo "$as_me:$LINENO: result: $ac_res" >&5
26694 echo "${ECHO_T}$ac_res" >&6; }
26695 if test `eval echo '${'$as_ac_var'}'` = yes; then
26696   cat >>confdefs.h <<_ACEOF
26697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26698 _ACEOF
26699  cat >>confdefs.h <<\_ACEOF
26700 #define HAVE_STRTOLL 1
26701 _ACEOF
26702
26703 fi
26704 done
26705
26706
26707 for ac_func in posix_fadvise
26708 do
26709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26713   echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715   cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26723 #define $ac_func innocuous_$ac_func
26724
26725 /* System header to define __stub macros and hopefully few prototypes,
26726     which can conflict with char $ac_func (); below.
26727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26728     <limits.h> exists even on freestanding compilers.  */
26729
26730 #ifdef __STDC__
26731 # include <limits.h>
26732 #else
26733 # include <assert.h>
26734 #endif
26735
26736 #undef $ac_func
26737
26738 /* Override any GCC internal prototype to avoid an error.
26739    Use char because int might match the return type of a GCC
26740    builtin and then its argument prototype would still apply.  */
26741 #ifdef __cplusplus
26742 extern "C"
26743 #endif
26744 char $ac_func ();
26745 /* The GNU C library defines this for functions which it implements
26746     to always fail with ENOSYS.  Some functions are actually named
26747     something starting with __ and the normal name is an alias.  */
26748 #if defined __stub_$ac_func || defined __stub___$ac_func
26749 choke me
26750 #endif
26751
26752 int
26753 main ()
26754 {
26755 return $ac_func ();
26756   ;
26757   return 0;
26758 }
26759 _ACEOF
26760 rm -f conftest.$ac_objext conftest$ac_exeext
26761 if { (ac_try="$ac_link"
26762 case "(($ac_try" in
26763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764   *) ac_try_echo=$ac_try;;
26765 esac
26766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767   (eval "$ac_link") 2>conftest.er1
26768   ac_status=$?
26769   grep -v '^ *+' conftest.er1 >conftest.err
26770   rm -f conftest.er1
26771   cat conftest.err >&5
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); } && {
26774          test -z "$ac_c_werror_flag" ||
26775          test ! -s conftest.err
26776        } && test -s conftest$ac_exeext &&
26777        $as_test_x conftest$ac_exeext; then
26778   eval "$as_ac_var=yes"
26779 else
26780   echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26782
26783         eval "$as_ac_var=no"
26784 fi
26785
26786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26787       conftest$ac_exeext conftest.$ac_ext
26788 fi
26789 ac_res=`eval echo '${'$as_ac_var'}'`
26790                { echo "$as_me:$LINENO: result: $ac_res" >&5
26791 echo "${ECHO_T}$ac_res" >&6; }
26792 if test `eval echo '${'$as_ac_var'}'` = yes; then
26793   cat >>confdefs.h <<_ACEOF
26794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26795 _ACEOF
26796
26797 fi
26798 done
26799
26800
26801 for ac_func in fdatasync
26802 do
26803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26817 #define $ac_func innocuous_$ac_func
26818
26819 /* System header to define __stub macros and hopefully few prototypes,
26820     which can conflict with char $ac_func (); below.
26821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26822     <limits.h> exists even on freestanding compilers.  */
26823
26824 #ifdef __STDC__
26825 # include <limits.h>
26826 #else
26827 # include <assert.h>
26828 #endif
26829
26830 #undef $ac_func
26831
26832 /* Override any GCC internal prototype to avoid an error.
26833    Use char because int might match the return type of a GCC
26834    builtin and then its argument prototype would still apply.  */
26835 #ifdef __cplusplus
26836 extern "C"
26837 #endif
26838 char $ac_func ();
26839 /* The GNU C library defines this for functions which it implements
26840     to always fail with ENOSYS.  Some functions are actually named
26841     something starting with __ and the normal name is an alias.  */
26842 #if defined __stub_$ac_func || defined __stub___$ac_func
26843 choke me
26844 #endif
26845
26846 int
26847 main ()
26848 {
26849 return $ac_func ();
26850   ;
26851   return 0;
26852 }
26853 _ACEOF
26854 rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (ac_try="$ac_link"
26856 case "(($ac_try" in
26857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858   *) ac_try_echo=$ac_try;;
26859 esac
26860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861   (eval "$ac_link") 2>conftest.er1
26862   ac_status=$?
26863   grep -v '^ *+' conftest.er1 >conftest.err
26864   rm -f conftest.er1
26865   cat conftest.err >&5
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); } && {
26868          test -z "$ac_c_werror_flag" ||
26869          test ! -s conftest.err
26870        } && test -s conftest$ac_exeext &&
26871        $as_test_x conftest$ac_exeext; then
26872   eval "$as_ac_var=yes"
26873 else
26874   echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26876
26877         eval "$as_ac_var=no"
26878 fi
26879
26880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26881       conftest$ac_exeext conftest.$ac_ext
26882 fi
26883 ac_res=`eval echo '${'$as_ac_var'}'`
26884                { echo "$as_me:$LINENO: result: $ac_res" >&5
26885 echo "${ECHO_T}$ac_res" >&6; }
26886 if test `eval echo '${'$as_ac_var'}'` = yes; then
26887   cat >>confdefs.h <<_ACEOF
26888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26889 _ACEOF
26890
26891 fi
26892 done
26893
26894
26895
26896 for ac_func in chflags
26897 do
26898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26902   echo $ECHO_N "(cached) $ECHO_C" >&6
26903 else
26904   cat >conftest.$ac_ext <<_ACEOF
26905 /* confdefs.h.  */
26906 _ACEOF
26907 cat confdefs.h >>conftest.$ac_ext
26908 cat >>conftest.$ac_ext <<_ACEOF
26909 /* end confdefs.h.  */
26910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26912 #define $ac_func innocuous_$ac_func
26913
26914 /* System header to define __stub macros and hopefully few prototypes,
26915     which can conflict with char $ac_func (); below.
26916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26917     <limits.h> exists even on freestanding compilers.  */
26918
26919 #ifdef __STDC__
26920 # include <limits.h>
26921 #else
26922 # include <assert.h>
26923 #endif
26924
26925 #undef $ac_func
26926
26927 /* Override any GCC internal prototype to avoid an error.
26928    Use char because int might match the return type of a GCC
26929    builtin and then its argument prototype would still apply.  */
26930 #ifdef __cplusplus
26931 extern "C"
26932 #endif
26933 char $ac_func ();
26934 /* The GNU C library defines this for functions which it implements
26935     to always fail with ENOSYS.  Some functions are actually named
26936     something starting with __ and the normal name is an alias.  */
26937 #if defined __stub_$ac_func || defined __stub___$ac_func
26938 choke me
26939 #endif
26940
26941 int
26942 main ()
26943 {
26944 return $ac_func ();
26945   ;
26946   return 0;
26947 }
26948 _ACEOF
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (ac_try="$ac_link"
26951 case "(($ac_try" in
26952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953   *) ac_try_echo=$ac_try;;
26954 esac
26955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956   (eval "$ac_link") 2>conftest.er1
26957   ac_status=$?
26958   grep -v '^ *+' conftest.er1 >conftest.err
26959   rm -f conftest.er1
26960   cat conftest.err >&5
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); } && {
26963          test -z "$ac_c_werror_flag" ||
26964          test ! -s conftest.err
26965        } && test -s conftest$ac_exeext &&
26966        $as_test_x conftest$ac_exeext; then
26967   eval "$as_ac_var=yes"
26968 else
26969   echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26971
26972         eval "$as_ac_var=no"
26973 fi
26974
26975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26976       conftest$ac_exeext conftest.$ac_ext
26977 fi
26978 ac_res=`eval echo '${'$as_ac_var'}'`
26979                { echo "$as_me:$LINENO: result: $ac_res" >&5
26980 echo "${ECHO_T}$ac_res" >&6; }
26981 if test `eval echo '${'$as_ac_var'}'` = yes; then
26982   cat >>confdefs.h <<_ACEOF
26983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26984 _ACEOF
26985
26986 fi
26987 done
26988
26989
26990
26991
26992
26993
26994 for ac_func in snprintf vsnprintf gethostid fseeko
26995 do
26996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27000   echo $ECHO_N "(cached) $ECHO_C" >&6
27001 else
27002   cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27010 #define $ac_func innocuous_$ac_func
27011
27012 /* System header to define __stub macros and hopefully few prototypes,
27013     which can conflict with char $ac_func (); below.
27014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27015     <limits.h> exists even on freestanding compilers.  */
27016
27017 #ifdef __STDC__
27018 # include <limits.h>
27019 #else
27020 # include <assert.h>
27021 #endif
27022
27023 #undef $ac_func
27024
27025 /* Override any GCC internal prototype to avoid an error.
27026    Use char because int might match the return type of a GCC
27027    builtin and then its argument prototype would still apply.  */
27028 #ifdef __cplusplus
27029 extern "C"
27030 #endif
27031 char $ac_func ();
27032 /* The GNU C library defines this for functions which it implements
27033     to always fail with ENOSYS.  Some functions are actually named
27034     something starting with __ and the normal name is an alias.  */
27035 #if defined __stub_$ac_func || defined __stub___$ac_func
27036 choke me
27037 #endif
27038
27039 int
27040 main ()
27041 {
27042 return $ac_func ();
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (ac_try="$ac_link"
27049 case "(($ac_try" in
27050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051   *) ac_try_echo=$ac_try;;
27052 esac
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054   (eval "$ac_link") 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } && {
27061          test -z "$ac_c_werror_flag" ||
27062          test ! -s conftest.err
27063        } && test -s conftest$ac_exeext &&
27064        $as_test_x conftest$ac_exeext; then
27065   eval "$as_ac_var=yes"
27066 else
27067   echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27069
27070         eval "$as_ac_var=no"
27071 fi
27072
27073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27074       conftest$ac_exeext conftest.$ac_ext
27075 fi
27076 ac_res=`eval echo '${'$as_ac_var'}'`
27077                { echo "$as_me:$LINENO: result: $ac_res" >&5
27078 echo "${ECHO_T}$ac_res" >&6; }
27079 if test `eval echo '${'$as_ac_var'}'` = yes; then
27080   cat >>confdefs.h <<_ACEOF
27081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27082 _ACEOF
27083
27084 fi
27085 done
27086
27087
27088 { echo "$as_me:$LINENO: checking for va_copy" >&5
27089 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27090 if test "${ba_cv_va_copy+set}" = set; then
27091   echo $ECHO_N "(cached) $ECHO_C" >&6
27092 else
27093   cat >conftest.$ac_ext <<_ACEOF
27094 /* confdefs.h.  */
27095 _ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h.  */
27099
27100 #include <stdarg.h>
27101 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27102 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27103
27104 int
27105 main ()
27106 {
27107 call_use_va_copy(1,2,3)
27108   ;
27109   return 0;
27110 }
27111 _ACEOF
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (ac_try="$ac_link"
27114 case "(($ac_try" in
27115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116   *) ac_try_echo=$ac_try;;
27117 esac
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119   (eval "$ac_link") 2>conftest.er1
27120   ac_status=$?
27121   grep -v '^ *+' conftest.er1 >conftest.err
27122   rm -f conftest.er1
27123   cat conftest.err >&5
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } && {
27126          test -z "$ac_c_werror_flag" ||
27127          test ! -s conftest.err
27128        } && test -s conftest$ac_exeext &&
27129        $as_test_x conftest$ac_exeext; then
27130   ba_cv_va_copy=yes
27131 else
27132   echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135         ba_cv_va_copy=no
27136 fi
27137
27138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27139       conftest$ac_exeext conftest.$ac_ext
27140 fi
27141 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27142 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27143 test $ba_cv_va_copy = yes &&
27144 cat >>confdefs.h <<\_ACEOF
27145 #define HAVE_VA_COPY 1
27146 _ACEOF
27147
27148
27149
27150
27151
27152
27153
27154 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27155 do
27156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27160   echo $ECHO_N "(cached) $ECHO_C" >&6
27161 else
27162   cat >conftest.$ac_ext <<_ACEOF
27163 /* confdefs.h.  */
27164 _ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h.  */
27168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27170 #define $ac_func innocuous_$ac_func
27171
27172 /* System header to define __stub macros and hopefully few prototypes,
27173     which can conflict with char $ac_func (); below.
27174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27175     <limits.h> exists even on freestanding compilers.  */
27176
27177 #ifdef __STDC__
27178 # include <limits.h>
27179 #else
27180 # include <assert.h>
27181 #endif
27182
27183 #undef $ac_func
27184
27185 /* Override any GCC internal prototype to avoid an error.
27186    Use char because int might match the return type of a GCC
27187    builtin and then its argument prototype would still apply.  */
27188 #ifdef __cplusplus
27189 extern "C"
27190 #endif
27191 char $ac_func ();
27192 /* The GNU C library defines this for functions which it implements
27193     to always fail with ENOSYS.  Some functions are actually named
27194     something starting with __ and the normal name is an alias.  */
27195 #if defined __stub_$ac_func || defined __stub___$ac_func
27196 choke me
27197 #endif
27198
27199 int
27200 main ()
27201 {
27202 return $ac_func ();
27203   ;
27204   return 0;
27205 }
27206 _ACEOF
27207 rm -f conftest.$ac_objext conftest$ac_exeext
27208 if { (ac_try="$ac_link"
27209 case "(($ac_try" in
27210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211   *) ac_try_echo=$ac_try;;
27212 esac
27213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27214   (eval "$ac_link") 2>conftest.er1
27215   ac_status=$?
27216   grep -v '^ *+' conftest.er1 >conftest.err
27217   rm -f conftest.er1
27218   cat conftest.err >&5
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); } && {
27221          test -z "$ac_c_werror_flag" ||
27222          test ! -s conftest.err
27223        } && test -s conftest$ac_exeext &&
27224        $as_test_x conftest$ac_exeext; then
27225   eval "$as_ac_var=yes"
27226 else
27227   echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27229
27230         eval "$as_ac_var=no"
27231 fi
27232
27233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27234       conftest$ac_exeext conftest.$ac_ext
27235 fi
27236 ac_res=`eval echo '${'$as_ac_var'}'`
27237                { echo "$as_me:$LINENO: result: $ac_res" >&5
27238 echo "${ECHO_T}$ac_res" >&6; }
27239 if test `eval echo '${'$as_ac_var'}'` = yes; then
27240   cat >>confdefs.h <<_ACEOF
27241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27242 _ACEOF
27243
27244 fi
27245 done
27246
27247
27248 # If resolver functions are not in libc check for -lnsl or -lresolv.
27249 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27250 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27251 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27252   echo $ECHO_N "(cached) $ECHO_C" >&6
27253 else
27254   cat >conftest.$ac_ext <<_ACEOF
27255 /* confdefs.h.  */
27256 _ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h.  */
27260 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27262 #define gethostbyname_r innocuous_gethostbyname_r
27263
27264 /* System header to define __stub macros and hopefully few prototypes,
27265     which can conflict with char gethostbyname_r (); below.
27266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27267     <limits.h> exists even on freestanding compilers.  */
27268
27269 #ifdef __STDC__
27270 # include <limits.h>
27271 #else
27272 # include <assert.h>
27273 #endif
27274
27275 #undef gethostbyname_r
27276
27277 /* Override any GCC internal prototype to avoid an error.
27278    Use char because int might match the return type of a GCC
27279    builtin and then its argument prototype would still apply.  */
27280 #ifdef __cplusplus
27281 extern "C"
27282 #endif
27283 char gethostbyname_r ();
27284 /* The GNU C library defines this for functions which it implements
27285     to always fail with ENOSYS.  Some functions are actually named
27286     something starting with __ and the normal name is an alias.  */
27287 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27288 choke me
27289 #endif
27290
27291 int
27292 main ()
27293 {
27294 return gethostbyname_r ();
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext conftest$ac_exeext
27300 if { (ac_try="$ac_link"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_link") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } && {
27313          test -z "$ac_c_werror_flag" ||
27314          test ! -s conftest.err
27315        } && test -s conftest$ac_exeext &&
27316        $as_test_x conftest$ac_exeext; then
27317   ac_cv_func_gethostbyname_r=yes
27318 else
27319   echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322         ac_cv_func_gethostbyname_r=no
27323 fi
27324
27325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27326       conftest$ac_exeext conftest.$ac_ext
27327 fi
27328 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27329 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27330 if test $ac_cv_func_gethostbyname_r = yes; then
27331   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27332 echo "${ECHO_T}using libc's resolver" >&6; }
27333 else
27334
27335 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27336 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27337 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27338   echo $ECHO_N "(cached) $ECHO_C" >&6
27339 else
27340   ac_check_lib_save_LIBS=$LIBS
27341 LIBS="-lnsl  $LIBS"
27342 cat >conftest.$ac_ext <<_ACEOF
27343 /* confdefs.h.  */
27344 _ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h.  */
27348
27349 /* Override any GCC internal prototype to avoid an error.
27350    Use char because int might match the return type of a GCC
27351    builtin and then its argument prototype would still apply.  */
27352 #ifdef __cplusplus
27353 extern "C"
27354 #endif
27355 char gethostbyname_r ();
27356 int
27357 main ()
27358 {
27359 return gethostbyname_r ();
27360   ;
27361   return 0;
27362 }
27363 _ACEOF
27364 rm -f conftest.$ac_objext conftest$ac_exeext
27365 if { (ac_try="$ac_link"
27366 case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_link") 2>conftest.er1
27372   ac_status=$?
27373   grep -v '^ *+' conftest.er1 >conftest.err
27374   rm -f conftest.er1
27375   cat conftest.err >&5
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); } && {
27378          test -z "$ac_c_werror_flag" ||
27379          test ! -s conftest.err
27380        } && test -s conftest$ac_exeext &&
27381        $as_test_x conftest$ac_exeext; then
27382   ac_cv_lib_nsl_gethostbyname_r=yes
27383 else
27384   echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27386
27387         ac_cv_lib_nsl_gethostbyname_r=no
27388 fi
27389
27390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27391       conftest$ac_exeext conftest.$ac_ext
27392 LIBS=$ac_check_lib_save_LIBS
27393 fi
27394 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27395 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27396 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27397   cat >>confdefs.h <<_ACEOF
27398 #define HAVE_LIBNSL 1
27399 _ACEOF
27400
27401   LIBS="-lnsl $LIBS"
27402
27403 fi
27404
27405
27406 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27407 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27408 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27409   echo $ECHO_N "(cached) $ECHO_C" >&6
27410 else
27411   ac_check_lib_save_LIBS=$LIBS
27412 LIBS="-lresolv  $LIBS"
27413 cat >conftest.$ac_ext <<_ACEOF
27414 /* confdefs.h.  */
27415 _ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h.  */
27419
27420 /* Override any GCC internal prototype to avoid an error.
27421    Use char because int might match the return type of a GCC
27422    builtin and then its argument prototype would still apply.  */
27423 #ifdef __cplusplus
27424 extern "C"
27425 #endif
27426 char gethostbyname_r ();
27427 int
27428 main ()
27429 {
27430 return gethostbyname_r ();
27431   ;
27432   return 0;
27433 }
27434 _ACEOF
27435 rm -f conftest.$ac_objext conftest$ac_exeext
27436 if { (ac_try="$ac_link"
27437 case "(($ac_try" in
27438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439   *) ac_try_echo=$ac_try;;
27440 esac
27441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442   (eval "$ac_link") 2>conftest.er1
27443   ac_status=$?
27444   grep -v '^ *+' conftest.er1 >conftest.err
27445   rm -f conftest.er1
27446   cat conftest.err >&5
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); } && {
27449          test -z "$ac_c_werror_flag" ||
27450          test ! -s conftest.err
27451        } && test -s conftest$ac_exeext &&
27452        $as_test_x conftest$ac_exeext; then
27453   ac_cv_lib_resolv_gethostbyname_r=yes
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458         ac_cv_lib_resolv_gethostbyname_r=no
27459 fi
27460
27461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27462       conftest$ac_exeext conftest.$ac_ext
27463 LIBS=$ac_check_lib_save_LIBS
27464 fi
27465 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27466 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27467 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27468   cat >>confdefs.h <<_ACEOF
27469 #define HAVE_LIBRESOLV 1
27470 _ACEOF
27471
27472   LIBS="-lresolv $LIBS"
27473
27474 fi
27475
27476 fi
27477
27478
27479
27480
27481
27482 for ac_func in inet_pton
27483 do
27484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27488   echo $ECHO_N "(cached) $ECHO_C" >&6
27489 else
27490   cat >conftest.$ac_ext <<_ACEOF
27491 /* confdefs.h.  */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h.  */
27496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27498 #define $ac_func innocuous_$ac_func
27499
27500 /* System header to define __stub macros and hopefully few prototypes,
27501     which can conflict with char $ac_func (); below.
27502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27503     <limits.h> exists even on freestanding compilers.  */
27504
27505 #ifdef __STDC__
27506 # include <limits.h>
27507 #else
27508 # include <assert.h>
27509 #endif
27510
27511 #undef $ac_func
27512
27513 /* Override any GCC internal prototype to avoid an error.
27514    Use char because int might match the return type of a GCC
27515    builtin and then its argument prototype would still apply.  */
27516 #ifdef __cplusplus
27517 extern "C"
27518 #endif
27519 char $ac_func ();
27520 /* The GNU C library defines this for functions which it implements
27521     to always fail with ENOSYS.  Some functions are actually named
27522     something starting with __ and the normal name is an alias.  */
27523 #if defined __stub_$ac_func || defined __stub___$ac_func
27524 choke me
27525 #endif
27526
27527 int
27528 main ()
27529 {
27530 return $ac_func ();
27531   ;
27532   return 0;
27533 }
27534 _ACEOF
27535 rm -f conftest.$ac_objext conftest$ac_exeext
27536 if { (ac_try="$ac_link"
27537 case "(($ac_try" in
27538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539   *) ac_try_echo=$ac_try;;
27540 esac
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542   (eval "$ac_link") 2>conftest.er1
27543   ac_status=$?
27544   grep -v '^ *+' conftest.er1 >conftest.err
27545   rm -f conftest.er1
27546   cat conftest.err >&5
27547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548   (exit $ac_status); } && {
27549          test -z "$ac_c_werror_flag" ||
27550          test ! -s conftest.err
27551        } && test -s conftest$ac_exeext &&
27552        $as_test_x conftest$ac_exeext; then
27553   eval "$as_ac_var=yes"
27554 else
27555   echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27557
27558         eval "$as_ac_var=no"
27559 fi
27560
27561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27562       conftest$ac_exeext conftest.$ac_ext
27563 fi
27564 ac_res=`eval echo '${'$as_ac_var'}'`
27565                { echo "$as_me:$LINENO: result: $ac_res" >&5
27566 echo "${ECHO_T}$ac_res" >&6; }
27567 if test `eval echo '${'$as_ac_var'}'` = yes; then
27568   cat >>confdefs.h <<_ACEOF
27569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27570 _ACEOF
27571  cat >>confdefs.h <<\_ACEOF
27572 #define HAVE_INET_PTON 1
27573 _ACEOF
27574
27575 fi
27576 done
27577
27578
27579 for ac_func in inet_ntop
27580 do
27581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27585   echo $ECHO_N "(cached) $ECHO_C" >&6
27586 else
27587   cat >conftest.$ac_ext <<_ACEOF
27588 /* confdefs.h.  */
27589 _ACEOF
27590 cat confdefs.h >>conftest.$ac_ext
27591 cat >>conftest.$ac_ext <<_ACEOF
27592 /* end confdefs.h.  */
27593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27595 #define $ac_func innocuous_$ac_func
27596
27597 /* System header to define __stub macros and hopefully few prototypes,
27598     which can conflict with char $ac_func (); below.
27599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27600     <limits.h> exists even on freestanding compilers.  */
27601
27602 #ifdef __STDC__
27603 # include <limits.h>
27604 #else
27605 # include <assert.h>
27606 #endif
27607
27608 #undef $ac_func
27609
27610 /* Override any GCC internal prototype to avoid an error.
27611    Use char because int might match the return type of a GCC
27612    builtin and then its argument prototype would still apply.  */
27613 #ifdef __cplusplus
27614 extern "C"
27615 #endif
27616 char $ac_func ();
27617 /* The GNU C library defines this for functions which it implements
27618     to always fail with ENOSYS.  Some functions are actually named
27619     something starting with __ and the normal name is an alias.  */
27620 #if defined __stub_$ac_func || defined __stub___$ac_func
27621 choke me
27622 #endif
27623
27624 int
27625 main ()
27626 {
27627 return $ac_func ();
27628   ;
27629   return 0;
27630 }
27631 _ACEOF
27632 rm -f conftest.$ac_objext conftest$ac_exeext
27633 if { (ac_try="$ac_link"
27634 case "(($ac_try" in
27635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636   *) ac_try_echo=$ac_try;;
27637 esac
27638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27639   (eval "$ac_link") 2>conftest.er1
27640   ac_status=$?
27641   grep -v '^ *+' conftest.er1 >conftest.err
27642   rm -f conftest.er1
27643   cat conftest.err >&5
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); } && {
27646          test -z "$ac_c_werror_flag" ||
27647          test ! -s conftest.err
27648        } && test -s conftest$ac_exeext &&
27649        $as_test_x conftest$ac_exeext; then
27650   eval "$as_ac_var=yes"
27651 else
27652   echo "$as_me: failed program was:" >&5
27653 sed 's/^/| /' conftest.$ac_ext >&5
27654
27655         eval "$as_ac_var=no"
27656 fi
27657
27658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27659       conftest$ac_exeext conftest.$ac_ext
27660 fi
27661 ac_res=`eval echo '${'$as_ac_var'}'`
27662                { echo "$as_me:$LINENO: result: $ac_res" >&5
27663 echo "${ECHO_T}$ac_res" >&6; }
27664 if test `eval echo '${'$as_ac_var'}'` = yes; then
27665   cat >>confdefs.h <<_ACEOF
27666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27667 _ACEOF
27668  cat >>confdefs.h <<\_ACEOF
27669 #define HAVE_INET_NTOP 1
27670 _ACEOF
27671
27672 fi
27673 done
27674
27675
27676 for ac_func in gethostbyname2
27677 do
27678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27682   echo $ECHO_N "(cached) $ECHO_C" >&6
27683 else
27684   cat >conftest.$ac_ext <<_ACEOF
27685 /* confdefs.h.  */
27686 _ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h.  */
27690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27692 #define $ac_func innocuous_$ac_func
27693
27694 /* System header to define __stub macros and hopefully few prototypes,
27695     which can conflict with char $ac_func (); below.
27696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27697     <limits.h> exists even on freestanding compilers.  */
27698
27699 #ifdef __STDC__
27700 # include <limits.h>
27701 #else
27702 # include <assert.h>
27703 #endif
27704
27705 #undef $ac_func
27706
27707 /* Override any GCC internal prototype to avoid an error.
27708    Use char because int might match the return type of a GCC
27709    builtin and then its argument prototype would still apply.  */
27710 #ifdef __cplusplus
27711 extern "C"
27712 #endif
27713 char $ac_func ();
27714 /* The GNU C library defines this for functions which it implements
27715     to always fail with ENOSYS.  Some functions are actually named
27716     something starting with __ and the normal name is an alias.  */
27717 #if defined __stub_$ac_func || defined __stub___$ac_func
27718 choke me
27719 #endif
27720
27721 int
27722 main ()
27723 {
27724 return $ac_func ();
27725   ;
27726   return 0;
27727 }
27728 _ACEOF
27729 rm -f conftest.$ac_objext conftest$ac_exeext
27730 if { (ac_try="$ac_link"
27731 case "(($ac_try" in
27732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27733   *) ac_try_echo=$ac_try;;
27734 esac
27735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736   (eval "$ac_link") 2>conftest.er1
27737   ac_status=$?
27738   grep -v '^ *+' conftest.er1 >conftest.err
27739   rm -f conftest.er1
27740   cat conftest.err >&5
27741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742   (exit $ac_status); } && {
27743          test -z "$ac_c_werror_flag" ||
27744          test ! -s conftest.err
27745        } && test -s conftest$ac_exeext &&
27746        $as_test_x conftest$ac_exeext; then
27747   eval "$as_ac_var=yes"
27748 else
27749   echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27751
27752         eval "$as_ac_var=no"
27753 fi
27754
27755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27756       conftest$ac_exeext conftest.$ac_ext
27757 fi
27758 ac_res=`eval echo '${'$as_ac_var'}'`
27759                { echo "$as_me:$LINENO: result: $ac_res" >&5
27760 echo "${ECHO_T}$ac_res" >&6; }
27761 if test `eval echo '${'$as_ac_var'}'` = yes; then
27762   cat >>confdefs.h <<_ACEOF
27763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27764 _ACEOF
27765  cat >>confdefs.h <<\_ACEOF
27766 #define HAVE_GETHOSTBYNAME2 1
27767 _ACEOF
27768
27769 fi
27770 done
27771
27772
27773 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27774 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27775 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27776   echo $ECHO_N "(cached) $ECHO_C" >&6
27777 else
27778   cat >conftest.$ac_ext <<_ACEOF
27779 /* confdefs.h.  */
27780 _ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h.  */
27784 #include <sys/socket.h>
27785 int
27786 main ()
27787 {
27788 struct sockaddr s; s.sa_len;
27789   ;
27790   return 0;
27791 }
27792 _ACEOF
27793 rm -f conftest.$ac_objext
27794 if { (ac_try="$ac_compile"
27795 case "(($ac_try" in
27796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797   *) ac_try_echo=$ac_try;;
27798 esac
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800   (eval "$ac_compile") 2>conftest.er1
27801   ac_status=$?
27802   grep -v '^ *+' conftest.er1 >conftest.err
27803   rm -f conftest.er1
27804   cat conftest.err >&5
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); } && {
27807          test -z "$ac_c_werror_flag" ||
27808          test ! -s conftest.err
27809        } && test -s conftest.$ac_objext; then
27810   ac_cv_struct_sockaddr_sa_len=yes
27811 else
27812   echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815         ac_cv_struct_sockaddr_sa_len=no
27816 fi
27817
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27819 fi
27820 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27821 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27822
27823  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27824
27825 cat >>confdefs.h <<\_ACEOF
27826 #define HAVE_SA_LEN 1
27827 _ACEOF
27828
27829  fi
27830
27831
27832
27833
27834
27835 for ac_func in strftime
27836 do
27837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27841   echo $ECHO_N "(cached) $ECHO_C" >&6
27842 else
27843   cat >conftest.$ac_ext <<_ACEOF
27844 /* confdefs.h.  */
27845 _ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h.  */
27849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27851 #define $ac_func innocuous_$ac_func
27852
27853 /* System header to define __stub macros and hopefully few prototypes,
27854     which can conflict with char $ac_func (); below.
27855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27856     <limits.h> exists even on freestanding compilers.  */
27857
27858 #ifdef __STDC__
27859 # include <limits.h>
27860 #else
27861 # include <assert.h>
27862 #endif
27863
27864 #undef $ac_func
27865
27866 /* Override any GCC internal prototype to avoid an error.
27867    Use char because int might match the return type of a GCC
27868    builtin and then its argument prototype would still apply.  */
27869 #ifdef __cplusplus
27870 extern "C"
27871 #endif
27872 char $ac_func ();
27873 /* The GNU C library defines this for functions which it implements
27874     to always fail with ENOSYS.  Some functions are actually named
27875     something starting with __ and the normal name is an alias.  */
27876 #if defined __stub_$ac_func || defined __stub___$ac_func
27877 choke me
27878 #endif
27879
27880 int
27881 main ()
27882 {
27883 return $ac_func ();
27884   ;
27885   return 0;
27886 }
27887 _ACEOF
27888 rm -f conftest.$ac_objext conftest$ac_exeext
27889 if { (ac_try="$ac_link"
27890 case "(($ac_try" in
27891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892   *) ac_try_echo=$ac_try;;
27893 esac
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895   (eval "$ac_link") 2>conftest.er1
27896   ac_status=$?
27897   grep -v '^ *+' conftest.er1 >conftest.err
27898   rm -f conftest.er1
27899   cat conftest.err >&5
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); } && {
27902          test -z "$ac_c_werror_flag" ||
27903          test ! -s conftest.err
27904        } && test -s conftest$ac_exeext &&
27905        $as_test_x conftest$ac_exeext; then
27906   eval "$as_ac_var=yes"
27907 else
27908   echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27910
27911         eval "$as_ac_var=no"
27912 fi
27913
27914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27915       conftest$ac_exeext conftest.$ac_ext
27916 fi
27917 ac_res=`eval echo '${'$as_ac_var'}'`
27918                { echo "$as_me:$LINENO: result: $ac_res" >&5
27919 echo "${ECHO_T}$ac_res" >&6; }
27920 if test `eval echo '${'$as_ac_var'}'` = yes; then
27921   cat >>confdefs.h <<_ACEOF
27922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27923 _ACEOF
27924
27925 else
27926   # strftime is in -lintl on SCO UNIX.
27927 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27928 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27929 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27930   echo $ECHO_N "(cached) $ECHO_C" >&6
27931 else
27932   ac_check_lib_save_LIBS=$LIBS
27933 LIBS="-lintl  $LIBS"
27934 cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940
27941 /* Override any GCC internal prototype to avoid an error.
27942    Use char because int might match the return type of a GCC
27943    builtin and then its argument prototype would still apply.  */
27944 #ifdef __cplusplus
27945 extern "C"
27946 #endif
27947 char strftime ();
27948 int
27949 main ()
27950 {
27951 return strftime ();
27952   ;
27953   return 0;
27954 }
27955 _ACEOF
27956 rm -f conftest.$ac_objext conftest$ac_exeext
27957 if { (ac_try="$ac_link"
27958 case "(($ac_try" in
27959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960   *) ac_try_echo=$ac_try;;
27961 esac
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963   (eval "$ac_link") 2>conftest.er1
27964   ac_status=$?
27965   grep -v '^ *+' conftest.er1 >conftest.err
27966   rm -f conftest.er1
27967   cat conftest.err >&5
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); } && {
27970          test -z "$ac_c_werror_flag" ||
27971          test ! -s conftest.err
27972        } && test -s conftest$ac_exeext &&
27973        $as_test_x conftest$ac_exeext; then
27974   ac_cv_lib_intl_strftime=yes
27975 else
27976   echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27978
27979         ac_cv_lib_intl_strftime=no
27980 fi
27981
27982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27983       conftest$ac_exeext conftest.$ac_ext
27984 LIBS=$ac_check_lib_save_LIBS
27985 fi
27986 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27987 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
27988 if test $ac_cv_lib_intl_strftime = yes; then
27989   cat >>confdefs.h <<\_ACEOF
27990 #define HAVE_STRFTIME 1
27991 _ACEOF
27992
27993 LIBS="-lintl $LIBS"
27994 fi
27995
27996 fi
27997 done
27998
27999
28000 for ac_func in vprintf
28001 do
28002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28006   echo $ECHO_N "(cached) $ECHO_C" >&6
28007 else
28008   cat >conftest.$ac_ext <<_ACEOF
28009 /* confdefs.h.  */
28010 _ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h.  */
28014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28016 #define $ac_func innocuous_$ac_func
28017
28018 /* System header to define __stub macros and hopefully few prototypes,
28019     which can conflict with char $ac_func (); below.
28020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28021     <limits.h> exists even on freestanding compilers.  */
28022
28023 #ifdef __STDC__
28024 # include <limits.h>
28025 #else
28026 # include <assert.h>
28027 #endif
28028
28029 #undef $ac_func
28030
28031 /* Override any GCC internal prototype to avoid an error.
28032    Use char because int might match the return type of a GCC
28033    builtin and then its argument prototype would still apply.  */
28034 #ifdef __cplusplus
28035 extern "C"
28036 #endif
28037 char $ac_func ();
28038 /* The GNU C library defines this for functions which it implements
28039     to always fail with ENOSYS.  Some functions are actually named
28040     something starting with __ and the normal name is an alias.  */
28041 #if defined __stub_$ac_func || defined __stub___$ac_func
28042 choke me
28043 #endif
28044
28045 int
28046 main ()
28047 {
28048 return $ac_func ();
28049   ;
28050   return 0;
28051 }
28052 _ACEOF
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (ac_try="$ac_link"
28055 case "(($ac_try" in
28056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057   *) ac_try_echo=$ac_try;;
28058 esac
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060   (eval "$ac_link") 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } && {
28067          test -z "$ac_c_werror_flag" ||
28068          test ! -s conftest.err
28069        } && test -s conftest$ac_exeext &&
28070        $as_test_x conftest$ac_exeext; then
28071   eval "$as_ac_var=yes"
28072 else
28073   echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28075
28076         eval "$as_ac_var=no"
28077 fi
28078
28079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28080       conftest$ac_exeext conftest.$ac_ext
28081 fi
28082 ac_res=`eval echo '${'$as_ac_var'}'`
28083                { echo "$as_me:$LINENO: result: $ac_res" >&5
28084 echo "${ECHO_T}$ac_res" >&6; }
28085 if test `eval echo '${'$as_ac_var'}'` = yes; then
28086   cat >>confdefs.h <<_ACEOF
28087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28088 _ACEOF
28089
28090 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28091 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28092 if test "${ac_cv_func__doprnt+set}" = set; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095   cat >conftest.$ac_ext <<_ACEOF
28096 /* confdefs.h.  */
28097 _ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h.  */
28101 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28103 #define _doprnt innocuous__doprnt
28104
28105 /* System header to define __stub macros and hopefully few prototypes,
28106     which can conflict with char _doprnt (); below.
28107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28108     <limits.h> exists even on freestanding compilers.  */
28109
28110 #ifdef __STDC__
28111 # include <limits.h>
28112 #else
28113 # include <assert.h>
28114 #endif
28115
28116 #undef _doprnt
28117
28118 /* Override any GCC internal prototype to avoid an error.
28119    Use char because int might match the return type of a GCC
28120    builtin and then its argument prototype would still apply.  */
28121 #ifdef __cplusplus
28122 extern "C"
28123 #endif
28124 char _doprnt ();
28125 /* The GNU C library defines this for functions which it implements
28126     to always fail with ENOSYS.  Some functions are actually named
28127     something starting with __ and the normal name is an alias.  */
28128 #if defined __stub__doprnt || defined __stub____doprnt
28129 choke me
28130 #endif
28131
28132 int
28133 main ()
28134 {
28135 return _doprnt ();
28136   ;
28137   return 0;
28138 }
28139 _ACEOF
28140 rm -f conftest.$ac_objext conftest$ac_exeext
28141 if { (ac_try="$ac_link"
28142 case "(($ac_try" in
28143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144   *) ac_try_echo=$ac_try;;
28145 esac
28146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147   (eval "$ac_link") 2>conftest.er1
28148   ac_status=$?
28149   grep -v '^ *+' conftest.er1 >conftest.err
28150   rm -f conftest.er1
28151   cat conftest.err >&5
28152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153   (exit $ac_status); } && {
28154          test -z "$ac_c_werror_flag" ||
28155          test ! -s conftest.err
28156        } && test -s conftest$ac_exeext &&
28157        $as_test_x conftest$ac_exeext; then
28158   ac_cv_func__doprnt=yes
28159 else
28160   echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28162
28163         ac_cv_func__doprnt=no
28164 fi
28165
28166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28167       conftest$ac_exeext conftest.$ac_ext
28168 fi
28169 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28170 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28171 if test $ac_cv_func__doprnt = yes; then
28172
28173 cat >>confdefs.h <<\_ACEOF
28174 #define HAVE_DOPRNT 1
28175 _ACEOF
28176
28177 fi
28178
28179 fi
28180 done
28181
28182
28183 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28184 # for constant arguments.  Useless!
28185 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28186 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28187 if test "${ac_cv_working_alloca_h+set}" = set; then
28188   echo $ECHO_N "(cached) $ECHO_C" >&6
28189 else
28190   cat >conftest.$ac_ext <<_ACEOF
28191 /* confdefs.h.  */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h.  */
28196 #include <alloca.h>
28197 int
28198 main ()
28199 {
28200 char *p = (char *) alloca (2 * sizeof (int));
28201                           if (p) return 0;
28202   ;
28203   return 0;
28204 }
28205 _ACEOF
28206 rm -f conftest.$ac_objext conftest$ac_exeext
28207 if { (ac_try="$ac_link"
28208 case "(($ac_try" in
28209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28210   *) ac_try_echo=$ac_try;;
28211 esac
28212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213   (eval "$ac_link") 2>conftest.er1
28214   ac_status=$?
28215   grep -v '^ *+' conftest.er1 >conftest.err
28216   rm -f conftest.er1
28217   cat conftest.err >&5
28218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); } && {
28220          test -z "$ac_c_werror_flag" ||
28221          test ! -s conftest.err
28222        } && test -s conftest$ac_exeext &&
28223        $as_test_x conftest$ac_exeext; then
28224   ac_cv_working_alloca_h=yes
28225 else
28226   echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28228
28229         ac_cv_working_alloca_h=no
28230 fi
28231
28232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28233       conftest$ac_exeext conftest.$ac_ext
28234 fi
28235 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28237 if test $ac_cv_working_alloca_h = yes; then
28238
28239 cat >>confdefs.h <<\_ACEOF
28240 #define HAVE_ALLOCA_H 1
28241 _ACEOF
28242
28243 fi
28244
28245 { echo "$as_me:$LINENO: checking for alloca" >&5
28246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28247 if test "${ac_cv_func_alloca_works+set}" = set; then
28248   echo $ECHO_N "(cached) $ECHO_C" >&6
28249 else
28250   cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h.  */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h.  */
28256 #ifdef __GNUC__
28257 # define alloca __builtin_alloca
28258 #else
28259 # ifdef _MSC_VER
28260 #  include <malloc.h>
28261 #  define alloca _alloca
28262 # else
28263 #  ifdef HAVE_ALLOCA_H
28264 #   include <alloca.h>
28265 #  else
28266 #   ifdef _AIX
28267  #pragma alloca
28268 #   else
28269 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28270 char *alloca ();
28271 #    endif
28272 #   endif
28273 #  endif
28274 # endif
28275 #endif
28276
28277 int
28278 main ()
28279 {
28280 char *p = (char *) alloca (1);
28281                                     if (p) return 0;
28282   ;
28283   return 0;
28284 }
28285 _ACEOF
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (ac_try="$ac_link"
28288 case "(($ac_try" in
28289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290   *) ac_try_echo=$ac_try;;
28291 esac
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293   (eval "$ac_link") 2>conftest.er1
28294   ac_status=$?
28295   grep -v '^ *+' conftest.er1 >conftest.err
28296   rm -f conftest.er1
28297   cat conftest.err >&5
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); } && {
28300          test -z "$ac_c_werror_flag" ||
28301          test ! -s conftest.err
28302        } && test -s conftest$ac_exeext &&
28303        $as_test_x conftest$ac_exeext; then
28304   ac_cv_func_alloca_works=yes
28305 else
28306   echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28308
28309         ac_cv_func_alloca_works=no
28310 fi
28311
28312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28313       conftest$ac_exeext conftest.$ac_ext
28314 fi
28315 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28316 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28317
28318 if test $ac_cv_func_alloca_works = yes; then
28319
28320 cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_ALLOCA 1
28322 _ACEOF
28323
28324 else
28325   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28326 # that cause trouble.  Some versions do not even contain alloca or
28327 # contain a buggy version.  If you still want to use their alloca,
28328 # use ar to extract alloca.o from them instead of compiling alloca.c.
28329
28330 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28331
28332 cat >>confdefs.h <<\_ACEOF
28333 #define C_ALLOCA 1
28334 _ACEOF
28335
28336
28337 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28338 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28339 if test "${ac_cv_os_cray+set}" = set; then
28340   echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342   cat >conftest.$ac_ext <<_ACEOF
28343 /* confdefs.h.  */
28344 _ACEOF
28345 cat confdefs.h >>conftest.$ac_ext
28346 cat >>conftest.$ac_ext <<_ACEOF
28347 /* end confdefs.h.  */
28348 #if defined CRAY && ! defined CRAY2
28349 webecray
28350 #else
28351 wenotbecray
28352 #endif
28353
28354 _ACEOF
28355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28356   $EGREP "webecray" >/dev/null 2>&1; then
28357   ac_cv_os_cray=yes
28358 else
28359   ac_cv_os_cray=no
28360 fi
28361 rm -f conftest*
28362
28363 fi
28364 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28365 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28366 if test $ac_cv_os_cray = yes; then
28367   for ac_func in _getb67 GETB67 getb67; do
28368     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28372   echo $ECHO_N "(cached) $ECHO_C" >&6
28373 else
28374   cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28382 #define $ac_func innocuous_$ac_func
28383
28384 /* System header to define __stub macros and hopefully few prototypes,
28385     which can conflict with char $ac_func (); below.
28386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28387     <limits.h> exists even on freestanding compilers.  */
28388
28389 #ifdef __STDC__
28390 # include <limits.h>
28391 #else
28392 # include <assert.h>
28393 #endif
28394
28395 #undef $ac_func
28396
28397 /* Override any GCC internal prototype to avoid an error.
28398    Use char because int might match the return type of a GCC
28399    builtin and then its argument prototype would still apply.  */
28400 #ifdef __cplusplus
28401 extern "C"
28402 #endif
28403 char $ac_func ();
28404 /* The GNU C library defines this for functions which it implements
28405     to always fail with ENOSYS.  Some functions are actually named
28406     something starting with __ and the normal name is an alias.  */
28407 #if defined __stub_$ac_func || defined __stub___$ac_func
28408 choke me
28409 #endif
28410
28411 int
28412 main ()
28413 {
28414 return $ac_func ();
28415   ;
28416   return 0;
28417 }
28418 _ACEOF
28419 rm -f conftest.$ac_objext conftest$ac_exeext
28420 if { (ac_try="$ac_link"
28421 case "(($ac_try" in
28422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423   *) ac_try_echo=$ac_try;;
28424 esac
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426   (eval "$ac_link") 2>conftest.er1
28427   ac_status=$?
28428   grep -v '^ *+' conftest.er1 >conftest.err
28429   rm -f conftest.er1
28430   cat conftest.err >&5
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); } && {
28433          test -z "$ac_c_werror_flag" ||
28434          test ! -s conftest.err
28435        } && test -s conftest$ac_exeext &&
28436        $as_test_x conftest$ac_exeext; then
28437   eval "$as_ac_var=yes"
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442         eval "$as_ac_var=no"
28443 fi
28444
28445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28446       conftest$ac_exeext conftest.$ac_ext
28447 fi
28448 ac_res=`eval echo '${'$as_ac_var'}'`
28449                { echo "$as_me:$LINENO: result: $ac_res" >&5
28450 echo "${ECHO_T}$ac_res" >&6; }
28451 if test `eval echo '${'$as_ac_var'}'` = yes; then
28452
28453 cat >>confdefs.h <<_ACEOF
28454 #define CRAY_STACKSEG_END $ac_func
28455 _ACEOF
28456
28457     break
28458 fi
28459
28460   done
28461 fi
28462
28463 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28464 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28465 if test "${ac_cv_c_stack_direction+set}" = set; then
28466   echo $ECHO_N "(cached) $ECHO_C" >&6
28467 else
28468   if test "$cross_compiling" = yes; then
28469   ac_cv_c_stack_direction=0
28470 else
28471   cat >conftest.$ac_ext <<_ACEOF
28472 /* confdefs.h.  */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h.  */
28477 $ac_includes_default
28478 int
28479 find_stack_direction ()
28480 {
28481   static char *addr = 0;
28482   auto char dummy;
28483   if (addr == 0)
28484     {
28485       addr = &dummy;
28486       return find_stack_direction ();
28487     }
28488   else
28489     return (&dummy > addr) ? 1 : -1;
28490 }
28491
28492 int
28493 main ()
28494 {
28495   return find_stack_direction () < 0;
28496 }
28497 _ACEOF
28498 rm -f conftest$ac_exeext
28499 if { (ac_try="$ac_link"
28500 case "(($ac_try" in
28501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502   *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505   (eval "$ac_link") 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28509   { (case "(($ac_try" in
28510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511   *) ac_try_echo=$ac_try;;
28512 esac
28513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514   (eval "$ac_try") 2>&5
28515   ac_status=$?
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); }; }; then
28518   ac_cv_c_stack_direction=1
28519 else
28520   echo "$as_me: program exited with status $ac_status" >&5
28521 echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28523
28524 ( exit $ac_status )
28525 ac_cv_c_stack_direction=-1
28526 fi
28527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28528 fi
28529
28530
28531 fi
28532 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28533 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28534
28535 cat >>confdefs.h <<_ACEOF
28536 #define STACK_DIRECTION $ac_cv_c_stack_direction
28537 _ACEOF
28538
28539
28540 fi
28541
28542 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28543 # -lseq on Dynix/PTX, -lgen on Unixware.
28544 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28545 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28546 if test "${ac_cv_search_getmntent+set}" = set; then
28547   echo $ECHO_N "(cached) $ECHO_C" >&6
28548 else
28549   ac_func_search_save_LIBS=$LIBS
28550 cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556
28557 /* Override any GCC internal prototype to avoid an error.
28558    Use char because int might match the return type of a GCC
28559    builtin and then its argument prototype would still apply.  */
28560 #ifdef __cplusplus
28561 extern "C"
28562 #endif
28563 char getmntent ();
28564 int
28565 main ()
28566 {
28567 return getmntent ();
28568   ;
28569   return 0;
28570 }
28571 _ACEOF
28572 for ac_lib in '' sun seq gen; do
28573   if test -z "$ac_lib"; then
28574     ac_res="none required"
28575   else
28576     ac_res=-l$ac_lib
28577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28578   fi
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_search_getmntent=$ac_res
28598 else
28599   echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28601
28602
28603 fi
28604
28605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28606       conftest$ac_exeext
28607   if test "${ac_cv_search_getmntent+set}" = set; then
28608   break
28609 fi
28610 done
28611 if test "${ac_cv_search_getmntent+set}" = set; then
28612   :
28613 else
28614   ac_cv_search_getmntent=no
28615 fi
28616 rm conftest.$ac_ext
28617 LIBS=$ac_func_search_save_LIBS
28618 fi
28619 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28620 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28621 ac_res=$ac_cv_search_getmntent
28622 if test "$ac_res" != no; then
28623   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28624   ac_cv_func_getmntent=yes
28625
28626 cat >>confdefs.h <<\_ACEOF
28627 #define HAVE_GETMNTENT 1
28628 _ACEOF
28629
28630 else
28631   ac_cv_func_getmntent=no
28632 fi
28633
28634
28635 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28636 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28637 if test "${ac_cv_func_closedir_void+set}" = set; then
28638   echo $ECHO_N "(cached) $ECHO_C" >&6
28639 else
28640   if test "$cross_compiling" = yes; then
28641   ac_cv_func_closedir_void=yes
28642 else
28643   cat >conftest.$ac_ext <<_ACEOF
28644 /* confdefs.h.  */
28645 _ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h.  */
28649 $ac_includes_default
28650 #include <$ac_header_dirent>
28651 #ifndef __cplusplus
28652 int closedir ();
28653 #endif
28654
28655 int
28656 main ()
28657 {
28658 return closedir (opendir (".")) != 0;
28659   ;
28660   return 0;
28661 }
28662 _ACEOF
28663 rm -f conftest$ac_exeext
28664 if { (ac_try="$ac_link"
28665 case "(($ac_try" in
28666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667   *) ac_try_echo=$ac_try;;
28668 esac
28669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670   (eval "$ac_link") 2>&5
28671   ac_status=$?
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28674   { (case "(($ac_try" in
28675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676   *) ac_try_echo=$ac_try;;
28677 esac
28678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679   (eval "$ac_try") 2>&5
28680   ac_status=$?
28681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682   (exit $ac_status); }; }; then
28683   ac_cv_func_closedir_void=no
28684 else
28685   echo "$as_me: program exited with status $ac_status" >&5
28686 echo "$as_me: failed program was:" >&5
28687 sed 's/^/| /' conftest.$ac_ext >&5
28688
28689 ( exit $ac_status )
28690 ac_cv_func_closedir_void=yes
28691 fi
28692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28693 fi
28694
28695
28696 fi
28697 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28698 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28699 if test $ac_cv_func_closedir_void = yes; then
28700
28701 cat >>confdefs.h <<\_ACEOF
28702 #define CLOSEDIR_VOID 1
28703 _ACEOF
28704
28705 fi
28706
28707 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28708 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28709 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28710   echo $ECHO_N "(cached) $ECHO_C" >&6
28711 else
28712   if test "$cross_compiling" = yes; then
28713   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28714 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28715    { (exit 1); exit 1; }; }
28716 else
28717   cat >conftest.$ac_ext <<_ACEOF
28718 /* confdefs.h.  */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h.  */
28723 $ac_includes_default
28724 int
28725 main ()
28726 {
28727 /* If this system has a BSD-style setpgrp which takes arguments,
28728   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28729   exit successfully. */
28730   return setpgrp (1,1) != -1;
28731   ;
28732   return 0;
28733 }
28734 _ACEOF
28735 rm -f conftest$ac_exeext
28736 if { (ac_try="$ac_link"
28737 case "(($ac_try" in
28738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739   *) ac_try_echo=$ac_try;;
28740 esac
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742   (eval "$ac_link") 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28746   { (case "(($ac_try" in
28747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748   *) ac_try_echo=$ac_try;;
28749 esac
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751   (eval "$ac_try") 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; }; then
28755   ac_cv_func_setpgrp_void=no
28756 else
28757   echo "$as_me: program exited with status $ac_status" >&5
28758 echo "$as_me: failed program was:" >&5
28759 sed 's/^/| /' conftest.$ac_ext >&5
28760
28761 ( exit $ac_status )
28762 ac_cv_func_setpgrp_void=yes
28763 fi
28764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28765 fi
28766
28767
28768 fi
28769 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28770 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28771 if test $ac_cv_func_setpgrp_void = yes; then
28772
28773 cat >>confdefs.h <<\_ACEOF
28774 #define SETPGRP_VOID 1
28775 _ACEOF
28776
28777 fi
28778                       # AC_FUNC_FNMATCH    dnl use local version
28779
28780
28781 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28782 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28783 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28784   echo $ECHO_N "(cached) $ECHO_C" >&6
28785 else
28786   ac_check_lib_save_LIBS=$LIBS
28787 LIBS="-lintl  $LIBS"
28788 cat >conftest.$ac_ext <<_ACEOF
28789 /* confdefs.h.  */
28790 _ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h.  */
28794
28795 /* Override any GCC internal prototype to avoid an error.
28796    Use char because int might match the return type of a GCC
28797    builtin and then its argument prototype would still apply.  */
28798 #ifdef __cplusplus
28799 extern "C"
28800 #endif
28801 char gettext ();
28802 int
28803 main ()
28804 {
28805 return gettext ();
28806   ;
28807   return 0;
28808 }
28809 _ACEOF
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (ac_try="$ac_link"
28812 case "(($ac_try" in
28813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814   *) ac_try_echo=$ac_try;;
28815 esac
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817   (eval "$ac_link") 2>conftest.er1
28818   ac_status=$?
28819   grep -v '^ *+' conftest.er1 >conftest.err
28820   rm -f conftest.er1
28821   cat conftest.err >&5
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); } && {
28824          test -z "$ac_c_werror_flag" ||
28825          test ! -s conftest.err
28826        } && test -s conftest$ac_exeext &&
28827        $as_test_x conftest$ac_exeext; then
28828   ac_cv_lib_intl_gettext=yes
28829 else
28830   echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28832
28833         ac_cv_lib_intl_gettext=no
28834 fi
28835
28836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28837       conftest$ac_exeext conftest.$ac_ext
28838 LIBS=$ac_check_lib_save_LIBS
28839 fi
28840 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28841 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28842 if test $ac_cv_lib_intl_gettext = yes; then
28843   LIBS="$LIBS -lintl"
28844 fi
28845
28846
28847
28848
28849 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28850 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28851 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28852   echo $ECHO_N "(cached) $ECHO_C" >&6
28853 else
28854   ac_check_lib_save_LIBS=$LIBS
28855 LIBS="-lsun  $LIBS"
28856 cat >conftest.$ac_ext <<_ACEOF
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862
28863 /* Override any GCC internal prototype to avoid an error.
28864    Use char because int might match the return type of a GCC
28865    builtin and then its argument prototype would still apply.  */
28866 #ifdef __cplusplus
28867 extern "C"
28868 #endif
28869 char getpwnam ();
28870 int
28871 main ()
28872 {
28873 return getpwnam ();
28874   ;
28875   return 0;
28876 }
28877 _ACEOF
28878 rm -f conftest.$ac_objext conftest$ac_exeext
28879 if { (ac_try="$ac_link"
28880 case "(($ac_try" in
28881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882   *) ac_try_echo=$ac_try;;
28883 esac
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885   (eval "$ac_link") 2>conftest.er1
28886   ac_status=$?
28887   grep -v '^ *+' conftest.er1 >conftest.err
28888   rm -f conftest.er1
28889   cat conftest.err >&5
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); } && {
28892          test -z "$ac_c_werror_flag" ||
28893          test ! -s conftest.err
28894        } && test -s conftest$ac_exeext &&
28895        $as_test_x conftest$ac_exeext; then
28896   ac_cv_lib_sun_getpwnam=yes
28897 else
28898   echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28900
28901         ac_cv_lib_sun_getpwnam=no
28902 fi
28903
28904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28905       conftest$ac_exeext conftest.$ac_ext
28906 LIBS=$ac_check_lib_save_LIBS
28907 fi
28908 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28909 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28910 if test $ac_cv_lib_sun_getpwnam = yes; then
28911   cat >>confdefs.h <<_ACEOF
28912 #define HAVE_LIBSUN 1
28913 _ACEOF
28914
28915   LIBS="-lsun $LIBS"
28916
28917 fi
28918
28919
28920
28921 for ac_header in zlib.h
28922 do
28923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28925   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28928   echo $ECHO_N "(cached) $ECHO_C" >&6
28929 fi
28930 ac_res=`eval echo '${'$as_ac_Header'}'`
28931                { echo "$as_me:$LINENO: result: $ac_res" >&5
28932 echo "${ECHO_T}$ac_res" >&6; }
28933 else
28934   # Is the header compilable?
28935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28937 cat >conftest.$ac_ext <<_ACEOF
28938 /* confdefs.h.  */
28939 _ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h.  */
28943 $ac_includes_default
28944 #include <$ac_header>
28945 _ACEOF
28946 rm -f conftest.$ac_objext
28947 if { (ac_try="$ac_compile"
28948 case "(($ac_try" in
28949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950   *) ac_try_echo=$ac_try;;
28951 esac
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953   (eval "$ac_compile") 2>conftest.er1
28954   ac_status=$?
28955   grep -v '^ *+' conftest.er1 >conftest.err
28956   rm -f conftest.er1
28957   cat conftest.err >&5
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } && {
28960          test -z "$ac_c_werror_flag" ||
28961          test ! -s conftest.err
28962        } && test -s conftest.$ac_objext; then
28963   ac_header_compiler=yes
28964 else
28965   echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28967
28968         ac_header_compiler=no
28969 fi
28970
28971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28973 echo "${ECHO_T}$ac_header_compiler" >&6; }
28974
28975 # Is the header present?
28976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28978 cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984 #include <$ac_header>
28985 _ACEOF
28986 if { (ac_try="$ac_cpp conftest.$ac_ext"
28987 case "(($ac_try" in
28988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28989   *) ac_try_echo=$ac_try;;
28990 esac
28991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } >/dev/null && {
28999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29000          test ! -s conftest.err
29001        }; then
29002   ac_header_preproc=yes
29003 else
29004   echo "$as_me: failed program was:" >&5
29005 sed 's/^/| /' conftest.$ac_ext >&5
29006
29007   ac_header_preproc=no
29008 fi
29009
29010 rm -f conftest.err conftest.$ac_ext
29011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29012 echo "${ECHO_T}$ac_header_preproc" >&6; }
29013
29014 # So?  What about this header?
29015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29016   yes:no: )
29017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29021     ac_header_preproc=yes
29022     ;;
29023   no:yes:* )
29024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29036
29037     ;;
29038 esac
29039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29042   echo $ECHO_N "(cached) $ECHO_C" >&6
29043 else
29044   eval "$as_ac_Header=\$ac_header_preproc"
29045 fi
29046 ac_res=`eval echo '${'$as_ac_Header'}'`
29047                { echo "$as_me:$LINENO: result: $ac_res" >&5
29048 echo "${ECHO_T}$ac_res" >&6; }
29049
29050 fi
29051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29052   cat >>confdefs.h <<_ACEOF
29053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29054 _ACEOF
29055
29056 fi
29057
29058 done
29059
29060 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29061 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29062 if test "${ac_cv_lib_z_deflate+set}" = set; then
29063   echo $ECHO_N "(cached) $ECHO_C" >&6
29064 else
29065   ac_check_lib_save_LIBS=$LIBS
29066 LIBS="-lz  $LIBS"
29067 cat >conftest.$ac_ext <<_ACEOF
29068 /* confdefs.h.  */
29069 _ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h.  */
29073
29074 /* Override any GCC internal prototype to avoid an error.
29075    Use char because int might match the return type of a GCC
29076    builtin and then its argument prototype would still apply.  */
29077 #ifdef __cplusplus
29078 extern "C"
29079 #endif
29080 char deflate ();
29081 int
29082 main ()
29083 {
29084 return deflate ();
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 rm -f conftest.$ac_objext conftest$ac_exeext
29090 if { (ac_try="$ac_link"
29091 case "(($ac_try" in
29092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093   *) ac_try_echo=$ac_try;;
29094 esac
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096   (eval "$ac_link") 2>conftest.er1
29097   ac_status=$?
29098   grep -v '^ *+' conftest.er1 >conftest.err
29099   rm -f conftest.er1
29100   cat conftest.err >&5
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); } && {
29103          test -z "$ac_c_werror_flag" ||
29104          test ! -s conftest.err
29105        } && test -s conftest$ac_exeext &&
29106        $as_test_x conftest$ac_exeext; then
29107   ac_cv_lib_z_deflate=yes
29108 else
29109   echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112         ac_cv_lib_z_deflate=no
29113 fi
29114
29115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29116       conftest$ac_exeext conftest.$ac_ext
29117 LIBS=$ac_check_lib_save_LIBS
29118 fi
29119 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29120 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29121 if test $ac_cv_lib_z_deflate = yes; then
29122   FDLIBS="-lz"
29123 fi
29124
29125 have_zlib=no
29126 if test x$FDLIBS = x-lz; then
29127   cat >>confdefs.h <<\_ACEOF
29128 #define HAVE_LIBZ 1
29129 _ACEOF
29130
29131   have_zlib=yes
29132 fi
29133
29134 #
29135 # Check for ACL libraries
29136 #
29137 have_acl=no
29138 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29139   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29140 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29141 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29142   echo $ECHO_N "(cached) $ECHO_C" >&6
29143 fi
29144 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29145 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29146 else
29147   # Is the header compilable?
29148 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29149 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29150 cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h.  */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h.  */
29156 $ac_includes_default
29157 #include <sys/acl.h>
29158 _ACEOF
29159 rm -f conftest.$ac_objext
29160 if { (ac_try="$ac_compile"
29161 case "(($ac_try" in
29162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163   *) ac_try_echo=$ac_try;;
29164 esac
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166   (eval "$ac_compile") 2>conftest.er1
29167   ac_status=$?
29168   grep -v '^ *+' conftest.er1 >conftest.err
29169   rm -f conftest.er1
29170   cat conftest.err >&5
29171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172   (exit $ac_status); } && {
29173          test -z "$ac_c_werror_flag" ||
29174          test ! -s conftest.err
29175        } && test -s conftest.$ac_objext; then
29176   ac_header_compiler=yes
29177 else
29178   echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29180
29181         ac_header_compiler=no
29182 fi
29183
29184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29186 echo "${ECHO_T}$ac_header_compiler" >&6; }
29187
29188 # Is the header present?
29189 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29190 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29191 cat >conftest.$ac_ext <<_ACEOF
29192 /* confdefs.h.  */
29193 _ACEOF
29194 cat confdefs.h >>conftest.$ac_ext
29195 cat >>conftest.$ac_ext <<_ACEOF
29196 /* end confdefs.h.  */
29197 #include <sys/acl.h>
29198 _ACEOF
29199 if { (ac_try="$ac_cpp conftest.$ac_ext"
29200 case "(($ac_try" in
29201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202   *) ac_try_echo=$ac_try;;
29203 esac
29204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29206   ac_status=$?
29207   grep -v '^ *+' conftest.er1 >conftest.err
29208   rm -f conftest.er1
29209   cat conftest.err >&5
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); } >/dev/null && {
29212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29213          test ! -s conftest.err
29214        }; then
29215   ac_header_preproc=yes
29216 else
29217   echo "$as_me: failed program was:" >&5
29218 sed 's/^/| /' conftest.$ac_ext >&5
29219
29220   ac_header_preproc=no
29221 fi
29222
29223 rm -f conftest.err conftest.$ac_ext
29224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29225 echo "${ECHO_T}$ac_header_preproc" >&6; }
29226
29227 # So?  What about this header?
29228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29229   yes:no: )
29230     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29231 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29232     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29233 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29234     ac_header_preproc=yes
29235     ;;
29236   no:yes:* )
29237     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29238 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29239     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29240 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29241     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29242 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29243     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29244 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29245     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29246 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29247     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29248 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29249
29250     ;;
29251 esac
29252 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29253 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29254 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257   ac_cv_header_sys_acl_h=$ac_header_preproc
29258 fi
29259 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29260 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29261
29262 fi
29263
29264
29265 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29266 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29267 if test "${ac_cv_func_acl_get_file+set}" = set; then
29268   echo $ECHO_N "(cached) $ECHO_C" >&6
29269 else
29270   cat >conftest.$ac_ext <<_ACEOF
29271 /* confdefs.h.  */
29272 _ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h.  */
29276 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29278 #define acl_get_file innocuous_acl_get_file
29279
29280 /* System header to define __stub macros and hopefully few prototypes,
29281     which can conflict with char acl_get_file (); below.
29282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29283     <limits.h> exists even on freestanding compilers.  */
29284
29285 #ifdef __STDC__
29286 # include <limits.h>
29287 #else
29288 # include <assert.h>
29289 #endif
29290
29291 #undef acl_get_file
29292
29293 /* Override any GCC internal prototype to avoid an error.
29294    Use char because int might match the return type of a GCC
29295    builtin and then its argument prototype would still apply.  */
29296 #ifdef __cplusplus
29297 extern "C"
29298 #endif
29299 char acl_get_file ();
29300 /* The GNU C library defines this for functions which it implements
29301     to always fail with ENOSYS.  Some functions are actually named
29302     something starting with __ and the normal name is an alias.  */
29303 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29304 choke me
29305 #endif
29306
29307 int
29308 main ()
29309 {
29310 return acl_get_file ();
29311   ;
29312   return 0;
29313 }
29314 _ACEOF
29315 rm -f conftest.$ac_objext conftest$ac_exeext
29316 if { (ac_try="$ac_link"
29317 case "(($ac_try" in
29318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319   *) ac_try_echo=$ac_try;;
29320 esac
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322   (eval "$ac_link") 2>conftest.er1
29323   ac_status=$?
29324   grep -v '^ *+' conftest.er1 >conftest.err
29325   rm -f conftest.er1
29326   cat conftest.err >&5
29327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); } && {
29329          test -z "$ac_c_werror_flag" ||
29330          test ! -s conftest.err
29331        } && test -s conftest$ac_exeext &&
29332        $as_test_x conftest$ac_exeext; then
29333   ac_cv_func_acl_get_file=yes
29334 else
29335   echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29337
29338         ac_cv_func_acl_get_file=no
29339 fi
29340
29341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29342       conftest$ac_exeext conftest.$ac_ext
29343 fi
29344 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29345 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29346 if test $ac_cv_func_acl_get_file = yes; then
29347   have_acl=yes
29348 else
29349   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29350 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29351 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29352   echo $ECHO_N "(cached) $ECHO_C" >&6
29353 else
29354   ac_check_lib_save_LIBS=$LIBS
29355 LIBS="-lacl  $LIBS"
29356 cat >conftest.$ac_ext <<_ACEOF
29357 /* confdefs.h.  */
29358 _ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h.  */
29362
29363 /* Override any GCC internal prototype to avoid an error.
29364    Use char because int might match the return type of a GCC
29365    builtin and then its argument prototype would still apply.  */
29366 #ifdef __cplusplus
29367 extern "C"
29368 #endif
29369 char acl_get_file ();
29370 int
29371 main ()
29372 {
29373 return acl_get_file ();
29374   ;
29375   return 0;
29376 }
29377 _ACEOF
29378 rm -f conftest.$ac_objext conftest$ac_exeext
29379 if { (ac_try="$ac_link"
29380 case "(($ac_try" in
29381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29382   *) ac_try_echo=$ac_try;;
29383 esac
29384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29385   (eval "$ac_link") 2>conftest.er1
29386   ac_status=$?
29387   grep -v '^ *+' conftest.er1 >conftest.err
29388   rm -f conftest.er1
29389   cat conftest.err >&5
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); } && {
29392          test -z "$ac_c_werror_flag" ||
29393          test ! -s conftest.err
29394        } && test -s conftest$ac_exeext &&
29395        $as_test_x conftest$ac_exeext; then
29396   ac_cv_lib_acl_acl_get_file=yes
29397 else
29398   echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29400
29401         ac_cv_lib_acl_acl_get_file=no
29402 fi
29403
29404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29405       conftest$ac_exeext conftest.$ac_ext
29406 LIBS=$ac_check_lib_save_LIBS
29407 fi
29408 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29409 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29410 if test $ac_cv_lib_acl_acl_get_file = yes; then
29411   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29412 else
29413   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29414 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29415 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29416   echo $ECHO_N "(cached) $ECHO_C" >&6
29417 else
29418   ac_check_lib_save_LIBS=$LIBS
29419 LIBS="-lsec  $LIBS"
29420 cat >conftest.$ac_ext <<_ACEOF
29421 /* confdefs.h.  */
29422 _ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h.  */
29426
29427 /* Override any GCC internal prototype to avoid an error.
29428    Use char because int might match the return type of a GCC
29429    builtin and then its argument prototype would still apply.  */
29430 #ifdef __cplusplus
29431 extern "C"
29432 #endif
29433 char acltotext ();
29434 int
29435 main ()
29436 {
29437 return acltotext ();
29438   ;
29439   return 0;
29440 }
29441 _ACEOF
29442 rm -f conftest.$ac_objext conftest$ac_exeext
29443 if { (ac_try="$ac_link"
29444 case "(($ac_try" in
29445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446   *) ac_try_echo=$ac_try;;
29447 esac
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449   (eval "$ac_link") 2>conftest.er1
29450   ac_status=$?
29451   grep -v '^ *+' conftest.er1 >conftest.err
29452   rm -f conftest.er1
29453   cat conftest.err >&5
29454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455   (exit $ac_status); } && {
29456          test -z "$ac_c_werror_flag" ||
29457          test ! -s conftest.err
29458        } && test -s conftest$ac_exeext &&
29459        $as_test_x conftest$ac_exeext; then
29460   ac_cv_lib_sec_acltotext=yes
29461 else
29462   echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29464
29465         ac_cv_lib_sec_acltotext=no
29466 fi
29467
29468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29469       conftest$ac_exeext conftest.$ac_ext
29470 LIBS=$ac_check_lib_save_LIBS
29471 fi
29472 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29473 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29474 if test $ac_cv_lib_sec_acltotext = yes; then
29475   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29476 fi
29477
29478
29479 fi
29480
29481
29482 fi
29483
29484 if test $have_acl = yes; then
29485    cat >>confdefs.h <<\_ACEOF
29486 #define HAVE_ACL 1
29487 _ACEOF
29488
29489 fi
29490
29491 PTHREAD_LIB=""
29492 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29493 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29494 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29495   echo $ECHO_N "(cached) $ECHO_C" >&6
29496 else
29497   ac_check_lib_save_LIBS=$LIBS
29498 LIBS="-lpthread  $LIBS"
29499 cat >conftest.$ac_ext <<_ACEOF
29500 /* confdefs.h.  */
29501 _ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h.  */
29505
29506 /* Override any GCC internal prototype to avoid an error.
29507    Use char because int might match the return type of a GCC
29508    builtin and then its argument prototype would still apply.  */
29509 #ifdef __cplusplus
29510 extern "C"
29511 #endif
29512 char pthread_create ();
29513 int
29514 main ()
29515 {
29516 return pthread_create ();
29517   ;
29518   return 0;
29519 }
29520 _ACEOF
29521 rm -f conftest.$ac_objext conftest$ac_exeext
29522 if { (ac_try="$ac_link"
29523 case "(($ac_try" in
29524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525   *) ac_try_echo=$ac_try;;
29526 esac
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528   (eval "$ac_link") 2>conftest.er1
29529   ac_status=$?
29530   grep -v '^ *+' conftest.er1 >conftest.err
29531   rm -f conftest.er1
29532   cat conftest.err >&5
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); } && {
29535          test -z "$ac_c_werror_flag" ||
29536          test ! -s conftest.err
29537        } && test -s conftest$ac_exeext &&
29538        $as_test_x conftest$ac_exeext; then
29539   ac_cv_lib_pthread_pthread_create=yes
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544         ac_cv_lib_pthread_pthread_create=no
29545 fi
29546
29547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29548       conftest$ac_exeext conftest.$ac_ext
29549 LIBS=$ac_check_lib_save_LIBS
29550 fi
29551 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29552 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29553 if test $ac_cv_lib_pthread_pthread_create = yes; then
29554   PTHREAD_LIB="-lpthread"
29555 else
29556   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29557 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29558 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29559   echo $ECHO_N "(cached) $ECHO_C" >&6
29560 else
29561   ac_check_lib_save_LIBS=$LIBS
29562 LIBS="-lpthreads  $LIBS"
29563 cat >conftest.$ac_ext <<_ACEOF
29564 /* confdefs.h.  */
29565 _ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h.  */
29569
29570 /* Override any GCC internal prototype to avoid an error.
29571    Use char because int might match the return type of a GCC
29572    builtin and then its argument prototype would still apply.  */
29573 #ifdef __cplusplus
29574 extern "C"
29575 #endif
29576 char pthread_create ();
29577 int
29578 main ()
29579 {
29580 return pthread_create ();
29581   ;
29582   return 0;
29583 }
29584 _ACEOF
29585 rm -f conftest.$ac_objext conftest$ac_exeext
29586 if { (ac_try="$ac_link"
29587 case "(($ac_try" in
29588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589   *) ac_try_echo=$ac_try;;
29590 esac
29591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29592   (eval "$ac_link") 2>conftest.er1
29593   ac_status=$?
29594   grep -v '^ *+' conftest.er1 >conftest.err
29595   rm -f conftest.er1
29596   cat conftest.err >&5
29597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598   (exit $ac_status); } && {
29599          test -z "$ac_c_werror_flag" ||
29600          test ! -s conftest.err
29601        } && test -s conftest$ac_exeext &&
29602        $as_test_x conftest$ac_exeext; then
29603   ac_cv_lib_pthreads_pthread_create=yes
29604 else
29605   echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29607
29608         ac_cv_lib_pthreads_pthread_create=no
29609 fi
29610
29611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29612       conftest$ac_exeext conftest.$ac_ext
29613 LIBS=$ac_check_lib_save_LIBS
29614 fi
29615 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29616 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29617 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29618   PTHREAD_LIB="-lpthreads"
29619 else
29620   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29621 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29622 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29623   echo $ECHO_N "(cached) $ECHO_C" >&6
29624 else
29625   ac_check_lib_save_LIBS=$LIBS
29626 LIBS="-lc_r  $LIBS"
29627 cat >conftest.$ac_ext <<_ACEOF
29628 /* confdefs.h.  */
29629 _ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h.  */
29633
29634 /* Override any GCC internal prototype to avoid an error.
29635    Use char because int might match the return type of a GCC
29636    builtin and then its argument prototype would still apply.  */
29637 #ifdef __cplusplus
29638 extern "C"
29639 #endif
29640 char pthread_create ();
29641 int
29642 main ()
29643 {
29644 return pthread_create ();
29645   ;
29646   return 0;
29647 }
29648 _ACEOF
29649 rm -f conftest.$ac_objext conftest$ac_exeext
29650 if { (ac_try="$ac_link"
29651 case "(($ac_try" in
29652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653   *) ac_try_echo=$ac_try;;
29654 esac
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656   (eval "$ac_link") 2>conftest.er1
29657   ac_status=$?
29658   grep -v '^ *+' conftest.er1 >conftest.err
29659   rm -f conftest.er1
29660   cat conftest.err >&5
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); } && {
29663          test -z "$ac_c_werror_flag" ||
29664          test ! -s conftest.err
29665        } && test -s conftest$ac_exeext &&
29666        $as_test_x conftest$ac_exeext; then
29667   ac_cv_lib_c_r_pthread_create=yes
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672         ac_cv_lib_c_r_pthread_create=no
29673 fi
29674
29675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29676       conftest$ac_exeext conftest.$ac_ext
29677 LIBS=$ac_check_lib_save_LIBS
29678 fi
29679 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29680 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29681 if test $ac_cv_lib_c_r_pthread_create = yes; then
29682   PTHREAD_LIB="-lc_r"
29683 else
29684   { echo "$as_me:$LINENO: checking for pthread_create" >&5
29685 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29686 if test "${ac_cv_func_pthread_create+set}" = set; then
29687   echo $ECHO_N "(cached) $ECHO_C" >&6
29688 else
29689   cat >conftest.$ac_ext <<_ACEOF
29690 /* confdefs.h.  */
29691 _ACEOF
29692 cat confdefs.h >>conftest.$ac_ext
29693 cat >>conftest.$ac_ext <<_ACEOF
29694 /* end confdefs.h.  */
29695 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29697 #define pthread_create innocuous_pthread_create
29698
29699 /* System header to define __stub macros and hopefully few prototypes,
29700     which can conflict with char pthread_create (); below.
29701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29702     <limits.h> exists even on freestanding compilers.  */
29703
29704 #ifdef __STDC__
29705 # include <limits.h>
29706 #else
29707 # include <assert.h>
29708 #endif
29709
29710 #undef pthread_create
29711
29712 /* Override any GCC internal prototype to avoid an error.
29713    Use char because int might match the return type of a GCC
29714    builtin and then its argument prototype would still apply.  */
29715 #ifdef __cplusplus
29716 extern "C"
29717 #endif
29718 char pthread_create ();
29719 /* The GNU C library defines this for functions which it implements
29720     to always fail with ENOSYS.  Some functions are actually named
29721     something starting with __ and the normal name is an alias.  */
29722 #if defined __stub_pthread_create || defined __stub___pthread_create
29723 choke me
29724 #endif
29725
29726 int
29727 main ()
29728 {
29729 return pthread_create ();
29730   ;
29731   return 0;
29732 }
29733 _ACEOF
29734 rm -f conftest.$ac_objext conftest$ac_exeext
29735 if { (ac_try="$ac_link"
29736 case "(($ac_try" in
29737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738   *) ac_try_echo=$ac_try;;
29739 esac
29740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741   (eval "$ac_link") 2>conftest.er1
29742   ac_status=$?
29743   grep -v '^ *+' conftest.er1 >conftest.err
29744   rm -f conftest.er1
29745   cat conftest.err >&5
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); } && {
29748          test -z "$ac_c_werror_flag" ||
29749          test ! -s conftest.err
29750        } && test -s conftest$ac_exeext &&
29751        $as_test_x conftest$ac_exeext; then
29752   ac_cv_func_pthread_create=yes
29753 else
29754   echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29756
29757         ac_cv_func_pthread_create=no
29758 fi
29759
29760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29761       conftest$ac_exeext conftest.$ac_ext
29762 fi
29763 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29764 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29765
29766
29767 fi
29768
29769
29770 fi
29771
29772
29773 fi
29774
29775
29776
29777 cat >>confdefs.h <<\_ACEOF
29778 #define FDLIBS 1
29779 _ACEOF
29780
29781
29782
29783 CFLAGS=${CFLAGS--O}
29784
29785 if test x$have_gcc = xyes ; then
29786    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29787    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29788 fi
29789 LDFLAGS=${LDFLAGS--O}
29790 DB_LIBS="${SQL_LFLAGS}"
29791 CPPFLAGS="$CPPFLAGS"
29792 CFLAGS="$CFLAGS"
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809 OBJLIST=
29810
29811
29812 lld="lld"
29813 llu="llu"
29814
29815 WCFLAGS=
29816 WLDFLAGS=
29817
29818 #
29819 # Finally we set appropriate distribution specific
29820 #  variables and defaults
29821 #
29822 # PFILES are platform specific files
29823 PFILES="platforms/Makefile"
29824 PSCMD="ps -e"
29825 WIN32=
29826 MACOSX=
29827 hostname=`uname -n | cut -d '.' -f 1`
29828 if test x${hostname} = x ; then
29829   hostname="localhost"
29830 fi
29831 case "$DISTNAME" in
29832 aix)
29833         DISTVER=`uname -r`
29834         PSCMD="ps -e -o pid,comm"
29835         PFILES="${PFILES} \
29836            platforms/aix/Makefile"
29837         TAPEDRIVE="/dev/rmt0.1"
29838   ;;
29839 alpha)
29840         DISTVER=`uname -r`
29841         PTHREAD_LIB="-lpthread -lexc"
29842         if test "${CC}" = "gcc" ; then
29843            lld="lld"
29844            llu="llu"
29845         else
29846            lld="ld"
29847            llu="lu"
29848         fi
29849         TAPEDRIVE="/dev/nrmt0"
29850   ;;
29851 bsdi)
29852         DISTVER=`uname -a |awk '{print $3}'`
29853         TAPEDRIVE="/dev/nrmt0"
29854         PTHREAD_LIB="-pthread"
29855         CFLAGS="${CFLAGS} -pthread"
29856         PSCMD="ps -ax -o pid,command"
29857         lld="qd"
29858         llu="qu"
29859         PFILES="${PFILES} \
29860             platforms/bsdi/Makefile \
29861             platforms/bsdi/bacula-fd \
29862             platforms/bsdi/bacula-sd \
29863             platforms/bsdi/bacula-dir"
29864         largefile_support="yes"
29865   ;;
29866 cygwin)
29867         DISTVER=`uname -a |awk '{print $3}'`
29868         TAPEDRIVE="/dev/nrst0"
29869         WIN32=win32
29870         WCFLAGS="-mwindows"
29871         WLDFLAGS="-mwindows"
29872   ;;
29873 darwin)
29874         DISTVER=`uname -r`
29875         TAPEDRIVE="/dev/nst0"
29876         PSCMD="ps -e -o pid,command"
29877         MACOSX=macosx
29878         PFILES="${PFILES} \
29879            platforms/darwin/Makefile"
29880   ;;
29881 debian)
29882         DISTVER=`cat /etc/debian_version`
29883         TAPEDRIVE="/dev/nrst0"
29884         PSCMD="ps -e -o pid,command"
29885   ;;
29886 freebsd)
29887         DISTVER=`uname -a |awk '{print $3}'`
29888         VER=`echo $DISTVER | cut -c 1`
29889         if test x$VER = x4 ; then
29890            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29891            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29892         fi
29893         lld="qd"
29894         llu="qu"
29895         TAPEDRIVE="/dev/nrsa0"
29896         PSCMD="ps -ax -o pid,command"
29897         PFILES="${PFILES} \
29898             platforms/freebsd/Makefile \
29899             platforms/freebsd/bacula-fd \
29900             platforms/freebsd/bacula-sd \
29901             platforms/freebsd/bacula-dir"
29902         largefile_support="yes"
29903   ;;
29904 hpux)
29905         PSCMD="UNIX95=1; ps -e -o pid,comm"
29906         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29907         DISTVER=`uname -r`
29908         TAPEDRIVE="/dev/rmt/0hnb"
29909         PTHREAD_LIB="-lpthread"
29910         cat >>confdefs.h <<\_ACEOF
29911 #define _INCLUDE_LONGLONG 1
29912 _ACEOF
29913
29914   ;;
29915 irix)
29916         DISTVER=`uname -r`
29917         TAPEDRIVE="/dev/rmt/0cbn"
29918         PSCMD="ps -e -o pid,comm"
29919         PFILES="${PFILES} \
29920             platforms/irix/Makefile \
29921             platforms/irix/bacula-fd \
29922             platforms/irix/bacula-sd \
29923             platforms/irix/bacula-dir"
29924   ;;
29925 netbsd)
29926         DISTVER=`uname -a |awk '{print $3}'`
29927         lld="qd"
29928         llu="qu"
29929         TAPEDRIVE="/dev/nrst0"
29930         PSCMD="ps -ax -o pid,command"
29931         PTHREAD_LIB="-pthread"
29932         CFLAGS="${CFLAGS} -pthread"
29933   ;;
29934 openbsd)
29935         DISTVER=`uname -a |awk '{print $3}'`
29936         lld="qd"
29937         llu="qu"
29938         TAPEDRIVE="/dev/nrst0"
29939         PSCMD="ps -ax -o pid,command"
29940         PTHREAD_LIB="-pthread"
29941         CFLAGS="${CFLAGS} -pthread"
29942         PFILES="${PFILES} \
29943             platforms/openbsd/Makefile \
29944             platforms/openbsd/bacula-fd \
29945             platforms/openbsd/bacula-sd \
29946             platforms/openbsd/bacula-dir"
29947   ;;
29948 redhat)
29949         if test -f /etc/whitebox-release ; then
29950            f=/etc/whitebox-release
29951         else
29952            f=/etc/redhat-release
29953         fi
29954         if test `cat $f | grep release |\
29955                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29956            DISTVER="Enterprise "`cat $f | grep release |\
29957                     cut -f 6 -d ' '`
29958         else
29959             DISTVER=`cat /etc/redhat-release | grep release |\
29960                      cut -f 5 -d ' '`
29961         fi
29962         TAPEDRIVE="/dev/nst0"
29963         PSCMD="ps -e -o pid,command"
29964         PFILES="${PFILES} \
29965             platforms/redhat/Makefile \
29966             platforms/redhat/bacula-fd \
29967             platforms/redhat/bacula-sd \
29968             platforms/redhat/bacula-dir \
29969             platforms/redhat/bacula.spec \
29970             "
29971   ;;
29972 mandrake)
29973         DISTVER=`cat /etc/mandrake-release | grep release |\
29974            cut -f 5 -d ' '`
29975         TAPEDRIVE="/dev/nst0"
29976         PSCMD="ps -e -o pid,command"
29977         PFILES="${PFILES} \
29978             platforms/mandrake/Makefile \
29979             platforms/mandrake/bacula-fd \
29980             platforms/mandrake/bacula-sd \
29981             platforms/mandrake/bacula-dir \
29982             platforms/mandrake/bacula.spec \
29983             "
29984   ;;
29985 gentoo)
29986         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29987         TAPEDRIVE="/dev/nst0"
29988         PSCMD="ps -e -o pid,command"
29989         PFILES="${PFILES} \
29990             platforms/gentoo/Makefile \
29991          platforms/gentoo/bacula-init \
29992             platforms/gentoo/bacula-fd \
29993             platforms/gentoo/bacula-sd \
29994             platforms/gentoo/bacula-dir"
29995   ;;
29996 slackware)
29997         DISTVER=`cat /etc/slackware-version`
29998         TAPEDRIVE="/dev/nst0"
29999         PSCMD="ps -e -o pid,command"
30000         PFILES="${PFILES} \
30001             platforms/slackware/Makefile \
30002             platforms/slackware/rc.bacula-fd \
30003             platforms/slackware/rc.bacula-sd \
30004             platforms/slackware/rc.bacula-dir\
30005             platforms/slackware/functions.bacula"
30006   ;;
30007 solaris)
30008         DISTVER=`uname -r`
30009         TAPEDRIVE="/dev/rmt/0cbn"
30010         PSCMD="ps -e -o pid,comm"
30011         PFILES="${PFILES} \
30012             platforms/solaris/Makefile \
30013             platforms/solaris/bacula-fd \
30014             platforms/solaris/bacula-sd \
30015             platforms/solaris/bacula-dir"
30016         if test x$DISTVER = x5.6 ; then
30017             cat >>confdefs.h <<\_ACEOF
30018 #define HAVE_OLD_SOCKOPT 1
30019 _ACEOF
30020
30021         fi
30022         LIBS="$LIBS -lresolv"
30023   ;;
30024 suse)
30025         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30026             cut -f 3 -d ' '`
30027         TAPEDRIVE="/dev/nst0"
30028         PSCMD="ps -e -o pid,command"
30029         PFILES="${PFILES} \
30030             platforms/suse/Makefile \
30031             platforms/suse/bacula-fd \
30032             platforms/suse/bacula-sd \
30033             platforms/suse/bacula-dir \
30034             platforms/suse/bacula \
30035             platforms/suse/bacula.spec"
30036   ;;
30037 suse5)
30038         DISTNAME=suse
30039         DISTVER=5.x
30040         TAPEDRIVE="/dev/nst0"
30041         PSCMD="ps -e -o pid,command"
30042         PFILES="${PFILES} \
30043             platforms/suse/Makefile \
30044             platforms/suse/bacula-fd \
30045             platforms/suse/bacula-sd \
30046             platforms/suse/bacula-dir"
30047   ;;
30048 unknown)
30049         DISTVER=unknown
30050         TAPEDRIVE="/dev/nst0"
30051   ;;
30052 *)
30053   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30054   ;;
30055 esac
30056
30057
30058
30059 LIBS="$PTHREAD_LIB $LIBS"
30060
30061 cat >>confdefs.h <<_ACEOF
30062 #define lld "$lld"
30063 _ACEOF
30064
30065 cat >>confdefs.h <<_ACEOF
30066 #define llu "$llu"
30067 _ACEOF
30068
30069
30070
30071
30072
30073
30074
30075
30076 MCOMMON=./autoconf/Make.common
30077
30078
30079 if test "x${subsysdir}" = "x${sbindir}" ; then
30080    echo " "
30081    echo " "
30082    echo "You have set both --sbindir and --with-subsys-dir"
30083    echo "  equal to: ${subsysdir} "
30084    echo "This is not permitted. Please reconfigure."
30085    echo " "
30086    echo "Aborting configuration ..."
30087    echo " "
30088    echo " "
30089    exit 1
30090 fi
30091
30092 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30093
30094 ac_config_commands="$ac_config_commands default"
30095
30096 cat >confcache <<\_ACEOF
30097 # This file is a shell script that caches the results of configure
30098 # tests run on this system so they can be shared between configure
30099 # scripts and configure runs, see configure's option --config-cache.
30100 # It is not useful on other systems.  If it contains results you don't
30101 # want to keep, you may remove or edit it.
30102 #
30103 # config.status only pays attention to the cache file if you give it
30104 # the --recheck option to rerun configure.
30105 #
30106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30108 # following values.
30109
30110 _ACEOF
30111
30112 # The following way of writing the cache mishandles newlines in values,
30113 # but we know of no workaround that is simple, portable, and efficient.
30114 # So, we kill variables containing newlines.
30115 # Ultrix sh set writes to stderr and can't be redirected directly,
30116 # and sets the high bit in the cache file unless we assign to the vars.
30117 (
30118   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30119     eval ac_val=\$$ac_var
30120     case $ac_val in #(
30121     *${as_nl}*)
30122       case $ac_var in #(
30123       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30124 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30125       esac
30126       case $ac_var in #(
30127       _ | IFS | as_nl) ;; #(
30128       *) $as_unset $ac_var ;;
30129       esac ;;
30130     esac
30131   done
30132
30133   (set) 2>&1 |
30134     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30135     *${as_nl}ac_space=\ *)
30136       # `set' does not quote correctly, so add quotes (double-quote
30137       # substitution turns \\\\ into \\, and sed turns \\ into \).
30138       sed -n \
30139         "s/'/'\\\\''/g;
30140           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30141       ;; #(
30142     *)
30143       # `set' quotes correctly as required by POSIX, so do not add quotes.
30144       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30145       ;;
30146     esac |
30147     sort
30148 ) |
30149   sed '
30150      /^ac_cv_env_/b end
30151      t clear
30152      :clear
30153      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30154      t end
30155      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30156      :end' >>confcache
30157 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30158   if test -w "$cache_file"; then
30159     test "x$cache_file" != "x/dev/null" &&
30160       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30161 echo "$as_me: updating cache $cache_file" >&6;}
30162     cat confcache >$cache_file
30163   else
30164     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30165 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30166   fi
30167 fi
30168 rm -f confcache
30169
30170 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30171 # Let make expand exec_prefix.
30172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30173
30174 DEFS=-DHAVE_CONFIG_H
30175
30176 ac_libobjs=
30177 ac_ltlibobjs=
30178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30179   # 1. Remove the extension, and $U if already installed.
30180   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30181   ac_i=`echo "$ac_i" | sed "$ac_script"`
30182   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30183   #    will be set to the directory where LIBOBJS objects are built.
30184   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30185   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30186 done
30187 LIBOBJS=$ac_libobjs
30188
30189 LTLIBOBJS=$ac_ltlibobjs
30190
30191
30192
30193 : ${CONFIG_STATUS=./config.status}
30194 ac_clean_files_save=$ac_clean_files
30195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30196 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30197 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30198 cat >$CONFIG_STATUS <<_ACEOF
30199 #! $SHELL
30200 # Generated by $as_me.
30201 # Run this file to recreate the current configuration.
30202 # Compiler output produced by configure, useful for debugging
30203 # configure, is in config.log if it exists.
30204
30205 debug=false
30206 ac_cs_recheck=false
30207 ac_cs_silent=false
30208 SHELL=\${CONFIG_SHELL-$SHELL}
30209 _ACEOF
30210
30211 cat >>$CONFIG_STATUS <<\_ACEOF
30212 ## --------------------- ##
30213 ## M4sh Initialization.  ##
30214 ## --------------------- ##
30215
30216 # Be more Bourne compatible
30217 DUALCASE=1; export DUALCASE # for MKS sh
30218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30219   emulate sh
30220   NULLCMD=:
30221   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30222   # is contrary to our usage.  Disable this feature.
30223   alias -g '${1+"$@"}'='"$@"'
30224   setopt NO_GLOB_SUBST
30225 else
30226   case `(set -o) 2>/dev/null` in
30227   *posix*) set -o posix ;;
30228 esac
30229
30230 fi
30231
30232
30233
30234
30235 # PATH needs CR
30236 # Avoid depending upon Character Ranges.
30237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30240 as_cr_digits='0123456789'
30241 as_cr_alnum=$as_cr_Letters$as_cr_digits
30242
30243 # The user is always right.
30244 if test "${PATH_SEPARATOR+set}" != set; then
30245   echo "#! /bin/sh" >conf$$.sh
30246   echo  "exit 0"   >>conf$$.sh
30247   chmod +x conf$$.sh
30248   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30249     PATH_SEPARATOR=';'
30250   else
30251     PATH_SEPARATOR=:
30252   fi
30253   rm -f conf$$.sh
30254 fi
30255
30256 # Support unset when possible.
30257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30258   as_unset=unset
30259 else
30260   as_unset=false
30261 fi
30262
30263
30264 # IFS
30265 # We need space, tab and new line, in precisely that order.  Quoting is
30266 # there to prevent editors from complaining about space-tab.
30267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30268 # splitting by setting IFS to empty value.)
30269 as_nl='
30270 '
30271 IFS=" ""        $as_nl"
30272
30273 # Find who we are.  Look in the path if we contain no directory separator.
30274 case $0 in
30275   *[\\/]* ) as_myself=$0 ;;
30276   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30277 for as_dir in $PATH
30278 do
30279   IFS=$as_save_IFS
30280   test -z "$as_dir" && as_dir=.
30281   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30282 done
30283 IFS=$as_save_IFS
30284
30285      ;;
30286 esac
30287 # We did not find ourselves, most probably we were run as `sh COMMAND'
30288 # in which case we are not to be found in the path.
30289 if test "x$as_myself" = x; then
30290   as_myself=$0
30291 fi
30292 if test ! -f "$as_myself"; then
30293   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30294   { (exit 1); exit 1; }
30295 fi
30296
30297 # Work around bugs in pre-3.0 UWIN ksh.
30298 for as_var in ENV MAIL MAILPATH
30299 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30300 done
30301 PS1='$ '
30302 PS2='> '
30303 PS4='+ '
30304
30305 # NLS nuisances.
30306 for as_var in \
30307   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30308   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30309   LC_TELEPHONE LC_TIME
30310 do
30311   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30312     eval $as_var=C; export $as_var
30313   else
30314     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30315   fi
30316 done
30317
30318 # Required to use basename.
30319 if expr a : '\(a\)' >/dev/null 2>&1 &&
30320    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30321   as_expr=expr
30322 else
30323   as_expr=false
30324 fi
30325
30326 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30327   as_basename=basename
30328 else
30329   as_basename=false
30330 fi
30331
30332
30333 # Name of the executable.
30334 as_me=`$as_basename -- "$0" ||
30335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30336          X"$0" : 'X\(//\)$' \| \
30337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30338 echo X/"$0" |
30339     sed '/^.*\/\([^/][^/]*\)\/*$/{
30340             s//\1/
30341             q
30342           }
30343           /^X\/\(\/\/\)$/{
30344             s//\1/
30345             q
30346           }
30347           /^X\/\(\/\).*/{
30348             s//\1/
30349             q
30350           }
30351           s/.*/./; q'`
30352
30353 # CDPATH.
30354 $as_unset CDPATH
30355
30356
30357
30358   as_lineno_1=$LINENO
30359   as_lineno_2=$LINENO
30360   test "x$as_lineno_1" != "x$as_lineno_2" &&
30361   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30362
30363   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30364   # uniformly replaced by the line number.  The first 'sed' inserts a
30365   # line-number line after each line using $LINENO; the second 'sed'
30366   # does the real work.  The second script uses 'N' to pair each
30367   # line-number line with the line containing $LINENO, and appends
30368   # trailing '-' during substitution so that $LINENO is not a special
30369   # case at line end.
30370   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30371   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30372   # E. McMahon (1931-1989) for sed's syntax.  :-)
30373   sed -n '
30374     p
30375     /[$]LINENO/=
30376   ' <$as_myself |
30377     sed '
30378       s/[$]LINENO.*/&-/
30379       t lineno
30380       b
30381       :lineno
30382       N
30383       :loop
30384       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30385       t loop
30386       s/-\n.*//
30387     ' >$as_me.lineno &&
30388   chmod +x "$as_me.lineno" ||
30389     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30390    { (exit 1); exit 1; }; }
30391
30392   # Don't try to exec as it changes $[0], causing all sort of problems
30393   # (the dirname of $[0] is not the place where we might find the
30394   # original and so on.  Autoconf is especially sensitive to this).
30395   . "./$as_me.lineno"
30396   # Exit status is that of the last command.
30397   exit
30398 }
30399
30400
30401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30402   as_dirname=dirname
30403 else
30404   as_dirname=false
30405 fi
30406
30407 ECHO_C= ECHO_N= ECHO_T=
30408 case `echo -n x` in
30409 -n*)
30410   case `echo 'x\c'` in
30411   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30412   *)   ECHO_C='\c';;
30413   esac;;
30414 *)
30415   ECHO_N='-n';;
30416 esac
30417
30418 if expr a : '\(a\)' >/dev/null 2>&1 &&
30419    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30420   as_expr=expr
30421 else
30422   as_expr=false
30423 fi
30424
30425 rm -f conf$$ conf$$.exe conf$$.file
30426 if test -d conf$$.dir; then
30427   rm -f conf$$.dir/conf$$.file
30428 else
30429   rm -f conf$$.dir
30430   mkdir conf$$.dir
30431 fi
30432 echo >conf$$.file
30433 if ln -s conf$$.file conf$$ 2>/dev/null; then
30434   as_ln_s='ln -s'
30435   # ... but there are two gotchas:
30436   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30437   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30438   # In both cases, we have to default to `cp -p'.
30439   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30440     as_ln_s='cp -p'
30441 elif ln conf$$.file conf$$ 2>/dev/null; then
30442   as_ln_s=ln
30443 else
30444   as_ln_s='cp -p'
30445 fi
30446 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30447 rmdir conf$$.dir 2>/dev/null
30448
30449 if mkdir -p . 2>/dev/null; then
30450   as_mkdir_p=:
30451 else
30452   test -d ./-p && rmdir ./-p
30453   as_mkdir_p=false
30454 fi
30455
30456 if test -x / >/dev/null 2>&1; then
30457   as_test_x='test -x'
30458 else
30459   if ls -dL / >/dev/null 2>&1; then
30460     as_ls_L_option=L
30461   else
30462     as_ls_L_option=
30463   fi
30464   as_test_x='
30465     eval sh -c '\''
30466       if test -d "$1"; then
30467         test -d "$1/.";
30468       else
30469         case $1 in
30470         -*)set "./$1";;
30471         esac;
30472         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30473         ???[sx]*):;;*)false;;esac;fi
30474     '\'' sh
30475   '
30476 fi
30477 as_executable_p=$as_test_x
30478
30479 # Sed expression to map a string onto a valid CPP name.
30480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30481
30482 # Sed expression to map a string onto a valid variable name.
30483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30484
30485
30486 exec 6>&1
30487
30488 # Save the log message, to keep $[0] and so on meaningful, and to
30489 # report actual input values of CONFIG_FILES etc. instead of their
30490 # values after options handling.
30491 ac_log="
30492 This file was extended by $as_me, which was
30493 generated by GNU Autoconf 2.61.  Invocation command line was
30494
30495   CONFIG_FILES    = $CONFIG_FILES
30496   CONFIG_HEADERS  = $CONFIG_HEADERS
30497   CONFIG_LINKS    = $CONFIG_LINKS
30498   CONFIG_COMMANDS = $CONFIG_COMMANDS
30499   $ $0 $@
30500
30501 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30502 "
30503
30504 _ACEOF
30505
30506 cat >>$CONFIG_STATUS <<_ACEOF
30507 # Files that config.status was made for.
30508 config_files="$ac_config_files"
30509 config_headers="$ac_config_headers"
30510 config_commands="$ac_config_commands"
30511
30512 _ACEOF
30513
30514 cat >>$CONFIG_STATUS <<\_ACEOF
30515 ac_cs_usage="\
30516 \`$as_me' instantiates files from templates according to the
30517 current configuration.
30518
30519 Usage: $0 [OPTIONS] [FILE]...
30520
30521   -h, --help       print this help, then exit
30522   -V, --version    print version number and configuration settings, then exit
30523   -q, --quiet      do not print progress messages
30524   -d, --debug      don't remove temporary files
30525       --recheck    update $as_me by reconfiguring in the same conditions
30526   --file=FILE[:TEMPLATE]
30527                    instantiate the configuration file FILE
30528   --header=FILE[:TEMPLATE]
30529                    instantiate the configuration header FILE
30530
30531 Configuration files:
30532 $config_files
30533
30534 Configuration headers:
30535 $config_headers
30536
30537 Configuration commands:
30538 $config_commands
30539
30540 Report bugs to <bug-autoconf@gnu.org>."
30541
30542 _ACEOF
30543 cat >>$CONFIG_STATUS <<_ACEOF
30544 ac_cs_version="\\
30545 config.status
30546 configured by $0, generated by GNU Autoconf 2.61,
30547   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30548
30549 Copyright (C) 2006 Free Software Foundation, Inc.
30550 This config.status script is free software; the Free Software Foundation
30551 gives unlimited permission to copy, distribute and modify it."
30552
30553 ac_pwd='$ac_pwd'
30554 srcdir='$srcdir'
30555 INSTALL='$INSTALL'
30556 _ACEOF
30557
30558 cat >>$CONFIG_STATUS <<\_ACEOF
30559 # If no file are specified by the user, then we need to provide default
30560 # value.  By we need to know if files were specified by the user.
30561 ac_need_defaults=:
30562 while test $# != 0
30563 do
30564   case $1 in
30565   --*=*)
30566     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30567     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30568     ac_shift=:
30569     ;;
30570   *)
30571     ac_option=$1
30572     ac_optarg=$2
30573     ac_shift=shift
30574     ;;
30575   esac
30576
30577   case $ac_option in
30578   # Handling of the options.
30579   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30580     ac_cs_recheck=: ;;
30581   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30582     echo "$ac_cs_version"; exit ;;
30583   --debug | --debu | --deb | --de | --d | -d )
30584     debug=: ;;
30585   --file | --fil | --fi | --f )
30586     $ac_shift
30587     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30588     ac_need_defaults=false;;
30589   --header | --heade | --head | --hea )
30590     $ac_shift
30591     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30592     ac_need_defaults=false;;
30593   --he | --h)
30594     # Conflict between --help and --header
30595     { echo "$as_me: error: ambiguous option: $1
30596 Try \`$0 --help' for more information." >&2
30597    { (exit 1); exit 1; }; };;
30598   --help | --hel | -h )
30599     echo "$ac_cs_usage"; exit ;;
30600   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30601   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30602     ac_cs_silent=: ;;
30603
30604   # This is an error.
30605   -*) { echo "$as_me: error: unrecognized option: $1
30606 Try \`$0 --help' for more information." >&2
30607    { (exit 1); exit 1; }; } ;;
30608
30609   *) ac_config_targets="$ac_config_targets $1"
30610      ac_need_defaults=false ;;
30611
30612   esac
30613   shift
30614 done
30615
30616 ac_configure_extra_args=
30617
30618 if $ac_cs_silent; then
30619   exec 6>/dev/null
30620   ac_configure_extra_args="$ac_configure_extra_args --silent"
30621 fi
30622
30623 _ACEOF
30624 cat >>$CONFIG_STATUS <<_ACEOF
30625 if \$ac_cs_recheck; then
30626   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30627   CONFIG_SHELL=$SHELL
30628   export CONFIG_SHELL
30629   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30630 fi
30631
30632 _ACEOF
30633 cat >>$CONFIG_STATUS <<\_ACEOF
30634 exec 5>>config.log
30635 {
30636   echo
30637   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30638 ## Running $as_me. ##
30639 _ASBOX
30640   echo "$ac_log"
30641 } >&5
30642
30643 _ACEOF
30644 cat >>$CONFIG_STATUS <<_ACEOF
30645 #
30646 # INIT-COMMANDS
30647 #
30648 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30649     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30650     # from automake.
30651     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30652     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30653     LINGUAS="${LINGUAS-%UNSET%}"
30654
30655
30656 _ACEOF
30657
30658 cat >>$CONFIG_STATUS <<\_ACEOF
30659
30660 # Handling of arguments.
30661 for ac_config_target in $ac_config_targets
30662 do
30663   case $ac_config_target in
30664     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30665     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30666     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30667     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30668     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30669     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30670     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30671     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30672     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30673     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30674     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30675     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30676     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30677     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30678     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30679     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30680     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30681     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30682     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30683     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30684     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30685     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30686     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30687     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30688     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30689     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30690     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30691     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30692     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30693     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30694     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30695     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30696     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30697     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30698     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30699     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30700     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30701     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30702     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30703     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30704     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30705     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30706     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30707     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30708     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30709     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30710     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30711     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30712     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30713     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30714     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30715     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30716     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30717     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30718     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30719     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30720     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30721     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30722     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30723     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30724     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30725     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30726     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30727     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30728     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30729     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30730     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30731     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30732     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30733     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30734     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30735     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30736     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30737     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30738     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30739     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30740     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30741     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30742     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30743     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30744     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30745     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30746     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30747     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30748     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30749     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30750     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30751     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30752     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30753     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30754     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30755     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30756     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30757     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30758     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30759     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30760     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30761     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30762     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30763     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30764     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30765     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30766     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30767     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30768     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30769     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30770
30771   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30772 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30773    { (exit 1); exit 1; }; };;
30774   esac
30775 done
30776
30777
30778 # If the user did not use the arguments to specify the items to instantiate,
30779 # then the envvar interface is used.  Set only those that are not.
30780 # We use the long form for the default assignment because of an extremely
30781 # bizarre bug on SunOS 4.1.3.
30782 if $ac_need_defaults; then
30783   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30784   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30785   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30786 fi
30787
30788 # Have a temporary directory for convenience.  Make it in the build tree
30789 # simply because there is no reason against having it here, and in addition,
30790 # creating and moving files from /tmp can sometimes cause problems.
30791 # Hook for its removal unless debugging.
30792 # Note that there is a small window in which the directory will not be cleaned:
30793 # after its creation but before its name has been assigned to `$tmp'.
30794 $debug ||
30795 {
30796   tmp=
30797   trap 'exit_status=$?
30798   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30799 ' 0
30800   trap '{ (exit 1); exit 1; }' 1 2 13 15
30801 }
30802 # Create a (secure) tmp directory for tmp files.
30803
30804 {
30805   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30806   test -n "$tmp" && test -d "$tmp"
30807 }  ||
30808 {
30809   tmp=./conf$$-$RANDOM
30810   (umask 077 && mkdir "$tmp")
30811 } ||
30812 {
30813    echo "$me: cannot create a temporary directory in ." >&2
30814    { (exit 1); exit 1; }
30815 }
30816
30817 #
30818 # Set up the sed scripts for CONFIG_FILES section.
30819 #
30820
30821 # No need to generate the scripts if there are no CONFIG_FILES.
30822 # This happens for instance when ./config.status config.h
30823 if test -n "$CONFIG_FILES"; then
30824
30825 _ACEOF
30826
30827 # Create sed commands to just substitute file output variables.
30828
30829 # Remaining file output variables are in a fragment that also has non-file
30830 # output varibles.
30831
30832
30833
30834 ac_delim='%!_!# '
30835 for ac_last_try in false false false false false :; do
30836   cat >conf$$subs.sed <<_ACEOF
30837 SHELL!$SHELL$ac_delim
30838 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30839 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30840 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30841 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30842 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30843 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30844 exec_prefix!$exec_prefix$ac_delim
30845 prefix!$prefix$ac_delim
30846 program_transform_name!$program_transform_name$ac_delim
30847 bindir!$bindir$ac_delim
30848 sbindir!$sbindir$ac_delim
30849 libexecdir!$libexecdir$ac_delim
30850 datarootdir!$datarootdir$ac_delim
30851 datadir!$datadir$ac_delim
30852 sysconfdir!$sysconfdir$ac_delim
30853 sharedstatedir!$sharedstatedir$ac_delim
30854 localstatedir!$localstatedir$ac_delim
30855 includedir!$includedir$ac_delim
30856 oldincludedir!$oldincludedir$ac_delim
30857 docdir!$docdir$ac_delim
30858 infodir!$infodir$ac_delim
30859 htmldir!$htmldir$ac_delim
30860 dvidir!$dvidir$ac_delim
30861 pdfdir!$pdfdir$ac_delim
30862 psdir!$psdir$ac_delim
30863 libdir!$libdir$ac_delim
30864 localedir!$localedir$ac_delim
30865 mandir!$mandir$ac_delim
30866 DEFS!$DEFS$ac_delim
30867 ECHO_C!$ECHO_C$ac_delim
30868 ECHO_N!$ECHO_N$ac_delim
30869 ECHO_T!$ECHO_T$ac_delim
30870 LIBS!$LIBS$ac_delim
30871 build_alias!$build_alias$ac_delim
30872 host_alias!$host_alias$ac_delim
30873 target_alias!$target_alias$ac_delim
30874 BUILD_DIR!$BUILD_DIR$ac_delim
30875 TOP_DIR!$TOP_DIR$ac_delim
30876 TRUEPRG!$TRUEPRG$ac_delim
30877 FALSEPRG!$FALSEPRG$ac_delim
30878 VERSION!$VERSION$ac_delim
30879 DATE!$DATE$ac_delim
30880 LSMDATE!$LSMDATE$ac_delim
30881 CC!$CC$ac_delim
30882 CFLAGS!$CFLAGS$ac_delim
30883 LDFLAGS!$LDFLAGS$ac_delim
30884 CPPFLAGS!$CPPFLAGS$ac_delim
30885 ac_ct_CC!$ac_ct_CC$ac_delim
30886 EXEEXT!$EXEEXT$ac_delim
30887 OBJEXT!$OBJEXT$ac_delim
30888 CXX!$CXX$ac_delim
30889 CXXFLAGS!$CXXFLAGS$ac_delim
30890 ac_ct_CXX!$ac_ct_CXX$ac_delim
30891 CPP!$CPP$ac_delim
30892 GREP!$GREP$ac_delim
30893 EGREP!$EGREP$ac_delim
30894 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30895 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30896 INSTALL_DATA!$INSTALL_DATA$ac_delim
30897 RANLIB!$RANLIB$ac_delim
30898 MV!$MV$ac_delim
30899 RM!$RM$ac_delim
30900 CP!$CP$ac_delim
30901 SED!$SED$ac_delim
30902 ECHO!$ECHO$ac_delim
30903 CMP!$CMP$ac_delim
30904 TBL!$TBL$ac_delim
30905 AR!$AR$ac_delim
30906 OPENSSL!$OPENSSL$ac_delim
30907 MTX!$MTX$ac_delim
30908 DD!$DD$ac_delim
30909 MKISOFS!$MKISOFS$ac_delim
30910 PYTHON!$PYTHON$ac_delim
30911 GROWISOFS!$GROWISOFS$ac_delim
30912 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30913 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30914 PKGCONFIG!$PKGCONFIG$ac_delim
30915 QMAKE!$QMAKE$ac_delim
30916 QMAKEQT4!$QMAKEQT4$ac_delim
30917 WXCONFIG!$WXCONFIG$ac_delim
30918 WXFLAGS!$WXFLAGS$ac_delim
30919 CDRECORD!$CDRECORD$ac_delim
30920 PIDOF!$PIDOF$ac_delim
30921 AWK!$AWK$ac_delim
30922 ARFLAGS!$ARFLAGS$ac_delim
30923 MAKE_SHELL!$MAKE_SHELL$ac_delim
30924 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30925 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30926 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30927 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30928 build!$build$ac_delim
30929 build_cpu!$build_cpu$ac_delim
30930 build_vendor!$build_vendor$ac_delim
30931 _ACEOF
30932
30933   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30934     break
30935   elif $ac_last_try; then
30936     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30938    { (exit 1); exit 1; }; }
30939   else
30940     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30941   fi
30942 done
30943
30944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30945 if test -n "$ac_eof"; then
30946   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30947   ac_eof=`expr $ac_eof + 1`
30948 fi
30949
30950 cat >>$CONFIG_STATUS <<_ACEOF
30951 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30953 /^[      ]*@MCOMMON@[    ]*$/{
30954 r $MCOMMON
30955 d
30956 }
30957 _ACEOF
30958 sed '
30959 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30960 s/^/s,@/; s/!/@,|#_!!_#|/
30961 :n
30962 t n
30963 s/'"$ac_delim"'$/,g/; t
30964 s/$/\\/; p
30965 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30966 ' >>$CONFIG_STATUS <conf$$subs.sed
30967 rm -f conf$$subs.sed
30968 cat >>$CONFIG_STATUS <<_ACEOF
30969 CEOF$ac_eof
30970 _ACEOF
30971
30972
30973 ac_delim='%!_!# '
30974 for ac_last_try in false false false false false :; do
30975   cat >conf$$subs.sed <<_ACEOF
30976 build_os!$build_os$ac_delim
30977 host!$host$ac_delim
30978 host_cpu!$host_cpu$ac_delim
30979 host_vendor!$host_vendor$ac_delim
30980 host_os!$host_os$ac_delim
30981 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
30982 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
30983 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
30984 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
30985 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
30986 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
30987 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
30988 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
30989 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
30990 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
30991 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
30992 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
30993 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
30994 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
30995 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
30996 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
30997 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
30998 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
30999 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31000 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31001 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31002 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31003 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31004 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31005 SET_MAKE!$SET_MAKE$ac_delim
31006 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31007 USE_NLS!$USE_NLS$ac_delim
31008 MSGFMT!$MSGFMT$ac_delim
31009 GMSGFMT!$GMSGFMT$ac_delim
31010 XGETTEXT!$XGETTEXT$ac_delim
31011 MSGMERGE!$MSGMERGE$ac_delim
31012 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31013 LIBICONV!$LIBICONV$ac_delim
31014 LTLIBICONV!$LTLIBICONV$ac_delim
31015 INTLLIBS!$INTLLIBS$ac_delim
31016 LIBINTL!$LIBINTL$ac_delim
31017 LTLIBINTL!$LTLIBINTL$ac_delim
31018 POSUB!$POSUB$ac_delim
31019 GLIBC2!$GLIBC2$ac_delim
31020 ALLOCA!$ALLOCA$ac_delim
31021 GLIBC21!$GLIBC21$ac_delim
31022 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31023 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31024 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31025 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31026 INTLBISON!$INTLBISON$ac_delim
31027 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31028 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31029 CATOBJEXT!$CATOBJEXT$ac_delim
31030 DATADIRNAME!$DATADIRNAME$ac_delim
31031 INSTOBJEXT!$INSTOBJEXT$ac_delim
31032 GENCAT!$GENCAT$ac_delim
31033 INTLOBJS!$INTLOBJS$ac_delim
31034 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31035 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31036 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31037 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31038 GNOME_LIBS!$GNOME_LIBS$ac_delim
31039 GNOME_DIR!$GNOME_DIR$ac_delim
31040 BAT_DIR!$BAT_DIR$ac_delim
31041 QWT_INC!$QWT_INC$ac_delim
31042 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31043 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31044 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31045 WX_DIR!$WX_DIR$ac_delim
31046 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31047 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31048 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31049 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31050 STATIC_FD!$STATIC_FD$ac_delim
31051 STATIC_SD!$STATIC_SD$ac_delim
31052 STATIC_DIR!$STATIC_DIR$ac_delim
31053 STATIC_CONS!$STATIC_CONS$ac_delim
31054 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31055 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31056 ALL_DIRS!$ALL_DIRS$ac_delim
31057 DIRD_DIR!$DIRD_DIR$ac_delim
31058 DIR_TOOLS!$DIR_TOOLS$ac_delim
31059 STORED_DIR!$STORED_DIR$ac_delim
31060 CONS_INC!$CONS_INC$ac_delim
31061 CONS_OBJ!$CONS_OBJ$ac_delim
31062 CONS_SRC!$CONS_SRC$ac_delim
31063 CONS_LIBS!$CONS_LIBS$ac_delim
31064 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31065 READLINE_SRC!$READLINE_SRC$ac_delim
31066 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31067 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31068 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31069 OPENSSL_INC!$OPENSSL_INC$ac_delim
31070 working_dir!$working_dir$ac_delim
31071 archivedir!$archivedir$ac_delim
31072 scriptdir!$scriptdir$ac_delim
31073 _ACEOF
31074
31075   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31076     break
31077   elif $ac_last_try; then
31078     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31079 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31080    { (exit 1); exit 1; }; }
31081   else
31082     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31083   fi
31084 done
31085
31086 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31087 if test -n "$ac_eof"; then
31088   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31089   ac_eof=`expr $ac_eof + 1`
31090 fi
31091
31092 cat >>$CONFIG_STATUS <<_ACEOF
31093 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31095 _ACEOF
31096 sed '
31097 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31098 s/^/s,@/; s/!/@,|#_!!_#|/
31099 :n
31100 t n
31101 s/'"$ac_delim"'$/,g/; t
31102 s/$/\\/; p
31103 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31104 ' >>$CONFIG_STATUS <conf$$subs.sed
31105 rm -f conf$$subs.sed
31106 cat >>$CONFIG_STATUS <<_ACEOF
31107 CEOF$ac_eof
31108 _ACEOF
31109
31110
31111 ac_delim='%!_!# '
31112 for ac_last_try in false false false false false :; do
31113   cat >conf$$subs.sed <<_ACEOF
31114 dump_email!$dump_email$ac_delim
31115 job_email!$job_email$ac_delim
31116 smtp_host!$smtp_host$ac_delim
31117 piddir!$piddir$ac_delim
31118 subsysdir!$subsysdir$ac_delim
31119 baseport!$baseport$ac_delim
31120 dir_port!$dir_port$ac_delim
31121 fd_port!$fd_port$ac_delim
31122 sd_port!$sd_port$ac_delim
31123 dir_password!$dir_password$ac_delim
31124 fd_password!$fd_password$ac_delim
31125 sd_password!$sd_password$ac_delim
31126 mon_dir_password!$mon_dir_password$ac_delim
31127 mon_fd_password!$mon_fd_password$ac_delim
31128 mon_sd_password!$mon_sd_password$ac_delim
31129 db_name!$db_name$ac_delim
31130 db_user!$db_user$ac_delim
31131 dir_user!$dir_user$ac_delim
31132 dir_group!$dir_group$ac_delim
31133 sd_user!$sd_user$ac_delim
31134 sd_group!$sd_group$ac_delim
31135 fd_user!$fd_user$ac_delim
31136 fd_group!$fd_group$ac_delim
31137 SBINPERM!$SBINPERM$ac_delim
31138 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31139 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31140 SQL_BINDIR!$SQL_BINDIR$ac_delim
31141 cats!$cats$ac_delim
31142 DB_TYPE!$DB_TYPE$ac_delim
31143 GETCONF!$GETCONF$ac_delim
31144 XMKMF!$XMKMF$ac_delim
31145 X_CFLAGS!$X_CFLAGS$ac_delim
31146 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31147 X_LIBS!$X_LIBS$ac_delim
31148 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31149 LIBOBJS!$LIBOBJS$ac_delim
31150 FDLIBS!$FDLIBS$ac_delim
31151 DEBUG!$DEBUG$ac_delim
31152 DINCLUDE!$DINCLUDE$ac_delim
31153 DLIB!$DLIB$ac_delim
31154 DB_LIBS!$DB_LIBS$ac_delim
31155 WCFLAGS!$WCFLAGS$ac_delim
31156 WLDFLAGS!$WLDFLAGS$ac_delim
31157 WRAPLIBS!$WRAPLIBS$ac_delim
31158 OBJLIST!$OBJLIST$ac_delim
31159 hostname!$hostname$ac_delim
31160 TAPEDRIVE!$TAPEDRIVE$ac_delim
31161 PSCMD!$PSCMD$ac_delim
31162 WIN32!$WIN32$ac_delim
31163 MACOSX!$MACOSX$ac_delim
31164 DISTNAME!$DISTNAME$ac_delim
31165 DISTVER!$DISTVER$ac_delim
31166 LTLIBOBJS!$LTLIBOBJS$ac_delim
31167 _ACEOF
31168
31169   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
31170     break
31171   elif $ac_last_try; then
31172     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31174    { (exit 1); exit 1; }; }
31175   else
31176     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31177   fi
31178 done
31179
31180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31181 if test -n "$ac_eof"; then
31182   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31183   ac_eof=`expr $ac_eof + 1`
31184 fi
31185
31186 cat >>$CONFIG_STATUS <<_ACEOF
31187 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31189 _ACEOF
31190 sed '
31191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31192 s/^/s,@/; s/!/@,|#_!!_#|/
31193 :n
31194 t n
31195 s/'"$ac_delim"'$/,g/; t
31196 s/$/\\/; p
31197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31198 ' >>$CONFIG_STATUS <conf$$subs.sed
31199 rm -f conf$$subs.sed
31200 cat >>$CONFIG_STATUS <<_ACEOF
31201 :end
31202 s/|#_!!_#|//g
31203 CEOF$ac_eof
31204 _ACEOF
31205
31206
31207 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31208 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31209 # trailing colons and then remove the whole line if VPATH becomes empty
31210 # (actually we leave an empty line to preserve line numbers).
31211 if test "x$srcdir" = x.; then
31212   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31213 s/:*\$(srcdir):*/:/
31214 s/:*\${srcdir}:*/:/
31215 s/:*@srcdir@:*/:/
31216 s/^\([^=]*=[     ]*\):*/\1/
31217 s/:*$//
31218 s/^[^=]*=[       ]*$//
31219 }'
31220 fi
31221
31222 cat >>$CONFIG_STATUS <<\_ACEOF
31223 fi # test -n "$CONFIG_FILES"
31224
31225
31226 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31227 do
31228   case $ac_tag in
31229   :[FHLC]) ac_mode=$ac_tag; continue;;
31230   esac
31231   case $ac_mode$ac_tag in
31232   :[FHL]*:*);;
31233   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31234 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31235    { (exit 1); exit 1; }; };;
31236   :[FH]-) ac_tag=-:-;;
31237   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31238   esac
31239   ac_save_IFS=$IFS
31240   IFS=:
31241   set x $ac_tag
31242   IFS=$ac_save_IFS
31243   shift
31244   ac_file=$1
31245   shift
31246
31247   case $ac_mode in
31248   :L) ac_source=$1;;
31249   :[FH])
31250     ac_file_inputs=
31251     for ac_f
31252     do
31253       case $ac_f in
31254       -) ac_f="$tmp/stdin";;
31255       *) # Look for the file first in the build tree, then in the source tree
31256          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31257          # because $ac_f cannot contain `:'.
31258          test -f "$ac_f" ||
31259            case $ac_f in
31260            [\\/$]*) false;;
31261            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31262            esac ||
31263            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31264 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31265    { (exit 1); exit 1; }; };;
31266       esac
31267       ac_file_inputs="$ac_file_inputs $ac_f"
31268     done
31269
31270     # Let's still pretend it is `configure' which instantiates (i.e., don't
31271     # use $as_me), people would be surprised to read:
31272     #    /* config.h.  Generated by config.status.  */
31273     configure_input="Generated from "`IFS=:
31274           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31275     if test x"$ac_file" != x-; then
31276       configure_input="$ac_file.  $configure_input"
31277       { echo "$as_me:$LINENO: creating $ac_file" >&5
31278 echo "$as_me: creating $ac_file" >&6;}
31279     fi
31280
31281     case $ac_tag in
31282     *:-:* | *:-) cat >"$tmp/stdin";;
31283     esac
31284     ;;
31285   esac
31286
31287   ac_dir=`$as_dirname -- "$ac_file" ||
31288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31289          X"$ac_file" : 'X\(//\)[^/]' \| \
31290          X"$ac_file" : 'X\(//\)$' \| \
31291          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31292 echo X"$ac_file" |
31293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31294             s//\1/
31295             q
31296           }
31297           /^X\(\/\/\)[^/].*/{
31298             s//\1/
31299             q
31300           }
31301           /^X\(\/\/\)$/{
31302             s//\1/
31303             q
31304           }
31305           /^X\(\/\).*/{
31306             s//\1/
31307             q
31308           }
31309           s/.*/./; q'`
31310   { as_dir="$ac_dir"
31311   case $as_dir in #(
31312   -*) as_dir=./$as_dir;;
31313   esac
31314   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31315     as_dirs=
31316     while :; do
31317       case $as_dir in #(
31318       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31319       *) as_qdir=$as_dir;;
31320       esac
31321       as_dirs="'$as_qdir' $as_dirs"
31322       as_dir=`$as_dirname -- "$as_dir" ||
31323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31324          X"$as_dir" : 'X\(//\)[^/]' \| \
31325          X"$as_dir" : 'X\(//\)$' \| \
31326          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31327 echo X"$as_dir" |
31328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31329             s//\1/
31330             q
31331           }
31332           /^X\(\/\/\)[^/].*/{
31333             s//\1/
31334             q
31335           }
31336           /^X\(\/\/\)$/{
31337             s//\1/
31338             q
31339           }
31340           /^X\(\/\).*/{
31341             s//\1/
31342             q
31343           }
31344           s/.*/./; q'`
31345       test -d "$as_dir" && break
31346     done
31347     test -z "$as_dirs" || eval "mkdir $as_dirs"
31348   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31349 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31350    { (exit 1); exit 1; }; }; }
31351   ac_builddir=.
31352
31353 case "$ac_dir" in
31354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31355 *)
31356   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31357   # A ".." for each directory in $ac_dir_suffix.
31358   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31359   case $ac_top_builddir_sub in
31360   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31361   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31362   esac ;;
31363 esac
31364 ac_abs_top_builddir=$ac_pwd
31365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31366 # for backward compatibility:
31367 ac_top_builddir=$ac_top_build_prefix
31368
31369 case $srcdir in
31370   .)  # We are building in place.
31371     ac_srcdir=.
31372     ac_top_srcdir=$ac_top_builddir_sub
31373     ac_abs_top_srcdir=$ac_pwd ;;
31374   [\\/]* | ?:[\\/]* )  # Absolute name.
31375     ac_srcdir=$srcdir$ac_dir_suffix;
31376     ac_top_srcdir=$srcdir
31377     ac_abs_top_srcdir=$srcdir ;;
31378   *) # Relative name.
31379     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31380     ac_top_srcdir=$ac_top_build_prefix$srcdir
31381     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31382 esac
31383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31384
31385
31386   case $ac_mode in
31387   :F)
31388   #
31389   # CONFIG_FILE
31390   #
31391
31392   case $INSTALL in
31393   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31394   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31395   esac
31396 _ACEOF
31397
31398 cat >>$CONFIG_STATUS <<\_ACEOF
31399 # If the template does not know about datarootdir, expand it.
31400 # FIXME: This hack should be removed a few years after 2.60.
31401 ac_datarootdir_hack=; ac_datarootdir_seen=
31402
31403 case `sed -n '/datarootdir/ {
31404   p
31405   q
31406 }
31407 /@datadir@/p
31408 /@docdir@/p
31409 /@infodir@/p
31410 /@localedir@/p
31411 /@mandir@/p
31412 ' $ac_file_inputs` in
31413 *datarootdir*) ac_datarootdir_seen=yes;;
31414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31415   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31416 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31417 _ACEOF
31418 cat >>$CONFIG_STATUS <<_ACEOF
31419   ac_datarootdir_hack='
31420   s&@datadir@&$datadir&g
31421   s&@docdir@&$docdir&g
31422   s&@infodir@&$infodir&g
31423   s&@localedir@&$localedir&g
31424   s&@mandir@&$mandir&g
31425     s&\\\${datarootdir}&$datarootdir&g' ;;
31426 esac
31427 _ACEOF
31428
31429 # Neutralize VPATH when `$srcdir' = `.'.
31430 # Shell code in configure.ac might set extrasub.
31431 # FIXME: do we really want to maintain this feature?
31432 cat >>$CONFIG_STATUS <<_ACEOF
31433   sed "$ac_vpsub
31434 $extrasub
31435 _ACEOF
31436 cat >>$CONFIG_STATUS <<\_ACEOF
31437 :t
31438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31439 s&@configure_input@&$configure_input&;t t
31440 s&@top_builddir@&$ac_top_builddir_sub&;t t
31441 s&@srcdir@&$ac_srcdir&;t t
31442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31443 s&@top_srcdir@&$ac_top_srcdir&;t t
31444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31445 s&@builddir@&$ac_builddir&;t t
31446 s&@abs_builddir@&$ac_abs_builddir&;t t
31447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31448 s&@INSTALL@&$ac_INSTALL&;t t
31449 $ac_datarootdir_hack
31450 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31451
31452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31453   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31454   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31455   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31456 which seems to be undefined.  Please make sure it is defined." >&5
31457 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31458 which seems to be undefined.  Please make sure it is defined." >&2;}
31459
31460   rm -f "$tmp/stdin"
31461   case $ac_file in
31462   -) cat "$tmp/out"; rm -f "$tmp/out";;
31463   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31464   esac
31465  ;;
31466   :H)
31467   #
31468   # CONFIG_HEADER
31469   #
31470 _ACEOF
31471
31472 # Transform confdefs.h into a sed script `conftest.defines', that
31473 # substitutes the proper values into config.h.in to produce config.h.
31474 rm -f conftest.defines conftest.tail
31475 # First, append a space to every undef/define line, to ease matching.
31476 echo 's/$/ /' >conftest.defines
31477 # Then, protect against being on the right side of a sed subst, or in
31478 # an unquoted here document, in config.status.  If some macros were
31479 # called several times there might be several #defines for the same
31480 # symbol, which is useless.  But do not sort them, since the last
31481 # AC_DEFINE must be honored.
31482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31483 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31484 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31485 # PARAMS is the parameter list in the macro definition--in most cases, it's
31486 # just an empty string.
31487 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31488 ac_dB='\\)[      (].*,\\1define\\2'
31489 ac_dC=' '
31490 ac_dD=' ,'
31491
31492 uniq confdefs.h |
31493   sed -n '
31494         t rset
31495         :rset
31496         s/^[     ]*#[    ]*define[       ][      ]*//
31497         t ok
31498         d
31499         :ok
31500         s/[\\&,]/\\&/g
31501         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31502         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31503   ' >>conftest.defines
31504
31505 # Remove the space that was appended to ease matching.
31506 # Then replace #undef with comments.  This is necessary, for
31507 # example, in the case of _POSIX_SOURCE, which is predefined and required
31508 # on some systems where configure will not decide to define it.
31509 # (The regexp can be short, since the line contains either #define or #undef.)
31510 echo 's/ $//
31511 s,^[     #]*u.*,/* & */,' >>conftest.defines
31512
31513 # Break up conftest.defines:
31514 ac_max_sed_lines=50
31515
31516 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31517 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31518 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31519 # et cetera.
31520 ac_in='$ac_file_inputs'
31521 ac_out='"$tmp/out1"'
31522 ac_nxt='"$tmp/out2"'
31523
31524 while :
31525 do
31526   # Write a here document:
31527     cat >>$CONFIG_STATUS <<_ACEOF
31528     # First, check the format of the line:
31529     cat >"\$tmp/defines.sed" <<\\CEOF
31530 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31531 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31532 b
31533 :def
31534 _ACEOF
31535   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31536   echo 'CEOF
31537     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31538   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31539   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31540   grep . conftest.tail >/dev/null || break
31541   rm -f conftest.defines
31542   mv conftest.tail conftest.defines
31543 done
31544 rm -f conftest.defines conftest.tail
31545
31546 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31547 cat >>$CONFIG_STATUS <<\_ACEOF
31548   if test x"$ac_file" != x-; then
31549     echo "/* $configure_input  */" >"$tmp/config.h"
31550     cat "$ac_result" >>"$tmp/config.h"
31551     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31552       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31553 echo "$as_me: $ac_file is unchanged" >&6;}
31554     else
31555       rm -f $ac_file
31556       mv "$tmp/config.h" $ac_file
31557     fi
31558   else
31559     echo "/* $configure_input  */"
31560     cat "$ac_result"
31561   fi
31562   rm -f "$tmp/out12"
31563  ;;
31564
31565   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31566 echo "$as_me: executing $ac_file commands" >&6;}
31567  ;;
31568   esac
31569
31570
31571   case $ac_file$ac_mode in
31572     "default-1":C)
31573     for ac_file in $CONFIG_FILES; do
31574       # Support "outfile[:infile[:infile...]]"
31575       case "$ac_file" in
31576         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31577       esac
31578       # PO directories have a Makefile.in generated from Makefile.in.in.
31579       case "$ac_file" in */Makefile.in)
31580         # Adjust a relative srcdir.
31581         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31582         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31583         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31584         # In autoconf-2.13 it is called $ac_given_srcdir.
31585         # In autoconf-2.50 it is called $srcdir.
31586         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31587         case "$ac_given_srcdir" in
31588           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31589           /*) top_srcdir="$ac_given_srcdir" ;;
31590           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31591         esac
31592         # Treat a directory as a PO directory if and only if it has a
31593         # POTFILES.in file. This allows packages to have multiple PO
31594         # directories under different names or in different locations.
31595         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31596           rm -f "$ac_dir/POTFILES"
31597           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31598           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31599           POMAKEFILEDEPS="POTFILES.in"
31600           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31601           # on $ac_dir but don't depend on user-specified configuration
31602           # parameters.
31603           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31604             # The LINGUAS file contains the set of available languages.
31605             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31606               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31607             fi
31608             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31609             # Hide the ALL_LINGUAS assigment from automake.
31610             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31611             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31612           else
31613             # The set of available languages was given in configure.in.
31614             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31615           fi
31616           # Compute POFILES
31617           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31618           # Compute UPDATEPOFILES
31619           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31620           # Compute DUMMYPOFILES
31621           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31622           # Compute GMOFILES
31623           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31624           case "$ac_given_srcdir" in
31625             .) srcdirpre= ;;
31626             *) srcdirpre='$(srcdir)/' ;;
31627           esac
31628           POFILES=
31629           UPDATEPOFILES=
31630           DUMMYPOFILES=
31631           GMOFILES=
31632           for lang in $ALL_LINGUAS; do
31633             POFILES="$POFILES $srcdirpre$lang.po"
31634             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31635             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31636             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31637           done
31638           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31639           # environment variable.
31640           INST_LINGUAS=
31641           if test -n "$ALL_LINGUAS"; then
31642             for presentlang in $ALL_LINGUAS; do
31643               useit=no
31644               if test "%UNSET%" != "$LINGUAS"; then
31645                 desiredlanguages="$LINGUAS"
31646               else
31647                 desiredlanguages="$ALL_LINGUAS"
31648               fi
31649               for desiredlang in $desiredlanguages; do
31650                 # Use the presentlang catalog if desiredlang is
31651                 #   a. equal to presentlang, or
31652                 #   b. a variant of presentlang (because in this case,
31653                 #      presentlang can be used as a fallback for messages
31654                 #      which are not translated in the desiredlang catalog).
31655                 case "$desiredlang" in
31656                   "$presentlang"*) useit=yes;;
31657                 esac
31658               done
31659               if test $useit = yes; then
31660                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31661               fi
31662             done
31663           fi
31664           CATALOGS=
31665           if test -n "$INST_LINGUAS"; then
31666             for lang in $INST_LINGUAS; do
31667               CATALOGS="$CATALOGS $lang.gmo"
31668             done
31669           fi
31670           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31671           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"
31672           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31673             if test -f "$f"; then
31674               case "$f" in
31675                 *.orig | *.bak | *~) ;;
31676                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31677               esac
31678             fi
31679           done
31680         fi
31681         ;;
31682       esac
31683     done ;;
31684     "default":C)
31685  ;;
31686
31687   esac
31688 done # for ac_tag
31689
31690
31691 { (exit 0); exit 0; }
31692 _ACEOF
31693 chmod +x $CONFIG_STATUS
31694 ac_clean_files=$ac_clean_files_save
31695
31696
31697 # configure is writing to config.log, and then calls config.status.
31698 # config.status does its own redirection, appending to config.log.
31699 # Unfortunately, on DOS this fails, as config.log is still kept open
31700 # by configure, so config.status won't be able to write to it; its
31701 # output is simply discarded.  So we exec the FD to /dev/null,
31702 # effectively closing config.log, so it can be properly (re)opened and
31703 # appended to by config.status.  When coming back to configure, we
31704 # need to make the FD available again.
31705 if test "$no_create" != yes; then
31706   ac_cs_success=:
31707   ac_config_status_args=
31708   test "$silent" = yes &&
31709     ac_config_status_args="$ac_config_status_args --quiet"
31710   exec 5>/dev/null
31711   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31712   exec 5>>config.log
31713   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31714   # would make configure fail if this is the last instruction.
31715   $ac_cs_success || { (exit 1); exit 1; }
31716 fi
31717
31718
31719 if test "${support_bat}" = "yes" ; then
31720   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31721   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31722   exit 1
31723   fi
31724
31725   QMAKEBIN="qmake"
31726
31727   if test "x$QMAKEQT4" != "xnone"; then
31728     QMAKEBIN=qmake-qt4
31729   fi
31730
31731
31732
31733   cd src/qt-console
31734   chmod 755 install_conf_file build-depkgs-qt-console
31735   echo "Creating bat Makefile"
31736   $QMAKEBIN
31737   cd ${BUILD_DIR}
31738 fi
31739
31740 echo "Doing make of dependencies"
31741 ${MAKE:-make} depend
31742
31743 cd scripts
31744 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31745 chmod 755 dvd-handler dvd-simulator
31746 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31747 cd ..
31748
31749 c=src/cats
31750
31751 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31752 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31753
31754 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31755 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31756
31757 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31758 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31759
31760 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31761 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31762
31763 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31764 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31765
31766 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31767 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31768
31769 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31770 chmod 755 $c/sqlite
31771 chmod 755 $c/mysql
31772
31773 chmod 755 src/win32/build-depkgs-mingw32
31774
31775
31776
31777 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31778    largefile_support="yes"
31779 fi
31780
31781 #
31782 # A whole lot of hand springs to get the compiler version.
31783 #  This is because gcc changed the output in version 3.0
31784 #
31785 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31786 if test "x${CCVERSION}" = "x" ; then
31787   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31788 fi
31789 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31790 if test x"${CXXVERSION}" = x ; then
31791   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31792 fi
31793
31794 if test "x${subsysdir}" = "x${sbindir}" ; then
31795    echo " "
31796    echo " "
31797    echo "You have set --sbindir and --with-subsys-dir"
31798    echo "  both equal to: ${subsysdir} "
31799    echo "  This is not permitted. Please reconfigure."
31800    echo " "
31801    echo "Aborting configuration ..."
31802    echo " "
31803    echo " "
31804    exit 1
31805 fi
31806
31807 if test "x${db_type}" = "xInternal" ; then
31808    echo " "
31809    echo " "
31810    echo "You have not specified either --enable-client-only or one of the"
31811    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31812    echo "  This is not permitted. Please reconfigure."
31813    echo " "
31814    echo "Aborting the configuration ..."
31815    echo " "
31816    echo " "
31817    exit 1
31818 fi
31819
31820 echo "
31821 Configuration on `date`:
31822
31823   Host:                       $host -- ${DISTNAME} ${DISTVER}
31824   Bacula version:             ${VERSION} (${DATE})
31825   Source code location:       ${srcdir}
31826   Install binaries:           ${sbindir}
31827   Install config files:       ${sysconfdir}
31828   Scripts directory:          ${scriptdir}
31829   Archive directory:          ${archivedir}
31830   Working directory:          ${working_dir}
31831   PID directory:              ${piddir}
31832   Subsys directory:           ${subsysdir}
31833   Man directory:              ${mandir}
31834   Data directory:             ${datadir}
31835   C Compiler:                 ${CC} ${CCVERSION}
31836   C++ Compiler:               ${CXX} ${CXXVERSION}
31837   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31838   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31839   Libraries:                  ${LIBS}
31840   Statically Linked Tools:    ${support_static_tools}
31841   Statically Linked FD:       ${support_static_fd}
31842   Statically Linked SD:       ${support_static_sd}
31843   Statically Linked DIR:      ${support_static_dir}
31844   Statically Linked CONS:     ${support_static_cons}
31845   Database type:              ${db_type}
31846   Database lib:               ${DB_LIBS}
31847   Database name:              ${db_name}
31848   Database user:              ${db_user}
31849
31850   Job Output Email:           ${job_email}
31851   Traceback Email:            ${dump_email}
31852   SMTP Host Address:          ${smtp_host}
31853
31854   Director Port:              ${dir_port}
31855   File daemon Port:           ${fd_port}
31856   Storage daemon Port:        ${sd_port}
31857
31858   Director User:              ${dir_user}
31859   Director Group:             ${dir_group}
31860   Storage Daemon User:        ${sd_user}
31861   Storage DaemonGroup:        ${sd_group}
31862   File Daemon User:           ${fd_user}
31863   File Daemon Group:          ${fd_group}
31864
31865   SQL binaries Directory      ${SQL_BINDIR}
31866
31867   Large file support:         $largefile_support
31868   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31869   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31870   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31871   TLS support:                ${support_tls}
31872   Encryption support:         ${support_crypto}
31873   ZLIB support:               ${have_zlib}
31874   enable-smartalloc:          ${support_smartalloc}
31875   bat support:                ${support_bat} ${QWT_LDFLAGS}
31876   enable-gnome:               ${support_gnome} ${gnome_version}
31877   enable-bwx-console:         ${support_wx_console} ${wx_version}
31878   enable-tray-monitor:        ${support_tray_monitor}
31879   client-only:                ${build_client_only}
31880   build-dird:                 ${build_dird}
31881   build-stored:               ${build_stored}
31882   ACL support:                ${have_acl}
31883   Python support:             ${support_python} ${PYTHON_LIBS}
31884   Batch insert enabled:       ${support_batch_insert}
31885
31886   " > config.out
31887
31888 cat config.out