]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add configure bat QWT libraries, so that bat can be built
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 QWT_LIB
778 QWT
779 WXCONS_CPPFLAGS
780 WXCONS_LDFLAGS
781 WX_DIR
782 TRAY_MONITOR_CPPFLAGS
783 TRAY_MONITOR_LDFLAGS
784 TRAY_MONITOR_DIR
785 TTOOL_LDFLAGS
786 STATIC_FD
787 STATIC_SD
788 STATIC_DIR
789 STATIC_CONS
790 STATIC_GNOME_CONS
791 STATIC_WX_CONS
792 ALL_DIRS
793 DIRD_DIR
794 DIR_TOOLS
795 STORED_DIR
796 CONS_INC
797 CONS_OBJ
798 CONS_SRC
799 CONS_LIBS
800 CONS_LDFLAGS
801 READLINE_SRC
802 PYTHON_LIBS
803 PYTHON_INCDIR
804 OPENSSL_LIBS
805 OPENSSL_INC
806 working_dir
807 archivedir
808 scriptdir
809 dump_email
810 job_email
811 smtp_host
812 piddir
813 subsysdir
814 baseport
815 dir_port
816 fd_port
817 sd_port
818 dir_password
819 fd_password
820 sd_password
821 mon_dir_password
822 mon_fd_password
823 mon_sd_password
824 db_name
825 db_user
826 dir_user
827 dir_group
828 sd_user
829 sd_group
830 fd_user
831 fd_group
832 SBINPERM
833 SQL_LFLAGS
834 SQL_INCLUDE
835 SQL_BINDIR
836 DBI_DBD_DRIVERDIR
837 DB_PROG
838 DB_PROG_LIB
839 cats
840 DB_TYPE
841 GETCONF
842 XMKMF
843 X_CFLAGS
844 X_PRE_LIBS
845 X_LIBS
846 X_EXTRA_LIBS
847 LIBOBJS
848 FDLIBS
849 DEBUG
850 DINCLUDE
851 DLIB
852 DB_LIBS
853 WCFLAGS
854 WLDFLAGS
855 WRAPLIBS
856 OBJLIST
857 hostname
858 TAPEDRIVE
859 PSCMD
860 WIN32
861 MACOSX
862 DISTNAME
863 DISTVER
864 LTLIBOBJS'
865 ac_subst_files='MCOMMON'
866       ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CXX
875 CXXFLAGS
876 CCC
877 CPP
878 WXCONFIG
879 WXFLAGS
880 XMKMF'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933   # If the previous option needs an argument, assign it.
934   if test -n "$ac_prev"; then
935     eval $ac_prev=\$ac_option
936     ac_prev=
937     continue
938   fi
939
940   case $ac_option in
941   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942   *)    ac_optarg=yes ;;
943   esac
944
945   # Accept the important Cygnus configure options, so we can diagnose typos.
946
947   case $ac_dashdash$ac_option in
948   --)
949     ac_dashdash=yes ;;
950
951   -bindir | --bindir | --bindi | --bind | --bin | --bi)
952     ac_prev=bindir ;;
953   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954     bindir=$ac_optarg ;;
955
956   -build | --build | --buil | --bui | --bu)
957     ac_prev=build_alias ;;
958   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959     build_alias=$ac_optarg ;;
960
961   -cache-file | --cache-file | --cache-fil | --cache-fi \
962   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963     ac_prev=cache_file ;;
964   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966     cache_file=$ac_optarg ;;
967
968   --config-cache | -C)
969     cache_file=config.cache ;;
970
971   -datadir | --datadir | --datadi | --datad)
972     ac_prev=datadir ;;
973   -datadir=* | --datadir=* | --datadi=* | --datad=*)
974     datadir=$ac_optarg ;;
975
976   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977   | --dataroo | --dataro | --datar)
978     ac_prev=datarootdir ;;
979   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981     datarootdir=$ac_optarg ;;
982
983   -disable-* | --disable-*)
984     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985     # Reject names that are not valid shell variable names.
986     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988    { (exit 1); exit 1; }; }
989     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990     eval enable_$ac_feature=no ;;
991
992   -docdir | --docdir | --docdi | --doc | --do)
993     ac_prev=docdir ;;
994   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995     docdir=$ac_optarg ;;
996
997   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998     ac_prev=dvidir ;;
999   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000     dvidir=$ac_optarg ;;
1001
1002   -enable-* | --enable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid package name: $ac_package" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206     eval with_$ac_package=\$ac_optarg ;;
1207
1208   -without-* | --without-*)
1209     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215     eval with_$ac_package=no ;;
1216
1217   --x)
1218     # Obsolete; use --with-x.
1219     with_x=yes ;;
1220
1221   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222   | --x-incl | --x-inc | --x-in | --x-i)
1223     ac_prev=x_includes ;;
1224   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226     x_includes=$ac_optarg ;;
1227
1228   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230     ac_prev=x_libraries ;;
1231   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233     x_libraries=$ac_optarg ;;
1234
1235   -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237    { (exit 1); exit 1; }; }
1238     ;;
1239
1240   *=*)
1241     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245    { (exit 1); exit 1; }; }
1246     eval $ac_envvar=\$ac_optarg
1247     export $ac_envvar ;;
1248
1249   *)
1250     # FIXME: should be removed in autoconf 3.0.
1251     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255     ;;
1256
1257   esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262   { echo "$as_me: error: missing argument to $ac_option" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265
1266 # Be sure to have absolute directory names.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278    { (exit 1); exit 1; }; }
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290   if test "x$build_alias" = x; then
1291     cross_compiling=maybe
1292     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293     If a cross compiler is detected then cross compile mode will be used." >&2
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   { echo "$as_me: error: Working directory cannot be determined" >&2
1309    { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   { echo "$as_me: error: pwd does not report name of working directory" >&2
1312    { (exit 1); exit 1; }; }
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317   ac_srcdir_defaulted=yes
1318   # Try the directory containing this script, then the parent directory.
1319   ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321          X"$0" : 'X\(//\)[^/]' \| \
1322          X"$0" : 'X\(//\)$' \| \
1323          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324 echo X"$0" |
1325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)[^/].*/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\).*/{
1338             s//\1/
1339             q
1340           }
1341           s/.*/./; q'`
1342   srcdir=$ac_confdir
1343   if test ! -r "$srcdir/$ac_unique_file"; then
1344     srcdir=..
1345   fi
1346 else
1347   ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357    { (exit 1); exit 1; }; }
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR           user executables [EPREFIX/bin]
1418   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR       program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR           object code libraries [EPREFIX/lib]
1424   --includedir=DIR       C header files [PREFIX/include]
1425   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR          info documentation [DATAROOTDIR/info]
1429   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR           man documentation [DATAROOTDIR/man]
1431   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1432   --htmldir=DIR          html documentation [DOCDIR]
1433   --dvidir=DIR           dvi documentation [DOCDIR]
1434   --pdfdir=DIR           pdf documentation [DOCDIR]
1435   --psdir=DIR            ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 X features:
1441   --x-includes=DIR    X include files are in DIR
1442   --x-libraries=DIR   X library files are in DIR
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --disable-nls           do not use Native Language Support
1458   --disable-rpath         do not hardcode runtime library paths
1459   --enable-gnome          enable build of bgnome-console GUI disabled
1460   --enable-bat  enable build of bat Qt4 GUI disabled
1461   --enable-bwx-console     enable build of wxWidgets console disabled
1462   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1463   --enable-smartalloc     enable smartalloc debugging support disabled
1464   --enable-faketape          enable faketape debugging support disabled
1465   --enable-static-tools   enable static tape tools disabled
1466   --enable-static-fd      enable static File daemon disabled
1467   --enable-static-sd      enable static Storage daemon disabled
1468   --enable-static-dir     enable static Director disabled
1469   --enable-static-cons    enable static Console disabled
1470   --enable-client-only    build client (File daemon) only disabled
1471   --enable-build-dird     enable building of dird (Director) enabled
1472   --enable-build-stored   enable building of stored (Storage daemon) enabled
1473  --disable-conio disable conio support enabled
1474
1475   --enable-ipv6             enable ipv6 support enabled
1476
1477   --disable-readline      disable readline support disable
1478
1479         --enable-batch-insert       enable the DB batch insert code disabled
1480  --enable-batch-insert      enable the DB batch insert code disabled
1481   --disable-largefile     omit support for large files
1482
1483 Optional Packages:
1484   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1487   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1488   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1489   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1490   --without-libintl-prefix     don't search for libintl in includedir and libdir
1491   --with-included-gettext use the GNU gettext library included here
1492  --with-qwt[=DIR]                 specify qwt library directory
1493  --with-readline[=DIR]         specify readline library directory
1494
1495   --with-python[=DIR]   Include Python support.  DIR is the Python base
1496                           install directory, default is to search through
1497                           a number of common places for the Python files.
1498   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1499   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1500   --with-working-dir=PATH        specify path of Bacula working directory
1501   --with-archivedir=PATH        specify path of SD archive directory
1502   --with-scriptdir=PATH    specify path of Bacula scripts directory
1503   --with-dump-email=EMAIL        dump email address
1504   --with-job-email=EMAIL         job output email address
1505   --with-smtp-host=HOST          SMTP mail host address
1506   --with-pid-dir=PATH            specify location of Bacula pid files
1507   --with-subsys-dir=PATH         specify location of Bacula subsys file
1508   --with-baseport=PORT           specify base port address for daemons
1509   --with-dir-password=PASSWORD   specify Director's password
1510   --with-fd-password=PASSWORD    specify Client's password
1511   --with-sd-password=PASSWORD    specify Storage daemon's password
1512   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1513   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1514   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1515   --with-db-name=DBNAME        specify database name (default bacula)
1516   --with-db-user=UNAME         specify database user (default bacula)
1517   --with-dir-user=USER           specify user for Director daemon
1518   --with-dir-group=GROUP                 specify group for Director daemon
1519   --with-sd-user=USER            specify user for Storage daemon
1520   --with-sd-group=GROUP          specify group for Storage daemon
1521   --with-fd-user=USER            specify user for File daemon
1522   --with-fd-group=GROUP          specify group for File daemon
1523   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1524   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1525                           base install directory, defaults to /usr/local/pgsql
1526
1527   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1528                           install directory, default is to search through
1529                           a number of common places for the MySQL files.
1530
1531   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1532                           install directory, default is to search through
1533                           a number of common places for the MySQL files.
1534
1535   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1536                           install directory, default is to search through
1537                           a number of common places for the SQLite3 files.
1538
1539   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1540                           install directory, default is to search through
1541                           a number of common places for the SQLite files.
1542
1543   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1544                           install directory, default is to search through
1545                           a number of common places for the DBI files.
1546
1547   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1548                           the one DBI driver like Mysql, Postgresql, others.
1549                           Default is to not configure any driver.
1550   --with-x                use the X Window System
1551
1552 Some influential environment variables:
1553   CC          C compiler command
1554   CFLAGS      C compiler flags
1555   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556               nonstandard directory <lib dir>
1557   LIBS        libraries to pass to the linker, e.g. -l<library>
1558   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559               you have headers in a nonstandard directory <include dir>
1560   CXX         C++ compiler command
1561   CXXFLAGS    C++ compiler flags
1562   CPP         C preprocessor
1563   WXCONFIG    wx-config command. On some systems, you must set it to
1564               wx-config-2.6 to use wxWidgets 2.6.
1565   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1566   XMKMF       Path to xmkmf, Makefile generator for X Window System
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 _ACEOF
1572 ac_status=$?
1573 fi
1574
1575 if test "$ac_init_help" = "recursive"; then
1576   # If there are subdirs, report their specific --help.
1577   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578     test -d "$ac_dir" || continue
1579     ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585   # A ".." for each directory in $ac_dir_suffix.
1586   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587   case $ac_top_builddir_sub in
1588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590   esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598   .)  # We are building in place.
1599     ac_srcdir=.
1600     ac_top_srcdir=$ac_top_builddir_sub
1601     ac_abs_top_srcdir=$ac_pwd ;;
1602   [\\/]* | ?:[\\/]* )  # Absolute name.
1603     ac_srcdir=$srcdir$ac_dir_suffix;
1604     ac_top_srcdir=$srcdir
1605     ac_abs_top_srcdir=$srcdir ;;
1606   *) # Relative name.
1607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608     ac_top_srcdir=$ac_top_build_prefix$srcdir
1609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613     cd "$ac_dir" || { ac_status=$?; continue; }
1614     # Check for guested configure.
1615     if test -f "$ac_srcdir/configure.gnu"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618     elif test -f "$ac_srcdir/configure"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure" --help=recursive
1621     else
1622       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623     fi || ac_status=$?
1624     cd "$ac_pwd" || { ac_status=$?; break; }
1625   done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630   cat <<\_ACEOF
1631 configure
1632 generated by GNU Autoconf 2.61
1633
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639   exit
1640 fi
1641 cat >config.log <<_ACEOF
1642 This file contains any messages produced by compilers while
1643 running configure, to aid debugging if configure makes a mistake.
1644
1645 It was created by $as_me, which was
1646 generated by GNU Autoconf 2.61.  Invocation command line was
1647
1648   $ $0 $@
1649
1650 _ACEOF
1651 exec 5>>config.log
1652 {
1653 cat <<_ASUNAME
1654 ## --------- ##
1655 ## Platform. ##
1656 ## --------- ##
1657
1658 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663
1664 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1666
1667 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1668 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1669 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1671 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1672 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1673 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1674
1675 _ASUNAME
1676
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   echo "PATH: $as_dir"
1683 done
1684 IFS=$as_save_IFS
1685
1686 } >&5
1687
1688 cat >&5 <<_ACEOF
1689
1690
1691 ## ----------- ##
1692 ## Core tests. ##
1693 ## ----------- ##
1694
1695 _ACEOF
1696
1697
1698 # Keep a trace of the command line.
1699 # Strip out --no-create and --no-recursion so they do not pile up.
1700 # Strip out --silent because we don't want to record it for future runs.
1701 # Also quote any args containing shell meta-characters.
1702 # Make two passes to allow for proper duplicate-argument suppression.
1703 ac_configure_args=
1704 ac_configure_args0=
1705 ac_configure_args1=
1706 ac_must_keep_next=false
1707 for ac_pass in 1 2
1708 do
1709   for ac_arg
1710   do
1711     case $ac_arg in
1712     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714     | -silent | --silent | --silen | --sile | --sil)
1715       continue ;;
1716     *\'*)
1717       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718     esac
1719     case $ac_pass in
1720     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721     2)
1722       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723       if test $ac_must_keep_next = true; then
1724         ac_must_keep_next=false # Got value, back to normal.
1725       else
1726         case $ac_arg in
1727           *=* | --config-cache | -C | -disable-* | --disable-* \
1728           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730           | -with-* | --with-* | -without-* | --without-* | --x)
1731             case "$ac_configure_args0 " in
1732               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733             esac
1734             ;;
1735           -* ) ac_must_keep_next=true ;;
1736         esac
1737       fi
1738       ac_configure_args="$ac_configure_args '$ac_arg'"
1739       ;;
1740     esac
1741   done
1742 done
1743 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745
1746 # When interrupted or exit'd, cleanup temporary files, and complete
1747 # config.log.  We remove comments because anyway the quotes in there
1748 # would cause problems or look ugly.
1749 # WARNING: Use '\'' to represent an apostrophe within the trap.
1750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751 trap 'exit_status=$?
1752   # Save into config.log some information that might help in debugging.
1753   {
1754     echo
1755
1756     cat <<\_ASBOX
1757 ## ---------------- ##
1758 ## Cache variables. ##
1759 ## ---------------- ##
1760 _ASBOX
1761     echo
1762     # The following way of writing the cache mishandles newlines in values,
1763 (
1764   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765     eval ac_val=\$$ac_var
1766     case $ac_val in #(
1767     *${as_nl}*)
1768       case $ac_var in #(
1769       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1771       esac
1772       case $ac_var in #(
1773       _ | IFS | as_nl) ;; #(
1774       *) $as_unset $ac_var ;;
1775       esac ;;
1776     esac
1777   done
1778   (set) 2>&1 |
1779     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780     *${as_nl}ac_space=\ *)
1781       sed -n \
1782         "s/'\''/'\''\\\\'\'''\''/g;
1783           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784       ;; #(
1785     *)
1786       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787       ;;
1788     esac |
1789     sort
1790 )
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1797 _ASBOX
1798     echo
1799     for ac_var in $ac_subst_vars
1800     do
1801       eval ac_val=\$$ac_var
1802       case $ac_val in
1803       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804       esac
1805       echo "$ac_var='\''$ac_val'\''"
1806     done | sort
1807     echo
1808
1809     if test -n "$ac_subst_files"; then
1810       cat <<\_ASBOX
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1814 _ASBOX
1815       echo
1816       for ac_var in $ac_subst_files
1817       do
1818         eval ac_val=\$$ac_var
1819         case $ac_val in
1820         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821         esac
1822         echo "$ac_var='\''$ac_val'\''"
1823       done | sort
1824       echo
1825     fi
1826
1827     if test -s confdefs.h; then
1828       cat <<\_ASBOX
1829 ## ----------- ##
1830 ## confdefs.h. ##
1831 ## ----------- ##
1832 _ASBOX
1833       echo
1834       cat confdefs.h
1835       echo
1836     fi
1837     test "$ac_signal" != 0 &&
1838       echo "$as_me: caught signal $ac_signal"
1839     echo "$as_me: exit $exit_status"
1840   } >&5
1841   rm -f core *.core core.conftest.* &&
1842     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843     exit $exit_status
1844 ' 0
1845 for ac_signal in 1 2 13 15; do
1846   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 done
1848 ac_signal=0
1849
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1852
1853 # Predefined preprocessor variables.
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 _ACEOF
1878
1879
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883   set x "$CONFIG_SITE"
1884 elif test "x$prefix" != xNONE; then
1885   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1886 else
1887   set x "$ac_default_prefix/share/config.site" \
1888         "$ac_default_prefix/etc/config.site"
1889 fi
1890 shift
1891 for ac_site_file
1892 do
1893   if test -r "$ac_site_file"; then
1894     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1941 echo "$as_me:   former value:  $ac_old_val" >&2;}
1942         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1943 echo "$as_me:   current value: $ac_new_val" >&2;}
1944         ac_cache_corrupted=:
1945       fi;;
1946   esac
1947   # Pass precious variables to config.status.
1948   if test "$ac_new_set" = set; then
1949     case $ac_new_val in
1950     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951     *) ac_arg=$ac_var=$ac_new_val ;;
1952     esac
1953     case " $ac_configure_args " in
1954       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1955       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956     esac
1957   fi
1958 done
1959 if $ac_cache_corrupted; then
1960   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964    { (exit 1); exit 1; }; }
1965 fi
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988
1989
1990 BUILD_DIR=`pwd`
1991 cd ..
1992 TOP_DIR=`pwd`
1993 cd ${BUILD_DIR}
1994
1995
1996 ac_aux_dir=
1997 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1998   if test -f "$ac_dir/install-sh"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/install-sh -c"
2001     break
2002   elif test -f "$ac_dir/install.sh"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/install.sh -c"
2005     break
2006   elif test -f "$ac_dir/shtool"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/shtool install -c"
2009     break
2010   fi
2011 done
2012 if test -z "$ac_aux_dir"; then
2013   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2025
2026
2027 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2028
2029
2030
2031
2032
2033 for ac_prog in true
2034 do
2035   # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   case $TRUEPRG in
2043   [\\/]* | ?:[\\/]*)
2044   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2045   ;;
2046   *)
2047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2054     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060 IFS=$as_save_IFS
2061
2062   ;;
2063 esac
2064 fi
2065 TRUEPRG=$ac_cv_path_TRUEPRG
2066 if test -n "$TRUEPRG"; then
2067   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2068 echo "${ECHO_T}$TRUEPRG" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074
2075   test -n "$TRUEPRG" && break
2076 done
2077 test -n "$TRUEPRG" || TRUEPRG=":"
2078
2079 for ac_prog in false
2080 do
2081   # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   case $FALSEPRG in
2089   [\\/]* | ?:[\\/]*)
2090   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2091   ;;
2092   *)
2093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106 IFS=$as_save_IFS
2107
2108   ;;
2109 esac
2110 fi
2111 FALSEPRG=$ac_cv_path_FALSEPRG
2112 if test -n "$FALSEPRG"; then
2113   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2114 echo "${ECHO_T}$FALSEPRG" >&6; }
2115 else
2116   { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 fi
2119
2120
2121   test -n "$FALSEPRG" && break
2122 done
2123 test -n "$FALSEPRG" || FALSEPRG=":"
2124
2125
2126
2127 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2128 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2130 echo "configuring for bacula $VERSION ($DATE)"
2131
2132
2133
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$CC"; then
2148   ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 fi
2166 fi
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169   { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2171 else
2172   { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2174 fi
2175
2176
2177 fi
2178 if test -z "$ac_cv_prog_CC"; then
2179   ac_ct_CC=$CC
2180   # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$ac_ct_CC"; then
2188   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197     ac_cv_prog_ac_ct_CC="gcc"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203 IFS=$as_save_IFS
2204
2205 fi
2206 fi
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2211 else
2212   { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 fi
2215
2216   if test "x$ac_ct_CC" = x; then
2217     CC=""
2218   else
2219     case $cross_compiling:$ac_tool_warned in
2220 yes:)
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet.  If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet.  If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2228 esac
2229     CC=$ac_ct_CC
2230   fi
2231 else
2232   CC="$ac_cv_prog_CC"
2233 fi
2234
2235 if test -z "$CC"; then
2236           if test -n "$ac_tool_prefix"; then
2237     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   if test -n "$CC"; then
2245   ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252   for ac_exec_ext in '' $ac_executable_extensions; do
2253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254     ac_cv_prog_CC="${ac_tool_prefix}cc"
2255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256     break 2
2257   fi
2258 done
2259 done
2260 IFS=$as_save_IFS
2261
2262 fi
2263 fi
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266   { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2268 else
2269   { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2271 fi
2272
2273
2274   fi
2275 fi
2276 if test -z "$CC"; then
2277   # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$CC"; then
2285   ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287   ac_prog_rejected=no
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296        ac_prog_rejected=yes
2297        continue
2298      fi
2299     ac_cv_prog_CC="cc"
2300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301     break 2
2302   fi
2303 done
2304 done
2305 IFS=$as_save_IFS
2306
2307 if test $ac_prog_rejected = yes; then
2308   # We found a bogon in the path, so make sure we never use it.
2309   set dummy $ac_cv_prog_CC
2310   shift
2311   if test $# != 0; then
2312     # We chose a different compiler from the bogus one.
2313     # However, it has the same basename, so the bogon will be chosen
2314     # first if we set CC to just the basename; use the full file name.
2315     shift
2316     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2317   fi
2318 fi
2319 fi
2320 fi
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323   { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2325 else
2326   { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2328 fi
2329
2330
2331 fi
2332 if test -z "$CC"; then
2333   if test -n "$ac_tool_prefix"; then
2334   for ac_prog in cl.exe
2335   do
2336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$CC"; then
2344   ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2360
2361 fi
2362 fi
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365   { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2367 else
2368   { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2370 fi
2371
2372
2373     test -n "$CC" && break
2374   done
2375 fi
2376 if test -z "$CC"; then
2377   ac_ct_CC=$CC
2378   for ac_prog in cl.exe
2379 do
2380   # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   if test -n "$ac_ct_CC"; then
2388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395   for ac_exec_ext in '' $ac_executable_extensions; do
2396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397     ac_cv_prog_ac_ct_CC="$ac_prog"
2398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399     break 2
2400   fi
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406 fi
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 else
2412   { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2414 fi
2415
2416
2417   test -n "$ac_ct_CC" && break
2418 done
2419
2420   if test "x$ac_ct_CC" = x; then
2421     CC=""
2422   else
2423     case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet.  If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet.  If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433     CC=$ac_ct_CC
2434   fi
2435 fi
2436
2437 fi
2438
2439
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&2;}
2444    { (exit 1); exit 1; }; }
2445
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking for C compiler version" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&5"
2450 case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455   (eval "$ac_compiler --version >&5") 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_compiler -v >&5") 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475   (eval "$ac_compiler -V >&5") 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }
2479
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h.  */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h.  */
2486
2487 int
2488 main ()
2489 {
2490
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2499 # of exeext.
2500 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2501 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2503 #
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort.  b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2508 #
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions.  Remove them first so a
2511 # subsequent execution test works.
2512 ac_rmfiles=
2513 for ac_file in $ac_files
2514 do
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2518   esac
2519 done
2520 rm -f $ac_rmfiles
2521
2522 if { (ac_try="$ac_link_default"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_link_default") 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; then
2532   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2536 # Autoconf.
2537 for ac_file in $ac_files ''
2538 do
2539   test -f "$ac_file" || continue
2540   case $ac_file in
2541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2542         ;;
2543     [ab].out )
2544         # We found the default executable, but exeext='' is most
2545         # certainly right.
2546         break;;
2547     *.* )
2548         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2549         then :; else
2550            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2551         fi
2552         # We set ac_cv_exeext here because the later test for it is not
2553         # safe: cross compilers may not add the suffix if given an `-o'
2554         # argument, so we may need to know it at that point already.
2555         # Even if this section looks crufty: it has the advantage of
2556         # actually working.
2557         break;;
2558     * )
2559         break;;
2560   esac
2561 done
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2563
2564 else
2565   ac_file=''
2566 fi
2567
2568 { echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&2;}
2578    { (exit 77); exit 77; }; }
2579 fi
2580
2581 ac_exeext=$ac_cv_exeext
2582
2583 # Check that the compiler produces executables we can run.  If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590   if { ac_try='./$ac_file'
2591   { (case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596   (eval "$ac_try") 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600     cross_compiling=no
2601   else
2602     if test "$cross_compiling" = maybe; then
2603         cross_compiling=yes
2604     else
2605         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611    { (exit 1); exit 1; }; }
2612     fi
2613   fi
2614 fi
2615 { echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2617
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run.  If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2626
2627 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2630 case "(($ac_try" in
2631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632   *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635   (eval "$ac_link") 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; then
2639   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 # `rm'.
2643 for ac_file in conftest.exe conftest conftest.*; do
2644   test -f "$ac_file" || continue
2645   case $ac_file in
2646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648           break;;
2649     * ) break;;
2650   esac
2651 done
2652 else
2653   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658 fi
2659
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2663
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678
2679 int
2680 main ()
2681 {
2682
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694   (eval "$ac_compile") 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; then
2698   for ac_file in conftest.o conftest.obj conftest.*; do
2699   test -f "$ac_file" || continue;
2700   case $ac_file in
2701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2703        break;;
2704   esac
2705 done
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details." >&2;}
2714    { (exit 1); exit 1; }; }
2715 fi
2716
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 fi
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2722 ac_objext=$OBJEXT
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734
2735 int
2736 main ()
2737 {
2738 #ifndef __GNUC__
2739        choke me
2740 #endif
2741
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compile") 2>conftest.er1
2754   ac_status=$?
2755   grep -v '^ *+' conftest.er1 >conftest.err
2756   rm -f conftest.er1
2757   cat conftest.err >&5
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } && {
2760          test -z "$ac_c_werror_flag" ||
2761          test ! -s conftest.err
2762        } && test -s conftest.$ac_objext; then
2763   ac_compiler_gnu=yes
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768         ac_compiler_gnu=no
2769 fi
2770
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773
2774 fi
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   ac_save_c_werror_flag=$ac_c_werror_flag
2786    ac_c_werror_flag=yes
2787    ac_cv_prog_cc_g=no
2788    CFLAGS="-g"
2789    cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795
2796 int
2797 main ()
2798 {
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_compile") 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } && {
2818          test -z "$ac_c_werror_flag" ||
2819          test ! -s conftest.err
2820        } && test -s conftest.$ac_objext; then
2821   ac_cv_prog_cc_g=yes
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826         CFLAGS=""
2827       cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833
2834 int
2835 main ()
2836 {
2837
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_compile") 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } && {
2856          test -z "$ac_c_werror_flag" ||
2857          test ! -s conftest.err
2858        } && test -s conftest.$ac_objext; then
2859   :
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864         ac_c_werror_flag=$ac_save_c_werror_flag
2865          CFLAGS="-g"
2866          cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h.  */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h.  */
2872
2873 int
2874 main ()
2875 {
2876
2877   ;
2878   return 0;
2879 }
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compile") 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } && {
2895          test -z "$ac_c_werror_flag" ||
2896          test ! -s conftest.err
2897        } && test -s conftest.$ac_objext; then
2898   ac_cv_prog_cc_g=yes
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903
2904 fi
2905
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 fi
2908
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913    ac_c_werror_flag=$ac_save_c_werror_flag
2914 fi
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918   CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920   if test "$GCC" = yes; then
2921     CFLAGS="-g -O2"
2922   else
2923     CFLAGS="-g"
2924   fi
2925 else
2926   if test "$GCC" = yes; then
2927     CFLAGS="-O2"
2928   else
2929     CFLAGS=
2930   fi
2931 fi
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   ac_cv_prog_cc_c89=no
2938 ac_save_CC=$CC
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #include <stdarg.h>
2946 #include <stdio.h>
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2953      char **p;
2954      int i;
2955 {
2956   return p[i];
2957 }
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2959 {
2960   char *s;
2961   va_list v;
2962   va_start (v,p);
2963   s = g (p, va_arg (v,int));
2964   va_end (v);
2965   return s;
2966 }
2967
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2969    function prototypes and stuff, but not '\xHH' hex character constants.
2970    These don't provoke an error unfortunately, instead are silently treated
2971    as 'x'.  The following induces an error, until -std is added to get
2972    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2973    array size at least.  It's necessary to write '\x00'==0 to get something
2974    that's true only with -std.  */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2976
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978    inside strings and character constants.  */
2979 #define FOO(x) 'x'
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2981
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2986 int argc;
2987 char **argv;
2988 int
2989 main ()
2990 {
2991 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2998 do
2999   CC="$ac_save_CC $ac_arg"
3000   rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } && {
3014          test -z "$ac_c_werror_flag" ||
3015          test ! -s conftest.err
3016        } && test -s conftest.$ac_objext; then
3017   ac_cv_prog_cc_c89=$ac_arg
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022
3023 fi
3024
3025 rm -f core conftest.err conftest.$ac_objext
3026   test "x$ac_cv_prog_cc_c89" != "xno" && break
3027 done
3028 rm -f conftest.$ac_ext
3029 CC=$ac_save_CC
3030
3031 fi
3032 # AC_CACHE_VAL
3033 case "x$ac_cv_prog_cc_c89" in
3034   x)
3035     { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3037   xno)
3038     { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3040   *)
3041     CC="$CC $ac_cv_prog_cc_c89"
3042     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3044 esac
3045
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
3053 ac_ext=cpp
3054 ac_cpp='$CXXCPP $CPPFLAGS'
3055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3058 if test -z "$CXX"; then
3059   if test -n "$CCC"; then
3060     CXX=$CCC
3061   else
3062     if test -n "$ac_tool_prefix"; then
3063   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3064   do
3065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CXX+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   if test -n "$CXX"; then
3073   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CXX=$ac_cv_prog_CXX
3093 if test -n "$CXX"; then
3094   { echo "$as_me:$LINENO: result: $CXX" >&5
3095 echo "${ECHO_T}$CXX" >&6; }
3096 else
3097   { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3099 fi
3100
3101
3102     test -n "$CXX" && break
3103   done
3104 fi
3105 if test -z "$CXX"; then
3106   ac_ct_CXX=$CXX
3107   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3108 do
3109   # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3113 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   if test -n "$ac_ct_CXX"; then
3117   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   for ac_exec_ext in '' $ac_executable_extensions; do
3125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126     ac_cv_prog_ac_ct_CXX="$ac_prog"
3127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128     break 2
3129   fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3137 if test -n "$ac_ct_CXX"; then
3138   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3139 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3140 else
3141   { echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6; }
3143 fi
3144
3145
3146   test -n "$ac_ct_CXX" && break
3147 done
3148
3149   if test "x$ac_ct_CXX" = x; then
3150     CXX="g++"
3151   else
3152     case $cross_compiling:$ac_tool_warned in
3153 yes:)
3154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet.  If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&5
3157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet.  If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3160 ac_tool_warned=yes ;;
3161 esac
3162     CXX=$ac_ct_CXX
3163   fi
3164 fi
3165
3166   fi
3167 fi
3168 # Provide some information about the compiler.
3169 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3170 ac_compiler=`set X $ac_compile; echo $2`
3171 { (ac_try="$ac_compiler --version >&5"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compiler --version >&5") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }
3181 { (ac_try="$ac_compiler -v >&5"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compiler -v >&5") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }
3191 { (ac_try="$ac_compiler -V >&5"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compiler -V >&5") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }
3201
3202 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3203 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3204 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h.  */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h.  */
3213
3214 int
3215 main ()
3216 {
3217 #ifndef __GNUC__
3218        choke me
3219 #endif
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_compile") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } && {
3239          test -z "$ac_cxx_werror_flag" ||
3240          test ! -s conftest.err
3241        } && test -s conftest.$ac_objext; then
3242   ac_compiler_gnu=yes
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247         ac_compiler_gnu=no
3248 fi
3249
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3252
3253 fi
3254 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3256 GXX=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CXXFLAGS=${CXXFLAGS+set}
3258 ac_save_CXXFLAGS=$CXXFLAGS
3259 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3260 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cxx_g+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3265    ac_cxx_werror_flag=yes
3266    ac_cv_prog_cxx_g=no
3267    CXXFLAGS="-g"
3268    cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } && {
3297          test -z "$ac_cxx_werror_flag" ||
3298          test ! -s conftest.err
3299        } && test -s conftest.$ac_objext; then
3300   ac_cv_prog_cxx_g=yes
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305         CXXFLAGS=""
3306       cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312
3313 int
3314 main ()
3315 {
3316
3317   ;
3318   return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_compile") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } && {
3335          test -z "$ac_cxx_werror_flag" ||
3336          test ! -s conftest.err
3337        } && test -s conftest.$ac_objext; then
3338   :
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3344          CXXFLAGS="-g"
3345          cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351
3352 int
3353 main ()
3354 {
3355
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_compile") 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } && {
3374          test -z "$ac_cxx_werror_flag" ||
3375          test ! -s conftest.err
3376        } && test -s conftest.$ac_objext; then
3377   ac_cv_prog_cxx_g=yes
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382
3383 fi
3384
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3393 fi
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3396 if test "$ac_test_CXXFLAGS" = set; then
3397   CXXFLAGS=$ac_save_CXXFLAGS
3398 elif test $ac_cv_prog_cxx_g = yes; then
3399   if test "$GXX" = yes; then
3400     CXXFLAGS="-g -O2"
3401   else
3402     CXXFLAGS="-g"
3403   fi
3404 else
3405   if test "$GXX" = yes; then
3406     CXXFLAGS="-O2"
3407   else
3408     CXXFLAGS=
3409   fi
3410 fi
3411 ac_ext=c
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416
3417 if test "x$CC" != xcc; then
3418   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3419 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3420 else
3421   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3422 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3423 fi
3424 set dummy $CC; ac_cc=`echo $2 |
3425                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3426 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435
3436 int
3437 main ()
3438 {
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 # Make sure it works both with $CC and with simple cc.
3445 # We do the test twice because some compilers refuse to overwrite an
3446 # existing .o file with -o, though they will create one.
3447 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3448 rm -f conftest2.*
3449 if { (case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_try") 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } &&
3458    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463   (eval "$ac_try") 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); };
3467 then
3468   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3469   if test "x$CC" != xcc; then
3470     # Test first that cc exists at all.
3471     if { ac_try='cc -c conftest.$ac_ext >&5'
3472   { (case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_try") 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; }; then
3481       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3482       rm -f conftest2.*
3483       if { (case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_try") 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } &&
3492          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_try") 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); };
3501       then
3502         # cc works too.
3503         :
3504       else
3505         # cc exists but doesn't like -o.
3506         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3507       fi
3508     fi
3509   fi
3510 else
3511   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3512 fi
3513 rm -f core conftest*
3514
3515 fi
3516 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3517   { echo "$as_me:$LINENO: result: yes" >&5
3518 echo "${ECHO_T}yes" >&6; }
3519 else
3520   { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3522
3523 cat >>confdefs.h <<\_ACEOF
3524 #define NO_MINUS_C_MINUS_O 1
3525 _ACEOF
3526
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3535 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3536 # On Suns, sometimes $CPP names a directory.
3537 if test -n "$CPP" && test -d "$CPP"; then
3538   CPP=
3539 fi
3540 if test -z "$CPP"; then
3541   if test "${ac_cv_prog_CPP+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544       # Double quotes because CPP needs to be expanded
3545     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3546     do
3547       ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3549 do
3550   # Use a header file that comes with gcc, so configuring glibc
3551   # with a fresh cross-compiler works.
3552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553   # <limits.h> exists even on freestanding compilers.
3554   # On the NeXT, cc -E runs the code through the compiler's parser,
3555   # not just through cpp. "Syntax error" is here to catch this case.
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #ifdef __STDC__
3563 # include <limits.h>
3564 #else
3565 # include <assert.h>
3566 #endif
3567                      Syntax error
3568 _ACEOF
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576   ac_status=$?
3577   grep -v '^ *+' conftest.er1 >conftest.err
3578   rm -f conftest.er1
3579   cat conftest.err >&5
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } >/dev/null && {
3582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583          test ! -s conftest.err
3584        }; then
3585   :
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590   # Broken: fails on valid input.
3591 continue
3592 fi
3593
3594 rm -f conftest.err conftest.$ac_ext
3595
3596   # OK, works on sane cases.  Now check whether nonexistent headers
3597   # can be detected and how.
3598   cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604 #include <ac_nonexistent.h>
3605 _ACEOF
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } >/dev/null && {
3619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620          test ! -s conftest.err
3621        }; then
3622   # Broken: success on invalid input.
3623 continue
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628   # Passes both tests.
3629 ac_preproc_ok=:
3630 break
3631 fi
3632
3633 rm -f conftest.err conftest.$ac_ext
3634
3635 done
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3639   break
3640 fi
3641
3642     done
3643     ac_cv_prog_CPP=$CPP
3644
3645 fi
3646   CPP=$ac_cv_prog_CPP
3647 else
3648   ac_cv_prog_CPP=$CPP
3649 fi
3650 { echo "$as_me:$LINENO: result: $CPP" >&5
3651 echo "${ECHO_T}$CPP" >&6; }
3652 ac_preproc_ok=false
3653 for ac_c_preproc_warn_flag in '' yes
3654 do
3655   # Use a header file that comes with gcc, so configuring glibc
3656   # with a fresh cross-compiler works.
3657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658   # <limits.h> exists even on freestanding compilers.
3659   # On the NeXT, cc -E runs the code through the compiler's parser,
3660   # not just through cpp. "Syntax error" is here to catch this case.
3661   cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672                      Syntax error
3673 _ACEOF
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3675 case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3681   ac_status=$?
3682   grep -v '^ *+' conftest.er1 >conftest.err
3683   rm -f conftest.er1
3684   cat conftest.err >&5
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } >/dev/null && {
3687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3688          test ! -s conftest.err
3689        }; then
3690   :
3691 else
3692   echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695   # Broken: fails on valid input.
3696 continue
3697 fi
3698
3699 rm -f conftest.err conftest.$ac_ext
3700
3701   # OK, works on sane cases.  Now check whether nonexistent headers
3702   # can be detected and how.
3703   cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h.  */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h.  */
3709 #include <ac_nonexistent.h>
3710 _ACEOF
3711 if { (ac_try="$ac_cpp conftest.$ac_ext"
3712 case "(($ac_try" in
3713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714   *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718   ac_status=$?
3719   grep -v '^ *+' conftest.er1 >conftest.err
3720   rm -f conftest.er1
3721   cat conftest.err >&5
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } >/dev/null && {
3724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725          test ! -s conftest.err
3726        }; then
3727   # Broken: success on invalid input.
3728 continue
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733   # Passes both tests.
3734 ac_preproc_ok=:
3735 break
3736 fi
3737
3738 rm -f conftest.err conftest.$ac_ext
3739
3740 done
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then
3744   :
3745 else
3746   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&2;}
3750    { (exit 1); exit 1; }; }
3751 fi
3752
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759
3760 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3761 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3762 if test "${ac_cv_path_GREP+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   # Extract the first word of "grep ggrep" to use in msg output
3766 if test -z "$GREP"; then
3767 set dummy grep ggrep; ac_prog_name=$2
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   ac_path_GREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_prog in grep ggrep; do
3779   for ac_exec_ext in '' $ac_executable_extensions; do
3780     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3781     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3782     # Check for GNU ac_path_GREP and select it if it is found.
3783   # Check for GNU $ac_path_GREP
3784 case `"$ac_path_GREP" --version 2>&1` in
3785 *GNU*)
3786   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3787 *)
3788   ac_count=0
3789   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3790   while :
3791   do
3792     cat "conftest.in" "conftest.in" >"conftest.tmp"
3793     mv "conftest.tmp" "conftest.in"
3794     cp "conftest.in" "conftest.nl"
3795     echo 'GREP' >> "conftest.nl"
3796     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798     ac_count=`expr $ac_count + 1`
3799     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3800       # Best one so far, save it but keep looking for a better one
3801       ac_cv_path_GREP="$ac_path_GREP"
3802       ac_path_GREP_max=$ac_count
3803     fi
3804     # 10*(2^10) chars as input seems more than enough
3805     test $ac_count -gt 10 && break
3806   done
3807   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808 esac
3809
3810
3811     $ac_path_GREP_found && break 3
3812   done
3813 done
3814
3815 done
3816 IFS=$as_save_IFS
3817
3818
3819 fi
3820
3821 GREP="$ac_cv_path_GREP"
3822 if test -z "$GREP"; then
3823   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3824 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3825    { (exit 1); exit 1; }; }
3826 fi
3827
3828 else
3829   ac_cv_path_GREP=$GREP
3830 fi
3831
3832
3833 fi
3834 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3835 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3836  GREP="$ac_cv_path_GREP"
3837
3838
3839 { echo "$as_me:$LINENO: checking for egrep" >&5
3840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3841 if test "${ac_cv_path_EGREP+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3845    then ac_cv_path_EGREP="$GREP -E"
3846    else
3847      # Extract the first word of "egrep" to use in msg output
3848 if test -z "$EGREP"; then
3849 set dummy egrep; ac_prog_name=$2
3850 if test "${ac_cv_path_EGREP+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   ac_path_EGREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_prog in egrep; do
3861   for ac_exec_ext in '' $ac_executable_extensions; do
3862     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3863     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3864     # Check for GNU ac_path_EGREP and select it if it is found.
3865   # Check for GNU $ac_path_EGREP
3866 case `"$ac_path_EGREP" --version 2>&1` in
3867 *GNU*)
3868   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3869 *)
3870   ac_count=0
3871   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3872   while :
3873   do
3874     cat "conftest.in" "conftest.in" >"conftest.tmp"
3875     mv "conftest.tmp" "conftest.in"
3876     cp "conftest.in" "conftest.nl"
3877     echo 'EGREP' >> "conftest.nl"
3878     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880     ac_count=`expr $ac_count + 1`
3881     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3882       # Best one so far, save it but keep looking for a better one
3883       ac_cv_path_EGREP="$ac_path_EGREP"
3884       ac_path_EGREP_max=$ac_count
3885     fi
3886     # 10*(2^10) chars as input seems more than enough
3887     test $ac_count -gt 10 && break
3888   done
3889   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 esac
3891
3892
3893     $ac_path_EGREP_found && break 3
3894   done
3895 done
3896
3897 done
3898 IFS=$as_save_IFS
3899
3900
3901 fi
3902
3903 EGREP="$ac_cv_path_EGREP"
3904 if test -z "$EGREP"; then
3905   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3906 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3907    { (exit 1); exit 1; }; }
3908 fi
3909
3910 else
3911   ac_cv_path_EGREP=$EGREP
3912 fi
3913
3914
3915    fi
3916 fi
3917 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3918 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3919  EGREP="$ac_cv_path_EGREP"
3920
3921
3922 if test $ac_cv_c_compiler_gnu = yes; then
3923     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3924 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3925 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928     ac_pattern="Autoconf.*'x'"
3929   cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 #include <sgtty.h>
3936 Autoconf TIOCGETP
3937 _ACEOF
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3940   ac_cv_prog_gcc_traditional=yes
3941 else
3942   ac_cv_prog_gcc_traditional=no
3943 fi
3944 rm -f conftest*
3945
3946
3947   if test $ac_cv_prog_gcc_traditional = no; then
3948     cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <termio.h>
3955 Autoconf TCGETA
3956 _ACEOF
3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3959   ac_cv_prog_gcc_traditional=yes
3960 fi
3961 rm -f conftest*
3962
3963   fi
3964 fi
3965 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3966 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3967   if test $ac_cv_prog_gcc_traditional = yes; then
3968     CC="$CC -traditional"
3969   fi
3970 fi
3971
3972 BASECC=`basename $CC`
3973 have_gcc=no
3974 if test "x$BASECC" = xgcc; then
3975    cat >>confdefs.h <<\_ACEOF
3976 #define HAVE_GCC 1
3977 _ACEOF
3978
3979    have_gcc=yes
3980 fi
3981 # Extract the first word of "$CXX", so it can be a program name with args.
3982 set dummy $CXX; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_path_CXX+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   case $CXX in
3989   [\\/]* | ?:[\\/]*)
3990   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3991   ;;
3992   *)
3993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998   for ac_exec_ext in '' $ac_executable_extensions; do
3999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002     break 2
4003   fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4009   ;;
4010 esac
4011 fi
4012 CXX=$ac_cv_path_CXX
4013 if test -n "$CXX"; then
4014   { echo "$as_me:$LINENO: result: $CXX" >&5
4015 echo "${ECHO_T}$CXX" >&6; }
4016 else
4017   { echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6; }
4019 fi
4020
4021
4022 if test ! -e $CXX; then
4023    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4024 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4025    { (exit 1); exit 1; }; }
4026 fi
4027
4028 # Find a good install program.  We prefer a C program (faster),
4029 # so one script is as good as another.  But avoid the broken or
4030 # incompatible versions:
4031 # SysV /etc/install, /usr/sbin/install
4032 # SunOS /usr/etc/install
4033 # IRIX /sbin/install
4034 # AIX /bin/install
4035 # AmigaOS /C/install, which installs bootblocks on floppy discs
4036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4039 # OS/2's system install, which has a completely different semantic
4040 # ./install, which can be erroneously created by make from ./install.sh.
4041 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4043 if test -z "$INSTALL"; then
4044 if test "${ac_cv_path_install+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   # Account for people who put trailing slashes in PATH elements.
4053 case $as_dir/ in
4054   ./ | .// | /cC/* | \
4055   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4056   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4057   /usr/ucb/* ) ;;
4058   *)
4059     # OSF1 and SCO ODT 3.0 have their own names for install.
4060     # Don't use installbsd from OSF since it installs stuff as root
4061     # by default.
4062     for ac_prog in ginstall scoinst install; do
4063       for ac_exec_ext in '' $ac_executable_extensions; do
4064         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4065           if test $ac_prog = install &&
4066             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4067             # AIX install.  It has an incompatible calling convention.
4068             :
4069           elif test $ac_prog = install &&
4070             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4071             # program-specific install script used by HP pwplus--don't use.
4072             :
4073           else
4074             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4075             break 3
4076           fi
4077         fi
4078       done
4079     done
4080     ;;
4081 esac
4082 done
4083 IFS=$as_save_IFS
4084
4085
4086 fi
4087   if test "${ac_cv_path_install+set}" = set; then
4088     INSTALL=$ac_cv_path_install
4089   else
4090     # As a last resort, use the slow shell script.  Don't cache a
4091     # value for INSTALL within a source directory, because that will
4092     # break other packages using the cache if that directory is
4093     # removed, or if the value is a relative name.
4094     INSTALL=$ac_install_sh
4095   fi
4096 fi
4097 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4098 echo "${ECHO_T}$INSTALL" >&6; }
4099
4100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4101 # It thinks the first close brace ends the variable substitution.
4102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4103
4104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4105
4106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4107
4108 if test -n "$ac_tool_prefix"; then
4109   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4113 if test "${ac_cv_prog_RANLIB+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   if test -n "$RANLIB"; then
4117   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124   for ac_exec_ext in '' $ac_executable_extensions; do
4125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131 done
4132 IFS=$as_save_IFS
4133
4134 fi
4135 fi
4136 RANLIB=$ac_cv_prog_RANLIB
4137 if test -n "$RANLIB"; then
4138   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4139 echo "${ECHO_T}$RANLIB" >&6; }
4140 else
4141   { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4143 fi
4144
4145
4146 fi
4147 if test -z "$ac_cv_prog_RANLIB"; then
4148   ac_ct_RANLIB=$RANLIB
4149   # Extract the first word of "ranlib", so it can be a program name with args.
4150 set dummy ranlib; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   if test -n "$ac_ct_RANLIB"; then
4157   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164   for ac_exec_ext in '' $ac_executable_extensions; do
4165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166     ac_cv_prog_ac_ct_RANLIB="ranlib"
4167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171 done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4177 if test -n "$ac_ct_RANLIB"; then
4178   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4179 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4180 else
4181   { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4183 fi
4184
4185   if test "x$ac_ct_RANLIB" = x; then
4186     RANLIB=":"
4187   else
4188     case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4191 whose name does not start with the host triplet.  If you think this
4192 configuration is useful to you, please write to autoconf@gnu.org." >&5
4193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4194 whose name does not start with the host triplet.  If you think this
4195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4196 ac_tool_warned=yes ;;
4197 esac
4198     RANLIB=$ac_ct_RANLIB
4199   fi
4200 else
4201   RANLIB="$ac_cv_prog_RANLIB"
4202 fi
4203
4204 # Extract the first word of "mv", so it can be a program name with args.
4205 set dummy mv; ac_word=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_path_MV+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   case $MV in
4212   [\\/]* | ?:[\\/]*)
4213   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4214   ;;
4215   *)
4216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221   for ac_exec_ext in '' $ac_executable_extensions; do
4222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225     break 2
4226   fi
4227 done
4228 done
4229 IFS=$as_save_IFS
4230
4231   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4232   ;;
4233 esac
4234 fi
4235 MV=$ac_cv_path_MV
4236 if test -n "$MV"; then
4237   { echo "$as_me:$LINENO: result: $MV" >&5
4238 echo "${ECHO_T}$MV" >&6; }
4239 else
4240   { echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6; }
4242 fi
4243
4244
4245 # Extract the first word of "rm", so it can be a program name with args.
4246 set dummy rm; ac_word=$2
4247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4249 if test "${ac_cv_path_RM+set}" = set; then
4250   echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252   case $RM in
4253   [\\/]* | ?:[\\/]*)
4254   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4255   ;;
4256   *)
4257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262   for ac_exec_ext in '' $ac_executable_extensions; do
4263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4273   ;;
4274 esac
4275 fi
4276 RM=$ac_cv_path_RM
4277 if test -n "$RM"; then
4278   { echo "$as_me:$LINENO: result: $RM" >&5
4279 echo "${ECHO_T}$RM" >&6; }
4280 else
4281   { echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6; }
4283 fi
4284
4285
4286 # Extract the first word of "cp", so it can be a program name with args.
4287 set dummy cp; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_path_CP+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   case $CP in
4294   [\\/]* | ?:[\\/]*)
4295   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4296   ;;
4297   *)
4298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4314   ;;
4315 esac
4316 fi
4317 CP=$ac_cv_path_CP
4318 if test -n "$CP"; then
4319   { echo "$as_me:$LINENO: result: $CP" >&5
4320 echo "${ECHO_T}$CP" >&6; }
4321 else
4322   { echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6; }
4324 fi
4325
4326
4327 # Extract the first word of "sed", so it can be a program name with args.
4328 set dummy sed; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_SED+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   case $SED in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4355   ;;
4356 esac
4357 fi
4358 SED=$ac_cv_path_SED
4359 if test -n "$SED"; then
4360   { echo "$as_me:$LINENO: result: $SED" >&5
4361 echo "${ECHO_T}$SED" >&6; }
4362 else
4363   { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4365 fi
4366
4367
4368 # Extract the first word of "echo", so it can be a program name with args.
4369 set dummy echo; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_ECHO+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   case $ECHO in
4376   [\\/]* | ?:[\\/]*)
4377   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4378   ;;
4379   *)
4380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4396   ;;
4397 esac
4398 fi
4399 ECHO=$ac_cv_path_ECHO
4400 if test -n "$ECHO"; then
4401   { echo "$as_me:$LINENO: result: $ECHO" >&5
4402 echo "${ECHO_T}$ECHO" >&6; }
4403 else
4404   { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4406 fi
4407
4408
4409 # Extract the first word of "cmp", so it can be a program name with args.
4410 set dummy cmp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CMP+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   case $CMP in
4417   [\\/]* | ?:[\\/]*)
4418   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4419   ;;
4420   *)
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4437   ;;
4438 esac
4439 fi
4440 CMP=$ac_cv_path_CMP
4441 if test -n "$CMP"; then
4442   { echo "$as_me:$LINENO: result: $CMP" >&5
4443 echo "${ECHO_T}$CMP" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449
4450 # Extract the first word of "tbl", so it can be a program name with args.
4451 set dummy tbl; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_TBL+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   case $TBL in
4458   [\\/]* | ?:[\\/]*)
4459   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4460   ;;
4461   *)
4462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4478   ;;
4479 esac
4480 fi
4481 TBL=$ac_cv_path_TBL
4482 if test -n "$TBL"; then
4483   { echo "$as_me:$LINENO: result: $TBL" >&5
4484 echo "${ECHO_T}$TBL" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4488 fi
4489
4490
4491 # Extract the first word of "ar", so it can be a program name with args.
4492 set dummy ar; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_AR+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   case $AR in
4499   [\\/]* | ?:[\\/]*)
4500   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4501   ;;
4502   *)
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4519   ;;
4520 esac
4521 fi
4522 AR=$ac_cv_path_AR
4523 if test -n "$AR"; then
4524   { echo "$as_me:$LINENO: result: $AR" >&5
4525 echo "${ECHO_T}$AR" >&6; }
4526 else
4527   { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4529 fi
4530
4531
4532 # Extract the first word of "openssl", so it can be a program name with args.
4533 set dummy openssl; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_OPENSSL+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   case $OPENSSL in
4540   [\\/]* | ?:[\\/]*)
4541   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4542   ;;
4543   *)
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4560   ;;
4561 esac
4562 fi
4563 OPENSSL=$ac_cv_path_OPENSSL
4564 if test -n "$OPENSSL"; then
4565   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4566 echo "${ECHO_T}$OPENSSL" >&6; }
4567 else
4568   { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4570 fi
4571
4572
4573 # Extract the first word of "mtx", so it can be a program name with args.
4574 set dummy mtx; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_MTX+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580   case $MTX in
4581   [\\/]* | ?:[\\/]*)
4582   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4583   ;;
4584   *)
4585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4601   ;;
4602 esac
4603 fi
4604 MTX=$ac_cv_path_MTX
4605 if test -n "$MTX"; then
4606   { echo "$as_me:$LINENO: result: $MTX" >&5
4607 echo "${ECHO_T}$MTX" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 fi
4612
4613
4614 # Extract the first word of "dd", so it can be a program name with args.
4615 set dummy dd; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_DD+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   case $DD in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4642   ;;
4643 esac
4644 fi
4645 DD=$ac_cv_path_DD
4646 if test -n "$DD"; then
4647   { echo "$as_me:$LINENO: result: $DD" >&5
4648 echo "${ECHO_T}$DD" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655 # Extract the first word of "mkisofs", so it can be a program name with args.
4656 set dummy mkisofs; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_MKISOFS+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   case $MKISOFS in
4663   [\\/]* | ?:[\\/]*)
4664   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4665   ;;
4666   *)
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4683   ;;
4684 esac
4685 fi
4686 MKISOFS=$ac_cv_path_MKISOFS
4687 if test -n "$MKISOFS"; then
4688   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4689 echo "${ECHO_T}$MKISOFS" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696 # Extract the first word of "python", so it can be a program name with args.
4697 set dummy python; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_PYTHON+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $PYTHON in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4724   ;;
4725 esac
4726 fi
4727 PYTHON=$ac_cv_path_PYTHON
4728 if test -n "$PYTHON"; then
4729   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4730 echo "${ECHO_T}$PYTHON" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737 # Extract the first word of "growisofs", so it can be a program name with args.
4738 set dummy growisofs; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $GROWISOFS in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4765   ;;
4766 esac
4767 fi
4768 GROWISOFS=$ac_cv_path_GROWISOFS
4769 if test -n "$GROWISOFS"; then
4770   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4771 echo "${ECHO_T}$GROWISOFS" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4779 set dummy dvd+rw-mediainfo; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   case $DVDRWMEDIAINFO in
4786   [\\/]* | ?:[\\/]*)
4787   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4788   ;;
4789   *)
4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795   for ac_exec_ext in '' $ac_executable_extensions; do
4796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4806   ;;
4807 esac
4808 fi
4809 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4810 if test -n "$DVDRWMEDIAINFO"; then
4811   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4812 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4813 else
4814   { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4816 fi
4817
4818
4819 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4820 set dummy dvd+rw-format; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   case $DVDRWFORMAT in
4827   [\\/]* | ?:[\\/]*)
4828   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4829   ;;
4830   *)
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for ac_exec_ext in '' $ac_executable_extensions; do
4837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4847   ;;
4848 esac
4849 fi
4850 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4851 if test -n "$DVDRWFORMAT"; then
4852   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4853 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860 # Extract the first word of "pkg-config", so it can be a program name with args.
4861 set dummy pkg-config; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   case $PKGCONFIG in
4868   [\\/]* | ?:[\\/]*)
4869   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4870   ;;
4871   *)
4872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4888   ;;
4889 esac
4890 fi
4891 PKGCONFIG=$ac_cv_path_PKGCONFIG
4892 if test -n "$PKGCONFIG"; then
4893   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4894 echo "${ECHO_T}$PKGCONFIG" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901 # Extract the first word of "qmake", so it can be a program name with args.
4902 set dummy qmake; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_QMAKE+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   case $QMAKE in
4909   [\\/]* | ?:[\\/]*)
4910   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4911   ;;
4912   *)
4913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_exec_ext in '' $ac_executable_extensions; do
4919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4929   ;;
4930 esac
4931 fi
4932 QMAKE=$ac_cv_path_QMAKE
4933 if test -n "$QMAKE"; then
4934   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4935 echo "${ECHO_T}$QMAKE" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4943 set dummy qmake-qt4; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   case $QMAKEQT4 in
4950   [\\/]* | ?:[\\/]*)
4951   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4952   ;;
4953   *)
4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4970   ;;
4971 esac
4972 fi
4973 QMAKEQT4=$ac_cv_path_QMAKEQT4
4974 if test -n "$QMAKEQT4"; then
4975   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4976 echo "${ECHO_T}$QMAKEQT4" >&6; }
4977 else
4978   { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4980 fi
4981
4982
4983
4984 if test "x$WXCONFIG" = x; then
4985   WXCONFIG=wx-config
4986 fi
4987 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4988 set dummy ${WXCONFIG}; ac_word=$2
4989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4991 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   case $WXCONFIG in
4995   [\\/]* | ?:[\\/]*)
4996   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4997   ;;
4998   *)
4999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004   for ac_exec_ext in '' $ac_executable_extensions; do
5005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5015   ;;
5016 esac
5017 fi
5018 WXCONFIG=$ac_cv_path_WXCONFIG
5019 if test -n "$WXCONFIG"; then
5020   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5021 echo "${ECHO_T}$WXCONFIG" >&6; }
5022 else
5023   { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5025 fi
5026
5027
5028
5029 # Extract the first word of "cdrecord", so it can be a program name with args.
5030 set dummy cdrecord; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_CDRECORD+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   case $CDRECORD in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046   for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5057   ;;
5058 esac
5059 fi
5060 CDRECORD=$ac_cv_path_CDRECORD
5061 if test -n "$CDRECORD"; then
5062   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5063 echo "${ECHO_T}$CDRECORD" >&6; }
5064 else
5065   { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5067 fi
5068
5069
5070 # Extract the first word of "pidof", so it can be a program name with args.
5071 set dummy pidof; ac_word=$2
5072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_PIDOF+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077   case $PIDOF in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087   for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5098   ;;
5099 esac
5100 fi
5101 PIDOF=$ac_cv_path_PIDOF
5102 if test -n "$PIDOF"; then
5103   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5104 echo "${ECHO_T}$PIDOF" >&6; }
5105 else
5106   { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5108 fi
5109
5110
5111 for ac_prog in gawk mawk nawk awk
5112 do
5113   # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_AWK+set}" = set; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120   if test -n "$AWK"; then
5121   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128   for ac_exec_ext in '' $ac_executable_extensions; do
5129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130     ac_cv_prog_AWK="$ac_prog"
5131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 AWK=$ac_cv_prog_AWK
5141 if test -n "$AWK"; then
5142   { echo "$as_me:$LINENO: result: $AWK" >&5
5143 echo "${ECHO_T}$AWK" >&6; }
5144 else
5145   { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150   test -n "$AWK" && break
5151 done
5152
5153 # Some AWK programs fail, so test it and warn the user
5154 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5155       { if ((prog == $2) || (("(" prog ")") == $2) ||
5156            (("" prog "") == $2) ||
5157            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5158 else
5159   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5160    The regex engine of $AWK is too broken to be used you
5161    might want to install GNU AWK.
5162    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5163 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5164    The regex engine of $AWK is too broken to be used you
5165    might want to install GNU AWK.
5166    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5167    { (exit 1); exit 1; }; }
5168 fi
5169 THE_AWK=$AWK
5170 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5171 set dummy $THE_AWK; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_AWK+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   case $AWK in
5178   [\\/]* | ?:[\\/]*)
5179   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5180   ;;
5181   *)
5182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187   for ac_exec_ext in '' $ac_executable_extensions; do
5188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191     break 2
5192   fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5198   ;;
5199 esac
5200 fi
5201 AWK=$ac_cv_path_AWK
5202 if test -n "$AWK"; then
5203   { echo "$as_me:$LINENO: result: $AWK" >&5
5204 echo "${ECHO_T}$AWK" >&6; }
5205 else
5206   { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5208 fi
5209
5210
5211
5212
5213 test -n "$ARFLAG" || ARFLAGS="cr"
5214
5215
5216 MAKE_SHELL=/bin/sh
5217
5218
5219
5220
5221
5222
5223
5224 # Make sure we can run config.sub.
5225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5226   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5227 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5228    { (exit 1); exit 1; }; }
5229
5230 { echo "$as_me:$LINENO: checking build system type" >&5
5231 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5232 if test "${ac_cv_build+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   ac_build_alias=$build_alias
5236 test "x$ac_build_alias" = x &&
5237   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5238 test "x$ac_build_alias" = x &&
5239   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5240 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5241    { (exit 1); exit 1; }; }
5242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5243   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5244 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5245    { (exit 1); exit 1; }; }
5246
5247 fi
5248 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5249 echo "${ECHO_T}$ac_cv_build" >&6; }
5250 case $ac_cv_build in
5251 *-*-*) ;;
5252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5253 echo "$as_me: error: invalid value of canonical build" >&2;}
5254    { (exit 1); exit 1; }; };;
5255 esac
5256 build=$ac_cv_build
5257 ac_save_IFS=$IFS; IFS='-'
5258 set x $ac_cv_build
5259 shift
5260 build_cpu=$1
5261 build_vendor=$2
5262 shift; shift
5263 # Remember, the first character of IFS is used to create $*,
5264 # except with old shells:
5265 build_os=$*
5266 IFS=$ac_save_IFS
5267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5268
5269
5270
5271 { echo "$as_me:$LINENO: checking host system type" >&5
5272 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5273 if test "${ac_cv_host+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   if test "x$host_alias" = x; then
5277   ac_cv_host=$ac_cv_build
5278 else
5279   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5280     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5281 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5282    { (exit 1); exit 1; }; }
5283 fi
5284
5285 fi
5286 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5287 echo "${ECHO_T}$ac_cv_host" >&6; }
5288 case $ac_cv_host in
5289 *-*-*) ;;
5290 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5291 echo "$as_me: error: invalid value of canonical host" >&2;}
5292    { (exit 1); exit 1; }; };;
5293 esac
5294 host=$ac_cv_host
5295 ac_save_IFS=$IFS; IFS='-'
5296 set x $ac_cv_host
5297 shift
5298 host_cpu=$1
5299 host_vendor=$2
5300 shift; shift
5301 # Remember, the first character of IFS is used to create $*,
5302 # except with old shells:
5303 host_os=$*
5304 IFS=$ac_save_IFS
5305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5306
5307
5308 case $host_os in
5309   *cygwin* ) CYGWIN=yes;;
5310          * ) CYGWIN=no;;
5311 esac
5312
5313 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5314 then
5315
5316
5317 if $TRUEPRG; then
5318   HAVE_SUN_OS_TRUE=
5319   HAVE_SUN_OS_FALSE='#'
5320 else
5321   HAVE_SUN_OS_TRUE='#'
5322   HAVE_SUN_OS_FALSE=
5323 fi
5324         cat >>confdefs.h <<\_ACEOF
5325 #define HAVE_SUN_OS 1
5326 _ACEOF
5327
5328 else
5329
5330
5331 if $FALSEPRG; then
5332   HAVE_SUN_OS_TRUE=
5333   HAVE_SUN_OS_FALSE='#'
5334 else
5335   HAVE_SUN_OS_TRUE='#'
5336   HAVE_SUN_OS_FALSE=
5337 fi
5338 fi
5339
5340 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5341 then
5342
5343
5344 if $TRUEPRG; then
5345   HAVE_OSF1_OS_TRUE=
5346   HAVE_OSF1_OS_FALSE='#'
5347 else
5348   HAVE_OSF1_OS_TRUE='#'
5349   HAVE_OSF1_OS_FALSE=
5350 fi
5351         cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_OSF1_OS 1
5353 _ACEOF
5354
5355 else
5356
5357
5358 if $FALSEPRG; then
5359   HAVE_OSF1_OS_TRUE=
5360   HAVE_OSF1_OS_FALSE='#'
5361 else
5362   HAVE_OSF1_OS_TRUE='#'
5363   HAVE_OSF1_OS_FALSE=
5364 fi
5365 fi
5366
5367 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5368 then
5369
5370
5371 if $TRUEPRG; then
5372   HAVE_AIX_OS_TRUE=
5373   HAVE_AIX_OS_FALSE='#'
5374 else
5375   HAVE_AIX_OS_TRUE='#'
5376   HAVE_AIX_OS_FALSE=
5377 fi
5378         cat >>confdefs.h <<\_ACEOF
5379 #define HAVE_AIX_OS 1
5380 _ACEOF
5381
5382 else
5383
5384
5385 if $FALSEPRG; then
5386   HAVE_AIX_OS_TRUE=
5387   HAVE_AIX_OS_FALSE='#'
5388 else
5389   HAVE_AIX_OS_TRUE='#'
5390   HAVE_AIX_OS_FALSE=
5391 fi
5392 fi
5393
5394 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5395 then
5396
5397
5398 if $TRUEPRG; then
5399   HAVE_HPUX_OS_TRUE=
5400   HAVE_HPUX_OS_FALSE='#'
5401 else
5402   HAVE_HPUX_OS_TRUE='#'
5403   HAVE_HPUX_OS_FALSE=
5404 fi
5405         cat >>confdefs.h <<\_ACEOF
5406 #define HAVE_HPUX_OS 1
5407 _ACEOF
5408
5409 else
5410
5411
5412 if $FALSEPRG; then
5413   HAVE_HPUX_OS_TRUE=
5414   HAVE_HPUX_OS_FALSE='#'
5415 else
5416   HAVE_HPUX_OS_TRUE='#'
5417   HAVE_HPUX_OS_FALSE=
5418 fi
5419 fi
5420
5421 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5422 then
5423
5424
5425 if $TRUEPRG; then
5426   HAVE_LINUX_OS_TRUE=
5427   HAVE_LINUX_OS_FALSE='#'
5428 else
5429   HAVE_LINUX_OS_TRUE='#'
5430   HAVE_LINUX_OS_FALSE=
5431 fi
5432         cat >>confdefs.h <<\_ACEOF
5433 #define HAVE_LINUX_OS 1
5434 _ACEOF
5435
5436 else
5437
5438
5439 if $FALSEPRG; then
5440   HAVE_LINUX_OS_TRUE=
5441   HAVE_LINUX_OS_FALSE='#'
5442 else
5443   HAVE_LINUX_OS_TRUE='#'
5444   HAVE_LINUX_OS_FALSE=
5445 fi
5446 fi
5447
5448 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5449 then
5450
5451
5452 if $TRUEPRG; then
5453   HAVE_FREEBSD_OS_TRUE=
5454   HAVE_FREEBSD_OS_FALSE='#'
5455 else
5456   HAVE_FREEBSD_OS_TRUE='#'
5457   HAVE_FREEBSD_OS_FALSE=
5458 fi
5459         cat >>confdefs.h <<\_ACEOF
5460 #define HAVE_FREEBSD_OS 1
5461 _ACEOF
5462
5463 else
5464
5465
5466 if $FALSEPRG; then
5467   HAVE_FREEBSD_OS_TRUE=
5468   HAVE_FREEBSD_OS_FALSE='#'
5469 else
5470   HAVE_FREEBSD_OS_TRUE='#'
5471   HAVE_FREEBSD_OS_FALSE=
5472 fi
5473 fi
5474
5475 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5476 then
5477
5478
5479 if $TRUEPRG; then
5480   HAVE_NETBSD_OS_TRUE=
5481   HAVE_NETBSD_OS_FALSE='#'
5482 else
5483   HAVE_NETBSD_OS_TRUE='#'
5484   HAVE_NETBSD_OS_FALSE=
5485 fi
5486         cat >>confdefs.h <<\_ACEOF
5487 #define HAVE_NETBSD_OS 1
5488 _ACEOF
5489
5490 else
5491
5492
5493 if $FALSEPRG; then
5494   HAVE_NETBSD_OS_TRUE=
5495   HAVE_NETBSD_OS_FALSE='#'
5496 else
5497   HAVE_NETBSD_OS_TRUE='#'
5498   HAVE_NETBSD_OS_FALSE=
5499 fi
5500 fi
5501
5502 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5503 then
5504
5505
5506 if $TRUEPRG; then
5507   HAVE_OPENBSD_OS_TRUE=
5508   HAVE_OPENBSD_OS_FALSE='#'
5509 else
5510   HAVE_OPENBSD_OS_TRUE='#'
5511   HAVE_OPENBSD_OS_FALSE=
5512 fi
5513         cat >>confdefs.h <<\_ACEOF
5514 #define HAVE_OPENBSD_OS 1
5515 _ACEOF
5516
5517 else
5518
5519
5520 if $FALSEPRG; then
5521   HAVE_OPENBSD_OS_TRUE=
5522   HAVE_OPENBSD_OS_FALSE='#'
5523 else
5524   HAVE_OPENBSD_OS_TRUE='#'
5525   HAVE_OPENBSD_OS_FALSE=
5526 fi
5527 fi
5528
5529 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5530 then
5531
5532
5533 if $TRUEPRG; then
5534   HAVE_BSDI_OS_TRUE=
5535   HAVE_BSDI_OS_FALSE='#'
5536 else
5537   HAVE_BSDI_OS_TRUE='#'
5538   HAVE_BSDI_OS_FALSE=
5539 fi
5540         cat >>confdefs.h <<\_ACEOF
5541 #define HAVE_BSDI_OS 1
5542 _ACEOF
5543
5544 else
5545
5546
5547 if $FALSEPRG; then
5548   HAVE_BSDI_OS_TRUE=
5549   HAVE_BSDI_OS_FALSE='#'
5550 else
5551   HAVE_BSDI_OS_TRUE='#'
5552   HAVE_BSDI_OS_FALSE=
5553 fi
5554 fi
5555
5556 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5557 then
5558
5559
5560 if $TRUEPRG; then
5561   HAVE_SGI_OS_TRUE=
5562   HAVE_SGI_OS_FALSE='#'
5563 else
5564   HAVE_SGI_OS_TRUE='#'
5565   HAVE_SGI_OS_FALSE=
5566 fi
5567         cat >>confdefs.h <<\_ACEOF
5568 #define HAVE_SGI_OS 1
5569 _ACEOF
5570
5571 else
5572
5573
5574 if $FALSEPRG; then
5575   HAVE_SGI_OS_TRUE=
5576   HAVE_SGI_OS_FALSE='#'
5577 else
5578   HAVE_SGI_OS_TRUE='#'
5579   HAVE_SGI_OS_FALSE=
5580 fi
5581 fi
5582
5583 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5584 then
5585
5586
5587 if $TRUEPRG; then
5588   HAVE_IRIX_OS_TRUE=
5589   HAVE_IRIX_OS_FALSE='#'
5590 else
5591   HAVE_IRIX_OS_TRUE='#'
5592   HAVE_IRIX_OS_FALSE=
5593 fi
5594         cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_IRIX_OS 1
5596 _ACEOF
5597
5598 else
5599
5600
5601 if $FALSEPRG; then
5602   HAVE_IRIX_OS_TRUE=
5603   HAVE_IRIX_OS_FALSE='#'
5604 else
5605   HAVE_IRIX_OS_TRUE='#'
5606   HAVE_IRIX_OS_FALSE=
5607 fi
5608 fi
5609
5610 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5611 then
5612
5613
5614 if $TRUEPRG; then
5615   HAVE_DARWIN_OS_TRUE=
5616   HAVE_DARWIN_OS_FALSE='#'
5617 else
5618   HAVE_DARWIN_OS_TRUE='#'
5619   HAVE_DARWIN_OS_FALSE=
5620 fi
5621     cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_DARWIN_OS 1
5623 _ACEOF
5624
5625 else
5626
5627
5628 if $FALSEPRG; then
5629   HAVE_DARWIN_OS_TRUE=
5630   HAVE_DARWIN_OS_FALSE='#'
5631 else
5632   HAVE_DARWIN_OS_TRUE='#'
5633   HAVE_DARWIN_OS_FALSE=
5634 fi
5635 fi
5636
5637
5638 # -----------------------------------------------------------
5639 # ----------------------------------------------------------
5640 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5641 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5642 if test "x$DISTNAME" != "x"
5643 then
5644         echo "distname set to $DISTNAME"
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5646 then
5647         DISTNAME=alpha
5648 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5649 then
5650         DISTNAME=aix
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5652 then
5653         DISTNAME=hpux
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5655 then
5656         DISTNAME=solaris
5657 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5658 then
5659         DISTNAME=freebsd
5660 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5661 then
5662         DISTNAME=netbsd
5663 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5664 then
5665         DISTNAME=openbsd
5666 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5667 then
5668         DISTNAME=irix
5669 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5670 then
5671         DISTNAME=bsdi
5672 elif test -f /etc/SuSE-release
5673 then
5674         DISTNAME=suse
5675 elif test -d /etc/SuSEconfig
5676 then
5677         DISTNAME=suse5
5678 elif test -f /etc/mandrake-release
5679 then
5680         DISTNAME=mandrake
5681 elif test -f /etc/whitebox-release
5682 then
5683        DISTNAME=redhat
5684 elif test -f /etc/redhat-release
5685 then
5686         DISTNAME=redhat
5687 elif test -f /etc/gentoo-release
5688 then
5689         DISTNAME=gentoo
5690 elif test -f /etc/debian_version
5691 then
5692         DISTNAME=debian
5693 elif test -f /etc/slackware-version
5694 then
5695         DISTNAME=slackware
5696 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5697 then
5698     DISTNAME=darwin
5699 elif test -f /etc/engarde-version
5700 then
5701         DISTNAME=engarde
5702 elif test "$CYGWIN" = yes
5703 then
5704         DISTNAME=cygwin
5705         cat >>confdefs.h <<\_ACEOF
5706 #define HAVE_CYGWIN 1
5707 _ACEOF
5708
5709 else
5710         DISTNAME=unknown
5711 fi
5712 { echo "$as_me:$LINENO: result: done" >&5
5713 echo "${ECHO_T}done" >&6; }
5714
5715
5716 # --------------------------------------------------
5717 # Suppport for gettext (translations)
5718 # By default, $datadir is ${prefix}/share
5719 # --------------------------------------------------
5720 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5721 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5722 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   cat >conftest.make <<\_ACEOF
5727 SHELL = /bin/sh
5728 all:
5729         @echo '@@@%%%=$(MAKE)=@@@%%%'
5730 _ACEOF
5731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5733   *@@@%%%=?*=@@@%%%*)
5734     eval ac_cv_prog_make_${ac_make}_set=yes;;
5735   *)
5736     eval ac_cv_prog_make_${ac_make}_set=no;;
5737 esac
5738 rm -f conftest.make
5739 fi
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741   { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5743   SET_MAKE=
5744 else
5745   { echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6; }
5747   SET_MAKE="MAKE=${MAKE-make}"
5748 fi
5749
5750
5751
5752         MKINSTALLDIRS=
5753   if test -n "$ac_aux_dir"; then
5754     case "$ac_aux_dir" in
5755       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5756       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5757     esac
5758   fi
5759   if test -z "$MKINSTALLDIRS"; then
5760     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5761   fi
5762
5763
5764
5765   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5766 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5767     # Check whether --enable-nls was given.
5768 if test "${enable_nls+set}" = set; then
5769   enableval=$enable_nls; USE_NLS=$enableval
5770 else
5771   USE_NLS=yes
5772 fi
5773
5774   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5775 echo "${ECHO_T}$USE_NLS" >&6; }
5776
5777
5778
5779
5780
5781
5782 # Prepare PATH_SEPARATOR.
5783 # The user is always right.
5784 if test "${PATH_SEPARATOR+set}" != set; then
5785   echo "#! /bin/sh" >conf$$.sh
5786   echo  "exit 0"   >>conf$$.sh
5787   chmod +x conf$$.sh
5788   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5789     PATH_SEPARATOR=';'
5790   else
5791     PATH_SEPARATOR=:
5792   fi
5793   rm -f conf$$.sh
5794 fi
5795
5796 # Find out how to test for executable files. Don't use a zero-byte file,
5797 # as systems may use methods other than mode bits to determine executability.
5798 cat >conf$$.file <<_ASEOF
5799 #! /bin/sh
5800 exit 0
5801 _ASEOF
5802 chmod +x conf$$.file
5803 if test -x conf$$.file >/dev/null 2>&1; then
5804   ac_executable_p="test -x"
5805 else
5806   ac_executable_p="test -f"
5807 fi
5808 rm -f conf$$.file
5809
5810 # Extract the first word of "msgfmt", so it can be a program name with args.
5811 set dummy msgfmt; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_path_MSGFMT+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   case "$MSGFMT" in
5818   [\\/]* | ?:[\\/]*)
5819     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5820     ;;
5821   *)
5822     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5823     for ac_dir in $PATH; do
5824       IFS="$ac_save_IFS"
5825       test -z "$ac_dir" && ac_dir=.
5826       for ac_exec_ext in '' $ac_executable_extensions; do
5827         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5828           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5829           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5830      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5831             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5832             break 2
5833           fi
5834         fi
5835       done
5836     done
5837     IFS="$ac_save_IFS"
5838   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5839     ;;
5840 esac
5841 fi
5842 MSGFMT="$ac_cv_path_MSGFMT"
5843 if test "$MSGFMT" != ":"; then
5844   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5845 echo "${ECHO_T}$MSGFMT" >&6; }
5846 else
5847   { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5849 fi
5850
5851   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5852 set dummy gmsgfmt; ac_word=$2
5853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5855 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   case $GMSGFMT in
5859   [\\/]* | ?:[\\/]*)
5860   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5861   ;;
5862   *)
5863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868   for ac_exec_ext in '' $ac_executable_extensions; do
5869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5879   ;;
5880 esac
5881 fi
5882 GMSGFMT=$ac_cv_path_GMSGFMT
5883 if test -n "$GMSGFMT"; then
5884   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5885 echo "${ECHO_T}$GMSGFMT" >&6; }
5886 else
5887   { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5889 fi
5890
5891
5892
5893
5894 # Prepare PATH_SEPARATOR.
5895 # The user is always right.
5896 if test "${PATH_SEPARATOR+set}" != set; then
5897   echo "#! /bin/sh" >conf$$.sh
5898   echo  "exit 0"   >>conf$$.sh
5899   chmod +x conf$$.sh
5900   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5901     PATH_SEPARATOR=';'
5902   else
5903     PATH_SEPARATOR=:
5904   fi
5905   rm -f conf$$.sh
5906 fi
5907
5908 # Find out how to test for executable files. Don't use a zero-byte file,
5909 # as systems may use methods other than mode bits to determine executability.
5910 cat >conf$$.file <<_ASEOF
5911 #! /bin/sh
5912 exit 0
5913 _ASEOF
5914 chmod +x conf$$.file
5915 if test -x conf$$.file >/dev/null 2>&1; then
5916   ac_executable_p="test -x"
5917 else
5918   ac_executable_p="test -f"
5919 fi
5920 rm -f conf$$.file
5921
5922 # Extract the first word of "xgettext", so it can be a program name with args.
5923 set dummy xgettext; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   case "$XGETTEXT" in
5930   [\\/]* | ?:[\\/]*)
5931     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5932     ;;
5933   *)
5934     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5935     for ac_dir in $PATH; do
5936       IFS="$ac_save_IFS"
5937       test -z "$ac_dir" && ac_dir=.
5938       for ac_exec_ext in '' $ac_executable_extensions; do
5939         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5940           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5941           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5942      (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
5943             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5944             break 2
5945           fi
5946         fi
5947       done
5948     done
5949     IFS="$ac_save_IFS"
5950   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5951     ;;
5952 esac
5953 fi
5954 XGETTEXT="$ac_cv_path_XGETTEXT"
5955 if test "$XGETTEXT" != ":"; then
5956   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5957 echo "${ECHO_T}$XGETTEXT" >&6; }
5958 else
5959   { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5961 fi
5962
5963     rm -f messages.po
5964
5965
5966 # Prepare PATH_SEPARATOR.
5967 # The user is always right.
5968 if test "${PATH_SEPARATOR+set}" != set; then
5969   echo "#! /bin/sh" >conf$$.sh
5970   echo  "exit 0"   >>conf$$.sh
5971   chmod +x conf$$.sh
5972   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5973     PATH_SEPARATOR=';'
5974   else
5975     PATH_SEPARATOR=:
5976   fi
5977   rm -f conf$$.sh
5978 fi
5979
5980 # Find out how to test for executable files. Don't use a zero-byte file,
5981 # as systems may use methods other than mode bits to determine executability.
5982 cat >conf$$.file <<_ASEOF
5983 #! /bin/sh
5984 exit 0
5985 _ASEOF
5986 chmod +x conf$$.file
5987 if test -x conf$$.file >/dev/null 2>&1; then
5988   ac_executable_p="test -x"
5989 else
5990   ac_executable_p="test -f"
5991 fi
5992 rm -f conf$$.file
5993
5994 # Extract the first word of "msgmerge", so it can be a program name with args.
5995 set dummy msgmerge; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   case "$MSGMERGE" in
6002   [\\/]* | ?:[\\/]*)
6003     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6004     ;;
6005   *)
6006     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6007     for ac_dir in $PATH; do
6008       IFS="$ac_save_IFS"
6009       test -z "$ac_dir" && ac_dir=.
6010       for ac_exec_ext in '' $ac_executable_extensions; do
6011         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6012           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6013           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6014             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6015             break 2
6016           fi
6017         fi
6018       done
6019     done
6020     IFS="$ac_save_IFS"
6021   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6022     ;;
6023 esac
6024 fi
6025 MSGMERGE="$ac_cv_path_MSGMERGE"
6026 if test "$MSGMERGE" != ":"; then
6027   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6028 echo "${ECHO_T}$MSGMERGE" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035       if test "$GMSGFMT" != ":"; then
6036             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6037        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6038       : ;
6039     else
6040       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6041       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6042 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6043       GMSGFMT=":"
6044     fi
6045   fi
6046
6047       if test "$XGETTEXT" != ":"; then
6048             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6049        (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
6050       : ;
6051     else
6052       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6053 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6054       XGETTEXT=":"
6055     fi
6056         rm -f messages.po
6057   fi
6058
6059   ac_config_commands="$ac_config_commands default-1"
6060
6061
6062
6063       if test "X$prefix" = "XNONE"; then
6064     acl_final_prefix="$ac_default_prefix"
6065   else
6066     acl_final_prefix="$prefix"
6067   fi
6068   if test "X$exec_prefix" = "XNONE"; then
6069     acl_final_exec_prefix='${prefix}'
6070   else
6071     acl_final_exec_prefix="$exec_prefix"
6072   fi
6073   acl_save_prefix="$prefix"
6074   prefix="$acl_final_prefix"
6075   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6076   prefix="$acl_save_prefix"
6077
6078
6079 # Check whether --with-gnu-ld was given.
6080 if test "${with_gnu_ld+set}" = set; then
6081   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6082 else
6083   with_gnu_ld=no
6084 fi
6085
6086 # Prepare PATH_SEPARATOR.
6087 # The user is always right.
6088 if test "${PATH_SEPARATOR+set}" != set; then
6089   echo "#! /bin/sh" >conf$$.sh
6090   echo  "exit 0"   >>conf$$.sh
6091   chmod +x conf$$.sh
6092   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6093     PATH_SEPARATOR=';'
6094   else
6095     PATH_SEPARATOR=:
6096   fi
6097   rm -f conf$$.sh
6098 fi
6099 ac_prog=ld
6100 if test "$GCC" = yes; then
6101   # Check if gcc -print-prog-name=ld gives a path.
6102   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6104   case $host in
6105   *-*-mingw*)
6106     # gcc leaves a trailing carriage return which upsets mingw
6107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6108   *)
6109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6110   esac
6111   case $ac_prog in
6112     # Accept absolute paths.
6113     [\\/]* | [A-Za-z]:[\\/]*)
6114       re_direlt='/[^/][^/]*/\.\./'
6115       # Canonicalize the path of ld
6116       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6119       done
6120       test -z "$LD" && LD="$ac_prog"
6121       ;;
6122   "")
6123     # If it fails, then pretend we aren't using GCC.
6124     ac_prog=ld
6125     ;;
6126   *)
6127     # If it is relative, then search for the first ld in PATH.
6128     with_gnu_ld=unknown
6129     ;;
6130   esac
6131 elif test "$with_gnu_ld" = yes; then
6132   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6134 else
6135   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6137 fi
6138 if test "${acl_cv_path_LD+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -z "$LD"; then
6142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143   for ac_dir in $PATH; do
6144     test -z "$ac_dir" && ac_dir=.
6145     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146       acl_cv_path_LD="$ac_dir/$ac_prog"
6147       # Check to see if the program is GNU ld.  I'd rather use --version,
6148       # but apparently some GNU ld's only accept -v.
6149       # Break only if it was the GNU/non-GNU ld that we prefer.
6150       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6151       *GNU* | *'with BFD'*)
6152         test "$with_gnu_ld" != no && break ;;
6153       *)
6154         test "$with_gnu_ld" != yes && break ;;
6155       esac
6156     fi
6157   done
6158   IFS="$ac_save_ifs"
6159 else
6160   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6161 fi
6162 fi
6163
6164 LD="$acl_cv_path_LD"
6165 if test -n "$LD"; then
6166   { echo "$as_me:$LINENO: result: $LD" >&5
6167 echo "${ECHO_T}$LD" >&6; }
6168 else
6169   { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6174    { (exit 1); exit 1; }; }
6175 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6177 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183   acl_cv_prog_gnu_ld=yes ;;
6184 *)
6185   acl_cv_prog_gnu_ld=no ;;
6186 esac
6187 fi
6188 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6189 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6190 with_gnu_ld=$acl_cv_prog_gnu_ld
6191
6192
6193
6194
6195                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6196 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6197 if test "${acl_cv_rpath+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200
6201     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6202     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6203     . ./conftest.sh
6204     rm -f ./conftest.sh
6205     acl_cv_rpath=done
6206
6207 fi
6208 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6209 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6210   wl="$acl_cv_wl"
6211   libext="$acl_cv_libext"
6212   shlibext="$acl_cv_shlibext"
6213   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6214   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6215   hardcode_direct="$acl_cv_hardcode_direct"
6216   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6217     # Check whether --enable-rpath was given.
6218 if test "${enable_rpath+set}" = set; then
6219   enableval=$enable_rpath; :
6220 else
6221   enable_rpath=yes
6222 fi
6223
6224
6225
6226
6227
6228
6229
6230
6231     use_additional=yes
6232
6233   acl_save_prefix="$prefix"
6234   prefix="$acl_final_prefix"
6235   acl_save_exec_prefix="$exec_prefix"
6236   exec_prefix="$acl_final_exec_prefix"
6237
6238     eval additional_includedir=\"$includedir\"
6239     eval additional_libdir=\"$libdir\"
6240
6241   exec_prefix="$acl_save_exec_prefix"
6242   prefix="$acl_save_prefix"
6243
6244
6245 # Check whether --with-libiconv-prefix was given.
6246 if test "${with_libiconv_prefix+set}" = set; then
6247   withval=$with_libiconv_prefix;
6248     if test "X$withval" = "Xno"; then
6249       use_additional=no
6250     else
6251       if test "X$withval" = "X"; then
6252
6253   acl_save_prefix="$prefix"
6254   prefix="$acl_final_prefix"
6255   acl_save_exec_prefix="$exec_prefix"
6256   exec_prefix="$acl_final_exec_prefix"
6257
6258           eval additional_includedir=\"$includedir\"
6259           eval additional_libdir=\"$libdir\"
6260
6261   exec_prefix="$acl_save_exec_prefix"
6262   prefix="$acl_save_prefix"
6263
6264       else
6265         additional_includedir="$withval/include"
6266         additional_libdir="$withval/lib"
6267       fi
6268     fi
6269
6270 fi
6271
6272       LIBICONV=
6273   LTLIBICONV=
6274   INCICONV=
6275   rpathdirs=
6276   ltrpathdirs=
6277   names_already_handled=
6278   names_next_round='iconv '
6279   while test -n "$names_next_round"; do
6280     names_this_round="$names_next_round"
6281     names_next_round=
6282     for name in $names_this_round; do
6283       already_handled=
6284       for n in $names_already_handled; do
6285         if test "$n" = "$name"; then
6286           already_handled=yes
6287           break
6288         fi
6289       done
6290       if test -z "$already_handled"; then
6291         names_already_handled="$names_already_handled $name"
6292                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6293         eval value=\"\$HAVE_LIB$uppername\"
6294         if test -n "$value"; then
6295           if test "$value" = yes; then
6296             eval value=\"\$LIB$uppername\"
6297             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6298             eval value=\"\$LTLIB$uppername\"
6299             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6300           else
6301                                     :
6302           fi
6303         else
6304                               found_dir=
6305           found_la=
6306           found_so=
6307           found_a=
6308           if test $use_additional = yes; then
6309             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6310               found_dir="$additional_libdir"
6311               found_so="$additional_libdir/lib$name.$shlibext"
6312               if test -f "$additional_libdir/lib$name.la"; then
6313                 found_la="$additional_libdir/lib$name.la"
6314               fi
6315             else
6316               if test -f "$additional_libdir/lib$name.$libext"; then
6317                 found_dir="$additional_libdir"
6318                 found_a="$additional_libdir/lib$name.$libext"
6319                 if test -f "$additional_libdir/lib$name.la"; then
6320                   found_la="$additional_libdir/lib$name.la"
6321                 fi
6322               fi
6323             fi
6324           fi
6325           if test "X$found_dir" = "X"; then
6326             for x in $LDFLAGS $LTLIBICONV; do
6327
6328   acl_save_prefix="$prefix"
6329   prefix="$acl_final_prefix"
6330   acl_save_exec_prefix="$exec_prefix"
6331   exec_prefix="$acl_final_exec_prefix"
6332   eval x=\"$x\"
6333   exec_prefix="$acl_save_exec_prefix"
6334   prefix="$acl_save_prefix"
6335
6336               case "$x" in
6337                 -L*)
6338                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6339                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6340                     found_dir="$dir"
6341                     found_so="$dir/lib$name.$shlibext"
6342                     if test -f "$dir/lib$name.la"; then
6343                       found_la="$dir/lib$name.la"
6344                     fi
6345                   else
6346                     if test -f "$dir/lib$name.$libext"; then
6347                       found_dir="$dir"
6348                       found_a="$dir/lib$name.$libext"
6349                       if test -f "$dir/lib$name.la"; then
6350                         found_la="$dir/lib$name.la"
6351                       fi
6352                     fi
6353                   fi
6354                   ;;
6355               esac
6356               if test "X$found_dir" != "X"; then
6357                 break
6358               fi
6359             done
6360           fi
6361           if test "X$found_dir" != "X"; then
6362                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6363             if test "X$found_so" != "X"; then
6364                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6365                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6366               else
6367                                                                                 haveit=
6368                 for x in $ltrpathdirs; 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                   ltrpathdirs="$ltrpathdirs $found_dir"
6376                 fi
6377                                 if test "$hardcode_direct" = yes; then
6378                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6379                 else
6380                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6381                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6382                                                             haveit=
6383                     for x in $rpathdirs; do
6384                       if test "X$x" = "X$found_dir"; then
6385                         haveit=yes
6386                         break
6387                       fi
6388                     done
6389                     if test -z "$haveit"; then
6390                       rpathdirs="$rpathdirs $found_dir"
6391                     fi
6392                   else
6393                                                                                 haveit=
6394                     for x in $LDFLAGS $LIBICONV; do
6395
6396   acl_save_prefix="$prefix"
6397   prefix="$acl_final_prefix"
6398   acl_save_exec_prefix="$exec_prefix"
6399   exec_prefix="$acl_final_exec_prefix"
6400   eval x=\"$x\"
6401   exec_prefix="$acl_save_exec_prefix"
6402   prefix="$acl_save_prefix"
6403
6404                       if test "X$x" = "X-L$found_dir"; then
6405                         haveit=yes
6406                         break
6407                       fi
6408                     done
6409                     if test -z "$haveit"; then
6410                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6411                     fi
6412                     if test "$hardcode_minus_L" != no; then
6413                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6414                     else
6415                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6416                     fi
6417                   fi
6418                 fi
6419               fi
6420             else
6421               if test "X$found_a" != "X"; then
6422                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6423               else
6424                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6425               fi
6426             fi
6427                         additional_includedir=
6428             case "$found_dir" in
6429               */lib | */lib/)
6430                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6431                 additional_includedir="$basedir/include"
6432                 ;;
6433             esac
6434             if test "X$additional_includedir" != "X"; then
6435                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6436                 haveit=
6437                 if test "X$additional_includedir" = "X/usr/local/include"; then
6438                   if test -n "$GCC"; then
6439                     case $host_os in
6440                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6441                     esac
6442                   fi
6443                 fi
6444                 if test -z "$haveit"; then
6445                   for x in $CPPFLAGS $INCICONV; do
6446
6447   acl_save_prefix="$prefix"
6448   prefix="$acl_final_prefix"
6449   acl_save_exec_prefix="$exec_prefix"
6450   exec_prefix="$acl_final_exec_prefix"
6451   eval x=\"$x\"
6452   exec_prefix="$acl_save_exec_prefix"
6453   prefix="$acl_save_prefix"
6454
6455                     if test "X$x" = "X-I$additional_includedir"; then
6456                       haveit=yes
6457                       break
6458                     fi
6459                   done
6460                   if test -z "$haveit"; then
6461                     if test -d "$additional_includedir"; then
6462                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6463                     fi
6464                   fi
6465                 fi
6466               fi
6467             fi
6468                         if test -n "$found_la"; then
6469                                                         save_libdir="$libdir"
6470               case "$found_la" in
6471                 */* | *\\*) . "$found_la" ;;
6472                 *) . "./$found_la" ;;
6473               esac
6474               libdir="$save_libdir"
6475                             for dep in $dependency_libs; do
6476                 case "$dep" in
6477                   -L*)
6478                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6479                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6480                       haveit=
6481                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6482                         if test -n "$GCC"; then
6483                           case $host_os in
6484                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6485                           esac
6486                         fi
6487                       fi
6488                       if test -z "$haveit"; then
6489                         haveit=
6490                         for x in $LDFLAGS $LIBICONV; do
6491
6492   acl_save_prefix="$prefix"
6493   prefix="$acl_final_prefix"
6494   acl_save_exec_prefix="$exec_prefix"
6495   exec_prefix="$acl_final_exec_prefix"
6496   eval x=\"$x\"
6497   exec_prefix="$acl_save_exec_prefix"
6498   prefix="$acl_save_prefix"
6499
6500                           if test "X$x" = "X-L$additional_libdir"; then
6501                             haveit=yes
6502                             break
6503                           fi
6504                         done
6505                         if test -z "$haveit"; then
6506                           if test -d "$additional_libdir"; then
6507                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6508                           fi
6509                         fi
6510                         haveit=
6511                         for x in $LDFLAGS $LTLIBICONV; do
6512
6513   acl_save_prefix="$prefix"
6514   prefix="$acl_final_prefix"
6515   acl_save_exec_prefix="$exec_prefix"
6516   exec_prefix="$acl_final_exec_prefix"
6517   eval x=\"$x\"
6518   exec_prefix="$acl_save_exec_prefix"
6519   prefix="$acl_save_prefix"
6520
6521                           if test "X$x" = "X-L$additional_libdir"; then
6522                             haveit=yes
6523                             break
6524                           fi
6525                         done
6526                         if test -z "$haveit"; then
6527                           if test -d "$additional_libdir"; then
6528                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6529                           fi
6530                         fi
6531                       fi
6532                     fi
6533                     ;;
6534                   -R*)
6535                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6536                     if test "$enable_rpath" != no; then
6537                                                                   haveit=
6538                       for x in $rpathdirs; do
6539                         if test "X$x" = "X$dir"; then
6540                           haveit=yes
6541                           break
6542                         fi
6543                       done
6544                       if test -z "$haveit"; then
6545                         rpathdirs="$rpathdirs $dir"
6546                       fi
6547                                                                   haveit=
6548                       for x in $ltrpathdirs; do
6549                         if test "X$x" = "X$dir"; then
6550                           haveit=yes
6551                           break
6552                         fi
6553                       done
6554                       if test -z "$haveit"; then
6555                         ltrpathdirs="$ltrpathdirs $dir"
6556                       fi
6557                     fi
6558                     ;;
6559                   -l*)
6560                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6561                     ;;
6562                   *.la)
6563                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6564                     ;;
6565                   *)
6566                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6567                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6568                     ;;
6569                 esac
6570               done
6571             fi
6572           else
6573                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6574             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6575           fi
6576         fi
6577       fi
6578     done
6579   done
6580   if test "X$rpathdirs" != "X"; then
6581     if test -n "$hardcode_libdir_separator"; then
6582                         alldirs=
6583       for found_dir in $rpathdirs; do
6584         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6585       done
6586             acl_save_libdir="$libdir"
6587       libdir="$alldirs"
6588       eval flag=\"$hardcode_libdir_flag_spec\"
6589       libdir="$acl_save_libdir"
6590       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6591     else
6592             for found_dir in $rpathdirs; do
6593         acl_save_libdir="$libdir"
6594         libdir="$found_dir"
6595         eval flag=\"$hardcode_libdir_flag_spec\"
6596         libdir="$acl_save_libdir"
6597         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6598       done
6599     fi
6600   fi
6601   if test "X$ltrpathdirs" != "X"; then
6602             for found_dir in $ltrpathdirs; do
6603       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6604     done
6605   fi
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6625 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6626 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   gt_save_CPPFLAGS="$CPPFLAGS"
6630      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6631      gt_save_LIBS="$LIBS"
6632      LIBS="$LIBS -framework CoreFoundation"
6633      cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639 #include <CFPreferences.h>
6640 int
6641 main ()
6642 {
6643 CFPreferencesCopyAppValue(NULL, NULL)
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6650 case "(($ac_try" in
6651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652   *) ac_try_echo=$ac_try;;
6653 esac
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655   (eval "$ac_link") 2>conftest.er1
6656   ac_status=$?
6657   grep -v '^ *+' conftest.er1 >conftest.err
6658   rm -f conftest.er1
6659   cat conftest.err >&5
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } && {
6662          test -z "$ac_c_werror_flag" ||
6663          test ! -s conftest.err
6664        } && test -s conftest$ac_exeext &&
6665        $as_test_x conftest$ac_exeext; then
6666   gt_cv_func_CFPreferencesCopyAppValue=yes
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671         gt_cv_func_CFPreferencesCopyAppValue=no
6672 fi
6673
6674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6675       conftest$ac_exeext conftest.$ac_ext
6676      CPPFLAGS="$gt_save_CPPFLAGS"
6677      LIBS="$gt_save_LIBS"
6678 fi
6679 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6680 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6681   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6685 _ACEOF
6686
6687   fi
6688     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6689 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6690 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   gt_save_CPPFLAGS="$CPPFLAGS"
6694      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6695      gt_save_LIBS="$LIBS"
6696      LIBS="$LIBS -framework CoreFoundation"
6697      cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #include <CFLocale.h>
6704 int
6705 main ()
6706 {
6707 CFLocaleCopyCurrent();
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (ac_try="$ac_link"
6714 case "(($ac_try" in
6715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716   *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719   (eval "$ac_link") 2>conftest.er1
6720   ac_status=$?
6721   grep -v '^ *+' conftest.er1 >conftest.err
6722   rm -f conftest.er1
6723   cat conftest.err >&5
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } && {
6726          test -z "$ac_c_werror_flag" ||
6727          test ! -s conftest.err
6728        } && test -s conftest$ac_exeext &&
6729        $as_test_x conftest$ac_exeext; then
6730   gt_cv_func_CFLocaleCopyCurrent=yes
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735         gt_cv_func_CFLocaleCopyCurrent=no
6736 fi
6737
6738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6739       conftest$ac_exeext conftest.$ac_ext
6740      CPPFLAGS="$gt_save_CPPFLAGS"
6741      LIBS="$gt_save_LIBS"
6742 fi
6743 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6744 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6745   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_CFLOCALECOPYCURRENT 1
6749 _ACEOF
6750
6751   fi
6752   INTL_MACOSX_LIBS=
6753   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6754     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6755   fi
6756
6757
6758
6759
6760   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6762     # Check whether --enable-nls was given.
6763 if test "${enable_nls+set}" = set; then
6764   enableval=$enable_nls; USE_NLS=$enableval
6765 else
6766   USE_NLS=yes
6767 fi
6768
6769   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6770 echo "${ECHO_T}$USE_NLS" >&6; }
6771
6772
6773
6774
6775   LIBINTL=
6776   LTLIBINTL=
6777   POSUB=
6778
6779     if test "$USE_NLS" = "yes"; then
6780     gt_use_preinstalled_gnugettext=no
6781
6782
6783
6784
6785
6786
6787         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6788 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6789 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 #include <libintl.h>
6799 extern int _nl_msg_cat_cntr;
6800 extern int *_nl_domain_bindings;
6801 int
6802 main ()
6803 {
6804 bindtextdomain ("", "");
6805 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6806   ;
6807   return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext conftest$ac_exeext
6811 if { (ac_try="$ac_link"
6812 case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817   (eval "$ac_link") 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } && {
6824          test -z "$ac_c_werror_flag" ||
6825          test ! -s conftest.err
6826        } && test -s conftest$ac_exeext &&
6827        $as_test_x conftest$ac_exeext; then
6828   gt_cv_func_gnugettext1_libc=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833         gt_cv_func_gnugettext1_libc=no
6834 fi
6835
6836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6837       conftest$ac_exeext conftest.$ac_ext
6838 fi
6839 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6840 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6841
6842         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6843
6844
6845
6846
6847
6848           am_save_CPPFLAGS="$CPPFLAGS"
6849
6850   for element in $INCICONV; do
6851     haveit=
6852     for x in $CPPFLAGS; do
6853
6854   acl_save_prefix="$prefix"
6855   prefix="$acl_final_prefix"
6856   acl_save_exec_prefix="$exec_prefix"
6857   exec_prefix="$acl_final_exec_prefix"
6858   eval x=\"$x\"
6859   exec_prefix="$acl_save_exec_prefix"
6860   prefix="$acl_save_prefix"
6861
6862       if test "X$x" = "X$element"; then
6863         haveit=yes
6864         break
6865       fi
6866     done
6867     if test -z "$haveit"; then
6868       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6869     fi
6870   done
6871
6872
6873   { echo "$as_me:$LINENO: checking for iconv" >&5
6874 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6875 if test "${am_cv_func_iconv+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878
6879     am_cv_func_iconv="no, consider installing GNU libiconv"
6880     am_cv_lib_iconv=no
6881     cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 #include <stdlib.h>
6888 #include <iconv.h>
6889 int
6890 main ()
6891 {
6892 iconv_t cd = iconv_open("","");
6893        iconv(cd,NULL,NULL,NULL,NULL);
6894        iconv_close(cd);
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6901 case "(($ac_try" in
6902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903   *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906   (eval "$ac_link") 2>conftest.er1
6907   ac_status=$?
6908   grep -v '^ *+' conftest.er1 >conftest.err
6909   rm -f conftest.er1
6910   cat conftest.err >&5
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } && {
6913          test -z "$ac_c_werror_flag" ||
6914          test ! -s conftest.err
6915        } && test -s conftest$ac_exeext &&
6916        $as_test_x conftest$ac_exeext; then
6917   am_cv_func_iconv=yes
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922
6923 fi
6924
6925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6926       conftest$ac_exeext conftest.$ac_ext
6927     if test "$am_cv_func_iconv" != yes; then
6928       am_save_LIBS="$LIBS"
6929       LIBS="$LIBS $LIBICONV"
6930       cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 #include <stdlib.h>
6937 #include <iconv.h>
6938 int
6939 main ()
6940 {
6941 iconv_t cd = iconv_open("","");
6942          iconv(cd,NULL,NULL,NULL,NULL);
6943          iconv_close(cd);
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6950 case "(($ac_try" in
6951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952   *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955   (eval "$ac_link") 2>conftest.er1
6956   ac_status=$?
6957   grep -v '^ *+' conftest.er1 >conftest.err
6958   rm -f conftest.er1
6959   cat conftest.err >&5
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } && {
6962          test -z "$ac_c_werror_flag" ||
6963          test ! -s conftest.err
6964        } && test -s conftest$ac_exeext &&
6965        $as_test_x conftest$ac_exeext; then
6966   am_cv_lib_iconv=yes
6967         am_cv_func_iconv=yes
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972
6973 fi
6974
6975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6976       conftest$ac_exeext conftest.$ac_ext
6977       LIBS="$am_save_LIBS"
6978     fi
6979
6980 fi
6981 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6982 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6983   if test "$am_cv_func_iconv" = yes; then
6984
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_ICONV 1
6987 _ACEOF
6988
6989   fi
6990   if test "$am_cv_lib_iconv" = yes; then
6991     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6992 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6993     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6994 echo "${ECHO_T}$LIBICONV" >&6; }
6995   else
6996             CPPFLAGS="$am_save_CPPFLAGS"
6997     LIBICONV=
6998     LTLIBICONV=
6999   fi
7000
7001
7002
7003
7004
7005
7006     use_additional=yes
7007
7008   acl_save_prefix="$prefix"
7009   prefix="$acl_final_prefix"
7010   acl_save_exec_prefix="$exec_prefix"
7011   exec_prefix="$acl_final_exec_prefix"
7012
7013     eval additional_includedir=\"$includedir\"
7014     eval additional_libdir=\"$libdir\"
7015
7016   exec_prefix="$acl_save_exec_prefix"
7017   prefix="$acl_save_prefix"
7018
7019
7020 # Check whether --with-libintl-prefix was given.
7021 if test "${with_libintl_prefix+set}" = set; then
7022   withval=$with_libintl_prefix;
7023     if test "X$withval" = "Xno"; then
7024       use_additional=no
7025     else
7026       if test "X$withval" = "X"; then
7027
7028   acl_save_prefix="$prefix"
7029   prefix="$acl_final_prefix"
7030   acl_save_exec_prefix="$exec_prefix"
7031   exec_prefix="$acl_final_exec_prefix"
7032
7033           eval additional_includedir=\"$includedir\"
7034           eval additional_libdir=\"$libdir\"
7035
7036   exec_prefix="$acl_save_exec_prefix"
7037   prefix="$acl_save_prefix"
7038
7039       else
7040         additional_includedir="$withval/include"
7041         additional_libdir="$withval/lib"
7042       fi
7043     fi
7044
7045 fi
7046
7047       LIBINTL=
7048   LTLIBINTL=
7049   INCINTL=
7050   rpathdirs=
7051   ltrpathdirs=
7052   names_already_handled=
7053   names_next_round='intl '
7054   while test -n "$names_next_round"; do
7055     names_this_round="$names_next_round"
7056     names_next_round=
7057     for name in $names_this_round; do
7058       already_handled=
7059       for n in $names_already_handled; do
7060         if test "$n" = "$name"; then
7061           already_handled=yes
7062           break
7063         fi
7064       done
7065       if test -z "$already_handled"; then
7066         names_already_handled="$names_already_handled $name"
7067                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7068         eval value=\"\$HAVE_LIB$uppername\"
7069         if test -n "$value"; then
7070           if test "$value" = yes; then
7071             eval value=\"\$LIB$uppername\"
7072             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7073             eval value=\"\$LTLIB$uppername\"
7074             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7075           else
7076                                     :
7077           fi
7078         else
7079                               found_dir=
7080           found_la=
7081           found_so=
7082           found_a=
7083           if test $use_additional = yes; then
7084             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7085               found_dir="$additional_libdir"
7086               found_so="$additional_libdir/lib$name.$shlibext"
7087               if test -f "$additional_libdir/lib$name.la"; then
7088                 found_la="$additional_libdir/lib$name.la"
7089               fi
7090             else
7091               if test -f "$additional_libdir/lib$name.$libext"; then
7092                 found_dir="$additional_libdir"
7093                 found_a="$additional_libdir/lib$name.$libext"
7094                 if test -f "$additional_libdir/lib$name.la"; then
7095                   found_la="$additional_libdir/lib$name.la"
7096                 fi
7097               fi
7098             fi
7099           fi
7100           if test "X$found_dir" = "X"; then
7101             for x in $LDFLAGS $LTLIBINTL; do
7102
7103   acl_save_prefix="$prefix"
7104   prefix="$acl_final_prefix"
7105   acl_save_exec_prefix="$exec_prefix"
7106   exec_prefix="$acl_final_exec_prefix"
7107   eval x=\"$x\"
7108   exec_prefix="$acl_save_exec_prefix"
7109   prefix="$acl_save_prefix"
7110
7111               case "$x" in
7112                 -L*)
7113                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7114                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7115                     found_dir="$dir"
7116                     found_so="$dir/lib$name.$shlibext"
7117                     if test -f "$dir/lib$name.la"; then
7118                       found_la="$dir/lib$name.la"
7119                     fi
7120                   else
7121                     if test -f "$dir/lib$name.$libext"; then
7122                       found_dir="$dir"
7123                       found_a="$dir/lib$name.$libext"
7124                       if test -f "$dir/lib$name.la"; then
7125                         found_la="$dir/lib$name.la"
7126                       fi
7127                     fi
7128                   fi
7129                   ;;
7130               esac
7131               if test "X$found_dir" != "X"; then
7132                 break
7133               fi
7134             done
7135           fi
7136           if test "X$found_dir" != "X"; then
7137                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7138             if test "X$found_so" != "X"; then
7139                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7140                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7141               else
7142                                                                                 haveit=
7143                 for x in $ltrpathdirs; 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                   ltrpathdirs="$ltrpathdirs $found_dir"
7151                 fi
7152                                 if test "$hardcode_direct" = yes; then
7153                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7154                 else
7155                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7156                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7157                                                             haveit=
7158                     for x in $rpathdirs; do
7159                       if test "X$x" = "X$found_dir"; then
7160                         haveit=yes
7161                         break
7162                       fi
7163                     done
7164                     if test -z "$haveit"; then
7165                       rpathdirs="$rpathdirs $found_dir"
7166                     fi
7167                   else
7168                                                                                 haveit=
7169                     for x in $LDFLAGS $LIBINTL; do
7170
7171   acl_save_prefix="$prefix"
7172   prefix="$acl_final_prefix"
7173   acl_save_exec_prefix="$exec_prefix"
7174   exec_prefix="$acl_final_exec_prefix"
7175   eval x=\"$x\"
7176   exec_prefix="$acl_save_exec_prefix"
7177   prefix="$acl_save_prefix"
7178
7179                       if test "X$x" = "X-L$found_dir"; then
7180                         haveit=yes
7181                         break
7182                       fi
7183                     done
7184                     if test -z "$haveit"; then
7185                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7186                     fi
7187                     if test "$hardcode_minus_L" != no; then
7188                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7189                     else
7190                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7191                     fi
7192                   fi
7193                 fi
7194               fi
7195             else
7196               if test "X$found_a" != "X"; then
7197                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7198               else
7199                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7200               fi
7201             fi
7202                         additional_includedir=
7203             case "$found_dir" in
7204               */lib | */lib/)
7205                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7206                 additional_includedir="$basedir/include"
7207                 ;;
7208             esac
7209             if test "X$additional_includedir" != "X"; then
7210                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7211                 haveit=
7212                 if test "X$additional_includedir" = "X/usr/local/include"; then
7213                   if test -n "$GCC"; then
7214                     case $host_os in
7215                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7216                     esac
7217                   fi
7218                 fi
7219                 if test -z "$haveit"; then
7220                   for x in $CPPFLAGS $INCINTL; do
7221
7222   acl_save_prefix="$prefix"
7223   prefix="$acl_final_prefix"
7224   acl_save_exec_prefix="$exec_prefix"
7225   exec_prefix="$acl_final_exec_prefix"
7226   eval x=\"$x\"
7227   exec_prefix="$acl_save_exec_prefix"
7228   prefix="$acl_save_prefix"
7229
7230                     if test "X$x" = "X-I$additional_includedir"; then
7231                       haveit=yes
7232                       break
7233                     fi
7234                   done
7235                   if test -z "$haveit"; then
7236                     if test -d "$additional_includedir"; then
7237                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7238                     fi
7239                   fi
7240                 fi
7241               fi
7242             fi
7243                         if test -n "$found_la"; then
7244                                                         save_libdir="$libdir"
7245               case "$found_la" in
7246                 */* | *\\*) . "$found_la" ;;
7247                 *) . "./$found_la" ;;
7248               esac
7249               libdir="$save_libdir"
7250                             for dep in $dependency_libs; do
7251                 case "$dep" in
7252                   -L*)
7253                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7254                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7255                       haveit=
7256                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7257                         if test -n "$GCC"; then
7258                           case $host_os in
7259                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7260                           esac
7261                         fi
7262                       fi
7263                       if test -z "$haveit"; then
7264                         haveit=
7265                         for x in $LDFLAGS $LIBINTL; do
7266
7267   acl_save_prefix="$prefix"
7268   prefix="$acl_final_prefix"
7269   acl_save_exec_prefix="$exec_prefix"
7270   exec_prefix="$acl_final_exec_prefix"
7271   eval x=\"$x\"
7272   exec_prefix="$acl_save_exec_prefix"
7273   prefix="$acl_save_prefix"
7274
7275                           if test "X$x" = "X-L$additional_libdir"; then
7276                             haveit=yes
7277                             break
7278                           fi
7279                         done
7280                         if test -z "$haveit"; then
7281                           if test -d "$additional_libdir"; then
7282                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7283                           fi
7284                         fi
7285                         haveit=
7286                         for x in $LDFLAGS $LTLIBINTL; do
7287
7288   acl_save_prefix="$prefix"
7289   prefix="$acl_final_prefix"
7290   acl_save_exec_prefix="$exec_prefix"
7291   exec_prefix="$acl_final_exec_prefix"
7292   eval x=\"$x\"
7293   exec_prefix="$acl_save_exec_prefix"
7294   prefix="$acl_save_prefix"
7295
7296                           if test "X$x" = "X-L$additional_libdir"; then
7297                             haveit=yes
7298                             break
7299                           fi
7300                         done
7301                         if test -z "$haveit"; then
7302                           if test -d "$additional_libdir"; then
7303                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7304                           fi
7305                         fi
7306                       fi
7307                     fi
7308                     ;;
7309                   -R*)
7310                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7311                     if test "$enable_rpath" != no; then
7312                                                                   haveit=
7313                       for x in $rpathdirs; do
7314                         if test "X$x" = "X$dir"; then
7315                           haveit=yes
7316                           break
7317                         fi
7318                       done
7319                       if test -z "$haveit"; then
7320                         rpathdirs="$rpathdirs $dir"
7321                       fi
7322                                                                   haveit=
7323                       for x in $ltrpathdirs; do
7324                         if test "X$x" = "X$dir"; then
7325                           haveit=yes
7326                           break
7327                         fi
7328                       done
7329                       if test -z "$haveit"; then
7330                         ltrpathdirs="$ltrpathdirs $dir"
7331                       fi
7332                     fi
7333                     ;;
7334                   -l*)
7335                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7336                     ;;
7337                   *.la)
7338                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7339                     ;;
7340                   *)
7341                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7342                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7343                     ;;
7344                 esac
7345               done
7346             fi
7347           else
7348                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7349             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7350           fi
7351         fi
7352       fi
7353     done
7354   done
7355   if test "X$rpathdirs" != "X"; then
7356     if test -n "$hardcode_libdir_separator"; then
7357                         alldirs=
7358       for found_dir in $rpathdirs; do
7359         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7360       done
7361             acl_save_libdir="$libdir"
7362       libdir="$alldirs"
7363       eval flag=\"$hardcode_libdir_flag_spec\"
7364       libdir="$acl_save_libdir"
7365       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7366     else
7367             for found_dir in $rpathdirs; do
7368         acl_save_libdir="$libdir"
7369         libdir="$found_dir"
7370         eval flag=\"$hardcode_libdir_flag_spec\"
7371         libdir="$acl_save_libdir"
7372         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7373       done
7374     fi
7375   fi
7376   if test "X$ltrpathdirs" != "X"; then
7377             for found_dir in $ltrpathdirs; do
7378       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7379     done
7380   fi
7381
7382           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7383 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7384 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   gt_save_CPPFLAGS="$CPPFLAGS"
7388             CPPFLAGS="$CPPFLAGS $INCINTL"
7389             gt_save_LIBS="$LIBS"
7390             LIBS="$LIBS $LIBINTL"
7391                         cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h.  */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h.  */
7397 #include <libintl.h>
7398 extern int _nl_msg_cat_cntr;
7399 extern
7400 #ifdef __cplusplus
7401 "C"
7402 #endif
7403 const char *_nl_expand_alias (const char *);
7404 int
7405 main ()
7406 {
7407 bindtextdomain ("", "");
7408 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7415 case "(($ac_try" in
7416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417   *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420   (eval "$ac_link") 2>conftest.er1
7421   ac_status=$?
7422   grep -v '^ *+' conftest.er1 >conftest.err
7423   rm -f conftest.er1
7424   cat conftest.err >&5
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } && {
7427          test -z "$ac_c_werror_flag" ||
7428          test ! -s conftest.err
7429        } && test -s conftest$ac_exeext &&
7430        $as_test_x conftest$ac_exeext; then
7431   gt_cv_func_gnugettext1_libintl=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         gt_cv_func_gnugettext1_libintl=no
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440       conftest$ac_exeext conftest.$ac_ext
7441                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7442               LIBS="$LIBS $LIBICONV"
7443               cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h.  */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h.  */
7449 #include <libintl.h>
7450 extern int _nl_msg_cat_cntr;
7451 extern
7452 #ifdef __cplusplus
7453 "C"
7454 #endif
7455 const char *_nl_expand_alias (const char *);
7456 int
7457 main ()
7458 {
7459 bindtextdomain ("", "");
7460 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7461   ;
7462   return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7467 case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472   (eval "$ac_link") 2>conftest.er1
7473   ac_status=$?
7474   grep -v '^ *+' conftest.er1 >conftest.err
7475   rm -f conftest.er1
7476   cat conftest.err >&5
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } && {
7479          test -z "$ac_c_werror_flag" ||
7480          test ! -s conftest.err
7481        } && test -s conftest$ac_exeext &&
7482        $as_test_x conftest$ac_exeext; then
7483   LIBINTL="$LIBINTL $LIBICONV"
7484                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7485                 gt_cv_func_gnugettext1_libintl=yes
7486
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7495       conftest$ac_exeext conftest.$ac_ext
7496             fi
7497             CPPFLAGS="$gt_save_CPPFLAGS"
7498             LIBS="$gt_save_LIBS"
7499 fi
7500 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7501 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7502         fi
7503
7504                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7505            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7506                 && test "$PACKAGE" != gettext-runtime \
7507                 && test "$PACKAGE" != gettext-tools; }; then
7508           gt_use_preinstalled_gnugettext=yes
7509         else
7510                     LIBINTL=
7511           LTLIBINTL=
7512           INCINTL=
7513         fi
7514
7515
7516
7517     if test -n "$INTL_MACOSX_LIBS"; then
7518       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7519          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7520                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7521         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7522       fi
7523     fi
7524
7525     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7526        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7527
7528 cat >>confdefs.h <<\_ACEOF
7529 #define ENABLE_NLS 1
7530 _ACEOF
7531
7532     else
7533       USE_NLS=no
7534     fi
7535   fi
7536
7537   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7538 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7539   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7540 echo "${ECHO_T}$USE_NLS" >&6; }
7541   if test "$USE_NLS" = "yes"; then
7542     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7543 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7544     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7545       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7546         gt_source="external libintl"
7547       else
7548         gt_source="libc"
7549       fi
7550     else
7551       gt_source="included intl directory"
7552     fi
7553     { echo "$as_me:$LINENO: result: $gt_source" >&5
7554 echo "${ECHO_T}$gt_source" >&6; }
7555   fi
7556
7557   if test "$USE_NLS" = "yes"; then
7558
7559     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7560       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7561         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7562 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7563         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7564 echo "${ECHO_T}$LIBINTL" >&6; }
7565
7566   for element in $INCINTL; do
7567     haveit=
7568     for x in $CPPFLAGS; do
7569
7570   acl_save_prefix="$prefix"
7571   prefix="$acl_final_prefix"
7572   acl_save_exec_prefix="$exec_prefix"
7573   exec_prefix="$acl_final_exec_prefix"
7574   eval x=\"$x\"
7575   exec_prefix="$acl_save_exec_prefix"
7576   prefix="$acl_save_prefix"
7577
7578       if test "X$x" = "X$element"; then
7579         haveit=yes
7580         break
7581       fi
7582     done
7583     if test -z "$haveit"; then
7584       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7585     fi
7586   done
7587
7588       fi
7589
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_GETTEXT 1
7593 _ACEOF
7594
7595
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_DCGETTEXT 1
7598 _ACEOF
7599
7600     fi
7601
7602         POSUB=po
7603   fi
7604
7605
7606
7607     INTLLIBS="$LIBINTL"
7608
7609
7610
7611
7612
7613
7614 if test x${prefix} = xNONE ; then
7615    if test `eval echo ${datadir}` = NONE/share ; then
7616       datadir=/usr/share
7617    fi
7618 fi
7619
7620 # ------------------------------------------------------------------
7621 #  If the user has not set --prefix, we set our default to nothing.
7622 #  In this case, if the user has not set --sysconfdir, we set it
7623 #  to the package default of /etc/bacula.  If either --prefix or
7624 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7625 # ------------------------------------------------------------------
7626 if test x${prefix} = xNONE ; then
7627     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7628         sysconfdir=/etc/bacula
7629     fi
7630     prefix=
7631 fi
7632 sysconfdir=`eval echo ${sysconfdir}`
7633 datadir=`eval echo ${datadir}`
7634 localedir=`eval echo ${datadir}/locale`
7635 cat >>confdefs.h <<_ACEOF
7636 #define LOCALEDIR "$localedir"
7637 _ACEOF
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define SYSCONFDIR "$sysconfdir"
7641 _ACEOF
7642
7643
7644 # -------------------------------------------------------------------------
7645 #  If the user has not set --exec-prefix, we default to ${prefix}
7646 # -------------------------------------------------------------------------
7647 if test x${exec_prefix} = xNONE ; then
7648     exec_prefix=${prefix}
7649 fi
7650
7651 # ------------------------------------------------------------------
7652 # If the user has not set --sbindir, we set our default as /sbin
7653 # ------------------------------------------------------------------
7654 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7655     sbindir=${exec_prefix}/sbin
7656 fi
7657 sbindir=`eval echo ${sbindir}`
7658
7659
7660 # -------------------------------------------------------------------------
7661 #  If the user has not set --mandir, we default to /usr/share/man
7662 # -------------------------------------------------------------------------
7663 if test x$mandir = x'${prefix}/man' ; then
7664    mandir=/usr/share/man
7665 fi
7666
7667
7668 for ac_prog in msgfmt
7669 do
7670   # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_MSGFMT+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   case $MSGFMT in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697   ;;
7698 esac
7699 fi
7700 MSGFMT=$ac_cv_path_MSGFMT
7701 if test -n "$MSGFMT"; then
7702   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7703 echo "${ECHO_T}$MSGFMT" >&6; }
7704 else
7705   { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709
7710   test -n "$MSGFMT" && break
7711 done
7712 test -n "$MSGFMT" || MSGFMT="no"
7713
7714 if test "$MSGFMT" = "no"
7715 then
7716    echo 'msgfmt program not found, disabling NLS !'
7717    USE_NLS=no
7718    USE_INCLUDED_LIBINTL=no
7719 #else
7720
7721     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7722 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7723 if test "${ac_cv_gnu_library_2+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h.  */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h.  */
7732
7733 #include <features.h>
7734 #ifdef __GNU_LIBRARY__
7735  #if (__GLIBC__ >= 2)
7736   Lucky GNU user
7737  #endif
7738 #endif
7739
7740 _ACEOF
7741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7743   ac_cv_gnu_library_2=yes
7744 else
7745   ac_cv_gnu_library_2=no
7746 fi
7747 rm -f conftest*
7748
7749
7750
7751 fi
7752 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7753 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7754
7755     GLIBC2="$ac_cv_gnu_library_2"
7756
7757
7758
7759         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7760 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7761 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   ac_check_lib_save_LIBS=$LIBS
7765 LIBS="-lcposix  $LIBS"
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772
7773 /* Override any GCC internal prototype to avoid an error.
7774    Use char because int might match the return type of a GCC
7775    builtin and then its argument prototype would still apply.  */
7776 #ifdef __cplusplus
7777 extern "C"
7778 #endif
7779 char strerror ();
7780 int
7781 main ()
7782 {
7783 return strerror ();
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (ac_try="$ac_link"
7790 case "(($ac_try" in
7791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792   *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795   (eval "$ac_link") 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } && {
7802          test -z "$ac_c_werror_flag" ||
7803          test ! -s conftest.err
7804        } && test -s conftest$ac_exeext &&
7805        $as_test_x conftest$ac_exeext; then
7806   ac_cv_lib_cposix_strerror=yes
7807 else
7808   echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811         ac_cv_lib_cposix_strerror=no
7812 fi
7813
7814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7815       conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_check_lib_save_LIBS
7817 fi
7818 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7819 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7820 if test $ac_cv_lib_cposix_strerror = yes; then
7821   LIBS="$LIBS -lcposix"
7822 fi
7823
7824
7825
7826 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7828 if test "${ac_cv_header_stdc+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837 #include <stdlib.h>
7838 #include <stdarg.h>
7839 #include <string.h>
7840 #include <float.h>
7841
7842 int
7843 main ()
7844 {
7845
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7852 case "(($ac_try" in
7853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854   *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857   (eval "$ac_compile") 2>conftest.er1
7858   ac_status=$?
7859   grep -v '^ *+' conftest.er1 >conftest.err
7860   rm -f conftest.er1
7861   cat conftest.err >&5
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } && {
7864          test -z "$ac_c_werror_flag" ||
7865          test ! -s conftest.err
7866        } && test -s conftest.$ac_objext; then
7867   ac_cv_header_stdc=yes
7868 else
7869   echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872         ac_cv_header_stdc=no
7873 fi
7874
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876
7877 if test $ac_cv_header_stdc = yes; then
7878   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7879   cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885 #include <string.h>
7886
7887 _ACEOF
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889   $EGREP "memchr" >/dev/null 2>&1; then
7890   :
7891 else
7892   ac_cv_header_stdc=no
7893 fi
7894 rm -f conftest*
7895
7896 fi
7897
7898 if test $ac_cv_header_stdc = yes; then
7899   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7900   cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906 #include <stdlib.h>
7907
7908 _ACEOF
7909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910   $EGREP "free" >/dev/null 2>&1; then
7911   :
7912 else
7913   ac_cv_header_stdc=no
7914 fi
7915 rm -f conftest*
7916
7917 fi
7918
7919 if test $ac_cv_header_stdc = yes; then
7920   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7921   if test "$cross_compiling" = yes; then
7922   :
7923 else
7924   cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930 #include <ctype.h>
7931 #include <stdlib.h>
7932 #if ((' ' & 0x0FF) == 0x020)
7933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7935 #else
7936 # define ISLOWER(c) \
7937                    (('a' <= (c) && (c) <= 'i') \
7938                      || ('j' <= (c) && (c) <= 'r') \
7939                      || ('s' <= (c) && (c) <= 'z'))
7940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7941 #endif
7942
7943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7944 int
7945 main ()
7946 {
7947   int i;
7948   for (i = 0; i < 256; i++)
7949     if (XOR (islower (i), ISLOWER (i))
7950         || toupper (i) != TOUPPER (i))
7951       return 2;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962   (eval "$ac_link") 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7966   { (case "(($ac_try" in
7967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968   *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971   (eval "$ac_try") 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   :
7976 else
7977   echo "$as_me: program exited with status $ac_status" >&5
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ( exit $ac_status )
7982 ac_cv_header_stdc=no
7983 fi
7984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7985 fi
7986
7987
7988 fi
7989 fi
7990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7992 if test $ac_cv_header_stdc = yes; then
7993
7994 cat >>confdefs.h <<\_ACEOF
7995 #define STDC_HEADERS 1
7996 _ACEOF
7997
7998 fi
7999
8000 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8001 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8002 if test "${ac_cv_c_const+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011
8012 int
8013 main ()
8014 {
8015 /* FIXME: Include the comments suggested by Paul. */
8016 #ifndef __cplusplus
8017   /* Ultrix mips cc rejects this.  */
8018   typedef int charset[2];
8019   const charset cs;
8020   /* SunOS 4.1.1 cc rejects this.  */
8021   char const *const *pcpcc;
8022   char **ppc;
8023   /* NEC SVR4.0.2 mips cc rejects this.  */
8024   struct point {int x, y;};
8025   static struct point const zero = {0,0};
8026   /* AIX XL C 1.02.0.0 rejects this.
8027      It does not let you subtract one const X* pointer from another in
8028      an arm of an if-expression whose if-part is not a constant
8029      expression */
8030   const char *g = "string";
8031   pcpcc = &g + (g ? g-g : 0);
8032   /* HPUX 7.0 cc rejects these. */
8033   ++pcpcc;
8034   ppc = (char**) pcpcc;
8035   pcpcc = (char const *const *) ppc;
8036   { /* SCO 3.2v4 cc rejects this.  */
8037     char *t;
8038     char const *s = 0 ? (char *) 0 : (char const *) 0;
8039
8040     *t++ = 0;
8041     if (s) return 0;
8042   }
8043   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8044     int x[] = {25, 17};
8045     const int *foo = &x[0];
8046     ++foo;
8047   }
8048   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8049     typedef const int *iptr;
8050     iptr p = 0;
8051     ++p;
8052   }
8053   { /* AIX XL C 1.02.0.0 rejects this saying
8054        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8055     struct s { int j; const int *ap[3]; };
8056     struct s *b; b->j = 5;
8057   }
8058   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8059     const int foo = 10;
8060     if (!foo) return 0;
8061   }
8062   return !cs[0] && !zero.x;
8063 #endif
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_compile") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } && {
8083          test -z "$ac_c_werror_flag" ||
8084          test ! -s conftest.err
8085        } && test -s conftest.$ac_objext; then
8086   ac_cv_c_const=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091         ac_cv_c_const=no
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8097 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8098 if test $ac_cv_c_const = no; then
8099
8100 cat >>confdefs.h <<\_ACEOF
8101 #define const
8102 _ACEOF
8103
8104 fi
8105
8106
8107   { echo "$as_me:$LINENO: checking for signed" >&5
8108 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8109 if test "${bh_cv_c_signed+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118
8119 int
8120 main ()
8121 {
8122 signed char x;
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8129 case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_compile") 2>conftest.er1
8135   ac_status=$?
8136   grep -v '^ *+' conftest.er1 >conftest.err
8137   rm -f conftest.er1
8138   cat conftest.err >&5
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } && {
8141          test -z "$ac_c_werror_flag" ||
8142          test ! -s conftest.err
8143        } && test -s conftest.$ac_objext; then
8144   bh_cv_c_signed=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149         bh_cv_c_signed=no
8150 fi
8151
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8155 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8156   if test $bh_cv_c_signed = no; then
8157
8158 cat >>confdefs.h <<\_ACEOF
8159 #define signed
8160 _ACEOF
8161
8162   fi
8163
8164 { echo "$as_me:$LINENO: checking for inline" >&5
8165 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8166 if test "${ac_cv_c_inline+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   ac_cv_c_inline=no
8170 for ac_kw in inline __inline__ __inline; do
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 #ifndef __cplusplus
8178 typedef int foo_t;
8179 static $ac_kw foo_t static_foo () {return 0; }
8180 $ac_kw foo_t foo () {return 0; }
8181 #endif
8182
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191   (eval "$ac_compile") 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } && {
8198          test -z "$ac_c_werror_flag" ||
8199          test ! -s conftest.err
8200        } && test -s conftest.$ac_objext; then
8201   ac_cv_c_inline=$ac_kw
8202 else
8203   echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206
8207 fi
8208
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210   test "$ac_cv_c_inline" != no && break
8211 done
8212
8213 fi
8214 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8215 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8216
8217
8218 case $ac_cv_c_inline in
8219   inline | yes) ;;
8220   *)
8221     case $ac_cv_c_inline in
8222       no) ac_val=;;
8223       *) ac_val=$ac_cv_c_inline;;
8224     esac
8225     cat >>confdefs.h <<_ACEOF
8226 #ifndef __cplusplus
8227 #define inline $ac_val
8228 #endif
8229 _ACEOF
8230     ;;
8231 esac
8232
8233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8244                   inttypes.h stdint.h unistd.h
8245 do
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h.  */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h.  */
8258 $ac_includes_default
8259
8260 #include <$ac_header>
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } && {
8276          test -z "$ac_c_werror_flag" ||
8277          test ! -s conftest.err
8278        } && test -s conftest.$ac_objext; then
8279   eval "$as_ac_Header=yes"
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         eval "$as_ac_Header=no"
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 ac_res=`eval echo '${'$as_ac_Header'}'`
8290                { echo "$as_me:$LINENO: result: $ac_res" >&5
8291 echo "${ECHO_T}$ac_res" >&6; }
8292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8293   cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8295 _ACEOF
8296
8297 fi
8298
8299 done
8300
8301
8302 { echo "$as_me:$LINENO: checking for off_t" >&5
8303 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8304 if test "${ac_cv_type_off_t+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313 $ac_includes_default
8314 typedef off_t ac__type_new_;
8315 int
8316 main ()
8317 {
8318 if ((ac__type_new_ *) 0)
8319   return 0;
8320 if (sizeof (ac__type_new_))
8321   return 0;
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_compile") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } && {
8340          test -z "$ac_c_werror_flag" ||
8341          test ! -s conftest.err
8342        } && test -s conftest.$ac_objext; then
8343   ac_cv_type_off_t=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348         ac_cv_type_off_t=no
8349 fi
8350
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8354 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8355 if test $ac_cv_type_off_t = yes; then
8356   :
8357 else
8358
8359 cat >>confdefs.h <<_ACEOF
8360 #define off_t long int
8361 _ACEOF
8362
8363 fi
8364
8365 { echo "$as_me:$LINENO: checking for size_t" >&5
8366 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8367 if test "${ac_cv_type_size_t+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376 $ac_includes_default
8377 typedef size_t ac__type_new_;
8378 int
8379 main ()
8380 {
8381 if ((ac__type_new_ *) 0)
8382   return 0;
8383 if (sizeof (ac__type_new_))
8384   return 0;
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_compile") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } && {
8403          test -z "$ac_c_werror_flag" ||
8404          test ! -s conftest.err
8405        } && test -s conftest.$ac_objext; then
8406   ac_cv_type_size_t=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411         ac_cv_type_size_t=no
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 fi
8416 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8417 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8418 if test $ac_cv_type_size_t = yes; then
8419   :
8420 else
8421
8422 cat >>confdefs.h <<_ACEOF
8423 #define size_t unsigned int
8424 _ACEOF
8425
8426 fi
8427
8428
8429   { echo "$as_me:$LINENO: checking for long long" >&5
8430 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8431 if test "${ac_cv_type_long_long+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440 long long ll = 1LL; int i = 63;
8441 int
8442 main ()
8443 {
8444 long long llmax = (long long) -1;
8445      return ll << i | ll >> i | llmax / ll | llmax % ll;
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8452 case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_link") 2>conftest.er1
8458   ac_status=$?
8459   grep -v '^ *+' conftest.er1 >conftest.err
8460   rm -f conftest.er1
8461   cat conftest.err >&5
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } && {
8464          test -z "$ac_c_werror_flag" ||
8465          test ! -s conftest.err
8466        } && test -s conftest$ac_exeext &&
8467        $as_test_x conftest$ac_exeext; then
8468   ac_cv_type_long_long=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473         ac_cv_type_long_long=no
8474 fi
8475
8476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477       conftest$ac_exeext conftest.$ac_ext
8478 fi
8479 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8480 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8481   if test $ac_cv_type_long_long = yes; then
8482
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_LONG_LONG 1
8485 _ACEOF
8486
8487   fi
8488
8489
8490   { echo "$as_me:$LINENO: checking for long double" >&5
8491 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8492 if test "${gt_cv_c_long_double+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   if test "$GCC" = yes; then
8496        gt_cv_c_long_double=yes
8497      else
8498        cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8506          long double foo = 0.0;
8507          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8508          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8509
8510 int
8511 main ()
8512 {
8513
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522   *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525   (eval "$ac_compile") 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } && {
8532          test -z "$ac_c_werror_flag" ||
8533          test ! -s conftest.err
8534        } && test -s conftest.$ac_objext; then
8535   gt_cv_c_long_double=yes
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540         gt_cv_c_long_double=no
8541 fi
8542
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544      fi
8545 fi
8546 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8547 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8548   if test $gt_cv_c_long_double = yes; then
8549
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_LONG_DOUBLE 1
8552 _ACEOF
8553
8554   fi
8555
8556
8557   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8558 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8559 if test "${gt_cv_c_wchar_t+set}" = set; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562   cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568 #include <stddef.h>
8569        wchar_t foo = (wchar_t)'\0';
8570 int
8571 main ()
8572 {
8573
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_compile") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } && {
8592          test -z "$ac_c_werror_flag" ||
8593          test ! -s conftest.err
8594        } && test -s conftest.$ac_objext; then
8595   gt_cv_c_wchar_t=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600         gt_cv_c_wchar_t=no
8601 fi
8602
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 fi
8605 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8606 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8607   if test $gt_cv_c_wchar_t = yes; then
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_WCHAR_T 1
8611 _ACEOF
8612
8613   fi
8614
8615
8616   { echo "$as_me:$LINENO: checking for wint_t" >&5
8617 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8618 if test "${gt_cv_c_wint_t+set}" = set; then
8619   echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621   cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627 #include <wchar.h>
8628        wint_t foo = (wchar_t)'\0';
8629 int
8630 main ()
8631 {
8632
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_compile") 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } && {
8651          test -z "$ac_c_werror_flag" ||
8652          test ! -s conftest.err
8653        } && test -s conftest.$ac_objext; then
8654   gt_cv_c_wint_t=yes
8655 else
8656   echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659         gt_cv_c_wint_t=no
8660 fi
8661
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8665 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8666   if test $gt_cv_c_wint_t = yes; then
8667
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_WINT_T 1
8670 _ACEOF
8671
8672   fi
8673
8674
8675   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8676 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8677 if test "${gl_cv_header_inttypes_h+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686 #include <sys/types.h>
8687 #include <inttypes.h>
8688 int
8689 main ()
8690 {
8691 uintmax_t i = (uintmax_t) -1;
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700   *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703   (eval "$ac_compile") 2>conftest.er1
8704   ac_status=$?
8705   grep -v '^ *+' conftest.er1 >conftest.err
8706   rm -f conftest.er1
8707   cat conftest.err >&5
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); } && {
8710          test -z "$ac_c_werror_flag" ||
8711          test ! -s conftest.err
8712        } && test -s conftest.$ac_objext; then
8713   gl_cv_header_inttypes_h=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718         gl_cv_header_inttypes_h=no
8719 fi
8720
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8724 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8725   if test $gl_cv_header_inttypes_h = yes; then
8726
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8729 _ACEOF
8730
8731   fi
8732
8733
8734   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8735 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8736 if test "${gl_cv_header_stdint_h+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h.  */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h.  */
8745 #include <sys/types.h>
8746 #include <stdint.h>
8747 int
8748 main ()
8749 {
8750 uintmax_t i = (uintmax_t) -1;
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8757 case "(($ac_try" in
8758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759   *) ac_try_echo=$ac_try;;
8760 esac
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762   (eval "$ac_compile") 2>conftest.er1
8763   ac_status=$?
8764   grep -v '^ *+' conftest.er1 >conftest.err
8765   rm -f conftest.er1
8766   cat conftest.err >&5
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } && {
8769          test -z "$ac_c_werror_flag" ||
8770          test ! -s conftest.err
8771        } && test -s conftest.$ac_objext; then
8772   gl_cv_header_stdint_h=yes
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777         gl_cv_header_stdint_h=no
8778 fi
8779
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8783 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8784   if test $gl_cv_header_stdint_h = yes; then
8785
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_STDINT_H_WITH_UINTMAX 1
8788 _ACEOF
8789
8790   fi
8791
8792
8793
8794
8795   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8796 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8797 if test "${gt_cv_c_intmax_t+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806
8807 #include <stddef.h>
8808 #include <stdlib.h>
8809 #if HAVE_STDINT_H_WITH_UINTMAX
8810 #include <stdint.h>
8811 #endif
8812 #if HAVE_INTTYPES_H_WITH_UINTMAX
8813 #include <inttypes.h>
8814 #endif
8815
8816 int
8817 main ()
8818 {
8819 intmax_t x = -1;
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8826 case "(($ac_try" in
8827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828   *) ac_try_echo=$ac_try;;
8829 esac
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831   (eval "$ac_compile") 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } && {
8838          test -z "$ac_c_werror_flag" ||
8839          test ! -s conftest.err
8840        } && test -s conftest.$ac_objext; then
8841   gt_cv_c_intmax_t=yes
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846         gt_cv_c_intmax_t=no
8847 fi
8848
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8852 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8853   if test $gt_cv_c_intmax_t = yes; then
8854
8855 cat >>confdefs.h <<\_ACEOF
8856 #define HAVE_INTMAX_T 1
8857 _ACEOF
8858
8859   fi
8860
8861
8862
8863   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8864 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8865 if test "${gt_cv_func_printf_posix+set}" = set; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868
8869       if test "$cross_compiling" = yes; then
8870
8871         cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h.  */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h.  */
8877
8878 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8879   notposix
8880 #endif
8881
8882 _ACEOF
8883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8884   $EGREP "notposix" >/dev/null 2>&1; then
8885   gt_cv_func_printf_posix="guessing no"
8886 else
8887   gt_cv_func_printf_posix="guessing yes"
8888 fi
8889 rm -f conftest*
8890
8891
8892 else
8893   cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899
8900 #include <stdio.h>
8901 #include <string.h>
8902 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8903    dollar expansion (possibly an autoconf bug).  */
8904 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8905 static char buf[100];
8906 int main ()
8907 {
8908   sprintf (buf, format, 33, 55);
8909   return (strcmp (buf, "55 33") != 0);
8910 }
8911 _ACEOF
8912 rm -f conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_link") 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8923   { (case "(($ac_try" in
8924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925   *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928   (eval "$ac_try") 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   gt_cv_func_printf_posix=yes
8933 else
8934   echo "$as_me: program exited with status $ac_status" >&5
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ( exit $ac_status )
8939 gt_cv_func_printf_posix=no
8940 fi
8941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8942 fi
8943
8944
8945
8946 fi
8947 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8948 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8949   case $gt_cv_func_printf_posix in
8950     *yes)
8951
8952 cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_POSIX_PRINTF 1
8954 _ACEOF
8955
8956       ;;
8957   esac
8958
8959 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8960 # for constant arguments.  Useless!
8961 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8962 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8963 if test "${ac_cv_working_alloca_h+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972 #include <alloca.h>
8973 int
8974 main ()
8975 {
8976 char *p = (char *) alloca (2 * sizeof (int));
8977                           if (p) return 0;
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (ac_try="$ac_link"
8984 case "(($ac_try" in
8985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986   *) ac_try_echo=$ac_try;;
8987 esac
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989   (eval "$ac_link") 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } && {
8996          test -z "$ac_c_werror_flag" ||
8997          test ! -s conftest.err
8998        } && test -s conftest$ac_exeext &&
8999        $as_test_x conftest$ac_exeext; then
9000   ac_cv_working_alloca_h=yes
9001 else
9002   echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005         ac_cv_working_alloca_h=no
9006 fi
9007
9008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9009       conftest$ac_exeext conftest.$ac_ext
9010 fi
9011 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9012 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9013 if test $ac_cv_working_alloca_h = yes; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_ALLOCA_H 1
9017 _ACEOF
9018
9019 fi
9020
9021 { echo "$as_me:$LINENO: checking for alloca" >&5
9022 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9023 if test "${ac_cv_func_alloca_works+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032 #ifdef __GNUC__
9033 # define alloca __builtin_alloca
9034 #else
9035 # ifdef _MSC_VER
9036 #  include <malloc.h>
9037 #  define alloca _alloca
9038 # else
9039 #  ifdef HAVE_ALLOCA_H
9040 #   include <alloca.h>
9041 #  else
9042 #   ifdef _AIX
9043  #pragma alloca
9044 #   else
9045 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9046 char *alloca ();
9047 #    endif
9048 #   endif
9049 #  endif
9050 # endif
9051 #endif
9052
9053 int
9054 main ()
9055 {
9056 char *p = (char *) alloca (1);
9057                                     if (p) return 0;
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_link") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } && {
9076          test -z "$ac_c_werror_flag" ||
9077          test ! -s conftest.err
9078        } && test -s conftest$ac_exeext &&
9079        $as_test_x conftest$ac_exeext; then
9080   ac_cv_func_alloca_works=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085         ac_cv_func_alloca_works=no
9086 fi
9087
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089       conftest$ac_exeext conftest.$ac_ext
9090 fi
9091 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9092 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9093
9094 if test $ac_cv_func_alloca_works = yes; then
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_ALLOCA 1
9098 _ACEOF
9099
9100 else
9101   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9102 # that cause trouble.  Some versions do not even contain alloca or
9103 # contain a buggy version.  If you still want to use their alloca,
9104 # use ar to extract alloca.o from them instead of compiling alloca.c.
9105
9106 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9107
9108 cat >>confdefs.h <<\_ACEOF
9109 #define C_ALLOCA 1
9110 _ACEOF
9111
9112
9113 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9114 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9115 if test "${ac_cv_os_cray+set}" = set; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 #if defined CRAY && ! defined CRAY2
9125 webecray
9126 #else
9127 wenotbecray
9128 #endif
9129
9130 _ACEOF
9131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9132   $EGREP "webecray" >/dev/null 2>&1; then
9133   ac_cv_os_cray=yes
9134 else
9135   ac_cv_os_cray=no
9136 fi
9137 rm -f conftest*
9138
9139 fi
9140 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9141 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9142 if test $ac_cv_os_cray = yes; then
9143   for ac_func in _getb67 GETB67 getb67; do
9144     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9158 #define $ac_func innocuous_$ac_func
9159
9160 /* System header to define __stub macros and hopefully few prototypes,
9161     which can conflict with char $ac_func (); below.
9162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9163     <limits.h> exists even on freestanding compilers.  */
9164
9165 #ifdef __STDC__
9166 # include <limits.h>
9167 #else
9168 # include <assert.h>
9169 #endif
9170
9171 #undef $ac_func
9172
9173 /* Override any GCC internal prototype to avoid an error.
9174    Use char because int might match the return type of a GCC
9175    builtin and then its argument prototype would still apply.  */
9176 #ifdef __cplusplus
9177 extern "C"
9178 #endif
9179 char $ac_func ();
9180 /* The GNU C library defines this for functions which it implements
9181     to always fail with ENOSYS.  Some functions are actually named
9182     something starting with __ and the normal name is an alias.  */
9183 #if defined __stub_$ac_func || defined __stub___$ac_func
9184 choke me
9185 #endif
9186
9187 int
9188 main ()
9189 {
9190 return $ac_func ();
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9197 case "(($ac_try" in
9198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199   *) ac_try_echo=$ac_try;;
9200 esac
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202   (eval "$ac_link") 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } && {
9209          test -z "$ac_c_werror_flag" ||
9210          test ! -s conftest.err
9211        } && test -s conftest$ac_exeext &&
9212        $as_test_x conftest$ac_exeext; then
9213   eval "$as_ac_var=yes"
9214 else
9215   echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9217
9218         eval "$as_ac_var=no"
9219 fi
9220
9221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9222       conftest$ac_exeext conftest.$ac_ext
9223 fi
9224 ac_res=`eval echo '${'$as_ac_var'}'`
9225                { echo "$as_me:$LINENO: result: $ac_res" >&5
9226 echo "${ECHO_T}$ac_res" >&6; }
9227 if test `eval echo '${'$as_ac_var'}'` = yes; then
9228
9229 cat >>confdefs.h <<_ACEOF
9230 #define CRAY_STACKSEG_END $ac_func
9231 _ACEOF
9232
9233     break
9234 fi
9235
9236   done
9237 fi
9238
9239 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9241 if test "${ac_cv_c_stack_direction+set}" = set; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244   if test "$cross_compiling" = yes; then
9245   ac_cv_c_stack_direction=0
9246 else
9247   cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253 $ac_includes_default
9254 int
9255 find_stack_direction ()
9256 {
9257   static char *addr = 0;
9258   auto char dummy;
9259   if (addr == 0)
9260     {
9261       addr = &dummy;
9262       return find_stack_direction ();
9263     }
9264   else
9265     return (&dummy > addr) ? 1 : -1;
9266 }
9267
9268 int
9269 main ()
9270 {
9271   return find_stack_direction () < 0;
9272 }
9273 _ACEOF
9274 rm -f conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9276 case "(($ac_try" in
9277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278   *) ac_try_echo=$ac_try;;
9279 esac
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281   (eval "$ac_link") 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9285   { (case "(($ac_try" in
9286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287   *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290   (eval "$ac_try") 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; }; then
9294   ac_cv_c_stack_direction=1
9295 else
9296   echo "$as_me: program exited with status $ac_status" >&5
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ( exit $ac_status )
9301 ac_cv_c_stack_direction=-1
9302 fi
9303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9304 fi
9305
9306
9307 fi
9308 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9309 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9310
9311 cat >>confdefs.h <<_ACEOF
9312 #define STACK_DIRECTION $ac_cv_c_stack_direction
9313 _ACEOF
9314
9315
9316 fi
9317
9318
9319
9320 for ac_header in stdlib.h unistd.h
9321 do
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 fi
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330                { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9332 else
9333   # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h.  */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h.  */
9342 $ac_includes_default
9343 #include <$ac_header>
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9347 case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_compile") 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } && {
9359          test -z "$ac_c_werror_flag" ||
9360          test ! -s conftest.err
9361        } && test -s conftest.$ac_objext; then
9362   ac_header_compiler=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         ac_header_compiler=no
9368 fi
9369
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9373
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <$ac_header>
9384 _ACEOF
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } >/dev/null && {
9398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399          test ! -s conftest.err
9400        }; then
9401   ac_header_preproc=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406   ac_header_preproc=no
9407 fi
9408
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9412
9413 # So?  What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415   yes:no: )
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420     ac_header_preproc=yes
9421     ;;
9422   no:yes:* )
9423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9435
9436     ;;
9437 esac
9438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   eval "$as_ac_Header=\$ac_header_preproc"
9444 fi
9445 ac_res=`eval echo '${'$as_ac_Header'}'`
9446                { echo "$as_me:$LINENO: result: $ac_res" >&5
9447 echo "${ECHO_T}$ac_res" >&6; }
9448
9449 fi
9450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9451   cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9453 _ACEOF
9454
9455 fi
9456
9457 done
9458
9459
9460 for ac_func in getpagesize
9461 do
9462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9476 #define $ac_func innocuous_$ac_func
9477
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char $ac_func (); below.
9480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481     <limits.h> exists even on freestanding compilers.  */
9482
9483 #ifdef __STDC__
9484 # include <limits.h>
9485 #else
9486 # include <assert.h>
9487 #endif
9488
9489 #undef $ac_func
9490
9491 /* Override any GCC internal prototype to avoid an error.
9492    Use char because int might match the return type of a GCC
9493    builtin and then its argument prototype would still apply.  */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char $ac_func ();
9498 /* The GNU C library defines this for functions which it implements
9499     to always fail with ENOSYS.  Some functions are actually named
9500     something starting with __ and the normal name is an alias.  */
9501 #if defined __stub_$ac_func || defined __stub___$ac_func
9502 choke me
9503 #endif
9504
9505 int
9506 main ()
9507 {
9508 return $ac_func ();
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (ac_try="$ac_link"
9515 case "(($ac_try" in
9516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517   *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520   (eval "$ac_link") 2>conftest.er1
9521   ac_status=$?
9522   grep -v '^ *+' conftest.er1 >conftest.err
9523   rm -f conftest.er1
9524   cat conftest.err >&5
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); } && {
9527          test -z "$ac_c_werror_flag" ||
9528          test ! -s conftest.err
9529        } && test -s conftest$ac_exeext &&
9530        $as_test_x conftest$ac_exeext; then
9531   eval "$as_ac_var=yes"
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536         eval "$as_ac_var=no"
9537 fi
9538
9539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9540       conftest$ac_exeext conftest.$ac_ext
9541 fi
9542 ac_res=`eval echo '${'$as_ac_var'}'`
9543                { echo "$as_me:$LINENO: result: $ac_res" >&5
9544 echo "${ECHO_T}$ac_res" >&6; }
9545 if test `eval echo '${'$as_ac_var'}'` = yes; then
9546   cat >>confdefs.h <<_ACEOF
9547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9548 _ACEOF
9549
9550 fi
9551 done
9552
9553 { echo "$as_me:$LINENO: checking for working mmap" >&5
9554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9556   echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558   if test "$cross_compiling" = yes; then
9559   ac_cv_func_mmap_fixed_mapped=no
9560 else
9561   cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h.  */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h.  */
9567 $ac_includes_default
9568 /* malloc might have been renamed as rpl_malloc. */
9569 #undef malloc
9570
9571 /* Thanks to Mike Haertel and Jim Avera for this test.
9572    Here is a matrix of mmap possibilities:
9573         mmap private not fixed
9574         mmap private fixed at somewhere currently unmapped
9575         mmap private fixed at somewhere already mapped
9576         mmap shared not fixed
9577         mmap shared fixed at somewhere currently unmapped
9578         mmap shared fixed at somewhere already mapped
9579    For private mappings, we should verify that changes cannot be read()
9580    back from the file, nor mmap's back from the file at a different
9581    address.  (There have been systems where private was not correctly
9582    implemented like the infamous i386 svr4.0, and systems where the
9583    VM page cache was not coherent with the file system buffer cache
9584    like early versions of FreeBSD and possibly contemporary NetBSD.)
9585    For shared mappings, we should conversely verify that changes get
9586    propagated back to all the places they're supposed to be.
9587
9588    Grep wants private fixed already mapped.
9589    The main things grep needs to know about mmap are:
9590    * does it exist and is it safe to write into the mmap'd area
9591    * how to use it (BSD variants)  */
9592
9593 #include <fcntl.h>
9594 #include <sys/mman.h>
9595
9596 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9597 char *malloc ();
9598 #endif
9599
9600 /* This mess was copied from the GNU getpagesize.h.  */
9601 #ifndef HAVE_GETPAGESIZE
9602 /* Assume that all systems that can run configure have sys/param.h.  */
9603 # ifndef HAVE_SYS_PARAM_H
9604 #  define HAVE_SYS_PARAM_H 1
9605 # endif
9606
9607 # ifdef _SC_PAGESIZE
9608 #  define getpagesize() sysconf(_SC_PAGESIZE)
9609 # else /* no _SC_PAGESIZE */
9610 #  ifdef HAVE_SYS_PARAM_H
9611 #   include <sys/param.h>
9612 #   ifdef EXEC_PAGESIZE
9613 #    define getpagesize() EXEC_PAGESIZE
9614 #   else /* no EXEC_PAGESIZE */
9615 #    ifdef NBPG
9616 #     define getpagesize() NBPG * CLSIZE
9617 #     ifndef CLSIZE
9618 #      define CLSIZE 1
9619 #     endif /* no CLSIZE */
9620 #    else /* no NBPG */
9621 #     ifdef NBPC
9622 #      define getpagesize() NBPC
9623 #     else /* no NBPC */
9624 #      ifdef PAGESIZE
9625 #       define getpagesize() PAGESIZE
9626 #      endif /* PAGESIZE */
9627 #     endif /* no NBPC */
9628 #    endif /* no NBPG */
9629 #   endif /* no EXEC_PAGESIZE */
9630 #  else /* no HAVE_SYS_PARAM_H */
9631 #   define getpagesize() 8192   /* punt totally */
9632 #  endif /* no HAVE_SYS_PARAM_H */
9633 # endif /* no _SC_PAGESIZE */
9634
9635 #endif /* no HAVE_GETPAGESIZE */
9636
9637 int
9638 main ()
9639 {
9640   char *data, *data2, *data3;
9641   int i, pagesize;
9642   int fd;
9643
9644   pagesize = getpagesize ();
9645
9646   /* First, make a file with some known garbage in it. */
9647   data = (char *) malloc (pagesize);
9648   if (!data)
9649     return 1;
9650   for (i = 0; i < pagesize; ++i)
9651     *(data + i) = rand ();
9652   umask (0);
9653   fd = creat ("conftest.mmap", 0600);
9654   if (fd < 0)
9655     return 1;
9656   if (write (fd, data, pagesize) != pagesize)
9657     return 1;
9658   close (fd);
9659
9660   /* Next, try to mmap the file at a fixed address which already has
9661      something else allocated at it.  If we can, also make sure that
9662      we see the same garbage.  */
9663   fd = open ("conftest.mmap", O_RDWR);
9664   if (fd < 0)
9665     return 1;
9666   data2 = (char *) malloc (2 * pagesize);
9667   if (!data2)
9668     return 1;
9669   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9670   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9671                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9672     return 1;
9673   for (i = 0; i < pagesize; ++i)
9674     if (*(data + i) != *(data2 + i))
9675       return 1;
9676
9677   /* Finally, make sure that changes to the mapped area do not
9678      percolate back to the file as seen by read().  (This is a bug on
9679      some variants of i386 svr4.0.)  */
9680   for (i = 0; i < pagesize; ++i)
9681     *(data2 + i) = *(data2 + i) + 1;
9682   data3 = (char *) malloc (pagesize);
9683   if (!data3)
9684     return 1;
9685   if (read (fd, data3, pagesize) != pagesize)
9686     return 1;
9687   for (i = 0; i < pagesize; ++i)
9688     if (*(data + i) != *(data3 + i))
9689       return 1;
9690   close (fd);
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9696 case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_link") 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9705   { (case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710   (eval "$ac_try") 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_func_mmap_fixed_mapped=yes
9715 else
9716   echo "$as_me: program exited with status $ac_status" >&5
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 ( exit $ac_status )
9721 ac_cv_func_mmap_fixed_mapped=no
9722 fi
9723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9724 fi
9725
9726
9727 fi
9728 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9729 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9730 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9731
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_MMAP 1
9734 _ACEOF
9735
9736 fi
9737 rm -f conftest.mmap
9738
9739
9740     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9741 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9742 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 #include <features.h>
9753 #ifdef __GNU_LIBRARY__
9754  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9755   Lucky GNU user
9756  #endif
9757 #endif
9758
9759 _ACEOF
9760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9761   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9762   ac_cv_gnu_library_2_1=yes
9763 else
9764   ac_cv_gnu_library_2_1=no
9765 fi
9766 rm -f conftest*
9767
9768
9769
9770 fi
9771 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9772 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9773
9774     GLIBC21="$ac_cv_gnu_library_2_1"
9775
9776
9777
9778
9779   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9780 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9781 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784
9785       if test "$cross_compiling" = yes; then
9786
9787           # Guess based on the CPU.
9788           case "$host_cpu" in
9789             alpha* | i3456786 | m68k | s390*)
9790               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9791             *)
9792               gt_cv_int_divbyzero_sigfpe="guessing no";;
9793           esac
9794
9795 else
9796   cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 #include <stdlib.h>
9804 #include <signal.h>
9805
9806 static void
9807 #ifdef __cplusplus
9808 sigfpe_handler (int sig)
9809 #else
9810 sigfpe_handler (sig) int sig;
9811 #endif
9812 {
9813   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9814   exit (sig != SIGFPE);
9815 }
9816
9817 int x = 1;
9818 int y = 0;
9819 int z;
9820 int nan;
9821
9822 int main ()
9823 {
9824   signal (SIGFPE, sigfpe_handler);
9825 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9826 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9827   signal (SIGTRAP, sigfpe_handler);
9828 #endif
9829 /* Linux/SPARC yields signal SIGILL.  */
9830 #if defined (__sparc__) && defined (__linux__)
9831   signal (SIGILL, sigfpe_handler);
9832 #endif
9833
9834   z = x / y;
9835   nan = y / y;
9836   exit (1);
9837 }
9838
9839 _ACEOF
9840 rm -f conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9842 case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_link") 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9851   { (case "(($ac_try" in
9852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853   *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856   (eval "$ac_try") 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860   gt_cv_int_divbyzero_sigfpe=yes
9861 else
9862   echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ( exit $ac_status )
9867 gt_cv_int_divbyzero_sigfpe=no
9868 fi
9869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9870 fi
9871
9872
9873
9874 fi
9875 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9876 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9877   case "$gt_cv_int_divbyzero_sigfpe" in
9878     *yes) value=1;;
9879     *) value=0;;
9880   esac
9881
9882 cat >>confdefs.h <<_ACEOF
9883 #define INTDIV0_RAISES_SIGFPE $value
9884 _ACEOF
9885
9886
9887
9888   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9889 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9890 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899 unsigned long long ull = 1ULL; int i = 63;
9900 int
9901 main ()
9902 {
9903 unsigned long long ullmax = (unsigned long long) -1;
9904      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (ac_try="$ac_link"
9911 case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_link") 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } && {
9923          test -z "$ac_c_werror_flag" ||
9924          test ! -s conftest.err
9925        } && test -s conftest$ac_exeext &&
9926        $as_test_x conftest$ac_exeext; then
9927   ac_cv_type_unsigned_long_long=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932         ac_cv_type_unsigned_long_long=no
9933 fi
9934
9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9936       conftest$ac_exeext conftest.$ac_ext
9937 fi
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9939 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9940   if test $ac_cv_type_unsigned_long_long = yes; then
9941
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_UNSIGNED_LONG_LONG 1
9944 _ACEOF
9945
9946   fi
9947
9948
9949
9950
9951   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9952
9953     test $ac_cv_type_unsigned_long_long = yes \
9954       && ac_type='unsigned long long' \
9955       || ac_type='unsigned long'
9956
9957 cat >>confdefs.h <<_ACEOF
9958 #define uintmax_t $ac_type
9959 _ACEOF
9960
9961   else
9962
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_UINTMAX_T 1
9965 _ACEOF
9966
9967   fi
9968
9969
9970   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9971 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9972 if test "${gt_cv_header_inttypes_h+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975
9976     cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982 #include <sys/types.h>
9983 #include <inttypes.h>
9984 int
9985 main ()
9986 {
9987
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9994 case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_compile") 2>conftest.er1
10000   ac_status=$?
10001   grep -v '^ *+' conftest.er1 >conftest.err
10002   rm -f conftest.er1
10003   cat conftest.err >&5
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } && {
10006          test -z "$ac_c_werror_flag" ||
10007          test ! -s conftest.err
10008        } && test -s conftest.$ac_objext; then
10009   gt_cv_header_inttypes_h=yes
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014         gt_cv_header_inttypes_h=no
10015 fi
10016
10017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018
10019 fi
10020 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10021 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10022   if test $gt_cv_header_inttypes_h = yes; then
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_INTTYPES_H 1
10026 _ACEOF
10027
10028   fi
10029
10030
10031
10032   if test $gt_cv_header_inttypes_h = yes; then
10033     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10034 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10035 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038
10039         cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 #include <inttypes.h>
10046 #ifdef PRId32
10047 char *p = PRId32;
10048 #endif
10049
10050 int
10051 main ()
10052 {
10053
10054   ;
10055   return 0;
10056 }
10057 _ACEOF
10058 rm -f conftest.$ac_objext
10059 if { (ac_try="$ac_compile"
10060 case "(($ac_try" in
10061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062   *) ac_try_echo=$ac_try;;
10063 esac
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065   (eval "$ac_compile") 2>conftest.er1
10066   ac_status=$?
10067   grep -v '^ *+' conftest.er1 >conftest.err
10068   rm -f conftest.er1
10069   cat conftest.err >&5
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } && {
10072          test -z "$ac_c_werror_flag" ||
10073          test ! -s conftest.err
10074        } && test -s conftest.$ac_objext; then
10075   gt_cv_inttypes_pri_broken=no
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080         gt_cv_inttypes_pri_broken=yes
10081 fi
10082
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084
10085 fi
10086 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10087 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10088   fi
10089   if test "$gt_cv_inttypes_pri_broken" = yes; then
10090
10091 cat >>confdefs.h <<_ACEOF
10092 #define PRI_MACROS_BROKEN 1
10093 _ACEOF
10094
10095   fi
10096
10097
10098
10099 for ac_header in stdint.h
10100 do
10101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 fi
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109                { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10111 else
10112   # Is the header compilable?
10113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121 $ac_includes_default
10122 #include <$ac_header>
10123 _ACEOF
10124 rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128   *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131   (eval "$ac_compile") 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } && {
10138          test -z "$ac_c_werror_flag" ||
10139          test ! -s conftest.err
10140        } && test -s conftest.$ac_objext; then
10141   ac_header_compiler=yes
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146         ac_header_compiler=no
10147 fi
10148
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10151 echo "${ECHO_T}$ac_header_compiler" >&6; }
10152
10153 # Is the header present?
10154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162 #include <$ac_header>
10163 _ACEOF
10164 if { (ac_try="$ac_cpp conftest.$ac_ext"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } >/dev/null && {
10177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10178          test ! -s conftest.err
10179        }; then
10180   ac_header_preproc=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185   ac_header_preproc=no
10186 fi
10187
10188 rm -f conftest.err conftest.$ac_ext
10189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6; }
10191
10192 # So?  What about this header?
10193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10194   yes:no: )
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199     ac_header_preproc=yes
10200     ;;
10201   no:yes:* )
10202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10214
10215     ;;
10216 esac
10217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   eval "$as_ac_Header=\$ac_header_preproc"
10223 fi
10224 ac_res=`eval echo '${'$as_ac_Header'}'`
10225                { echo "$as_me:$LINENO: result: $ac_res" >&5
10226 echo "${ECHO_T}$ac_res" >&6; }
10227
10228 fi
10229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10230   cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10232 _ACEOF
10233
10234 fi
10235
10236 done
10237
10238     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10239 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10240   result=
10241   cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h.  */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h.  */
10247
10248 #include <limits.h>
10249 #if HAVE_STDINT_H
10250 #include <stdint.h>
10251 #endif
10252 #ifdef SIZE_MAX
10253 Found it
10254 #endif
10255
10256 _ACEOF
10257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10258   $EGREP "Found it" >/dev/null 2>&1; then
10259   result=yes
10260 fi
10261 rm -f conftest*
10262
10263   if test -z "$result"; then
10264                     if test "$cross_compiling" = yes; then
10265   # Depending upon the size, compute the lo and hi bounds.
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272 #include <stddef.h>
10273 int
10274 main ()
10275 {
10276 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10277 test_array [0] = 0
10278
10279   ;
10280   return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290   (eval "$ac_compile") 2>conftest.er1
10291   ac_status=$?
10292   grep -v '^ *+' conftest.er1 >conftest.err
10293   rm -f conftest.er1
10294   cat conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } && {
10297          test -z "$ac_c_werror_flag" ||
10298          test ! -s conftest.err
10299        } && test -s conftest.$ac_objext; then
10300   ac_lo=0 ac_mid=0
10301   while :; do
10302     cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 #include <stddef.h>
10309 int
10310 main ()
10311 {
10312 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10313 test_array [0] = 0
10314
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323   *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326   (eval "$ac_compile") 2>conftest.er1
10327   ac_status=$?
10328   grep -v '^ *+' conftest.er1 >conftest.err
10329   rm -f conftest.er1
10330   cat conftest.err >&5
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } && {
10333          test -z "$ac_c_werror_flag" ||
10334          test ! -s conftest.err
10335        } && test -s conftest.$ac_objext; then
10336   ac_hi=$ac_mid; break
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341         ac_lo=`expr $ac_mid + 1`
10342                         if test $ac_lo -le $ac_mid; then
10343                           ac_lo= ac_hi=
10344                           break
10345                         fi
10346                         ac_mid=`expr 2 '*' $ac_mid + 1`
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350   done
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355         cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 #include <stddef.h>
10362 int
10363 main ()
10364 {
10365 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10366 test_array [0] = 0
10367
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_compile") 2>conftest.er1
10380   ac_status=$?
10381   grep -v '^ *+' conftest.er1 >conftest.err
10382   rm -f conftest.er1
10383   cat conftest.err >&5
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } && {
10386          test -z "$ac_c_werror_flag" ||
10387          test ! -s conftest.err
10388        } && test -s conftest.$ac_objext; then
10389   ac_hi=-1 ac_mid=-1
10390   while :; do
10391     cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h.  */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h.  */
10397 #include <stddef.h>
10398 int
10399 main ()
10400 {
10401 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10402 test_array [0] = 0
10403
10404   ;
10405   return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412   *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415   (eval "$ac_compile") 2>conftest.er1
10416   ac_status=$?
10417   grep -v '^ *+' conftest.er1 >conftest.err
10418   rm -f conftest.er1
10419   cat conftest.err >&5
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } && {
10422          test -z "$ac_c_werror_flag" ||
10423          test ! -s conftest.err
10424        } && test -s conftest.$ac_objext; then
10425   ac_lo=$ac_mid; break
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430         ac_hi=`expr '(' $ac_mid ')' - 1`
10431                         if test $ac_mid -le $ac_hi; then
10432                           ac_lo= ac_hi=
10433                           break
10434                         fi
10435                         ac_mid=`expr 2 '*' $ac_mid`
10436 fi
10437
10438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439   done
10440 else
10441   echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444         ac_lo= ac_hi=
10445 fi
10446
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 fi
10449
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 # Binary search between lo and hi bounds.
10452 while test "x$ac_lo" != "x$ac_hi"; do
10453   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10454   cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h.  */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h.  */
10460 #include <stddef.h>
10461 int
10462 main ()
10463 {
10464 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10465 test_array [0] = 0
10466
10467   ;
10468   return 0;
10469 }
10470 _ACEOF
10471 rm -f conftest.$ac_objext
10472 if { (ac_try="$ac_compile"
10473 case "(($ac_try" in
10474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475   *) ac_try_echo=$ac_try;;
10476 esac
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478   (eval "$ac_compile") 2>conftest.er1
10479   ac_status=$?
10480   grep -v '^ *+' conftest.er1 >conftest.err
10481   rm -f conftest.er1
10482   cat conftest.err >&5
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); } && {
10485          test -z "$ac_c_werror_flag" ||
10486          test ! -s conftest.err
10487        } && test -s conftest.$ac_objext; then
10488   ac_hi=$ac_mid
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493         ac_lo=`expr '(' $ac_mid ')' + 1`
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 done
10498 case $ac_lo in
10499 ?*) res_hi=$ac_lo;;
10500 '') result=? ;;
10501 esac
10502 else
10503   cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 #include <stddef.h>
10510 static long int longval () { return ~(size_t)0 / 10; }
10511 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10512 #include <stdio.h>
10513 #include <stdlib.h>
10514 int
10515 main ()
10516 {
10517
10518   FILE *f = fopen ("conftest.val", "w");
10519   if (! f)
10520     return 1;
10521   if ((~(size_t)0 / 10) < 0)
10522     {
10523       long int i = longval ();
10524       if (i != (~(size_t)0 / 10))
10525         return 1;
10526       fprintf (f, "%ld\n", i);
10527     }
10528   else
10529     {
10530       unsigned long int i = ulongval ();
10531       if (i != (~(size_t)0 / 10))
10532         return 1;
10533       fprintf (f, "%lu\n", i);
10534     }
10535   return ferror (f) || fclose (f) != 0;
10536
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_link") 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10552   { (case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557   (eval "$ac_try") 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   res_hi=`cat conftest.val`
10562 else
10563   echo "$as_me: program exited with status $ac_status" >&5
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ( exit $ac_status )
10568 result=?
10569 fi
10570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10571 fi
10572 rm -f conftest.val
10573
10574     if test "$cross_compiling" = yes; then
10575   # Depending upon the size, compute the lo and hi bounds.
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <stddef.h>
10583 int
10584 main ()
10585 {
10586 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10587 test_array [0] = 0
10588
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600   (eval "$ac_compile") 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } && {
10607          test -z "$ac_c_werror_flag" ||
10608          test ! -s conftest.err
10609        } && test -s conftest.$ac_objext; then
10610   ac_lo=0 ac_mid=0
10611   while :; do
10612     cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 #include <stddef.h>
10619 int
10620 main ()
10621 {
10622 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10623 test_array [0] = 0
10624
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext
10630 if { (ac_try="$ac_compile"
10631 case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_compile") 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } && {
10643          test -z "$ac_c_werror_flag" ||
10644          test ! -s conftest.err
10645        } && test -s conftest.$ac_objext; then
10646   ac_hi=$ac_mid; break
10647 else
10648   echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651         ac_lo=`expr $ac_mid + 1`
10652                         if test $ac_lo -le $ac_mid; then
10653                           ac_lo= ac_hi=
10654                           break
10655                         fi
10656                         ac_mid=`expr 2 '*' $ac_mid + 1`
10657 fi
10658
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660   done
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10664
10665         cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671 #include <stddef.h>
10672 int
10673 main ()
10674 {
10675 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10676 test_array [0] = 0
10677
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext
10683 if { (ac_try="$ac_compile"
10684 case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_compile") 2>conftest.er1
10690   ac_status=$?
10691   grep -v '^ *+' conftest.er1 >conftest.err
10692   rm -f conftest.er1
10693   cat conftest.err >&5
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } && {
10696          test -z "$ac_c_werror_flag" ||
10697          test ! -s conftest.err
10698        } && test -s conftest.$ac_objext; then
10699   ac_hi=-1 ac_mid=-1
10700   while :; do
10701     cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707 #include <stddef.h>
10708 int
10709 main ()
10710 {
10711 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10712 test_array [0] = 0
10713
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722   *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725   (eval "$ac_compile") 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } && {
10732          test -z "$ac_c_werror_flag" ||
10733          test ! -s conftest.err
10734        } && test -s conftest.$ac_objext; then
10735   ac_lo=$ac_mid; break
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740         ac_hi=`expr '(' $ac_mid ')' - 1`
10741                         if test $ac_mid -le $ac_hi; then
10742                           ac_lo= ac_hi=
10743                           break
10744                         fi
10745                         ac_mid=`expr 2 '*' $ac_mid`
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749   done
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754         ac_lo= ac_hi=
10755 fi
10756
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 fi
10759
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 # Binary search between lo and hi bounds.
10762 while test "x$ac_lo" != "x$ac_hi"; do
10763   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10764   cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 #include <stddef.h>
10771 int
10772 main ()
10773 {
10774 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10775 test_array [0] = 0
10776
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785   *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788   (eval "$ac_compile") 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } && {
10795          test -z "$ac_c_werror_flag" ||
10796          test ! -s conftest.err
10797        } && test -s conftest.$ac_objext; then
10798   ac_hi=$ac_mid
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803         ac_lo=`expr '(' $ac_mid ')' + 1`
10804 fi
10805
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 done
10808 case $ac_lo in
10809 ?*) res_lo=$ac_lo;;
10810 '') result=? ;;
10811 esac
10812 else
10813   cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h.  */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h.  */
10819 #include <stddef.h>
10820 static long int longval () { return ~(size_t)0 % 10; }
10821 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10822 #include <stdio.h>
10823 #include <stdlib.h>
10824 int
10825 main ()
10826 {
10827
10828   FILE *f = fopen ("conftest.val", "w");
10829   if (! f)
10830     return 1;
10831   if ((~(size_t)0 % 10) < 0)
10832     {
10833       long int i = longval ();
10834       if (i != (~(size_t)0 % 10))
10835         return 1;
10836       fprintf (f, "%ld\n", i);
10837     }
10838   else
10839     {
10840       unsigned long int i = ulongval ();
10841       if (i != (~(size_t)0 % 10))
10842         return 1;
10843       fprintf (f, "%lu\n", i);
10844     }
10845   return ferror (f) || fclose (f) != 0;
10846
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855   *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858   (eval "$ac_link") 2>&5
10859   ac_status=$?
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   res_lo=`cat conftest.val`
10872 else
10873   echo "$as_me: program exited with status $ac_status" >&5
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 ( exit $ac_status )
10878 result=?
10879 fi
10880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10881 fi
10882 rm -f conftest.val
10883
10884     if test "$cross_compiling" = yes; then
10885   # Depending upon the size, compute the lo and hi bounds.
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892 #include <stddef.h>
10893 int
10894 main ()
10895 {
10896 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10897 test_array [0] = 0
10898
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_compile") 2>conftest.er1
10911   ac_status=$?
10912   grep -v '^ *+' conftest.er1 >conftest.err
10913   rm -f conftest.er1
10914   cat conftest.err >&5
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } && {
10917          test -z "$ac_c_werror_flag" ||
10918          test ! -s conftest.err
10919        } && test -s conftest.$ac_objext; then
10920   ac_lo=0 ac_mid=0
10921   while :; do
10922     cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 #include <stddef.h>
10929 int
10930 main ()
10931 {
10932 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10933 test_array [0] = 0
10934
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext
10940 if { (ac_try="$ac_compile"
10941 case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_compile") 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } && {
10953          test -z "$ac_c_werror_flag" ||
10954          test ! -s conftest.err
10955        } && test -s conftest.$ac_objext; then
10956   ac_hi=$ac_mid; break
10957 else
10958   echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10960
10961         ac_lo=`expr $ac_mid + 1`
10962                         if test $ac_lo -le $ac_mid; then
10963                           ac_lo= ac_hi=
10964                           break
10965                         fi
10966                         ac_mid=`expr 2 '*' $ac_mid + 1`
10967 fi
10968
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970   done
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981 #include <stddef.h>
10982 int
10983 main ()
10984 {
10985 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10986 test_array [0] = 0
10987
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999   (eval "$ac_compile") 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } && {
11006          test -z "$ac_c_werror_flag" ||
11007          test ! -s conftest.err
11008        } && test -s conftest.$ac_objext; then
11009   ac_hi=-1 ac_mid=-1
11010   while :; do
11011     cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #include <stddef.h>
11018 int
11019 main ()
11020 {
11021 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11022 test_array [0] = 0
11023
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_compile") 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } && {
11042          test -z "$ac_c_werror_flag" ||
11043          test ! -s conftest.err
11044        } && test -s conftest.$ac_objext; then
11045   ac_lo=$ac_mid; break
11046 else
11047   echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11049
11050         ac_hi=`expr '(' $ac_mid ')' - 1`
11051                         if test $ac_mid -le $ac_hi; then
11052                           ac_lo= ac_hi=
11053                           break
11054                         fi
11055                         ac_mid=`expr 2 '*' $ac_mid`
11056 fi
11057
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059   done
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064         ac_lo= ac_hi=
11065 fi
11066
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 # Binary search between lo and hi bounds.
11072 while test "x$ac_lo" != "x$ac_hi"; do
11073   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <stddef.h>
11081 int
11082 main ()
11083 {
11084 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11085 test_array [0] = 0
11086
11087   ;
11088   return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095   *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098   (eval "$ac_compile") 2>conftest.er1
11099   ac_status=$?
11100   grep -v '^ *+' conftest.er1 >conftest.err
11101   rm -f conftest.er1
11102   cat conftest.err >&5
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } && {
11105          test -z "$ac_c_werror_flag" ||
11106          test ! -s conftest.err
11107        } && test -s conftest.$ac_objext; then
11108   ac_hi=$ac_mid
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113         ac_lo=`expr '(' $ac_mid ')' + 1`
11114 fi
11115
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 done
11118 case $ac_lo in
11119 ?*) fits_in_uint=$ac_lo;;
11120 '') result=? ;;
11121 esac
11122 else
11123   cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h.  */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h.  */
11129 #include <stddef.h>
11130 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11131 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11132 #include <stdio.h>
11133 #include <stdlib.h>
11134 int
11135 main ()
11136 {
11137
11138   FILE *f = fopen ("conftest.val", "w");
11139   if (! f)
11140     return 1;
11141   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11142     {
11143       long int i = longval ();
11144       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11145         return 1;
11146       fprintf (f, "%ld\n", i);
11147     }
11148   else
11149     {
11150       unsigned long int i = ulongval ();
11151       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11152         return 1;
11153       fprintf (f, "%lu\n", i);
11154     }
11155   return ferror (f) || fclose (f) != 0;
11156
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest$ac_exeext
11162 if { (ac_try="$ac_link"
11163 case "(($ac_try" in
11164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165   *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168   (eval "$ac_link") 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11172   { (case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_try") 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; }; then
11181   fits_in_uint=`cat conftest.val`
11182 else
11183   echo "$as_me: program exited with status $ac_status" >&5
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 ( exit $ac_status )
11188 result=?
11189 fi
11190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11191 fi
11192 rm -f conftest.val
11193
11194     if test "$fits_in_uint" = 1; then
11195                   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #include <stddef.h>
11202         extern size_t foo;
11203         extern unsigned long foo;
11204
11205 int
11206 main ()
11207 {
11208
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_compile") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } && {
11227          test -z "$ac_c_werror_flag" ||
11228          test ! -s conftest.err
11229        } && test -s conftest.$ac_objext; then
11230   fits_in_uint=0
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239     fi
11240     if test -z "$result"; then
11241       if test "$fits_in_uint" = 1; then
11242         result="$res_hi$res_lo"U
11243       else
11244         result="$res_hi$res_lo"UL
11245       fi
11246     else
11247             result='~(size_t)0'
11248     fi
11249   fi
11250   { echo "$as_me:$LINENO: result: $result" >&5
11251 echo "${ECHO_T}$result" >&6; }
11252   if test "$result" != yes; then
11253
11254 cat >>confdefs.h <<_ACEOF
11255 #define SIZE_MAX $result
11256 _ACEOF
11257
11258   fi
11259
11260
11261
11262
11263
11264 for ac_header in stdint.h
11265 do
11266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 fi
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274                { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11276 else
11277   # Is the header compilable?
11278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 $ac_includes_default
11287 #include <$ac_header>
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_compile") 2>conftest.er1
11297   ac_status=$?
11298   grep -v '^ *+' conftest.er1 >conftest.err
11299   rm -f conftest.er1
11300   cat conftest.err >&5
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); } && {
11303          test -z "$ac_c_werror_flag" ||
11304          test ! -s conftest.err
11305        } && test -s conftest.$ac_objext; then
11306   ac_header_compiler=yes
11307 else
11308   echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311         ac_header_compiler=no
11312 fi
11313
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11316 echo "${ECHO_T}$ac_header_compiler" >&6; }
11317
11318 # Is the header present?
11319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <$ac_header>
11328 _ACEOF
11329 if { (ac_try="$ac_cpp conftest.$ac_ext"
11330 case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } >/dev/null && {
11342          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11343          test ! -s conftest.err
11344        }; then
11345   ac_header_preproc=yes
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350   ac_header_preproc=no
11351 fi
11352
11353 rm -f conftest.err conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6; }
11356
11357 # So?  What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11359   yes:no: )
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364     ac_header_preproc=yes
11365     ;;
11366   no:yes:* )
11367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11379
11380     ;;
11381 esac
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   eval "$as_ac_Header=\$ac_header_preproc"
11388 fi
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390                { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392
11393 fi
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395   cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 _ACEOF
11398
11399 fi
11400
11401 done
11402
11403
11404
11405
11406
11407
11408
11409
11410   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11411 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11412 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 $ac_includes_default
11422 typedef ptrdiff_t ac__type_new_;
11423 int
11424 main ()
11425 {
11426 if ((ac__type_new_ *) 0)
11427   return 0;
11428 if (sizeof (ac__type_new_))
11429   return 0;
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext
11435 if { (ac_try="$ac_compile"
11436 case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_compile") 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } && {
11448          test -z "$ac_c_werror_flag" ||
11449          test ! -s conftest.err
11450        } && test -s conftest.$ac_objext; then
11451   ac_cv_type_ptrdiff_t=yes
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456         ac_cv_type_ptrdiff_t=no
11457 fi
11458
11459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460 fi
11461 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11463 if test $ac_cv_type_ptrdiff_t = yes; then
11464   :
11465 else
11466
11467 cat >>confdefs.h <<\_ACEOF
11468 #define ptrdiff_t long
11469 _ACEOF
11470
11471
11472 fi
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11485 stdlib.h string.h unistd.h sys/param.h
11486 do
11487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 fi
11494 ac_res=`eval echo '${'$as_ac_Header'}'`
11495                { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11497 else
11498   # Is the header compilable?
11499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 $ac_includes_default
11508 #include <$ac_header>
11509 _ACEOF
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_compile") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } && {
11524          test -z "$ac_c_werror_flag" ||
11525          test ! -s conftest.err
11526        } && test -s conftest.$ac_objext; then
11527   ac_header_compiler=yes
11528 else
11529   echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11531
11532         ac_header_compiler=no
11533 fi
11534
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11538
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548 #include <$ac_header>
11549 _ACEOF
11550 if { (ac_try="$ac_cpp conftest.$ac_ext"
11551 case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } >/dev/null && {
11563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11564          test ! -s conftest.err
11565        }; then
11566   ac_header_preproc=yes
11567 else
11568   echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571   ac_header_preproc=no
11572 fi
11573
11574 rm -f conftest.err conftest.$ac_ext
11575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11576 echo "${ECHO_T}$ac_header_preproc" >&6; }
11577
11578 # So?  What about this header?
11579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11580   yes:no: )
11581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11585     ac_header_preproc=yes
11586     ;;
11587   no:yes:* )
11588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11600
11601     ;;
11602 esac
11603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   eval "$as_ac_Header=\$ac_header_preproc"
11609 fi
11610 ac_res=`eval echo '${'$as_ac_Header'}'`
11611                { echo "$as_me:$LINENO: result: $ac_res" >&5
11612 echo "${ECHO_T}$ac_res" >&6; }
11613
11614 fi
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616   cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11618 _ACEOF
11619
11620 fi
11621
11622 done
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11648 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11649 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11650 __fsetlocking
11651 do
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11666 #define $ac_func innocuous_$ac_func
11667
11668 /* System header to define __stub macros and hopefully few prototypes,
11669     which can conflict with char $ac_func (); below.
11670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671     <limits.h> exists even on freestanding compilers.  */
11672
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11678
11679 #undef $ac_func
11680
11681 /* Override any GCC internal prototype to avoid an error.
11682    Use char because int might match the return type of a GCC
11683    builtin and then its argument prototype would still apply.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 char $ac_func ();
11688 /* The GNU C library defines this for functions which it implements
11689     to always fail with ENOSYS.  Some functions are actually named
11690     something starting with __ and the normal name is an alias.  */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 choke me
11693 #endif
11694
11695 int
11696 main ()
11697 {
11698 return $ac_func ();
11699   ;
11700   return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_link") 2>conftest.er1
11711   ac_status=$?
11712   grep -v '^ *+' conftest.er1 >conftest.err
11713   rm -f conftest.er1
11714   cat conftest.err >&5
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); } && {
11717          test -z "$ac_c_werror_flag" ||
11718          test ! -s conftest.err
11719        } && test -s conftest$ac_exeext &&
11720        $as_test_x conftest$ac_exeext; then
11721   eval "$as_ac_var=yes"
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726         eval "$as_ac_var=no"
11727 fi
11728
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730       conftest$ac_exeext conftest.$ac_ext
11731 fi
11732 ac_res=`eval echo '${'$as_ac_var'}'`
11733                { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736   cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11739
11740 fi
11741 done
11742
11743
11744
11745   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11746 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11747 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750   cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756 #include <stdio.h>
11757 int
11758 main ()
11759 {
11760
11761 #ifndef _snprintf
11762   char *p = (char *) _snprintf;
11763 #endif
11764
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_compile") 2>conftest.er1
11777   ac_status=$?
11778   grep -v '^ *+' conftest.er1 >conftest.err
11779   rm -f conftest.er1
11780   cat conftest.err >&5
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } && {
11783          test -z "$ac_c_werror_flag" ||
11784          test ! -s conftest.err
11785        } && test -s conftest.$ac_objext; then
11786   ac_cv_have_decl__snprintf=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791         ac_cv_have_decl__snprintf=no
11792 fi
11793
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 fi
11796 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11797 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11798   if test $ac_cv_have_decl__snprintf = yes; then
11799     gt_value=1
11800   else
11801     gt_value=0
11802   fi
11803
11804 cat >>confdefs.h <<_ACEOF
11805 #define HAVE_DECL__SNPRINTF $gt_value
11806 _ACEOF
11807
11808
11809
11810   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11811 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11812 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h.  */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h.  */
11821 #include <stdio.h>
11822 int
11823 main ()
11824 {
11825
11826 #ifndef _snwprintf
11827   char *p = (char *) _snwprintf;
11828 #endif
11829
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841   (eval "$ac_compile") 2>conftest.er1
11842   ac_status=$?
11843   grep -v '^ *+' conftest.er1 >conftest.err
11844   rm -f conftest.er1
11845   cat conftest.err >&5
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } && {
11848          test -z "$ac_c_werror_flag" ||
11849          test ! -s conftest.err
11850        } && test -s conftest.$ac_objext; then
11851   ac_cv_have_decl__snwprintf=yes
11852 else
11853   echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856         ac_cv_have_decl__snwprintf=no
11857 fi
11858
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 fi
11861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11862 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11863   if test $ac_cv_have_decl__snwprintf = yes; then
11864     gt_value=1
11865   else
11866     gt_value=0
11867   fi
11868
11869 cat >>confdefs.h <<_ACEOF
11870 #define HAVE_DECL__SNWPRINTF $gt_value
11871 _ACEOF
11872
11873
11874
11875
11876   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11877 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11878 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887 #include <stdio.h>
11888 int
11889 main ()
11890 {
11891
11892 #ifndef feof_unlocked
11893   char *p = (char *) feof_unlocked;
11894 #endif
11895
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904   *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907   (eval "$ac_compile") 2>conftest.er1
11908   ac_status=$?
11909   grep -v '^ *+' conftest.er1 >conftest.err
11910   rm -f conftest.er1
11911   cat conftest.err >&5
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } && {
11914          test -z "$ac_c_werror_flag" ||
11915          test ! -s conftest.err
11916        } && test -s conftest.$ac_objext; then
11917   ac_cv_have_decl_feof_unlocked=yes
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922         ac_cv_have_decl_feof_unlocked=no
11923 fi
11924
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11928 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11929   if test $ac_cv_have_decl_feof_unlocked = yes; then
11930     gt_value=1
11931   else
11932     gt_value=0
11933   fi
11934
11935 cat >>confdefs.h <<_ACEOF
11936 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11937 _ACEOF
11938
11939
11940
11941   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11942 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11943 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 #include <stdio.h>
11953 int
11954 main ()
11955 {
11956
11957 #ifndef fgets_unlocked
11958   char *p = (char *) fgets_unlocked;
11959 #endif
11960
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (ac_try="$ac_compile"
11967 case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_compile") 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } && {
11979          test -z "$ac_c_werror_flag" ||
11980          test ! -s conftest.err
11981        } && test -s conftest.$ac_objext; then
11982   ac_cv_have_decl_fgets_unlocked=yes
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         ac_cv_have_decl_fgets_unlocked=no
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 fi
11992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11993 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11994   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11995     gt_value=1
11996   else
11997     gt_value=0
11998   fi
11999
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12002 _ACEOF
12003
12004
12005
12006   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12007 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12008 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011   cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 #include <stdio.h>
12018 int
12019 main ()
12020 {
12021
12022 #ifndef getc_unlocked
12023   char *p = (char *) getc_unlocked;
12024 #endif
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext
12031 if { (ac_try="$ac_compile"
12032 case "(($ac_try" in
12033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034   *) ac_try_echo=$ac_try;;
12035 esac
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037   (eval "$ac_compile") 2>conftest.er1
12038   ac_status=$?
12039   grep -v '^ *+' conftest.er1 >conftest.err
12040   rm -f conftest.er1
12041   cat conftest.err >&5
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } && {
12044          test -z "$ac_c_werror_flag" ||
12045          test ! -s conftest.err
12046        } && test -s conftest.$ac_objext; then
12047   ac_cv_have_decl_getc_unlocked=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052         ac_cv_have_decl_getc_unlocked=no
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12058 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12059   if test $ac_cv_have_decl_getc_unlocked = yes; then
12060     gt_value=1
12061   else
12062     gt_value=0
12063   fi
12064
12065 cat >>confdefs.h <<_ACEOF
12066 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12067 _ACEOF
12068
12069
12070
12071   case $gt_cv_func_printf_posix in
12072     *yes) HAVE_POSIX_PRINTF=1 ;;
12073     *) HAVE_POSIX_PRINTF=0 ;;
12074   esac
12075
12076   if test "$ac_cv_func_asprintf" = yes; then
12077     HAVE_ASPRINTF=1
12078   else
12079     HAVE_ASPRINTF=0
12080   fi
12081
12082   if test "$ac_cv_func_snprintf" = yes; then
12083     HAVE_SNPRINTF=1
12084   else
12085     HAVE_SNPRINTF=0
12086   fi
12087
12088   if test "$ac_cv_func_wprintf" = yes; then
12089     HAVE_WPRINTF=1
12090   else
12091     HAVE_WPRINTF=0
12092   fi
12093
12094
12095
12096
12097
12098
12099
12100           am_save_CPPFLAGS="$CPPFLAGS"
12101
12102   for element in $INCICONV; do
12103     haveit=
12104     for x in $CPPFLAGS; do
12105
12106   acl_save_prefix="$prefix"
12107   prefix="$acl_final_prefix"
12108   acl_save_exec_prefix="$exec_prefix"
12109   exec_prefix="$acl_final_exec_prefix"
12110   eval x=\"$x\"
12111   exec_prefix="$acl_save_exec_prefix"
12112   prefix="$acl_save_prefix"
12113
12114       if test "X$x" = "X$element"; then
12115         haveit=yes
12116         break
12117       fi
12118     done
12119     if test -z "$haveit"; then
12120       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12121     fi
12122   done
12123
12124
12125   { echo "$as_me:$LINENO: checking for iconv" >&5
12126 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12127 if test "${am_cv_func_iconv+set}" = set; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130
12131     am_cv_func_iconv="no, consider installing GNU libiconv"
12132     am_cv_lib_iconv=no
12133     cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h.  */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h.  */
12139 #include <stdlib.h>
12140 #include <iconv.h>
12141 int
12142 main ()
12143 {
12144 iconv_t cd = iconv_open("","");
12145        iconv(cd,NULL,NULL,NULL,NULL);
12146        iconv_close(cd);
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155   *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158   (eval "$ac_link") 2>conftest.er1
12159   ac_status=$?
12160   grep -v '^ *+' conftest.er1 >conftest.err
12161   rm -f conftest.er1
12162   cat conftest.err >&5
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } && {
12165          test -z "$ac_c_werror_flag" ||
12166          test ! -s conftest.err
12167        } && test -s conftest$ac_exeext &&
12168        $as_test_x conftest$ac_exeext; then
12169   am_cv_func_iconv=yes
12170 else
12171   echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12173
12174
12175 fi
12176
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178       conftest$ac_exeext conftest.$ac_ext
12179     if test "$am_cv_func_iconv" != yes; then
12180       am_save_LIBS="$LIBS"
12181       LIBS="$LIBS $LIBICONV"
12182       cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188 #include <stdlib.h>
12189 #include <iconv.h>
12190 int
12191 main ()
12192 {
12193 iconv_t cd = iconv_open("","");
12194          iconv(cd,NULL,NULL,NULL,NULL);
12195          iconv_close(cd);
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_link") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } && {
12214          test -z "$ac_c_werror_flag" ||
12215          test ! -s conftest.err
12216        } && test -s conftest$ac_exeext &&
12217        $as_test_x conftest$ac_exeext; then
12218   am_cv_lib_iconv=yes
12219         am_cv_func_iconv=yes
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224
12225 fi
12226
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228       conftest$ac_exeext conftest.$ac_ext
12229       LIBS="$am_save_LIBS"
12230     fi
12231
12232 fi
12233 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12234 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12235   if test "$am_cv_func_iconv" = yes; then
12236
12237 cat >>confdefs.h <<\_ACEOF
12238 #define HAVE_ICONV 1
12239 _ACEOF
12240
12241   fi
12242   if test "$am_cv_lib_iconv" = yes; then
12243     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12244 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12245     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12246 echo "${ECHO_T}$LIBICONV" >&6; }
12247   else
12248             CPPFLAGS="$am_save_CPPFLAGS"
12249     LIBICONV=
12250     LTLIBICONV=
12251   fi
12252
12253
12254
12255   if test "$am_cv_func_iconv" = yes; then
12256     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12257 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12258     if test "${am_cv_proto_iconv+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261
12262       cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268
12269 #include <stdlib.h>
12270 #include <iconv.h>
12271 extern
12272 #ifdef __cplusplus
12273 "C"
12274 #endif
12275 #if defined(__STDC__) || defined(__cplusplus)
12276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12277 #else
12278 size_t iconv();
12279 #endif
12280
12281 int
12282 main ()
12283 {
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_compile") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } && {
12303          test -z "$ac_c_werror_flag" ||
12304          test ! -s conftest.err
12305        } && test -s conftest.$ac_objext; then
12306   am_cv_proto_iconv_arg1=""
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         am_cv_proto_iconv_arg1="const"
12312 fi
12313
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315       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);"
12316 fi
12317
12318     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12319     { echo "$as_me:$LINENO: result: ${ac_t:-
12320          }$am_cv_proto_iconv" >&5
12321 echo "${ECHO_T}${ac_t:-
12322          }$am_cv_proto_iconv" >&6; }
12323
12324 cat >>confdefs.h <<_ACEOF
12325 #define ICONV_CONST $am_cv_proto_iconv_arg1
12326 _ACEOF
12327
12328   fi
12329
12330
12331   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12332 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12333 if test "${am_cv_langinfo_codeset+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336   cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342 #include <langinfo.h>
12343 int
12344 main ()
12345 {
12346 char* cs = nl_langinfo(CODESET);
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358   (eval "$ac_link") 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } && {
12365          test -z "$ac_c_werror_flag" ||
12366          test ! -s conftest.err
12367        } && test -s conftest$ac_exeext &&
12368        $as_test_x conftest$ac_exeext; then
12369   am_cv_langinfo_codeset=yes
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374         am_cv_langinfo_codeset=no
12375 fi
12376
12377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12378       conftest$ac_exeext conftest.$ac_ext
12379
12380 fi
12381 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12382 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12383   if test $am_cv_langinfo_codeset = yes; then
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_LANGINFO_CODESET 1
12387 _ACEOF
12388
12389   fi
12390
12391   if test $ac_cv_header_locale_h = yes; then
12392
12393   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12394 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12395 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404 #include <locale.h>
12405 int
12406 main ()
12407 {
12408 return LC_MESSAGES
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417   *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420   (eval "$ac_link") 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } && {
12427          test -z "$ac_c_werror_flag" ||
12428          test ! -s conftest.err
12429        } && test -s conftest$ac_exeext &&
12430        $as_test_x conftest$ac_exeext; then
12431   gt_cv_val_LC_MESSAGES=yes
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436         gt_cv_val_LC_MESSAGES=no
12437 fi
12438
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440       conftest$ac_exeext conftest.$ac_ext
12441 fi
12442 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12443 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12444   if test $gt_cv_val_LC_MESSAGES = yes; then
12445
12446 cat >>confdefs.h <<\_ACEOF
12447 #define HAVE_LC_MESSAGES 1
12448 _ACEOF
12449
12450   fi
12451
12452   fi
12453
12454   if test -n "$INTL_MACOSX_LIBS"; then
12455     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12456   fi
12457
12458                       for ac_prog in bison
12459 do
12460   # Extract the first word of "$ac_prog", so it can be a program name with args.
12461 set dummy $ac_prog; ac_word=$2
12462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12464 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   if test -n "$INTLBISON"; then
12468   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12469 else
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12472 do
12473   IFS=$as_save_IFS
12474   test -z "$as_dir" && as_dir=.
12475   for ac_exec_ext in '' $ac_executable_extensions; do
12476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477     ac_cv_prog_INTLBISON="$ac_prog"
12478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12479     break 2
12480   fi
12481 done
12482 done
12483 IFS=$as_save_IFS
12484
12485 fi
12486 fi
12487 INTLBISON=$ac_cv_prog_INTLBISON
12488 if test -n "$INTLBISON"; then
12489   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12490 echo "${ECHO_T}$INTLBISON" >&6; }
12491 else
12492   { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12494 fi
12495
12496
12497   test -n "$INTLBISON" && break
12498 done
12499
12500   if test -z "$INTLBISON"; then
12501     ac_verc_fail=yes
12502   else
12503         { echo "$as_me:$LINENO: checking version of bison" >&5
12504 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12505     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12506     case $ac_prog_version in
12507       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12508       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12509          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12510       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12511     esac
12512     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12513 echo "${ECHO_T}$ac_prog_version" >&6; }
12514   fi
12515   if test $ac_verc_fail = yes; then
12516     INTLBISON=:
12517   fi
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12535 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12536 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   gt_save_CPPFLAGS="$CPPFLAGS"
12540      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12541      gt_save_LIBS="$LIBS"
12542      LIBS="$LIBS -framework CoreFoundation"
12543      cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 #include <CFPreferences.h>
12550 int
12551 main ()
12552 {
12553 CFPreferencesCopyAppValue(NULL, NULL)
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562   *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565   (eval "$ac_link") 2>conftest.er1
12566   ac_status=$?
12567   grep -v '^ *+' conftest.er1 >conftest.err
12568   rm -f conftest.er1
12569   cat conftest.err >&5
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } && {
12572          test -z "$ac_c_werror_flag" ||
12573          test ! -s conftest.err
12574        } && test -s conftest$ac_exeext &&
12575        $as_test_x conftest$ac_exeext; then
12576   gt_cv_func_CFPreferencesCopyAppValue=yes
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581         gt_cv_func_CFPreferencesCopyAppValue=no
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585       conftest$ac_exeext conftest.$ac_ext
12586      CPPFLAGS="$gt_save_CPPFLAGS"
12587      LIBS="$gt_save_LIBS"
12588 fi
12589 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12590 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12591   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12592
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12595 _ACEOF
12596
12597   fi
12598     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12599 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12600 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   gt_save_CPPFLAGS="$CPPFLAGS"
12604      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12605      gt_save_LIBS="$LIBS"
12606      LIBS="$LIBS -framework CoreFoundation"
12607      cat >conftest.$ac_ext <<_ACEOF
12608 /* confdefs.h.  */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h.  */
12613 #include <CFLocale.h>
12614 int
12615 main ()
12616 {
12617 CFLocaleCopyCurrent();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629   (eval "$ac_link") 2>conftest.er1
12630   ac_status=$?
12631   grep -v '^ *+' conftest.er1 >conftest.err
12632   rm -f conftest.er1
12633   cat conftest.err >&5
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } && {
12636          test -z "$ac_c_werror_flag" ||
12637          test ! -s conftest.err
12638        } && test -s conftest$ac_exeext &&
12639        $as_test_x conftest$ac_exeext; then
12640   gt_cv_func_CFLocaleCopyCurrent=yes
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645         gt_cv_func_CFLocaleCopyCurrent=no
12646 fi
12647
12648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649       conftest$ac_exeext conftest.$ac_ext
12650      CPPFLAGS="$gt_save_CPPFLAGS"
12651      LIBS="$gt_save_LIBS"
12652 fi
12653 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12654 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12655   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12656
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_CFLOCALECOPYCURRENT 1
12659 _ACEOF
12660
12661   fi
12662   INTL_MACOSX_LIBS=
12663   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12664     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12665   fi
12666
12667
12668
12669
12670   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12671 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12672     # Check whether --enable-nls was given.
12673 if test "${enable_nls+set}" = set; then
12674   enableval=$enable_nls; USE_NLS=$enableval
12675 else
12676   USE_NLS=yes
12677 fi
12678
12679   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12680 echo "${ECHO_T}$USE_NLS" >&6; }
12681
12682
12683
12684
12685     BUILD_INCLUDED_LIBINTL=no
12686     USE_INCLUDED_LIBINTL=no
12687
12688   LIBINTL=
12689   LTLIBINTL=
12690   POSUB=
12691
12692     if test "$USE_NLS" = "yes"; then
12693     gt_use_preinstalled_gnugettext=no
12694
12695       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12696 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12697
12698 # Check whether --with-included-gettext was given.
12699 if test "${with_included_gettext+set}" = set; then
12700   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12701 else
12702   nls_cv_force_use_gnu_gettext=no
12703 fi
12704
12705       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12706 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12707
12708       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12709       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12710
12711
12712
12713
12714
12715
12716         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12717 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12718 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h.  */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h.  */
12727 #include <libintl.h>
12728 extern int _nl_msg_cat_cntr;
12729 extern int *_nl_domain_bindings;
12730 int
12731 main ()
12732 {
12733 bindtextdomain ("", "");
12734 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746   (eval "$ac_link") 2>conftest.er1
12747   ac_status=$?
12748   grep -v '^ *+' conftest.er1 >conftest.err
12749   rm -f conftest.er1
12750   cat conftest.err >&5
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } && {
12753          test -z "$ac_c_werror_flag" ||
12754          test ! -s conftest.err
12755        } && test -s conftest$ac_exeext &&
12756        $as_test_x conftest$ac_exeext; then
12757   gt_cv_func_gnugettext1_libc=yes
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762         gt_cv_func_gnugettext1_libc=no
12763 fi
12764
12765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12766       conftest$ac_exeext conftest.$ac_ext
12767 fi
12768 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12769 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12770
12771         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12772
12773
12774
12775     use_additional=yes
12776
12777   acl_save_prefix="$prefix"
12778   prefix="$acl_final_prefix"
12779   acl_save_exec_prefix="$exec_prefix"
12780   exec_prefix="$acl_final_exec_prefix"
12781
12782     eval additional_includedir=\"$includedir\"
12783     eval additional_libdir=\"$libdir\"
12784
12785   exec_prefix="$acl_save_exec_prefix"
12786   prefix="$acl_save_prefix"
12787
12788
12789 # Check whether --with-libintl-prefix was given.
12790 if test "${with_libintl_prefix+set}" = set; then
12791   withval=$with_libintl_prefix;
12792     if test "X$withval" = "Xno"; then
12793       use_additional=no
12794     else
12795       if test "X$withval" = "X"; then
12796
12797   acl_save_prefix="$prefix"
12798   prefix="$acl_final_prefix"
12799   acl_save_exec_prefix="$exec_prefix"
12800   exec_prefix="$acl_final_exec_prefix"
12801
12802           eval additional_includedir=\"$includedir\"
12803           eval additional_libdir=\"$libdir\"
12804
12805   exec_prefix="$acl_save_exec_prefix"
12806   prefix="$acl_save_prefix"
12807
12808       else
12809         additional_includedir="$withval/include"
12810         additional_libdir="$withval/lib"
12811       fi
12812     fi
12813
12814 fi
12815
12816       LIBINTL=
12817   LTLIBINTL=
12818   INCINTL=
12819   rpathdirs=
12820   ltrpathdirs=
12821   names_already_handled=
12822   names_next_round='intl '
12823   while test -n "$names_next_round"; do
12824     names_this_round="$names_next_round"
12825     names_next_round=
12826     for name in $names_this_round; do
12827       already_handled=
12828       for n in $names_already_handled; do
12829         if test "$n" = "$name"; then
12830           already_handled=yes
12831           break
12832         fi
12833       done
12834       if test -z "$already_handled"; then
12835         names_already_handled="$names_already_handled $name"
12836                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12837         eval value=\"\$HAVE_LIB$uppername\"
12838         if test -n "$value"; then
12839           if test "$value" = yes; then
12840             eval value=\"\$LIB$uppername\"
12841             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12842             eval value=\"\$LTLIB$uppername\"
12843             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12844           else
12845                                     :
12846           fi
12847         else
12848                               found_dir=
12849           found_la=
12850           found_so=
12851           found_a=
12852           if test $use_additional = yes; then
12853             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12854               found_dir="$additional_libdir"
12855               found_so="$additional_libdir/lib$name.$shlibext"
12856               if test -f "$additional_libdir/lib$name.la"; then
12857                 found_la="$additional_libdir/lib$name.la"
12858               fi
12859             else
12860               if test -f "$additional_libdir/lib$name.$libext"; then
12861                 found_dir="$additional_libdir"
12862                 found_a="$additional_libdir/lib$name.$libext"
12863                 if test -f "$additional_libdir/lib$name.la"; then
12864                   found_la="$additional_libdir/lib$name.la"
12865                 fi
12866               fi
12867             fi
12868           fi
12869           if test "X$found_dir" = "X"; then
12870             for x in $LDFLAGS $LTLIBINTL; do
12871
12872   acl_save_prefix="$prefix"
12873   prefix="$acl_final_prefix"
12874   acl_save_exec_prefix="$exec_prefix"
12875   exec_prefix="$acl_final_exec_prefix"
12876   eval x=\"$x\"
12877   exec_prefix="$acl_save_exec_prefix"
12878   prefix="$acl_save_prefix"
12879
12880               case "$x" in
12881                 -L*)
12882                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12883                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12884                     found_dir="$dir"
12885                     found_so="$dir/lib$name.$shlibext"
12886                     if test -f "$dir/lib$name.la"; then
12887                       found_la="$dir/lib$name.la"
12888                     fi
12889                   else
12890                     if test -f "$dir/lib$name.$libext"; then
12891                       found_dir="$dir"
12892                       found_a="$dir/lib$name.$libext"
12893                       if test -f "$dir/lib$name.la"; then
12894                         found_la="$dir/lib$name.la"
12895                       fi
12896                     fi
12897                   fi
12898                   ;;
12899               esac
12900               if test "X$found_dir" != "X"; then
12901                 break
12902               fi
12903             done
12904           fi
12905           if test "X$found_dir" != "X"; then
12906                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12907             if test "X$found_so" != "X"; then
12908                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12909                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12910               else
12911                                                                                 haveit=
12912                 for x in $ltrpathdirs; 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                   ltrpathdirs="$ltrpathdirs $found_dir"
12920                 fi
12921                                 if test "$hardcode_direct" = yes; then
12922                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12923                 else
12924                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12925                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12926                                                             haveit=
12927                     for x in $rpathdirs; do
12928                       if test "X$x" = "X$found_dir"; then
12929                         haveit=yes
12930                         break
12931                       fi
12932                     done
12933                     if test -z "$haveit"; then
12934                       rpathdirs="$rpathdirs $found_dir"
12935                     fi
12936                   else
12937                                                                                 haveit=
12938                     for x in $LDFLAGS $LIBINTL; do
12939
12940   acl_save_prefix="$prefix"
12941   prefix="$acl_final_prefix"
12942   acl_save_exec_prefix="$exec_prefix"
12943   exec_prefix="$acl_final_exec_prefix"
12944   eval x=\"$x\"
12945   exec_prefix="$acl_save_exec_prefix"
12946   prefix="$acl_save_prefix"
12947
12948                       if test "X$x" = "X-L$found_dir"; then
12949                         haveit=yes
12950                         break
12951                       fi
12952                     done
12953                     if test -z "$haveit"; then
12954                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12955                     fi
12956                     if test "$hardcode_minus_L" != no; then
12957                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12958                     else
12959                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12960                     fi
12961                   fi
12962                 fi
12963               fi
12964             else
12965               if test "X$found_a" != "X"; then
12966                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12967               else
12968                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12969               fi
12970             fi
12971                         additional_includedir=
12972             case "$found_dir" in
12973               */lib | */lib/)
12974                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12975                 additional_includedir="$basedir/include"
12976                 ;;
12977             esac
12978             if test "X$additional_includedir" != "X"; then
12979                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12980                 haveit=
12981                 if test "X$additional_includedir" = "X/usr/local/include"; then
12982                   if test -n "$GCC"; then
12983                     case $host_os in
12984                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12985                     esac
12986                   fi
12987                 fi
12988                 if test -z "$haveit"; then
12989                   for x in $CPPFLAGS $INCINTL; do
12990
12991   acl_save_prefix="$prefix"
12992   prefix="$acl_final_prefix"
12993   acl_save_exec_prefix="$exec_prefix"
12994   exec_prefix="$acl_final_exec_prefix"
12995   eval x=\"$x\"
12996   exec_prefix="$acl_save_exec_prefix"
12997   prefix="$acl_save_prefix"
12998
12999                     if test "X$x" = "X-I$additional_includedir"; then
13000                       haveit=yes
13001                       break
13002                     fi
13003                   done
13004                   if test -z "$haveit"; then
13005                     if test -d "$additional_includedir"; then
13006                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13007                     fi
13008                   fi
13009                 fi
13010               fi
13011             fi
13012                         if test -n "$found_la"; then
13013                                                         save_libdir="$libdir"
13014               case "$found_la" in
13015                 */* | *\\*) . "$found_la" ;;
13016                 *) . "./$found_la" ;;
13017               esac
13018               libdir="$save_libdir"
13019                             for dep in $dependency_libs; do
13020                 case "$dep" in
13021                   -L*)
13022                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13023                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13024                       haveit=
13025                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13026                         if test -n "$GCC"; then
13027                           case $host_os in
13028                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13029                           esac
13030                         fi
13031                       fi
13032                       if test -z "$haveit"; then
13033                         haveit=
13034                         for x in $LDFLAGS $LIBINTL; do
13035
13036   acl_save_prefix="$prefix"
13037   prefix="$acl_final_prefix"
13038   acl_save_exec_prefix="$exec_prefix"
13039   exec_prefix="$acl_final_exec_prefix"
13040   eval x=\"$x\"
13041   exec_prefix="$acl_save_exec_prefix"
13042   prefix="$acl_save_prefix"
13043
13044                           if test "X$x" = "X-L$additional_libdir"; then
13045                             haveit=yes
13046                             break
13047                           fi
13048                         done
13049                         if test -z "$haveit"; then
13050                           if test -d "$additional_libdir"; then
13051                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13052                           fi
13053                         fi
13054                         haveit=
13055                         for x in $LDFLAGS $LTLIBINTL; do
13056
13057   acl_save_prefix="$prefix"
13058   prefix="$acl_final_prefix"
13059   acl_save_exec_prefix="$exec_prefix"
13060   exec_prefix="$acl_final_exec_prefix"
13061   eval x=\"$x\"
13062   exec_prefix="$acl_save_exec_prefix"
13063   prefix="$acl_save_prefix"
13064
13065                           if test "X$x" = "X-L$additional_libdir"; then
13066                             haveit=yes
13067                             break
13068                           fi
13069                         done
13070                         if test -z "$haveit"; then
13071                           if test -d "$additional_libdir"; then
13072                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13073                           fi
13074                         fi
13075                       fi
13076                     fi
13077                     ;;
13078                   -R*)
13079                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13080                     if test "$enable_rpath" != no; then
13081                                                                   haveit=
13082                       for x in $rpathdirs; do
13083                         if test "X$x" = "X$dir"; then
13084                           haveit=yes
13085                           break
13086                         fi
13087                       done
13088                       if test -z "$haveit"; then
13089                         rpathdirs="$rpathdirs $dir"
13090                       fi
13091                                                                   haveit=
13092                       for x in $ltrpathdirs; do
13093                         if test "X$x" = "X$dir"; then
13094                           haveit=yes
13095                           break
13096                         fi
13097                       done
13098                       if test -z "$haveit"; then
13099                         ltrpathdirs="$ltrpathdirs $dir"
13100                       fi
13101                     fi
13102                     ;;
13103                   -l*)
13104                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13105                     ;;
13106                   *.la)
13107                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13108                     ;;
13109                   *)
13110                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13111                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13112                     ;;
13113                 esac
13114               done
13115             fi
13116           else
13117                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13118             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13119           fi
13120         fi
13121       fi
13122     done
13123   done
13124   if test "X$rpathdirs" != "X"; then
13125     if test -n "$hardcode_libdir_separator"; then
13126                         alldirs=
13127       for found_dir in $rpathdirs; do
13128         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13129       done
13130             acl_save_libdir="$libdir"
13131       libdir="$alldirs"
13132       eval flag=\"$hardcode_libdir_flag_spec\"
13133       libdir="$acl_save_libdir"
13134       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13135     else
13136             for found_dir in $rpathdirs; do
13137         acl_save_libdir="$libdir"
13138         libdir="$found_dir"
13139         eval flag=\"$hardcode_libdir_flag_spec\"
13140         libdir="$acl_save_libdir"
13141         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13142       done
13143     fi
13144   fi
13145   if test "X$ltrpathdirs" != "X"; then
13146             for found_dir in $ltrpathdirs; do
13147       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13148     done
13149   fi
13150
13151           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13152 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13153 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13154   echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156   gt_save_CPPFLAGS="$CPPFLAGS"
13157             CPPFLAGS="$CPPFLAGS $INCINTL"
13158             gt_save_LIBS="$LIBS"
13159             LIBS="$LIBS $LIBINTL"
13160                         cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h.  */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h.  */
13166 #include <libintl.h>
13167 extern int _nl_msg_cat_cntr;
13168 extern
13169 #ifdef __cplusplus
13170 "C"
13171 #endif
13172 const char *_nl_expand_alias (const char *);
13173 int
13174 main ()
13175 {
13176 bindtextdomain ("", "");
13177 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189   (eval "$ac_link") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } && {
13196          test -z "$ac_c_werror_flag" ||
13197          test ! -s conftest.err
13198        } && test -s conftest$ac_exeext &&
13199        $as_test_x conftest$ac_exeext; then
13200   gt_cv_func_gnugettext1_libintl=yes
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205         gt_cv_func_gnugettext1_libintl=no
13206 fi
13207
13208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13209       conftest$ac_exeext conftest.$ac_ext
13210                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13211               LIBS="$LIBS $LIBICONV"
13212               cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 #include <libintl.h>
13219 extern int _nl_msg_cat_cntr;
13220 extern
13221 #ifdef __cplusplus
13222 "C"
13223 #endif
13224 const char *_nl_expand_alias (const char *);
13225 int
13226 main ()
13227 {
13228 bindtextdomain ("", "");
13229 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_link") 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } && {
13248          test -z "$ac_c_werror_flag" ||
13249          test ! -s conftest.err
13250        } && test -s conftest$ac_exeext &&
13251        $as_test_x conftest$ac_exeext; then
13252   LIBINTL="$LIBINTL $LIBICONV"
13253                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13254                 gt_cv_func_gnugettext1_libintl=yes
13255
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260
13261 fi
13262
13263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13264       conftest$ac_exeext conftest.$ac_ext
13265             fi
13266             CPPFLAGS="$gt_save_CPPFLAGS"
13267             LIBS="$gt_save_LIBS"
13268 fi
13269 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13270 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13271         fi
13272
13273                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13274            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13275                 && test "$PACKAGE" != gettext-runtime \
13276                 && test "$PACKAGE" != gettext-tools; }; then
13277           gt_use_preinstalled_gnugettext=yes
13278         else
13279                     LIBINTL=
13280           LTLIBINTL=
13281           INCINTL=
13282         fi
13283
13284
13285         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13286                               nls_cv_use_gnu_gettext=yes
13287         fi
13288       fi
13289
13290       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13291                 BUILD_INCLUDED_LIBINTL=yes
13292         USE_INCLUDED_LIBINTL=yes
13293         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13294         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13295         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13296       fi
13297
13298       CATOBJEXT=
13299       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13300          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13301                 CATOBJEXT=.gmo
13302       fi
13303
13304
13305     if test -n "$INTL_MACOSX_LIBS"; then
13306       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13307          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13308                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13309         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13310       fi
13311     fi
13312
13313     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13314        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13315
13316 cat >>confdefs.h <<\_ACEOF
13317 #define ENABLE_NLS 1
13318 _ACEOF
13319
13320     else
13321       USE_NLS=no
13322     fi
13323   fi
13324
13325   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13326 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13327   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13328 echo "${ECHO_T}$USE_NLS" >&6; }
13329   if test "$USE_NLS" = "yes"; then
13330     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13331 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13332     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13333       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13334         gt_source="external libintl"
13335       else
13336         gt_source="libc"
13337       fi
13338     else
13339       gt_source="included intl directory"
13340     fi
13341     { echo "$as_me:$LINENO: result: $gt_source" >&5
13342 echo "${ECHO_T}$gt_source" >&6; }
13343   fi
13344
13345   if test "$USE_NLS" = "yes"; then
13346
13347     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13348       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13349         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13350 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13351         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13352 echo "${ECHO_T}$LIBINTL" >&6; }
13353
13354   for element in $INCINTL; do
13355     haveit=
13356     for x in $CPPFLAGS; do
13357
13358   acl_save_prefix="$prefix"
13359   prefix="$acl_final_prefix"
13360   acl_save_exec_prefix="$exec_prefix"
13361   exec_prefix="$acl_final_exec_prefix"
13362   eval x=\"$x\"
13363   exec_prefix="$acl_save_exec_prefix"
13364   prefix="$acl_save_prefix"
13365
13366       if test "X$x" = "X$element"; then
13367         haveit=yes
13368         break
13369       fi
13370     done
13371     if test -z "$haveit"; then
13372       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13373     fi
13374   done
13375
13376       fi
13377
13378
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_GETTEXT 1
13381 _ACEOF
13382
13383
13384 cat >>confdefs.h <<\_ACEOF
13385 #define HAVE_DCGETTEXT 1
13386 _ACEOF
13387
13388     fi
13389
13390         POSUB=po
13391   fi
13392
13393
13394             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13395       BUILD_INCLUDED_LIBINTL=yes
13396     fi
13397
13398
13399
13400
13401
13402         nls_cv_header_intl=
13403     nls_cv_header_libgt=
13404
13405         DATADIRNAME=share
13406
13407
13408         INSTOBJEXT=.mo
13409
13410
13411         GENCAT=gencat
13412
13413
13414         INTLOBJS=
13415     if test "$USE_INCLUDED_LIBINTL" = yes; then
13416       INTLOBJS="\$(GETTOBJS)"
13417     fi
13418
13419
13420         INTL_LIBTOOL_SUFFIX_PREFIX=
13421
13422
13423
13424     INTLLIBS="$LIBINTL"
13425
13426
13427
13428
13429
13430
13431 fi
13432
13433 support_faketape=no
13434 support_mysql=no
13435 support_sqlite=no
13436 support_sqlite3=no
13437 support_postgresql=no
13438 support_dbi=no
13439 support_smartalloc=yes
13440 support_readline=yes
13441 support_conio=yes
13442 support_gnome=no
13443 support_bat=no
13444 support_wx_console=no
13445 support_tls=no
13446 support_crypto=no
13447 gnome_version=
13448 wx_version=
13449 support_static_tools=no
13450 support_static_fd=no
13451 support_static_sd=no
13452 support_static_dir=no
13453 support_static_cons=no
13454 support_python=no
13455 build_client_only=no
13456 build_dird=yes
13457 build_stored=yes
13458 cats=
13459 db_type=Internal
13460 DB_TYPE=bdb
13461
13462
13463 # -------------------------------------------
13464 # gnome (default off)
13465 # -------------------------------------------
13466 # Check whether --enable-gnome was given.
13467 if test "${enable_gnome+set}" = set; then
13468   enableval=$enable_gnome; if test x$enableval = xyes; then
13469     support_gnome=yes
13470   fi
13471 fi
13472
13473
13474 GNOME_DIR=
13475 if test x$support_gnome = xyes; then
13476   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13477   pkg=$?
13478   if test $pkg = 0; then
13479      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13480      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13481      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13482      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13483
13484
13485
13486
13487      GNOME_DIR=src/gnome2-console
13488      gnome_version="Version 2.x"
13489   else
13490      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13491 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13492    { (exit 1); exit 1; }; }
13493   fi
13494 fi
13495
13496
13497 # -------------------------------------------
13498 # bat (default off)
13499 # -------------------------------------------
13500 # Check whether --enable-bat was given.
13501 if test "${enable_bat+set}" = set; then
13502   enableval=$enable_bat; if test x$enableval = xyes; then
13503
13504 cat >>confdefs.h <<\_ACEOF
13505 #define HAVE_BAT 1
13506 _ACEOF
13507
13508     support_bat=yes
13509   fi
13510 fi
13511
13512
13513 BAT_DIR=
13514 if test x$support_bat = xyes; then
13515   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13516   pkg=$?
13517   if test $pkg = 0; then
13518      BAT_DIR=src/qt-console
13519   else
13520      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13521 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13522    { (exit 1); exit 1; }; }
13523   fi
13524 fi
13525
13526 #
13527 #  If bat is enabled, we need the qwt library
13528 got_qwt=no
13529 QWT_INC=
13530 QWT_LDFLAGS=
13531 QWT_LIB=
13532 QWT=
13533 if test x$support_bat = xyes; then
13534    { echo "$as_me:$LINENO: checking for qwt support" >&5
13535 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13536
13537 # Check whether --with-qwt was given.
13538 if test "${with_qwt+set}" = set; then
13539   withval=$with_qwt;
13540         case "$with_qwt" in
13541         no)
13542           ;;
13543         yes|*)
13544           if test -f ${with_qwt}/include/qwt.h; then
13545              QWT_INC="${with_qwt}/include"
13546              QWT_LDFLAGS="-L${with_qwt}/lib"
13547              QWT_LIB="-lqwt"
13548              QWT="qwt"
13549           fi
13550           ;;
13551         esac
13552
13553
13554 fi
13555
13556 #
13557 # Search in standard places, or --with-qwt not specified
13558 #
13559    if test x$QWT_INC = x; then
13560       for root in /usr /usr/local; do
13561          for ver in qwt qwt5 qwt-qt4; do
13562             if test -f ${root}/include/${ver}/qwt.h; then
13563                QWT_INC="${root}/include/${ver}"
13564                if test -d ${root}/lib64/; then
13565                   QWT_LDFLAGS="-L${root}/lib64"
13566                else
13567                   QWT_LDFLAGS="-L${root}/lib"
13568                fi
13569                QWT_LIB="-lqwt"
13570                QWT="qwt"
13571                got_qwt=yes
13572                break;
13573             fi
13574          done
13575       done
13576    fi
13577    if test x$QWT_INC = x; then
13578       { echo "$as_me:$LINENO: result: no" >&5
13579 echo "${ECHO_T}no" >&6; }
13580    else
13581
13582 cat >>confdefs.h <<\_ACEOF
13583 #define HAVE_QWT 1
13584 _ACEOF
13585
13586       { echo "$as_me:$LINENO: result: yes" >&5
13587 echo "${ECHO_T}yes" >&6; }
13588    fi
13589 fi
13590
13591
13592
13593
13594
13595
13596
13597
13598 # -------------------------------------------
13599 # bwx-console (default off)
13600 # -------------------------------------------
13601 # Check whether --enable-bwx-console was given.
13602 if test "${enable_bwx_console+set}" = set; then
13603   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13604     support_wx_console=yes
13605   fi
13606 fi
13607
13608
13609 WX_DIR=
13610 if test x$support_wx_console = xyes; then
13611   abc=`$WXCONFIG $WXFLAGS --cppflags`
13612   pkg=$?
13613   if test $pkg = 0; then
13614      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13615      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13616      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13617
13618
13619
13620      WX_DIR=src/wx-console
13621   else
13622      echo " "
13623      echo "wx-config program not found. bwx-console disabled."
13624      echo " "
13625      support_wx_console=no
13626   fi
13627 fi
13628
13629
13630
13631 # -------------------------------------------
13632 # tray-monitor (default off)
13633 # -------------------------------------------
13634 # Check whether --enable-tray-monitor was given.
13635 if test "${enable_tray_monitor+set}" = set; then
13636   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13637     support_tray_monitor=yes
13638   fi
13639 fi
13640
13641
13642 TRAY_MONITOR_DIR=
13643 if test x$support_tray_monitor = xyes; then
13644   abc=`$PKGCONFIG --exists gtk+-2.0`
13645   pkg=$?
13646   if test $pkg = 0; then
13647      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13648      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13649
13650
13651      TRAY_MONITOR_DIR=src/tray-monitor
13652      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13653      pkg=$?
13654      if test $pkg = 0; then
13655
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_GTK_2_4 1
13658 _ACEOF
13659
13660      fi
13661   fi
13662 fi
13663
13664
13665 # -------------------------------------------
13666 # smartalloc (default off)
13667 # -------------------------------------------
13668 # Check whether --enable-smartalloc was given.
13669 if test "${enable_smartalloc+set}" = set; then
13670   enableval=$enable_smartalloc; if test x$enableval = xno; then
13671     support_smartalloc=no
13672   fi
13673 fi
13674
13675
13676 if test x$support_smartalloc = xyes; then
13677
13678 cat >>confdefs.h <<\_ACEOF
13679 #define SMARTALLOC 1
13680 _ACEOF
13681
13682 fi
13683
13684 # -------------------------------------------
13685 # faketape (default off)
13686 # -------------------------------------------
13687 # Check whether --enable-faketape was given.
13688 if test "${enable_faketape+set}" = set; then
13689   enableval=$enable_faketape; if test x$enableval = xyes; then
13690     support_faketape=yes
13691   fi
13692 fi
13693
13694
13695 if test x$support_faketape = xyes; then
13696
13697 cat >>confdefs.h <<\_ACEOF
13698 #define USE_FAKETAPE 1
13699 _ACEOF
13700
13701 fi
13702
13703 # -------------------------------------------
13704 # static-tools (default off)
13705 # -------------------------------------------
13706 # Check whether --enable-static-tools was given.
13707 if test "${enable_static_tools+set}" = set; then
13708   enableval=$enable_static_tools; if test x$enableval = xyes; then
13709      support_static_tools=yes
13710    fi
13711 fi
13712
13713
13714 TTOOL_LDFLAGS=
13715 if test x$support_static_tools = xyes; then
13716    TTOOL_LDFLAGS="-static"
13717 fi
13718
13719
13720 # -------------------------------------------
13721 # static-fd    (default off)
13722 # -------------------------------------------
13723 # Check whether --enable-static-fd was given.
13724 if test "${enable_static_fd+set}" = set; then
13725   enableval=$enable_static_fd; if test x$enableval = xyes; then
13726      support_static_fd=yes
13727    fi
13728 fi
13729
13730
13731 STATIC_FD=
13732 if test x$support_static_fd = xyes; then
13733    STATIC_FD="static-bacula-fd"
13734 fi
13735
13736
13737 # -------------------------------------------
13738 # static-sd    (default off)
13739 # -------------------------------------------
13740 # Check whether --enable-static-sd was given.
13741 if test "${enable_static_sd+set}" = set; then
13742   enableval=$enable_static_sd; if test x$enableval = xyes; then
13743      support_static_sd=yes
13744    fi
13745 fi
13746
13747
13748 STATIC_SD=
13749 if test x$support_static_sd = xyes; then
13750    STATIC_SD="static-bacula-sd"
13751 fi
13752
13753
13754 # -------------------------------------------
13755 # static-dir   (default off)
13756 # -------------------------------------------
13757 # Check whether --enable-static-dir was given.
13758 if test "${enable_static_dir+set}" = set; then
13759   enableval=$enable_static_dir; if test x$enableval = xyes; then
13760      support_static_dir=yes
13761    fi
13762 fi
13763
13764
13765 STATIC_DIR=
13766 if test x$support_static_dir = xyes; then
13767    STATIC_DIR="static-bacula-dir"
13768 fi
13769
13770
13771 # -------------------------------------------
13772 # static-cons  (default off)
13773 # -------------------------------------------
13774 # Check whether --enable-static-cons was given.
13775 if test "${enable_static_cons+set}" = set; then
13776   enableval=$enable_static_cons; if test x$enableval = xyes; then
13777      support_static_cons=yes
13778    fi
13779 fi
13780
13781
13782 STATIC_CONS=
13783 STATIC_GNOME_CONS=
13784 STATIC_WX_CONS=
13785 if test x$support_static_cons = xyes; then
13786    STATIC_CONS="static-bconsole"
13787    STATIC_GNOME_CONS="static-bgnome-console"
13788    STATIC_WX_CONS="static-bwx-console"
13789 fi
13790
13791
13792
13793
13794 # -------------------------------------------
13795 # client_only  (default off)
13796 # -------------------------------------------
13797 # Check whether --enable-client-only was given.
13798 if test "${enable_client_only+set}" = set; then
13799   enableval=$enable_client_only; if test x$enableval = xyes; then
13800       build_client_only=yes
13801       db_type=None
13802       DB_TYPE=none
13803    fi
13804 fi
13805
13806 if test x$build_client_only = xno; then
13807    ALL_DIRS="subdirs"
13808 else
13809    ALL_DIRS=""
13810 fi
13811
13812
13813 # -------------------------------------------
13814 # director  (default on)
13815 # -------------------------------------------
13816 # Check whether --enable-build-dird was given.
13817 if test "${enable_build_dird+set}" = set; then
13818   enableval=$enable_build_dird; if test x$enableval = xno; then
13819       build_dird=no
13820    fi
13821 fi
13822
13823 if test x$build_dird = xyes; then
13824    DIRD_DIR="src/dird"
13825    DIR_TOOLS="DIRTOOLS"
13826 else
13827    DIRD_DIR=""
13828    DIR_TOOLS="NODIRTOOLS"
13829 fi
13830
13831
13832
13833 # -------------------------------------------
13834 # stored  (default on)
13835 # -------------------------------------------
13836 # Check whether --enable-build-stored was given.
13837 if test "${enable_build_stored+set}" = set; then
13838   enableval=$enable_build_stored; if test x$enableval = xno; then
13839       build_stored=no
13840    fi
13841 fi
13842
13843 if test x$build_stored = xyes; then
13844    STORED_DIR="src/stored"
13845 else
13846    STORED_DIR=""
13847 fi
13848
13849
13850 # ---------------------------------------------------
13851 # Check for conio (Bacula readline substitute)(
13852 # ---------------------------------------------------
13853 # this allows you to turn it completely off
13854 # Check whether --enable-conio was given.
13855 if test "${enable_conio+set}" = set; then
13856   enableval=$enable_conio; if test x$enableval = xno; then
13857      support_conio=no
13858   fi
13859
13860 fi
13861
13862
13863
13864 # ---------------------------------------------------
13865 # Check for IPv6 support
13866 # ---------------------------------------------------
13867 # this allows you to turn it completely off
13868 support_ipv6=yes
13869 # Check whether --enable-ipv6 was given.
13870 if test "${enable_ipv6+set}" = set; then
13871   enableval=$enable_ipv6; if test x$enableval = xno; then
13872      support_ipv6=no
13873   fi
13874
13875 fi
13876
13877
13878 if test x$support_ipv6 = xyes; then
13879     cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h.  */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h.  */
13885  #include <sys/types.h>
13886 #include <sys/socket.h>
13887 #include <netinet/in.h>
13888 int
13889 main ()
13890 {
13891 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext conftest$ac_exeext
13897 if { (ac_try="$ac_link"
13898 case "(($ac_try" in
13899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900   *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903   (eval "$ac_link") 2>conftest.er1
13904   ac_status=$?
13905   grep -v '^ *+' conftest.er1 >conftest.err
13906   rm -f conftest.er1
13907   cat conftest.err >&5
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } && {
13910          test -z "$ac_c_werror_flag" ||
13911          test ! -s conftest.err
13912        } && test -s conftest$ac_exeext &&
13913        $as_test_x conftest$ac_exeext; then
13914   support_ipv6=yes
13915 else
13916   echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919         support_ipv6=no
13920 fi
13921
13922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13923       conftest$ac_exeext conftest.$ac_ext
13924 fi
13925
13926 if test x$support_ipv6 = xyes; then
13927
13928 cat >>confdefs.h <<\_ACEOF
13929 #define HAVE_IPV6 1
13930 _ACEOF
13931
13932 fi
13933
13934
13935
13936 got_conio="no"
13937 if test x$support_conio = xyes; then
13938    if test "${ac_cv_header_termcap_h+set}" = set; then
13939   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13940 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13941 if test "${ac_cv_header_termcap_h+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 fi
13944 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13945 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13946 else
13947   # Is the header compilable?
13948 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13949 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13950 cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956 $ac_includes_default
13957 #include <termcap.h>
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963   *) ac_try_echo=$ac_try;;
13964 esac
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966   (eval "$ac_compile") 2>conftest.er1
13967   ac_status=$?
13968   grep -v '^ *+' conftest.er1 >conftest.err
13969   rm -f conftest.er1
13970   cat conftest.err >&5
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } && {
13973          test -z "$ac_c_werror_flag" ||
13974          test ! -s conftest.err
13975        } && test -s conftest.$ac_objext; then
13976   ac_header_compiler=yes
13977 else
13978   echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981         ac_header_compiler=no
13982 fi
13983
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 echo "${ECHO_T}$ac_header_compiler" >&6; }
13987
13988 # Is the header present?
13989 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13990 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997 #include <termcap.h>
13998 _ACEOF
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } >/dev/null && {
14012          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013          test ! -s conftest.err
14014        }; then
14015   ac_header_preproc=yes
14016 else
14017   echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020   ac_header_preproc=no
14021 fi
14022
14023 rm -f conftest.err conftest.$ac_ext
14024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025 echo "${ECHO_T}$ac_header_preproc" >&6; }
14026
14027 # So?  What about this header?
14028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14029   yes:no: )
14030     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14031 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14032     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14033 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14034     ac_header_preproc=yes
14035     ;;
14036   no:yes:* )
14037     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14038 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14040 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14041     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14042 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14043     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14044 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14045     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14046 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14047     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14048 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14049
14050     ;;
14051 esac
14052 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14053 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14054 if test "${ac_cv_header_termcap_h+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   ac_cv_header_termcap_h=$ac_header_preproc
14058 fi
14059 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14060 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14061
14062 fi
14063 if test $ac_cv_header_termcap_h = yes; then
14064    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14065 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14066 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-ltermcap  $LIBS"
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077
14078 /* Override any GCC internal prototype to avoid an error.
14079    Use char because int might match the return type of a GCC
14080    builtin and then its argument prototype would still apply.  */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char tgetent ();
14085 int
14086 main ()
14087 {
14088 return tgetent ();
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (ac_try="$ac_link"
14095 case "(($ac_try" in
14096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097   *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100   (eval "$ac_link") 2>conftest.er1
14101   ac_status=$?
14102   grep -v '^ *+' conftest.er1 >conftest.err
14103   rm -f conftest.er1
14104   cat conftest.err >&5
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } && {
14107          test -z "$ac_c_werror_flag" ||
14108          test ! -s conftest.err
14109        } && test -s conftest$ac_exeext &&
14110        $as_test_x conftest$ac_exeext; then
14111   ac_cv_lib_termcap_tgetent=yes
14112 else
14113   echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116         ac_cv_lib_termcap_tgetent=no
14117 fi
14118
14119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14120       conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14124 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14125 if test $ac_cv_lib_termcap_tgetent = yes; then
14126    CONS_LIBS="-ltermcap"
14127          CONS_OBJ="conio.o"
14128          CONS_SRC="conio.c"
14129          got_conio="yes"
14130          support_readline=no
14131
14132 cat >>confdefs.h <<\_ACEOF
14133 #define HAVE_CONIO 1
14134 _ACEOF
14135
14136
14137 else
14138    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14139 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14140 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14141   echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143   ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lncurses  $LIBS"
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151
14152 /* Override any GCC internal prototype to avoid an error.
14153    Use char because int might match the return type of a GCC
14154    builtin and then its argument prototype would still apply.  */
14155 #ifdef __cplusplus
14156 extern "C"
14157 #endif
14158 char tgetent ();
14159 int
14160 main ()
14161 {
14162 return tgetent ();
14163   ;
14164   return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171   *) ac_try_echo=$ac_try;;
14172 esac
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174   (eval "$ac_link") 2>conftest.er1
14175   ac_status=$?
14176   grep -v '^ *+' conftest.er1 >conftest.err
14177   rm -f conftest.er1
14178   cat conftest.err >&5
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); } && {
14181          test -z "$ac_c_werror_flag" ||
14182          test ! -s conftest.err
14183        } && test -s conftest$ac_exeext &&
14184        $as_test_x conftest$ac_exeext; then
14185   ac_cv_lib_ncurses_tgetent=yes
14186 else
14187   echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190         ac_cv_lib_ncurses_tgetent=no
14191 fi
14192
14193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14194       conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14196 fi
14197 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14198 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14199 if test $ac_cv_lib_ncurses_tgetent = yes; then
14200    CONS_LIBS="-lncurses"
14201            CONS_OBJ="conio.o"
14202            CONS_SRC="conio.c"
14203            got_conio="yes"
14204            support_readline=no
14205
14206 cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_CONIO 1
14208 _ACEOF
14209
14210
14211 fi
14212
14213
14214 fi
14215
14216
14217 else
14218
14219
14220 for ac_header in curses.h
14221 do
14222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 fi
14229 ac_res=`eval echo '${'$as_ac_Header'}'`
14230                { echo "$as_me:$LINENO: result: $ac_res" >&5
14231 echo "${ECHO_T}$ac_res" >&6; }
14232 else
14233   # Is the header compilable?
14234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14236 cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h.  */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h.  */
14242 $ac_includes_default
14243 #include <$ac_header>
14244 _ACEOF
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
14247 case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_compile") 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } && {
14259          test -z "$ac_c_werror_flag" ||
14260          test ! -s conftest.err
14261        } && test -s conftest.$ac_objext; then
14262   ac_header_compiler=yes
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267         ac_header_compiler=no
14268 fi
14269
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14272 echo "${ECHO_T}$ac_header_compiler" >&6; }
14273
14274 # Is the header present?
14275 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283 #include <$ac_header>
14284 _ACEOF
14285 if { (ac_try="$ac_cpp conftest.$ac_ext"
14286 case "(($ac_try" in
14287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288   *) ac_try_echo=$ac_try;;
14289 esac
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14292   ac_status=$?
14293   grep -v '^ *+' conftest.er1 >conftest.err
14294   rm -f conftest.er1
14295   cat conftest.err >&5
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } >/dev/null && {
14298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14299          test ! -s conftest.err
14300        }; then
14301   ac_header_preproc=yes
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306   ac_header_preproc=no
14307 fi
14308
14309 rm -f conftest.err conftest.$ac_ext
14310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14311 echo "${ECHO_T}$ac_header_preproc" >&6; }
14312
14313 # So?  What about this header?
14314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315   yes:no: )
14316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14320     ac_header_preproc=yes
14321     ;;
14322   no:yes:* )
14323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14335
14336     ;;
14337 esac
14338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343   eval "$as_ac_Header=\$ac_header_preproc"
14344 fi
14345 ac_res=`eval echo '${'$as_ac_Header'}'`
14346                { echo "$as_me:$LINENO: result: $ac_res" >&5
14347 echo "${ECHO_T}$ac_res" >&6; }
14348
14349 fi
14350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14351   cat >>confdefs.h <<_ACEOF
14352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14353 _ACEOF
14354
14355 fi
14356
14357 done
14358
14359          { echo "$as_me:$LINENO: checking for term.h" >&5
14360 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14361 if test "${ac_cv_header_term_h+set}" = set; then
14362   echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364   cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h.  */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h.  */
14370 #if HAVE_CURSES_H
14371 #include <curses.h>
14372 #endif
14373
14374
14375 #include <term.h>
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_compile") 2>conftest.er1
14385   ac_status=$?
14386   grep -v '^ *+' conftest.er1 >conftest.err
14387   rm -f conftest.er1
14388   cat conftest.err >&5
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } && {
14391          test -z "$ac_c_werror_flag" ||
14392          test ! -s conftest.err
14393        } && test -s conftest.$ac_objext; then
14394   ac_cv_header_term_h=yes
14395 else
14396   echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14398
14399         ac_cv_header_term_h=no
14400 fi
14401
14402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 fi
14404 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14405 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14406 if test $ac_cv_header_term_h = yes; then
14407    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14408 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14409 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   ac_check_lib_save_LIBS=$LIBS
14413 LIBS="-lcurses  $LIBS"
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420
14421 /* Override any GCC internal prototype to avoid an error.
14422    Use char because int might match the return type of a GCC
14423    builtin and then its argument prototype would still apply.  */
14424 #ifdef __cplusplus
14425 extern "C"
14426 #endif
14427 char tgetent ();
14428 int
14429 main ()
14430 {
14431 return tgetent ();
14432   ;
14433   return 0;
14434 }
14435 _ACEOF
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (ac_try="$ac_link"
14438 case "(($ac_try" in
14439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440   *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443   (eval "$ac_link") 2>conftest.er1
14444   ac_status=$?
14445   grep -v '^ *+' conftest.er1 >conftest.err
14446   rm -f conftest.er1
14447   cat conftest.err >&5
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } && {
14450          test -z "$ac_c_werror_flag" ||
14451          test ! -s conftest.err
14452        } && test -s conftest$ac_exeext &&
14453        $as_test_x conftest$ac_exeext; then
14454   ac_cv_lib_curses_tgetent=yes
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459         ac_cv_lib_curses_tgetent=no
14460 fi
14461
14462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14463       conftest$ac_exeext conftest.$ac_ext
14464 LIBS=$ac_check_lib_save_LIBS
14465 fi
14466 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14467 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14468 if test $ac_cv_lib_curses_tgetent = yes; then
14469    CONS_LIBS="-lcurses"
14470                    CONS_OBJ="conio.o"
14471                    CONS_SRC="conio.c"
14472                    got_conio="yes"
14473                    support_readline=no
14474
14475 cat >>confdefs.h <<\_ACEOF
14476 #define HAVE_CONIO 1
14477 _ACEOF
14478
14479
14480 fi
14481
14482
14483 else
14484    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14485 fi
14486
14487
14488
14489 fi
14490
14491
14492 fi
14493
14494
14495 # ---------------------------------------------------
14496 # Check for readline support/directory (default off)
14497 # ---------------------------------------------------
14498 # this allows you to turn it completely off
14499 # Check whether --enable-readline was given.
14500 if test "${enable_readline+set}" = set; then
14501   enableval=$enable_readline; if test x$enableval = xno; then
14502     support_readline=no
14503   fi
14504 fi
14505
14506
14507 got_readline="no"
14508 READLINE_SRC=
14509 if test x$support_readline = xyes; then
14510
14511 # Check whether --with-readline was given.
14512 if test "${with_readline+set}" = set; then
14513   withval=$with_readline;
14514         case "$with_readline" in
14515         no) : ;;
14516         yes|*)
14517           if test -f ${with_readline}/readline.h; then
14518              CONS_INC="-I${with_readline}"
14519              CONS_LDFLAGS="-L$with_readline"
14520           elif test -f ${with_readline}/include/readline/readline.h; then
14521              CONS_INC="-I${with_readline}/include/readline"
14522              CONS_LDFLAGS="-L${with_readline}/lib"
14523              with_readline="${with_readline}/include/readline"
14524           else
14525              with_readline="/usr/include/readline"
14526           fi
14527           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14529   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14530 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532   echo $ECHO_N "(cached) $ECHO_C" >&6
14533 fi
14534 ac_res=`eval echo '${'$as_ac_Header'}'`
14535                { echo "$as_me:$LINENO: result: $ac_res" >&5
14536 echo "${ECHO_T}$ac_res" >&6; }
14537 else
14538   # Is the header compilable?
14539 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14540 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14541 cat >conftest.$ac_ext <<_ACEOF
14542 /* confdefs.h.  */
14543 _ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h.  */
14547 $ac_includes_default
14548 #include <${with_readline}/readline.h>
14549 _ACEOF
14550 rm -f conftest.$ac_objext
14551 if { (ac_try="$ac_compile"
14552 case "(($ac_try" in
14553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554   *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557   (eval "$ac_compile") 2>conftest.er1
14558   ac_status=$?
14559   grep -v '^ *+' conftest.er1 >conftest.err
14560   rm -f conftest.er1
14561   cat conftest.err >&5
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } && {
14564          test -z "$ac_c_werror_flag" ||
14565          test ! -s conftest.err
14566        } && test -s conftest.$ac_objext; then
14567   ac_header_compiler=yes
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572         ac_header_compiler=no
14573 fi
14574
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14577 echo "${ECHO_T}$ac_header_compiler" >&6; }
14578
14579 # Is the header present?
14580 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14581 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h.  */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h.  */
14588 #include <${with_readline}/readline.h>
14589 _ACEOF
14590 if { (ac_try="$ac_cpp conftest.$ac_ext"
14591 case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14597   ac_status=$?
14598   grep -v '^ *+' conftest.er1 >conftest.err
14599   rm -f conftest.er1
14600   cat conftest.err >&5
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); } >/dev/null && {
14603          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14604          test ! -s conftest.err
14605        }; then
14606   ac_header_preproc=yes
14607 else
14608   echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14610
14611   ac_header_preproc=no
14612 fi
14613
14614 rm -f conftest.err conftest.$ac_ext
14615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14616 echo "${ECHO_T}$ac_header_preproc" >&6; }
14617
14618 # So?  What about this header?
14619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14620   yes:no: )
14621     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14622 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14623     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14624 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14625     ac_header_preproc=yes
14626     ;;
14627   no:yes:* )
14628     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14629 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14630     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14631 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14632     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14633 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14634     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14635 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14636     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14637 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14638     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14639 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14640
14641     ;;
14642 esac
14643 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14644 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648   eval "$as_ac_Header=\$ac_header_preproc"
14649 fi
14650 ac_res=`eval echo '${'$as_ac_Header'}'`
14651                { echo "$as_me:$LINENO: result: $ac_res" >&5
14652 echo "${ECHO_T}$ac_res" >&6; }
14653
14654 fi
14655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14656
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_READLINE 1
14659 _ACEOF
14660
14661                CONS_LIBS="-lreadline -lhistory -ltermcap"
14662                got_readline="yes"
14663
14664 else
14665    echo " "
14666                echo "readline.h not found. readline turned off ..."
14667                echo " "
14668
14669
14670 fi
14671
14672
14673           ;;
14674         esac
14675
14676 else
14677
14678        # check for standard readline library
14679        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14680   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14681 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14682 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 fi
14685 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14686 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14687 else
14688   # Is the header compilable?
14689 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14690 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h.  */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h.  */
14697 $ac_includes_default
14698 #include </usr/include/readline/readline.h>
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704   *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707   (eval "$ac_compile") 2>conftest.er1
14708   ac_status=$?
14709   grep -v '^ *+' conftest.er1 >conftest.err
14710   rm -f conftest.er1
14711   cat conftest.err >&5
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); } && {
14714          test -z "$ac_c_werror_flag" ||
14715          test ! -s conftest.err
14716        } && test -s conftest.$ac_objext; then
14717   ac_header_compiler=yes
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722         ac_header_compiler=no
14723 fi
14724
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14727 echo "${ECHO_T}$ac_header_compiler" >&6; }
14728
14729 # Is the header present?
14730 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14731 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h.  */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h.  */
14738 #include </usr/include/readline/readline.h>
14739 _ACEOF
14740 if { (ac_try="$ac_cpp conftest.$ac_ext"
14741 case "(($ac_try" in
14742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743   *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14747   ac_status=$?
14748   grep -v '^ *+' conftest.er1 >conftest.err
14749   rm -f conftest.er1
14750   cat conftest.err >&5
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } >/dev/null && {
14753          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14754          test ! -s conftest.err
14755        }; then
14756   ac_header_preproc=yes
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761   ac_header_preproc=no
14762 fi
14763
14764 rm -f conftest.err conftest.$ac_ext
14765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14766 echo "${ECHO_T}$ac_header_preproc" >&6; }
14767
14768 # So?  What about this header?
14769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14770   yes:no: )
14771     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14772 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14773     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14774 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14775     ac_header_preproc=yes
14776     ;;
14777   no:yes:* )
14778     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14779 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14780     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14781 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14782     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14783 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14784     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14785 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14787 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14789 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14790
14791     ;;
14792 esac
14793 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14794 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14795 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14799 fi
14800 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14801 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14802
14803 fi
14804 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14805
14806 cat >>confdefs.h <<\_ACEOF
14807 #define HAVE_READLINE 1
14808 _ACEOF
14809
14810            got_readline="yes"
14811            CONS_INC="-I/usr/include/readline"
14812            CONS_LIBS="-lreadline -ltermcap"
14813
14814 else
14815
14816            # Did not find standard library, so try Bacula's default
14817             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14819   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14820 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 fi
14824 ac_res=`eval echo '${'$as_ac_Header'}'`
14825                { echo "$as_me:$LINENO: result: $ac_res" >&5
14826 echo "${ECHO_T}$ac_res" >&6; }
14827 else
14828   # Is the header compilable?
14829 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14830 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h.  */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h.  */
14837 $ac_includes_default
14838 #include <${TOP_DIR}/depkgs/readline/readline.h>
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844   *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847   (eval "$ac_compile") 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } && {
14854          test -z "$ac_c_werror_flag" ||
14855          test ! -s conftest.err
14856        } && test -s conftest.$ac_objext; then
14857   ac_header_compiler=yes
14858 else
14859   echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862         ac_header_compiler=no
14863 fi
14864
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14867 echo "${ECHO_T}$ac_header_compiler" >&6; }
14868
14869 # Is the header present?
14870 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14871 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878 #include <${TOP_DIR}/depkgs/readline/readline.h>
14879 _ACEOF
14880 if { (ac_try="$ac_cpp conftest.$ac_ext"
14881 case "(($ac_try" in
14882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883   *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14887   ac_status=$?
14888   grep -v '^ *+' conftest.er1 >conftest.err
14889   rm -f conftest.er1
14890   cat conftest.err >&5
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } >/dev/null && {
14893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14894          test ! -s conftest.err
14895        }; then
14896   ac_header_preproc=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901   ac_header_preproc=no
14902 fi
14903
14904 rm -f conftest.err conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14906 echo "${ECHO_T}$ac_header_preproc" >&6; }
14907
14908 # So?  What about this header?
14909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14910   yes:no: )
14911     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14912 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14913     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14914 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14915     ac_header_preproc=yes
14916     ;;
14917   no:yes:* )
14918     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14919 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14920     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14921 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14922     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14923 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14924     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14925 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14926     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14927 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14928     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14929 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14930
14931     ;;
14932 esac
14933 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14934 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936   echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938   eval "$as_ac_Header=\$ac_header_preproc"
14939 fi
14940 ac_res=`eval echo '${'$as_ac_Header'}'`
14941                { echo "$as_me:$LINENO: result: $ac_res" >&5
14942 echo "${ECHO_T}$ac_res" >&6; }
14943
14944 fi
14945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14946
14947 cat >>confdefs.h <<\_ACEOF
14948 #define HAVE_READLINE 1
14949 _ACEOF
14950
14951                  got_readline="yes"
14952                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14953                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14954                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14955                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14956
14957 else
14958    echo " "
14959                 echo "readline.h not found. readline turned off ..."
14960                 echo " "
14961
14962
14963 fi
14964
14965
14966
14967
14968 fi
14969
14970
14971
14972
14973 fi
14974
14975 fi
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986 # Minimal stuff for readline Makefile configuration
14987 MAKE_SHELL=/bin/sh
14988
14989 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14990 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14991 if test "${ac_cv_header_stat_broken+set}" = set; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000 #include <sys/types.h>
15001 #include <sys/stat.h>
15002
15003 #if defined S_ISBLK && defined S_IFDIR
15004 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15005 #endif
15006
15007 #if defined S_ISBLK && defined S_IFCHR
15008 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15009 #endif
15010
15011 #if defined S_ISLNK && defined S_IFREG
15012 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15013 #endif
15014
15015 #if defined S_ISSOCK && defined S_IFREG
15016 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15017 #endif
15018
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (ac_try="$ac_compile"
15022 case "(($ac_try" in
15023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024   *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027   (eval "$ac_compile") 2>conftest.er1
15028   ac_status=$?
15029   grep -v '^ *+' conftest.er1 >conftest.err
15030   rm -f conftest.er1
15031   cat conftest.err >&5
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); } && {
15034          test -z "$ac_c_werror_flag" ||
15035          test ! -s conftest.err
15036        } && test -s conftest.$ac_objext; then
15037   ac_cv_header_stat_broken=no
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042         ac_cv_header_stat_broken=yes
15043 fi
15044
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 fi
15047 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15048 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15049 if test $ac_cv_header_stat_broken = yes; then
15050
15051 cat >>confdefs.h <<\_ACEOF
15052 #define STAT_MACROS_BROKEN 1
15053 _ACEOF
15054
15055 fi
15056
15057
15058
15059
15060
15061
15062 ac_header_dirent=no
15063 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15064   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15065 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15066 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15068   echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070   cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 #include <sys/types.h>
15077 #include <$ac_hdr>
15078
15079 int
15080 main ()
15081 {
15082 if ((DIR *) 0)
15083 return 0;
15084   ;
15085   return 0;
15086 }
15087 _ACEOF
15088 rm -f conftest.$ac_objext
15089 if { (ac_try="$ac_compile"
15090 case "(($ac_try" in
15091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092   *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095   (eval "$ac_compile") 2>conftest.er1
15096   ac_status=$?
15097   grep -v '^ *+' conftest.er1 >conftest.err
15098   rm -f conftest.er1
15099   cat conftest.err >&5
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } && {
15102          test -z "$ac_c_werror_flag" ||
15103          test ! -s conftest.err
15104        } && test -s conftest.$ac_objext; then
15105   eval "$as_ac_Header=yes"
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110         eval "$as_ac_Header=no"
15111 fi
15112
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 fi
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116                { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15119   cat >>confdefs.h <<_ACEOF
15120 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15121 _ACEOF
15122
15123 ac_header_dirent=$ac_hdr; break
15124 fi
15125
15126 done
15127 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15128 if test $ac_header_dirent = dirent.h; then
15129   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15130 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15131 if test "${ac_cv_search_opendir+set}" = set; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134   ac_func_search_save_LIBS=$LIBS
15135 cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h.  */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h.  */
15141
15142 /* Override any GCC internal prototype to avoid an error.
15143    Use char because int might match the return type of a GCC
15144    builtin and then its argument prototype would still apply.  */
15145 #ifdef __cplusplus
15146 extern "C"
15147 #endif
15148 char opendir ();
15149 int
15150 main ()
15151 {
15152 return opendir ();
15153   ;
15154   return 0;
15155 }
15156 _ACEOF
15157 for ac_lib in '' dir; do
15158   if test -z "$ac_lib"; then
15159     ac_res="none required"
15160   else
15161     ac_res=-l$ac_lib
15162     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15163   fi
15164   rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (ac_try="$ac_link"
15166 case "(($ac_try" in
15167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168   *) ac_try_echo=$ac_try;;
15169 esac
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171   (eval "$ac_link") 2>conftest.er1
15172   ac_status=$?
15173   grep -v '^ *+' conftest.er1 >conftest.err
15174   rm -f conftest.er1
15175   cat conftest.err >&5
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } && {
15178          test -z "$ac_c_werror_flag" ||
15179          test ! -s conftest.err
15180        } && test -s conftest$ac_exeext &&
15181        $as_test_x conftest$ac_exeext; then
15182   ac_cv_search_opendir=$ac_res
15183 else
15184   echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15186
15187
15188 fi
15189
15190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15191       conftest$ac_exeext
15192   if test "${ac_cv_search_opendir+set}" = set; then
15193   break
15194 fi
15195 done
15196 if test "${ac_cv_search_opendir+set}" = set; then
15197   :
15198 else
15199   ac_cv_search_opendir=no
15200 fi
15201 rm conftest.$ac_ext
15202 LIBS=$ac_func_search_save_LIBS
15203 fi
15204 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15205 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15206 ac_res=$ac_cv_search_opendir
15207 if test "$ac_res" != no; then
15208   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15209
15210 fi
15211
15212 else
15213   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15214 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15215 if test "${ac_cv_search_opendir+set}" = set; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   ac_func_search_save_LIBS=$LIBS
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225
15226 /* Override any GCC internal prototype to avoid an error.
15227    Use char because int might match the return type of a GCC
15228    builtin and then its argument prototype would still apply.  */
15229 #ifdef __cplusplus
15230 extern "C"
15231 #endif
15232 char opendir ();
15233 int
15234 main ()
15235 {
15236 return opendir ();
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 for ac_lib in '' x; do
15242   if test -z "$ac_lib"; then
15243     ac_res="none required"
15244   else
15245     ac_res=-l$ac_lib
15246     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15247   fi
15248   rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_link") 2>conftest.er1
15256   ac_status=$?
15257   grep -v '^ *+' conftest.er1 >conftest.err
15258   rm -f conftest.er1
15259   cat conftest.err >&5
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } && {
15262          test -z "$ac_c_werror_flag" ||
15263          test ! -s conftest.err
15264        } && test -s conftest$ac_exeext &&
15265        $as_test_x conftest$ac_exeext; then
15266   ac_cv_search_opendir=$ac_res
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271
15272 fi
15273
15274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15275       conftest$ac_exeext
15276   if test "${ac_cv_search_opendir+set}" = set; then
15277   break
15278 fi
15279 done
15280 if test "${ac_cv_search_opendir+set}" = set; then
15281   :
15282 else
15283   ac_cv_search_opendir=no
15284 fi
15285 rm conftest.$ac_ext
15286 LIBS=$ac_func_search_save_LIBS
15287 fi
15288 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15289 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15290 ac_res=$ac_cv_search_opendir
15291 if test "$ac_res" != no; then
15292   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15293
15294 fi
15295
15296 fi
15297
15298
15299
15300
15301
15302
15303
15304
15305 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15306 do
15307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h.  */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h.  */
15319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15321 #define $ac_func innocuous_$ac_func
15322
15323 /* System header to define __stub macros and hopefully few prototypes,
15324     which can conflict with char $ac_func (); below.
15325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15326     <limits.h> exists even on freestanding compilers.  */
15327
15328 #ifdef __STDC__
15329 # include <limits.h>
15330 #else
15331 # include <assert.h>
15332 #endif
15333
15334 #undef $ac_func
15335
15336 /* Override any GCC internal prototype to avoid an error.
15337    Use char because int might match the return type of a GCC
15338    builtin and then its argument prototype would still apply.  */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char $ac_func ();
15343 /* The GNU C library defines this for functions which it implements
15344     to always fail with ENOSYS.  Some functions are actually named
15345     something starting with __ and the normal name is an alias.  */
15346 #if defined __stub_$ac_func || defined __stub___$ac_func
15347 choke me
15348 #endif
15349
15350 int
15351 main ()
15352 {
15353 return $ac_func ();
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (ac_try="$ac_link"
15360 case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_link") 2>conftest.er1
15366   ac_status=$?
15367   grep -v '^ *+' conftest.er1 >conftest.err
15368   rm -f conftest.er1
15369   cat conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } && {
15372          test -z "$ac_c_werror_flag" ||
15373          test ! -s conftest.err
15374        } && test -s conftest$ac_exeext &&
15375        $as_test_x conftest$ac_exeext; then
15376   eval "$as_ac_var=yes"
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381         eval "$as_ac_var=no"
15382 fi
15383
15384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385       conftest$ac_exeext conftest.$ac_ext
15386 fi
15387 ac_res=`eval echo '${'$as_ac_var'}'`
15388                { echo "$as_me:$LINENO: result: $ac_res" >&5
15389 echo "${ECHO_T}$ac_res" >&6; }
15390 if test `eval echo '${'$as_ac_var'}'` = yes; then
15391   cat >>confdefs.h <<_ACEOF
15392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15393 _ACEOF
15394
15395 fi
15396 done
15397
15398
15399
15400 for ac_func in nanosleep nl_langinfo
15401 do
15402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408   cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15416 #define $ac_func innocuous_$ac_func
15417
15418 /* System header to define __stub macros and hopefully few prototypes,
15419     which can conflict with char $ac_func (); below.
15420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15421     <limits.h> exists even on freestanding compilers.  */
15422
15423 #ifdef __STDC__
15424 # include <limits.h>
15425 #else
15426 # include <assert.h>
15427 #endif
15428
15429 #undef $ac_func
15430
15431 /* Override any GCC internal prototype to avoid an error.
15432    Use char because int might match the return type of a GCC
15433    builtin and then its argument prototype would still apply.  */
15434 #ifdef __cplusplus
15435 extern "C"
15436 #endif
15437 char $ac_func ();
15438 /* The GNU C library defines this for functions which it implements
15439     to always fail with ENOSYS.  Some functions are actually named
15440     something starting with __ and the normal name is an alias.  */
15441 #if defined __stub_$ac_func || defined __stub___$ac_func
15442 choke me
15443 #endif
15444
15445 int
15446 main ()
15447 {
15448 return $ac_func ();
15449   ;
15450   return 0;
15451 }
15452 _ACEOF
15453 rm -f conftest.$ac_objext conftest$ac_exeext
15454 if { (ac_try="$ac_link"
15455 case "(($ac_try" in
15456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457   *) ac_try_echo=$ac_try;;
15458 esac
15459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460   (eval "$ac_link") 2>conftest.er1
15461   ac_status=$?
15462   grep -v '^ *+' conftest.er1 >conftest.err
15463   rm -f conftest.er1
15464   cat conftest.err >&5
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); } && {
15467          test -z "$ac_c_werror_flag" ||
15468          test ! -s conftest.err
15469        } && test -s conftest$ac_exeext &&
15470        $as_test_x conftest$ac_exeext; then
15471   eval "$as_ac_var=yes"
15472 else
15473   echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476         eval "$as_ac_var=no"
15477 fi
15478
15479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15480       conftest$ac_exeext conftest.$ac_ext
15481 fi
15482 ac_res=`eval echo '${'$as_ac_var'}'`
15483                { echo "$as_me:$LINENO: result: $ac_res" >&5
15484 echo "${ECHO_T}$ac_res" >&6; }
15485 if test `eval echo '${'$as_ac_var'}'` = yes; then
15486   cat >>confdefs.h <<_ACEOF
15487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15488 _ACEOF
15489
15490 fi
15491 done
15492
15493
15494 for ac_header in varargs.h
15495 do
15496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501   echo $ECHO_N "(cached) $ECHO_C" >&6
15502 fi
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504                { echo "$as_me:$LINENO: result: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15506 else
15507   # Is the header compilable?
15508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15510 cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h.  */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h.  */
15516 $ac_includes_default
15517 #include <$ac_header>
15518 _ACEOF
15519 rm -f conftest.$ac_objext
15520 if { (ac_try="$ac_compile"
15521 case "(($ac_try" in
15522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523   *) ac_try_echo=$ac_try;;
15524 esac
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526   (eval "$ac_compile") 2>conftest.er1
15527   ac_status=$?
15528   grep -v '^ *+' conftest.er1 >conftest.err
15529   rm -f conftest.er1
15530   cat conftest.err >&5
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); } && {
15533          test -z "$ac_c_werror_flag" ||
15534          test ! -s conftest.err
15535        } && test -s conftest.$ac_objext; then
15536   ac_header_compiler=yes
15537 else
15538   echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541         ac_header_compiler=no
15542 fi
15543
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546 echo "${ECHO_T}$ac_header_compiler" >&6; }
15547
15548 # Is the header present?
15549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 #include <$ac_header>
15558 _ACEOF
15559 if { (ac_try="$ac_cpp conftest.$ac_ext"
15560 case "(($ac_try" in
15561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562   *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15566   ac_status=$?
15567   grep -v '^ *+' conftest.er1 >conftest.err
15568   rm -f conftest.er1
15569   cat conftest.err >&5
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } >/dev/null && {
15572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15573          test ! -s conftest.err
15574        }; then
15575   ac_header_preproc=yes
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580   ac_header_preproc=no
15581 fi
15582
15583 rm -f conftest.err conftest.$ac_ext
15584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15585 echo "${ECHO_T}$ac_header_preproc" >&6; }
15586
15587 # So?  What about this header?
15588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15589   yes:no: )
15590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15594     ac_header_preproc=yes
15595     ;;
15596   no:yes:* )
15597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15609
15610     ;;
15611 esac
15612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617   eval "$as_ac_Header=\$ac_header_preproc"
15618 fi
15619 ac_res=`eval echo '${'$as_ac_Header'}'`
15620                { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622
15623 fi
15624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15625   cat >>confdefs.h <<_ACEOF
15626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15627 _ACEOF
15628
15629 fi
15630
15631 done
15632
15633
15634 # End of readline/conio stuff
15635 # -----------------------------------------------------------------------
15636
15637 # -----------------------------------------------------------------------
15638 #  Check for Python support
15639 #
15640 { echo "$as_me:$LINENO: checking for Python support" >&5
15641 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15642
15643 # Check whether --with-python was given.
15644 if test "${with_python+set}" = set; then
15645   withval=$with_python;
15646   PYTHON_INCDIR=
15647   PYTHON_LIBS=
15648   if test "$withval" != "no"; then
15649      if test "$withval" = "yes"; then
15650         for python_root in /usr /usr/local /usr/sfw; do
15651           for ver in python2.2 python2.3 python2.4 python2.5; do
15652              if test -f $python_root/include/${ver}/Python.h; then
15653                 PYTHON_INCDIR=-I$python_root/include/${ver}
15654                 if test -d $python_root/lib64/${ver}/config; then
15655                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15656                 else
15657                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15658                 fi
15659                 break
15660              fi
15661           done
15662         done
15663         if test x$PYTHON_INCDIR = x; then
15664           if test -f $prefix/include/Python.h; then
15665              PYTHON_INCDIR=-I$prefix/include
15666              if test -d $prefix/lib64/config; then
15667                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15668              else
15669                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15670              fi
15671           else
15672            { echo "$as_me:$LINENO: result: no" >&5
15673 echo "${ECHO_T}no" >&6; }
15674            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15675 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15676    { (exit 1); exit 1; }; }
15677           fi
15678         fi
15679      else
15680         if test -f $withval/Python.h; then
15681            PYTHON_INCDIR=-I$withval
15682            PYTHON_LIBS="-L$withval/config -lpython"
15683         elif test -f $withval/include/Python.h; then
15684            PYTHON_INCDIR=-I$withval/include
15685            if test -d $withval/lib64/config; then
15686               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15687            else
15688               PYTHON_LIBS="-L$withval/lib/config -lpython"
15689            fi
15690         elif test -f $withval/include/python/Python.h; then
15691            PYTHON_INCDIR=-I$withval/include/python
15692            if test -d $withval/lib64/python/config; then
15693               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15694            else
15695               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15696            fi
15697         else
15698            { echo "$as_me:$LINENO: result: no" >&5
15699 echo "${ECHO_T}no" >&6; }
15700            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15701 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15702    { (exit 1); exit 1; }; }
15703         fi
15704      fi
15705      cat >>confdefs.h <<\_ACEOF
15706 #define HAVE_PYTHON 1
15707 _ACEOF
15708
15709      { echo "$as_me:$LINENO: result: yes" >&5
15710 echo "${ECHO_T}yes" >&6; }
15711      support_python=yes
15712      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15713 echo "$as_me: checking for more Python libs" >&6;}
15714      saved_LIBS="$LIBS"; LIBS=
15715      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15716 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15717 if test "${ac_cv_search_shm_open+set}" = set; then
15718   echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720   ac_func_search_save_LIBS=$LIBS
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h.  */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h.  */
15727
15728 /* Override any GCC internal prototype to avoid an error.
15729    Use char because int might match the return type of a GCC
15730    builtin and then its argument prototype would still apply.  */
15731 #ifdef __cplusplus
15732 extern "C"
15733 #endif
15734 char shm_open ();
15735 int
15736 main ()
15737 {
15738 return shm_open ();
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 for ac_lib in '' rt; do
15744   if test -z "$ac_lib"; then
15745     ac_res="none required"
15746   else
15747     ac_res=-l$ac_lib
15748     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15749   fi
15750   rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (ac_try="$ac_link"
15752 case "(($ac_try" in
15753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754   *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757   (eval "$ac_link") 2>conftest.er1
15758   ac_status=$?
15759   grep -v '^ *+' conftest.er1 >conftest.err
15760   rm -f conftest.er1
15761   cat conftest.err >&5
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); } && {
15764          test -z "$ac_c_werror_flag" ||
15765          test ! -s conftest.err
15766        } && test -s conftest$ac_exeext &&
15767        $as_test_x conftest$ac_exeext; then
15768   ac_cv_search_shm_open=$ac_res
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773
15774 fi
15775
15776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15777       conftest$ac_exeext
15778   if test "${ac_cv_search_shm_open+set}" = set; then
15779   break
15780 fi
15781 done
15782 if test "${ac_cv_search_shm_open+set}" = set; then
15783   :
15784 else
15785   ac_cv_search_shm_open=no
15786 fi
15787 rm conftest.$ac_ext
15788 LIBS=$ac_func_search_save_LIBS
15789 fi
15790 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15791 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15792 ac_res=$ac_cv_search_shm_open
15793 if test "$ac_res" != no; then
15794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15795
15796 fi
15797
15798
15799 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15800 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15801 if test "${ac_cv_lib_util_openpty+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804   ac_check_lib_save_LIBS=$LIBS
15805 LIBS="-lutil  $LIBS"
15806 cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h.  */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h.  */
15812
15813 /* Override any GCC internal prototype to avoid an error.
15814    Use char because int might match the return type of a GCC
15815    builtin and then its argument prototype would still apply.  */
15816 #ifdef __cplusplus
15817 extern "C"
15818 #endif
15819 char openpty ();
15820 int
15821 main ()
15822 {
15823 return openpty ();
15824   ;
15825   return 0;
15826 }
15827 _ACEOF
15828 rm -f conftest.$ac_objext conftest$ac_exeext
15829 if { (ac_try="$ac_link"
15830 case "(($ac_try" in
15831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832   *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835   (eval "$ac_link") 2>conftest.er1
15836   ac_status=$?
15837   grep -v '^ *+' conftest.er1 >conftest.err
15838   rm -f conftest.er1
15839   cat conftest.err >&5
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } && {
15842          test -z "$ac_c_werror_flag" ||
15843          test ! -s conftest.err
15844        } && test -s conftest$ac_exeext &&
15845        $as_test_x conftest$ac_exeext; then
15846   ac_cv_lib_util_openpty=yes
15847 else
15848   echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15850
15851         ac_cv_lib_util_openpty=no
15852 fi
15853
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855       conftest$ac_exeext conftest.$ac_ext
15856 LIBS=$ac_check_lib_save_LIBS
15857 fi
15858 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15859 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15860 if test $ac_cv_lib_util_openpty = yes; then
15861   cat >>confdefs.h <<_ACEOF
15862 #define HAVE_LIBUTIL 1
15863 _ACEOF
15864
15865   LIBS="-lutil $LIBS"
15866
15867 fi
15868
15869      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15870      LIBS="$saved_LIBS"
15871   else
15872      { echo "$as_me:$LINENO: result: no" >&5
15873 echo "${ECHO_T}no" >&6; }
15874   fi
15875
15876 else
15877
15878   { echo "$as_me:$LINENO: result: no" >&5
15879 echo "${ECHO_T}no" >&6; }
15880
15881 fi
15882
15883
15884
15885
15886 #
15887 # Find where sockets are (especially for Solaris)
15888 # Do this before the TCP Wrappers test since tcp wrappers
15889 # uses the socket library and some linkers are stupid.
15890 #
15891 { echo "$as_me:$LINENO: checking for socket" >&5
15892 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15893 if test "${ac_cv_func_socket+set}" = set; then
15894   echo $ECHO_N "(cached) $ECHO_C" >&6
15895 else
15896   cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h.  */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h.  */
15902 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15904 #define socket innocuous_socket
15905
15906 /* System header to define __stub macros and hopefully few prototypes,
15907     which can conflict with char socket (); below.
15908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15909     <limits.h> exists even on freestanding compilers.  */
15910
15911 #ifdef __STDC__
15912 # include <limits.h>
15913 #else
15914 # include <assert.h>
15915 #endif
15916
15917 #undef socket
15918
15919 /* Override any GCC internal prototype to avoid an error.
15920    Use char because int might match the return type of a GCC
15921    builtin and then its argument prototype would still apply.  */
15922 #ifdef __cplusplus
15923 extern "C"
15924 #endif
15925 char socket ();
15926 /* The GNU C library defines this for functions which it implements
15927     to always fail with ENOSYS.  Some functions are actually named
15928     something starting with __ and the normal name is an alias.  */
15929 #if defined __stub_socket || defined __stub___socket
15930 choke me
15931 #endif
15932
15933 int
15934 main ()
15935 {
15936 return socket ();
15937   ;
15938   return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (ac_try="$ac_link"
15943 case "(($ac_try" in
15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945   *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948   (eval "$ac_link") 2>conftest.er1
15949   ac_status=$?
15950   grep -v '^ *+' conftest.er1 >conftest.err
15951   rm -f conftest.er1
15952   cat conftest.err >&5
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); } && {
15955          test -z "$ac_c_werror_flag" ||
15956          test ! -s conftest.err
15957        } && test -s conftest$ac_exeext &&
15958        $as_test_x conftest$ac_exeext; then
15959   ac_cv_func_socket=yes
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964         ac_cv_func_socket=no
15965 fi
15966
15967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15968       conftest$ac_exeext conftest.$ac_ext
15969 fi
15970 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15971 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15972 if test $ac_cv_func_socket = yes; then
15973   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15974 echo "${ECHO_T}using libc's socket" >&6; }
15975 else
15976
15977 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15978 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15979 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982   ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-lxnet  $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990
15991 /* Override any GCC internal prototype to avoid an error.
15992    Use char because int might match the return type of a GCC
15993    builtin and then its argument prototype would still apply.  */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 char socket ();
15998 int
15999 main ()
16000 {
16001 return socket ();
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (ac_try="$ac_link"
16008 case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013   (eval "$ac_link") 2>conftest.er1
16014   ac_status=$?
16015   grep -v '^ *+' conftest.er1 >conftest.err
16016   rm -f conftest.er1
16017   cat conftest.err >&5
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); } && {
16020          test -z "$ac_c_werror_flag" ||
16021          test ! -s conftest.err
16022        } && test -s conftest$ac_exeext &&
16023        $as_test_x conftest$ac_exeext; then
16024   ac_cv_lib_xnet_socket=yes
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029         ac_cv_lib_xnet_socket=no
16030 fi
16031
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033       conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16035 fi
16036 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16037 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16038 if test $ac_cv_lib_xnet_socket = yes; then
16039   cat >>confdefs.h <<_ACEOF
16040 #define HAVE_LIBXNET 1
16041 _ACEOF
16042
16043   LIBS="-lxnet $LIBS"
16044
16045 fi
16046
16047
16048 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16049 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16050 if test "${ac_cv_lib_socket_socket+set}" = set; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053   ac_check_lib_save_LIBS=$LIBS
16054 LIBS="-lsocket  $LIBS"
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h.  */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h.  */
16061
16062 /* Override any GCC internal prototype to avoid an error.
16063    Use char because int might match the return type of a GCC
16064    builtin and then its argument prototype would still apply.  */
16065 #ifdef __cplusplus
16066 extern "C"
16067 #endif
16068 char socket ();
16069 int
16070 main ()
16071 {
16072 return socket ();
16073   ;
16074   return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (ac_try="$ac_link"
16079 case "(($ac_try" in
16080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081   *) ac_try_echo=$ac_try;;
16082 esac
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084   (eval "$ac_link") 2>conftest.er1
16085   ac_status=$?
16086   grep -v '^ *+' conftest.er1 >conftest.err
16087   rm -f conftest.er1
16088   cat conftest.err >&5
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); } && {
16091          test -z "$ac_c_werror_flag" ||
16092          test ! -s conftest.err
16093        } && test -s conftest$ac_exeext &&
16094        $as_test_x conftest$ac_exeext; then
16095   ac_cv_lib_socket_socket=yes
16096 else
16097   echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16099
16100         ac_cv_lib_socket_socket=no
16101 fi
16102
16103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16104       conftest$ac_exeext conftest.$ac_ext
16105 LIBS=$ac_check_lib_save_LIBS
16106 fi
16107 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16108 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16109 if test $ac_cv_lib_socket_socket = yes; then
16110   cat >>confdefs.h <<_ACEOF
16111 #define HAVE_LIBSOCKET 1
16112 _ACEOF
16113
16114   LIBS="-lsocket $LIBS"
16115
16116 fi
16117
16118
16119 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16120 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16121 if test "${ac_cv_lib_inet_socket+set}" = set; then
16122   echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124   ac_check_lib_save_LIBS=$LIBS
16125 LIBS="-linet  $LIBS"
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h.  */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h.  */
16132
16133 /* Override any GCC internal prototype to avoid an error.
16134    Use char because int might match the return type of a GCC
16135    builtin and then its argument prototype would still apply.  */
16136 #ifdef __cplusplus
16137 extern "C"
16138 #endif
16139 char socket ();
16140 int
16141 main ()
16142 {
16143 return socket ();
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152   *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155   (eval "$ac_link") 2>conftest.er1
16156   ac_status=$?
16157   grep -v '^ *+' conftest.er1 >conftest.err
16158   rm -f conftest.er1
16159   cat conftest.err >&5
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); } && {
16162          test -z "$ac_c_werror_flag" ||
16163          test ! -s conftest.err
16164        } && test -s conftest$ac_exeext &&
16165        $as_test_x conftest$ac_exeext; then
16166   ac_cv_lib_inet_socket=yes
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16170
16171         ac_cv_lib_inet_socket=no
16172 fi
16173
16174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16175       conftest$ac_exeext conftest.$ac_ext
16176 LIBS=$ac_check_lib_save_LIBS
16177 fi
16178 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16179 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16180 if test $ac_cv_lib_inet_socket = yes; then
16181   cat >>confdefs.h <<_ACEOF
16182 #define HAVE_LIBINET 1
16183 _ACEOF
16184
16185   LIBS="-linet $LIBS"
16186
16187 fi
16188
16189 fi
16190
16191
16192
16193 # -----------------------------------------------------------
16194 # Check whether user wants TCP wrappers support (default off)
16195 # -----------------------------------------------------------
16196 TCPW_MSG="no"
16197 WRAPLIBS=""
16198
16199 # Check whether --with-tcp-wrappers was given.
16200 if test "${with_tcp_wrappers+set}" = set; then
16201   withval=$with_tcp_wrappers;
16202     if test "x$withval" != "xno" ; then
16203        saved_LIBS="$LIBS"
16204        LIBS="$saved_LIBS -lwrap"
16205        { echo "$as_me:$LINENO: checking for libwrap" >&5
16206 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16207        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16208 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16209 if test "${ac_cv_search_nanosleep+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   ac_func_search_save_LIBS=$LIBS
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219
16220 /* Override any GCC internal prototype to avoid an error.
16221    Use char because int might match the return type of a GCC
16222    builtin and then its argument prototype would still apply.  */
16223 #ifdef __cplusplus
16224 extern "C"
16225 #endif
16226 char nanosleep ();
16227 int
16228 main ()
16229 {
16230 return nanosleep ();
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 for ac_lib in '' rt; do
16236   if test -z "$ac_lib"; then
16237     ac_res="none required"
16238   else
16239     ac_res=-l$ac_lib
16240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16241   fi
16242   rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (ac_try="$ac_link"
16244 case "(($ac_try" in
16245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246   *) ac_try_echo=$ac_try;;
16247 esac
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249   (eval "$ac_link") 2>conftest.er1
16250   ac_status=$?
16251   grep -v '^ *+' conftest.er1 >conftest.err
16252   rm -f conftest.er1
16253   cat conftest.err >&5
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); } && {
16256          test -z "$ac_c_werror_flag" ||
16257          test ! -s conftest.err
16258        } && test -s conftest$ac_exeext &&
16259        $as_test_x conftest$ac_exeext; then
16260   ac_cv_search_nanosleep=$ac_res
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265
16266 fi
16267
16268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16269       conftest$ac_exeext
16270   if test "${ac_cv_search_nanosleep+set}" = set; then
16271   break
16272 fi
16273 done
16274 if test "${ac_cv_search_nanosleep+set}" = set; then
16275   :
16276 else
16277   ac_cv_search_nanosleep=no
16278 fi
16279 rm conftest.$ac_ext
16280 LIBS=$ac_func_search_save_LIBS
16281 fi
16282 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16283 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16284 ac_res=$ac_cv_search_nanosleep
16285 if test "$ac_res" != no; then
16286   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16287
16288 fi
16289
16290        cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296  #include <sys/types.h>
16297             #include <tcpd.h>
16298              int deny_severity = 0;
16299              int allow_severity = 0;
16300              struct request_info *req;
16301 int
16302 main ()
16303 {
16304  hosts_access(req);
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (ac_try="$ac_link"
16311 case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_link") 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } && {
16323          test -z "$ac_c_werror_flag" ||
16324          test ! -s conftest.err
16325        } && test -s conftest$ac_exeext &&
16326        $as_test_x conftest$ac_exeext; then
16327
16328             { echo "$as_me:$LINENO: result: yes" >&5
16329 echo "${ECHO_T}yes" >&6; }
16330
16331 cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_LIBWRAP 1
16333 _ACEOF
16334
16335             TCPW_MSG="yes"
16336             LIBS="$saved_LIBS"
16337             WRAPLIBS="-lwrap"
16338
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343
16344             LIBS="$saved_LIBS -lwrap -lnsl"
16345             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16346             cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h.  */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h.  */
16352  #include <sys/types.h>
16353                  #include <tcpd.h>
16354                  int deny_severity = 0;
16355                  int allow_severity = 0;
16356                  struct request_info *req;
16357 int
16358 main ()
16359 {
16360  hosts_access(req);
16361   ;
16362   return 0;
16363 }
16364 _ACEOF
16365 rm -f conftest.$ac_objext conftest$ac_exeext
16366 if { (ac_try="$ac_link"
16367 case "(($ac_try" in
16368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369   *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372   (eval "$ac_link") 2>conftest.er1
16373   ac_status=$?
16374   grep -v '^ *+' conftest.er1 >conftest.err
16375   rm -f conftest.er1
16376   cat conftest.err >&5
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); } && {
16379          test -z "$ac_c_werror_flag" ||
16380          test ! -s conftest.err
16381        } && test -s conftest$ac_exeext &&
16382        $as_test_x conftest$ac_exeext; then
16383
16384                  { echo "$as_me:$LINENO: result: yes" >&5
16385 echo "${ECHO_T}yes" >&6; }
16386
16387 cat >>confdefs.h <<\_ACEOF
16388 #define HAVE_LIBWRAP 1
16389 _ACEOF
16390
16391                  TCPW_MSG="yes"
16392                  LIBS="$saved_LIBS"
16393                  WRAPLIBS="-lwrap"
16394
16395 else
16396   echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16398
16399         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16400 echo "$as_me: error: *** libwrap missing" >&2;}
16401    { (exit 1); exit 1; }; }
16402
16403 fi
16404
16405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16406       conftest$ac_exeext conftest.$ac_ext
16407
16408 fi
16409
16410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16411       conftest$ac_exeext conftest.$ac_ext
16412     fi
16413
16414
16415 fi
16416
16417
16418 # -----------------------------------------------------------
16419 # Check whether OpenSSL is available
16420 # -----------------------------------------------------------
16421 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16422 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16423
16424 # Check whether --with-openssl was given.
16425 if test "${with_openssl+set}" = set; then
16426   withval=$with_openssl; with_openssl_directory=${withval}
16427 fi
16428
16429
16430 if test "x$with_openssl_directory" != "x"; then
16431         OPENSSL_LIBS="-lssl -lcrypto"
16432         OPENSSL_INC=""
16433
16434         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16435                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16436                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16437         fi
16438
16439         saved_LIBS="${LIBS}"
16440         saved_CFLAGS="${CFLAGS}"
16441         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16442         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16443
16444         cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h.  */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h.  */
16450  #include <openssl/ssl.h>
16451 int
16452 main ()
16453 {
16454  CRYPTO_set_id_callback(NULL);
16455   ;
16456   return 0;
16457 }
16458 _ACEOF
16459 rm -f conftest.$ac_objext conftest$ac_exeext
16460 if { (ac_try="$ac_link"
16461 case "(($ac_try" in
16462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463   *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466   (eval "$ac_link") 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } && {
16473          test -z "$ac_c_werror_flag" ||
16474          test ! -s conftest.err
16475        } && test -s conftest$ac_exeext &&
16476        $as_test_x conftest$ac_exeext; then
16477
16478                         support_tls="yes"
16479                         support_crypto="yes"
16480
16481 else
16482   echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16484
16485          support_tls="no"
16486
16487 fi
16488
16489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16490       conftest$ac_exeext conftest.$ac_ext
16491
16492         cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h.  */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h.  */
16498  #include <openssl/evp.h>
16499 int
16500 main ()
16501 {
16502  EVP_sha512();
16503   ;
16504   return 0;
16505 }
16506 _ACEOF
16507 rm -f conftest.$ac_objext conftest$ac_exeext
16508 if { (ac_try="$ac_link"
16509 case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_link") 2>conftest.er1
16515   ac_status=$?
16516   grep -v '^ *+' conftest.er1 >conftest.err
16517   rm -f conftest.er1
16518   cat conftest.err >&5
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); } && {
16521          test -z "$ac_c_werror_flag" ||
16522          test ! -s conftest.err
16523        } && test -s conftest$ac_exeext &&
16524        $as_test_x conftest$ac_exeext; then
16525    ac_cv_openssl_sha2="yes"
16526 else
16527   echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16529
16530          ac_cv_openssl_sha2="no"
16531
16532 fi
16533
16534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16535       conftest$ac_exeext conftest.$ac_ext
16536
16537         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16538         # implementation, presumably for export reasons. If 192bit AES
16539         # is available, we assume that we're running with a 'non-export'
16540         # openssl library.
16541         cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h.  */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h.  */
16547  #include <openssl/evp.h>
16548 int
16549 main ()
16550 {
16551  EVP_aes_192_cbc();
16552   ;
16553   return 0;
16554 }
16555 _ACEOF
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563   (eval "$ac_link") 2>conftest.er1
16564   ac_status=$?
16565   grep -v '^ *+' conftest.er1 >conftest.err
16566   rm -f conftest.er1
16567   cat conftest.err >&5
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } && {
16570          test -z "$ac_c_werror_flag" ||
16571          test ! -s conftest.err
16572        } && test -s conftest$ac_exeext &&
16573        $as_test_x conftest$ac_exeext; then
16574    ac_cv_openssl_export="no"
16575 else
16576   echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579          ac_cv_openssl_export="yes"
16580
16581 fi
16582
16583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16584       conftest$ac_exeext conftest.$ac_ext
16585
16586         LIBS="${saved_LIBS}"
16587         CFLAGS="${saved_CFLAGS}"
16588
16589         if test "$support_tls" = "yes"; then
16590
16591 cat >>confdefs.h <<\_ACEOF
16592 #define HAVE_OPENSSL 1
16593 _ACEOF
16594
16595
16596 cat >>confdefs.h <<\_ACEOF
16597 #define HAVE_TLS 1
16598 _ACEOF
16599
16600
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_CRYPTO 1
16603 _ACEOF
16604
16605         fi
16606
16607         if test "$ac_cv_openssl_sha2" = "yes"; then
16608
16609 cat >>confdefs.h <<\_ACEOF
16610 #define HAVE_SHA2 1
16611 _ACEOF
16612
16613         fi
16614
16615         if test "$ac_cv_openssl_export" = "yes"; then
16616
16617 cat >>confdefs.h <<\_ACEOF
16618 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16619 _ACEOF
16620
16621         fi
16622 else
16623         support_tls="no"
16624         support_crypto="no"
16625         OPENSSL_LIBS=""
16626         OPENSSL_INC=""
16627 fi
16628
16629 { echo "$as_me:$LINENO: result: $support_tls" >&5
16630 echo "${ECHO_T}$support_tls" >&6; }
16631
16632
16633
16634
16635 # -----------------------------------------------------------
16636 # dlopen is needed for plugins
16637 # -----------------------------------------------------------
16638 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16639 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16640 if test "${ac_cv_search_dlopen+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   ac_func_search_save_LIBS=$LIBS
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650
16651 /* Override any GCC internal prototype to avoid an error.
16652    Use char because int might match the return type of a GCC
16653    builtin and then its argument prototype would still apply.  */
16654 #ifdef __cplusplus
16655 extern "C"
16656 #endif
16657 char dlopen ();
16658 int
16659 main ()
16660 {
16661 return dlopen ();
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 for ac_lib in '' dl; do
16667   if test -z "$ac_lib"; then
16668     ac_res="none required"
16669   else
16670     ac_res=-l$ac_lib
16671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16672   fi
16673   rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_link") 2>conftest.er1
16681   ac_status=$?
16682   grep -v '^ *+' conftest.er1 >conftest.err
16683   rm -f conftest.er1
16684   cat conftest.err >&5
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); } && {
16687          test -z "$ac_c_werror_flag" ||
16688          test ! -s conftest.err
16689        } && test -s conftest$ac_exeext &&
16690        $as_test_x conftest$ac_exeext; then
16691   ac_cv_search_dlopen=$ac_res
16692 else
16693   echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696
16697 fi
16698
16699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16700       conftest$ac_exeext
16701   if test "${ac_cv_search_dlopen+set}" = set; then
16702   break
16703 fi
16704 done
16705 if test "${ac_cv_search_dlopen+set}" = set; then
16706   :
16707 else
16708   ac_cv_search_dlopen=no
16709 fi
16710 rm conftest.$ac_ext
16711 LIBS=$ac_func_search_save_LIBS
16712 fi
16713 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16714 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16715 ac_res=$ac_cv_search_dlopen
16716 if test "$ac_res" != no; then
16717   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16718
16719 fi
16720
16721
16722 # ------------------------------------------
16723 # Where to place working dir
16724 # ------------------------------------------
16725 working_dir=`eval echo ${prefix}/var/bacula/working`
16726
16727 # Check whether --with-working-dir was given.
16728 if test "${with_working_dir+set}" = set; then
16729   withval=$with_working_dir;
16730        if test "x$withval" != "xno" ; then
16731               working_dir=$withval
16732        fi
16733
16734
16735 fi
16736
16737
16738
16739
16740 # ------------------------------------------------------------------
16741 # If the user has not set archivedir, we set our default as /tmp
16742 # ------------------------------------------------------------------
16743 archive_dir=/tmp
16744
16745 # Check whether --with-archivedir was given.
16746 if test "${with_archivedir+set}" = set; then
16747   withval=$with_archivedir;
16748        if test "x$withval" != "xno" ; then
16749               archivedir=$withval
16750        fi
16751
16752
16753 fi
16754
16755
16756
16757
16758
16759
16760 # ------------------------------------------
16761 # Where to place scriptdir (script files)
16762 # ------------------------------------------
16763 scriptdir=`eval echo ${sysconfdir}`
16764
16765 # Check whether --with-scriptdir was given.
16766 if test "${with_scriptdir+set}" = set; then
16767   withval=$with_scriptdir;
16768        if test "x$withval" != "xno" ; then
16769               scriptdir=$withval
16770        fi
16771
16772
16773 fi
16774
16775
16776
16777
16778
16779 # ------------------------------------------
16780 # Where to send dump email
16781 # ------------------------------------------
16782 dump_email=root@localhost
16783
16784 # Check whether --with-dump-email was given.
16785 if test "${with_dump_email+set}" = set; then
16786   withval=$with_dump_email;
16787        if test "x$withval" != "xno" ; then
16788               dump_email=$withval
16789        fi
16790
16791
16792 fi
16793
16794
16795
16796
16797 # ------------------------------------------
16798 # Where to send job email
16799 # ------------------------------------------
16800 job_email=root@localhost
16801
16802 # Check whether --with-job-email was given.
16803 if test "${with_job_email+set}" = set; then
16804   withval=$with_job_email;
16805        if test "x$withval" != "xno" ; then
16806               job_email=$withval
16807        fi
16808
16809
16810 fi
16811
16812
16813
16814
16815 # ------------------------------------------
16816 # Where to find smtp host
16817 # ------------------------------------------
16818 smtp_host=localhost
16819
16820 # Check whether --with-smtp_host was given.
16821 if test "${with_smtp_host+set}" = set; then
16822   withval=$with_smtp_host;
16823        if test "x$withval" != "xno" ; then
16824               smtp_host=$withval
16825        fi
16826
16827
16828 fi
16829
16830
16831
16832
16833
16834 # ------------------------------------
16835 # Where to place pid files
16836 # ------------------------------------
16837 piddir=/var/run
16838
16839 # Check whether --with-pid-dir was given.
16840 if test "${with_pid_dir+set}" = set; then
16841   withval=$with_pid_dir;
16842         if test "x$withval" != "xno" ; then
16843             piddir=$withval
16844         fi
16845
16846
16847 fi
16848
16849
16850 cat >>confdefs.h <<_ACEOF
16851 #define _PATH_BACULA_PIDDIR "$piddir"
16852 _ACEOF
16853
16854
16855
16856
16857 # ------------------------------------
16858 # Where to place subsys "lock file"
16859 # ------------------------------------
16860 subsysdir=/var/run/subsys
16861 if test -d /var/run/subsys; then
16862    subsysdir=/var/run/subsys
16863 elif test -d /var/lock/subsys; then
16864    subsysdir=/var/lock/subsys
16865 else
16866    subsysdir=/var/run/subsys
16867 fi
16868
16869 # Check whether --with-subsys-dir was given.
16870 if test "${with_subsys_dir+set}" = set; then
16871   withval=$with_subsys_dir;
16872         if test "x$withval" != "xno" ; then
16873             subsysdir=$withval
16874         fi
16875
16876
16877 fi
16878
16879
16880
16881
16882
16883
16884 # ------------------------------------
16885 # Where to start assigning ports
16886 # ------------------------------------
16887 baseport=9101
16888
16889 # Check whether --with-baseport was given.
16890 if test "${with_baseport+set}" = set; then
16891   withval=$with_baseport;
16892         if test "x$withval" != "xno" ; then
16893              baseport=$withval
16894         fi
16895
16896
16897 fi
16898
16899
16900
16901 dir_port=`expr $baseport`
16902 fd_port=`expr $baseport + 1`
16903 sd_port=`expr $fd_port + 1`
16904
16905
16906
16907
16908
16909
16910 # ------------------------------------------
16911 # Generate passwords
16912 # ------------------------------------------
16913 dir_password=
16914
16915 # Check whether --with-dir-password was given.
16916 if test "${with_dir_password+set}" = set; then
16917   withval=$with_dir_password;
16918        if test "x$withval" != "xno" ; then
16919            dir_password=$withval
16920        fi
16921
16922
16923 fi
16924
16925
16926 if test "x$dir_password" = "x" ; then
16927    if test "x$OPENSSL" = "xnone" ; then
16928       key=`autoconf/randpass 33`
16929    else
16930       key=`openssl rand -base64 33`
16931    fi
16932    dir_password=$key
16933 fi
16934
16935 fd_password=
16936
16937 # Check whether --with-fd-password was given.
16938 if test "${with_fd_password+set}" = set; then
16939   withval=$with_fd_password;
16940        if test "x$withval" != "xno" ; then
16941            fd_password=$withval
16942        fi
16943
16944
16945 fi
16946
16947
16948 if test "x$fd_password" = "x" ; then
16949    if test "x$OPENSSL" = "xnone" ; then
16950       key=`autoconf/randpass 37`
16951    else
16952       key=`openssl rand -base64 33`
16953    fi
16954    fd_password=$key
16955 fi
16956
16957 sd_password=
16958
16959 # Check whether --with-sd-password was given.
16960 if test "${with_sd_password+set}" = set; then
16961   withval=$with_sd_password;
16962        if test "x$withval" != "xno" ; then
16963            sd_password=$withval
16964        fi
16965
16966
16967 fi
16968
16969
16970 if test "x$sd_password" = "x" ; then
16971    if test "x$OPENSSL" = "xnone" ; then
16972       key=`autoconf/randpass 41`
16973    else
16974       key=`openssl rand -base64 33`
16975    fi
16976    sd_password=$key
16977 fi
16978
16979 mon_dir_password=
16980
16981 # Check whether --with-mon-dir-password was given.
16982 if test "${with_mon_dir_password+set}" = set; then
16983   withval=$with_mon_dir_password;
16984        if test "x$withval" != "xno" ; then
16985            mon_dir_password=$withval
16986        fi
16987
16988
16989 fi
16990
16991
16992 if test "x$mon_dir_password" = "x" ; then
16993    if test "x$OPENSSL" = "xnone" ; then
16994       key=`autoconf/randpass 33`
16995    else
16996       key=`openssl rand -base64 33`
16997    fi
16998    mon_dir_password=$key
16999 fi
17000
17001 mon_fd_password=
17002
17003 # Check whether --with-mon-fd-password was given.
17004 if test "${with_mon_fd_password+set}" = set; then
17005   withval=$with_mon_fd_password;
17006        if test "x$withval" != "xno" ; then
17007            mon_fd_password=$withval
17008        fi
17009
17010
17011 fi
17012
17013
17014 if test "x$mon_fd_password" = "x" ; then
17015    if test "x$OPENSSL" = "xnone" ; then
17016       key=`autoconf/randpass 37`
17017    else
17018       key=`openssl rand -base64 33`
17019    fi
17020    mon_fd_password=$key
17021 fi
17022
17023 mon_sd_password=
17024
17025 # Check whether --with-mon-sd-password was given.
17026 if test "${with_mon_sd_password+set}" = set; then
17027   withval=$with_mon_sd_password;
17028        if test "x$withval" != "xno" ; then
17029            mon_sd_password=$withval
17030        fi
17031
17032
17033 fi
17034
17035
17036 if test "x$mon_sd_password" = "x" ; then
17037    if test "x$OPENSSL" = "xnone" ; then
17038       key=`autoconf/randpass 41`
17039    else
17040       key=`openssl rand -base64 33`
17041    fi
17042    mon_sd_password=$key
17043 fi
17044
17045
17046
17047
17048
17049
17050
17051
17052 #
17053 # Pickup any database name
17054 #
17055 db_name=bacula
17056
17057 # Check whether --with-db_name was given.
17058 if test "${with_db_name+set}" = set; then
17059   withval=$with_db_name;
17060         if test "x$withval" != "x" ; then
17061              db_name=$withval
17062         fi
17063
17064
17065 fi
17066
17067
17068
17069 db_user=bacula
17070
17071 # Check whether --with-db_user was given.
17072 if test "${with_db_user+set}" = set; then
17073   withval=$with_db_user;
17074         if test "x$withval" != "x" ; then
17075              db_user=$withval
17076         fi
17077
17078
17079 fi
17080
17081
17082
17083
17084 #
17085 # Handle users and groups for each daemon
17086 #
17087 dir_user=
17088
17089 # Check whether --with-dir_user was given.
17090 if test "${with_dir_user+set}" = set; then
17091   withval=$with_dir_user;
17092         if test "x$withval" != "x" ; then
17093              dir_user=$withval
17094         fi
17095
17096
17097 fi
17098
17099
17100 dir_group=
17101
17102 # Check whether --with-dir_group was given.
17103 if test "${with_dir_group+set}" = set; then
17104   withval=$with_dir_group;
17105         if test "x$withval" != "x" ; then
17106              dir_group=$withval
17107         fi
17108
17109
17110 fi
17111
17112
17113 sd_user=
17114
17115 # Check whether --with-sd_user was given.
17116 if test "${with_sd_user+set}" = set; then
17117   withval=$with_sd_user;
17118         if test "x$withval" != "x" ; then
17119              sd_user=$withval
17120         fi
17121
17122
17123 fi
17124
17125
17126 sd_group=
17127
17128 # Check whether --with-sd_group was given.
17129 if test "${with_sd_group+set}" = set; then
17130   withval=$with_sd_group;
17131         if test "x$withval" != "x" ; then
17132              sd_group=$withval
17133         fi
17134
17135
17136 fi
17137
17138
17139 fd_user=
17140
17141 # Check whether --with-fd_user was given.
17142 if test "${with_fd_user+set}" = set; then
17143   withval=$with_fd_user;
17144         if test "x$withval" != "x" ; then
17145              fd_user=$withval
17146         fi
17147
17148
17149 fi
17150
17151
17152 fd_group=
17153
17154 # Check whether --with-fd_group was given.
17155 if test "${with_fd_group+set}" = set; then
17156   withval=$with_fd_group;
17157         if test "x$withval" != "x" ; then
17158              fd_group=$withval
17159         fi
17160
17161
17162 fi
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172 #
17173 # allow setting default executable permissions
17174 #
17175 SBINPERM=0754
17176
17177 # Check whether --with-sbin-perm was given.
17178 if test "${with_sbin_perm+set}" = set; then
17179   withval=$with_sbin_perm;
17180         if test "x$withval" != "x" ; then
17181             SBINPERM=$withval
17182         fi
17183
17184
17185 fi
17186
17187
17188
17189
17190 # ------------------------------------------------
17191 # Bacula check for various SQL database engines
17192 # ------------------------------------------------
17193 SQL_LIB=
17194
17195 db_found=no
17196 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17197 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17198
17199 # Check whether --with-postgresql was given.
17200 if test "${with_postgresql+set}" = set; then
17201   withval=$with_postgresql;
17202   if test "$withval" != "no"; then
17203       if test "$db_found" = "yes"; then
17204           { echo "$as_me:$LINENO: result: error" >&5
17205 echo "${ECHO_T}error" >&6; }
17206           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17207 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17208    { (exit 1); exit 1; }; };
17209       fi
17210       if test "$withval" = "yes"; then
17211           PG_CONFIG=`which pg_config`
17212           if test -n "$PG_CONFIG";then
17213               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17214               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17215               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17216           elif test -f /usr/local/include/libpq-fe.h; then
17217               POSTGRESQL_INCDIR=/usr/local/include
17218               if test -d /usr/local/lib64; then
17219                  POSTGRESQL_LIBDIR=/usr/local/lib64
17220               else
17221                  POSTGRESQL_LIBDIR=/usr/local/lib
17222               fi
17223               POSTGRESQL_BINDIR=/usr/local/bin
17224           elif test -f /usr/include/libpq-fe.h; then
17225               POSTGRESQL_INCDIR=/usr/include
17226               if test -d /usr/lib64; then
17227                  POSTGRESQL_LIBDIR=/usr/lib64
17228               else
17229                  POSTGRESQL_LIBDIR=/usr/lib
17230               fi
17231               POSTGRESQL_BINDIR=/usr/bin
17232           elif test -f /usr/include/pgsql/libpq-fe.h; then
17233               POSTGRESQL_INCDIR=/usr/include/pgsql
17234               if test -d /usr/lib64/pgsql; then
17235                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17236               else
17237                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17238               fi
17239               POSTGRESQL_BINDIR=/usr/bin
17240           elif test -f /usr/include/postgresql/libpq-fe.h; then
17241               POSTGRESQL_INCDIR=/usr/include/postgresql
17242               if test -d /usr/lib64/postgresql; then
17243                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17244               else
17245                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17246               fi
17247               POSTGRESQL_BINDIR=/usr/bin
17248           else
17249               { echo "$as_me:$LINENO: result: no" >&5
17250 echo "${ECHO_T}no" >&6; }
17251               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17252 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17253    { (exit 1); exit 1; }; }
17254           fi
17255       elif test -f $withval/include/libpq-fe.h; then
17256           POSTGRESQL_INCDIR=$withval/include
17257           POSTGRESQL_LIBDIR=$withval/lib
17258           POSTGRESQL_BINDIR=$withval/bin
17259       elif test -f $withval/include/postgresql/libpq-fe.h; then
17260           POSTGRESQL_INCDIR=$withval/include/postgresql
17261      if test -d $withval/lib64; then
17262          POSTGRESQL_LIBDIR=$withval/lib64
17263      else
17264          POSTGRESQL_LIBDIR=$withval/lib
17265      fi
17266           POSTGRESQL_BINDIR=$withval/bin
17267       else
17268           { echo "$as_me:$LINENO: result: no" >&5
17269 echo "${ECHO_T}no" >&6; }
17270           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17271 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17272    { (exit 1); exit 1; }; }
17273       fi
17274       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17275       { echo "$as_me:$LINENO: checking for crypt" >&5
17276 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17277 if test "${ac_cv_func_crypt+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17288 #define crypt innocuous_crypt
17289
17290 /* System header to define __stub macros and hopefully few prototypes,
17291     which can conflict with char crypt (); below.
17292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17293     <limits.h> exists even on freestanding compilers.  */
17294
17295 #ifdef __STDC__
17296 # include <limits.h>
17297 #else
17298 # include <assert.h>
17299 #endif
17300
17301 #undef crypt
17302
17303 /* Override any GCC internal prototype to avoid an error.
17304    Use char because int might match the return type of a GCC
17305    builtin and then its argument prototype would still apply.  */
17306 #ifdef __cplusplus
17307 extern "C"
17308 #endif
17309 char crypt ();
17310 /* The GNU C library defines this for functions which it implements
17311     to always fail with ENOSYS.  Some functions are actually named
17312     something starting with __ and the normal name is an alias.  */
17313 #if defined __stub_crypt || defined __stub___crypt
17314 choke me
17315 #endif
17316
17317 int
17318 main ()
17319 {
17320 return crypt ();
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_link") 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } && {
17339          test -z "$ac_c_werror_flag" ||
17340          test ! -s conftest.err
17341        } && test -s conftest$ac_exeext &&
17342        $as_test_x conftest$ac_exeext; then
17343   ac_cv_func_crypt=yes
17344 else
17345   echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348         ac_cv_func_crypt=no
17349 fi
17350
17351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17352       conftest$ac_exeext conftest.$ac_ext
17353 fi
17354 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17355 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17356 if test $ac_cv_func_crypt = yes; then
17357   :
17358 else
17359   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17360 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17361 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17362   echo $ECHO_N "(cached) $ECHO_C" >&6
17363 else
17364   ac_check_lib_save_LIBS=$LIBS
17365 LIBS="-lcrypt  $LIBS"
17366 cat >conftest.$ac_ext <<_ACEOF
17367 /* confdefs.h.  */
17368 _ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h.  */
17372
17373 /* Override any GCC internal prototype to avoid an error.
17374    Use char because int might match the return type of a GCC
17375    builtin and then its argument prototype would still apply.  */
17376 #ifdef __cplusplus
17377 extern "C"
17378 #endif
17379 char crypt ();
17380 int
17381 main ()
17382 {
17383 return crypt ();
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_link") 2>conftest.er1
17396   ac_status=$?
17397   grep -v '^ *+' conftest.er1 >conftest.err
17398   rm -f conftest.er1
17399   cat conftest.err >&5
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); } && {
17402          test -z "$ac_c_werror_flag" ||
17403          test ! -s conftest.err
17404        } && test -s conftest$ac_exeext &&
17405        $as_test_x conftest$ac_exeext; then
17406   ac_cv_lib_crypt_crypt=yes
17407 else
17408   echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411         ac_cv_lib_crypt_crypt=no
17412 fi
17413
17414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17415       conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17417 fi
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17419 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17420 if test $ac_cv_lib_crypt_crypt = yes; then
17421   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17422 fi
17423
17424 fi
17425
17426       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17427       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17428       SQL_BINDIR=$POSTGRESQL_BINDIR
17429       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17430
17431       cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_POSTGRESQL 1
17433 _ACEOF
17434
17435       { echo "$as_me:$LINENO: result: yes" >&5
17436 echo "${ECHO_T}yes" >&6; }
17437       db_found=yes
17438       support_postgresql=yes
17439       db_type=PostgreSQL
17440       DB_TYPE=postgresql
17441   else
17442       { echo "$as_me:$LINENO: result: no" >&5
17443 echo "${ECHO_T}no" >&6; }
17444   fi
17445
17446 else
17447
17448   { echo "$as_me:$LINENO: result: no" >&5
17449 echo "${ECHO_T}no" >&6; }
17450
17451 fi
17452
17453
17454
17455
17456
17457
17458
17459
17460 db_found=no
17461 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17462 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17463
17464 # Check whether --with-mysql was given.
17465 if test "${with_mysql+set}" = set; then
17466   withval=$with_mysql;
17467   if test "$withval" != "no"; then
17468         if test "$withval" = "yes"; then
17469            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17470                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17471                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17472                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17473                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17474                    else
17475                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17476                    fi
17477                    MYSQL_BINDIR=/usr/local/mysql/bin
17478            elif test -f /usr/include/mysql/mysql.h; then
17479                    MYSQL_INCDIR=/usr/include/mysql
17480                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17481                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17482                            MYSQL_LIBDIR=/usr/lib64/mysql
17483                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17484                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17485                            MYSQL_LIBDIR=/usr/lib/mysql
17486                    else
17487                            MYSQL_LIBDIR=/usr/lib
17488                    fi
17489                    MYSQL_BINDIR=/usr/bin
17490            elif test -f /usr/include/mysql.h; then
17491                    MYSQL_INCDIR=/usr/include
17492                    if test -f /usr/lib64/libmysqlclient_r.a \
17493                         -o -f /usr/lib64/libmysqlclient_r.so; then
17494                            MYSQL_LIBDIR=/usr/lib64
17495                    else
17496                            MYSQL_LIBDIR=/usr/lib
17497                    fi
17498                    MYSQL_BINDIR=/usr/bin
17499            elif test -f /usr/local/include/mysql/mysql.h; then
17500                    MYSQL_INCDIR=/usr/local/include/mysql
17501                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17502                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17503                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17504                    else
17505                            MYSQL_LIBDIR=/usr/local/lib/mysql
17506                    fi
17507                    MYSQL_BINDIR=/usr/local/bin
17508            elif test -f /usr/local/include/mysql.h; then
17509                    MYSQL_INCDIR=/usr/local/include
17510                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17511                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17512                            MYSQL_LIBDIR=/usr/local/lib64
17513                    else
17514                            MYSQL_LIBDIR=/usr/local/lib
17515                    fi
17516                    MYSQL_BINDIR=/usr/local/bin
17517            else
17518               { echo "$as_me:$LINENO: result: no" >&5
17519 echo "${ECHO_T}no" >&6; }
17520               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17521 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17522    { (exit 1); exit 1; }; }
17523            fi
17524         else
17525            if test -f $withval/include/mysql/mysql.h; then
17526               MYSQL_INCDIR=$withval/include/mysql
17527               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17528                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17529                  MYSQL_LIBDIR=$withval/lib64/mysql
17530               else
17531                  MYSQL_LIBDIR=$withval/lib/mysql
17532                  # Solaris ...
17533                  if test -f $withval/lib/libmysqlclient_r.so; then
17534                     MYSQL_LIBDIR=$withval/lib
17535                  fi
17536               fi
17537               MYSQL_BINDIR=$withval/bin
17538            elif test -f $withval/include/mysql.h; then
17539               MYSQL_INCDIR=$withval/include
17540               if test -f $withval/lib64/libmysqlclient_r.a \
17541                    -o -f $withval/lib64/libmysqlclient_r.so; then
17542                  MYSQL_LIBDIR=$withval/lib64
17543               else
17544                  MYSQL_LIBDIR=$withval/lib
17545               fi
17546               MYSQL_BINDIR=$withval/bin
17547            else
17548               { echo "$as_me:$LINENO: result: no" >&5
17549 echo "${ECHO_T}no" >&6; }
17550               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17551 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17552    { (exit 1); exit 1; }; }
17553            fi
17554         fi
17555     SQL_INCLUDE=-I$MYSQL_INCDIR
17556     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17557          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17558        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17559        cat >>confdefs.h <<\_ACEOF
17560 #define HAVE_THREAD_SAFE_MYSQL 1
17561 _ACEOF
17562
17563     fi
17564     SQL_BINDIR=$MYSQL_BINDIR
17565     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17566
17567     cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_MYSQL 1
17569 _ACEOF
17570
17571     { echo "$as_me:$LINENO: result: yes" >&5
17572 echo "${ECHO_T}yes" >&6; }
17573     db_found=yes
17574     support_mysql=yes
17575     db_type=MySQL
17576     DB_TYPE=mysql
17577
17578   else
17579         { echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6; }
17581   fi
17582
17583
17584 fi
17585
17586
17587
17588 # Check whether --with-embedded-mysql was given.
17589 if test "${with_embedded_mysql+set}" = set; then
17590   withval=$with_embedded_mysql;
17591   if test "$withval" != "no"; then
17592         if test "$withval" = "yes"; then
17593                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17594                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17595                         if test -d /usr/local/mysql/lib64/mysql; then
17596                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17597                         else
17598                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17599                         fi
17600                         MYSQL_BINDIR=/usr/local/mysql/bin
17601                 elif test -f /usr/include/mysql/mysql.h; then
17602                         MYSQL_INCDIR=/usr/include/mysql
17603                         if test -d /usr/lib64/mysql; then
17604                                 MYSQL_LIBDIR=/usr/lib64/mysql
17605                         else
17606                                 MYSQL_LIBDIR=/usr/lib/mysql
17607                         fi
17608                         MYSQL_BINDIR=/usr/bin
17609                 elif test -f /usr/include/mysql.h; then
17610                         MYSQL_INCDIR=/usr/include
17611                         if test -d /usr/lib64; then
17612                                 MYSQL_LIBDIR=/usr/lib64
17613                         else
17614                                 MYSQL_LIBDIR=/usr/lib
17615                         fi
17616                         MYSQL_BINDIR=/usr/bin
17617                 elif test -f /usr/local/include/mysql/mysql.h; then
17618                         MYSQL_INCDIR=/usr/local/include/mysql
17619                         if test -d /usr/local/lib64/mysql; then
17620                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17621                         else
17622                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17623                         fi
17624                         MYSQL_BINDIR=/usr/local/bin
17625                 elif test -f /usr/local/include/mysql.h; then
17626                         MYSQL_INCDIR=/usr/local/include
17627                         if test -d /usr/local/lib64; then
17628                                 MYSQL_LIBDIR=/usr/local/lib64
17629                         else
17630                                 MYSQL_LIBDIR=/usr/local/lib
17631                         fi
17632                         MYSQL_BINDIR=/usr/local/bin
17633                 else
17634                    { echo "$as_me:$LINENO: result: no" >&5
17635 echo "${ECHO_T}no" >&6; }
17636                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17637 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17638    { (exit 1); exit 1; }; }
17639                 fi
17640         else
17641                 if test -f $withval/include/mysql/mysql.h; then
17642                         MYSQL_INCDIR=$withval/include/mysql
17643                         if test -d $withval/lib64/mysql; then
17644                                 MYSQL_LIBDIR=$withval/lib64/mysql
17645                         else
17646                                 MYSQL_LIBDIR=$withval/lib/mysql
17647                         fi
17648                         MYSQL_BINDIR=$withval/bin
17649                 elif test -f $withval/include/mysql.h; then
17650                         MYSQL_INCDIR=$withval/include
17651                         if test -d $withval/lib64; then
17652                                 MYSQL_LIBDIR=$withval/lib64
17653                         else
17654                                 MYSQL_LIBDIR=$withval/lib
17655                         fi
17656                         MYSQL_BINDIR=$withval/bin
17657                 else
17658                    { echo "$as_me:$LINENO: result: no" >&5
17659 echo "${ECHO_T}no" >&6; }
17660                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17661 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17662    { (exit 1); exit 1; }; }
17663                 fi
17664         fi
17665     SQL_INCLUDE=-I$MYSQL_INCDIR
17666     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17667     SQL_BINDIR=$MYSQL_BINDIR
17668     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17669
17670     cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_MYSQL 1
17672 _ACEOF
17673
17674     cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_EMBEDDED_MYSQL 1
17676 _ACEOF
17677
17678     { echo "$as_me:$LINENO: result: yes" >&5
17679 echo "${ECHO_T}yes" >&6; }
17680     db_found=yes
17681     support_mysql=yes
17682     db_type=MySQL
17683     DB_TYPE=mysql
17684
17685   else
17686         { echo "$as_me:$LINENO: result: no" >&5
17687 echo "${ECHO_T}no" >&6; }
17688   fi
17689
17690
17691 fi
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702 db_found=no
17703 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17704 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17705
17706 # Check whether --with-sqlite3 was given.
17707 if test "${with_sqlite3+set}" = set; then
17708   withval=$with_sqlite3;
17709   if test "$withval" != "no"; then
17710      if test "$withval" = "yes"; then
17711         if test -f /usr/local/include/sqlite3.h; then
17712            SQLITE_INCDIR=/usr/local/include
17713            if test -d /usr/local/lib64; then
17714               SQLITE_LIBDIR=/usr/local/lib64
17715            else
17716               SQLITE_LIBDIR=/usr/local/lib
17717            fi
17718            SQLITE_BINDIR=/usr/local/bin
17719         elif test -f /usr/include/sqlite3.h; then
17720            SQLITE_INCDIR=/usr/include
17721            if test -d /usr/lib64; then
17722               SQLITE_LIBDIR=/usr/lib64
17723            else
17724               SQLITE_LIBDIR=/usr/lib
17725            fi
17726            SQLITE_BINDIR=/usr/bin
17727         elif test -f $prefix/include/sqlite3.h; then
17728            SQLITE_INCDIR=$prefix/include
17729            if test -d $prefix/lib64; then
17730               SQLITE_LIBDIR=$prefix/lib64
17731            else
17732               SQLITE_LIBDIR=$prefix/lib
17733            fi
17734            SQLITE_BINDIR=$prefix/bin
17735         else
17736            { echo "$as_me:$LINENO: result: no" >&5
17737 echo "${ECHO_T}no" >&6; }
17738            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17739 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17740    { (exit 1); exit 1; }; }
17741         fi
17742      else
17743         if test -f $withval/sqlite3.h; then
17744            SQLITE_INCDIR=$withval
17745            SQLITE_LIBDIR=$withval
17746            SQLITE_BINDIR=$withval
17747         elif test -f $withval/include/sqlite3.h; then
17748            SQLITE_INCDIR=$withval/include
17749            if test -d $withval/lib64; then
17750               SQLITE_LIBDIR=$withval/lib64
17751            else
17752               SQLITE_LIBDIR=$withval/lib
17753            fi
17754            SQLITE_BINDIR=$withval/bin
17755         else
17756            { echo "$as_me:$LINENO: result: no" >&5
17757 echo "${ECHO_T}no" >&6; }
17758            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17759 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17760    { (exit 1); exit 1; }; }
17761         fi
17762      fi
17763      SQL_INCLUDE=-I$SQLITE_INCDIR
17764      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17765      SQL_BINDIR=$SQLITE_BINDIR
17766      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17767
17768      cat >>confdefs.h <<\_ACEOF
17769 #define HAVE_SQLITE3 1
17770 _ACEOF
17771
17772      { echo "$as_me:$LINENO: result: yes" >&5
17773 echo "${ECHO_T}yes" >&6; }
17774      db_found=yes
17775      support_sqlite3=yes
17776      db_type=SQLite3
17777      DB_TYPE=sqlite3
17778
17779   else
17780      { echo "$as_me:$LINENO: result: no" >&5
17781 echo "${ECHO_T}no" >&6; }
17782   fi
17783
17784 else
17785
17786   { echo "$as_me:$LINENO: result: no" >&5
17787 echo "${ECHO_T}no" >&6; }
17788
17789 fi
17790
17791
17792
17793
17794
17795
17796
17797
17798 db_found=no
17799 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17800 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17801
17802 # Check whether --with-sqlite was given.
17803 if test "${with_sqlite+set}" = set; then
17804   withval=$with_sqlite;
17805   if test "$withval" != "no"; then
17806      if test "$withval" = "yes"; then
17807         if test -f /usr/local/include/sqlite.h; then
17808            SQLITE_INCDIR=/usr/local/include
17809            if test -d /usr/local/lib64; then
17810               SQLITE_LIBDIR=/usr/local/lib64
17811            else
17812               SQLITE_LIBDIR=/usr/local/lib
17813            fi
17814            SQLITE_BINDIR=/usr/local/bin
17815         elif test -f /usr/include/sqlite.h; then
17816            SQLITE_INCDIR=/usr/include
17817            if test -d /usr/lib64; then
17818               SQLITE_LIBDIR=/usr/lib64
17819            else
17820               SQLITE_LIBDIR=/usr/lib
17821            fi
17822            SQLITE_BINDIR=/usr/bin
17823         elif test -f $prefix/include/sqlite.h; then
17824            SQLITE_INCDIR=$prefix/include
17825            if test -d $prefix/lib64; then
17826               SQLITE_LIBDIR=$prefix/lib64
17827            else
17828               SQLITE_LIBDIR=$prefix/lib
17829            fi
17830            SQLITE_BINDIR=$prefix/bin
17831         else
17832            { echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6; }
17834            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17835 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17836    { (exit 1); exit 1; }; }
17837         fi
17838      else
17839         if test -f $withval/sqlite.h; then
17840            SQLITE_INCDIR=$withval
17841            SQLITE_LIBDIR=$withval
17842            SQLITE_BINDIR=$withval
17843         elif test -f $withval/include/sqlite.h; then
17844            SQLITE_INCDIR=$withval/include
17845            if test -d $withval/lib64; then
17846               SQLITE_LIBDIR=$withval/lib64
17847            else
17848               SQLITE_LIBDIR=$withval/lib
17849            fi
17850            SQLITE_BINDIR=$withval/bin
17851         else
17852            { echo "$as_me:$LINENO: result: no" >&5
17853 echo "${ECHO_T}no" >&6; }
17854            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17855 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17856    { (exit 1); exit 1; }; }
17857         fi
17858      fi
17859      SQL_INCLUDE=-I$SQLITE_INCDIR
17860      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17861      SQL_BINDIR=$SQLITE_BINDIR
17862      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17863
17864      cat >>confdefs.h <<\_ACEOF
17865 #define HAVE_SQLITE 1
17866 _ACEOF
17867
17868      { echo "$as_me:$LINENO: result: yes" >&5
17869 echo "${ECHO_T}yes" >&6; }
17870      db_found=yes
17871      support_sqlite=yes
17872      db_type=SQLite
17873      DB_TYPE=sqlite
17874
17875   else
17876      { echo "$as_me:$LINENO: result: no" >&5
17877 echo "${ECHO_T}no" >&6; }
17878   fi
17879
17880 else
17881
17882   { echo "$as_me:$LINENO: result: no" >&5
17883 echo "${ECHO_T}no" >&6; }
17884
17885 fi
17886
17887
17888
17889
17890
17891
17892
17893
17894 db_found=no
17895 { echo "$as_me:$LINENO: checking for DBI support" >&5
17896 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17897
17898 # Check whether --with-dbi was given.
17899 if test "${with_dbi+set}" = set; then
17900   withval=$with_dbi;
17901   if test "$withval" != "no"; then
17902      if test "$withval" = "yes"; then
17903         if test -f /usr/local/include/dbi/dbi.h; then
17904            DBI_INCDIR=/usr/local/dbi/include
17905            if test -d /usr/local/lib64; then
17906               DBI_LIBDIR=/usr/local/lib64
17907            else
17908               DBI_LIBDIR=/usr/local/lib
17909            fi
17910            DBI_BINDIR=/usr/local/bin
17911         elif test -f /usr/include/dbi/dbi.h; then
17912            DBI_INCDIR=/usr/include
17913            if test -d /usr/lib64; then
17914               DBI_LIBDIR=/usr/lib64
17915            else
17916               DBI_LIBDIR=/usr/lib
17917            fi
17918            DBI_BINDIR=/usr/bin
17919         elif test -f $prefix/include/dbi/dbi.h; then
17920            DBI_INCDIR=$prefix/include
17921            if test -d $prefix/lib64; then
17922               DBI_LIBDIR=$prefix/lib64
17923            else
17924               DBI_LIBDIR=$prefix/lib
17925            fi
17926            DBI_BINDIR=$prefix/bin
17927         else
17928            { echo "$as_me:$LINENO: result: no" >&5
17929 echo "${ECHO_T}no" >&6; }
17930            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17931 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17932    { (exit 1); exit 1; }; }
17933         fi
17934         if test -d /usr/local/lib/dbd; then
17935            DRIVERDIR=/usr/local/lib/dbd
17936            if test -d /usr/local/lib64/dbd; then
17937               DRIVERDIR=/usr/local/lib64/dbd
17938            else
17939               DRIVERDIR=/usr/local/lib/dbd
17940            fi
17941         elif test -d /usr/lib/dbd; then
17942            DRIVERDIR=/usr/lib/dbd
17943            if test -d /usr/lib64/dbd; then
17944               DRIVERDIR=/usr/lib64/dbd
17945            else
17946               DRIVERDIR=/usr/lib/dbd
17947            fi
17948         elif test -d $prefix/lib/dbd; then
17949            if test -d $prefix/lib64/dbd; then
17950               DRIVERDIR=$prefix/lib64/dbd
17951            else
17952               DRIVERDIR=$prefix/lib/dbd
17953            fi
17954         else
17955            { echo "$as_me:$LINENO: result: no" >&5
17956 echo "${ECHO_T}no" >&6; }
17957            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17958 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17959    { (exit 1); exit 1; }; }
17960         fi
17961      else
17962         if test -f $withval/dbi.h; then
17963            DBI_INCDIR=$withval
17964            DBI_LIBDIR=$withval
17965            DBI_BINDIR=$withval
17966         elif test -f $withval/include/dbi/dbi.h; then
17967            DBI_INCDIR=$withval/include
17968            if test -d $withval/lib64; then
17969               DBI_LIBDIR=$withval/lib64
17970            else
17971               DBI_LIBDIR=$withval/lib
17972            fi
17973            DBI_BINDIR=$withval/bin
17974         else
17975            { echo "$as_me:$LINENO: result: no" >&5
17976 echo "${ECHO_T}no" >&6; }
17977            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17978 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17979    { (exit 1); exit 1; }; }
17980         fi
17981         if test -d $withval/dbd; then
17982            DRIVERDIR=$withval/dbd
17983         elif test -d $withval/lib/; then
17984            if test -d $withval/lib64/dbd; then
17985               DRIVERDIR=$withval/lib64/dbd
17986            else
17987               DRIVERDIR=$withval/lib/dbd
17988            fi
17989         else
17990            { echo "$as_me:$LINENO: result: no" >&5
17991 echo "${ECHO_T}no" >&6; }
17992            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17993 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17994    { (exit 1); exit 1; }; }
17995         fi
17996      fi
17997      SQL_INCLUDE=-I$DBI_INCDIR
17998      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17999      SQL_BINDIR=$DBI_BINDIR
18000      SQL_LIB=$DBI_LIBDIR/libdbi.a
18001      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18002
18003
18004 cat >>confdefs.h <<\_ACEOF
18005 #define HAVE_DBI 1
18006 _ACEOF
18007
18008      { echo "$as_me:$LINENO: result: yes" >&5
18009 echo "${ECHO_T}yes" >&6; }
18010      db_found=yes
18011      support_dbi=yes
18012      db_type=DBI
18013      DB_TYPE=dbi
18014
18015   else
18016      { echo "$as_me:$LINENO: result: no" >&5
18017 echo "${ECHO_T}no" >&6; }
18018   fi
18019
18020 else
18021
18022   { echo "$as_me:$LINENO: result: no" >&5
18023 echo "${ECHO_T}no" >&6; }
18024
18025 fi
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035 db_found=no
18036 db_prog=no
18037 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18038 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18039
18040 # Check whether --with-dbi-driver was given.
18041 if test "${with_dbi_driver+set}" = set; then
18042   withval=$with_dbi_driver;
18043   if test "$withval" != "no"; then
18044      case $withval in
18045         "mysql")
18046            db_prog="mysql"
18047            if test -f /usr/local/mysql/bin/mysql; then
18048               SQL_BINDIR=/usr/local/mysql/bin
18049               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18050                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18051                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18052               else
18053                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
18054               fi
18055            elif test -f /usr/bin/mysql; then
18056               SQL_BINDIR=/usr/bin
18057               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18058                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18059                   SQL_LIBDIR=/usr/lib64/mysql
18060               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18061                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18062                   SQL_LIBDIR=/usr/lib/mysql
18063               else
18064                   SQL_LIBDIR=/usr/lib
18065               fi
18066            elif test -f /usr/local/bin/mysql; then
18067               SQL_BINDIR=/usr/local/bin
18068               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18069                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18070                   SQL_LIBDIR=/usr/local/lib64/mysql
18071               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18072                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18073                   SQL_LIBDIR=/usr/local/lib/mysql
18074               else
18075                   SQL_LIBDIR=/usr/local/lib
18076               fi
18077            elif test -f $withval/bin/mysql; then
18078               SQL_BINDIR=$withval/bin
18079               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18080                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18081                   SQL_LIBDIR=$withval/lib64/mysql
18082               elif test -f $withval/lib64/libmysqlclient_r.a \
18083                   -o -f $withval/lib64/libmysqlclient_r.so; then
18084                   SQL_LIBDIR=$withval/lib64
18085               elif test -f $withval/lib/libmysqlclient_r.a \
18086                   -o -f $withval/lib/libmysqlclient_r.so; then
18087                   SQL_LIBDIR=$withval/lib/
18088               else
18089                   SQL_LIBDIR=$withval/lib/mysql
18090               fi
18091            else
18092               { echo "$as_me:$LINENO: result: no" >&5
18093 echo "${ECHO_T}no" >&6; }
18094               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18095 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18096    { (exit 1); exit 1; }; }
18097            fi
18098            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18099         ;;
18100         "postgresql")
18101            db_prog="postgresql"
18102            PG_CONFIG=`which pg_config`
18103            if test -n "$PG_CONFIG"; then
18104               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18105               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18106            elif test -f /usr/local/bin/psql; then
18107               SQL_BINDIR=/usr/local/bin
18108               if test -d /usr/local/lib64; then
18109                  SQL_LIBDIR=/usr/local/lib64
18110               else
18111                  SQL_LIBDIR=/usr/local/lib
18112               fi
18113            elif test -f /usr/bin/psql; then
18114               SQL_BINDIR=/usr/local/bin
18115               if test -d /usr/lib64/postgresql; then
18116                  SQL_LIBDIR=/usr/lib64/postgresql
18117               elif test -d /usr/lib/postgresql; then
18118                  SQL_LIBDIR=/usr/lib/postgresql
18119               elif test -d /usr/lib64; then
18120                  SQL_LIBDIR=/usr/lib64
18121               else
18122                  SQL_LIBDIR=/usr/lib
18123               fi
18124            elif test -f $withval/bin/psql; then
18125               SQL_BINDIR=$withval/bin
18126               if test -d $withval/lib64; then
18127                  SQL_LIBDIR=$withval/lib64
18128               else
18129                  SQL_LIBDIR=$withval/lib
18130               fi
18131            else
18132               { echo "$as_me:$LINENO: result: no" >&5
18133 echo "${ECHO_T}no" >&6; }
18134               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18135 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18136    { (exit 1); exit 1; }; }
18137            fi
18138            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18139         ;;
18140         *)
18141            { echo "$as_me:$LINENO: result: no" >&5
18142 echo "${ECHO_T}no" >&6; }
18143            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18144 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18145    { (exit 1); exit 1; }; }
18146         ;;
18147      esac
18148
18149      { echo "$as_me:$LINENO: result: yes" >&5
18150 echo "${ECHO_T}yes" >&6; }
18151      DB_PROG=$db_prog
18152   else
18153      { echo "$as_me:$LINENO: result: no" >&5
18154 echo "${ECHO_T}no" >&6; }
18155   fi
18156
18157 else
18158
18159   { echo "$as_me:$LINENO: result: no" >&5
18160 echo "${ECHO_T}no" >&6; }
18161
18162 fi
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173 # -------------------------------------------
18174 # enable batch attribute DB insert (default on)
18175 # -------------------------------------------
18176 support_batch_insert=no
18177 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18178 pkg=$?
18179 if test $pkg = 0; then
18180    support_batch_insert=yes
18181    # Check whether --enable-batch-insert was given.
18182 if test "${enable_batch_insert+set}" = set; then
18183   enableval=$enable_batch_insert; if test x$enableval = xno; then
18184        support_batch_insert=no
18185       else
18186        support_batch_insert=yes
18187      fi
18188 fi
18189
18190 fi
18191
18192 # Check if postgresql support batch mode
18193 if test x$DB_TYPE = xpostgresql; then
18194    A=`nm $SQL_LIB | grep PQputCopyData`
18195    pkg=$?
18196    if test $pkg != 0; then
18197       support_batch_insert=no
18198    fi
18199 fi
18200
18201 if test x$DB_TYPE = xdbi; then
18202    DB_TYPE=$DB_PROG
18203    db_type=$DB_PROG
18204    pkg=1
18205    # Check for batch insert
18206    if test $DB_PROG = postgresql; then
18207       A=`nm $DB_PROG_LIB | grep PQputCopyData`
18208       pkg=$?
18209    fi
18210
18211    if test $DB_PROG = mysql; then
18212       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18213       pkg=$?
18214    fi
18215
18216    if test $pkg = 0; then
18217       # Check whether --enable-batch-insert was given.
18218 if test "${enable_batch_insert+set}" = set; then
18219   enableval=$enable_batch_insert; if test x$enableval = xno; then
18220          support_batch_insert=no
18221        else
18222          support_batch_insert=yes
18223       fi
18224 fi
18225
18226    fi
18227 fi
18228
18229 if test $support_batch_insert = yes ; then
18230
18231 cat >>confdefs.h <<\_ACEOF
18232 #define HAVE_BATCH_FILE_INSERT 1
18233 _ACEOF
18234
18235 fi
18236
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define PROTOTYPES 1
18240 _ACEOF
18241
18242
18243 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18244     if test -z "$CCOPTS"; then
18245         CCOPTS='-g -O2 -Wall'
18246     fi
18247     CFLAGS="$CCOPTS"
18248 fi
18249
18250
18251
18252
18253 largefile_support="no"
18254
18255    # Check whether --enable-largefile was given.
18256 if test "${enable_largefile+set}" = set; then
18257   enableval=$enable_largefile;
18258 fi
18259
18260    if test "$enable_largefile" != no; then
18261      if test -n "$ac_tool_prefix"; then
18262   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18263 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18266 if test "${ac_cv_prog_GETCONF+set}" = set; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269   if test -n "$GETCONF"; then
18270   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18271 else
18272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18273 for as_dir in $PATH
18274 do
18275   IFS=$as_save_IFS
18276   test -z "$as_dir" && as_dir=.
18277   for ac_exec_ext in '' $ac_executable_extensions; do
18278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18279     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18281     break 2
18282   fi
18283 done
18284 done
18285 IFS=$as_save_IFS
18286
18287 fi
18288 fi
18289 GETCONF=$ac_cv_prog_GETCONF
18290 if test -n "$GETCONF"; then
18291   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18292 echo "${ECHO_T}$GETCONF" >&6; }
18293 else
18294   { echo "$as_me:$LINENO: result: no" >&5
18295 echo "${ECHO_T}no" >&6; }
18296 fi
18297
18298
18299 fi
18300 if test -z "$ac_cv_prog_GETCONF"; then
18301   ac_ct_GETCONF=$GETCONF
18302   # Extract the first word of "getconf", so it can be a program name with args.
18303 set dummy getconf; ac_word=$2
18304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18306 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18307   echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309   if test -n "$ac_ct_GETCONF"; then
18310   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18311 else
18312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18314 do
18315   IFS=$as_save_IFS
18316   test -z "$as_dir" && as_dir=.
18317   for ac_exec_ext in '' $ac_executable_extensions; do
18318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18319     ac_cv_prog_ac_ct_GETCONF="getconf"
18320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18321     break 2
18322   fi
18323 done
18324 done
18325 IFS=$as_save_IFS
18326
18327 fi
18328 fi
18329 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18330 if test -n "$ac_ct_GETCONF"; then
18331   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18332 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18333 else
18334   { echo "$as_me:$LINENO: result: no" >&5
18335 echo "${ECHO_T}no" >&6; }
18336 fi
18337
18338   if test "x$ac_ct_GETCONF" = x; then
18339     GETCONF=""
18340   else
18341     case $cross_compiling:$ac_tool_warned in
18342 yes:)
18343 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18344 whose name does not start with the host triplet.  If you think this
18345 configuration is useful to you, please write to autoconf@gnu.org." >&5
18346 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18347 whose name does not start with the host triplet.  If you think this
18348 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18349 ac_tool_warned=yes ;;
18350 esac
18351     GETCONF=$ac_ct_GETCONF
18352   fi
18353 else
18354   GETCONF="$ac_cv_prog_GETCONF"
18355 fi
18356
18357      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18358 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18359 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18360   echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18363         ac_cv_sys_largefile_CFLAGS=no
18364         case "$host_os" in
18365            # IRIX 6.2 and later require cc -n32.
18366            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18367              if test "$GCC" != yes; then
18368                ac_cv_sys_largefile_CFLAGS=-n32
18369              fi
18370              ac_save_CC="$CC"
18371              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18372              cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378
18379 int
18380 main ()
18381 {
18382
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394   (eval "$ac_link") 2>conftest.er1
18395   ac_status=$?
18396   grep -v '^ *+' conftest.er1 >conftest.err
18397   rm -f conftest.er1
18398   cat conftest.err >&5
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); } && {
18401          test -z "$ac_c_werror_flag" ||
18402          test ! -s conftest.err
18403        } && test -s conftest$ac_exeext &&
18404        $as_test_x conftest$ac_exeext; then
18405   :
18406 else
18407   echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410         ac_cv_sys_largefile_CFLAGS=no
18411 fi
18412
18413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18414       conftest$ac_exeext conftest.$ac_ext
18415              CC="$ac_save_CC"
18416            esac
18417       }
18418 fi
18419 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18420 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18421      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18422 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18423 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18424   echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18427         ac_cv_sys_largefile_LDFLAGS=no
18428
18429       }
18430 fi
18431 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18432 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18433      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18434 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18435 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18436   echo $ECHO_N "(cached) $ECHO_C" >&6
18437 else
18438   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18439         ac_cv_sys_largefile_LIBS=no
18440
18441       }
18442 fi
18443 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18444 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18445
18446      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18447        case "$ac_flag" in
18448        no) ;;
18449        -D_FILE_OFFSET_BITS=*) ;;
18450        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18451        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18452        -D?* | -I?*)
18453          case "$ac_flag" in
18454    no) ;;
18455    ?*)
18456      case "$CPPFLAGS" in
18457      '') CPPFLAGS="$ac_flag" ;;
18458      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18459      esac ;;
18460    esac ;;
18461        *)
18462          case "$ac_flag" in
18463    no) ;;
18464    ?*)
18465      case "$CFLAGS" in
18466      '') CFLAGS="$ac_flag" ;;
18467      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18468      esac ;;
18469    esac ;;
18470        esac
18471      done
18472      case "$ac_cv_sys_largefile_LDFLAGS" in
18473    no) ;;
18474    ?*)
18475      case "$LDFLAGS" in
18476      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18477      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18478      esac ;;
18479    esac
18480      case "$ac_cv_sys_largefile_LIBS" in
18481    no) ;;
18482    ?*)
18483      case "$LIBS" in
18484      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18485      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18486      esac ;;
18487    esac
18488      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18489 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18490 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18491   echo $ECHO_N "(cached) $ECHO_C" >&6
18492 else
18493   ac_cv_sys_file_offset_bits=no
18494       ac_cv_sys_file_offset_bits=64
18495       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18496         case "$ac_flag" in
18497         -D_FILE_OFFSET_BITS)
18498           ac_cv_sys_file_offset_bits=1 ;;
18499         -D_FILE_OFFSET_BITS=*)
18500           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18501         esac
18502       done
18503
18504 fi
18505 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18506 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18507    if test "$ac_cv_sys_file_offset_bits" != no; then
18508
18509 cat >>confdefs.h <<_ACEOF
18510 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18511 _ACEOF
18512
18513    fi
18514      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18515 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18516 if test "${ac_cv_sys_largefile_source+set}" = set; then
18517   echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18519   ac_cv_sys_largefile_source=no
18520       ac_cv_sys_largefile_source=1
18521       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18522         case "$ac_flag" in
18523         -D_LARGEFILE_SOURCE)
18524           ac_cv_sys_largefile_source=1 ;;
18525         -D_LARGEFILE_SOURCE=*)
18526           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18527         esac
18528       done
18529
18530 fi
18531 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18532 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18533    if test "$ac_cv_sys_largefile_source" != no; then
18534
18535 cat >>confdefs.h <<_ACEOF
18536 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18537 _ACEOF
18538
18539    fi
18540      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18541 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18542 if test "${ac_cv_sys_large_files+set}" = set; then
18543   echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545   ac_cv_sys_large_files=no
18546       ac_cv_sys_large_files=1
18547       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18548         case "$ac_flag" in
18549         -D_LARGE_FILES)
18550           ac_cv_sys_large_files=1 ;;
18551         -D_LARGE_FILES=*)
18552           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18553         esac
18554       done
18555
18556 fi
18557 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18558 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18559    if test "$ac_cv_sys_large_files" != no; then
18560
18561 cat >>confdefs.h <<_ACEOF
18562 #define _LARGE_FILES $ac_cv_sys_large_files
18563 _ACEOF
18564
18565    fi
18566    fi
18567
18568
18569
18570 { echo "$as_me:$LINENO: checking for X" >&5
18571 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18572
18573
18574 # Check whether --with-x was given.
18575 if test "${with_x+set}" = set; then
18576   withval=$with_x;
18577 fi
18578
18579 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18580 if test "x$with_x" = xno; then
18581   # The user explicitly disabled X.
18582   have_x=disabled
18583 else
18584   case $x_includes,$x_libraries in #(
18585     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18586 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18587    { (exit 1); exit 1; }; };; #(
18588     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   # One or both of the vars are not set, and there is no cached value.
18592 ac_x_includes=no ac_x_libraries=no
18593 rm -f -r conftest.dir
18594 if mkdir conftest.dir; then
18595   cd conftest.dir
18596   cat >Imakefile <<'_ACEOF'
18597 incroot:
18598         @echo incroot='${INCROOT}'
18599 usrlibdir:
18600         @echo usrlibdir='${USRLIBDIR}'
18601 libdir:
18602         @echo libdir='${LIBDIR}'
18603 _ACEOF
18604   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18605     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18606     for ac_var in incroot usrlibdir libdir; do
18607       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18608     done
18609     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18610     for ac_extension in a so sl; do
18611       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18612          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18613         ac_im_usrlibdir=$ac_im_libdir; break
18614       fi
18615     done
18616     # Screen out bogus values from the imake configuration.  They are
18617     # bogus both because they are the default anyway, and because
18618     # using them would break gcc on systems where it needs fixed includes.
18619     case $ac_im_incroot in
18620         /usr/include) ac_x_includes= ;;
18621         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18622     esac
18623     case $ac_im_usrlibdir in
18624         /usr/lib | /lib) ;;
18625         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18626     esac
18627   fi
18628   cd ..
18629   rm -f -r conftest.dir
18630 fi
18631
18632 # Standard set of common directories for X headers.
18633 # Check X11 before X11Rn because it is often a symlink to the current release.
18634 ac_x_header_dirs='
18635 /usr/X11/include
18636 /usr/X11R6/include
18637 /usr/X11R5/include
18638 /usr/X11R4/include
18639
18640 /usr/include/X11
18641 /usr/include/X11R6
18642 /usr/include/X11R5
18643 /usr/include/X11R4
18644
18645 /usr/local/X11/include
18646 /usr/local/X11R6/include
18647 /usr/local/X11R5/include
18648 /usr/local/X11R4/include
18649
18650 /usr/local/include/X11
18651 /usr/local/include/X11R6
18652 /usr/local/include/X11R5
18653 /usr/local/include/X11R4
18654
18655 /usr/X386/include
18656 /usr/x386/include
18657 /usr/XFree86/include/X11
18658
18659 /usr/include
18660 /usr/local/include
18661 /usr/unsupported/include
18662 /usr/athena/include
18663 /usr/local/x11r5/include
18664 /usr/lpp/Xamples/include
18665
18666 /usr/openwin/include
18667 /usr/openwin/share/include'
18668
18669 if test "$ac_x_includes" = no; then
18670   # Guess where to find include files, by looking for Xlib.h.
18671   # First, try using that file with no special directory specified.
18672   cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h.  */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h.  */
18678 #include <X11/Xlib.h>
18679 _ACEOF
18680 if { (ac_try="$ac_cpp conftest.$ac_ext"
18681 case "(($ac_try" in
18682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683   *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18687   ac_status=$?
18688   grep -v '^ *+' conftest.er1 >conftest.err
18689   rm -f conftest.er1
18690   cat conftest.err >&5
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); } >/dev/null && {
18693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18694          test ! -s conftest.err
18695        }; then
18696   # We can compile using X headers with no special include directory.
18697 ac_x_includes=
18698 else
18699   echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702   for ac_dir in $ac_x_header_dirs; do
18703   if test -r "$ac_dir/X11/Xlib.h"; then
18704     ac_x_includes=$ac_dir
18705     break
18706   fi
18707 done
18708 fi
18709
18710 rm -f conftest.err conftest.$ac_ext
18711 fi # $ac_x_includes = no
18712
18713 if test "$ac_x_libraries" = no; then
18714   # Check for the libraries.
18715   # See if we find them without any special options.
18716   # Don't add to $LIBS permanently.
18717   ac_save_LIBS=$LIBS
18718   LIBS="-lX11 $LIBS"
18719   cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h.  */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h.  */
18725 #include <X11/Xlib.h>
18726 int
18727 main ()
18728 {
18729 XrmInitialize ()
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (ac_try="$ac_link"
18736 case "(($ac_try" in
18737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738   *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741   (eval "$ac_link") 2>conftest.er1
18742   ac_status=$?
18743   grep -v '^ *+' conftest.er1 >conftest.err
18744   rm -f conftest.er1
18745   cat conftest.err >&5
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); } && {
18748          test -z "$ac_c_werror_flag" ||
18749          test ! -s conftest.err
18750        } && test -s conftest$ac_exeext &&
18751        $as_test_x conftest$ac_exeext; then
18752   LIBS=$ac_save_LIBS
18753 # We can link X programs with no special library path.
18754 ac_x_libraries=
18755 else
18756   echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18758
18759         LIBS=$ac_save_LIBS
18760 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18761 do
18762   # Don't even attempt the hair of trying to link an X program!
18763   for ac_extension in a so sl; do
18764     if test -r "$ac_dir/libX11.$ac_extension"; then
18765       ac_x_libraries=$ac_dir
18766       break 2
18767     fi
18768   done
18769 done
18770 fi
18771
18772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18773       conftest$ac_exeext conftest.$ac_ext
18774 fi # $ac_x_libraries = no
18775
18776 case $ac_x_includes,$ac_x_libraries in #(
18777   no,* | *,no | *\'*)
18778     # Didn't find X, or a directory has "'" in its name.
18779     ac_cv_have_x="have_x=no";; #(
18780   *)
18781     # Record where we found X for the cache.
18782     ac_cv_have_x="have_x=yes\
18783         ac_x_includes='$ac_x_includes'\
18784         ac_x_libraries='$ac_x_libraries'"
18785 esac
18786 fi
18787 ;; #(
18788     *) have_x=yes;;
18789   esac
18790   eval "$ac_cv_have_x"
18791 fi # $with_x != no
18792
18793 if test "$have_x" != yes; then
18794   { echo "$as_me:$LINENO: result: $have_x" >&5
18795 echo "${ECHO_T}$have_x" >&6; }
18796   no_x=yes
18797 else
18798   # If each of the values was on the command line, it overrides each guess.
18799   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18800   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18801   # Update the cache value to reflect the command line values.
18802   ac_cv_have_x="have_x=yes\
18803         ac_x_includes='$x_includes'\
18804         ac_x_libraries='$x_libraries'"
18805   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18806 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18807 fi
18808
18809 if test "$no_x" = yes; then
18810   # Not all programs may use this symbol, but it does not hurt to define it.
18811
18812 cat >>confdefs.h <<\_ACEOF
18813 #define X_DISPLAY_MISSING 1
18814 _ACEOF
18815
18816   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18817 else
18818   if test -n "$x_includes"; then
18819     X_CFLAGS="$X_CFLAGS -I$x_includes"
18820   fi
18821
18822   # It would also be nice to do this for all -L options, not just this one.
18823   if test -n "$x_libraries"; then
18824     X_LIBS="$X_LIBS -L$x_libraries"
18825     # For Solaris; some versions of Sun CC require a space after -R and
18826     # others require no space.  Words are not sufficient . . . .
18827     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18828 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18829     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18830     ac_xsave_c_werror_flag=$ac_c_werror_flag
18831     ac_c_werror_flag=yes
18832     cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838
18839 int
18840 main ()
18841 {
18842
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_link") 2>conftest.er1
18855   ac_status=$?
18856   grep -v '^ *+' conftest.er1 >conftest.err
18857   rm -f conftest.er1
18858   cat conftest.err >&5
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); } && {
18861          test -z "$ac_c_werror_flag" ||
18862          test ! -s conftest.err
18863        } && test -s conftest$ac_exeext &&
18864        $as_test_x conftest$ac_exeext; then
18865   { echo "$as_me:$LINENO: result: no" >&5
18866 echo "${ECHO_T}no" >&6; }
18867        X_LIBS="$X_LIBS -R$x_libraries"
18868 else
18869   echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18871
18872         LIBS="$ac_xsave_LIBS -R $x_libraries"
18873        cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h.  */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h.  */
18879
18880 int
18881 main ()
18882 {
18883
18884   ;
18885   return 0;
18886 }
18887 _ACEOF
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_link") 2>conftest.er1
18896   ac_status=$?
18897   grep -v '^ *+' conftest.er1 >conftest.err
18898   rm -f conftest.er1
18899   cat conftest.err >&5
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); } && {
18902          test -z "$ac_c_werror_flag" ||
18903          test ! -s conftest.err
18904        } && test -s conftest$ac_exeext &&
18905        $as_test_x conftest$ac_exeext; then
18906   { echo "$as_me:$LINENO: result: yes" >&5
18907 echo "${ECHO_T}yes" >&6; }
18908           X_LIBS="$X_LIBS -R $x_libraries"
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913         { echo "$as_me:$LINENO: result: neither works" >&5
18914 echo "${ECHO_T}neither works" >&6; }
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18918       conftest$ac_exeext conftest.$ac_ext
18919 fi
18920
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922       conftest$ac_exeext conftest.$ac_ext
18923     ac_c_werror_flag=$ac_xsave_c_werror_flag
18924     LIBS=$ac_xsave_LIBS
18925   fi
18926
18927   # Check for system-dependent libraries X programs must link with.
18928   # Do this before checking for the system-independent R6 libraries
18929   # (-lICE), since we may need -lsocket or whatever for X linking.
18930
18931   if test "$ISC" = yes; then
18932     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18933   else
18934     # Martyn Johnson says this is needed for Ultrix, if the X
18935     # libraries were built with DECnet support.  And Karl Berry says
18936     # the Alpha needs dnet_stub (dnet does not exist).
18937     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18938     cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944
18945 /* Override any GCC internal prototype to avoid an error.
18946    Use char because int might match the return type of a GCC
18947    builtin and then its argument prototype would still apply.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char XOpenDisplay ();
18952 int
18953 main ()
18954 {
18955 return XOpenDisplay ();
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_link") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest$ac_exeext &&
18977        $as_test_x conftest$ac_exeext; then
18978   :
18979 else
18980   echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18984 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18985 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988   ac_check_lib_save_LIBS=$LIBS
18989 LIBS="-ldnet  $LIBS"
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h.  */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h.  */
18996
18997 /* Override any GCC internal prototype to avoid an error.
18998    Use char because int might match the return type of a GCC
18999    builtin and then its argument prototype would still apply.  */
19000 #ifdef __cplusplus
19001 extern "C"
19002 #endif
19003 char dnet_ntoa ();
19004 int
19005 main ()
19006 {
19007 return dnet_ntoa ();
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (ac_try="$ac_link"
19014 case "(($ac_try" in
19015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016   *) ac_try_echo=$ac_try;;
19017 esac
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019   (eval "$ac_link") 2>conftest.er1
19020   ac_status=$?
19021   grep -v '^ *+' conftest.er1 >conftest.err
19022   rm -f conftest.er1
19023   cat conftest.err >&5
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); } && {
19026          test -z "$ac_c_werror_flag" ||
19027          test ! -s conftest.err
19028        } && test -s conftest$ac_exeext &&
19029        $as_test_x conftest$ac_exeext; then
19030   ac_cv_lib_dnet_dnet_ntoa=yes
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035         ac_cv_lib_dnet_dnet_ntoa=no
19036 fi
19037
19038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19039       conftest$ac_exeext conftest.$ac_ext
19040 LIBS=$ac_check_lib_save_LIBS
19041 fi
19042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19043 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19044 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19045   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19046 fi
19047
19048     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19049       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19050 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19051 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19052   echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054   ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-ldnet_stub  $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h.  */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h.  */
19062
19063 /* Override any GCC internal prototype to avoid an error.
19064    Use char because int might match the return type of a GCC
19065    builtin and then its argument prototype would still apply.  */
19066 #ifdef __cplusplus
19067 extern "C"
19068 #endif
19069 char dnet_ntoa ();
19070 int
19071 main ()
19072 {
19073 return dnet_ntoa ();
19074   ;
19075   return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (ac_try="$ac_link"
19080 case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085   (eval "$ac_link") 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } && {
19092          test -z "$ac_c_werror_flag" ||
19093          test ! -s conftest.err
19094        } && test -s conftest$ac_exeext &&
19095        $as_test_x conftest$ac_exeext; then
19096   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101         ac_cv_lib_dnet_stub_dnet_ntoa=no
19102 fi
19103
19104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19105       conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19107 fi
19108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19109 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19110 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19111   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19112 fi
19113
19114     fi
19115 fi
19116
19117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19118       conftest$ac_exeext conftest.$ac_ext
19119     LIBS="$ac_xsave_LIBS"
19120
19121     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19122     # to get the SysV transport functions.
19123     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19124     # needs -lnsl.
19125     # The nsl library prevents programs from opening the X display
19126     # on Irix 5.2, according to T.E. Dickey.
19127     # The functions gethostbyname, getservbyname, and inet_addr are
19128     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19129     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19130 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19131 if test "${ac_cv_func_gethostbyname+set}" = set; then
19132   echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134   cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h.  */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h.  */
19140 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19142 #define gethostbyname innocuous_gethostbyname
19143
19144 /* System header to define __stub macros and hopefully few prototypes,
19145     which can conflict with char gethostbyname (); below.
19146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19147     <limits.h> exists even on freestanding compilers.  */
19148
19149 #ifdef __STDC__
19150 # include <limits.h>
19151 #else
19152 # include <assert.h>
19153 #endif
19154
19155 #undef gethostbyname
19156
19157 /* Override any GCC internal prototype to avoid an error.
19158    Use char because int might match the return type of a GCC
19159    builtin and then its argument prototype would still apply.  */
19160 #ifdef __cplusplus
19161 extern "C"
19162 #endif
19163 char gethostbyname ();
19164 /* The GNU C library defines this for functions which it implements
19165     to always fail with ENOSYS.  Some functions are actually named
19166     something starting with __ and the normal name is an alias.  */
19167 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19168 choke me
19169 #endif
19170
19171 int
19172 main ()
19173 {
19174 return gethostbyname ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186   (eval "$ac_link") 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } && {
19193          test -z "$ac_c_werror_flag" ||
19194          test ! -s conftest.err
19195        } && test -s conftest$ac_exeext &&
19196        $as_test_x conftest$ac_exeext; then
19197   ac_cv_func_gethostbyname=yes
19198 else
19199   echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202         ac_cv_func_gethostbyname=no
19203 fi
19204
19205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19206       conftest$ac_exeext conftest.$ac_ext
19207 fi
19208 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19209 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19210
19211     if test $ac_cv_func_gethostbyname = no; then
19212       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19213 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19214 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   ac_check_lib_save_LIBS=$LIBS
19218 LIBS="-lnsl  $LIBS"
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225
19226 /* Override any GCC internal prototype to avoid an error.
19227    Use char because int might match the return type of a GCC
19228    builtin and then its argument prototype would still apply.  */
19229 #ifdef __cplusplus
19230 extern "C"
19231 #endif
19232 char gethostbyname ();
19233 int
19234 main ()
19235 {
19236 return gethostbyname ();
19237   ;
19238   return 0;
19239 }
19240 _ACEOF
19241 rm -f conftest.$ac_objext conftest$ac_exeext
19242 if { (ac_try="$ac_link"
19243 case "(($ac_try" in
19244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19245   *) ac_try_echo=$ac_try;;
19246 esac
19247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19248   (eval "$ac_link") 2>conftest.er1
19249   ac_status=$?
19250   grep -v '^ *+' conftest.er1 >conftest.err
19251   rm -f conftest.er1
19252   cat conftest.err >&5
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); } && {
19255          test -z "$ac_c_werror_flag" ||
19256          test ! -s conftest.err
19257        } && test -s conftest$ac_exeext &&
19258        $as_test_x conftest$ac_exeext; then
19259   ac_cv_lib_nsl_gethostbyname=yes
19260 else
19261   echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264         ac_cv_lib_nsl_gethostbyname=no
19265 fi
19266
19267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19268       conftest$ac_exeext conftest.$ac_ext
19269 LIBS=$ac_check_lib_save_LIBS
19270 fi
19271 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19272 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19273 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19274   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19275 fi
19276
19277       if test $ac_cv_lib_nsl_gethostbyname = no; then
19278         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19279 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19280 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   ac_check_lib_save_LIBS=$LIBS
19284 LIBS="-lbsd  $LIBS"
19285 cat >conftest.$ac_ext <<_ACEOF
19286 /* confdefs.h.  */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h.  */
19291
19292 /* Override any GCC internal prototype to avoid an error.
19293    Use char because int might match the return type of a GCC
19294    builtin and then its argument prototype would still apply.  */
19295 #ifdef __cplusplus
19296 extern "C"
19297 #endif
19298 char gethostbyname ();
19299 int
19300 main ()
19301 {
19302 return gethostbyname ();
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest.$ac_objext conftest$ac_exeext
19308 if { (ac_try="$ac_link"
19309 case "(($ac_try" in
19310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311   *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314   (eval "$ac_link") 2>conftest.er1
19315   ac_status=$?
19316   grep -v '^ *+' conftest.er1 >conftest.err
19317   rm -f conftest.er1
19318   cat conftest.err >&5
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); } && {
19321          test -z "$ac_c_werror_flag" ||
19322          test ! -s conftest.err
19323        } && test -s conftest$ac_exeext &&
19324        $as_test_x conftest$ac_exeext; then
19325   ac_cv_lib_bsd_gethostbyname=yes
19326 else
19327   echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330         ac_cv_lib_bsd_gethostbyname=no
19331 fi
19332
19333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19334       conftest$ac_exeext conftest.$ac_ext
19335 LIBS=$ac_check_lib_save_LIBS
19336 fi
19337 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19338 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19339 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19340   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19341 fi
19342
19343       fi
19344     fi
19345
19346     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19347     # socket/setsockopt and other routines are undefined under SCO ODT
19348     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19349     # on later versions), says Simon Leinen: it contains gethostby*
19350     # variants that don't use the name server (or something).  -lsocket
19351     # must be given before -lnsl if both are needed.  We assume that
19352     # if connect needs -lnsl, so does gethostbyname.
19353     { echo "$as_me:$LINENO: checking for connect" >&5
19354 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19355 if test "${ac_cv_func_connect+set}" = set; then
19356   echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358   cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h.  */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h.  */
19364 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19366 #define connect innocuous_connect
19367
19368 /* System header to define __stub macros and hopefully few prototypes,
19369     which can conflict with char connect (); below.
19370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371     <limits.h> exists even on freestanding compilers.  */
19372
19373 #ifdef __STDC__
19374 # include <limits.h>
19375 #else
19376 # include <assert.h>
19377 #endif
19378
19379 #undef connect
19380
19381 /* Override any GCC internal prototype to avoid an error.
19382    Use char because int might match the return type of a GCC
19383    builtin and then its argument prototype would still apply.  */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 char connect ();
19388 /* The GNU C library defines this for functions which it implements
19389     to always fail with ENOSYS.  Some functions are actually named
19390     something starting with __ and the normal name is an alias.  */
19391 #if defined __stub_connect || defined __stub___connect
19392 choke me
19393 #endif
19394
19395 int
19396 main ()
19397 {
19398 return connect ();
19399   ;
19400   return 0;
19401 }
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407   *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410   (eval "$ac_link") 2>conftest.er1
19411   ac_status=$?
19412   grep -v '^ *+' conftest.er1 >conftest.err
19413   rm -f conftest.er1
19414   cat conftest.err >&5
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); } && {
19417          test -z "$ac_c_werror_flag" ||
19418          test ! -s conftest.err
19419        } && test -s conftest$ac_exeext &&
19420        $as_test_x conftest$ac_exeext; then
19421   ac_cv_func_connect=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426         ac_cv_func_connect=no
19427 fi
19428
19429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430       conftest$ac_exeext conftest.$ac_ext
19431 fi
19432 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19433 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19434
19435     if test $ac_cv_func_connect = no; then
19436       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19437 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19438 if test "${ac_cv_lib_socket_connect+set}" = set; then
19439   echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441   ac_check_lib_save_LIBS=$LIBS
19442 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19443 cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h.  */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h.  */
19449
19450 /* Override any GCC internal prototype to avoid an error.
19451    Use char because int might match the return type of a GCC
19452    builtin and then its argument prototype would still apply.  */
19453 #ifdef __cplusplus
19454 extern "C"
19455 #endif
19456 char connect ();
19457 int
19458 main ()
19459 {
19460 return connect ();
19461   ;
19462   return 0;
19463 }
19464 _ACEOF
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (ac_try="$ac_link"
19467 case "(($ac_try" in
19468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469   *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472   (eval "$ac_link") 2>conftest.er1
19473   ac_status=$?
19474   grep -v '^ *+' conftest.er1 >conftest.err
19475   rm -f conftest.er1
19476   cat conftest.err >&5
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } && {
19479          test -z "$ac_c_werror_flag" ||
19480          test ! -s conftest.err
19481        } && test -s conftest$ac_exeext &&
19482        $as_test_x conftest$ac_exeext; then
19483   ac_cv_lib_socket_connect=yes
19484 else
19485   echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19487
19488         ac_cv_lib_socket_connect=no
19489 fi
19490
19491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492       conftest$ac_exeext conftest.$ac_ext
19493 LIBS=$ac_check_lib_save_LIBS
19494 fi
19495 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19496 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19497 if test $ac_cv_lib_socket_connect = yes; then
19498   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19499 fi
19500
19501     fi
19502
19503     # Guillermo Gomez says -lposix is necessary on A/UX.
19504     { echo "$as_me:$LINENO: checking for remove" >&5
19505 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19506 if test "${ac_cv_func_remove+set}" = set; then
19507   echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509   cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h.  */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h.  */
19515 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19517 #define remove innocuous_remove
19518
19519 /* System header to define __stub macros and hopefully few prototypes,
19520     which can conflict with char remove (); below.
19521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19522     <limits.h> exists even on freestanding compilers.  */
19523
19524 #ifdef __STDC__
19525 # include <limits.h>
19526 #else
19527 # include <assert.h>
19528 #endif
19529
19530 #undef remove
19531
19532 /* Override any GCC internal prototype to avoid an error.
19533    Use char because int might match the return type of a GCC
19534    builtin and then its argument prototype would still apply.  */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 char remove ();
19539 /* The GNU C library defines this for functions which it implements
19540     to always fail with ENOSYS.  Some functions are actually named
19541     something starting with __ and the normal name is an alias.  */
19542 #if defined __stub_remove || defined __stub___remove
19543 choke me
19544 #endif
19545
19546 int
19547 main ()
19548 {
19549 return remove ();
19550   ;
19551   return 0;
19552 }
19553 _ACEOF
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (ac_try="$ac_link"
19556 case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_link") 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } && {
19568          test -z "$ac_c_werror_flag" ||
19569          test ! -s conftest.err
19570        } && test -s conftest$ac_exeext &&
19571        $as_test_x conftest$ac_exeext; then
19572   ac_cv_func_remove=yes
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577         ac_cv_func_remove=no
19578 fi
19579
19580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19581       conftest$ac_exeext conftest.$ac_ext
19582 fi
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19584 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19585
19586     if test $ac_cv_func_remove = no; then
19587       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19588 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19589 if test "${ac_cv_lib_posix_remove+set}" = set; then
19590   echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592   ac_check_lib_save_LIBS=$LIBS
19593 LIBS="-lposix  $LIBS"
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600
19601 /* Override any GCC internal prototype to avoid an error.
19602    Use char because int might match the return type of a GCC
19603    builtin and then its argument prototype would still apply.  */
19604 #ifdef __cplusplus
19605 extern "C"
19606 #endif
19607 char remove ();
19608 int
19609 main ()
19610 {
19611 return remove ();
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext conftest$ac_exeext
19617 if { (ac_try="$ac_link"
19618 case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623   (eval "$ac_link") 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } && {
19630          test -z "$ac_c_werror_flag" ||
19631          test ! -s conftest.err
19632        } && test -s conftest$ac_exeext &&
19633        $as_test_x conftest$ac_exeext; then
19634   ac_cv_lib_posix_remove=yes
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639         ac_cv_lib_posix_remove=no
19640 fi
19641
19642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19643       conftest$ac_exeext conftest.$ac_ext
19644 LIBS=$ac_check_lib_save_LIBS
19645 fi
19646 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19647 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19648 if test $ac_cv_lib_posix_remove = yes; then
19649   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19650 fi
19651
19652     fi
19653
19654     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19655     { echo "$as_me:$LINENO: checking for shmat" >&5
19656 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19657 if test "${ac_cv_func_shmat+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19668 #define shmat innocuous_shmat
19669
19670 /* System header to define __stub macros and hopefully few prototypes,
19671     which can conflict with char shmat (); below.
19672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673     <limits.h> exists even on freestanding compilers.  */
19674
19675 #ifdef __STDC__
19676 # include <limits.h>
19677 #else
19678 # include <assert.h>
19679 #endif
19680
19681 #undef shmat
19682
19683 /* Override any GCC internal prototype to avoid an error.
19684    Use char because int might match the return type of a GCC
19685    builtin and then its argument prototype would still apply.  */
19686 #ifdef __cplusplus
19687 extern "C"
19688 #endif
19689 char shmat ();
19690 /* The GNU C library defines this for functions which it implements
19691     to always fail with ENOSYS.  Some functions are actually named
19692     something starting with __ and the normal name is an alias.  */
19693 #if defined __stub_shmat || defined __stub___shmat
19694 choke me
19695 #endif
19696
19697 int
19698 main ()
19699 {
19700 return shmat ();
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_link") 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } && {
19719          test -z "$ac_c_werror_flag" ||
19720          test ! -s conftest.err
19721        } && test -s conftest$ac_exeext &&
19722        $as_test_x conftest$ac_exeext; then
19723   ac_cv_func_shmat=yes
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728         ac_cv_func_shmat=no
19729 fi
19730
19731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732       conftest$ac_exeext conftest.$ac_ext
19733 fi
19734 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19735 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19736
19737     if test $ac_cv_func_shmat = no; then
19738       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19739 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19740 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   ac_check_lib_save_LIBS=$LIBS
19744 LIBS="-lipc  $LIBS"
19745 cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h.  */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h.  */
19751
19752 /* Override any GCC internal prototype to avoid an error.
19753    Use char because int might match the return type of a GCC
19754    builtin and then its argument prototype would still apply.  */
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 char shmat ();
19759 int
19760 main ()
19761 {
19762 return shmat ();
19763   ;
19764   return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774   (eval "$ac_link") 2>conftest.er1
19775   ac_status=$?
19776   grep -v '^ *+' conftest.er1 >conftest.err
19777   rm -f conftest.er1
19778   cat conftest.err >&5
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } && {
19781          test -z "$ac_c_werror_flag" ||
19782          test ! -s conftest.err
19783        } && test -s conftest$ac_exeext &&
19784        $as_test_x conftest$ac_exeext; then
19785   ac_cv_lib_ipc_shmat=yes
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790         ac_cv_lib_ipc_shmat=no
19791 fi
19792
19793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19794       conftest$ac_exeext conftest.$ac_ext
19795 LIBS=$ac_check_lib_save_LIBS
19796 fi
19797 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19798 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19799 if test $ac_cv_lib_ipc_shmat = yes; then
19800   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19801 fi
19802
19803     fi
19804   fi
19805
19806   # Check for libraries that X11R6 Xt/Xaw programs need.
19807   ac_save_LDFLAGS=$LDFLAGS
19808   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19809   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19810   # check for ICE first), but we must link in the order -lSM -lICE or
19811   # we get undefined symbols.  So assume we have SM if we have ICE.
19812   # These have to be linked with before -lX11, unlike the other
19813   # libraries we check for below, so use a different variable.
19814   # John Interrante, Karl Berry
19815   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19816 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19817 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19818   echo $ECHO_N "(cached) $ECHO_C" >&6
19819 else
19820   ac_check_lib_save_LIBS=$LIBS
19821 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19822 cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h.  */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h.  */
19828
19829 /* Override any GCC internal prototype to avoid an error.
19830    Use char because int might match the return type of a GCC
19831    builtin and then its argument prototype would still apply.  */
19832 #ifdef __cplusplus
19833 extern "C"
19834 #endif
19835 char IceConnectionNumber ();
19836 int
19837 main ()
19838 {
19839 return IceConnectionNumber ();
19840   ;
19841   return 0;
19842 }
19843 _ACEOF
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (ac_try="$ac_link"
19846 case "(($ac_try" in
19847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848   *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851   (eval "$ac_link") 2>conftest.er1
19852   ac_status=$?
19853   grep -v '^ *+' conftest.er1 >conftest.err
19854   rm -f conftest.er1
19855   cat conftest.err >&5
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } && {
19858          test -z "$ac_c_werror_flag" ||
19859          test ! -s conftest.err
19860        } && test -s conftest$ac_exeext &&
19861        $as_test_x conftest$ac_exeext; then
19862   ac_cv_lib_ICE_IceConnectionNumber=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867         ac_cv_lib_ICE_IceConnectionNumber=no
19868 fi
19869
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871       conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_check_lib_save_LIBS
19873 fi
19874 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19875 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19876 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19877   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19878 fi
19879
19880   LDFLAGS=$ac_save_LDFLAGS
19881
19882 fi
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915 for ac_header in \
19916         assert.h \
19917         fcntl.h \
19918         grp.h \
19919         pwd.h \
19920         libc.h \
19921         limits.h \
19922         stdarg.h \
19923         stdlib.h \
19924         stdint.h \
19925         string.h \
19926         strings.h \
19927         termios.h \
19928         termcap.h \
19929         term.h \
19930         unistd.h \
19931         sys/bitypes.h \
19932         sys/byteorder.h \
19933         sys/ioctl.h \
19934         sys/select.h \
19935         sys/socket.h \
19936         sys/sockio.h \
19937         sys/stat.h \
19938         sys/time.h \
19939         sys/types.h \
19940         arpa/nameser.h \
19941         resolv.h \
19942         mtio.h \
19943         sys/mtio.h \
19944         sys/tape.h \
19945         regex.h \
19946
19947 do
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19953   echo $ECHO_N "(cached) $ECHO_C" >&6
19954 fi
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956                { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19958 else
19959   # Is the header compilable?
19960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 #include <$ac_header>
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_compile") 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } && {
19985          test -z "$ac_c_werror_flag" ||
19986          test ! -s conftest.err
19987        } && test -s conftest.$ac_objext; then
19988   ac_header_compiler=yes
19989 else
19990   echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993         ac_header_compiler=no
19994 fi
19995
19996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998 echo "${ECHO_T}$ac_header_compiler" >&6; }
19999
20000 # Is the header present?
20001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009 #include <$ac_header>
20010 _ACEOF
20011 if { (ac_try="$ac_cpp conftest.$ac_ext"
20012 case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } >/dev/null && {
20024          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20025          test ! -s conftest.err
20026        }; then
20027   ac_header_preproc=yes
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032   ac_header_preproc=no
20033 fi
20034
20035 rm -f conftest.err conftest.$ac_ext
20036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037 echo "${ECHO_T}$ac_header_preproc" >&6; }
20038
20039 # So?  What about this header?
20040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20041   yes:no: )
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20046     ac_header_preproc=yes
20047     ;;
20048   no:yes:* )
20049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20061
20062     ;;
20063 esac
20064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20067   echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069   eval "$as_ac_Header=\$ac_header_preproc"
20070 fi
20071 ac_res=`eval echo '${'$as_ac_Header'}'`
20072                { echo "$as_me:$LINENO: result: $ac_res" >&5
20073 echo "${ECHO_T}$ac_res" >&6; }
20074
20075 fi
20076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20077   cat >>confdefs.h <<_ACEOF
20078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20079 _ACEOF
20080
20081 fi
20082
20083 done
20084
20085 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20087 if test "${ac_cv_header_stdc+set}" = set; then
20088   echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090   cat >conftest.$ac_ext <<_ACEOF
20091 /* confdefs.h.  */
20092 _ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h.  */
20096 #include <stdlib.h>
20097 #include <stdarg.h>
20098 #include <string.h>
20099 #include <float.h>
20100
20101 int
20102 main ()
20103 {
20104
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext
20110 if { (ac_try="$ac_compile"
20111 case "(($ac_try" in
20112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113   *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116   (eval "$ac_compile") 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } && {
20123          test -z "$ac_c_werror_flag" ||
20124          test ! -s conftest.err
20125        } && test -s conftest.$ac_objext; then
20126   ac_cv_header_stdc=yes
20127 else
20128   echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131         ac_cv_header_stdc=no
20132 fi
20133
20134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20135
20136 if test $ac_cv_header_stdc = yes; then
20137   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20138   cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 #include <string.h>
20145
20146 _ACEOF
20147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20148   $EGREP "memchr" >/dev/null 2>&1; then
20149   :
20150 else
20151   ac_cv_header_stdc=no
20152 fi
20153 rm -f conftest*
20154
20155 fi
20156
20157 if test $ac_cv_header_stdc = yes; then
20158   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20159   cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 #include <stdlib.h>
20166
20167 _ACEOF
20168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20169   $EGREP "free" >/dev/null 2>&1; then
20170   :
20171 else
20172   ac_cv_header_stdc=no
20173 fi
20174 rm -f conftest*
20175
20176 fi
20177
20178 if test $ac_cv_header_stdc = yes; then
20179   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20180   if test "$cross_compiling" = yes; then
20181   :
20182 else
20183   cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189 #include <ctype.h>
20190 #include <stdlib.h>
20191 #if ((' ' & 0x0FF) == 0x020)
20192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20194 #else
20195 # define ISLOWER(c) \
20196                    (('a' <= (c) && (c) <= 'i') \
20197                      || ('j' <= (c) && (c) <= 'r') \
20198                      || ('s' <= (c) && (c) <= 'z'))
20199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20200 #endif
20201
20202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20203 int
20204 main ()
20205 {
20206   int i;
20207   for (i = 0; i < 256; i++)
20208     if (XOR (islower (i), ISLOWER (i))
20209         || toupper (i) != TOUPPER (i))
20210       return 2;
20211   return 0;
20212 }
20213 _ACEOF
20214 rm -f conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221   (eval "$ac_link") 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20225   { (case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_try") 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; }; then
20234   :
20235 else
20236   echo "$as_me: program exited with status $ac_status" >&5
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239
20240 ( exit $ac_status )
20241 ac_cv_header_stdc=no
20242 fi
20243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20244 fi
20245
20246
20247 fi
20248 fi
20249 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20250 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20251 if test $ac_cv_header_stdc = yes; then
20252
20253 cat >>confdefs.h <<\_ACEOF
20254 #define STDC_HEADERS 1
20255 _ACEOF
20256
20257 fi
20258
20259 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20260 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20261 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20262   echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264   cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270 #include <sys/types.h>
20271 int
20272 main ()
20273 {
20274 return makedev(0, 0);
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286   (eval "$ac_link") 2>conftest.er1
20287   ac_status=$?
20288   grep -v '^ *+' conftest.er1 >conftest.err
20289   rm -f conftest.er1
20290   cat conftest.err >&5
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } && {
20293          test -z "$ac_c_werror_flag" ||
20294          test ! -s conftest.err
20295        } && test -s conftest$ac_exeext &&
20296        $as_test_x conftest$ac_exeext; then
20297   ac_cv_header_sys_types_h_makedev=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302         ac_cv_header_sys_types_h_makedev=no
20303 fi
20304
20305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20306       conftest$ac_exeext conftest.$ac_ext
20307
20308 fi
20309 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20310 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20311
20312 if test $ac_cv_header_sys_types_h_makedev = no; then
20313 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20314   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20315 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20316 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20317   echo $ECHO_N "(cached) $ECHO_C" >&6
20318 fi
20319 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20320 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20321 else
20322   # Is the header compilable?
20323 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20324 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20325 cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331 $ac_includes_default
20332 #include <sys/mkdev.h>
20333 _ACEOF
20334 rm -f conftest.$ac_objext
20335 if { (ac_try="$ac_compile"
20336 case "(($ac_try" in
20337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338   *) ac_try_echo=$ac_try;;
20339 esac
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341   (eval "$ac_compile") 2>conftest.er1
20342   ac_status=$?
20343   grep -v '^ *+' conftest.er1 >conftest.err
20344   rm -f conftest.er1
20345   cat conftest.err >&5
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); } && {
20348          test -z "$ac_c_werror_flag" ||
20349          test ! -s conftest.err
20350        } && test -s conftest.$ac_objext; then
20351   ac_header_compiler=yes
20352 else
20353   echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356         ac_header_compiler=no
20357 fi
20358
20359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20361 echo "${ECHO_T}$ac_header_compiler" >&6; }
20362
20363 # Is the header present?
20364 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20365 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20366 cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 #include <sys/mkdev.h>
20373 _ACEOF
20374 if { (ac_try="$ac_cpp conftest.$ac_ext"
20375 case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20381   ac_status=$?
20382   grep -v '^ *+' conftest.er1 >conftest.err
20383   rm -f conftest.er1
20384   cat conftest.err >&5
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); } >/dev/null && {
20387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20388          test ! -s conftest.err
20389        }; then
20390   ac_header_preproc=yes
20391 else
20392   echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395   ac_header_preproc=no
20396 fi
20397
20398 rm -f conftest.err conftest.$ac_ext
20399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20400 echo "${ECHO_T}$ac_header_preproc" >&6; }
20401
20402 # So?  What about this header?
20403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20404   yes:no: )
20405     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20406 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20407     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20408 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20409     ac_header_preproc=yes
20410     ;;
20411   no:yes:* )
20412     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20413 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20414     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20415 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20416     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20417 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20418     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20419 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20420     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20421 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20422     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20423 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20424
20425     ;;
20426 esac
20427 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20428 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20429 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20430   echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20433 fi
20434 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20435 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20436
20437 fi
20438 if test $ac_cv_header_sys_mkdev_h = yes; then
20439
20440 cat >>confdefs.h <<\_ACEOF
20441 #define MAJOR_IN_MKDEV 1
20442 _ACEOF
20443
20444 fi
20445
20446
20447
20448   if test $ac_cv_header_sys_mkdev_h = no; then
20449     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20450   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20451 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20452 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 fi
20455 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20456 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20457 else
20458   # Is the header compilable?
20459 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20460 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h.  */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h.  */
20467 $ac_includes_default
20468 #include <sys/sysmacros.h>
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_compile") 2>conftest.er1
20478   ac_status=$?
20479   grep -v '^ *+' conftest.er1 >conftest.err
20480   rm -f conftest.er1
20481   cat conftest.err >&5
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } && {
20484          test -z "$ac_c_werror_flag" ||
20485          test ! -s conftest.err
20486        } && test -s conftest.$ac_objext; then
20487   ac_header_compiler=yes
20488 else
20489   echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20491
20492         ac_header_compiler=no
20493 fi
20494
20495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20497 echo "${ECHO_T}$ac_header_compiler" >&6; }
20498
20499 # Is the header present?
20500 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20501 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20502 cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508 #include <sys/sysmacros.h>
20509 _ACEOF
20510 if { (ac_try="$ac_cpp conftest.$ac_ext"
20511 case "(($ac_try" in
20512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513   *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20517   ac_status=$?
20518   grep -v '^ *+' conftest.er1 >conftest.err
20519   rm -f conftest.er1
20520   cat conftest.err >&5
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); } >/dev/null && {
20523          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20524          test ! -s conftest.err
20525        }; then
20526   ac_header_preproc=yes
20527 else
20528   echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20530
20531   ac_header_preproc=no
20532 fi
20533
20534 rm -f conftest.err conftest.$ac_ext
20535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20536 echo "${ECHO_T}$ac_header_preproc" >&6; }
20537
20538 # So?  What about this header?
20539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20540   yes:no: )
20541     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20542 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20543     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20544 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20545     ac_header_preproc=yes
20546     ;;
20547   no:yes:* )
20548     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20549 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20550     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20551 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20552     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20553 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20554     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20555 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20556     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20557 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20558     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20559 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20560
20561     ;;
20562 esac
20563 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20564 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20565 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20569 fi
20570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20571 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20572
20573 fi
20574 if test $ac_cv_header_sys_sysmacros_h = yes; then
20575
20576 cat >>confdefs.h <<\_ACEOF
20577 #define MAJOR_IN_SYSMACROS 1
20578 _ACEOF
20579
20580 fi
20581
20582
20583   fi
20584 fi
20585
20586
20587
20588
20589
20590
20591 ac_header_dirent=no
20592 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20593   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20594 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20595 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20597   echo $ECHO_N "(cached) $ECHO_C" >&6
20598 else
20599   cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h.  */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h.  */
20605 #include <sys/types.h>
20606 #include <$ac_hdr>
20607
20608 int
20609 main ()
20610 {
20611 if ((DIR *) 0)
20612 return 0;
20613   ;
20614   return 0;
20615 }
20616 _ACEOF
20617 rm -f conftest.$ac_objext
20618 if { (ac_try="$ac_compile"
20619 case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624   (eval "$ac_compile") 2>conftest.er1
20625   ac_status=$?
20626   grep -v '^ *+' conftest.er1 >conftest.err
20627   rm -f conftest.er1
20628   cat conftest.err >&5
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); } && {
20631          test -z "$ac_c_werror_flag" ||
20632          test ! -s conftest.err
20633        } && test -s conftest.$ac_objext; then
20634   eval "$as_ac_Header=yes"
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639         eval "$as_ac_Header=no"
20640 fi
20641
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 fi
20644 ac_res=`eval echo '${'$as_ac_Header'}'`
20645                { echo "$as_me:$LINENO: result: $ac_res" >&5
20646 echo "${ECHO_T}$ac_res" >&6; }
20647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20648   cat >>confdefs.h <<_ACEOF
20649 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20650 _ACEOF
20651
20652 ac_header_dirent=$ac_hdr; break
20653 fi
20654
20655 done
20656 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20657 if test $ac_header_dirent = dirent.h; then
20658   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20659 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20660 if test "${ac_cv_search_opendir+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   ac_func_search_save_LIBS=$LIBS
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670
20671 /* Override any GCC internal prototype to avoid an error.
20672    Use char because int might match the return type of a GCC
20673    builtin and then its argument prototype would still apply.  */
20674 #ifdef __cplusplus
20675 extern "C"
20676 #endif
20677 char opendir ();
20678 int
20679 main ()
20680 {
20681 return opendir ();
20682   ;
20683   return 0;
20684 }
20685 _ACEOF
20686 for ac_lib in '' dir; do
20687   if test -z "$ac_lib"; then
20688     ac_res="none required"
20689   else
20690     ac_res=-l$ac_lib
20691     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20692   fi
20693   rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697   *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700   (eval "$ac_link") 2>conftest.er1
20701   ac_status=$?
20702   grep -v '^ *+' conftest.er1 >conftest.err
20703   rm -f conftest.er1
20704   cat conftest.err >&5
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } && {
20707          test -z "$ac_c_werror_flag" ||
20708          test ! -s conftest.err
20709        } && test -s conftest$ac_exeext &&
20710        $as_test_x conftest$ac_exeext; then
20711   ac_cv_search_opendir=$ac_res
20712 else
20713   echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716
20717 fi
20718
20719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20720       conftest$ac_exeext
20721   if test "${ac_cv_search_opendir+set}" = set; then
20722   break
20723 fi
20724 done
20725 if test "${ac_cv_search_opendir+set}" = set; then
20726   :
20727 else
20728   ac_cv_search_opendir=no
20729 fi
20730 rm conftest.$ac_ext
20731 LIBS=$ac_func_search_save_LIBS
20732 fi
20733 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20734 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20735 ac_res=$ac_cv_search_opendir
20736 if test "$ac_res" != no; then
20737   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20738
20739 fi
20740
20741 else
20742   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20744 if test "${ac_cv_search_opendir+set}" = set; then
20745   echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747   ac_func_search_save_LIBS=$LIBS
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h.  */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h.  */
20754
20755 /* Override any GCC internal prototype to avoid an error.
20756    Use char because int might match the return type of a GCC
20757    builtin and then its argument prototype would still apply.  */
20758 #ifdef __cplusplus
20759 extern "C"
20760 #endif
20761 char opendir ();
20762 int
20763 main ()
20764 {
20765 return opendir ();
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 for ac_lib in '' x; do
20771   if test -z "$ac_lib"; then
20772     ac_res="none required"
20773   else
20774     ac_res=-l$ac_lib
20775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20776   fi
20777   rm -f conftest.$ac_objext conftest$ac_exeext
20778 if { (ac_try="$ac_link"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_link") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } && {
20791          test -z "$ac_c_werror_flag" ||
20792          test ! -s conftest.err
20793        } && test -s conftest$ac_exeext &&
20794        $as_test_x conftest$ac_exeext; then
20795   ac_cv_search_opendir=$ac_res
20796 else
20797   echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20799
20800
20801 fi
20802
20803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20804       conftest$ac_exeext
20805   if test "${ac_cv_search_opendir+set}" = set; then
20806   break
20807 fi
20808 done
20809 if test "${ac_cv_search_opendir+set}" = set; then
20810   :
20811 else
20812   ac_cv_search_opendir=no
20813 fi
20814 rm conftest.$ac_ext
20815 LIBS=$ac_func_search_save_LIBS
20816 fi
20817 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20818 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20819 ac_res=$ac_cv_search_opendir
20820 if test "$ac_res" != no; then
20821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20822
20823 fi
20824
20825 fi
20826
20827 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20828 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20829 if test "${ac_cv_header_stat_broken+set}" = set; then
20830   echo $ECHO_N "(cached) $ECHO_C" >&6
20831 else
20832   cat >conftest.$ac_ext <<_ACEOF
20833 /* confdefs.h.  */
20834 _ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h.  */
20838 #include <sys/types.h>
20839 #include <sys/stat.h>
20840
20841 #if defined S_ISBLK && defined S_IFDIR
20842 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20843 #endif
20844
20845 #if defined S_ISBLK && defined S_IFCHR
20846 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20847 #endif
20848
20849 #if defined S_ISLNK && defined S_IFREG
20850 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20851 #endif
20852
20853 #if defined S_ISSOCK && defined S_IFREG
20854 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20855 #endif
20856
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_compile") 2>conftest.er1
20866   ac_status=$?
20867   grep -v '^ *+' conftest.er1 >conftest.err
20868   rm -f conftest.er1
20869   cat conftest.err >&5
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); } && {
20872          test -z "$ac_c_werror_flag" ||
20873          test ! -s conftest.err
20874        } && test -s conftest.$ac_objext; then
20875   ac_cv_header_stat_broken=no
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880         ac_cv_header_stat_broken=yes
20881 fi
20882
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 fi
20885 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20886 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20887 if test $ac_cv_header_stat_broken = yes; then
20888
20889 cat >>confdefs.h <<\_ACEOF
20890 #define STAT_MACROS_BROKEN 1
20891 _ACEOF
20892
20893 fi
20894
20895 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20896 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20897 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20898   echo $ECHO_N "(cached) $ECHO_C" >&6
20899 else
20900   cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 #include <sys/types.h>
20907 #include <sys/wait.h>
20908 #ifndef WEXITSTATUS
20909 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20910 #endif
20911 #ifndef WIFEXITED
20912 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20913 #endif
20914
20915 int
20916 main ()
20917 {
20918   int s;
20919   wait (&s);
20920   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929   *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932   (eval "$ac_compile") 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } && {
20939          test -z "$ac_c_werror_flag" ||
20940          test ! -s conftest.err
20941        } && test -s conftest.$ac_objext; then
20942   ac_cv_header_sys_wait_h=yes
20943 else
20944   echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947         ac_cv_header_sys_wait_h=no
20948 fi
20949
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 fi
20952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20953 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20954 if test $ac_cv_header_sys_wait_h = yes; then
20955
20956 cat >>confdefs.h <<\_ACEOF
20957 #define HAVE_SYS_WAIT_H 1
20958 _ACEOF
20959
20960 fi
20961
20962 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20963 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20964 if test "${ac_cv_header_time+set}" = set; then
20965   echo $ECHO_N "(cached) $ECHO_C" >&6
20966 else
20967   cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973 #include <sys/types.h>
20974 #include <sys/time.h>
20975 #include <time.h>
20976
20977 int
20978 main ()
20979 {
20980 if ((struct tm *) 0)
20981 return 0;
20982   ;
20983   return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest.$ac_objext
20987 if { (ac_try="$ac_compile"
20988 case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_compile") 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } && {
21000          test -z "$ac_c_werror_flag" ||
21001          test ! -s conftest.err
21002        } && test -s conftest.$ac_objext; then
21003   ac_cv_header_time=yes
21004 else
21005   echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21007
21008         ac_cv_header_time=no
21009 fi
21010
21011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21012 fi
21013 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21014 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21015 if test $ac_cv_header_time = yes; then
21016
21017 cat >>confdefs.h <<\_ACEOF
21018 #define TIME_WITH_SYS_TIME 1
21019 _ACEOF
21020
21021 fi
21022
21023 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21024 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21025 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028   cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h.  */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h.  */
21034 $ac_includes_default
21035 int
21036 main ()
21037 {
21038 static struct stat ac_aggr;
21039 if (ac_aggr.st_blksize)
21040 return 0;
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_compile") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } && {
21059          test -z "$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        } && test -s conftest.$ac_objext; then
21062   ac_cv_member_struct_stat_st_blksize=yes
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067         cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073 $ac_includes_default
21074 int
21075 main ()
21076 {
21077 static struct stat ac_aggr;
21078 if (sizeof ac_aggr.st_blksize)
21079 return 0;
21080   ;
21081   return 0;
21082 }
21083 _ACEOF
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088   *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091   (eval "$ac_compile") 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } && {
21098          test -z "$ac_c_werror_flag" ||
21099          test ! -s conftest.err
21100        } && test -s conftest.$ac_objext; then
21101   ac_cv_member_struct_stat_st_blksize=yes
21102 else
21103   echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21105
21106         ac_cv_member_struct_stat_st_blksize=no
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 fi
21111
21112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21113 fi
21114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21116 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21117
21118 cat >>confdefs.h <<_ACEOF
21119 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21120 _ACEOF
21121
21122
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_ST_BLKSIZE 1
21125 _ACEOF
21126
21127 fi
21128
21129
21130 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21131 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21132 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135   cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 $ac_includes_default
21142 int
21143 main ()
21144 {
21145 static struct stat ac_aggr;
21146 if (ac_aggr.st_blocks)
21147 return 0;
21148   ;
21149   return 0;
21150 }
21151 _ACEOF
21152 rm -f conftest.$ac_objext
21153 if { (ac_try="$ac_compile"
21154 case "(($ac_try" in
21155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156   *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159   (eval "$ac_compile") 2>conftest.er1
21160   ac_status=$?
21161   grep -v '^ *+' conftest.er1 >conftest.err
21162   rm -f conftest.er1
21163   cat conftest.err >&5
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } && {
21166          test -z "$ac_c_werror_flag" ||
21167          test ! -s conftest.err
21168        } && test -s conftest.$ac_objext; then
21169   ac_cv_member_struct_stat_st_blocks=yes
21170 else
21171   echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174         cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h.  */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h.  */
21180 $ac_includes_default
21181 int
21182 main ()
21183 {
21184 static struct stat ac_aggr;
21185 if (sizeof ac_aggr.st_blocks)
21186 return 0;
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 rm -f conftest.$ac_objext
21192 if { (ac_try="$ac_compile"
21193 case "(($ac_try" in
21194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195   *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198   (eval "$ac_compile") 2>conftest.er1
21199   ac_status=$?
21200   grep -v '^ *+' conftest.er1 >conftest.err
21201   rm -f conftest.er1
21202   cat conftest.err >&5
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); } && {
21205          test -z "$ac_c_werror_flag" ||
21206          test ! -s conftest.err
21207        } && test -s conftest.$ac_objext; then
21208   ac_cv_member_struct_stat_st_blocks=yes
21209 else
21210   echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21212
21213         ac_cv_member_struct_stat_st_blocks=no
21214 fi
21215
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217 fi
21218
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220 fi
21221 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21222 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21223 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21224
21225 cat >>confdefs.h <<_ACEOF
21226 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21227 _ACEOF
21228
21229
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_ST_BLOCKS 1
21232 _ACEOF
21233
21234 else
21235   case " $LIBOBJS " in
21236   *" fileblocks.$ac_objext "* ) ;;
21237   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21238  ;;
21239 esac
21240
21241 fi
21242
21243
21244 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21245 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21246 if test "${ac_cv_struct_tm+set}" = set; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249   cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 #include <sys/types.h>
21256 #include <time.h>
21257
21258 int
21259 main ()
21260 {
21261 struct tm tm;
21262                                      int *p = &tm.tm_sec;
21263                                      return !p;
21264   ;
21265   return 0;
21266 }
21267 _ACEOF
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272   *) ac_try_echo=$ac_try;;
21273 esac
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275   (eval "$ac_compile") 2>conftest.er1
21276   ac_status=$?
21277   grep -v '^ *+' conftest.er1 >conftest.err
21278   rm -f conftest.er1
21279   cat conftest.err >&5
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } && {
21282          test -z "$ac_c_werror_flag" ||
21283          test ! -s conftest.err
21284        } && test -s conftest.$ac_objext; then
21285   ac_cv_struct_tm=time.h
21286 else
21287   echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290         ac_cv_struct_tm=sys/time.h
21291 fi
21292
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21294 fi
21295 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21296 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21297 if test $ac_cv_struct_tm = sys/time.h; then
21298
21299 cat >>confdefs.h <<\_ACEOF
21300 #define TM_IN_SYS_TIME 1
21301 _ACEOF
21302
21303 fi
21304
21305 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21306 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21307 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21308   echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310   cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 #include <sys/types.h>
21317 #include <$ac_cv_struct_tm>
21318
21319
21320 int
21321 main ()
21322 {
21323 static struct tm ac_aggr;
21324 if (ac_aggr.tm_zone)
21325 return 0;
21326   ;
21327   return 0;
21328 }
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334   *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337   (eval "$ac_compile") 2>conftest.er1
21338   ac_status=$?
21339   grep -v '^ *+' conftest.er1 >conftest.err
21340   rm -f conftest.er1
21341   cat conftest.err >&5
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); } && {
21344          test -z "$ac_c_werror_flag" ||
21345          test ! -s conftest.err
21346        } && test -s conftest.$ac_objext; then
21347   ac_cv_member_struct_tm_tm_zone=yes
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352         cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 #include <sys/types.h>
21359 #include <$ac_cv_struct_tm>
21360
21361
21362 int
21363 main ()
21364 {
21365 static struct tm ac_aggr;
21366 if (sizeof ac_aggr.tm_zone)
21367 return 0;
21368   ;
21369   return 0;
21370 }
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376   *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379   (eval "$ac_compile") 2>conftest.er1
21380   ac_status=$?
21381   grep -v '^ *+' conftest.er1 >conftest.err
21382   rm -f conftest.er1
21383   cat conftest.err >&5
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } && {
21386          test -z "$ac_c_werror_flag" ||
21387          test ! -s conftest.err
21388        } && test -s conftest.$ac_objext; then
21389   ac_cv_member_struct_tm_tm_zone=yes
21390 else
21391   echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21393
21394         ac_cv_member_struct_tm_tm_zone=no
21395 fi
21396
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 fi
21399
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 fi
21402 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21403 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21404 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21405
21406 cat >>confdefs.h <<_ACEOF
21407 #define HAVE_STRUCT_TM_TM_ZONE 1
21408 _ACEOF
21409
21410
21411 fi
21412
21413 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_TM_ZONE 1
21417 _ACEOF
21418
21419 else
21420   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21421 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21422 if test "${ac_cv_have_decl_tzname+set}" = set; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425   cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h.  */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h.  */
21431 #include <time.h>
21432
21433 int
21434 main ()
21435 {
21436 #ifndef tzname
21437   (void) tzname;
21438 #endif
21439
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448   *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451   (eval "$ac_compile") 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && {
21458          test -z "$ac_c_werror_flag" ||
21459          test ! -s conftest.err
21460        } && test -s conftest.$ac_objext; then
21461   ac_cv_have_decl_tzname=yes
21462 else
21463   echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466         ac_cv_have_decl_tzname=no
21467 fi
21468
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 fi
21471 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21472 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21473 if test $ac_cv_have_decl_tzname = yes; then
21474
21475 cat >>confdefs.h <<_ACEOF
21476 #define HAVE_DECL_TZNAME 1
21477 _ACEOF
21478
21479
21480 else
21481   cat >>confdefs.h <<_ACEOF
21482 #define HAVE_DECL_TZNAME 0
21483 _ACEOF
21484
21485
21486 fi
21487
21488
21489   { echo "$as_me:$LINENO: checking for tzname" >&5
21490 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21491 if test "${ac_cv_var_tzname+set}" = set; then
21492   echo $ECHO_N "(cached) $ECHO_C" >&6
21493 else
21494   cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h.  */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h.  */
21500 #include <time.h>
21501 #if !HAVE_DECL_TZNAME
21502 extern char *tzname[];
21503 #endif
21504
21505 int
21506 main ()
21507 {
21508 return tzname[0][0];
21509   ;
21510   return 0;
21511 }
21512 _ACEOF
21513 rm -f conftest.$ac_objext conftest$ac_exeext
21514 if { (ac_try="$ac_link"
21515 case "(($ac_try" in
21516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517   *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520   (eval "$ac_link") 2>conftest.er1
21521   ac_status=$?
21522   grep -v '^ *+' conftest.er1 >conftest.err
21523   rm -f conftest.er1
21524   cat conftest.err >&5
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } && {
21527          test -z "$ac_c_werror_flag" ||
21528          test ! -s conftest.err
21529        } && test -s conftest$ac_exeext &&
21530        $as_test_x conftest$ac_exeext; then
21531   ac_cv_var_tzname=yes
21532 else
21533   echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536         ac_cv_var_tzname=no
21537 fi
21538
21539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21540       conftest$ac_exeext conftest.$ac_ext
21541 fi
21542 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21543 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21544   if test $ac_cv_var_tzname = yes; then
21545
21546 cat >>confdefs.h <<\_ACEOF
21547 #define HAVE_TZNAME 1
21548 _ACEOF
21549
21550   fi
21551 fi
21552
21553
21554 { echo "$as_me:$LINENO: checking for utime.h" >&5
21555 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21556 if test "${ba_cv_header_utime_h+set}" = set; then
21557   echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
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
21566 #include <sys/types.h>
21567 #include <utime.h>
21568 int
21569 main ()
21570 {
21571 struct utimbuf foo
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_compile") 2>conftest.er1
21584   ac_status=$?
21585   grep -v '^ *+' conftest.er1 >conftest.err
21586   rm -f conftest.er1
21587   cat conftest.err >&5
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && {
21590          test -z "$ac_c_werror_flag" ||
21591          test ! -s conftest.err
21592        } && test -s conftest.$ac_objext; then
21593   ba_cv_header_utime_h=yes
21594 else
21595   echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598         ba_cv_header_utime_h=no
21599 fi
21600
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 fi
21603 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21604 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21605 test $ba_cv_header_utime_h = yes &&
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_UTIME_H 1
21608 _ACEOF
21609
21610
21611 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21612 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21613 if test "${ba_cv_header_socklen_t+set}" = set; then
21614   echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616   cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h.  */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h.  */
21622
21623 #include <sys/types.h>
21624 #include <sys/socket.h>
21625 int
21626 main ()
21627 {
21628 socklen_t x
21629   ;
21630   return 0;
21631 }
21632 _ACEOF
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637   *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640   (eval "$ac_compile") 2>conftest.er1
21641   ac_status=$?
21642   grep -v '^ *+' conftest.er1 >conftest.err
21643   rm -f conftest.er1
21644   cat conftest.err >&5
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); } && {
21647          test -z "$ac_c_werror_flag" ||
21648          test ! -s conftest.err
21649        } && test -s conftest.$ac_objext; then
21650   ba_cv_header_socklen_t=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655         ba_cv_header_socklen_t=no
21656 fi
21657
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659 fi
21660 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21661 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21662 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21663 #define HAVE_SOCKLEN_T 1
21664 _ACEOF
21665
21666
21667 { echo "$as_me:$LINENO: checking for bigendian" >&5
21668 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21669 if test "${ba_cv_bigendian+set}" = set; then
21670   echo $ECHO_N "(cached) $ECHO_C" >&6
21671 else
21672   if test "$cross_compiling" = yes; then
21673   ba_cv_bigendian=no
21674 else
21675   cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21682 _ACEOF
21683 rm -f conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_link") 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21694   { (case "(($ac_try" in
21695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696   *) ac_try_echo=$ac_try;;
21697 esac
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699   (eval "$ac_try") 2>&5
21700   ac_status=$?
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); }; }; then
21703   ba_cv_bigendian=yes
21704 else
21705   echo "$as_me: program exited with status $ac_status" >&5
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709 ( exit $ac_status )
21710 ba_cv_bigendian=no
21711 fi
21712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21713 fi
21714
21715
21716 fi
21717 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21718 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21719 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21720 #define HAVE_BIGENDIAN 1
21721 _ACEOF
21722
21723
21724 ac_ext=cpp
21725 ac_cpp='$CXXCPP $CPPFLAGS'
21726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21729
21730
21731 { echo "$as_me:$LINENO: checking for typeof" >&5
21732 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21733 if test "${ba_cv_have_typeof+set}" = set; then
21734   echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736   if test "$cross_compiling" = yes; then
21737   ba_cv_have_typeof=no
21738 else
21739   cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 main(){char *a = 0; a = (typeof a)a;}
21746 _ACEOF
21747 rm -f conftest$ac_exeext
21748 if { (ac_try="$ac_link"
21749 case "(($ac_try" in
21750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751   *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754   (eval "$ac_link") 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21758   { (case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_try") 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; }; then
21767   ba_cv_have_typeof=yes
21768 else
21769   echo "$as_me: program exited with status $ac_status" >&5
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 ( exit $ac_status )
21774 ba_cv_have_typeof=no
21775 fi
21776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21777 fi
21778
21779
21780 fi
21781 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21782 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21783 test $ba_cv_have_typeof = yes &&
21784 cat >>confdefs.h <<\_ACEOF
21785 #define HAVE_TYPEOF 1
21786 _ACEOF
21787
21788 ac_ext=c
21789 ac_cpp='$CPP $CPPFLAGS'
21790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21793
21794
21795 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21797 if test "${ac_cv_c_const+set}" = set; then
21798   echo $ECHO_N "(cached) $ECHO_C" >&6
21799 else
21800   cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806
21807 int
21808 main ()
21809 {
21810 /* FIXME: Include the comments suggested by Paul. */
21811 #ifndef __cplusplus
21812   /* Ultrix mips cc rejects this.  */
21813   typedef int charset[2];
21814   const charset cs;
21815   /* SunOS 4.1.1 cc rejects this.  */
21816   char const *const *pcpcc;
21817   char **ppc;
21818   /* NEC SVR4.0.2 mips cc rejects this.  */
21819   struct point {int x, y;};
21820   static struct point const zero = {0,0};
21821   /* AIX XL C 1.02.0.0 rejects this.
21822      It does not let you subtract one const X* pointer from another in
21823      an arm of an if-expression whose if-part is not a constant
21824      expression */
21825   const char *g = "string";
21826   pcpcc = &g + (g ? g-g : 0);
21827   /* HPUX 7.0 cc rejects these. */
21828   ++pcpcc;
21829   ppc = (char**) pcpcc;
21830   pcpcc = (char const *const *) ppc;
21831   { /* SCO 3.2v4 cc rejects this.  */
21832     char *t;
21833     char const *s = 0 ? (char *) 0 : (char const *) 0;
21834
21835     *t++ = 0;
21836     if (s) return 0;
21837   }
21838   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21839     int x[] = {25, 17};
21840     const int *foo = &x[0];
21841     ++foo;
21842   }
21843   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21844     typedef const int *iptr;
21845     iptr p = 0;
21846     ++p;
21847   }
21848   { /* AIX XL C 1.02.0.0 rejects this saying
21849        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21850     struct s { int j; const int *ap[3]; };
21851     struct s *b; b->j = 5;
21852   }
21853   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21854     const int foo = 10;
21855     if (!foo) return 0;
21856   }
21857   return !cs[0] && !zero.x;
21858 #endif
21859
21860   ;
21861   return 0;
21862 }
21863 _ACEOF
21864 rm -f conftest.$ac_objext
21865 if { (ac_try="$ac_compile"
21866 case "(($ac_try" in
21867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868   *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871   (eval "$ac_compile") 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } && {
21878          test -z "$ac_c_werror_flag" ||
21879          test ! -s conftest.err
21880        } && test -s conftest.$ac_objext; then
21881   ac_cv_c_const=yes
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886         ac_cv_c_const=no
21887 fi
21888
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890 fi
21891 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21892 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21893 if test $ac_cv_c_const = no; then
21894
21895 cat >>confdefs.h <<\_ACEOF
21896 #define const
21897 _ACEOF
21898
21899 fi
21900
21901
21902
21903 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21904 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21905 fstype=no
21906 # The order of these tests is important.
21907 cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913 #include <sys/statvfs.h>
21914 #include <sys/fstyp.h>
21915 _ACEOF
21916 if { (ac_try="$ac_cpp conftest.$ac_ext"
21917 case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } >/dev/null && {
21929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21930          test ! -s conftest.err
21931        }; then
21932   cat >>confdefs.h <<\_ACEOF
21933 #define FSTYPE_STATVFS 1
21934 _ACEOF
21935  fstype=SVR4
21936 else
21937   echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21939
21940
21941 fi
21942
21943 rm -f conftest.err conftest.$ac_ext
21944 if test $fstype = no; then
21945 cat >conftest.$ac_ext <<_ACEOF
21946 /* confdefs.h.  */
21947 _ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h.  */
21951 #include <sys/statfs.h>
21952 #include <sys/fstyp.h>
21953 _ACEOF
21954 if { (ac_try="$ac_cpp conftest.$ac_ext"
21955 case "(($ac_try" in
21956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957   *) ac_try_echo=$ac_try;;
21958 esac
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21961   ac_status=$?
21962   grep -v '^ *+' conftest.er1 >conftest.err
21963   rm -f conftest.er1
21964   cat conftest.err >&5
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); } >/dev/null && {
21967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21968          test ! -s conftest.err
21969        }; then
21970   cat >>confdefs.h <<\_ACEOF
21971 #define FSTYPE_USG_STATFS 1
21972 _ACEOF
21973  fstype=SVR3
21974 else
21975   echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21977
21978
21979 fi
21980
21981 rm -f conftest.err conftest.$ac_ext
21982 fi
21983 if test $fstype = no; then
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990 #include <sys/statfs.h>
21991 #include <sys/vmount.h>
21992 _ACEOF
21993 if { (ac_try="$ac_cpp conftest.$ac_ext"
21994 case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } >/dev/null && {
22006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        }; then
22009   cat >>confdefs.h <<\_ACEOF
22010 #define FSTYPE_AIX_STATFS 1
22011 _ACEOF
22012  fstype=AIX
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017
22018 fi
22019
22020 rm -f conftest.err conftest.$ac_ext
22021 fi
22022 if test $fstype = no; then
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h.  */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h.  */
22029 #include <mntent.h>
22030 _ACEOF
22031 if { (ac_try="$ac_cpp conftest.$ac_ext"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } >/dev/null && {
22044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22045          test ! -s conftest.err
22046        }; then
22047   cat >>confdefs.h <<\_ACEOF
22048 #define FSTYPE_MNTENT 1
22049 _ACEOF
22050  fstype=4.3BSD
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055
22056 fi
22057
22058 rm -f conftest.err conftest.$ac_ext
22059 fi
22060 if test $fstype = no; then
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 #include <sys/mount.h>
22068
22069 _ACEOF
22070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22071   $EGREP "f_type;" >/dev/null 2>&1; then
22072   cat >>confdefs.h <<\_ACEOF
22073 #define FSTYPE_STATFS 1
22074 _ACEOF
22075  fstype=4.4BSD/OSF1
22076 fi
22077 rm -f conftest*
22078
22079 fi
22080 if test $fstype = no; then
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087 #include <sys/mount.h>
22088 #include <sys/fs_types.h>
22089 _ACEOF
22090 if { (ac_try="$ac_cpp conftest.$ac_ext"
22091 case "(($ac_try" in
22092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093   *) ac_try_echo=$ac_try;;
22094 esac
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22097   ac_status=$?
22098   grep -v '^ *+' conftest.er1 >conftest.err
22099   rm -f conftest.er1
22100   cat conftest.err >&5
22101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); } >/dev/null && {
22103          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22104          test ! -s conftest.err
22105        }; then
22106   cat >>confdefs.h <<\_ACEOF
22107 #define FSTYPE_GETMNT 1
22108 _ACEOF
22109  fstype=Ultrix
22110 else
22111   echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22113
22114
22115 fi
22116
22117 rm -f conftest.err conftest.$ac_ext
22118 fi
22119 { echo "$as_me:$LINENO: result: $fstype" >&5
22120 echo "${ECHO_T}$fstype" >&6; }
22121
22122 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22123   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22124 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22125 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22126   echo $ECHO_N "(cached) $ECHO_C" >&6
22127 fi
22128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22129 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22130 else
22131   # Is the header compilable?
22132 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22133 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140 $ac_includes_default
22141 #include <sys/statvfs.h>
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147   *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150   (eval "$ac_compile") 2>conftest.er1
22151   ac_status=$?
22152   grep -v '^ *+' conftest.er1 >conftest.err
22153   rm -f conftest.er1
22154   cat conftest.err >&5
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } && {
22157          test -z "$ac_c_werror_flag" ||
22158          test ! -s conftest.err
22159        } && test -s conftest.$ac_objext; then
22160   ac_header_compiler=yes
22161 else
22162   echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165         ac_header_compiler=no
22166 fi
22167
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22170 echo "${ECHO_T}$ac_header_compiler" >&6; }
22171
22172 # Is the header present?
22173 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22174 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181 #include <sys/statvfs.h>
22182 _ACEOF
22183 if { (ac_try="$ac_cpp conftest.$ac_ext"
22184 case "(($ac_try" in
22185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186   *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } >/dev/null && {
22196          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22197          test ! -s conftest.err
22198        }; then
22199   ac_header_preproc=yes
22200 else
22201   echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22203
22204   ac_header_preproc=no
22205 fi
22206
22207 rm -f conftest.err conftest.$ac_ext
22208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22209 echo "${ECHO_T}$ac_header_preproc" >&6; }
22210
22211 # So?  What about this header?
22212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22213   yes:no: )
22214     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22215 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22216     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22217 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22218     ac_header_preproc=yes
22219     ;;
22220   no:yes:* )
22221     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22222 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22223     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22224 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22225     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22226 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22227     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22228 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22229     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22230 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22231     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22232 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22233
22234     ;;
22235 esac
22236 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22237 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22238 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22239   echo $ECHO_N "(cached) $ECHO_C" >&6
22240 else
22241   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22242 fi
22243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22244 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22245
22246 fi
22247 if test $ac_cv_header_sys_statvfs_h = yes; then
22248
22249 cat >>confdefs.h <<\_ACEOF
22250 #define HAVE_SYS_STATVFS_H 1
22251 _ACEOF
22252
22253 fi
22254
22255
22256
22257 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22258 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22259 if test "${ac_cv_type_signal+set}" = set; then
22260   echo $ECHO_N "(cached) $ECHO_C" >&6
22261 else
22262   cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h.  */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h.  */
22268 #include <sys/types.h>
22269 #include <signal.h>
22270
22271 int
22272 main ()
22273 {
22274 return *(signal (0, 0)) (0) == 1;
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext
22280 if { (ac_try="$ac_compile"
22281 case "(($ac_try" in
22282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283   *) ac_try_echo=$ac_try;;
22284 esac
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286   (eval "$ac_compile") 2>conftest.er1
22287   ac_status=$?
22288   grep -v '^ *+' conftest.er1 >conftest.err
22289   rm -f conftest.er1
22290   cat conftest.err >&5
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); } && {
22293          test -z "$ac_c_werror_flag" ||
22294          test ! -s conftest.err
22295        } && test -s conftest.$ac_objext; then
22296   ac_cv_type_signal=int
22297 else
22298   echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301         ac_cv_type_signal=void
22302 fi
22303
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 fi
22306 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22307 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22308
22309 cat >>confdefs.h <<_ACEOF
22310 #define RETSIGTYPE $ac_cv_type_signal
22311 _ACEOF
22312
22313
22314
22315   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22316 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22317   if test "${bash_cv_signal_vintage+set}" = set; then
22318   echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320
22321     cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h.  */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h.  */
22327 #include <signal.h>
22328 int
22329 main ()
22330 {
22331
22332       sigset_t ss;
22333       struct sigaction sa;
22334       sigemptyset(&ss); sigsuspend(&ss);
22335       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22336       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22337
22338   ;
22339   return 0;
22340 }
22341 _ACEOF
22342 rm -f conftest.$ac_objext conftest$ac_exeext
22343 if { (ac_try="$ac_link"
22344 case "(($ac_try" in
22345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346   *) ac_try_echo=$ac_try;;
22347 esac
22348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349   (eval "$ac_link") 2>conftest.er1
22350   ac_status=$?
22351   grep -v '^ *+' conftest.er1 >conftest.err
22352   rm -f conftest.er1
22353   cat conftest.err >&5
22354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); } && {
22356          test -z "$ac_c_werror_flag" ||
22357          test ! -s conftest.err
22358        } && test -s conftest$ac_exeext &&
22359        $as_test_x conftest$ac_exeext; then
22360   bash_cv_signal_vintage="posix"
22361 else
22362   echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22364
22365
22366       cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 #include <signal.h>
22373 int
22374 main ()
22375 {
22376
22377           int mask = sigmask(SIGINT);
22378           sigsetmask(mask); sigblock(mask); sigpause(mask);
22379
22380   ;
22381   return 0;
22382 }
22383 _ACEOF
22384 rm -f conftest.$ac_objext conftest$ac_exeext
22385 if { (ac_try="$ac_link"
22386 case "(($ac_try" in
22387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388   *) ac_try_echo=$ac_try;;
22389 esac
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391   (eval "$ac_link") 2>conftest.er1
22392   ac_status=$?
22393   grep -v '^ *+' conftest.er1 >conftest.err
22394   rm -f conftest.er1
22395   cat conftest.err >&5
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); } && {
22398          test -z "$ac_c_werror_flag" ||
22399          test ! -s conftest.err
22400        } && test -s conftest$ac_exeext &&
22401        $as_test_x conftest$ac_exeext; then
22402   bash_cv_signal_vintage="4.2bsd"
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407
22408         cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h.  */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h.  */
22414
22415           #include <signal.h>
22416           RETSIGTYPE foo() { }
22417 int
22418 main ()
22419 {
22420
22421                   int mask = sigmask(SIGINT);
22422                   sigset(SIGINT, foo); sigrelse(SIGINT);
22423                   sighold(SIGINT); sigpause(SIGINT);
22424
22425   ;
22426   return 0;
22427 }
22428 _ACEOF
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (ac_try="$ac_link"
22431 case "(($ac_try" in
22432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433   *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436   (eval "$ac_link") 2>conftest.er1
22437   ac_status=$?
22438   grep -v '^ *+' conftest.er1 >conftest.err
22439   rm -f conftest.er1
22440   cat conftest.err >&5
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } && {
22443          test -z "$ac_c_werror_flag" ||
22444          test ! -s conftest.err
22445        } && test -s conftest$ac_exeext &&
22446        $as_test_x conftest$ac_exeext; then
22447   bash_cv_signal_vintage="svr3"
22448 else
22449   echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452         bash_cv_signal_vintage="v7"
22453
22454 fi
22455
22456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22457       conftest$ac_exeext conftest.$ac_ext
22458
22459 fi
22460
22461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22462       conftest$ac_exeext conftest.$ac_ext
22463
22464 fi
22465
22466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22467       conftest$ac_exeext conftest.$ac_ext
22468
22469 fi
22470
22471   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22472 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22473   if test "$bash_cv_signal_vintage" = "posix"; then
22474     cat >>confdefs.h <<\_ACEOF
22475 #define HAVE_POSIX_SIGNALS 1
22476 _ACEOF
22477
22478   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22479     cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_BSD_SIGNALS 1
22481 _ACEOF
22482
22483   elif test "$bash_cv_signal_vintage" = "svr3"; then
22484     cat >>confdefs.h <<\_ACEOF
22485 #define HAVE_USG_SIGHOLD 1
22486 _ACEOF
22487
22488   fi
22489
22490 { echo "$as_me:$LINENO: checking for mode_t" >&5
22491 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22492 if test "${ac_cv_type_mode_t+set}" = set; then
22493   echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495   cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501 $ac_includes_default
22502 typedef mode_t ac__type_new_;
22503 int
22504 main ()
22505 {
22506 if ((ac__type_new_ *) 0)
22507   return 0;
22508 if (sizeof (ac__type_new_))
22509   return 0;
22510   ;
22511   return 0;
22512 }
22513 _ACEOF
22514 rm -f conftest.$ac_objext
22515 if { (ac_try="$ac_compile"
22516 case "(($ac_try" in
22517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518   *) ac_try_echo=$ac_try;;
22519 esac
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521   (eval "$ac_compile") 2>conftest.er1
22522   ac_status=$?
22523   grep -v '^ *+' conftest.er1 >conftest.err
22524   rm -f conftest.er1
22525   cat conftest.err >&5
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); } && {
22528          test -z "$ac_c_werror_flag" ||
22529          test ! -s conftest.err
22530        } && test -s conftest.$ac_objext; then
22531   ac_cv_type_mode_t=yes
22532 else
22533   echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536         ac_cv_type_mode_t=no
22537 fi
22538
22539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22540 fi
22541 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22542 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22543 if test $ac_cv_type_mode_t = yes; then
22544   :
22545 else
22546
22547 cat >>confdefs.h <<_ACEOF
22548 #define mode_t int
22549 _ACEOF
22550
22551 fi
22552
22553 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22554 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22555 if test "${ac_cv_type_uid_t+set}" = set; then
22556   echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558   cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h.  */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h.  */
22564 #include <sys/types.h>
22565
22566 _ACEOF
22567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22568   $EGREP "uid_t" >/dev/null 2>&1; then
22569   ac_cv_type_uid_t=yes
22570 else
22571   ac_cv_type_uid_t=no
22572 fi
22573 rm -f conftest*
22574
22575 fi
22576 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22577 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22578 if test $ac_cv_type_uid_t = no; then
22579
22580 cat >>confdefs.h <<\_ACEOF
22581 #define uid_t int
22582 _ACEOF
22583
22584
22585 cat >>confdefs.h <<\_ACEOF
22586 #define gid_t int
22587 _ACEOF
22588
22589 fi
22590
22591 { echo "$as_me:$LINENO: checking for size_t" >&5
22592 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22593 if test "${ac_cv_type_size_t+set}" = set; then
22594   echo $ECHO_N "(cached) $ECHO_C" >&6
22595 else
22596   cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h.  */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h.  */
22602 $ac_includes_default
22603 typedef size_t ac__type_new_;
22604 int
22605 main ()
22606 {
22607 if ((ac__type_new_ *) 0)
22608   return 0;
22609 if (sizeof (ac__type_new_))
22610   return 0;
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 rm -f conftest.$ac_objext
22616 if { (ac_try="$ac_compile"
22617 case "(($ac_try" in
22618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619   *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622   (eval "$ac_compile") 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } && {
22629          test -z "$ac_c_werror_flag" ||
22630          test ! -s conftest.err
22631        } && test -s conftest.$ac_objext; then
22632   ac_cv_type_size_t=yes
22633 else
22634   echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637         ac_cv_type_size_t=no
22638 fi
22639
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 fi
22642 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22643 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22644 if test $ac_cv_type_size_t = yes; then
22645   :
22646 else
22647
22648 cat >>confdefs.h <<_ACEOF
22649 #define size_t unsigned int
22650 _ACEOF
22651
22652 fi
22653
22654 { echo "$as_me:$LINENO: checking for pid_t" >&5
22655 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22656 if test "${ac_cv_type_pid_t+set}" = set; then
22657   echo $ECHO_N "(cached) $ECHO_C" >&6
22658 else
22659   cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h.  */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h.  */
22665 $ac_includes_default
22666 typedef pid_t ac__type_new_;
22667 int
22668 main ()
22669 {
22670 if ((ac__type_new_ *) 0)
22671   return 0;
22672 if (sizeof (ac__type_new_))
22673   return 0;
22674   ;
22675   return 0;
22676 }
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682   *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685   (eval "$ac_compile") 2>conftest.er1
22686   ac_status=$?
22687   grep -v '^ *+' conftest.er1 >conftest.err
22688   rm -f conftest.er1
22689   cat conftest.err >&5
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } && {
22692          test -z "$ac_c_werror_flag" ||
22693          test ! -s conftest.err
22694        } && test -s conftest.$ac_objext; then
22695   ac_cv_type_pid_t=yes
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700         ac_cv_type_pid_t=no
22701 fi
22702
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 fi
22705 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22706 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22707 if test $ac_cv_type_pid_t = yes; then
22708   :
22709 else
22710
22711 cat >>confdefs.h <<_ACEOF
22712 #define pid_t int
22713 _ACEOF
22714
22715 fi
22716
22717 { echo "$as_me:$LINENO: checking for off_t" >&5
22718 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22719 if test "${ac_cv_type_off_t+set}" = set; then
22720   echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722   cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 $ac_includes_default
22729 typedef off_t ac__type_new_;
22730 int
22731 main ()
22732 {
22733 if ((ac__type_new_ *) 0)
22734   return 0;
22735 if (sizeof (ac__type_new_))
22736   return 0;
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (ac_try="$ac_compile"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748   (eval "$ac_compile") 2>conftest.er1
22749   ac_status=$?
22750   grep -v '^ *+' conftest.er1 >conftest.err
22751   rm -f conftest.er1
22752   cat conftest.err >&5
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); } && {
22755          test -z "$ac_c_werror_flag" ||
22756          test ! -s conftest.err
22757        } && test -s conftest.$ac_objext; then
22758   ac_cv_type_off_t=yes
22759 else
22760   echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22762
22763         ac_cv_type_off_t=no
22764 fi
22765
22766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 fi
22768 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22769 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22770 if test $ac_cv_type_off_t = yes; then
22771   :
22772 else
22773
22774 cat >>confdefs.h <<_ACEOF
22775 #define off_t long int
22776 _ACEOF
22777
22778 fi
22779
22780 { echo "$as_me:$LINENO: checking for ino_t" >&5
22781 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22782 if test "${ac_cv_type_ino_t+set}" = set; then
22783   echo $ECHO_N "(cached) $ECHO_C" >&6
22784 else
22785   cat >conftest.$ac_ext <<_ACEOF
22786 /* confdefs.h.  */
22787 _ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h.  */
22791 $ac_includes_default
22792 typedef ino_t ac__type_new_;
22793 int
22794 main ()
22795 {
22796 if ((ac__type_new_ *) 0)
22797   return 0;
22798 if (sizeof (ac__type_new_))
22799   return 0;
22800   ;
22801   return 0;
22802 }
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (ac_try="$ac_compile"
22806 case "(($ac_try" in
22807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808   *) ac_try_echo=$ac_try;;
22809 esac
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811   (eval "$ac_compile") 2>conftest.er1
22812   ac_status=$?
22813   grep -v '^ *+' conftest.er1 >conftest.err
22814   rm -f conftest.er1
22815   cat conftest.err >&5
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); } && {
22818          test -z "$ac_c_werror_flag" ||
22819          test ! -s conftest.err
22820        } && test -s conftest.$ac_objext; then
22821   ac_cv_type_ino_t=yes
22822 else
22823   echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22825
22826         ac_cv_type_ino_t=no
22827 fi
22828
22829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22830 fi
22831 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22832 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22833 if test $ac_cv_type_ino_t = yes; then
22834   :
22835 else
22836
22837 cat >>confdefs.h <<_ACEOF
22838 #define ino_t unsigned long
22839 _ACEOF
22840
22841 fi
22842
22843 { echo "$as_me:$LINENO: checking for dev_t" >&5
22844 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22845 if test "${ac_cv_type_dev_t+set}" = set; then
22846   echo $ECHO_N "(cached) $ECHO_C" >&6
22847 else
22848   cat >conftest.$ac_ext <<_ACEOF
22849 /* confdefs.h.  */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h.  */
22854 $ac_includes_default
22855 typedef dev_t ac__type_new_;
22856 int
22857 main ()
22858 {
22859 if ((ac__type_new_ *) 0)
22860   return 0;
22861 if (sizeof (ac__type_new_))
22862   return 0;
22863   ;
22864   return 0;
22865 }
22866 _ACEOF
22867 rm -f conftest.$ac_objext
22868 if { (ac_try="$ac_compile"
22869 case "(($ac_try" in
22870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871   *) ac_try_echo=$ac_try;;
22872 esac
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874   (eval "$ac_compile") 2>conftest.er1
22875   ac_status=$?
22876   grep -v '^ *+' conftest.er1 >conftest.err
22877   rm -f conftest.er1
22878   cat conftest.err >&5
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); } && {
22881          test -z "$ac_c_werror_flag" ||
22882          test ! -s conftest.err
22883        } && test -s conftest.$ac_objext; then
22884   ac_cv_type_dev_t=yes
22885 else
22886   echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22888
22889         ac_cv_type_dev_t=no
22890 fi
22891
22892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 fi
22894 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22895 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22896 if test $ac_cv_type_dev_t = yes; then
22897   :
22898 else
22899
22900 cat >>confdefs.h <<_ACEOF
22901 #define dev_t unsigned long
22902 _ACEOF
22903
22904 fi
22905
22906 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22907 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22908 if test "${ac_cv_type_daddr_t+set}" = set; then
22909   echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911   cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h.  */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h.  */
22917 $ac_includes_default
22918 typedef daddr_t ac__type_new_;
22919 int
22920 main ()
22921 {
22922 if ((ac__type_new_ *) 0)
22923   return 0;
22924 if (sizeof (ac__type_new_))
22925   return 0;
22926   ;
22927   return 0;
22928 }
22929 _ACEOF
22930 rm -f conftest.$ac_objext
22931 if { (ac_try="$ac_compile"
22932 case "(($ac_try" in
22933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934   *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937   (eval "$ac_compile") 2>conftest.er1
22938   ac_status=$?
22939   grep -v '^ *+' conftest.er1 >conftest.err
22940   rm -f conftest.er1
22941   cat conftest.err >&5
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); } && {
22944          test -z "$ac_c_werror_flag" ||
22945          test ! -s conftest.err
22946        } && test -s conftest.$ac_objext; then
22947   ac_cv_type_daddr_t=yes
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952         ac_cv_type_daddr_t=no
22953 fi
22954
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 fi
22957 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22958 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22959 if test $ac_cv_type_daddr_t = yes; then
22960   :
22961 else
22962
22963 cat >>confdefs.h <<_ACEOF
22964 #define daddr_t long
22965 _ACEOF
22966
22967 fi
22968
22969 { echo "$as_me:$LINENO: checking for major_t" >&5
22970 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22971 if test "${ac_cv_type_major_t+set}" = set; then
22972   echo $ECHO_N "(cached) $ECHO_C" >&6
22973 else
22974   cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980 $ac_includes_default
22981 typedef major_t ac__type_new_;
22982 int
22983 main ()
22984 {
22985 if ((ac__type_new_ *) 0)
22986   return 0;
22987 if (sizeof (ac__type_new_))
22988   return 0;
22989   ;
22990   return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext
22994 if { (ac_try="$ac_compile"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_compile") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } && {
23007          test -z "$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        } && test -s conftest.$ac_objext; then
23010   ac_cv_type_major_t=yes
23011 else
23012   echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015         ac_cv_type_major_t=no
23016 fi
23017
23018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019 fi
23020 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23021 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23022 if test $ac_cv_type_major_t = yes; then
23023   :
23024 else
23025
23026 cat >>confdefs.h <<_ACEOF
23027 #define major_t int
23028 _ACEOF
23029
23030 fi
23031
23032 { echo "$as_me:$LINENO: checking for minor_t" >&5
23033 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23034 if test "${ac_cv_type_minor_t+set}" = set; then
23035   echo $ECHO_N "(cached) $ECHO_C" >&6
23036 else
23037   cat >conftest.$ac_ext <<_ACEOF
23038 /* confdefs.h.  */
23039 _ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h.  */
23043 $ac_includes_default
23044 typedef minor_t ac__type_new_;
23045 int
23046 main ()
23047 {
23048 if ((ac__type_new_ *) 0)
23049   return 0;
23050 if (sizeof (ac__type_new_))
23051   return 0;
23052   ;
23053   return 0;
23054 }
23055 _ACEOF
23056 rm -f conftest.$ac_objext
23057 if { (ac_try="$ac_compile"
23058 case "(($ac_try" in
23059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060   *) ac_try_echo=$ac_try;;
23061 esac
23062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23063   (eval "$ac_compile") 2>conftest.er1
23064   ac_status=$?
23065   grep -v '^ *+' conftest.er1 >conftest.err
23066   rm -f conftest.er1
23067   cat conftest.err >&5
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); } && {
23070          test -z "$ac_c_werror_flag" ||
23071          test ! -s conftest.err
23072        } && test -s conftest.$ac_objext; then
23073   ac_cv_type_minor_t=yes
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078         ac_cv_type_minor_t=no
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 fi
23083 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23084 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23085 if test $ac_cv_type_minor_t = yes; then
23086   :
23087 else
23088
23089 cat >>confdefs.h <<_ACEOF
23090 #define minor_t int
23091 _ACEOF
23092
23093 fi
23094
23095 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23096 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23097 if test "${ac_cv_type_ssize_t+set}" = set; then
23098   echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100   cat >conftest.$ac_ext <<_ACEOF
23101 /* confdefs.h.  */
23102 _ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h.  */
23106 $ac_includes_default
23107 typedef ssize_t ac__type_new_;
23108 int
23109 main ()
23110 {
23111 if ((ac__type_new_ *) 0)
23112   return 0;
23113 if (sizeof (ac__type_new_))
23114   return 0;
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 rm -f conftest.$ac_objext
23120 if { (ac_try="$ac_compile"
23121 case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126   (eval "$ac_compile") 2>conftest.er1
23127   ac_status=$?
23128   grep -v '^ *+' conftest.er1 >conftest.err
23129   rm -f conftest.er1
23130   cat conftest.err >&5
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); } && {
23133          test -z "$ac_c_werror_flag" ||
23134          test ! -s conftest.err
23135        } && test -s conftest.$ac_objext; then
23136   ac_cv_type_ssize_t=yes
23137 else
23138   echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23140
23141         ac_cv_type_ssize_t=no
23142 fi
23143
23144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 fi
23146 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23147 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23148 if test $ac_cv_type_ssize_t = yes; then
23149   :
23150 else
23151
23152 cat >>confdefs.h <<_ACEOF
23153 #define ssize_t int
23154 _ACEOF
23155
23156 fi
23157
23158 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23159 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23160 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23161   echo $ECHO_N "(cached) $ECHO_C" >&6
23162 else
23163   cat >conftest.$ac_ext <<_ACEOF
23164 /* confdefs.h.  */
23165 _ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h.  */
23169 $ac_includes_default
23170 int
23171 main ()
23172 {
23173 static struct stat ac_aggr;
23174 if (ac_aggr.st_blocks)
23175 return 0;
23176   ;
23177   return 0;
23178 }
23179 _ACEOF
23180 rm -f conftest.$ac_objext
23181 if { (ac_try="$ac_compile"
23182 case "(($ac_try" in
23183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184   *) ac_try_echo=$ac_try;;
23185 esac
23186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23187   (eval "$ac_compile") 2>conftest.er1
23188   ac_status=$?
23189   grep -v '^ *+' conftest.er1 >conftest.err
23190   rm -f conftest.er1
23191   cat conftest.err >&5
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); } && {
23194          test -z "$ac_c_werror_flag" ||
23195          test ! -s conftest.err
23196        } && test -s conftest.$ac_objext; then
23197   ac_cv_member_struct_stat_st_blocks=yes
23198 else
23199   echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202         cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h.  */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h.  */
23208 $ac_includes_default
23209 int
23210 main ()
23211 {
23212 static struct stat ac_aggr;
23213 if (sizeof ac_aggr.st_blocks)
23214 return 0;
23215   ;
23216   return 0;
23217 }
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223   *) ac_try_echo=$ac_try;;
23224 esac
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226   (eval "$ac_compile") 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } && {
23233          test -z "$ac_c_werror_flag" ||
23234          test ! -s conftest.err
23235        } && test -s conftest.$ac_objext; then
23236   ac_cv_member_struct_stat_st_blocks=yes
23237 else
23238   echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241         ac_cv_member_struct_stat_st_blocks=no
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 fi
23249 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23250 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23251 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23252
23253 cat >>confdefs.h <<_ACEOF
23254 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23255 _ACEOF
23256
23257
23258 cat >>confdefs.h <<\_ACEOF
23259 #define HAVE_ST_BLOCKS 1
23260 _ACEOF
23261
23262 else
23263   case " $LIBOBJS " in
23264   *" fileblocks.$ac_objext "* ) ;;
23265   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23266  ;;
23267 esac
23268
23269 fi
23270
23271
23272 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23273 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23274 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23275   echo $ECHO_N "(cached) $ECHO_C" >&6
23276 else
23277   cat >conftest.$ac_ext <<_ACEOF
23278 /* confdefs.h.  */
23279 _ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h.  */
23283 $ac_includes_default
23284 int
23285 main ()
23286 {
23287 static struct stat ac_aggr;
23288 if (ac_aggr.st_rdev)
23289 return 0;
23290   ;
23291   return 0;
23292 }
23293 _ACEOF
23294 rm -f conftest.$ac_objext
23295 if { (ac_try="$ac_compile"
23296 case "(($ac_try" in
23297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298   *) ac_try_echo=$ac_try;;
23299 esac
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301   (eval "$ac_compile") 2>conftest.er1
23302   ac_status=$?
23303   grep -v '^ *+' conftest.er1 >conftest.err
23304   rm -f conftest.er1
23305   cat conftest.err >&5
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } && {
23308          test -z "$ac_c_werror_flag" ||
23309          test ! -s conftest.err
23310        } && test -s conftest.$ac_objext; then
23311   ac_cv_member_struct_stat_st_rdev=yes
23312 else
23313   echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23315
23316         cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h.  */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h.  */
23322 $ac_includes_default
23323 int
23324 main ()
23325 {
23326 static struct stat ac_aggr;
23327 if (sizeof ac_aggr.st_rdev)
23328 return 0;
23329   ;
23330   return 0;
23331 }
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337   *) ac_try_echo=$ac_try;;
23338 esac
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340   (eval "$ac_compile") 2>conftest.er1
23341   ac_status=$?
23342   grep -v '^ *+' conftest.er1 >conftest.err
23343   rm -f conftest.er1
23344   cat conftest.err >&5
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } && {
23347          test -z "$ac_c_werror_flag" ||
23348          test ! -s conftest.err
23349        } && test -s conftest.$ac_objext; then
23350   ac_cv_member_struct_stat_st_rdev=yes
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355         ac_cv_member_struct_stat_st_rdev=no
23356 fi
23357
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 fi
23360
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 fi
23363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23365 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23366
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_STRUCT_STAT_ST_RDEV 1
23369 _ACEOF
23370
23371
23372 cat >>confdefs.h <<\_ACEOF
23373 #define HAVE_ST_RDEV 1
23374 _ACEOF
23375
23376 fi
23377
23378
23379 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23380 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23381 if test "${ac_cv_struct_tm+set}" = set; then
23382   echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23384   cat >conftest.$ac_ext <<_ACEOF
23385 /* confdefs.h.  */
23386 _ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h.  */
23390 #include <sys/types.h>
23391 #include <time.h>
23392
23393 int
23394 main ()
23395 {
23396 struct tm tm;
23397                                      int *p = &tm.tm_sec;
23398                                      return !p;
23399   ;
23400   return 0;
23401 }
23402 _ACEOF
23403 rm -f conftest.$ac_objext
23404 if { (ac_try="$ac_compile"
23405 case "(($ac_try" in
23406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407   *) ac_try_echo=$ac_try;;
23408 esac
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410   (eval "$ac_compile") 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } && {
23417          test -z "$ac_c_werror_flag" ||
23418          test ! -s conftest.err
23419        } && test -s conftest.$ac_objext; then
23420   ac_cv_struct_tm=time.h
23421 else
23422   echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23424
23425         ac_cv_struct_tm=sys/time.h
23426 fi
23427
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 fi
23430 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23431 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23432 if test $ac_cv_struct_tm = sys/time.h; then
23433
23434 cat >>confdefs.h <<\_ACEOF
23435 #define TM_IN_SYS_TIME 1
23436 _ACEOF
23437
23438 fi
23439
23440 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23441 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23442 if test "${ac_cv_c_const+set}" = set; then
23443   echo $ECHO_N "(cached) $ECHO_C" >&6
23444 else
23445   cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h.  */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h.  */
23451
23452 int
23453 main ()
23454 {
23455 /* FIXME: Include the comments suggested by Paul. */
23456 #ifndef __cplusplus
23457   /* Ultrix mips cc rejects this.  */
23458   typedef int charset[2];
23459   const charset cs;
23460   /* SunOS 4.1.1 cc rejects this.  */
23461   char const *const *pcpcc;
23462   char **ppc;
23463   /* NEC SVR4.0.2 mips cc rejects this.  */
23464   struct point {int x, y;};
23465   static struct point const zero = {0,0};
23466   /* AIX XL C 1.02.0.0 rejects this.
23467      It does not let you subtract one const X* pointer from another in
23468      an arm of an if-expression whose if-part is not a constant
23469      expression */
23470   const char *g = "string";
23471   pcpcc = &g + (g ? g-g : 0);
23472   /* HPUX 7.0 cc rejects these. */
23473   ++pcpcc;
23474   ppc = (char**) pcpcc;
23475   pcpcc = (char const *const *) ppc;
23476   { /* SCO 3.2v4 cc rejects this.  */
23477     char *t;
23478     char const *s = 0 ? (char *) 0 : (char const *) 0;
23479
23480     *t++ = 0;
23481     if (s) return 0;
23482   }
23483   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23484     int x[] = {25, 17};
23485     const int *foo = &x[0];
23486     ++foo;
23487   }
23488   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23489     typedef const int *iptr;
23490     iptr p = 0;
23491     ++p;
23492   }
23493   { /* AIX XL C 1.02.0.0 rejects this saying
23494        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23495     struct s { int j; const int *ap[3]; };
23496     struct s *b; b->j = 5;
23497   }
23498   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23499     const int foo = 10;
23500     if (!foo) return 0;
23501   }
23502   return !cs[0] && !zero.x;
23503 #endif
23504
23505   ;
23506   return 0;
23507 }
23508 _ACEOF
23509 rm -f conftest.$ac_objext
23510 if { (ac_try="$ac_compile"
23511 case "(($ac_try" in
23512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513   *) ac_try_echo=$ac_try;;
23514 esac
23515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23516   (eval "$ac_compile") 2>conftest.er1
23517   ac_status=$?
23518   grep -v '^ *+' conftest.er1 >conftest.err
23519   rm -f conftest.er1
23520   cat conftest.err >&5
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); } && {
23523          test -z "$ac_c_werror_flag" ||
23524          test ! -s conftest.err
23525        } && test -s conftest.$ac_objext; then
23526   ac_cv_c_const=yes
23527 else
23528   echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23530
23531         ac_cv_c_const=no
23532 fi
23533
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 fi
23536 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23537 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23538 if test $ac_cv_c_const = no; then
23539
23540 cat >>confdefs.h <<\_ACEOF
23541 #define const
23542 _ACEOF
23543
23544 fi
23545
23546
23547
23548 { echo "$as_me:$LINENO: checking for char" >&5
23549 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23550 if test "${ac_cv_type_char+set}" = set; then
23551   echo $ECHO_N "(cached) $ECHO_C" >&6
23552 else
23553   cat >conftest.$ac_ext <<_ACEOF
23554 /* confdefs.h.  */
23555 _ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h.  */
23559 $ac_includes_default
23560 typedef char ac__type_new_;
23561 int
23562 main ()
23563 {
23564 if ((ac__type_new_ *) 0)
23565   return 0;
23566 if (sizeof (ac__type_new_))
23567   return 0;
23568   ;
23569   return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576   *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579   (eval "$ac_compile") 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } && {
23586          test -z "$ac_c_werror_flag" ||
23587          test ! -s conftest.err
23588        } && test -s conftest.$ac_objext; then
23589   ac_cv_type_char=yes
23590 else
23591   echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23593
23594         ac_cv_type_char=no
23595 fi
23596
23597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598 fi
23599 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23600 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23601
23602 # The cast to long int works around a bug in the HP C Compiler
23603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23605 # This bug is HP SR number 8606223364.
23606 { echo "$as_me:$LINENO: checking size of char" >&5
23607 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23608 if test "${ac_cv_sizeof_char+set}" = set; then
23609   echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611   if test "$cross_compiling" = yes; then
23612   # Depending upon the size, compute the lo and hi bounds.
23613 cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 $ac_includes_default
23620    typedef char ac__type_sizeof_;
23621 int
23622 main ()
23623 {
23624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23625 test_array [0] = 0
23626
23627   ;
23628   return 0;
23629 }
23630 _ACEOF
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635   *) ac_try_echo=$ac_try;;
23636 esac
23637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638   (eval "$ac_compile") 2>conftest.er1
23639   ac_status=$?
23640   grep -v '^ *+' conftest.er1 >conftest.err
23641   rm -f conftest.er1
23642   cat conftest.err >&5
23643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644   (exit $ac_status); } && {
23645          test -z "$ac_c_werror_flag" ||
23646          test ! -s conftest.err
23647        } && test -s conftest.$ac_objext; then
23648   ac_lo=0 ac_mid=0
23649   while :; do
23650     cat >conftest.$ac_ext <<_ACEOF
23651 /* confdefs.h.  */
23652 _ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h.  */
23656 $ac_includes_default
23657    typedef char ac__type_sizeof_;
23658 int
23659 main ()
23660 {
23661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23662 test_array [0] = 0
23663
23664   ;
23665   return 0;
23666 }
23667 _ACEOF
23668 rm -f conftest.$ac_objext
23669 if { (ac_try="$ac_compile"
23670 case "(($ac_try" in
23671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672   *) ac_try_echo=$ac_try;;
23673 esac
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675   (eval "$ac_compile") 2>conftest.er1
23676   ac_status=$?
23677   grep -v '^ *+' conftest.er1 >conftest.err
23678   rm -f conftest.er1
23679   cat conftest.err >&5
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); } && {
23682          test -z "$ac_c_werror_flag" ||
23683          test ! -s conftest.err
23684        } && test -s conftest.$ac_objext; then
23685   ac_hi=$ac_mid; break
23686 else
23687   echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690         ac_lo=`expr $ac_mid + 1`
23691                         if test $ac_lo -le $ac_mid; then
23692                           ac_lo= ac_hi=
23693                           break
23694                         fi
23695                         ac_mid=`expr 2 '*' $ac_mid + 1`
23696 fi
23697
23698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23699   done
23700 else
23701   echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704         cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 $ac_includes_default
23711    typedef char ac__type_sizeof_;
23712 int
23713 main ()
23714 {
23715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23716 test_array [0] = 0
23717
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726   *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729   (eval "$ac_compile") 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } && {
23736          test -z "$ac_c_werror_flag" ||
23737          test ! -s conftest.err
23738        } && test -s conftest.$ac_objext; then
23739   ac_hi=-1 ac_mid=-1
23740   while :; do
23741     cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747 $ac_includes_default
23748    typedef char ac__type_sizeof_;
23749 int
23750 main ()
23751 {
23752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23753 test_array [0] = 0
23754
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 rm -f conftest.$ac_objext
23760 if { (ac_try="$ac_compile"
23761 case "(($ac_try" in
23762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763   *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766   (eval "$ac_compile") 2>conftest.er1
23767   ac_status=$?
23768   grep -v '^ *+' conftest.er1 >conftest.err
23769   rm -f conftest.er1
23770   cat conftest.err >&5
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } && {
23773          test -z "$ac_c_werror_flag" ||
23774          test ! -s conftest.err
23775        } && test -s conftest.$ac_objext; then
23776   ac_lo=$ac_mid; break
23777 else
23778   echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23780
23781         ac_hi=`expr '(' $ac_mid ')' - 1`
23782                         if test $ac_mid -le $ac_hi; then
23783                           ac_lo= ac_hi=
23784                           break
23785                         fi
23786                         ac_mid=`expr 2 '*' $ac_mid`
23787 fi
23788
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790   done
23791 else
23792   echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23794
23795         ac_lo= ac_hi=
23796 fi
23797
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799 fi
23800
23801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 # Binary search between lo and hi bounds.
23803 while test "x$ac_lo" != "x$ac_hi"; do
23804   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23805   cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811 $ac_includes_default
23812    typedef char ac__type_sizeof_;
23813 int
23814 main ()
23815 {
23816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23817 test_array [0] = 0
23818
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830   (eval "$ac_compile") 2>conftest.er1
23831   ac_status=$?
23832   grep -v '^ *+' conftest.er1 >conftest.err
23833   rm -f conftest.er1
23834   cat conftest.err >&5
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); } && {
23837          test -z "$ac_c_werror_flag" ||
23838          test ! -s conftest.err
23839        } && test -s conftest.$ac_objext; then
23840   ac_hi=$ac_mid
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845         ac_lo=`expr '(' $ac_mid ')' + 1`
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 done
23850 case $ac_lo in
23851 ?*) ac_cv_sizeof_char=$ac_lo;;
23852 '') if test "$ac_cv_type_char" = yes; then
23853      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23854 See \`config.log' for more details." >&5
23855 echo "$as_me: error: cannot compute sizeof (char)
23856 See \`config.log' for more details." >&2;}
23857    { (exit 77); exit 77; }; }
23858    else
23859      ac_cv_sizeof_char=0
23860    fi ;;
23861 esac
23862 else
23863   cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869 $ac_includes_default
23870    typedef char ac__type_sizeof_;
23871 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23872 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23873 #include <stdio.h>
23874 #include <stdlib.h>
23875 int
23876 main ()
23877 {
23878
23879   FILE *f = fopen ("conftest.val", "w");
23880   if (! f)
23881     return 1;
23882   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23883     {
23884       long int i = longval ();
23885       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23886         return 1;
23887       fprintf (f, "%ld\n", i);
23888     }
23889   else
23890     {
23891       unsigned long int i = ulongval ();
23892       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23893         return 1;
23894       fprintf (f, "%lu\n", i);
23895     }
23896   return ferror (f) || fclose (f) != 0;
23897
23898   ;
23899   return 0;
23900 }
23901 _ACEOF
23902 rm -f conftest$ac_exeext
23903 if { (ac_try="$ac_link"
23904 case "(($ac_try" in
23905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906   *) ac_try_echo=$ac_try;;
23907 esac
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909   (eval "$ac_link") 2>&5
23910   ac_status=$?
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23913   { (case "(($ac_try" in
23914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915   *) ac_try_echo=$ac_try;;
23916 esac
23917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23918   (eval "$ac_try") 2>&5
23919   ac_status=$?
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); }; }; then
23922   ac_cv_sizeof_char=`cat conftest.val`
23923 else
23924   echo "$as_me: program exited with status $ac_status" >&5
23925 echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23927
23928 ( exit $ac_status )
23929 if test "$ac_cv_type_char" = yes; then
23930      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23931 See \`config.log' for more details." >&5
23932 echo "$as_me: error: cannot compute sizeof (char)
23933 See \`config.log' for more details." >&2;}
23934    { (exit 77); exit 77; }; }
23935    else
23936      ac_cv_sizeof_char=0
23937    fi
23938 fi
23939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23940 fi
23941 rm -f conftest.val
23942 fi
23943 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23944 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23945
23946
23947
23948 cat >>confdefs.h <<_ACEOF
23949 #define SIZEOF_CHAR $ac_cv_sizeof_char
23950 _ACEOF
23951
23952
23953 { echo "$as_me:$LINENO: checking for short int" >&5
23954 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23955 if test "${ac_cv_type_short_int+set}" = set; then
23956   echo $ECHO_N "(cached) $ECHO_C" >&6
23957 else
23958   cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h.  */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h.  */
23964 $ac_includes_default
23965 typedef short int ac__type_new_;
23966 int
23967 main ()
23968 {
23969 if ((ac__type_new_ *) 0)
23970   return 0;
23971 if (sizeof (ac__type_new_))
23972   return 0;
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext
23978 if { (ac_try="$ac_compile"
23979 case "(($ac_try" in
23980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23981   *) ac_try_echo=$ac_try;;
23982 esac
23983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23984   (eval "$ac_compile") 2>conftest.er1
23985   ac_status=$?
23986   grep -v '^ *+' conftest.er1 >conftest.err
23987   rm -f conftest.er1
23988   cat conftest.err >&5
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); } && {
23991          test -z "$ac_c_werror_flag" ||
23992          test ! -s conftest.err
23993        } && test -s conftest.$ac_objext; then
23994   ac_cv_type_short_int=yes
23995 else
23996   echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23998
23999         ac_cv_type_short_int=no
24000 fi
24001
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24003 fi
24004 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24005 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24006
24007 # The cast to long int works around a bug in the HP C Compiler
24008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24010 # This bug is HP SR number 8606223364.
24011 { echo "$as_me:$LINENO: checking size of short int" >&5
24012 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24013 if test "${ac_cv_sizeof_short_int+set}" = set; then
24014   echo $ECHO_N "(cached) $ECHO_C" >&6
24015 else
24016   if test "$cross_compiling" = yes; then
24017   # Depending upon the size, compute the lo and hi bounds.
24018 cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24024 $ac_includes_default
24025    typedef short int ac__type_sizeof_;
24026 int
24027 main ()
24028 {
24029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24030 test_array [0] = 0
24031
24032   ;
24033   return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040   *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043   (eval "$ac_compile") 2>conftest.er1
24044   ac_status=$?
24045   grep -v '^ *+' conftest.er1 >conftest.err
24046   rm -f conftest.er1
24047   cat conftest.err >&5
24048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); } && {
24050          test -z "$ac_c_werror_flag" ||
24051          test ! -s conftest.err
24052        } && test -s conftest.$ac_objext; then
24053   ac_lo=0 ac_mid=0
24054   while :; do
24055     cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061 $ac_includes_default
24062    typedef short int ac__type_sizeof_;
24063 int
24064 main ()
24065 {
24066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24067 test_array [0] = 0
24068
24069   ;
24070   return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest.$ac_objext
24074 if { (ac_try="$ac_compile"
24075 case "(($ac_try" in
24076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077   *) ac_try_echo=$ac_try;;
24078 esac
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080   (eval "$ac_compile") 2>conftest.er1
24081   ac_status=$?
24082   grep -v '^ *+' conftest.er1 >conftest.err
24083   rm -f conftest.er1
24084   cat conftest.err >&5
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); } && {
24087          test -z "$ac_c_werror_flag" ||
24088          test ! -s conftest.err
24089        } && test -s conftest.$ac_objext; then
24090   ac_hi=$ac_mid; break
24091 else
24092   echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24094
24095         ac_lo=`expr $ac_mid + 1`
24096                         if test $ac_lo -le $ac_mid; then
24097                           ac_lo= ac_hi=
24098                           break
24099                         fi
24100                         ac_mid=`expr 2 '*' $ac_mid + 1`
24101 fi
24102
24103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24104   done
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109         cat >conftest.$ac_ext <<_ACEOF
24110 /* confdefs.h.  */
24111 _ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h.  */
24115 $ac_includes_default
24116    typedef short int ac__type_sizeof_;
24117 int
24118 main ()
24119 {
24120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24121 test_array [0] = 0
24122
24123   ;
24124   return 0;
24125 }
24126 _ACEOF
24127 rm -f conftest.$ac_objext
24128 if { (ac_try="$ac_compile"
24129 case "(($ac_try" in
24130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131   *) ac_try_echo=$ac_try;;
24132 esac
24133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24134   (eval "$ac_compile") 2>conftest.er1
24135   ac_status=$?
24136   grep -v '^ *+' conftest.er1 >conftest.err
24137   rm -f conftest.er1
24138   cat conftest.err >&5
24139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); } && {
24141          test -z "$ac_c_werror_flag" ||
24142          test ! -s conftest.err
24143        } && test -s conftest.$ac_objext; then
24144   ac_hi=-1 ac_mid=-1
24145   while :; do
24146     cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152 $ac_includes_default
24153    typedef short int ac__type_sizeof_;
24154 int
24155 main ()
24156 {
24157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24158 test_array [0] = 0
24159
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168   *) ac_try_echo=$ac_try;;
24169 esac
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171   (eval "$ac_compile") 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } && {
24178          test -z "$ac_c_werror_flag" ||
24179          test ! -s conftest.err
24180        } && test -s conftest.$ac_objext; then
24181   ac_lo=$ac_mid; break
24182 else
24183   echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186         ac_hi=`expr '(' $ac_mid ')' - 1`
24187                         if test $ac_mid -le $ac_hi; then
24188                           ac_lo= ac_hi=
24189                           break
24190                         fi
24191                         ac_mid=`expr 2 '*' $ac_mid`
24192 fi
24193
24194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24195   done
24196 else
24197   echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24199
24200         ac_lo= ac_hi=
24201 fi
24202
24203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24204 fi
24205
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207 # Binary search between lo and hi bounds.
24208 while test "x$ac_lo" != "x$ac_hi"; do
24209   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24210   cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h.  */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h.  */
24216 $ac_includes_default
24217    typedef short int ac__type_sizeof_;
24218 int
24219 main ()
24220 {
24221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24222 test_array [0] = 0
24223
24224   ;
24225   return 0;
24226 }
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232   *) ac_try_echo=$ac_try;;
24233 esac
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235   (eval "$ac_compile") 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } && {
24242          test -z "$ac_c_werror_flag" ||
24243          test ! -s conftest.err
24244        } && test -s conftest.$ac_objext; then
24245   ac_hi=$ac_mid
24246 else
24247   echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24249
24250         ac_lo=`expr '(' $ac_mid ')' + 1`
24251 fi
24252
24253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 done
24255 case $ac_lo in
24256 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24257 '') if test "$ac_cv_type_short_int" = yes; then
24258      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24259 See \`config.log' for more details." >&5
24260 echo "$as_me: error: cannot compute sizeof (short int)
24261 See \`config.log' for more details." >&2;}
24262    { (exit 77); exit 77; }; }
24263    else
24264      ac_cv_sizeof_short_int=0
24265    fi ;;
24266 esac
24267 else
24268   cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h.  */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h.  */
24274 $ac_includes_default
24275    typedef short int ac__type_sizeof_;
24276 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24277 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24278 #include <stdio.h>
24279 #include <stdlib.h>
24280 int
24281 main ()
24282 {
24283
24284   FILE *f = fopen ("conftest.val", "w");
24285   if (! f)
24286     return 1;
24287   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24288     {
24289       long int i = longval ();
24290       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24291         return 1;
24292       fprintf (f, "%ld\n", i);
24293     }
24294   else
24295     {
24296       unsigned long int i = ulongval ();
24297       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24298         return 1;
24299       fprintf (f, "%lu\n", i);
24300     }
24301   return ferror (f) || fclose (f) != 0;
24302
24303   ;
24304   return 0;
24305 }
24306 _ACEOF
24307 rm -f conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311   *) ac_try_echo=$ac_try;;
24312 esac
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314   (eval "$ac_link") 2>&5
24315   ac_status=$?
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24318   { (case "(($ac_try" in
24319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320   *) ac_try_echo=$ac_try;;
24321 esac
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323   (eval "$ac_try") 2>&5
24324   ac_status=$?
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); }; }; then
24327   ac_cv_sizeof_short_int=`cat conftest.val`
24328 else
24329   echo "$as_me: program exited with status $ac_status" >&5
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333 ( exit $ac_status )
24334 if test "$ac_cv_type_short_int" = yes; then
24335      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24336 See \`config.log' for more details." >&5
24337 echo "$as_me: error: cannot compute sizeof (short int)
24338 See \`config.log' for more details." >&2;}
24339    { (exit 77); exit 77; }; }
24340    else
24341      ac_cv_sizeof_short_int=0
24342    fi
24343 fi
24344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24345 fi
24346 rm -f conftest.val
24347 fi
24348 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24349 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24350
24351
24352
24353 cat >>confdefs.h <<_ACEOF
24354 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24355 _ACEOF
24356
24357
24358 { echo "$as_me:$LINENO: checking for int" >&5
24359 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24360 if test "${ac_cv_type_int+set}" = set; then
24361   echo $ECHO_N "(cached) $ECHO_C" >&6
24362 else
24363   cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h.  */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h.  */
24369 $ac_includes_default
24370 typedef int ac__type_new_;
24371 int
24372 main ()
24373 {
24374 if ((ac__type_new_ *) 0)
24375   return 0;
24376 if (sizeof (ac__type_new_))
24377   return 0;
24378   ;
24379   return 0;
24380 }
24381 _ACEOF
24382 rm -f conftest.$ac_objext
24383 if { (ac_try="$ac_compile"
24384 case "(($ac_try" in
24385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386   *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389   (eval "$ac_compile") 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && {
24396          test -z "$ac_c_werror_flag" ||
24397          test ! -s conftest.err
24398        } && test -s conftest.$ac_objext; then
24399   ac_cv_type_int=yes
24400 else
24401   echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404         ac_cv_type_int=no
24405 fi
24406
24407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408 fi
24409 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24410 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24411
24412 # The cast to long int works around a bug in the HP C Compiler
24413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24415 # This bug is HP SR number 8606223364.
24416 { echo "$as_me:$LINENO: checking size of int" >&5
24417 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24418 if test "${ac_cv_sizeof_int+set}" = set; then
24419   echo $ECHO_N "(cached) $ECHO_C" >&6
24420 else
24421   if test "$cross_compiling" = yes; then
24422   # Depending upon the size, compute the lo and hi bounds.
24423 cat >conftest.$ac_ext <<_ACEOF
24424 /* confdefs.h.  */
24425 _ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h.  */
24429 $ac_includes_default
24430    typedef int ac__type_sizeof_;
24431 int
24432 main ()
24433 {
24434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24435 test_array [0] = 0
24436
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445   *) ac_try_echo=$ac_try;;
24446 esac
24447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448   (eval "$ac_compile") 2>conftest.er1
24449   ac_status=$?
24450   grep -v '^ *+' conftest.er1 >conftest.err
24451   rm -f conftest.er1
24452   cat conftest.err >&5
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } && {
24455          test -z "$ac_c_werror_flag" ||
24456          test ! -s conftest.err
24457        } && test -s conftest.$ac_objext; then
24458   ac_lo=0 ac_mid=0
24459   while :; do
24460     cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 $ac_includes_default
24467    typedef int ac__type_sizeof_;
24468 int
24469 main ()
24470 {
24471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24472 test_array [0] = 0
24473
24474   ;
24475   return 0;
24476 }
24477 _ACEOF
24478 rm -f conftest.$ac_objext
24479 if { (ac_try="$ac_compile"
24480 case "(($ac_try" in
24481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24482   *) ac_try_echo=$ac_try;;
24483 esac
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485   (eval "$ac_compile") 2>conftest.er1
24486   ac_status=$?
24487   grep -v '^ *+' conftest.er1 >conftest.err
24488   rm -f conftest.er1
24489   cat conftest.err >&5
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); } && {
24492          test -z "$ac_c_werror_flag" ||
24493          test ! -s conftest.err
24494        } && test -s conftest.$ac_objext; then
24495   ac_hi=$ac_mid; break
24496 else
24497   echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24499
24500         ac_lo=`expr $ac_mid + 1`
24501                         if test $ac_lo -le $ac_mid; then
24502                           ac_lo= ac_hi=
24503                           break
24504                         fi
24505                         ac_mid=`expr 2 '*' $ac_mid + 1`
24506 fi
24507
24508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24509   done
24510 else
24511   echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24513
24514         cat >conftest.$ac_ext <<_ACEOF
24515 /* confdefs.h.  */
24516 _ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h.  */
24520 $ac_includes_default
24521    typedef int ac__type_sizeof_;
24522 int
24523 main ()
24524 {
24525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24526 test_array [0] = 0
24527
24528   ;
24529   return 0;
24530 }
24531 _ACEOF
24532 rm -f conftest.$ac_objext
24533 if { (ac_try="$ac_compile"
24534 case "(($ac_try" in
24535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536   *) ac_try_echo=$ac_try;;
24537 esac
24538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24539   (eval "$ac_compile") 2>conftest.er1
24540   ac_status=$?
24541   grep -v '^ *+' conftest.er1 >conftest.err
24542   rm -f conftest.er1
24543   cat conftest.err >&5
24544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545   (exit $ac_status); } && {
24546          test -z "$ac_c_werror_flag" ||
24547          test ! -s conftest.err
24548        } && test -s conftest.$ac_objext; then
24549   ac_hi=-1 ac_mid=-1
24550   while :; do
24551     cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 $ac_includes_default
24558    typedef int ac__type_sizeof_;
24559 int
24560 main ()
24561 {
24562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24563 test_array [0] = 0
24564
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_compile") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest.$ac_objext; then
24586   ac_lo=$ac_mid; break
24587 else
24588   echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591         ac_hi=`expr '(' $ac_mid ')' - 1`
24592                         if test $ac_mid -le $ac_hi; then
24593                           ac_lo= ac_hi=
24594                           break
24595                         fi
24596                         ac_mid=`expr 2 '*' $ac_mid`
24597 fi
24598
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24600   done
24601 else
24602   echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24604
24605         ac_lo= ac_hi=
24606 fi
24607
24608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24609 fi
24610
24611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24612 # Binary search between lo and hi bounds.
24613 while test "x$ac_lo" != "x$ac_hi"; do
24614   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24615   cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h.  */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h.  */
24621 $ac_includes_default
24622    typedef int ac__type_sizeof_;
24623 int
24624 main ()
24625 {
24626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24627 test_array [0] = 0
24628
24629   ;
24630   return 0;
24631 }
24632 _ACEOF
24633 rm -f conftest.$ac_objext
24634 if { (ac_try="$ac_compile"
24635 case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640   (eval "$ac_compile") 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } && {
24647          test -z "$ac_c_werror_flag" ||
24648          test ! -s conftest.err
24649        } && test -s conftest.$ac_objext; then
24650   ac_hi=$ac_mid
24651 else
24652   echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24654
24655         ac_lo=`expr '(' $ac_mid ')' + 1`
24656 fi
24657
24658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 done
24660 case $ac_lo in
24661 ?*) ac_cv_sizeof_int=$ac_lo;;
24662 '') if test "$ac_cv_type_int" = yes; then
24663      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24664 See \`config.log' for more details." >&5
24665 echo "$as_me: error: cannot compute sizeof (int)
24666 See \`config.log' for more details." >&2;}
24667    { (exit 77); exit 77; }; }
24668    else
24669      ac_cv_sizeof_int=0
24670    fi ;;
24671 esac
24672 else
24673   cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h.  */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h.  */
24679 $ac_includes_default
24680    typedef int ac__type_sizeof_;
24681 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24682 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24683 #include <stdio.h>
24684 #include <stdlib.h>
24685 int
24686 main ()
24687 {
24688
24689   FILE *f = fopen ("conftest.val", "w");
24690   if (! f)
24691     return 1;
24692   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24693     {
24694       long int i = longval ();
24695       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24696         return 1;
24697       fprintf (f, "%ld\n", i);
24698     }
24699   else
24700     {
24701       unsigned long int i = ulongval ();
24702       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24703         return 1;
24704       fprintf (f, "%lu\n", i);
24705     }
24706   return ferror (f) || fclose (f) != 0;
24707
24708   ;
24709   return 0;
24710 }
24711 _ACEOF
24712 rm -f conftest$ac_exeext
24713 if { (ac_try="$ac_link"
24714 case "(($ac_try" in
24715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716   *) ac_try_echo=$ac_try;;
24717 esac
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719   (eval "$ac_link") 2>&5
24720   ac_status=$?
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24723   { (case "(($ac_try" in
24724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725   *) ac_try_echo=$ac_try;;
24726 esac
24727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24728   (eval "$ac_try") 2>&5
24729   ac_status=$?
24730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731   (exit $ac_status); }; }; then
24732   ac_cv_sizeof_int=`cat conftest.val`
24733 else
24734   echo "$as_me: program exited with status $ac_status" >&5
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24737
24738 ( exit $ac_status )
24739 if test "$ac_cv_type_int" = yes; then
24740      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24741 See \`config.log' for more details." >&5
24742 echo "$as_me: error: cannot compute sizeof (int)
24743 See \`config.log' for more details." >&2;}
24744    { (exit 77); exit 77; }; }
24745    else
24746      ac_cv_sizeof_int=0
24747    fi
24748 fi
24749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24750 fi
24751 rm -f conftest.val
24752 fi
24753 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24754 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24755
24756
24757
24758 cat >>confdefs.h <<_ACEOF
24759 #define SIZEOF_INT $ac_cv_sizeof_int
24760 _ACEOF
24761
24762
24763 { echo "$as_me:$LINENO: checking for long int" >&5
24764 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24765 if test "${ac_cv_type_long_int+set}" = set; then
24766   echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768   cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h.  */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h.  */
24774 $ac_includes_default
24775 typedef long int ac__type_new_;
24776 int
24777 main ()
24778 {
24779 if ((ac__type_new_ *) 0)
24780   return 0;
24781 if (sizeof (ac__type_new_))
24782   return 0;
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext
24788 if { (ac_try="$ac_compile"
24789 case "(($ac_try" in
24790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791   *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794   (eval "$ac_compile") 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } && {
24801          test -z "$ac_c_werror_flag" ||
24802          test ! -s conftest.err
24803        } && test -s conftest.$ac_objext; then
24804   ac_cv_type_long_int=yes
24805 else
24806   echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809         ac_cv_type_long_int=no
24810 fi
24811
24812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813 fi
24814 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24815 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24816
24817 # The cast to long int works around a bug in the HP C Compiler
24818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24820 # This bug is HP SR number 8606223364.
24821 { echo "$as_me:$LINENO: checking size of long int" >&5
24822 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24823 if test "${ac_cv_sizeof_long_int+set}" = set; then
24824   echo $ECHO_N "(cached) $ECHO_C" >&6
24825 else
24826   if test "$cross_compiling" = yes; then
24827   # Depending upon the size, compute the lo and hi bounds.
24828 cat >conftest.$ac_ext <<_ACEOF
24829 /* confdefs.h.  */
24830 _ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h.  */
24834 $ac_includes_default
24835    typedef long int ac__type_sizeof_;
24836 int
24837 main ()
24838 {
24839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24840 test_array [0] = 0
24841
24842   ;
24843   return 0;
24844 }
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850   *) ac_try_echo=$ac_try;;
24851 esac
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853   (eval "$ac_compile") 2>conftest.er1
24854   ac_status=$?
24855   grep -v '^ *+' conftest.er1 >conftest.err
24856   rm -f conftest.er1
24857   cat conftest.err >&5
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); } && {
24860          test -z "$ac_c_werror_flag" ||
24861          test ! -s conftest.err
24862        } && test -s conftest.$ac_objext; then
24863   ac_lo=0 ac_mid=0
24864   while :; do
24865     cat >conftest.$ac_ext <<_ACEOF
24866 /* confdefs.h.  */
24867 _ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h.  */
24871 $ac_includes_default
24872    typedef long int ac__type_sizeof_;
24873 int
24874 main ()
24875 {
24876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24877 test_array [0] = 0
24878
24879   ;
24880   return 0;
24881 }
24882 _ACEOF
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_compile") 2>conftest.er1
24891   ac_status=$?
24892   grep -v '^ *+' conftest.er1 >conftest.err
24893   rm -f conftest.er1
24894   cat conftest.err >&5
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); } && {
24897          test -z "$ac_c_werror_flag" ||
24898          test ! -s conftest.err
24899        } && test -s conftest.$ac_objext; then
24900   ac_hi=$ac_mid; break
24901 else
24902   echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24904
24905         ac_lo=`expr $ac_mid + 1`
24906                         if test $ac_lo -le $ac_mid; then
24907                           ac_lo= ac_hi=
24908                           break
24909                         fi
24910                         ac_mid=`expr 2 '*' $ac_mid + 1`
24911 fi
24912
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914   done
24915 else
24916   echo "$as_me: failed program was:" >&5
24917 sed 's/^/| /' conftest.$ac_ext >&5
24918
24919         cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h.  */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h.  */
24925 $ac_includes_default
24926    typedef long int ac__type_sizeof_;
24927 int
24928 main ()
24929 {
24930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24931 test_array [0] = 0
24932
24933   ;
24934   return 0;
24935 }
24936 _ACEOF
24937 rm -f conftest.$ac_objext
24938 if { (ac_try="$ac_compile"
24939 case "(($ac_try" in
24940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941   *) ac_try_echo=$ac_try;;
24942 esac
24943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944   (eval "$ac_compile") 2>conftest.er1
24945   ac_status=$?
24946   grep -v '^ *+' conftest.er1 >conftest.err
24947   rm -f conftest.er1
24948   cat conftest.err >&5
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); } && {
24951          test -z "$ac_c_werror_flag" ||
24952          test ! -s conftest.err
24953        } && test -s conftest.$ac_objext; then
24954   ac_hi=-1 ac_mid=-1
24955   while :; do
24956     cat >conftest.$ac_ext <<_ACEOF
24957 /* confdefs.h.  */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h.  */
24962 $ac_includes_default
24963    typedef long int ac__type_sizeof_;
24964 int
24965 main ()
24966 {
24967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24968 test_array [0] = 0
24969
24970   ;
24971   return 0;
24972 }
24973 _ACEOF
24974 rm -f conftest.$ac_objext
24975 if { (ac_try="$ac_compile"
24976 case "(($ac_try" in
24977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978   *) ac_try_echo=$ac_try;;
24979 esac
24980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981   (eval "$ac_compile") 2>conftest.er1
24982   ac_status=$?
24983   grep -v '^ *+' conftest.er1 >conftest.err
24984   rm -f conftest.er1
24985   cat conftest.err >&5
24986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987   (exit $ac_status); } && {
24988          test -z "$ac_c_werror_flag" ||
24989          test ! -s conftest.err
24990        } && test -s conftest.$ac_objext; then
24991   ac_lo=$ac_mid; break
24992 else
24993   echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24995
24996         ac_hi=`expr '(' $ac_mid ')' - 1`
24997                         if test $ac_mid -le $ac_hi; then
24998                           ac_lo= ac_hi=
24999                           break
25000                         fi
25001                         ac_mid=`expr 2 '*' $ac_mid`
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005   done
25006 else
25007   echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25009
25010         ac_lo= ac_hi=
25011 fi
25012
25013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25014 fi
25015
25016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25017 # Binary search between lo and hi bounds.
25018 while test "x$ac_lo" != "x$ac_hi"; do
25019   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25020   cat >conftest.$ac_ext <<_ACEOF
25021 /* confdefs.h.  */
25022 _ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h.  */
25026 $ac_includes_default
25027    typedef long int ac__type_sizeof_;
25028 int
25029 main ()
25030 {
25031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25032 test_array [0] = 0
25033
25034   ;
25035   return 0;
25036 }
25037 _ACEOF
25038 rm -f conftest.$ac_objext
25039 if { (ac_try="$ac_compile"
25040 case "(($ac_try" in
25041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042   *) ac_try_echo=$ac_try;;
25043 esac
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045   (eval "$ac_compile") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_c_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest.$ac_objext; then
25055   ac_hi=$ac_mid
25056 else
25057   echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060         ac_lo=`expr '(' $ac_mid ')' + 1`
25061 fi
25062
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 done
25065 case $ac_lo in
25066 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25067 '') if test "$ac_cv_type_long_int" = yes; then
25068      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25069 See \`config.log' for more details." >&5
25070 echo "$as_me: error: cannot compute sizeof (long int)
25071 See \`config.log' for more details." >&2;}
25072    { (exit 77); exit 77; }; }
25073    else
25074      ac_cv_sizeof_long_int=0
25075    fi ;;
25076 esac
25077 else
25078   cat >conftest.$ac_ext <<_ACEOF
25079 /* confdefs.h.  */
25080 _ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h.  */
25084 $ac_includes_default
25085    typedef long int ac__type_sizeof_;
25086 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25087 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25088 #include <stdio.h>
25089 #include <stdlib.h>
25090 int
25091 main ()
25092 {
25093
25094   FILE *f = fopen ("conftest.val", "w");
25095   if (! f)
25096     return 1;
25097   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25098     {
25099       long int i = longval ();
25100       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25101         return 1;
25102       fprintf (f, "%ld\n", i);
25103     }
25104   else
25105     {
25106       unsigned long int i = ulongval ();
25107       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25108         return 1;
25109       fprintf (f, "%lu\n", i);
25110     }
25111   return ferror (f) || fclose (f) != 0;
25112
25113   ;
25114   return 0;
25115 }
25116 _ACEOF
25117 rm -f conftest$ac_exeext
25118 if { (ac_try="$ac_link"
25119 case "(($ac_try" in
25120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121   *) ac_try_echo=$ac_try;;
25122 esac
25123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124   (eval "$ac_link") 2>&5
25125   ac_status=$?
25126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25128   { (case "(($ac_try" in
25129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25130   *) ac_try_echo=$ac_try;;
25131 esac
25132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25133   (eval "$ac_try") 2>&5
25134   ac_status=$?
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); }; }; then
25137   ac_cv_sizeof_long_int=`cat conftest.val`
25138 else
25139   echo "$as_me: program exited with status $ac_status" >&5
25140 echo "$as_me: failed program was:" >&5
25141 sed 's/^/| /' conftest.$ac_ext >&5
25142
25143 ( exit $ac_status )
25144 if test "$ac_cv_type_long_int" = yes; then
25145      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25146 See \`config.log' for more details." >&5
25147 echo "$as_me: error: cannot compute sizeof (long int)
25148 See \`config.log' for more details." >&2;}
25149    { (exit 77); exit 77; }; }
25150    else
25151      ac_cv_sizeof_long_int=0
25152    fi
25153 fi
25154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25155 fi
25156 rm -f conftest.val
25157 fi
25158 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25159 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25160
25161
25162
25163 cat >>confdefs.h <<_ACEOF
25164 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25165 _ACEOF
25166
25167
25168 { echo "$as_me:$LINENO: checking for long long int" >&5
25169 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25170 if test "${ac_cv_type_long_long_int+set}" = set; then
25171   echo $ECHO_N "(cached) $ECHO_C" >&6
25172 else
25173   cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h.  */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h.  */
25179 $ac_includes_default
25180 typedef long long int ac__type_new_;
25181 int
25182 main ()
25183 {
25184 if ((ac__type_new_ *) 0)
25185   return 0;
25186 if (sizeof (ac__type_new_))
25187   return 0;
25188   ;
25189   return 0;
25190 }
25191 _ACEOF
25192 rm -f conftest.$ac_objext
25193 if { (ac_try="$ac_compile"
25194 case "(($ac_try" in
25195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196   *) ac_try_echo=$ac_try;;
25197 esac
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199   (eval "$ac_compile") 2>conftest.er1
25200   ac_status=$?
25201   grep -v '^ *+' conftest.er1 >conftest.err
25202   rm -f conftest.er1
25203   cat conftest.err >&5
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); } && {
25206          test -z "$ac_c_werror_flag" ||
25207          test ! -s conftest.err
25208        } && test -s conftest.$ac_objext; then
25209   ac_cv_type_long_long_int=yes
25210 else
25211   echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25213
25214         ac_cv_type_long_long_int=no
25215 fi
25216
25217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25218 fi
25219 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25220 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25221
25222 # The cast to long int works around a bug in the HP C Compiler
25223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25225 # This bug is HP SR number 8606223364.
25226 { echo "$as_me:$LINENO: checking size of long long int" >&5
25227 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25228 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25229   echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231   if test "$cross_compiling" = yes; then
25232   # Depending upon the size, compute the lo and hi bounds.
25233 cat >conftest.$ac_ext <<_ACEOF
25234 /* confdefs.h.  */
25235 _ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h.  */
25239 $ac_includes_default
25240    typedef long long int ac__type_sizeof_;
25241 int
25242 main ()
25243 {
25244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25245 test_array [0] = 0
25246
25247   ;
25248   return 0;
25249 }
25250 _ACEOF
25251 rm -f conftest.$ac_objext
25252 if { (ac_try="$ac_compile"
25253 case "(($ac_try" in
25254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255   *) ac_try_echo=$ac_try;;
25256 esac
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258   (eval "$ac_compile") 2>conftest.er1
25259   ac_status=$?
25260   grep -v '^ *+' conftest.er1 >conftest.err
25261   rm -f conftest.er1
25262   cat conftest.err >&5
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); } && {
25265          test -z "$ac_c_werror_flag" ||
25266          test ! -s conftest.err
25267        } && test -s conftest.$ac_objext; then
25268   ac_lo=0 ac_mid=0
25269   while :; do
25270     cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h.  */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h.  */
25276 $ac_includes_default
25277    typedef long long int ac__type_sizeof_;
25278 int
25279 main ()
25280 {
25281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25282 test_array [0] = 0
25283
25284   ;
25285   return 0;
25286 }
25287 _ACEOF
25288 rm -f conftest.$ac_objext
25289 if { (ac_try="$ac_compile"
25290 case "(($ac_try" in
25291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292   *) ac_try_echo=$ac_try;;
25293 esac
25294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25295   (eval "$ac_compile") 2>conftest.er1
25296   ac_status=$?
25297   grep -v '^ *+' conftest.er1 >conftest.err
25298   rm -f conftest.er1
25299   cat conftest.err >&5
25300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); } && {
25302          test -z "$ac_c_werror_flag" ||
25303          test ! -s conftest.err
25304        } && test -s conftest.$ac_objext; then
25305   ac_hi=$ac_mid; break
25306 else
25307   echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25309
25310         ac_lo=`expr $ac_mid + 1`
25311                         if test $ac_lo -le $ac_mid; then
25312                           ac_lo= ac_hi=
25313                           break
25314                         fi
25315                         ac_mid=`expr 2 '*' $ac_mid + 1`
25316 fi
25317
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319   done
25320 else
25321   echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25323
25324         cat >conftest.$ac_ext <<_ACEOF
25325 /* confdefs.h.  */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h.  */
25330 $ac_includes_default
25331    typedef long long int ac__type_sizeof_;
25332 int
25333 main ()
25334 {
25335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25336 test_array [0] = 0
25337
25338   ;
25339   return 0;
25340 }
25341 _ACEOF
25342 rm -f conftest.$ac_objext
25343 if { (ac_try="$ac_compile"
25344 case "(($ac_try" in
25345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346   *) ac_try_echo=$ac_try;;
25347 esac
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349   (eval "$ac_compile") 2>conftest.er1
25350   ac_status=$?
25351   grep -v '^ *+' conftest.er1 >conftest.err
25352   rm -f conftest.er1
25353   cat conftest.err >&5
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); } && {
25356          test -z "$ac_c_werror_flag" ||
25357          test ! -s conftest.err
25358        } && test -s conftest.$ac_objext; then
25359   ac_hi=-1 ac_mid=-1
25360   while :; do
25361     cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h.  */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h.  */
25367 $ac_includes_default
25368    typedef long long int ac__type_sizeof_;
25369 int
25370 main ()
25371 {
25372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25373 test_array [0] = 0
25374
25375   ;
25376   return 0;
25377 }
25378 _ACEOF
25379 rm -f conftest.$ac_objext
25380 if { (ac_try="$ac_compile"
25381 case "(($ac_try" in
25382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383   *) ac_try_echo=$ac_try;;
25384 esac
25385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25386   (eval "$ac_compile") 2>conftest.er1
25387   ac_status=$?
25388   grep -v '^ *+' conftest.er1 >conftest.err
25389   rm -f conftest.er1
25390   cat conftest.err >&5
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); } && {
25393          test -z "$ac_c_werror_flag" ||
25394          test ! -s conftest.err
25395        } && test -s conftest.$ac_objext; then
25396   ac_lo=$ac_mid; break
25397 else
25398   echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25400
25401         ac_hi=`expr '(' $ac_mid ')' - 1`
25402                         if test $ac_mid -le $ac_hi; then
25403                           ac_lo= ac_hi=
25404                           break
25405                         fi
25406                         ac_mid=`expr 2 '*' $ac_mid`
25407 fi
25408
25409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25410   done
25411 else
25412   echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25414
25415         ac_lo= ac_hi=
25416 fi
25417
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25419 fi
25420
25421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25422 # Binary search between lo and hi bounds.
25423 while test "x$ac_lo" != "x$ac_hi"; do
25424   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25425   cat >conftest.$ac_ext <<_ACEOF
25426 /* confdefs.h.  */
25427 _ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h.  */
25431 $ac_includes_default
25432    typedef long long int ac__type_sizeof_;
25433 int
25434 main ()
25435 {
25436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25437 test_array [0] = 0
25438
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450   (eval "$ac_compile") 2>conftest.er1
25451   ac_status=$?
25452   grep -v '^ *+' conftest.er1 >conftest.err
25453   rm -f conftest.er1
25454   cat conftest.err >&5
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && {
25457          test -z "$ac_c_werror_flag" ||
25458          test ! -s conftest.err
25459        } && test -s conftest.$ac_objext; then
25460   ac_hi=$ac_mid
25461 else
25462   echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465         ac_lo=`expr '(' $ac_mid ')' + 1`
25466 fi
25467
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 done
25470 case $ac_lo in
25471 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25472 '') if test "$ac_cv_type_long_long_int" = yes; then
25473      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25474 See \`config.log' for more details." >&5
25475 echo "$as_me: error: cannot compute sizeof (long long int)
25476 See \`config.log' for more details." >&2;}
25477    { (exit 77); exit 77; }; }
25478    else
25479      ac_cv_sizeof_long_long_int=0
25480    fi ;;
25481 esac
25482 else
25483   cat >conftest.$ac_ext <<_ACEOF
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489 $ac_includes_default
25490    typedef long long int ac__type_sizeof_;
25491 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25492 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25493 #include <stdio.h>
25494 #include <stdlib.h>
25495 int
25496 main ()
25497 {
25498
25499   FILE *f = fopen ("conftest.val", "w");
25500   if (! f)
25501     return 1;
25502   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25503     {
25504       long int i = longval ();
25505       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25506         return 1;
25507       fprintf (f, "%ld\n", i);
25508     }
25509   else
25510     {
25511       unsigned long int i = ulongval ();
25512       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25513         return 1;
25514       fprintf (f, "%lu\n", i);
25515     }
25516   return ferror (f) || fclose (f) != 0;
25517
25518   ;
25519   return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest$ac_exeext
25523 if { (ac_try="$ac_link"
25524 case "(($ac_try" in
25525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526   *) ac_try_echo=$ac_try;;
25527 esac
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529   (eval "$ac_link") 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533   { (case "(($ac_try" in
25534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535   *) ac_try_echo=$ac_try;;
25536 esac
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538   (eval "$ac_try") 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); }; }; then
25542   ac_cv_sizeof_long_long_int=`cat conftest.val`
25543 else
25544   echo "$as_me: program exited with status $ac_status" >&5
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25547
25548 ( exit $ac_status )
25549 if test "$ac_cv_type_long_long_int" = yes; then
25550      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25551 See \`config.log' for more details." >&5
25552 echo "$as_me: error: cannot compute sizeof (long long int)
25553 See \`config.log' for more details." >&2;}
25554    { (exit 77); exit 77; }; }
25555    else
25556      ac_cv_sizeof_long_long_int=0
25557    fi
25558 fi
25559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25560 fi
25561 rm -f conftest.val
25562 fi
25563 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25564 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25565
25566
25567
25568 cat >>confdefs.h <<_ACEOF
25569 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25570 _ACEOF
25571
25572
25573 { echo "$as_me:$LINENO: checking for int *" >&5
25574 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25575 if test "${ac_cv_type_int_p+set}" = set; then
25576   echo $ECHO_N "(cached) $ECHO_C" >&6
25577 else
25578   cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584 $ac_includes_default
25585 typedef int * ac__type_new_;
25586 int
25587 main ()
25588 {
25589 if ((ac__type_new_ *) 0)
25590   return 0;
25591 if (sizeof (ac__type_new_))
25592   return 0;
25593   ;
25594   return 0;
25595 }
25596 _ACEOF
25597 rm -f conftest.$ac_objext
25598 if { (ac_try="$ac_compile"
25599 case "(($ac_try" in
25600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601   *) ac_try_echo=$ac_try;;
25602 esac
25603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604   (eval "$ac_compile") 2>conftest.er1
25605   ac_status=$?
25606   grep -v '^ *+' conftest.er1 >conftest.err
25607   rm -f conftest.er1
25608   cat conftest.err >&5
25609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610   (exit $ac_status); } && {
25611          test -z "$ac_c_werror_flag" ||
25612          test ! -s conftest.err
25613        } && test -s conftest.$ac_objext; then
25614   ac_cv_type_int_p=yes
25615 else
25616   echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25618
25619         ac_cv_type_int_p=no
25620 fi
25621
25622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623 fi
25624 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25625 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25626
25627 # The cast to long int works around a bug in the HP C Compiler
25628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25630 # This bug is HP SR number 8606223364.
25631 { echo "$as_me:$LINENO: checking size of int *" >&5
25632 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25633 if test "${ac_cv_sizeof_int_p+set}" = set; then
25634   echo $ECHO_N "(cached) $ECHO_C" >&6
25635 else
25636   if test "$cross_compiling" = yes; then
25637   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
25645    typedef int * ac__type_sizeof_;
25646 int
25647 main ()
25648 {
25649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25650 test_array [0] = 0
25651
25652   ;
25653   return 0;
25654 }
25655 _ACEOF
25656 rm -f conftest.$ac_objext
25657 if { (ac_try="$ac_compile"
25658 case "(($ac_try" in
25659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660   *) ac_try_echo=$ac_try;;
25661 esac
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663   (eval "$ac_compile") 2>conftest.er1
25664   ac_status=$?
25665   grep -v '^ *+' conftest.er1 >conftest.err
25666   rm -f conftest.er1
25667   cat conftest.err >&5
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); } && {
25670          test -z "$ac_c_werror_flag" ||
25671          test ! -s conftest.err
25672        } && test -s conftest.$ac_objext; then
25673   ac_lo=0 ac_mid=0
25674   while :; do
25675     cat >conftest.$ac_ext <<_ACEOF
25676 /* confdefs.h.  */
25677 _ACEOF
25678 cat confdefs.h >>conftest.$ac_ext
25679 cat >>conftest.$ac_ext <<_ACEOF
25680 /* end confdefs.h.  */
25681 $ac_includes_default
25682    typedef int * ac__type_sizeof_;
25683 int
25684 main ()
25685 {
25686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25687 test_array [0] = 0
25688
25689   ;
25690   return 0;
25691 }
25692 _ACEOF
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697   *) ac_try_echo=$ac_try;;
25698 esac
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700   (eval "$ac_compile") 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } && {
25707          test -z "$ac_c_werror_flag" ||
25708          test ! -s conftest.err
25709        } && test -s conftest.$ac_objext; then
25710   ac_hi=$ac_mid; break
25711 else
25712   echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25714
25715         ac_lo=`expr $ac_mid + 1`
25716                         if test $ac_lo -le $ac_mid; then
25717                           ac_lo= ac_hi=
25718                           break
25719                         fi
25720                         ac_mid=`expr 2 '*' $ac_mid + 1`
25721 fi
25722
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724   done
25725 else
25726   echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729         cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 $ac_includes_default
25736    typedef int * ac__type_sizeof_;
25737 int
25738 main ()
25739 {
25740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25741 test_array [0] = 0
25742
25743   ;
25744   return 0;
25745 }
25746 _ACEOF
25747 rm -f conftest.$ac_objext
25748 if { (ac_try="$ac_compile"
25749 case "(($ac_try" in
25750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25751   *) ac_try_echo=$ac_try;;
25752 esac
25753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25754   (eval "$ac_compile") 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } && {
25761          test -z "$ac_c_werror_flag" ||
25762          test ! -s conftest.err
25763        } && test -s conftest.$ac_objext; then
25764   ac_hi=-1 ac_mid=-1
25765   while :; do
25766     cat >conftest.$ac_ext <<_ACEOF
25767 /* confdefs.h.  */
25768 _ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h.  */
25772 $ac_includes_default
25773    typedef int * ac__type_sizeof_;
25774 int
25775 main ()
25776 {
25777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25778 test_array [0] = 0
25779
25780   ;
25781   return 0;
25782 }
25783 _ACEOF
25784 rm -f conftest.$ac_objext
25785 if { (ac_try="$ac_compile"
25786 case "(($ac_try" in
25787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25788   *) ac_try_echo=$ac_try;;
25789 esac
25790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25791   (eval "$ac_compile") 2>conftest.er1
25792   ac_status=$?
25793   grep -v '^ *+' conftest.er1 >conftest.err
25794   rm -f conftest.er1
25795   cat conftest.err >&5
25796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797   (exit $ac_status); } && {
25798          test -z "$ac_c_werror_flag" ||
25799          test ! -s conftest.err
25800        } && test -s conftest.$ac_objext; then
25801   ac_lo=$ac_mid; break
25802 else
25803   echo "$as_me: failed program was:" >&5
25804 sed 's/^/| /' conftest.$ac_ext >&5
25805
25806         ac_hi=`expr '(' $ac_mid ')' - 1`
25807                         if test $ac_mid -le $ac_hi; then
25808                           ac_lo= ac_hi=
25809                           break
25810                         fi
25811                         ac_mid=`expr 2 '*' $ac_mid`
25812 fi
25813
25814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25815   done
25816 else
25817   echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820         ac_lo= ac_hi=
25821 fi
25822
25823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824 fi
25825
25826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25827 # Binary search between lo and hi bounds.
25828 while test "x$ac_lo" != "x$ac_hi"; do
25829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25830   cat >conftest.$ac_ext <<_ACEOF
25831 /* confdefs.h.  */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h.  */
25836 $ac_includes_default
25837    typedef int * ac__type_sizeof_;
25838 int
25839 main ()
25840 {
25841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25842 test_array [0] = 0
25843
25844   ;
25845   return 0;
25846 }
25847 _ACEOF
25848 rm -f conftest.$ac_objext
25849 if { (ac_try="$ac_compile"
25850 case "(($ac_try" in
25851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852   *) ac_try_echo=$ac_try;;
25853 esac
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855   (eval "$ac_compile") 2>conftest.er1
25856   ac_status=$?
25857   grep -v '^ *+' conftest.er1 >conftest.err
25858   rm -f conftest.er1
25859   cat conftest.err >&5
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); } && {
25862          test -z "$ac_c_werror_flag" ||
25863          test ! -s conftest.err
25864        } && test -s conftest.$ac_objext; then
25865   ac_hi=$ac_mid
25866 else
25867   echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25869
25870         ac_lo=`expr '(' $ac_mid ')' + 1`
25871 fi
25872
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25874 done
25875 case $ac_lo in
25876 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25877 '') if test "$ac_cv_type_int_p" = yes; then
25878      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25879 See \`config.log' for more details." >&5
25880 echo "$as_me: error: cannot compute sizeof (int *)
25881 See \`config.log' for more details." >&2;}
25882    { (exit 77); exit 77; }; }
25883    else
25884      ac_cv_sizeof_int_p=0
25885    fi ;;
25886 esac
25887 else
25888   cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h.  */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h.  */
25894 $ac_includes_default
25895    typedef int * ac__type_sizeof_;
25896 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25897 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25898 #include <stdio.h>
25899 #include <stdlib.h>
25900 int
25901 main ()
25902 {
25903
25904   FILE *f = fopen ("conftest.val", "w");
25905   if (! f)
25906     return 1;
25907   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25908     {
25909       long int i = longval ();
25910       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25911         return 1;
25912       fprintf (f, "%ld\n", i);
25913     }
25914   else
25915     {
25916       unsigned long int i = ulongval ();
25917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25918         return 1;
25919       fprintf (f, "%lu\n", i);
25920     }
25921   return ferror (f) || fclose (f) != 0;
25922
25923   ;
25924   return 0;
25925 }
25926 _ACEOF
25927 rm -f conftest$ac_exeext
25928 if { (ac_try="$ac_link"
25929 case "(($ac_try" in
25930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931   *) ac_try_echo=$ac_try;;
25932 esac
25933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934   (eval "$ac_link") 2>&5
25935   ac_status=$?
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25938   { (case "(($ac_try" in
25939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940   *) ac_try_echo=$ac_try;;
25941 esac
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943   (eval "$ac_try") 2>&5
25944   ac_status=$?
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); }; }; then
25947   ac_cv_sizeof_int_p=`cat conftest.val`
25948 else
25949   echo "$as_me: program exited with status $ac_status" >&5
25950 echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.$ac_ext >&5
25952
25953 ( exit $ac_status )
25954 if test "$ac_cv_type_int_p" = yes; then
25955      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25956 See \`config.log' for more details." >&5
25957 echo "$as_me: error: cannot compute sizeof (int *)
25958 See \`config.log' for more details." >&2;}
25959    { (exit 77); exit 77; }; }
25960    else
25961      ac_cv_sizeof_int_p=0
25962    fi
25963 fi
25964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25965 fi
25966 rm -f conftest.val
25967 fi
25968 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25969 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25970
25971
25972
25973 cat >>confdefs.h <<_ACEOF
25974 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25975 _ACEOF
25976
25977
25978
25979 # Check for sys/types.h types
25980 { echo "$as_me:$LINENO: checking for u_int type" >&5
25981 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25982 if test "${ac_cv_have_u_int+set}" = set; then
25983   echo $ECHO_N "(cached) $ECHO_C" >&6
25984 else
25985
25986     cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992  #include <sys/types.h>
25993 int
25994 main ()
25995 {
25996  u_int a; a = 1;
25997   ;
25998   return 0;
25999 }
26000 _ACEOF
26001 rm -f conftest.$ac_objext
26002 if { (ac_try="$ac_compile"
26003 case "(($ac_try" in
26004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26005   *) ac_try_echo=$ac_try;;
26006 esac
26007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26008   (eval "$ac_compile") 2>conftest.er1
26009   ac_status=$?
26010   grep -v '^ *+' conftest.er1 >conftest.err
26011   rm -f conftest.er1
26012   cat conftest.err >&5
26013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014   (exit $ac_status); } && {
26015          test -z "$ac_c_werror_flag" ||
26016          test ! -s conftest.err
26017        } && test -s conftest.$ac_objext; then
26018    ac_cv_have_u_int="yes"
26019 else
26020   echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023          ac_cv_have_u_int="no"
26024
26025 fi
26026
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028
26029 fi
26030 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26031 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26032 if test "x$ac_cv_have_u_int" = "xyes" ; then
26033    cat >>confdefs.h <<\_ACEOF
26034 #define HAVE_U_INT 1
26035 _ACEOF
26036
26037    have_u_int=1
26038 fi
26039
26040 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26041 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26042 if test "${ac_cv_have_intmax_t+set}" = set; then
26043   echo $ECHO_N "(cached) $ECHO_C" >&6
26044 else
26045
26046    cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052  #include <sys/types.h>
26053 int
26054 main ()
26055 {
26056  intmax_t a; a = 1;
26057   ;
26058   return 0;
26059 }
26060 _ACEOF
26061 rm -f conftest.$ac_objext
26062 if { (ac_try="$ac_compile"
26063 case "(($ac_try" in
26064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065   *) ac_try_echo=$ac_try;;
26066 esac
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068   (eval "$ac_compile") 2>conftest.er1
26069   ac_status=$?
26070   grep -v '^ *+' conftest.er1 >conftest.err
26071   rm -f conftest.er1
26072   cat conftest.err >&5
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); } && {
26075          test -z "$ac_c_werror_flag" ||
26076          test ! -s conftest.err
26077        } && test -s conftest.$ac_objext; then
26078    ac_cv_have_intmax_t="yes"
26079 else
26080   echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26082
26083
26084          cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h.  */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h.  */
26090  #include <stdint.h>
26091 int
26092 main ()
26093 {
26094  intmax_t a; a = 1;
26095   ;
26096   return 0;
26097 }
26098 _ACEOF
26099 rm -f conftest.$ac_objext
26100 if { (ac_try="$ac_compile"
26101 case "(($ac_try" in
26102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26103   *) ac_try_echo=$ac_try;;
26104 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26106   (eval "$ac_compile") 2>conftest.er1
26107   ac_status=$?
26108   grep -v '^ *+' conftest.er1 >conftest.err
26109   rm -f conftest.er1
26110   cat conftest.err >&5
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); } && {
26113          test -z "$ac_c_werror_flag" ||
26114          test ! -s conftest.err
26115        } && test -s conftest.$ac_objext; then
26116    ac_cv_have_intmax_t="yes"
26117 else
26118   echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26120
26121          ac_cv_have_intmax_t="no"
26122
26123 fi
26124
26125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26126
26127
26128 fi
26129
26130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26131
26132
26133 fi
26134 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26135 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26136 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26137    cat >>confdefs.h <<\_ACEOF
26138 #define HAVE_INTMAX_T 1
26139 _ACEOF
26140
26141    have_intmax_t=1
26142 fi
26143
26144
26145 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26146 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26147 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26148   echo $ECHO_N "(cached) $ECHO_C" >&6
26149 else
26150
26151    cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157  #include <sys/types.h>
26158 int
26159 main ()
26160 {
26161  u_intmax_t a; a = 1;
26162   ;
26163   return 0;
26164 }
26165 _ACEOF
26166 rm -f conftest.$ac_objext
26167 if { (ac_try="$ac_compile"
26168 case "(($ac_try" in
26169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170   *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173   (eval "$ac_compile") 2>conftest.er1
26174   ac_status=$?
26175   grep -v '^ *+' conftest.er1 >conftest.err
26176   rm -f conftest.er1
26177   cat conftest.err >&5
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } && {
26180          test -z "$ac_c_werror_flag" ||
26181          test ! -s conftest.err
26182        } && test -s conftest.$ac_objext; then
26183    ac_cv_have_u_intmax_t="yes"
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188
26189          cat >conftest.$ac_ext <<_ACEOF
26190 /* confdefs.h.  */
26191 _ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h.  */
26195  #include <stdint.h>
26196 int
26197 main ()
26198 {
26199  u_intmax_t a; a = 1;
26200   ;
26201   return 0;
26202 }
26203 _ACEOF
26204 rm -f conftest.$ac_objext
26205 if { (ac_try="$ac_compile"
26206 case "(($ac_try" in
26207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26208   *) ac_try_echo=$ac_try;;
26209 esac
26210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26211   (eval "$ac_compile") 2>conftest.er1
26212   ac_status=$?
26213   grep -v '^ *+' conftest.er1 >conftest.err
26214   rm -f conftest.er1
26215   cat conftest.err >&5
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); } && {
26218          test -z "$ac_c_werror_flag" ||
26219          test ! -s conftest.err
26220        } && test -s conftest.$ac_objext; then
26221    ac_cv_have_u_intmax_t="yes"
26222 else
26223   echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26225
26226          ac_cv_have_u_intmax_t="no"
26227
26228 fi
26229
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231
26232
26233 fi
26234
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236
26237 fi
26238 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26239 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26240 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26241    cat >>confdefs.h <<\_ACEOF
26242 #define HAVE_U_INTMAX_T 1
26243 _ACEOF
26244
26245    have_u_intmax_t=1
26246 fi
26247
26248
26249 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26250 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26251 if test "${ac_cv_have_intxx_t+set}" = set; then
26252   echo $ECHO_N "(cached) $ECHO_C" >&6
26253 else
26254
26255    cat >conftest.$ac_ext <<_ACEOF
26256 /* confdefs.h.  */
26257 _ACEOF
26258 cat confdefs.h >>conftest.$ac_ext
26259 cat >>conftest.$ac_ext <<_ACEOF
26260 /* end confdefs.h.  */
26261  #include <sys/types.h>
26262 int
26263 main ()
26264 {
26265  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26266   ;
26267   return 0;
26268 }
26269 _ACEOF
26270 rm -f conftest.$ac_objext
26271 if { (ac_try="$ac_compile"
26272 case "(($ac_try" in
26273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274   *) ac_try_echo=$ac_try;;
26275 esac
26276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26277   (eval "$ac_compile") 2>conftest.er1
26278   ac_status=$?
26279   grep -v '^ *+' conftest.er1 >conftest.err
26280   rm -f conftest.er1
26281   cat conftest.err >&5
26282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); } && {
26284          test -z "$ac_c_werror_flag" ||
26285          test ! -s conftest.err
26286        } && test -s conftest.$ac_objext; then
26287    ac_cv_have_intxx_t="yes"
26288 else
26289   echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26291
26292          ac_cv_have_intxx_t="no"
26293
26294 fi
26295
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297
26298 fi
26299 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26300 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26301 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26302    cat >>confdefs.h <<\_ACEOF
26303 #define HAVE_INTXX_T 1
26304 _ACEOF
26305
26306    have_intxx_t=1
26307 fi
26308
26309 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26310 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26311 if test "${ac_cv_have_int64_t+set}" = set; then
26312   echo $ECHO_N "(cached) $ECHO_C" >&6
26313 else
26314
26315    cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h.  */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h.  */
26321  #include <sys/types.h>
26322 int
26323 main ()
26324 {
26325  int64_t a; a = 1;
26326   ;
26327   return 0;
26328 }
26329 _ACEOF
26330 rm -f conftest.$ac_objext
26331 if { (ac_try="$ac_compile"
26332 case "(($ac_try" in
26333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334   *) ac_try_echo=$ac_try;;
26335 esac
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337   (eval "$ac_compile") 2>conftest.er1
26338   ac_status=$?
26339   grep -v '^ *+' conftest.er1 >conftest.err
26340   rm -f conftest.er1
26341   cat conftest.err >&5
26342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343   (exit $ac_status); } && {
26344          test -z "$ac_c_werror_flag" ||
26345          test ! -s conftest.err
26346        } && test -s conftest.$ac_objext; then
26347    ac_cv_have_int64_t="yes"
26348 else
26349   echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26351
26352          ac_cv_have_int64_t="no"
26353
26354 fi
26355
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357
26358 fi
26359 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26360 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26361 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26362    cat >>confdefs.h <<\_ACEOF
26363 #define HAVE_INT64_T 1
26364 _ACEOF
26365
26366    have_int64_t=1
26367 fi
26368
26369 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26370 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26371 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26372   echo $ECHO_N "(cached) $ECHO_C" >&6
26373 else
26374
26375    cat >conftest.$ac_ext <<_ACEOF
26376 /* confdefs.h.  */
26377 _ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h.  */
26381  #include <sys/types.h>
26382 int
26383 main ()
26384 {
26385  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26386   ;
26387   return 0;
26388 }
26389 _ACEOF
26390 rm -f conftest.$ac_objext
26391 if { (ac_try="$ac_compile"
26392 case "(($ac_try" in
26393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394   *) ac_try_echo=$ac_try;;
26395 esac
26396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397   (eval "$ac_compile") 2>conftest.er1
26398   ac_status=$?
26399   grep -v '^ *+' conftest.er1 >conftest.err
26400   rm -f conftest.er1
26401   cat conftest.err >&5
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); } && {
26404          test -z "$ac_c_werror_flag" ||
26405          test ! -s conftest.err
26406        } && test -s conftest.$ac_objext; then
26407    ac_cv_have_u_intxx_t="yes"
26408 else
26409   echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26411
26412          ac_cv_have_u_intxx_t="no"
26413
26414 fi
26415
26416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26417
26418 fi
26419 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26420 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26421 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26422    cat >>confdefs.h <<\_ACEOF
26423 #define HAVE_U_INTXX_T 1
26424 _ACEOF
26425
26426    have_u_intxx_t=1
26427 fi
26428
26429 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26430 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26431 if test "${ac_cv_have_u_int64_t+set}" = set; then
26432   echo $ECHO_N "(cached) $ECHO_C" >&6
26433 else
26434
26435    cat >conftest.$ac_ext <<_ACEOF
26436 /* confdefs.h.  */
26437 _ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h.  */
26441  #include <sys/types.h>
26442 int
26443 main ()
26444 {
26445  u_int64_t a; a = 1;
26446   ;
26447   return 0;
26448 }
26449 _ACEOF
26450 rm -f conftest.$ac_objext
26451 if { (ac_try="$ac_compile"
26452 case "(($ac_try" in
26453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454   *) ac_try_echo=$ac_try;;
26455 esac
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457   (eval "$ac_compile") 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && {
26464          test -z "$ac_c_werror_flag" ||
26465          test ! -s conftest.err
26466        } && test -s conftest.$ac_objext; then
26467    ac_cv_have_u_int64_t="yes"
26468 else
26469   echo "$as_me: failed program was:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26471
26472          ac_cv_have_u_int64_t="no"
26473
26474 fi
26475
26476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26477
26478 fi
26479 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26480 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26481 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26482    cat >>confdefs.h <<\_ACEOF
26483 #define HAVE_U_INT64_T 1
26484 _ACEOF
26485
26486    have_u_int64_t=1
26487 fi
26488
26489 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26490            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26491 then
26492    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26493 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26494    cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h.  */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h.  */
26500  #include <sys/bitypes.h>
26501 int
26502 main ()
26503 {
26504  int8_t a; int16_t b; int32_t c;
26505         u_int8_t e; u_int16_t f; u_int32_t g;
26506         a = b = c = e = f = g = 1;
26507   ;
26508   return 0;
26509 }
26510 _ACEOF
26511 rm -f conftest.$ac_objext
26512 if { (ac_try="$ac_compile"
26513 case "(($ac_try" in
26514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515   *) ac_try_echo=$ac_try;;
26516 esac
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518   (eval "$ac_compile") 2>conftest.er1
26519   ac_status=$?
26520   grep -v '^ *+' conftest.er1 >conftest.err
26521   rm -f conftest.er1
26522   cat conftest.err >&5
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); } && {
26525          test -z "$ac_c_werror_flag" ||
26526          test ! -s conftest.err
26527        } && test -s conftest.$ac_objext; then
26528    cat >>confdefs.h <<\_ACEOF
26529 #define HAVE_U_INTXX_T 1
26530 _ACEOF
26531
26532         cat >>confdefs.h <<\_ACEOF
26533 #define HAVE_INTXX_T 1
26534 _ACEOF
26535
26536         cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_SYS_BITYPES_H 1
26538 _ACEOF
26539
26540         { echo "$as_me:$LINENO: result: yes" >&5
26541 echo "${ECHO_T}yes" >&6; }
26542 else
26543   echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26545
26546          { echo "$as_me:$LINENO: result: no" >&5
26547 echo "${ECHO_T}no" >&6; }
26548
26549 fi
26550
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552 fi
26553
26554 if test -z "$have_u_intxx_t" ; then
26555    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26556 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26557 if test "${ac_cv_have_uintxx_t+set}" = set; then
26558   echo $ECHO_N "(cached) $ECHO_C" >&6
26559 else
26560
26561       cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567  #include <sys/types.h>
26568 int
26569 main ()
26570 {
26571  uint8_t a; uint16_t b;
26572            uint32_t c; a = b = c = 1;
26573   ;
26574   return 0;
26575 }
26576 _ACEOF
26577 rm -f conftest.$ac_objext
26578 if { (ac_try="$ac_compile"
26579 case "(($ac_try" in
26580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581   *) ac_try_echo=$ac_try;;
26582 esac
26583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26584   (eval "$ac_compile") 2>conftest.er1
26585   ac_status=$?
26586   grep -v '^ *+' conftest.er1 >conftest.err
26587   rm -f conftest.er1
26588   cat conftest.err >&5
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); } && {
26591          test -z "$ac_c_werror_flag" ||
26592          test ! -s conftest.err
26593        } && test -s conftest.$ac_objext; then
26594    ac_cv_have_uintxx_t="yes"
26595 else
26596   echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26598
26599          ac_cv_have_uintxx_t="no"
26600
26601 fi
26602
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604
26605 fi
26606 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26607 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26608    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26609       cat >>confdefs.h <<\_ACEOF
26610 #define HAVE_UINTXX_T 1
26611 _ACEOF
26612
26613    fi
26614 fi
26615
26616 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26617           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26618 then
26619    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26620 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26621    cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h.  */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h.  */
26627  #include <sys/bitypes.h>
26628 int
26629 main ()
26630 {
26631  int64_t a; u_int64_t b;
26632        a = b = 1;
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 rm -f conftest.$ac_objext
26638 if { (ac_try="$ac_compile"
26639 case "(($ac_try" in
26640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641   *) ac_try_echo=$ac_try;;
26642 esac
26643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644   (eval "$ac_compile") 2>conftest.er1
26645   ac_status=$?
26646   grep -v '^ *+' conftest.er1 >conftest.err
26647   rm -f conftest.er1
26648   cat conftest.err >&5
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); } && {
26651          test -z "$ac_c_werror_flag" ||
26652          test ! -s conftest.err
26653        } && test -s conftest.$ac_objext; then
26654    cat >>confdefs.h <<\_ACEOF
26655 #define HAVE_U_INT64_T 1
26656 _ACEOF
26657
26658        cat >>confdefs.h <<\_ACEOF
26659 #define HAVE_INT64_T 1
26660 _ACEOF
26661
26662        { echo "$as_me:$LINENO: result: yes" >&5
26663 echo "${ECHO_T}yes" >&6; }
26664 else
26665   echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668          { echo "$as_me:$LINENO: result: no" >&5
26669 echo "${ECHO_T}no" >&6; }
26670
26671 fi
26672
26673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26674 fi
26675
26676 if (test -z "$have_uintxx_t" && \
26677           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26678 then
26679    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26680 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26681    cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h.  */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h.  */
26687  #include <sys/bitypes.h>
26688 int
26689 main ()
26690 {
26691  uint8_t a; uint16_t b;
26692           uint32_t c; a = b = c = 1;
26693   ;
26694   return 0;
26695 }
26696 _ACEOF
26697 rm -f conftest.$ac_objext
26698 if { (ac_try="$ac_compile"
26699 case "(($ac_try" in
26700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26701   *) ac_try_echo=$ac_try;;
26702 esac
26703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26704   (eval "$ac_compile") 2>conftest.er1
26705   ac_status=$?
26706   grep -v '^ *+' conftest.er1 >conftest.err
26707   rm -f conftest.er1
26708   cat conftest.err >&5
26709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710   (exit $ac_status); } && {
26711          test -z "$ac_c_werror_flag" ||
26712          test ! -s conftest.err
26713        } && test -s conftest.$ac_objext; then
26714    cat >>confdefs.h <<\_ACEOF
26715 #define HAVE_UINTXX_T 1
26716 _ACEOF
26717
26718        { echo "$as_me:$LINENO: result: yes" >&5
26719 echo "${ECHO_T}yes" >&6; }
26720 else
26721   echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724          { echo "$as_me:$LINENO: result: no" >&5
26725 echo "${ECHO_T}no" >&6; }
26726
26727 fi
26728
26729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26730
26731 fi
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749 for ac_func in \
26750         fork \
26751         getcwd \
26752         gethostname \
26753         getpid \
26754         gettimeofday \
26755         setpgid \
26756         setpgrp \
26757         setsid \
26758         signal \
26759         strerror \
26760         strncmp \
26761         strncpy \
26762         vfprintf \
26763
26764 do
26765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26769   echo $ECHO_N "(cached) $ECHO_C" >&6
26770 else
26771   cat >conftest.$ac_ext <<_ACEOF
26772 /* confdefs.h.  */
26773 _ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h.  */
26777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26779 #define $ac_func innocuous_$ac_func
26780
26781 /* System header to define __stub macros and hopefully few prototypes,
26782     which can conflict with char $ac_func (); below.
26783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26784     <limits.h> exists even on freestanding compilers.  */
26785
26786 #ifdef __STDC__
26787 # include <limits.h>
26788 #else
26789 # include <assert.h>
26790 #endif
26791
26792 #undef $ac_func
26793
26794 /* Override any GCC internal prototype to avoid an error.
26795    Use char because int might match the return type of a GCC
26796    builtin and then its argument prototype would still apply.  */
26797 #ifdef __cplusplus
26798 extern "C"
26799 #endif
26800 char $ac_func ();
26801 /* The GNU C library defines this for functions which it implements
26802     to always fail with ENOSYS.  Some functions are actually named
26803     something starting with __ and the normal name is an alias.  */
26804 #if defined __stub_$ac_func || defined __stub___$ac_func
26805 choke me
26806 #endif
26807
26808 int
26809 main ()
26810 {
26811 return $ac_func ();
26812   ;
26813   return 0;
26814 }
26815 _ACEOF
26816 rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (ac_try="$ac_link"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_link") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } && {
26830          test -z "$ac_c_werror_flag" ||
26831          test ! -s conftest.err
26832        } && test -s conftest$ac_exeext &&
26833        $as_test_x conftest$ac_exeext; then
26834   eval "$as_ac_var=yes"
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839         eval "$as_ac_var=no"
26840 fi
26841
26842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26843       conftest$ac_exeext conftest.$ac_ext
26844 fi
26845 ac_res=`eval echo '${'$as_ac_var'}'`
26846                { echo "$as_me:$LINENO: result: $ac_res" >&5
26847 echo "${ECHO_T}$ac_res" >&6; }
26848 if test `eval echo '${'$as_ac_var'}'` = yes; then
26849   cat >>confdefs.h <<_ACEOF
26850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26851 _ACEOF
26852
26853 else
26854   echo 'configure: cannot find needed function.'; exit 1
26855
26856 fi
26857 done
26858
26859
26860
26861 for ac_func in fchdir
26862 do
26863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26867   echo $ECHO_N "(cached) $ECHO_C" >&6
26868 else
26869   cat >conftest.$ac_ext <<_ACEOF
26870 /* confdefs.h.  */
26871 _ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h.  */
26875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26877 #define $ac_func innocuous_$ac_func
26878
26879 /* System header to define __stub macros and hopefully few prototypes,
26880     which can conflict with char $ac_func (); below.
26881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26882     <limits.h> exists even on freestanding compilers.  */
26883
26884 #ifdef __STDC__
26885 # include <limits.h>
26886 #else
26887 # include <assert.h>
26888 #endif
26889
26890 #undef $ac_func
26891
26892 /* Override any GCC internal prototype to avoid an error.
26893    Use char because int might match the return type of a GCC
26894    builtin and then its argument prototype would still apply.  */
26895 #ifdef __cplusplus
26896 extern "C"
26897 #endif
26898 char $ac_func ();
26899 /* The GNU C library defines this for functions which it implements
26900     to always fail with ENOSYS.  Some functions are actually named
26901     something starting with __ and the normal name is an alias.  */
26902 #if defined __stub_$ac_func || defined __stub___$ac_func
26903 choke me
26904 #endif
26905
26906 int
26907 main ()
26908 {
26909 return $ac_func ();
26910   ;
26911   return 0;
26912 }
26913 _ACEOF
26914 rm -f conftest.$ac_objext conftest$ac_exeext
26915 if { (ac_try="$ac_link"
26916 case "(($ac_try" in
26917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918   *) ac_try_echo=$ac_try;;
26919 esac
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921   (eval "$ac_link") 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } && {
26928          test -z "$ac_c_werror_flag" ||
26929          test ! -s conftest.err
26930        } && test -s conftest$ac_exeext &&
26931        $as_test_x conftest$ac_exeext; then
26932   eval "$as_ac_var=yes"
26933 else
26934   echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26936
26937         eval "$as_ac_var=no"
26938 fi
26939
26940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26941       conftest$ac_exeext conftest.$ac_ext
26942 fi
26943 ac_res=`eval echo '${'$as_ac_var'}'`
26944                { echo "$as_me:$LINENO: result: $ac_res" >&5
26945 echo "${ECHO_T}$ac_res" >&6; }
26946 if test `eval echo '${'$as_ac_var'}'` = yes; then
26947   cat >>confdefs.h <<_ACEOF
26948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26949 _ACEOF
26950  cat >>confdefs.h <<\_ACEOF
26951 #define HAVE_FCHDIR 1
26952 _ACEOF
26953
26954 fi
26955 done
26956
26957
26958 for ac_func in strtoll
26959 do
26960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26964   echo $ECHO_N "(cached) $ECHO_C" >&6
26965 else
26966   cat >conftest.$ac_ext <<_ACEOF
26967 /* confdefs.h.  */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h.  */
26972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26974 #define $ac_func innocuous_$ac_func
26975
26976 /* System header to define __stub macros and hopefully few prototypes,
26977     which can conflict with char $ac_func (); below.
26978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26979     <limits.h> exists even on freestanding compilers.  */
26980
26981 #ifdef __STDC__
26982 # include <limits.h>
26983 #else
26984 # include <assert.h>
26985 #endif
26986
26987 #undef $ac_func
26988
26989 /* Override any GCC internal prototype to avoid an error.
26990    Use char because int might match the return type of a GCC
26991    builtin and then its argument prototype would still apply.  */
26992 #ifdef __cplusplus
26993 extern "C"
26994 #endif
26995 char $ac_func ();
26996 /* The GNU C library defines this for functions which it implements
26997     to always fail with ENOSYS.  Some functions are actually named
26998     something starting with __ and the normal name is an alias.  */
26999 #if defined __stub_$ac_func || defined __stub___$ac_func
27000 choke me
27001 #endif
27002
27003 int
27004 main ()
27005 {
27006 return $ac_func ();
27007   ;
27008   return 0;
27009 }
27010 _ACEOF
27011 rm -f conftest.$ac_objext conftest$ac_exeext
27012 if { (ac_try="$ac_link"
27013 case "(($ac_try" in
27014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27015   *) ac_try_echo=$ac_try;;
27016 esac
27017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27018   (eval "$ac_link") 2>conftest.er1
27019   ac_status=$?
27020   grep -v '^ *+' conftest.er1 >conftest.err
27021   rm -f conftest.er1
27022   cat conftest.err >&5
27023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); } && {
27025          test -z "$ac_c_werror_flag" ||
27026          test ! -s conftest.err
27027        } && test -s conftest$ac_exeext &&
27028        $as_test_x conftest$ac_exeext; then
27029   eval "$as_ac_var=yes"
27030 else
27031   echo "$as_me: failed program was:" >&5
27032 sed 's/^/| /' conftest.$ac_ext >&5
27033
27034         eval "$as_ac_var=no"
27035 fi
27036
27037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27038       conftest$ac_exeext conftest.$ac_ext
27039 fi
27040 ac_res=`eval echo '${'$as_ac_var'}'`
27041                { echo "$as_me:$LINENO: result: $ac_res" >&5
27042 echo "${ECHO_T}$ac_res" >&6; }
27043 if test `eval echo '${'$as_ac_var'}'` = yes; then
27044   cat >>confdefs.h <<_ACEOF
27045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27046 _ACEOF
27047  cat >>confdefs.h <<\_ACEOF
27048 #define HAVE_STRTOLL 1
27049 _ACEOF
27050
27051 fi
27052 done
27053
27054
27055 for ac_func in posix_fadvise
27056 do
27057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27061   echo $ECHO_N "(cached) $ECHO_C" >&6
27062 else
27063   cat >conftest.$ac_ext <<_ACEOF
27064 /* confdefs.h.  */
27065 _ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h.  */
27069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27071 #define $ac_func innocuous_$ac_func
27072
27073 /* System header to define __stub macros and hopefully few prototypes,
27074     which can conflict with char $ac_func (); below.
27075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27076     <limits.h> exists even on freestanding compilers.  */
27077
27078 #ifdef __STDC__
27079 # include <limits.h>
27080 #else
27081 # include <assert.h>
27082 #endif
27083
27084 #undef $ac_func
27085
27086 /* Override any GCC internal prototype to avoid an error.
27087    Use char because int might match the return type of a GCC
27088    builtin and then its argument prototype would still apply.  */
27089 #ifdef __cplusplus
27090 extern "C"
27091 #endif
27092 char $ac_func ();
27093 /* The GNU C library defines this for functions which it implements
27094     to always fail with ENOSYS.  Some functions are actually named
27095     something starting with __ and the normal name is an alias.  */
27096 #if defined __stub_$ac_func || defined __stub___$ac_func
27097 choke me
27098 #endif
27099
27100 int
27101 main ()
27102 {
27103 return $ac_func ();
27104   ;
27105   return 0;
27106 }
27107 _ACEOF
27108 rm -f conftest.$ac_objext conftest$ac_exeext
27109 if { (ac_try="$ac_link"
27110 case "(($ac_try" in
27111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112   *) ac_try_echo=$ac_try;;
27113 esac
27114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115   (eval "$ac_link") 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } && {
27122          test -z "$ac_c_werror_flag" ||
27123          test ! -s conftest.err
27124        } && test -s conftest$ac_exeext &&
27125        $as_test_x conftest$ac_exeext; then
27126   eval "$as_ac_var=yes"
27127 else
27128   echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27130
27131         eval "$as_ac_var=no"
27132 fi
27133
27134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27135       conftest$ac_exeext conftest.$ac_ext
27136 fi
27137 ac_res=`eval echo '${'$as_ac_var'}'`
27138                { echo "$as_me:$LINENO: result: $ac_res" >&5
27139 echo "${ECHO_T}$ac_res" >&6; }
27140 if test `eval echo '${'$as_ac_var'}'` = yes; then
27141   cat >>confdefs.h <<_ACEOF
27142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27143 _ACEOF
27144
27145 fi
27146 done
27147
27148
27149 for ac_func in fdatasync
27150 do
27151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27155   echo $ECHO_N "(cached) $ECHO_C" >&6
27156 else
27157   cat >conftest.$ac_ext <<_ACEOF
27158 /* confdefs.h.  */
27159 _ACEOF
27160 cat confdefs.h >>conftest.$ac_ext
27161 cat >>conftest.$ac_ext <<_ACEOF
27162 /* end confdefs.h.  */
27163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27165 #define $ac_func innocuous_$ac_func
27166
27167 /* System header to define __stub macros and hopefully few prototypes,
27168     which can conflict with char $ac_func (); below.
27169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27170     <limits.h> exists even on freestanding compilers.  */
27171
27172 #ifdef __STDC__
27173 # include <limits.h>
27174 #else
27175 # include <assert.h>
27176 #endif
27177
27178 #undef $ac_func
27179
27180 /* Override any GCC internal prototype to avoid an error.
27181    Use char because int might match the return type of a GCC
27182    builtin and then its argument prototype would still apply.  */
27183 #ifdef __cplusplus
27184 extern "C"
27185 #endif
27186 char $ac_func ();
27187 /* The GNU C library defines this for functions which it implements
27188     to always fail with ENOSYS.  Some functions are actually named
27189     something starting with __ and the normal name is an alias.  */
27190 #if defined __stub_$ac_func || defined __stub___$ac_func
27191 choke me
27192 #endif
27193
27194 int
27195 main ()
27196 {
27197 return $ac_func ();
27198   ;
27199   return 0;
27200 }
27201 _ACEOF
27202 rm -f conftest.$ac_objext conftest$ac_exeext
27203 if { (ac_try="$ac_link"
27204 case "(($ac_try" in
27205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206   *) ac_try_echo=$ac_try;;
27207 esac
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209   (eval "$ac_link") 2>conftest.er1
27210   ac_status=$?
27211   grep -v '^ *+' conftest.er1 >conftest.err
27212   rm -f conftest.er1
27213   cat conftest.err >&5
27214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215   (exit $ac_status); } && {
27216          test -z "$ac_c_werror_flag" ||
27217          test ! -s conftest.err
27218        } && test -s conftest$ac_exeext &&
27219        $as_test_x conftest$ac_exeext; then
27220   eval "$as_ac_var=yes"
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225         eval "$as_ac_var=no"
27226 fi
27227
27228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27229       conftest$ac_exeext conftest.$ac_ext
27230 fi
27231 ac_res=`eval echo '${'$as_ac_var'}'`
27232                { echo "$as_me:$LINENO: result: $ac_res" >&5
27233 echo "${ECHO_T}$ac_res" >&6; }
27234 if test `eval echo '${'$as_ac_var'}'` = yes; then
27235   cat >>confdefs.h <<_ACEOF
27236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27237 _ACEOF
27238
27239 fi
27240 done
27241
27242
27243
27244 for ac_func in chflags
27245 do
27246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27250   echo $ECHO_N "(cached) $ECHO_C" >&6
27251 else
27252   cat >conftest.$ac_ext <<_ACEOF
27253 /* confdefs.h.  */
27254 _ACEOF
27255 cat confdefs.h >>conftest.$ac_ext
27256 cat >>conftest.$ac_ext <<_ACEOF
27257 /* end confdefs.h.  */
27258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27260 #define $ac_func innocuous_$ac_func
27261
27262 /* System header to define __stub macros and hopefully few prototypes,
27263     which can conflict with char $ac_func (); below.
27264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27265     <limits.h> exists even on freestanding compilers.  */
27266
27267 #ifdef __STDC__
27268 # include <limits.h>
27269 #else
27270 # include <assert.h>
27271 #endif
27272
27273 #undef $ac_func
27274
27275 /* Override any GCC internal prototype to avoid an error.
27276    Use char because int might match the return type of a GCC
27277    builtin and then its argument prototype would still apply.  */
27278 #ifdef __cplusplus
27279 extern "C"
27280 #endif
27281 char $ac_func ();
27282 /* The GNU C library defines this for functions which it implements
27283     to always fail with ENOSYS.  Some functions are actually named
27284     something starting with __ and the normal name is an alias.  */
27285 #if defined __stub_$ac_func || defined __stub___$ac_func
27286 choke me
27287 #endif
27288
27289 int
27290 main ()
27291 {
27292 return $ac_func ();
27293   ;
27294   return 0;
27295 }
27296 _ACEOF
27297 rm -f conftest.$ac_objext conftest$ac_exeext
27298 if { (ac_try="$ac_link"
27299 case "(($ac_try" in
27300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301   *) ac_try_echo=$ac_try;;
27302 esac
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304   (eval "$ac_link") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } && {
27311          test -z "$ac_c_werror_flag" ||
27312          test ! -s conftest.err
27313        } && test -s conftest$ac_exeext &&
27314        $as_test_x conftest$ac_exeext; then
27315   eval "$as_ac_var=yes"
27316 else
27317   echo "$as_me: failed program was:" >&5
27318 sed 's/^/| /' conftest.$ac_ext >&5
27319
27320         eval "$as_ac_var=no"
27321 fi
27322
27323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27324       conftest$ac_exeext conftest.$ac_ext
27325 fi
27326 ac_res=`eval echo '${'$as_ac_var'}'`
27327                { echo "$as_me:$LINENO: result: $ac_res" >&5
27328 echo "${ECHO_T}$ac_res" >&6; }
27329 if test `eval echo '${'$as_ac_var'}'` = yes; then
27330   cat >>confdefs.h <<_ACEOF
27331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27332 _ACEOF
27333
27334 fi
27335 done
27336
27337
27338
27339
27340
27341
27342 for ac_func in snprintf vsnprintf gethostid fseeko
27343 do
27344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27348   echo $ECHO_N "(cached) $ECHO_C" >&6
27349 else
27350   cat >conftest.$ac_ext <<_ACEOF
27351 /* confdefs.h.  */
27352 _ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h.  */
27356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27358 #define $ac_func innocuous_$ac_func
27359
27360 /* System header to define __stub macros and hopefully few prototypes,
27361     which can conflict with char $ac_func (); below.
27362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27363     <limits.h> exists even on freestanding compilers.  */
27364
27365 #ifdef __STDC__
27366 # include <limits.h>
27367 #else
27368 # include <assert.h>
27369 #endif
27370
27371 #undef $ac_func
27372
27373 /* Override any GCC internal prototype to avoid an error.
27374    Use char because int might match the return type of a GCC
27375    builtin and then its argument prototype would still apply.  */
27376 #ifdef __cplusplus
27377 extern "C"
27378 #endif
27379 char $ac_func ();
27380 /* The GNU C library defines this for functions which it implements
27381     to always fail with ENOSYS.  Some functions are actually named
27382     something starting with __ and the normal name is an alias.  */
27383 #if defined __stub_$ac_func || defined __stub___$ac_func
27384 choke me
27385 #endif
27386
27387 int
27388 main ()
27389 {
27390 return $ac_func ();
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 rm -f conftest.$ac_objext conftest$ac_exeext
27396 if { (ac_try="$ac_link"
27397 case "(($ac_try" in
27398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399   *) ac_try_echo=$ac_try;;
27400 esac
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402   (eval "$ac_link") 2>conftest.er1
27403   ac_status=$?
27404   grep -v '^ *+' conftest.er1 >conftest.err
27405   rm -f conftest.er1
27406   cat conftest.err >&5
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); } && {
27409          test -z "$ac_c_werror_flag" ||
27410          test ! -s conftest.err
27411        } && test -s conftest$ac_exeext &&
27412        $as_test_x conftest$ac_exeext; then
27413   eval "$as_ac_var=yes"
27414 else
27415   echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27417
27418         eval "$as_ac_var=no"
27419 fi
27420
27421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27422       conftest$ac_exeext conftest.$ac_ext
27423 fi
27424 ac_res=`eval echo '${'$as_ac_var'}'`
27425                { echo "$as_me:$LINENO: result: $ac_res" >&5
27426 echo "${ECHO_T}$ac_res" >&6; }
27427 if test `eval echo '${'$as_ac_var'}'` = yes; then
27428   cat >>confdefs.h <<_ACEOF
27429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27430 _ACEOF
27431
27432 fi
27433 done
27434
27435
27436 { echo "$as_me:$LINENO: checking for va_copy" >&5
27437 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27438 if test "${ba_cv_va_copy+set}" = set; then
27439   echo $ECHO_N "(cached) $ECHO_C" >&6
27440 else
27441   cat >conftest.$ac_ext <<_ACEOF
27442 /* confdefs.h.  */
27443 _ACEOF
27444 cat confdefs.h >>conftest.$ac_ext
27445 cat >>conftest.$ac_ext <<_ACEOF
27446 /* end confdefs.h.  */
27447
27448 #include <stdarg.h>
27449 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27450 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27451
27452 int
27453 main ()
27454 {
27455 call_use_va_copy(1,2,3)
27456   ;
27457   return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (ac_try="$ac_link"
27462 case "(($ac_try" in
27463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464   *) ac_try_echo=$ac_try;;
27465 esac
27466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467   (eval "$ac_link") 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } && {
27474          test -z "$ac_c_werror_flag" ||
27475          test ! -s conftest.err
27476        } && test -s conftest$ac_exeext &&
27477        $as_test_x conftest$ac_exeext; then
27478   ba_cv_va_copy=yes
27479 else
27480   echo "$as_me: failed program was:" >&5
27481 sed 's/^/| /' conftest.$ac_ext >&5
27482
27483         ba_cv_va_copy=no
27484 fi
27485
27486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27487       conftest$ac_exeext conftest.$ac_ext
27488 fi
27489 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27490 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27491 test $ba_cv_va_copy = yes &&
27492 cat >>confdefs.h <<\_ACEOF
27493 #define HAVE_VA_COPY 1
27494 _ACEOF
27495
27496
27497
27498
27499
27500
27501
27502 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27503 do
27504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27508   echo $ECHO_N "(cached) $ECHO_C" >&6
27509 else
27510   cat >conftest.$ac_ext <<_ACEOF
27511 /* confdefs.h.  */
27512 _ACEOF
27513 cat confdefs.h >>conftest.$ac_ext
27514 cat >>conftest.$ac_ext <<_ACEOF
27515 /* end confdefs.h.  */
27516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27518 #define $ac_func innocuous_$ac_func
27519
27520 /* System header to define __stub macros and hopefully few prototypes,
27521     which can conflict with char $ac_func (); below.
27522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27523     <limits.h> exists even on freestanding compilers.  */
27524
27525 #ifdef __STDC__
27526 # include <limits.h>
27527 #else
27528 # include <assert.h>
27529 #endif
27530
27531 #undef $ac_func
27532
27533 /* Override any GCC internal prototype to avoid an error.
27534    Use char because int might match the return type of a GCC
27535    builtin and then its argument prototype would still apply.  */
27536 #ifdef __cplusplus
27537 extern "C"
27538 #endif
27539 char $ac_func ();
27540 /* The GNU C library defines this for functions which it implements
27541     to always fail with ENOSYS.  Some functions are actually named
27542     something starting with __ and the normal name is an alias.  */
27543 #if defined __stub_$ac_func || defined __stub___$ac_func
27544 choke me
27545 #endif
27546
27547 int
27548 main ()
27549 {
27550 return $ac_func ();
27551   ;
27552   return 0;
27553 }
27554 _ACEOF
27555 rm -f conftest.$ac_objext conftest$ac_exeext
27556 if { (ac_try="$ac_link"
27557 case "(($ac_try" in
27558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559   *) ac_try_echo=$ac_try;;
27560 esac
27561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562   (eval "$ac_link") 2>conftest.er1
27563   ac_status=$?
27564   grep -v '^ *+' conftest.er1 >conftest.err
27565   rm -f conftest.er1
27566   cat conftest.err >&5
27567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568   (exit $ac_status); } && {
27569          test -z "$ac_c_werror_flag" ||
27570          test ! -s conftest.err
27571        } && test -s conftest$ac_exeext &&
27572        $as_test_x conftest$ac_exeext; then
27573   eval "$as_ac_var=yes"
27574 else
27575   echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578         eval "$as_ac_var=no"
27579 fi
27580
27581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27582       conftest$ac_exeext conftest.$ac_ext
27583 fi
27584 ac_res=`eval echo '${'$as_ac_var'}'`
27585                { echo "$as_me:$LINENO: result: $ac_res" >&5
27586 echo "${ECHO_T}$ac_res" >&6; }
27587 if test `eval echo '${'$as_ac_var'}'` = yes; then
27588   cat >>confdefs.h <<_ACEOF
27589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27590 _ACEOF
27591
27592 fi
27593 done
27594
27595
27596 # If resolver functions are not in libc check for -lnsl or -lresolv.
27597 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27598 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27599 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27600   echo $ECHO_N "(cached) $ECHO_C" >&6
27601 else
27602   cat >conftest.$ac_ext <<_ACEOF
27603 /* confdefs.h.  */
27604 _ACEOF
27605 cat confdefs.h >>conftest.$ac_ext
27606 cat >>conftest.$ac_ext <<_ACEOF
27607 /* end confdefs.h.  */
27608 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27610 #define gethostbyname_r innocuous_gethostbyname_r
27611
27612 /* System header to define __stub macros and hopefully few prototypes,
27613     which can conflict with char gethostbyname_r (); below.
27614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27615     <limits.h> exists even on freestanding compilers.  */
27616
27617 #ifdef __STDC__
27618 # include <limits.h>
27619 #else
27620 # include <assert.h>
27621 #endif
27622
27623 #undef gethostbyname_r
27624
27625 /* Override any GCC internal prototype to avoid an error.
27626    Use char because int might match the return type of a GCC
27627    builtin and then its argument prototype would still apply.  */
27628 #ifdef __cplusplus
27629 extern "C"
27630 #endif
27631 char gethostbyname_r ();
27632 /* The GNU C library defines this for functions which it implements
27633     to always fail with ENOSYS.  Some functions are actually named
27634     something starting with __ and the normal name is an alias.  */
27635 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27636 choke me
27637 #endif
27638
27639 int
27640 main ()
27641 {
27642 return gethostbyname_r ();
27643   ;
27644   return 0;
27645 }
27646 _ACEOF
27647 rm -f conftest.$ac_objext conftest$ac_exeext
27648 if { (ac_try="$ac_link"
27649 case "(($ac_try" in
27650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651   *) ac_try_echo=$ac_try;;
27652 esac
27653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27654   (eval "$ac_link") 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } && {
27661          test -z "$ac_c_werror_flag" ||
27662          test ! -s conftest.err
27663        } && test -s conftest$ac_exeext &&
27664        $as_test_x conftest$ac_exeext; then
27665   ac_cv_func_gethostbyname_r=yes
27666 else
27667   echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27669
27670         ac_cv_func_gethostbyname_r=no
27671 fi
27672
27673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27674       conftest$ac_exeext conftest.$ac_ext
27675 fi
27676 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27677 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27678 if test $ac_cv_func_gethostbyname_r = yes; then
27679   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27680 echo "${ECHO_T}using libc's resolver" >&6; }
27681 else
27682
27683 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27684 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27685 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27686   echo $ECHO_N "(cached) $ECHO_C" >&6
27687 else
27688   ac_check_lib_save_LIBS=$LIBS
27689 LIBS="-lnsl  $LIBS"
27690 cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696
27697 /* Override any GCC internal prototype to avoid an error.
27698    Use char because int might match the return type of a GCC
27699    builtin and then its argument prototype would still apply.  */
27700 #ifdef __cplusplus
27701 extern "C"
27702 #endif
27703 char gethostbyname_r ();
27704 int
27705 main ()
27706 {
27707 return gethostbyname_r ();
27708   ;
27709   return 0;
27710 }
27711 _ACEOF
27712 rm -f conftest.$ac_objext conftest$ac_exeext
27713 if { (ac_try="$ac_link"
27714 case "(($ac_try" in
27715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716   *) ac_try_echo=$ac_try;;
27717 esac
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719   (eval "$ac_link") 2>conftest.er1
27720   ac_status=$?
27721   grep -v '^ *+' conftest.er1 >conftest.err
27722   rm -f conftest.er1
27723   cat conftest.err >&5
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); } && {
27726          test -z "$ac_c_werror_flag" ||
27727          test ! -s conftest.err
27728        } && test -s conftest$ac_exeext &&
27729        $as_test_x conftest$ac_exeext; then
27730   ac_cv_lib_nsl_gethostbyname_r=yes
27731 else
27732   echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735         ac_cv_lib_nsl_gethostbyname_r=no
27736 fi
27737
27738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27739       conftest$ac_exeext conftest.$ac_ext
27740 LIBS=$ac_check_lib_save_LIBS
27741 fi
27742 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27743 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27744 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27745   cat >>confdefs.h <<_ACEOF
27746 #define HAVE_LIBNSL 1
27747 _ACEOF
27748
27749   LIBS="-lnsl $LIBS"
27750
27751 fi
27752
27753
27754 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27755 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27756 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27757   echo $ECHO_N "(cached) $ECHO_C" >&6
27758 else
27759   ac_check_lib_save_LIBS=$LIBS
27760 LIBS="-lresolv  $LIBS"
27761 cat >conftest.$ac_ext <<_ACEOF
27762 /* confdefs.h.  */
27763 _ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h.  */
27767
27768 /* Override any GCC internal prototype to avoid an error.
27769    Use char because int might match the return type of a GCC
27770    builtin and then its argument prototype would still apply.  */
27771 #ifdef __cplusplus
27772 extern "C"
27773 #endif
27774 char gethostbyname_r ();
27775 int
27776 main ()
27777 {
27778 return gethostbyname_r ();
27779   ;
27780   return 0;
27781 }
27782 _ACEOF
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784 if { (ac_try="$ac_link"
27785 case "(($ac_try" in
27786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787   *) ac_try_echo=$ac_try;;
27788 esac
27789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27790   (eval "$ac_link") 2>conftest.er1
27791   ac_status=$?
27792   grep -v '^ *+' conftest.er1 >conftest.err
27793   rm -f conftest.er1
27794   cat conftest.err >&5
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); } && {
27797          test -z "$ac_c_werror_flag" ||
27798          test ! -s conftest.err
27799        } && test -s conftest$ac_exeext &&
27800        $as_test_x conftest$ac_exeext; then
27801   ac_cv_lib_resolv_gethostbyname_r=yes
27802 else
27803   echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27805
27806         ac_cv_lib_resolv_gethostbyname_r=no
27807 fi
27808
27809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27810       conftest$ac_exeext conftest.$ac_ext
27811 LIBS=$ac_check_lib_save_LIBS
27812 fi
27813 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27814 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27815 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27816   cat >>confdefs.h <<_ACEOF
27817 #define HAVE_LIBRESOLV 1
27818 _ACEOF
27819
27820   LIBS="-lresolv $LIBS"
27821
27822 fi
27823
27824 fi
27825
27826
27827
27828
27829
27830 for ac_func in inet_pton
27831 do
27832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27836   echo $ECHO_N "(cached) $ECHO_C" >&6
27837 else
27838   cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h.  */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h.  */
27844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27846 #define $ac_func innocuous_$ac_func
27847
27848 /* System header to define __stub macros and hopefully few prototypes,
27849     which can conflict with char $ac_func (); below.
27850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27851     <limits.h> exists even on freestanding compilers.  */
27852
27853 #ifdef __STDC__
27854 # include <limits.h>
27855 #else
27856 # include <assert.h>
27857 #endif
27858
27859 #undef $ac_func
27860
27861 /* Override any GCC internal prototype to avoid an error.
27862    Use char because int might match the return type of a GCC
27863    builtin and then its argument prototype would still apply.  */
27864 #ifdef __cplusplus
27865 extern "C"
27866 #endif
27867 char $ac_func ();
27868 /* The GNU C library defines this for functions which it implements
27869     to always fail with ENOSYS.  Some functions are actually named
27870     something starting with __ and the normal name is an alias.  */
27871 #if defined __stub_$ac_func || defined __stub___$ac_func
27872 choke me
27873 #endif
27874
27875 int
27876 main ()
27877 {
27878 return $ac_func ();
27879   ;
27880   return 0;
27881 }
27882 _ACEOF
27883 rm -f conftest.$ac_objext conftest$ac_exeext
27884 if { (ac_try="$ac_link"
27885 case "(($ac_try" in
27886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887   *) ac_try_echo=$ac_try;;
27888 esac
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890   (eval "$ac_link") 2>conftest.er1
27891   ac_status=$?
27892   grep -v '^ *+' conftest.er1 >conftest.err
27893   rm -f conftest.er1
27894   cat conftest.err >&5
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); } && {
27897          test -z "$ac_c_werror_flag" ||
27898          test ! -s conftest.err
27899        } && test -s conftest$ac_exeext &&
27900        $as_test_x conftest$ac_exeext; then
27901   eval "$as_ac_var=yes"
27902 else
27903   echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906         eval "$as_ac_var=no"
27907 fi
27908
27909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27910       conftest$ac_exeext conftest.$ac_ext
27911 fi
27912 ac_res=`eval echo '${'$as_ac_var'}'`
27913                { echo "$as_me:$LINENO: result: $ac_res" >&5
27914 echo "${ECHO_T}$ac_res" >&6; }
27915 if test `eval echo '${'$as_ac_var'}'` = yes; then
27916   cat >>confdefs.h <<_ACEOF
27917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27918 _ACEOF
27919  cat >>confdefs.h <<\_ACEOF
27920 #define HAVE_INET_PTON 1
27921 _ACEOF
27922
27923 fi
27924 done
27925
27926
27927 for ac_func in inet_ntop
27928 do
27929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27933   echo $ECHO_N "(cached) $ECHO_C" >&6
27934 else
27935   cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27943 #define $ac_func innocuous_$ac_func
27944
27945 /* System header to define __stub macros and hopefully few prototypes,
27946     which can conflict with char $ac_func (); below.
27947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27948     <limits.h> exists even on freestanding compilers.  */
27949
27950 #ifdef __STDC__
27951 # include <limits.h>
27952 #else
27953 # include <assert.h>
27954 #endif
27955
27956 #undef $ac_func
27957
27958 /* Override any GCC internal prototype to avoid an error.
27959    Use char because int might match the return type of a GCC
27960    builtin and then its argument prototype would still apply.  */
27961 #ifdef __cplusplus
27962 extern "C"
27963 #endif
27964 char $ac_func ();
27965 /* The GNU C library defines this for functions which it implements
27966     to always fail with ENOSYS.  Some functions are actually named
27967     something starting with __ and the normal name is an alias.  */
27968 #if defined __stub_$ac_func || defined __stub___$ac_func
27969 choke me
27970 #endif
27971
27972 int
27973 main ()
27974 {
27975 return $ac_func ();
27976   ;
27977   return 0;
27978 }
27979 _ACEOF
27980 rm -f conftest.$ac_objext conftest$ac_exeext
27981 if { (ac_try="$ac_link"
27982 case "(($ac_try" in
27983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984   *) ac_try_echo=$ac_try;;
27985 esac
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987   (eval "$ac_link") 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } && {
27994          test -z "$ac_c_werror_flag" ||
27995          test ! -s conftest.err
27996        } && test -s conftest$ac_exeext &&
27997        $as_test_x conftest$ac_exeext; then
27998   eval "$as_ac_var=yes"
27999 else
28000   echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003         eval "$as_ac_var=no"
28004 fi
28005
28006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007       conftest$ac_exeext conftest.$ac_ext
28008 fi
28009 ac_res=`eval echo '${'$as_ac_var'}'`
28010                { echo "$as_me:$LINENO: result: $ac_res" >&5
28011 echo "${ECHO_T}$ac_res" >&6; }
28012 if test `eval echo '${'$as_ac_var'}'` = yes; then
28013   cat >>confdefs.h <<_ACEOF
28014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28015 _ACEOF
28016  cat >>confdefs.h <<\_ACEOF
28017 #define HAVE_INET_NTOP 1
28018 _ACEOF
28019
28020 fi
28021 done
28022
28023
28024 for ac_func in gethostbyname2
28025 do
28026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28030   echo $ECHO_N "(cached) $ECHO_C" >&6
28031 else
28032   cat >conftest.$ac_ext <<_ACEOF
28033 /* confdefs.h.  */
28034 _ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h.  */
28038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28040 #define $ac_func innocuous_$ac_func
28041
28042 /* System header to define __stub macros and hopefully few prototypes,
28043     which can conflict with char $ac_func (); below.
28044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28045     <limits.h> exists even on freestanding compilers.  */
28046
28047 #ifdef __STDC__
28048 # include <limits.h>
28049 #else
28050 # include <assert.h>
28051 #endif
28052
28053 #undef $ac_func
28054
28055 /* Override any GCC internal prototype to avoid an error.
28056    Use char because int might match the return type of a GCC
28057    builtin and then its argument prototype would still apply.  */
28058 #ifdef __cplusplus
28059 extern "C"
28060 #endif
28061 char $ac_func ();
28062 /* The GNU C library defines this for functions which it implements
28063     to always fail with ENOSYS.  Some functions are actually named
28064     something starting with __ and the normal name is an alias.  */
28065 #if defined __stub_$ac_func || defined __stub___$ac_func
28066 choke me
28067 #endif
28068
28069 int
28070 main ()
28071 {
28072 return $ac_func ();
28073   ;
28074   return 0;
28075 }
28076 _ACEOF
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (ac_try="$ac_link"
28079 case "(($ac_try" in
28080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081   *) ac_try_echo=$ac_try;;
28082 esac
28083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28084   (eval "$ac_link") 2>conftest.er1
28085   ac_status=$?
28086   grep -v '^ *+' conftest.er1 >conftest.err
28087   rm -f conftest.er1
28088   cat conftest.err >&5
28089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090   (exit $ac_status); } && {
28091          test -z "$ac_c_werror_flag" ||
28092          test ! -s conftest.err
28093        } && test -s conftest$ac_exeext &&
28094        $as_test_x conftest$ac_exeext; then
28095   eval "$as_ac_var=yes"
28096 else
28097   echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100         eval "$as_ac_var=no"
28101 fi
28102
28103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28104       conftest$ac_exeext conftest.$ac_ext
28105 fi
28106 ac_res=`eval echo '${'$as_ac_var'}'`
28107                { echo "$as_me:$LINENO: result: $ac_res" >&5
28108 echo "${ECHO_T}$ac_res" >&6; }
28109 if test `eval echo '${'$as_ac_var'}'` = yes; then
28110   cat >>confdefs.h <<_ACEOF
28111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28112 _ACEOF
28113  cat >>confdefs.h <<\_ACEOF
28114 #define HAVE_GETHOSTBYNAME2 1
28115 _ACEOF
28116
28117 fi
28118 done
28119
28120
28121 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28122 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28123 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132 #include <sys/socket.h>
28133 int
28134 main ()
28135 {
28136 struct sockaddr s; s.sa_len;
28137   ;
28138   return 0;
28139 }
28140 _ACEOF
28141 rm -f conftest.$ac_objext
28142 if { (ac_try="$ac_compile"
28143 case "(($ac_try" in
28144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145   *) ac_try_echo=$ac_try;;
28146 esac
28147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148   (eval "$ac_compile") 2>conftest.er1
28149   ac_status=$?
28150   grep -v '^ *+' conftest.er1 >conftest.err
28151   rm -f conftest.er1
28152   cat conftest.err >&5
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); } && {
28155          test -z "$ac_c_werror_flag" ||
28156          test ! -s conftest.err
28157        } && test -s conftest.$ac_objext; then
28158   ac_cv_struct_sockaddr_sa_len=yes
28159 else
28160   echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28162
28163         ac_cv_struct_sockaddr_sa_len=no
28164 fi
28165
28166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28167 fi
28168 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28169 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28170
28171  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28172
28173 cat >>confdefs.h <<\_ACEOF
28174 #define HAVE_SA_LEN 1
28175 _ACEOF
28176
28177  fi
28178
28179
28180
28181
28182
28183 for ac_func in strftime
28184 do
28185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28189   echo $ECHO_N "(cached) $ECHO_C" >&6
28190 else
28191   cat >conftest.$ac_ext <<_ACEOF
28192 /* confdefs.h.  */
28193 _ACEOF
28194 cat confdefs.h >>conftest.$ac_ext
28195 cat >>conftest.$ac_ext <<_ACEOF
28196 /* end confdefs.h.  */
28197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28199 #define $ac_func innocuous_$ac_func
28200
28201 /* System header to define __stub macros and hopefully few prototypes,
28202     which can conflict with char $ac_func (); below.
28203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28204     <limits.h> exists even on freestanding compilers.  */
28205
28206 #ifdef __STDC__
28207 # include <limits.h>
28208 #else
28209 # include <assert.h>
28210 #endif
28211
28212 #undef $ac_func
28213
28214 /* Override any GCC internal prototype to avoid an error.
28215    Use char because int might match the return type of a GCC
28216    builtin and then its argument prototype would still apply.  */
28217 #ifdef __cplusplus
28218 extern "C"
28219 #endif
28220 char $ac_func ();
28221 /* The GNU C library defines this for functions which it implements
28222     to always fail with ENOSYS.  Some functions are actually named
28223     something starting with __ and the normal name is an alias.  */
28224 #if defined __stub_$ac_func || defined __stub___$ac_func
28225 choke me
28226 #endif
28227
28228 int
28229 main ()
28230 {
28231 return $ac_func ();
28232   ;
28233   return 0;
28234 }
28235 _ACEOF
28236 rm -f conftest.$ac_objext conftest$ac_exeext
28237 if { (ac_try="$ac_link"
28238 case "(($ac_try" in
28239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240   *) ac_try_echo=$ac_try;;
28241 esac
28242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28243   (eval "$ac_link") 2>conftest.er1
28244   ac_status=$?
28245   grep -v '^ *+' conftest.er1 >conftest.err
28246   rm -f conftest.er1
28247   cat conftest.err >&5
28248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249   (exit $ac_status); } && {
28250          test -z "$ac_c_werror_flag" ||
28251          test ! -s conftest.err
28252        } && test -s conftest$ac_exeext &&
28253        $as_test_x conftest$ac_exeext; then
28254   eval "$as_ac_var=yes"
28255 else
28256   echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28258
28259         eval "$as_ac_var=no"
28260 fi
28261
28262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28263       conftest$ac_exeext conftest.$ac_ext
28264 fi
28265 ac_res=`eval echo '${'$as_ac_var'}'`
28266                { echo "$as_me:$LINENO: result: $ac_res" >&5
28267 echo "${ECHO_T}$ac_res" >&6; }
28268 if test `eval echo '${'$as_ac_var'}'` = yes; then
28269   cat >>confdefs.h <<_ACEOF
28270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28271 _ACEOF
28272
28273 else
28274   # strftime is in -lintl on SCO UNIX.
28275 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28276 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28277 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28278   echo $ECHO_N "(cached) $ECHO_C" >&6
28279 else
28280   ac_check_lib_save_LIBS=$LIBS
28281 LIBS="-lintl  $LIBS"
28282 cat >conftest.$ac_ext <<_ACEOF
28283 /* confdefs.h.  */
28284 _ACEOF
28285 cat confdefs.h >>conftest.$ac_ext
28286 cat >>conftest.$ac_ext <<_ACEOF
28287 /* end confdefs.h.  */
28288
28289 /* Override any GCC internal prototype to avoid an error.
28290    Use char because int might match the return type of a GCC
28291    builtin and then its argument prototype would still apply.  */
28292 #ifdef __cplusplus
28293 extern "C"
28294 #endif
28295 char strftime ();
28296 int
28297 main ()
28298 {
28299 return strftime ();
28300   ;
28301   return 0;
28302 }
28303 _ACEOF
28304 rm -f conftest.$ac_objext conftest$ac_exeext
28305 if { (ac_try="$ac_link"
28306 case "(($ac_try" in
28307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28308   *) ac_try_echo=$ac_try;;
28309 esac
28310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28311   (eval "$ac_link") 2>conftest.er1
28312   ac_status=$?
28313   grep -v '^ *+' conftest.er1 >conftest.err
28314   rm -f conftest.er1
28315   cat conftest.err >&5
28316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317   (exit $ac_status); } && {
28318          test -z "$ac_c_werror_flag" ||
28319          test ! -s conftest.err
28320        } && test -s conftest$ac_exeext &&
28321        $as_test_x conftest$ac_exeext; then
28322   ac_cv_lib_intl_strftime=yes
28323 else
28324   echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28326
28327         ac_cv_lib_intl_strftime=no
28328 fi
28329
28330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28331       conftest$ac_exeext conftest.$ac_ext
28332 LIBS=$ac_check_lib_save_LIBS
28333 fi
28334 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28335 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28336 if test $ac_cv_lib_intl_strftime = yes; then
28337   cat >>confdefs.h <<\_ACEOF
28338 #define HAVE_STRFTIME 1
28339 _ACEOF
28340
28341 LIBS="-lintl $LIBS"
28342 fi
28343
28344 fi
28345 done
28346
28347
28348 for ac_func in vprintf
28349 do
28350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28354   echo $ECHO_N "(cached) $ECHO_C" >&6
28355 else
28356   cat >conftest.$ac_ext <<_ACEOF
28357 /* confdefs.h.  */
28358 _ACEOF
28359 cat confdefs.h >>conftest.$ac_ext
28360 cat >>conftest.$ac_ext <<_ACEOF
28361 /* end confdefs.h.  */
28362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28364 #define $ac_func innocuous_$ac_func
28365
28366 /* System header to define __stub macros and hopefully few prototypes,
28367     which can conflict with char $ac_func (); below.
28368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28369     <limits.h> exists even on freestanding compilers.  */
28370
28371 #ifdef __STDC__
28372 # include <limits.h>
28373 #else
28374 # include <assert.h>
28375 #endif
28376
28377 #undef $ac_func
28378
28379 /* Override any GCC internal prototype to avoid an error.
28380    Use char because int might match the return type of a GCC
28381    builtin and then its argument prototype would still apply.  */
28382 #ifdef __cplusplus
28383 extern "C"
28384 #endif
28385 char $ac_func ();
28386 /* The GNU C library defines this for functions which it implements
28387     to always fail with ENOSYS.  Some functions are actually named
28388     something starting with __ and the normal name is an alias.  */
28389 #if defined __stub_$ac_func || defined __stub___$ac_func
28390 choke me
28391 #endif
28392
28393 int
28394 main ()
28395 {
28396 return $ac_func ();
28397   ;
28398   return 0;
28399 }
28400 _ACEOF
28401 rm -f conftest.$ac_objext conftest$ac_exeext
28402 if { (ac_try="$ac_link"
28403 case "(($ac_try" in
28404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405   *) ac_try_echo=$ac_try;;
28406 esac
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408   (eval "$ac_link") 2>conftest.er1
28409   ac_status=$?
28410   grep -v '^ *+' conftest.er1 >conftest.err
28411   rm -f conftest.er1
28412   cat conftest.err >&5
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); } && {
28415          test -z "$ac_c_werror_flag" ||
28416          test ! -s conftest.err
28417        } && test -s conftest$ac_exeext &&
28418        $as_test_x conftest$ac_exeext; then
28419   eval "$as_ac_var=yes"
28420 else
28421   echo "$as_me: failed program was:" >&5
28422 sed 's/^/| /' conftest.$ac_ext >&5
28423
28424         eval "$as_ac_var=no"
28425 fi
28426
28427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28428       conftest$ac_exeext conftest.$ac_ext
28429 fi
28430 ac_res=`eval echo '${'$as_ac_var'}'`
28431                { echo "$as_me:$LINENO: result: $ac_res" >&5
28432 echo "${ECHO_T}$ac_res" >&6; }
28433 if test `eval echo '${'$as_ac_var'}'` = yes; then
28434   cat >>confdefs.h <<_ACEOF
28435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28436 _ACEOF
28437
28438 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28439 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28440 if test "${ac_cv_func__doprnt+set}" = set; then
28441   echo $ECHO_N "(cached) $ECHO_C" >&6
28442 else
28443   cat >conftest.$ac_ext <<_ACEOF
28444 /* confdefs.h.  */
28445 _ACEOF
28446 cat confdefs.h >>conftest.$ac_ext
28447 cat >>conftest.$ac_ext <<_ACEOF
28448 /* end confdefs.h.  */
28449 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28451 #define _doprnt innocuous__doprnt
28452
28453 /* System header to define __stub macros and hopefully few prototypes,
28454     which can conflict with char _doprnt (); below.
28455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28456     <limits.h> exists even on freestanding compilers.  */
28457
28458 #ifdef __STDC__
28459 # include <limits.h>
28460 #else
28461 # include <assert.h>
28462 #endif
28463
28464 #undef _doprnt
28465
28466 /* Override any GCC internal prototype to avoid an error.
28467    Use char because int might match the return type of a GCC
28468    builtin and then its argument prototype would still apply.  */
28469 #ifdef __cplusplus
28470 extern "C"
28471 #endif
28472 char _doprnt ();
28473 /* The GNU C library defines this for functions which it implements
28474     to always fail with ENOSYS.  Some functions are actually named
28475     something starting with __ and the normal name is an alias.  */
28476 #if defined __stub__doprnt || defined __stub____doprnt
28477 choke me
28478 #endif
28479
28480 int
28481 main ()
28482 {
28483 return _doprnt ();
28484   ;
28485   return 0;
28486 }
28487 _ACEOF
28488 rm -f conftest.$ac_objext conftest$ac_exeext
28489 if { (ac_try="$ac_link"
28490 case "(($ac_try" in
28491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492   *) ac_try_echo=$ac_try;;
28493 esac
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495   (eval "$ac_link") 2>conftest.er1
28496   ac_status=$?
28497   grep -v '^ *+' conftest.er1 >conftest.err
28498   rm -f conftest.er1
28499   cat conftest.err >&5
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); } && {
28502          test -z "$ac_c_werror_flag" ||
28503          test ! -s conftest.err
28504        } && test -s conftest$ac_exeext &&
28505        $as_test_x conftest$ac_exeext; then
28506   ac_cv_func__doprnt=yes
28507 else
28508   echo "$as_me: failed program was:" >&5
28509 sed 's/^/| /' conftest.$ac_ext >&5
28510
28511         ac_cv_func__doprnt=no
28512 fi
28513
28514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28515       conftest$ac_exeext conftest.$ac_ext
28516 fi
28517 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28518 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28519 if test $ac_cv_func__doprnt = yes; then
28520
28521 cat >>confdefs.h <<\_ACEOF
28522 #define HAVE_DOPRNT 1
28523 _ACEOF
28524
28525 fi
28526
28527 fi
28528 done
28529
28530
28531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28532 # for constant arguments.  Useless!
28533 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28534 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28535 if test "${ac_cv_working_alloca_h+set}" = set; then
28536   echo $ECHO_N "(cached) $ECHO_C" >&6
28537 else
28538   cat >conftest.$ac_ext <<_ACEOF
28539 /* confdefs.h.  */
28540 _ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h.  */
28544 #include <alloca.h>
28545 int
28546 main ()
28547 {
28548 char *p = (char *) alloca (2 * sizeof (int));
28549                           if (p) return 0;
28550   ;
28551   return 0;
28552 }
28553 _ACEOF
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (ac_try="$ac_link"
28556 case "(($ac_try" in
28557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558   *) ac_try_echo=$ac_try;;
28559 esac
28560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561   (eval "$ac_link") 2>conftest.er1
28562   ac_status=$?
28563   grep -v '^ *+' conftest.er1 >conftest.err
28564   rm -f conftest.er1
28565   cat conftest.err >&5
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); } && {
28568          test -z "$ac_c_werror_flag" ||
28569          test ! -s conftest.err
28570        } && test -s conftest$ac_exeext &&
28571        $as_test_x conftest$ac_exeext; then
28572   ac_cv_working_alloca_h=yes
28573 else
28574   echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28576
28577         ac_cv_working_alloca_h=no
28578 fi
28579
28580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28581       conftest$ac_exeext conftest.$ac_ext
28582 fi
28583 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28584 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28585 if test $ac_cv_working_alloca_h = yes; then
28586
28587 cat >>confdefs.h <<\_ACEOF
28588 #define HAVE_ALLOCA_H 1
28589 _ACEOF
28590
28591 fi
28592
28593 { echo "$as_me:$LINENO: checking for alloca" >&5
28594 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28595 if test "${ac_cv_func_alloca_works+set}" = set; then
28596   echo $ECHO_N "(cached) $ECHO_C" >&6
28597 else
28598   cat >conftest.$ac_ext <<_ACEOF
28599 /* confdefs.h.  */
28600 _ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h.  */
28604 #ifdef __GNUC__
28605 # define alloca __builtin_alloca
28606 #else
28607 # ifdef _MSC_VER
28608 #  include <malloc.h>
28609 #  define alloca _alloca
28610 # else
28611 #  ifdef HAVE_ALLOCA_H
28612 #   include <alloca.h>
28613 #  else
28614 #   ifdef _AIX
28615  #pragma alloca
28616 #   else
28617 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28618 char *alloca ();
28619 #    endif
28620 #   endif
28621 #  endif
28622 # endif
28623 #endif
28624
28625 int
28626 main ()
28627 {
28628 char *p = (char *) alloca (1);
28629                                     if (p) return 0;
28630   ;
28631   return 0;
28632 }
28633 _ACEOF
28634 rm -f conftest.$ac_objext conftest$ac_exeext
28635 if { (ac_try="$ac_link"
28636 case "(($ac_try" in
28637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28638   *) ac_try_echo=$ac_try;;
28639 esac
28640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28641   (eval "$ac_link") 2>conftest.er1
28642   ac_status=$?
28643   grep -v '^ *+' conftest.er1 >conftest.err
28644   rm -f conftest.er1
28645   cat conftest.err >&5
28646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647   (exit $ac_status); } && {
28648          test -z "$ac_c_werror_flag" ||
28649          test ! -s conftest.err
28650        } && test -s conftest$ac_exeext &&
28651        $as_test_x conftest$ac_exeext; then
28652   ac_cv_func_alloca_works=yes
28653 else
28654   echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28656
28657         ac_cv_func_alloca_works=no
28658 fi
28659
28660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28661       conftest$ac_exeext conftest.$ac_ext
28662 fi
28663 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28664 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28665
28666 if test $ac_cv_func_alloca_works = yes; then
28667
28668 cat >>confdefs.h <<\_ACEOF
28669 #define HAVE_ALLOCA 1
28670 _ACEOF
28671
28672 else
28673   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28674 # that cause trouble.  Some versions do not even contain alloca or
28675 # contain a buggy version.  If you still want to use their alloca,
28676 # use ar to extract alloca.o from them instead of compiling alloca.c.
28677
28678 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28679
28680 cat >>confdefs.h <<\_ACEOF
28681 #define C_ALLOCA 1
28682 _ACEOF
28683
28684
28685 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28686 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28687 if test "${ac_cv_os_cray+set}" = set; then
28688   echo $ECHO_N "(cached) $ECHO_C" >&6
28689 else
28690   cat >conftest.$ac_ext <<_ACEOF
28691 /* confdefs.h.  */
28692 _ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h.  */
28696 #if defined CRAY && ! defined CRAY2
28697 webecray
28698 #else
28699 wenotbecray
28700 #endif
28701
28702 _ACEOF
28703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28704   $EGREP "webecray" >/dev/null 2>&1; then
28705   ac_cv_os_cray=yes
28706 else
28707   ac_cv_os_cray=no
28708 fi
28709 rm -f conftest*
28710
28711 fi
28712 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28713 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28714 if test $ac_cv_os_cray = yes; then
28715   for ac_func in _getb67 GETB67 getb67; do
28716     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28720   echo $ECHO_N "(cached) $ECHO_C" >&6
28721 else
28722   cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h.  */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h.  */
28728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28730 #define $ac_func innocuous_$ac_func
28731
28732 /* System header to define __stub macros and hopefully few prototypes,
28733     which can conflict with char $ac_func (); below.
28734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28735     <limits.h> exists even on freestanding compilers.  */
28736
28737 #ifdef __STDC__
28738 # include <limits.h>
28739 #else
28740 # include <assert.h>
28741 #endif
28742
28743 #undef $ac_func
28744
28745 /* Override any GCC internal prototype to avoid an error.
28746    Use char because int might match the return type of a GCC
28747    builtin and then its argument prototype would still apply.  */
28748 #ifdef __cplusplus
28749 extern "C"
28750 #endif
28751 char $ac_func ();
28752 /* The GNU C library defines this for functions which it implements
28753     to always fail with ENOSYS.  Some functions are actually named
28754     something starting with __ and the normal name is an alias.  */
28755 #if defined __stub_$ac_func || defined __stub___$ac_func
28756 choke me
28757 #endif
28758
28759 int
28760 main ()
28761 {
28762 return $ac_func ();
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest.$ac_objext conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771   *) ac_try_echo=$ac_try;;
28772 esac
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774   (eval "$ac_link") 2>conftest.er1
28775   ac_status=$?
28776   grep -v '^ *+' conftest.er1 >conftest.err
28777   rm -f conftest.er1
28778   cat conftest.err >&5
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); } && {
28781          test -z "$ac_c_werror_flag" ||
28782          test ! -s conftest.err
28783        } && test -s conftest$ac_exeext &&
28784        $as_test_x conftest$ac_exeext; then
28785   eval "$as_ac_var=yes"
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790         eval "$as_ac_var=no"
28791 fi
28792
28793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28794       conftest$ac_exeext conftest.$ac_ext
28795 fi
28796 ac_res=`eval echo '${'$as_ac_var'}'`
28797                { echo "$as_me:$LINENO: result: $ac_res" >&5
28798 echo "${ECHO_T}$ac_res" >&6; }
28799 if test `eval echo '${'$as_ac_var'}'` = yes; then
28800
28801 cat >>confdefs.h <<_ACEOF
28802 #define CRAY_STACKSEG_END $ac_func
28803 _ACEOF
28804
28805     break
28806 fi
28807
28808   done
28809 fi
28810
28811 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28812 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28813 if test "${ac_cv_c_stack_direction+set}" = set; then
28814   echo $ECHO_N "(cached) $ECHO_C" >&6
28815 else
28816   if test "$cross_compiling" = yes; then
28817   ac_cv_c_stack_direction=0
28818 else
28819   cat >conftest.$ac_ext <<_ACEOF
28820 /* confdefs.h.  */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h.  */
28825 $ac_includes_default
28826 int
28827 find_stack_direction ()
28828 {
28829   static char *addr = 0;
28830   auto char dummy;
28831   if (addr == 0)
28832     {
28833       addr = &dummy;
28834       return find_stack_direction ();
28835     }
28836   else
28837     return (&dummy > addr) ? 1 : -1;
28838 }
28839
28840 int
28841 main ()
28842 {
28843   return find_stack_direction () < 0;
28844 }
28845 _ACEOF
28846 rm -f conftest$ac_exeext
28847 if { (ac_try="$ac_link"
28848 case "(($ac_try" in
28849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850   *) ac_try_echo=$ac_try;;
28851 esac
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853   (eval "$ac_link") 2>&5
28854   ac_status=$?
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28857   { (case "(($ac_try" in
28858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859   *) ac_try_echo=$ac_try;;
28860 esac
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862   (eval "$ac_try") 2>&5
28863   ac_status=$?
28864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865   (exit $ac_status); }; }; then
28866   ac_cv_c_stack_direction=1
28867 else
28868   echo "$as_me: program exited with status $ac_status" >&5
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28871
28872 ( exit $ac_status )
28873 ac_cv_c_stack_direction=-1
28874 fi
28875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28876 fi
28877
28878
28879 fi
28880 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28881 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28882
28883 cat >>confdefs.h <<_ACEOF
28884 #define STACK_DIRECTION $ac_cv_c_stack_direction
28885 _ACEOF
28886
28887
28888 fi
28889
28890 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28891 # -lseq on Dynix/PTX, -lgen on Unixware.
28892 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28893 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28894 if test "${ac_cv_search_getmntent+set}" = set; then
28895   echo $ECHO_N "(cached) $ECHO_C" >&6
28896 else
28897   ac_func_search_save_LIBS=$LIBS
28898 cat >conftest.$ac_ext <<_ACEOF
28899 /* confdefs.h.  */
28900 _ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h.  */
28904
28905 /* Override any GCC internal prototype to avoid an error.
28906    Use char because int might match the return type of a GCC
28907    builtin and then its argument prototype would still apply.  */
28908 #ifdef __cplusplus
28909 extern "C"
28910 #endif
28911 char getmntent ();
28912 int
28913 main ()
28914 {
28915 return getmntent ();
28916   ;
28917   return 0;
28918 }
28919 _ACEOF
28920 for ac_lib in '' sun seq gen; do
28921   if test -z "$ac_lib"; then
28922     ac_res="none required"
28923   else
28924     ac_res=-l$ac_lib
28925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28926   fi
28927   rm -f conftest.$ac_objext conftest$ac_exeext
28928 if { (ac_try="$ac_link"
28929 case "(($ac_try" in
28930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28931   *) ac_try_echo=$ac_try;;
28932 esac
28933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28934   (eval "$ac_link") 2>conftest.er1
28935   ac_status=$?
28936   grep -v '^ *+' conftest.er1 >conftest.err
28937   rm -f conftest.er1
28938   cat conftest.err >&5
28939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940   (exit $ac_status); } && {
28941          test -z "$ac_c_werror_flag" ||
28942          test ! -s conftest.err
28943        } && test -s conftest$ac_exeext &&
28944        $as_test_x conftest$ac_exeext; then
28945   ac_cv_search_getmntent=$ac_res
28946 else
28947   echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28949
28950
28951 fi
28952
28953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28954       conftest$ac_exeext
28955   if test "${ac_cv_search_getmntent+set}" = set; then
28956   break
28957 fi
28958 done
28959 if test "${ac_cv_search_getmntent+set}" = set; then
28960   :
28961 else
28962   ac_cv_search_getmntent=no
28963 fi
28964 rm conftest.$ac_ext
28965 LIBS=$ac_func_search_save_LIBS
28966 fi
28967 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28968 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28969 ac_res=$ac_cv_search_getmntent
28970 if test "$ac_res" != no; then
28971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28972   ac_cv_func_getmntent=yes
28973
28974 cat >>confdefs.h <<\_ACEOF
28975 #define HAVE_GETMNTENT 1
28976 _ACEOF
28977
28978 else
28979   ac_cv_func_getmntent=no
28980 fi
28981
28982
28983 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28984 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28985 if test "${ac_cv_func_closedir_void+set}" = set; then
28986   echo $ECHO_N "(cached) $ECHO_C" >&6
28987 else
28988   if test "$cross_compiling" = yes; then
28989   ac_cv_func_closedir_void=yes
28990 else
28991   cat >conftest.$ac_ext <<_ACEOF
28992 /* confdefs.h.  */
28993 _ACEOF
28994 cat confdefs.h >>conftest.$ac_ext
28995 cat >>conftest.$ac_ext <<_ACEOF
28996 /* end confdefs.h.  */
28997 $ac_includes_default
28998 #include <$ac_header_dirent>
28999 #ifndef __cplusplus
29000 int closedir ();
29001 #endif
29002
29003 int
29004 main ()
29005 {
29006 return closedir (opendir (".")) != 0;
29007   ;
29008   return 0;
29009 }
29010 _ACEOF
29011 rm -f conftest$ac_exeext
29012 if { (ac_try="$ac_link"
29013 case "(($ac_try" in
29014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015   *) ac_try_echo=$ac_try;;
29016 esac
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018   (eval "$ac_link") 2>&5
29019   ac_status=$?
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29022   { (case "(($ac_try" in
29023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024   *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027   (eval "$ac_try") 2>&5
29028   ac_status=$?
29029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); }; }; then
29031   ac_cv_func_closedir_void=no
29032 else
29033   echo "$as_me: program exited with status $ac_status" >&5
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29036
29037 ( exit $ac_status )
29038 ac_cv_func_closedir_void=yes
29039 fi
29040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29041 fi
29042
29043
29044 fi
29045 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29046 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29047 if test $ac_cv_func_closedir_void = yes; then
29048
29049 cat >>confdefs.h <<\_ACEOF
29050 #define CLOSEDIR_VOID 1
29051 _ACEOF
29052
29053 fi
29054
29055 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29056 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29057 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29058   echo $ECHO_N "(cached) $ECHO_C" >&6
29059 else
29060   if test "$cross_compiling" = yes; then
29061   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29062 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29063    { (exit 1); exit 1; }; }
29064 else
29065   cat >conftest.$ac_ext <<_ACEOF
29066 /* confdefs.h.  */
29067 _ACEOF
29068 cat confdefs.h >>conftest.$ac_ext
29069 cat >>conftest.$ac_ext <<_ACEOF
29070 /* end confdefs.h.  */
29071 $ac_includes_default
29072 int
29073 main ()
29074 {
29075 /* If this system has a BSD-style setpgrp which takes arguments,
29076   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29077   exit successfully. */
29078   return setpgrp (1,1) != -1;
29079   ;
29080   return 0;
29081 }
29082 _ACEOF
29083 rm -f conftest$ac_exeext
29084 if { (ac_try="$ac_link"
29085 case "(($ac_try" in
29086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087   *) ac_try_echo=$ac_try;;
29088 esac
29089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29090   (eval "$ac_link") 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29094   { (case "(($ac_try" in
29095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096   *) ac_try_echo=$ac_try;;
29097 esac
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099   (eval "$ac_try") 2>&5
29100   ac_status=$?
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); }; }; then
29103   ac_cv_func_setpgrp_void=no
29104 else
29105   echo "$as_me: program exited with status $ac_status" >&5
29106 echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29108
29109 ( exit $ac_status )
29110 ac_cv_func_setpgrp_void=yes
29111 fi
29112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29113 fi
29114
29115
29116 fi
29117 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29118 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29119 if test $ac_cv_func_setpgrp_void = yes; then
29120
29121 cat >>confdefs.h <<\_ACEOF
29122 #define SETPGRP_VOID 1
29123 _ACEOF
29124
29125 fi
29126                       # AC_FUNC_FNMATCH    dnl use local version
29127
29128
29129 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29130 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29131 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29132   echo $ECHO_N "(cached) $ECHO_C" >&6
29133 else
29134   ac_check_lib_save_LIBS=$LIBS
29135 LIBS="-lintl  $LIBS"
29136 cat >conftest.$ac_ext <<_ACEOF
29137 /* confdefs.h.  */
29138 _ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h.  */
29142
29143 /* Override any GCC internal prototype to avoid an error.
29144    Use char because int might match the return type of a GCC
29145    builtin and then its argument prototype would still apply.  */
29146 #ifdef __cplusplus
29147 extern "C"
29148 #endif
29149 char gettext ();
29150 int
29151 main ()
29152 {
29153 return gettext ();
29154   ;
29155   return 0;
29156 }
29157 _ACEOF
29158 rm -f conftest.$ac_objext conftest$ac_exeext
29159 if { (ac_try="$ac_link"
29160 case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_link") 2>conftest.er1
29166   ac_status=$?
29167   grep -v '^ *+' conftest.er1 >conftest.err
29168   rm -f conftest.er1
29169   cat conftest.err >&5
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } && {
29172          test -z "$ac_c_werror_flag" ||
29173          test ! -s conftest.err
29174        } && test -s conftest$ac_exeext &&
29175        $as_test_x conftest$ac_exeext; then
29176   ac_cv_lib_intl_gettext=yes
29177 else
29178   echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29180
29181         ac_cv_lib_intl_gettext=no
29182 fi
29183
29184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29185       conftest$ac_exeext conftest.$ac_ext
29186 LIBS=$ac_check_lib_save_LIBS
29187 fi
29188 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29189 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29190 if test $ac_cv_lib_intl_gettext = yes; then
29191   LIBS="$LIBS -lintl"
29192 fi
29193
29194
29195
29196
29197 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29198 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29199 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29200   echo $ECHO_N "(cached) $ECHO_C" >&6
29201 else
29202   ac_check_lib_save_LIBS=$LIBS
29203 LIBS="-lsun  $LIBS"
29204 cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210
29211 /* Override any GCC internal prototype to avoid an error.
29212    Use char because int might match the return type of a GCC
29213    builtin and then its argument prototype would still apply.  */
29214 #ifdef __cplusplus
29215 extern "C"
29216 #endif
29217 char getpwnam ();
29218 int
29219 main ()
29220 {
29221 return getpwnam ();
29222   ;
29223   return 0;
29224 }
29225 _ACEOF
29226 rm -f conftest.$ac_objext conftest$ac_exeext
29227 if { (ac_try="$ac_link"
29228 case "(($ac_try" in
29229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230   *) ac_try_echo=$ac_try;;
29231 esac
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233   (eval "$ac_link") 2>conftest.er1
29234   ac_status=$?
29235   grep -v '^ *+' conftest.er1 >conftest.err
29236   rm -f conftest.er1
29237   cat conftest.err >&5
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); } && {
29240          test -z "$ac_c_werror_flag" ||
29241          test ! -s conftest.err
29242        } && test -s conftest$ac_exeext &&
29243        $as_test_x conftest$ac_exeext; then
29244   ac_cv_lib_sun_getpwnam=yes
29245 else
29246   echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29248
29249         ac_cv_lib_sun_getpwnam=no
29250 fi
29251
29252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29253       conftest$ac_exeext conftest.$ac_ext
29254 LIBS=$ac_check_lib_save_LIBS
29255 fi
29256 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29257 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29258 if test $ac_cv_lib_sun_getpwnam = yes; then
29259   cat >>confdefs.h <<_ACEOF
29260 #define HAVE_LIBSUN 1
29261 _ACEOF
29262
29263   LIBS="-lsun $LIBS"
29264
29265 fi
29266
29267
29268
29269 for ac_header in zlib.h
29270 do
29271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29273   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29276   echo $ECHO_N "(cached) $ECHO_C" >&6
29277 fi
29278 ac_res=`eval echo '${'$as_ac_Header'}'`
29279                { echo "$as_me:$LINENO: result: $ac_res" >&5
29280 echo "${ECHO_T}$ac_res" >&6; }
29281 else
29282   # Is the header compilable?
29283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29285 cat >conftest.$ac_ext <<_ACEOF
29286 /* confdefs.h.  */
29287 _ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h.  */
29291 $ac_includes_default
29292 #include <$ac_header>
29293 _ACEOF
29294 rm -f conftest.$ac_objext
29295 if { (ac_try="$ac_compile"
29296 case "(($ac_try" in
29297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298   *) ac_try_echo=$ac_try;;
29299 esac
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301   (eval "$ac_compile") 2>conftest.er1
29302   ac_status=$?
29303   grep -v '^ *+' conftest.er1 >conftest.err
29304   rm -f conftest.er1
29305   cat conftest.err >&5
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); } && {
29308          test -z "$ac_c_werror_flag" ||
29309          test ! -s conftest.err
29310        } && test -s conftest.$ac_objext; then
29311   ac_header_compiler=yes
29312 else
29313   echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29315
29316         ac_header_compiler=no
29317 fi
29318
29319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29321 echo "${ECHO_T}$ac_header_compiler" >&6; }
29322
29323 # Is the header present?
29324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29326 cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h.  */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h.  */
29332 #include <$ac_header>
29333 _ACEOF
29334 if { (ac_try="$ac_cpp conftest.$ac_ext"
29335 case "(($ac_try" in
29336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337   *) ac_try_echo=$ac_try;;
29338 esac
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29341   ac_status=$?
29342   grep -v '^ *+' conftest.er1 >conftest.err
29343   rm -f conftest.er1
29344   cat conftest.err >&5
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); } >/dev/null && {
29347          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29348          test ! -s conftest.err
29349        }; then
29350   ac_header_preproc=yes
29351 else
29352   echo "$as_me: failed program was:" >&5
29353 sed 's/^/| /' conftest.$ac_ext >&5
29354
29355   ac_header_preproc=no
29356 fi
29357
29358 rm -f conftest.err conftest.$ac_ext
29359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29360 echo "${ECHO_T}$ac_header_preproc" >&6; }
29361
29362 # So?  What about this header?
29363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29364   yes:no: )
29365     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29369     ac_header_preproc=yes
29370     ;;
29371   no:yes:* )
29372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29374     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29375 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29376     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29378     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29379 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29382     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29384
29385     ;;
29386 esac
29387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29390   echo $ECHO_N "(cached) $ECHO_C" >&6
29391 else
29392   eval "$as_ac_Header=\$ac_header_preproc"
29393 fi
29394 ac_res=`eval echo '${'$as_ac_Header'}'`
29395                { echo "$as_me:$LINENO: result: $ac_res" >&5
29396 echo "${ECHO_T}$ac_res" >&6; }
29397
29398 fi
29399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29400   cat >>confdefs.h <<_ACEOF
29401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29402 _ACEOF
29403
29404 fi
29405
29406 done
29407
29408 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29409 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29410 if test "${ac_cv_lib_z_deflate+set}" = set; then
29411   echo $ECHO_N "(cached) $ECHO_C" >&6
29412 else
29413   ac_check_lib_save_LIBS=$LIBS
29414 LIBS="-lz  $LIBS"
29415 cat >conftest.$ac_ext <<_ACEOF
29416 /* confdefs.h.  */
29417 _ACEOF
29418 cat confdefs.h >>conftest.$ac_ext
29419 cat >>conftest.$ac_ext <<_ACEOF
29420 /* end confdefs.h.  */
29421
29422 /* Override any GCC internal prototype to avoid an error.
29423    Use char because int might match the return type of a GCC
29424    builtin and then its argument prototype would still apply.  */
29425 #ifdef __cplusplus
29426 extern "C"
29427 #endif
29428 char deflate ();
29429 int
29430 main ()
29431 {
29432 return deflate ();
29433   ;
29434   return 0;
29435 }
29436 _ACEOF
29437 rm -f conftest.$ac_objext conftest$ac_exeext
29438 if { (ac_try="$ac_link"
29439 case "(($ac_try" in
29440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29441   *) ac_try_echo=$ac_try;;
29442 esac
29443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29444   (eval "$ac_link") 2>conftest.er1
29445   ac_status=$?
29446   grep -v '^ *+' conftest.er1 >conftest.err
29447   rm -f conftest.er1
29448   cat conftest.err >&5
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); } && {
29451          test -z "$ac_c_werror_flag" ||
29452          test ! -s conftest.err
29453        } && test -s conftest$ac_exeext &&
29454        $as_test_x conftest$ac_exeext; then
29455   ac_cv_lib_z_deflate=yes
29456 else
29457   echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29459
29460         ac_cv_lib_z_deflate=no
29461 fi
29462
29463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29464       conftest$ac_exeext conftest.$ac_ext
29465 LIBS=$ac_check_lib_save_LIBS
29466 fi
29467 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29468 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29469 if test $ac_cv_lib_z_deflate = yes; then
29470   FDLIBS="-lz"
29471 fi
29472
29473 have_zlib=no
29474 if test x$FDLIBS = x-lz; then
29475   cat >>confdefs.h <<\_ACEOF
29476 #define HAVE_LIBZ 1
29477 _ACEOF
29478
29479   have_zlib=yes
29480 fi
29481
29482 #
29483 # Check for ACL libraries
29484 #
29485 have_acl=no
29486 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29487   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29488 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29489 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29490   echo $ECHO_N "(cached) $ECHO_C" >&6
29491 fi
29492 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29493 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29494 else
29495   # Is the header compilable?
29496 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29497 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29498 cat >conftest.$ac_ext <<_ACEOF
29499 /* confdefs.h.  */
29500 _ACEOF
29501 cat confdefs.h >>conftest.$ac_ext
29502 cat >>conftest.$ac_ext <<_ACEOF
29503 /* end confdefs.h.  */
29504 $ac_includes_default
29505 #include <sys/acl.h>
29506 _ACEOF
29507 rm -f conftest.$ac_objext
29508 if { (ac_try="$ac_compile"
29509 case "(($ac_try" in
29510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511   *) ac_try_echo=$ac_try;;
29512 esac
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514   (eval "$ac_compile") 2>conftest.er1
29515   ac_status=$?
29516   grep -v '^ *+' conftest.er1 >conftest.err
29517   rm -f conftest.er1
29518   cat conftest.err >&5
29519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520   (exit $ac_status); } && {
29521          test -z "$ac_c_werror_flag" ||
29522          test ! -s conftest.err
29523        } && test -s conftest.$ac_objext; then
29524   ac_header_compiler=yes
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529         ac_header_compiler=no
29530 fi
29531
29532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29534 echo "${ECHO_T}$ac_header_compiler" >&6; }
29535
29536 # Is the header present?
29537 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29538 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29539 cat >conftest.$ac_ext <<_ACEOF
29540 /* confdefs.h.  */
29541 _ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h.  */
29545 #include <sys/acl.h>
29546 _ACEOF
29547 if { (ac_try="$ac_cpp conftest.$ac_ext"
29548 case "(($ac_try" in
29549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550   *) ac_try_echo=$ac_try;;
29551 esac
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29554   ac_status=$?
29555   grep -v '^ *+' conftest.er1 >conftest.err
29556   rm -f conftest.er1
29557   cat conftest.err >&5
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); } >/dev/null && {
29560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29561          test ! -s conftest.err
29562        }; then
29563   ac_header_preproc=yes
29564 else
29565   echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29567
29568   ac_header_preproc=no
29569 fi
29570
29571 rm -f conftest.err conftest.$ac_ext
29572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29573 echo "${ECHO_T}$ac_header_preproc" >&6; }
29574
29575 # So?  What about this header?
29576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29577   yes:no: )
29578     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29579 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29580     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29581 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29582     ac_header_preproc=yes
29583     ;;
29584   no:yes:* )
29585     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29586 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29587     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29588 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29589     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29590 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29591     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29592 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29593     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29594 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29595     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29596 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29597
29598     ;;
29599 esac
29600 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29601 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29602 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29603   echo $ECHO_N "(cached) $ECHO_C" >&6
29604 else
29605   ac_cv_header_sys_acl_h=$ac_header_preproc
29606 fi
29607 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29608 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29609
29610 fi
29611
29612
29613 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29614 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29615 if test "${ac_cv_func_acl_get_file+set}" = set; then
29616   echo $ECHO_N "(cached) $ECHO_C" >&6
29617 else
29618   cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29626 #define acl_get_file innocuous_acl_get_file
29627
29628 /* System header to define __stub macros and hopefully few prototypes,
29629     which can conflict with char acl_get_file (); below.
29630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29631     <limits.h> exists even on freestanding compilers.  */
29632
29633 #ifdef __STDC__
29634 # include <limits.h>
29635 #else
29636 # include <assert.h>
29637 #endif
29638
29639 #undef acl_get_file
29640
29641 /* Override any GCC internal prototype to avoid an error.
29642    Use char because int might match the return type of a GCC
29643    builtin and then its argument prototype would still apply.  */
29644 #ifdef __cplusplus
29645 extern "C"
29646 #endif
29647 char acl_get_file ();
29648 /* The GNU C library defines this for functions which it implements
29649     to always fail with ENOSYS.  Some functions are actually named
29650     something starting with __ and the normal name is an alias.  */
29651 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29652 choke me
29653 #endif
29654
29655 int
29656 main ()
29657 {
29658 return acl_get_file ();
29659   ;
29660   return 0;
29661 }
29662 _ACEOF
29663 rm -f conftest.$ac_objext conftest$ac_exeext
29664 if { (ac_try="$ac_link"
29665 case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_link") 2>conftest.er1
29671   ac_status=$?
29672   grep -v '^ *+' conftest.er1 >conftest.err
29673   rm -f conftest.er1
29674   cat conftest.err >&5
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); } && {
29677          test -z "$ac_c_werror_flag" ||
29678          test ! -s conftest.err
29679        } && test -s conftest$ac_exeext &&
29680        $as_test_x conftest$ac_exeext; then
29681   ac_cv_func_acl_get_file=yes
29682 else
29683   echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29685
29686         ac_cv_func_acl_get_file=no
29687 fi
29688
29689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29690       conftest$ac_exeext conftest.$ac_ext
29691 fi
29692 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29693 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29694 if test $ac_cv_func_acl_get_file = yes; then
29695   have_acl=yes
29696 else
29697   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29698 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29699 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29700   echo $ECHO_N "(cached) $ECHO_C" >&6
29701 else
29702   ac_check_lib_save_LIBS=$LIBS
29703 LIBS="-lacl  $LIBS"
29704 cat >conftest.$ac_ext <<_ACEOF
29705 /* confdefs.h.  */
29706 _ACEOF
29707 cat confdefs.h >>conftest.$ac_ext
29708 cat >>conftest.$ac_ext <<_ACEOF
29709 /* end confdefs.h.  */
29710
29711 /* Override any GCC internal prototype to avoid an error.
29712    Use char because int might match the return type of a GCC
29713    builtin and then its argument prototype would still apply.  */
29714 #ifdef __cplusplus
29715 extern "C"
29716 #endif
29717 char acl_get_file ();
29718 int
29719 main ()
29720 {
29721 return acl_get_file ();
29722   ;
29723   return 0;
29724 }
29725 _ACEOF
29726 rm -f conftest.$ac_objext conftest$ac_exeext
29727 if { (ac_try="$ac_link"
29728 case "(($ac_try" in
29729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730   *) ac_try_echo=$ac_try;;
29731 esac
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733   (eval "$ac_link") 2>conftest.er1
29734   ac_status=$?
29735   grep -v '^ *+' conftest.er1 >conftest.err
29736   rm -f conftest.er1
29737   cat conftest.err >&5
29738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739   (exit $ac_status); } && {
29740          test -z "$ac_c_werror_flag" ||
29741          test ! -s conftest.err
29742        } && test -s conftest$ac_exeext &&
29743        $as_test_x conftest$ac_exeext; then
29744   ac_cv_lib_acl_acl_get_file=yes
29745 else
29746   echo "$as_me: failed program was:" >&5
29747 sed 's/^/| /' conftest.$ac_ext >&5
29748
29749         ac_cv_lib_acl_acl_get_file=no
29750 fi
29751
29752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29753       conftest$ac_exeext conftest.$ac_ext
29754 LIBS=$ac_check_lib_save_LIBS
29755 fi
29756 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29757 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29758 if test $ac_cv_lib_acl_acl_get_file = yes; then
29759   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29760 else
29761   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29762 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29763 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29764   echo $ECHO_N "(cached) $ECHO_C" >&6
29765 else
29766   ac_check_lib_save_LIBS=$LIBS
29767 LIBS="-lsec  $LIBS"
29768 cat >conftest.$ac_ext <<_ACEOF
29769 /* confdefs.h.  */
29770 _ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h.  */
29774
29775 /* Override any GCC internal prototype to avoid an error.
29776    Use char because int might match the return type of a GCC
29777    builtin and then its argument prototype would still apply.  */
29778 #ifdef __cplusplus
29779 extern "C"
29780 #endif
29781 char acltotext ();
29782 int
29783 main ()
29784 {
29785 return acltotext ();
29786   ;
29787   return 0;
29788 }
29789 _ACEOF
29790 rm -f conftest.$ac_objext conftest$ac_exeext
29791 if { (ac_try="$ac_link"
29792 case "(($ac_try" in
29793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794   *) ac_try_echo=$ac_try;;
29795 esac
29796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29797   (eval "$ac_link") 2>conftest.er1
29798   ac_status=$?
29799   grep -v '^ *+' conftest.er1 >conftest.err
29800   rm -f conftest.er1
29801   cat conftest.err >&5
29802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803   (exit $ac_status); } && {
29804          test -z "$ac_c_werror_flag" ||
29805          test ! -s conftest.err
29806        } && test -s conftest$ac_exeext &&
29807        $as_test_x conftest$ac_exeext; then
29808   ac_cv_lib_sec_acltotext=yes
29809 else
29810   echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29812
29813         ac_cv_lib_sec_acltotext=no
29814 fi
29815
29816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29817       conftest$ac_exeext conftest.$ac_ext
29818 LIBS=$ac_check_lib_save_LIBS
29819 fi
29820 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29821 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29822 if test $ac_cv_lib_sec_acltotext = yes; then
29823   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29824 fi
29825
29826
29827 fi
29828
29829
29830 fi
29831
29832 if test $have_acl = yes; then
29833    cat >>confdefs.h <<\_ACEOF
29834 #define HAVE_ACL 1
29835 _ACEOF
29836
29837 fi
29838
29839 PTHREAD_LIB=""
29840 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29841 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29842 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29843   echo $ECHO_N "(cached) $ECHO_C" >&6
29844 else
29845   ac_check_lib_save_LIBS=$LIBS
29846 LIBS="-lpthread  $LIBS"
29847 cat >conftest.$ac_ext <<_ACEOF
29848 /* confdefs.h.  */
29849 _ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h.  */
29853
29854 /* Override any GCC internal prototype to avoid an error.
29855    Use char because int might match the return type of a GCC
29856    builtin and then its argument prototype would still apply.  */
29857 #ifdef __cplusplus
29858 extern "C"
29859 #endif
29860 char pthread_create ();
29861 int
29862 main ()
29863 {
29864 return pthread_create ();
29865   ;
29866   return 0;
29867 }
29868 _ACEOF
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (ac_try="$ac_link"
29871 case "(($ac_try" in
29872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873   *) ac_try_echo=$ac_try;;
29874 esac
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876   (eval "$ac_link") 2>conftest.er1
29877   ac_status=$?
29878   grep -v '^ *+' conftest.er1 >conftest.err
29879   rm -f conftest.er1
29880   cat conftest.err >&5
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); } && {
29883          test -z "$ac_c_werror_flag" ||
29884          test ! -s conftest.err
29885        } && test -s conftest$ac_exeext &&
29886        $as_test_x conftest$ac_exeext; then
29887   ac_cv_lib_pthread_pthread_create=yes
29888 else
29889   echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29891
29892         ac_cv_lib_pthread_pthread_create=no
29893 fi
29894
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896       conftest$ac_exeext conftest.$ac_ext
29897 LIBS=$ac_check_lib_save_LIBS
29898 fi
29899 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29900 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29901 if test $ac_cv_lib_pthread_pthread_create = yes; then
29902   PTHREAD_LIB="-lpthread"
29903 else
29904   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29905 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29906 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29907   echo $ECHO_N "(cached) $ECHO_C" >&6
29908 else
29909   ac_check_lib_save_LIBS=$LIBS
29910 LIBS="-lpthreads  $LIBS"
29911 cat >conftest.$ac_ext <<_ACEOF
29912 /* confdefs.h.  */
29913 _ACEOF
29914 cat confdefs.h >>conftest.$ac_ext
29915 cat >>conftest.$ac_ext <<_ACEOF
29916 /* end confdefs.h.  */
29917
29918 /* Override any GCC internal prototype to avoid an error.
29919    Use char because int might match the return type of a GCC
29920    builtin and then its argument prototype would still apply.  */
29921 #ifdef __cplusplus
29922 extern "C"
29923 #endif
29924 char pthread_create ();
29925 int
29926 main ()
29927 {
29928 return pthread_create ();
29929   ;
29930   return 0;
29931 }
29932 _ACEOF
29933 rm -f conftest.$ac_objext conftest$ac_exeext
29934 if { (ac_try="$ac_link"
29935 case "(($ac_try" in
29936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937   *) ac_try_echo=$ac_try;;
29938 esac
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940   (eval "$ac_link") 2>conftest.er1
29941   ac_status=$?
29942   grep -v '^ *+' conftest.er1 >conftest.err
29943   rm -f conftest.er1
29944   cat conftest.err >&5
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); } && {
29947          test -z "$ac_c_werror_flag" ||
29948          test ! -s conftest.err
29949        } && test -s conftest$ac_exeext &&
29950        $as_test_x conftest$ac_exeext; then
29951   ac_cv_lib_pthreads_pthread_create=yes
29952 else
29953   echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956         ac_cv_lib_pthreads_pthread_create=no
29957 fi
29958
29959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29960       conftest$ac_exeext conftest.$ac_ext
29961 LIBS=$ac_check_lib_save_LIBS
29962 fi
29963 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29964 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29965 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29966   PTHREAD_LIB="-lpthreads"
29967 else
29968   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29969 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29970 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29971   echo $ECHO_N "(cached) $ECHO_C" >&6
29972 else
29973   ac_check_lib_save_LIBS=$LIBS
29974 LIBS="-lc_r  $LIBS"
29975 cat >conftest.$ac_ext <<_ACEOF
29976 /* confdefs.h.  */
29977 _ACEOF
29978 cat confdefs.h >>conftest.$ac_ext
29979 cat >>conftest.$ac_ext <<_ACEOF
29980 /* end confdefs.h.  */
29981
29982 /* Override any GCC internal prototype to avoid an error.
29983    Use char because int might match the return type of a GCC
29984    builtin and then its argument prototype would still apply.  */
29985 #ifdef __cplusplus
29986 extern "C"
29987 #endif
29988 char pthread_create ();
29989 int
29990 main ()
29991 {
29992 return pthread_create ();
29993   ;
29994   return 0;
29995 }
29996 _ACEOF
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (ac_try="$ac_link"
29999 case "(($ac_try" in
30000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001   *) ac_try_echo=$ac_try;;
30002 esac
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004   (eval "$ac_link") 2>conftest.er1
30005   ac_status=$?
30006   grep -v '^ *+' conftest.er1 >conftest.err
30007   rm -f conftest.er1
30008   cat conftest.err >&5
30009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010   (exit $ac_status); } && {
30011          test -z "$ac_c_werror_flag" ||
30012          test ! -s conftest.err
30013        } && test -s conftest$ac_exeext &&
30014        $as_test_x conftest$ac_exeext; then
30015   ac_cv_lib_c_r_pthread_create=yes
30016 else
30017   echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30019
30020         ac_cv_lib_c_r_pthread_create=no
30021 fi
30022
30023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30024       conftest$ac_exeext conftest.$ac_ext
30025 LIBS=$ac_check_lib_save_LIBS
30026 fi
30027 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30028 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30029 if test $ac_cv_lib_c_r_pthread_create = yes; then
30030   PTHREAD_LIB="-lc_r"
30031 else
30032   { echo "$as_me:$LINENO: checking for pthread_create" >&5
30033 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30034 if test "${ac_cv_func_pthread_create+set}" = set; then
30035   echo $ECHO_N "(cached) $ECHO_C" >&6
30036 else
30037   cat >conftest.$ac_ext <<_ACEOF
30038 /* confdefs.h.  */
30039 _ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h.  */
30043 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30045 #define pthread_create innocuous_pthread_create
30046
30047 /* System header to define __stub macros and hopefully few prototypes,
30048     which can conflict with char pthread_create (); below.
30049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30050     <limits.h> exists even on freestanding compilers.  */
30051
30052 #ifdef __STDC__
30053 # include <limits.h>
30054 #else
30055 # include <assert.h>
30056 #endif
30057
30058 #undef pthread_create
30059
30060 /* Override any GCC internal prototype to avoid an error.
30061    Use char because int might match the return type of a GCC
30062    builtin and then its argument prototype would still apply.  */
30063 #ifdef __cplusplus
30064 extern "C"
30065 #endif
30066 char pthread_create ();
30067 /* The GNU C library defines this for functions which it implements
30068     to always fail with ENOSYS.  Some functions are actually named
30069     something starting with __ and the normal name is an alias.  */
30070 #if defined __stub_pthread_create || defined __stub___pthread_create
30071 choke me
30072 #endif
30073
30074 int
30075 main ()
30076 {
30077 return pthread_create ();
30078   ;
30079   return 0;
30080 }
30081 _ACEOF
30082 rm -f conftest.$ac_objext conftest$ac_exeext
30083 if { (ac_try="$ac_link"
30084 case "(($ac_try" in
30085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086   *) ac_try_echo=$ac_try;;
30087 esac
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089   (eval "$ac_link") 2>conftest.er1
30090   ac_status=$?
30091   grep -v '^ *+' conftest.er1 >conftest.err
30092   rm -f conftest.er1
30093   cat conftest.err >&5
30094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); } && {
30096          test -z "$ac_c_werror_flag" ||
30097          test ! -s conftest.err
30098        } && test -s conftest$ac_exeext &&
30099        $as_test_x conftest$ac_exeext; then
30100   ac_cv_func_pthread_create=yes
30101 else
30102   echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30104
30105         ac_cv_func_pthread_create=no
30106 fi
30107
30108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30109       conftest$ac_exeext conftest.$ac_ext
30110 fi
30111 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30112 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30113
30114
30115 fi
30116
30117
30118 fi
30119
30120
30121 fi
30122
30123
30124
30125 cat >>confdefs.h <<\_ACEOF
30126 #define FDLIBS 1
30127 _ACEOF
30128
30129
30130
30131 CFLAGS=${CFLAGS--O}
30132
30133 if test x$have_gcc = xyes ; then
30134    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30135    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30136 fi
30137 LDFLAGS=${LDFLAGS--O}
30138 DB_LIBS="${SQL_LFLAGS}"
30139 CPPFLAGS="$CPPFLAGS"
30140 CFLAGS="$CFLAGS"
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157 OBJLIST=
30158
30159
30160 lld="lld"
30161 llu="llu"
30162
30163 WCFLAGS=
30164 WLDFLAGS=
30165
30166 #
30167 # Finally we set appropriate distribution specific
30168 #  variables and defaults
30169 #
30170 # PFILES are platform specific files
30171 PFILES="platforms/Makefile"
30172 PSCMD="ps -e"
30173 WIN32=
30174 MACOSX=
30175 hostname=`uname -n | cut -d '.' -f 1`
30176 if test x${hostname} = x ; then
30177   hostname="localhost"
30178 fi
30179 case "$DISTNAME" in
30180 aix)
30181         DISTVER=`uname -r`
30182         PSCMD="ps -e -o pid,comm"
30183         PFILES="${PFILES} \
30184            platforms/aix/Makefile"
30185         TAPEDRIVE="/dev/rmt0.1"
30186   ;;
30187 alpha)
30188         DISTVER=`uname -r`
30189         PTHREAD_LIB="-lpthread -lexc"
30190         if test "${CC}" = "gcc" ; then
30191            lld="lld"
30192            llu="llu"
30193         else
30194            lld="ld"
30195            llu="lu"
30196         fi
30197         TAPEDRIVE="/dev/nrmt0"
30198   ;;
30199 bsdi)
30200         DISTVER=`uname -a |awk '{print $3}'`
30201         TAPEDRIVE="/dev/nrmt0"
30202         PTHREAD_LIB="-pthread"
30203         CFLAGS="${CFLAGS} -pthread"
30204         PSCMD="ps -ax -o pid,command"
30205         lld="qd"
30206         llu="qu"
30207         PFILES="${PFILES} \
30208             platforms/bsdi/Makefile \
30209             platforms/bsdi/bacula-fd \
30210             platforms/bsdi/bacula-sd \
30211             platforms/bsdi/bacula-dir"
30212         largefile_support="yes"
30213   ;;
30214 cygwin)
30215         DISTVER=`uname -a |awk '{print $3}'`
30216         TAPEDRIVE="/dev/nrst0"
30217         WIN32=win32
30218         WCFLAGS="-mwindows"
30219         WLDFLAGS="-mwindows"
30220   ;;
30221 darwin)
30222         DISTVER=`uname -r`
30223         TAPEDRIVE="/dev/nst0"
30224         PSCMD="ps -e -o pid,command"
30225         MACOSX=macosx
30226         PFILES="${PFILES} \
30227            platforms/darwin/Makefile"
30228   ;;
30229 debian)
30230         if `grep -q ubuntu /etc/apt/sources.list`; then
30231            DISTNAME="ubuntu"
30232         fi
30233         DISTVER=`cat /etc/debian_version`
30234         if test -f /etc/lsb-release ; then
30235            . /etc/lsb-release
30236            if test "x$DISTRIB_ID" != "x" ; then
30237               DISTNAME=$DISTRIB_ID
30238            fi
30239            if test "x$DISTRIB_RELEASE" != "x" ; then
30240               DISTVER=$DISTRIB_RELEASE
30241            fi
30242         fi
30243         if test "$DISTNAME" = "Ubuntu" ; then
30244            DISTNAME="ubuntu"
30245         fi
30246         TAPEDRIVE="/dev/nst0"
30247         PSCMD="ps -e -o pid,command"
30248         if test "$DISTNAME" = "ubuntu" ; then
30249            PFILES="${PFILES} \
30250               platforms/ubuntu/Makefile \
30251               platforms/ubuntu/bacula-fd \
30252               platforms/ubuntu/bacula-sd \
30253               platforms/ubuntu/bacula-dir"
30254         else
30255            PFILES="${PFILES} \
30256               platforms/debian/Makefile \
30257               platforms/debian/bacula-fd \
30258               platforms/debian/bacula-sd \
30259               platforms/debian/bacula-dir"
30260         fi
30261   ;;
30262 freebsd)
30263         DISTVER=`uname -a |awk '{print $3}'`
30264         VER=`echo $DISTVER | cut -c 1`
30265         if test x$VER = x4 ; then
30266            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30267            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30268         fi
30269         lld="qd"
30270         llu="qu"
30271         TAPEDRIVE="/dev/nrsa0"
30272         PSCMD="ps -ax -o pid,command"
30273         PFILES="${PFILES} \
30274             platforms/freebsd/Makefile \
30275             platforms/freebsd/bacula-fd \
30276             platforms/freebsd/bacula-sd \
30277             platforms/freebsd/bacula-dir"
30278         largefile_support="yes"
30279   ;;
30280 hpux)
30281         PSCMD="UNIX95=1; ps -e -o pid,comm"
30282         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30283         DISTVER=`uname -r`
30284         TAPEDRIVE="/dev/rmt/0hnb"
30285         PTHREAD_LIB="-lpthread"
30286         cat >>confdefs.h <<\_ACEOF
30287 #define _INCLUDE_LONGLONG 1
30288 _ACEOF
30289
30290   ;;
30291 irix)
30292         DISTVER=`uname -r`
30293         TAPEDRIVE="/dev/rmt/0cbn"
30294         PSCMD="ps -e -o pid,comm"
30295         PFILES="${PFILES} \
30296             platforms/irix/Makefile \
30297             platforms/irix/bacula-fd \
30298             platforms/irix/bacula-sd \
30299             platforms/irix/bacula-dir"
30300   ;;
30301 netbsd)
30302         DISTVER=`uname -a |awk '{print $3}'`
30303         lld="qd"
30304         llu="qu"
30305         TAPEDRIVE="/dev/nrst0"
30306         PSCMD="ps -ax -o pid,command"
30307         PTHREAD_LIB="-pthread"
30308         CFLAGS="${CFLAGS} -pthread"
30309   ;;
30310 openbsd)
30311         DISTVER=`uname -a |awk '{print $3}'`
30312         lld="qd"
30313         llu="qu"
30314         TAPEDRIVE="/dev/nrst0"
30315         PSCMD="ps -ax -o pid,command"
30316         PTHREAD_LIB="-pthread"
30317         CFLAGS="${CFLAGS} -pthread"
30318         PFILES="${PFILES} \
30319             platforms/openbsd/Makefile \
30320             platforms/openbsd/bacula-fd \
30321             platforms/openbsd/bacula-sd \
30322             platforms/openbsd/bacula-dir"
30323   ;;
30324 redhat)
30325         if test -f /etc/whitebox-release ; then
30326            f=/etc/whitebox-release
30327         else
30328            f=/etc/redhat-release
30329         fi
30330         if test `cat $f | grep release |\
30331                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30332            DISTVER="Enterprise "`cat $f | grep release |\
30333                     cut -f 6 -d ' '`
30334         else
30335             DISTVER=`cat /etc/redhat-release | grep release |\
30336                      cut -f 5 -d ' '`
30337         fi
30338         TAPEDRIVE="/dev/nst0"
30339         PSCMD="ps -e -o pid,command"
30340         PFILES="${PFILES} \
30341             platforms/redhat/Makefile \
30342             platforms/redhat/bacula-fd \
30343             platforms/redhat/bacula-sd \
30344             platforms/redhat/bacula-dir \
30345             platforms/redhat/bacula.spec \
30346             "
30347   ;;
30348 mandrake)
30349         DISTVER=`cat /etc/mandrake-release | grep release |\
30350            cut -f 5 -d ' '`
30351         TAPEDRIVE="/dev/nst0"
30352         PSCMD="ps -e -o pid,command"
30353         PFILES="${PFILES} \
30354             platforms/mandrake/Makefile \
30355             platforms/mandrake/bacula-fd \
30356             platforms/mandrake/bacula-sd \
30357             platforms/mandrake/bacula-dir \
30358             platforms/mandrake/bacula.spec \
30359             "
30360   ;;
30361 gentoo)
30362         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30363         TAPEDRIVE="/dev/nst0"
30364         PSCMD="ps -e -o pid,command"
30365         PFILES="${PFILES} \
30366             platforms/gentoo/Makefile \
30367          platforms/gentoo/bacula-init \
30368             platforms/gentoo/bacula-fd \
30369             platforms/gentoo/bacula-sd \
30370             platforms/gentoo/bacula-dir"
30371   ;;
30372 slackware)
30373         DISTVER=`cat /etc/slackware-version`
30374         TAPEDRIVE="/dev/nst0"
30375         PSCMD="ps -e -o pid,command"
30376         PFILES="${PFILES} \
30377             platforms/slackware/Makefile \
30378             platforms/slackware/rc.bacula-fd \
30379             platforms/slackware/rc.bacula-sd \
30380             platforms/slackware/rc.bacula-dir\
30381             platforms/slackware/functions.bacula"
30382   ;;
30383 solaris)
30384         DISTVER=`uname -r`
30385         TAPEDRIVE="/dev/rmt/0cbn"
30386         PSCMD="ps -e -o pid,comm"
30387         PFILES="${PFILES} \
30388             platforms/solaris/Makefile \
30389             platforms/solaris/bacula-fd \
30390             platforms/solaris/bacula-sd \
30391             platforms/solaris/bacula-dir"
30392         if test x$DISTVER = x5.6 ; then
30393             cat >>confdefs.h <<\_ACEOF
30394 #define HAVE_OLD_SOCKOPT 1
30395 _ACEOF
30396
30397         fi
30398         LIBS="$LIBS -lresolv"
30399   ;;
30400 suse)
30401         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30402             cut -f 3 -d ' '`
30403         TAPEDRIVE="/dev/nst0"
30404         PSCMD="ps -e -o pid,command"
30405         PFILES="${PFILES} \
30406             platforms/suse/Makefile \
30407             platforms/suse/bacula-fd \
30408             platforms/suse/bacula-sd \
30409             platforms/suse/bacula-dir \
30410             platforms/suse/bacula \
30411             platforms/suse/bacula.spec"
30412   ;;
30413 suse5)
30414         DISTNAME=suse
30415         DISTVER=5.x
30416         TAPEDRIVE="/dev/nst0"
30417         PSCMD="ps -e -o pid,command"
30418         PFILES="${PFILES} \
30419             platforms/suse/Makefile \
30420             platforms/suse/bacula-fd \
30421             platforms/suse/bacula-sd \
30422             platforms/suse/bacula-dir"
30423   ;;
30424 unknown)
30425         DISTVER=unknown
30426         TAPEDRIVE="/dev/nst0"
30427   ;;
30428 *)
30429   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30430   ;;
30431 esac
30432
30433
30434
30435 LIBS="$PTHREAD_LIB $LIBS"
30436
30437 cat >>confdefs.h <<_ACEOF
30438 #define lld "$lld"
30439 _ACEOF
30440
30441 cat >>confdefs.h <<_ACEOF
30442 #define llu "$llu"
30443 _ACEOF
30444
30445
30446
30447
30448
30449
30450
30451
30452 MCOMMON=./autoconf/Make.common
30453
30454
30455 if test "x${subsysdir}" = "x${sbindir}" ; then
30456    echo " "
30457    echo " "
30458    echo "You have set both --sbindir and --with-subsys-dir"
30459    echo "  equal to: ${subsysdir} "
30460    echo "This is not permitted. Please reconfigure."
30461    echo " "
30462    echo "Aborting configuration ..."
30463    echo " "
30464    echo " "
30465    exit 1
30466 fi
30467
30468 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
30469
30470 ac_config_commands="$ac_config_commands default"
30471
30472 cat >confcache <<\_ACEOF
30473 # This file is a shell script that caches the results of configure
30474 # tests run on this system so they can be shared between configure
30475 # scripts and configure runs, see configure's option --config-cache.
30476 # It is not useful on other systems.  If it contains results you don't
30477 # want to keep, you may remove or edit it.
30478 #
30479 # config.status only pays attention to the cache file if you give it
30480 # the --recheck option to rerun configure.
30481 #
30482 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30483 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30484 # following values.
30485
30486 _ACEOF
30487
30488 # The following way of writing the cache mishandles newlines in values,
30489 # but we know of no workaround that is simple, portable, and efficient.
30490 # So, we kill variables containing newlines.
30491 # Ultrix sh set writes to stderr and can't be redirected directly,
30492 # and sets the high bit in the cache file unless we assign to the vars.
30493 (
30494   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30495     eval ac_val=\$$ac_var
30496     case $ac_val in #(
30497     *${as_nl}*)
30498       case $ac_var in #(
30499       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30500 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30501       esac
30502       case $ac_var in #(
30503       _ | IFS | as_nl) ;; #(
30504       *) $as_unset $ac_var ;;
30505       esac ;;
30506     esac
30507   done
30508
30509   (set) 2>&1 |
30510     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30511     *${as_nl}ac_space=\ *)
30512       # `set' does not quote correctly, so add quotes (double-quote
30513       # substitution turns \\\\ into \\, and sed turns \\ into \).
30514       sed -n \
30515         "s/'/'\\\\''/g;
30516           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30517       ;; #(
30518     *)
30519       # `set' quotes correctly as required by POSIX, so do not add quotes.
30520       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30521       ;;
30522     esac |
30523     sort
30524 ) |
30525   sed '
30526      /^ac_cv_env_/b end
30527      t clear
30528      :clear
30529      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30530      t end
30531      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30532      :end' >>confcache
30533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30534   if test -w "$cache_file"; then
30535     test "x$cache_file" != "x/dev/null" &&
30536       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30537 echo "$as_me: updating cache $cache_file" >&6;}
30538     cat confcache >$cache_file
30539   else
30540     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30541 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30542   fi
30543 fi
30544 rm -f confcache
30545
30546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30547 # Let make expand exec_prefix.
30548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30549
30550 DEFS=-DHAVE_CONFIG_H
30551
30552 ac_libobjs=
30553 ac_ltlibobjs=
30554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30555   # 1. Remove the extension, and $U if already installed.
30556   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30557   ac_i=`echo "$ac_i" | sed "$ac_script"`
30558   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30559   #    will be set to the directory where LIBOBJS objects are built.
30560   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30561   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30562 done
30563 LIBOBJS=$ac_libobjs
30564
30565 LTLIBOBJS=$ac_ltlibobjs
30566
30567
30568
30569 : ${CONFIG_STATUS=./config.status}
30570 ac_clean_files_save=$ac_clean_files
30571 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30572 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30573 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30574 cat >$CONFIG_STATUS <<_ACEOF
30575 #! $SHELL
30576 # Generated by $as_me.
30577 # Run this file to recreate the current configuration.
30578 # Compiler output produced by configure, useful for debugging
30579 # configure, is in config.log if it exists.
30580
30581 debug=false
30582 ac_cs_recheck=false
30583 ac_cs_silent=false
30584 SHELL=\${CONFIG_SHELL-$SHELL}
30585 _ACEOF
30586
30587 cat >>$CONFIG_STATUS <<\_ACEOF
30588 ## --------------------- ##
30589 ## M4sh Initialization.  ##
30590 ## --------------------- ##
30591
30592 # Be more Bourne compatible
30593 DUALCASE=1; export DUALCASE # for MKS sh
30594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30595   emulate sh
30596   NULLCMD=:
30597   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30598   # is contrary to our usage.  Disable this feature.
30599   alias -g '${1+"$@"}'='"$@"'
30600   setopt NO_GLOB_SUBST
30601 else
30602   case `(set -o) 2>/dev/null` in
30603   *posix*) set -o posix ;;
30604 esac
30605
30606 fi
30607
30608
30609
30610
30611 # PATH needs CR
30612 # Avoid depending upon Character Ranges.
30613 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30614 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30615 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30616 as_cr_digits='0123456789'
30617 as_cr_alnum=$as_cr_Letters$as_cr_digits
30618
30619 # The user is always right.
30620 if test "${PATH_SEPARATOR+set}" != set; then
30621   echo "#! /bin/sh" >conf$$.sh
30622   echo  "exit 0"   >>conf$$.sh
30623   chmod +x conf$$.sh
30624   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30625     PATH_SEPARATOR=';'
30626   else
30627     PATH_SEPARATOR=:
30628   fi
30629   rm -f conf$$.sh
30630 fi
30631
30632 # Support unset when possible.
30633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30634   as_unset=unset
30635 else
30636   as_unset=false
30637 fi
30638
30639
30640 # IFS
30641 # We need space, tab and new line, in precisely that order.  Quoting is
30642 # there to prevent editors from complaining about space-tab.
30643 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30644 # splitting by setting IFS to empty value.)
30645 as_nl='
30646 '
30647 IFS=" ""        $as_nl"
30648
30649 # Find who we are.  Look in the path if we contain no directory separator.
30650 case $0 in
30651   *[\\/]* ) as_myself=$0 ;;
30652   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30653 for as_dir in $PATH
30654 do
30655   IFS=$as_save_IFS
30656   test -z "$as_dir" && as_dir=.
30657   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30658 done
30659 IFS=$as_save_IFS
30660
30661      ;;
30662 esac
30663 # We did not find ourselves, most probably we were run as `sh COMMAND'
30664 # in which case we are not to be found in the path.
30665 if test "x$as_myself" = x; then
30666   as_myself=$0
30667 fi
30668 if test ! -f "$as_myself"; then
30669   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30670   { (exit 1); exit 1; }
30671 fi
30672
30673 # Work around bugs in pre-3.0 UWIN ksh.
30674 for as_var in ENV MAIL MAILPATH
30675 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30676 done
30677 PS1='$ '
30678 PS2='> '
30679 PS4='+ '
30680
30681 # NLS nuisances.
30682 for as_var in \
30683   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30684   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30685   LC_TELEPHONE LC_TIME
30686 do
30687   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30688     eval $as_var=C; export $as_var
30689   else
30690     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30691   fi
30692 done
30693
30694 # Required to use basename.
30695 if expr a : '\(a\)' >/dev/null 2>&1 &&
30696    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30697   as_expr=expr
30698 else
30699   as_expr=false
30700 fi
30701
30702 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30703   as_basename=basename
30704 else
30705   as_basename=false
30706 fi
30707
30708
30709 # Name of the executable.
30710 as_me=`$as_basename -- "$0" ||
30711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30712          X"$0" : 'X\(//\)$' \| \
30713          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30714 echo X/"$0" |
30715     sed '/^.*\/\([^/][^/]*\)\/*$/{
30716             s//\1/
30717             q
30718           }
30719           /^X\/\(\/\/\)$/{
30720             s//\1/
30721             q
30722           }
30723           /^X\/\(\/\).*/{
30724             s//\1/
30725             q
30726           }
30727           s/.*/./; q'`
30728
30729 # CDPATH.
30730 $as_unset CDPATH
30731
30732
30733
30734   as_lineno_1=$LINENO
30735   as_lineno_2=$LINENO
30736   test "x$as_lineno_1" != "x$as_lineno_2" &&
30737   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30738
30739   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30740   # uniformly replaced by the line number.  The first 'sed' inserts a
30741   # line-number line after each line using $LINENO; the second 'sed'
30742   # does the real work.  The second script uses 'N' to pair each
30743   # line-number line with the line containing $LINENO, and appends
30744   # trailing '-' during substitution so that $LINENO is not a special
30745   # case at line end.
30746   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30747   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30748   # E. McMahon (1931-1989) for sed's syntax.  :-)
30749   sed -n '
30750     p
30751     /[$]LINENO/=
30752   ' <$as_myself |
30753     sed '
30754       s/[$]LINENO.*/&-/
30755       t lineno
30756       b
30757       :lineno
30758       N
30759       :loop
30760       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30761       t loop
30762       s/-\n.*//
30763     ' >$as_me.lineno &&
30764   chmod +x "$as_me.lineno" ||
30765     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30766    { (exit 1); exit 1; }; }
30767
30768   # Don't try to exec as it changes $[0], causing all sort of problems
30769   # (the dirname of $[0] is not the place where we might find the
30770   # original and so on.  Autoconf is especially sensitive to this).
30771   . "./$as_me.lineno"
30772   # Exit status is that of the last command.
30773   exit
30774 }
30775
30776
30777 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30778   as_dirname=dirname
30779 else
30780   as_dirname=false
30781 fi
30782
30783 ECHO_C= ECHO_N= ECHO_T=
30784 case `echo -n x` in
30785 -n*)
30786   case `echo 'x\c'` in
30787   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30788   *)   ECHO_C='\c';;
30789   esac;;
30790 *)
30791   ECHO_N='-n';;
30792 esac
30793
30794 if expr a : '\(a\)' >/dev/null 2>&1 &&
30795    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30796   as_expr=expr
30797 else
30798   as_expr=false
30799 fi
30800
30801 rm -f conf$$ conf$$.exe conf$$.file
30802 if test -d conf$$.dir; then
30803   rm -f conf$$.dir/conf$$.file
30804 else
30805   rm -f conf$$.dir
30806   mkdir conf$$.dir
30807 fi
30808 echo >conf$$.file
30809 if ln -s conf$$.file conf$$ 2>/dev/null; then
30810   as_ln_s='ln -s'
30811   # ... but there are two gotchas:
30812   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30813   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30814   # In both cases, we have to default to `cp -p'.
30815   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30816     as_ln_s='cp -p'
30817 elif ln conf$$.file conf$$ 2>/dev/null; then
30818   as_ln_s=ln
30819 else
30820   as_ln_s='cp -p'
30821 fi
30822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30823 rmdir conf$$.dir 2>/dev/null
30824
30825 if mkdir -p . 2>/dev/null; then
30826   as_mkdir_p=:
30827 else
30828   test -d ./-p && rmdir ./-p
30829   as_mkdir_p=false
30830 fi
30831
30832 if test -x / >/dev/null 2>&1; then
30833   as_test_x='test -x'
30834 else
30835   if ls -dL / >/dev/null 2>&1; then
30836     as_ls_L_option=L
30837   else
30838     as_ls_L_option=
30839   fi
30840   as_test_x='
30841     eval sh -c '\''
30842       if test -d "$1"; then
30843         test -d "$1/.";
30844       else
30845         case $1 in
30846         -*)set "./$1";;
30847         esac;
30848         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30849         ???[sx]*):;;*)false;;esac;fi
30850     '\'' sh
30851   '
30852 fi
30853 as_executable_p=$as_test_x
30854
30855 # Sed expression to map a string onto a valid CPP name.
30856 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30857
30858 # Sed expression to map a string onto a valid variable name.
30859 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30860
30861
30862 exec 6>&1
30863
30864 # Save the log message, to keep $[0] and so on meaningful, and to
30865 # report actual input values of CONFIG_FILES etc. instead of their
30866 # values after options handling.
30867 ac_log="
30868 This file was extended by $as_me, which was
30869 generated by GNU Autoconf 2.61.  Invocation command line was
30870
30871   CONFIG_FILES    = $CONFIG_FILES
30872   CONFIG_HEADERS  = $CONFIG_HEADERS
30873   CONFIG_LINKS    = $CONFIG_LINKS
30874   CONFIG_COMMANDS = $CONFIG_COMMANDS
30875   $ $0 $@
30876
30877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30878 "
30879
30880 _ACEOF
30881
30882 cat >>$CONFIG_STATUS <<_ACEOF
30883 # Files that config.status was made for.
30884 config_files="$ac_config_files"
30885 config_headers="$ac_config_headers"
30886 config_commands="$ac_config_commands"
30887
30888 _ACEOF
30889
30890 cat >>$CONFIG_STATUS <<\_ACEOF
30891 ac_cs_usage="\
30892 \`$as_me' instantiates files from templates according to the
30893 current configuration.
30894
30895 Usage: $0 [OPTIONS] [FILE]...
30896
30897   -h, --help       print this help, then exit
30898   -V, --version    print version number and configuration settings, then exit
30899   -q, --quiet      do not print progress messages
30900   -d, --debug      don't remove temporary files
30901       --recheck    update $as_me by reconfiguring in the same conditions
30902   --file=FILE[:TEMPLATE]
30903                    instantiate the configuration file FILE
30904   --header=FILE[:TEMPLATE]
30905                    instantiate the configuration header FILE
30906
30907 Configuration files:
30908 $config_files
30909
30910 Configuration headers:
30911 $config_headers
30912
30913 Configuration commands:
30914 $config_commands
30915
30916 Report bugs to <bug-autoconf@gnu.org>."
30917
30918 _ACEOF
30919 cat >>$CONFIG_STATUS <<_ACEOF
30920 ac_cs_version="\\
30921 config.status
30922 configured by $0, generated by GNU Autoconf 2.61,
30923   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30924
30925 Copyright (C) 2006 Free Software Foundation, Inc.
30926 This config.status script is free software; the Free Software Foundation
30927 gives unlimited permission to copy, distribute and modify it."
30928
30929 ac_pwd='$ac_pwd'
30930 srcdir='$srcdir'
30931 INSTALL='$INSTALL'
30932 _ACEOF
30933
30934 cat >>$CONFIG_STATUS <<\_ACEOF
30935 # If no file are specified by the user, then we need to provide default
30936 # value.  By we need to know if files were specified by the user.
30937 ac_need_defaults=:
30938 while test $# != 0
30939 do
30940   case $1 in
30941   --*=*)
30942     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30943     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30944     ac_shift=:
30945     ;;
30946   *)
30947     ac_option=$1
30948     ac_optarg=$2
30949     ac_shift=shift
30950     ;;
30951   esac
30952
30953   case $ac_option in
30954   # Handling of the options.
30955   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30956     ac_cs_recheck=: ;;
30957   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30958     echo "$ac_cs_version"; exit ;;
30959   --debug | --debu | --deb | --de | --d | -d )
30960     debug=: ;;
30961   --file | --fil | --fi | --f )
30962     $ac_shift
30963     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30964     ac_need_defaults=false;;
30965   --header | --heade | --head | --hea )
30966     $ac_shift
30967     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30968     ac_need_defaults=false;;
30969   --he | --h)
30970     # Conflict between --help and --header
30971     { echo "$as_me: error: ambiguous option: $1
30972 Try \`$0 --help' for more information." >&2
30973    { (exit 1); exit 1; }; };;
30974   --help | --hel | -h )
30975     echo "$ac_cs_usage"; exit ;;
30976   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30977   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30978     ac_cs_silent=: ;;
30979
30980   # This is an error.
30981   -*) { echo "$as_me: error: unrecognized option: $1
30982 Try \`$0 --help' for more information." >&2
30983    { (exit 1); exit 1; }; } ;;
30984
30985   *) ac_config_targets="$ac_config_targets $1"
30986      ac_need_defaults=false ;;
30987
30988   esac
30989   shift
30990 done
30991
30992 ac_configure_extra_args=
30993
30994 if $ac_cs_silent; then
30995   exec 6>/dev/null
30996   ac_configure_extra_args="$ac_configure_extra_args --silent"
30997 fi
30998
30999 _ACEOF
31000 cat >>$CONFIG_STATUS <<_ACEOF
31001 if \$ac_cs_recheck; then
31002   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31003   CONFIG_SHELL=$SHELL
31004   export CONFIG_SHELL
31005   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31006 fi
31007
31008 _ACEOF
31009 cat >>$CONFIG_STATUS <<\_ACEOF
31010 exec 5>>config.log
31011 {
31012   echo
31013   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31014 ## Running $as_me. ##
31015 _ASBOX
31016   echo "$ac_log"
31017 } >&5
31018
31019 _ACEOF
31020 cat >>$CONFIG_STATUS <<_ACEOF
31021 #
31022 # INIT-COMMANDS
31023 #
31024 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31025     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31026     # from automake.
31027     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31028     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31029     LINGUAS="${LINGUAS-%UNSET%}"
31030
31031
31032 _ACEOF
31033
31034 cat >>$CONFIG_STATUS <<\_ACEOF
31035
31036 # Handling of arguments.
31037 for ac_config_target in $ac_config_targets
31038 do
31039   case $ac_config_target in
31040     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31041     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31042     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31043     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31044     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31045     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31046     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31047     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31048     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31049     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31050     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31051     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31052     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31053     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31054     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31055     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31056     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31057     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31058     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31059     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31060     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31061     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31062     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31063     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31064     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31065     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31066     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31067     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31068     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31069     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31070     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31071     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31072     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31073     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31074     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31075     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31076     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31077     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31078     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31079     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31080     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31081     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31082     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31083     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31084     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31085     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31086     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31087     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31088     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31089     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31090     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31091     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31092     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31093     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31094     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31095     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31096     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31097     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31098     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31099     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31100     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31101     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31102     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31103     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31104     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31105     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31106     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31107     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31108     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31109     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31110     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31111     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31112     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31113     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31114     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31115     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31116     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31117     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31118     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31119     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31120     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31121     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31122     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31123     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31124     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31125     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31126     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31127     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31128     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31129     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31130     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31131     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31132     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31133     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31134     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31135     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31136     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31137     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31138     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31139     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31140     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31141     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31142     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31143     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31144     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31145     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31146     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31147     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31148     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31149     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31150
31151   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31152 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31153    { (exit 1); exit 1; }; };;
31154   esac
31155 done
31156
31157
31158 # If the user did not use the arguments to specify the items to instantiate,
31159 # then the envvar interface is used.  Set only those that are not.
31160 # We use the long form for the default assignment because of an extremely
31161 # bizarre bug on SunOS 4.1.3.
31162 if $ac_need_defaults; then
31163   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31164   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31165   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31166 fi
31167
31168 # Have a temporary directory for convenience.  Make it in the build tree
31169 # simply because there is no reason against having it here, and in addition,
31170 # creating and moving files from /tmp can sometimes cause problems.
31171 # Hook for its removal unless debugging.
31172 # Note that there is a small window in which the directory will not be cleaned:
31173 # after its creation but before its name has been assigned to `$tmp'.
31174 $debug ||
31175 {
31176   tmp=
31177   trap 'exit_status=$?
31178   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31179 ' 0
31180   trap '{ (exit 1); exit 1; }' 1 2 13 15
31181 }
31182 # Create a (secure) tmp directory for tmp files.
31183
31184 {
31185   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31186   test -n "$tmp" && test -d "$tmp"
31187 }  ||
31188 {
31189   tmp=./conf$$-$RANDOM
31190   (umask 077 && mkdir "$tmp")
31191 } ||
31192 {
31193    echo "$me: cannot create a temporary directory in ." >&2
31194    { (exit 1); exit 1; }
31195 }
31196
31197 #
31198 # Set up the sed scripts for CONFIG_FILES section.
31199 #
31200
31201 # No need to generate the scripts if there are no CONFIG_FILES.
31202 # This happens for instance when ./config.status config.h
31203 if test -n "$CONFIG_FILES"; then
31204
31205 _ACEOF
31206
31207 # Create sed commands to just substitute file output variables.
31208
31209 # Remaining file output variables are in a fragment that also has non-file
31210 # output varibles.
31211
31212
31213
31214 ac_delim='%!_!# '
31215 for ac_last_try in false false false false false :; do
31216   cat >conf$$subs.sed <<_ACEOF
31217 SHELL!$SHELL$ac_delim
31218 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31219 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31220 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31221 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31222 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31223 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31224 exec_prefix!$exec_prefix$ac_delim
31225 prefix!$prefix$ac_delim
31226 program_transform_name!$program_transform_name$ac_delim
31227 bindir!$bindir$ac_delim
31228 sbindir!$sbindir$ac_delim
31229 libexecdir!$libexecdir$ac_delim
31230 datarootdir!$datarootdir$ac_delim
31231 datadir!$datadir$ac_delim
31232 sysconfdir!$sysconfdir$ac_delim
31233 sharedstatedir!$sharedstatedir$ac_delim
31234 localstatedir!$localstatedir$ac_delim
31235 includedir!$includedir$ac_delim
31236 oldincludedir!$oldincludedir$ac_delim
31237 docdir!$docdir$ac_delim
31238 infodir!$infodir$ac_delim
31239 htmldir!$htmldir$ac_delim
31240 dvidir!$dvidir$ac_delim
31241 pdfdir!$pdfdir$ac_delim
31242 psdir!$psdir$ac_delim
31243 libdir!$libdir$ac_delim
31244 localedir!$localedir$ac_delim
31245 mandir!$mandir$ac_delim
31246 DEFS!$DEFS$ac_delim
31247 ECHO_C!$ECHO_C$ac_delim
31248 ECHO_N!$ECHO_N$ac_delim
31249 ECHO_T!$ECHO_T$ac_delim
31250 LIBS!$LIBS$ac_delim
31251 build_alias!$build_alias$ac_delim
31252 host_alias!$host_alias$ac_delim
31253 target_alias!$target_alias$ac_delim
31254 BUILD_DIR!$BUILD_DIR$ac_delim
31255 TOP_DIR!$TOP_DIR$ac_delim
31256 TRUEPRG!$TRUEPRG$ac_delim
31257 FALSEPRG!$FALSEPRG$ac_delim
31258 VERSION!$VERSION$ac_delim
31259 DATE!$DATE$ac_delim
31260 LSMDATE!$LSMDATE$ac_delim
31261 CC!$CC$ac_delim
31262 CFLAGS!$CFLAGS$ac_delim
31263 LDFLAGS!$LDFLAGS$ac_delim
31264 CPPFLAGS!$CPPFLAGS$ac_delim
31265 ac_ct_CC!$ac_ct_CC$ac_delim
31266 EXEEXT!$EXEEXT$ac_delim
31267 OBJEXT!$OBJEXT$ac_delim
31268 CXX!$CXX$ac_delim
31269 CXXFLAGS!$CXXFLAGS$ac_delim
31270 ac_ct_CXX!$ac_ct_CXX$ac_delim
31271 CPP!$CPP$ac_delim
31272 GREP!$GREP$ac_delim
31273 EGREP!$EGREP$ac_delim
31274 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31275 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31276 INSTALL_DATA!$INSTALL_DATA$ac_delim
31277 RANLIB!$RANLIB$ac_delim
31278 MV!$MV$ac_delim
31279 RM!$RM$ac_delim
31280 CP!$CP$ac_delim
31281 SED!$SED$ac_delim
31282 ECHO!$ECHO$ac_delim
31283 CMP!$CMP$ac_delim
31284 TBL!$TBL$ac_delim
31285 AR!$AR$ac_delim
31286 OPENSSL!$OPENSSL$ac_delim
31287 MTX!$MTX$ac_delim
31288 DD!$DD$ac_delim
31289 MKISOFS!$MKISOFS$ac_delim
31290 PYTHON!$PYTHON$ac_delim
31291 GROWISOFS!$GROWISOFS$ac_delim
31292 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31293 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31294 PKGCONFIG!$PKGCONFIG$ac_delim
31295 QMAKE!$QMAKE$ac_delim
31296 QMAKEQT4!$QMAKEQT4$ac_delim
31297 WXCONFIG!$WXCONFIG$ac_delim
31298 WXFLAGS!$WXFLAGS$ac_delim
31299 CDRECORD!$CDRECORD$ac_delim
31300 PIDOF!$PIDOF$ac_delim
31301 AWK!$AWK$ac_delim
31302 ARFLAGS!$ARFLAGS$ac_delim
31303 MAKE_SHELL!$MAKE_SHELL$ac_delim
31304 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31305 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31306 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31307 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31308 build!$build$ac_delim
31309 build_cpu!$build_cpu$ac_delim
31310 build_vendor!$build_vendor$ac_delim
31311 _ACEOF
31312
31313   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31314     break
31315   elif $ac_last_try; then
31316     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31317 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31318    { (exit 1); exit 1; }; }
31319   else
31320     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31321   fi
31322 done
31323
31324 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31325 if test -n "$ac_eof"; then
31326   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31327   ac_eof=`expr $ac_eof + 1`
31328 fi
31329
31330 cat >>$CONFIG_STATUS <<_ACEOF
31331 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31333 /^[      ]*@MCOMMON@[    ]*$/{
31334 r $MCOMMON
31335 d
31336 }
31337 _ACEOF
31338 sed '
31339 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31340 s/^/s,@/; s/!/@,|#_!!_#|/
31341 :n
31342 t n
31343 s/'"$ac_delim"'$/,g/; t
31344 s/$/\\/; p
31345 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31346 ' >>$CONFIG_STATUS <conf$$subs.sed
31347 rm -f conf$$subs.sed
31348 cat >>$CONFIG_STATUS <<_ACEOF
31349 CEOF$ac_eof
31350 _ACEOF
31351
31352
31353 ac_delim='%!_!# '
31354 for ac_last_try in false false false false false :; do
31355   cat >conf$$subs.sed <<_ACEOF
31356 build_os!$build_os$ac_delim
31357 host!$host$ac_delim
31358 host_cpu!$host_cpu$ac_delim
31359 host_vendor!$host_vendor$ac_delim
31360 host_os!$host_os$ac_delim
31361 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31362 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31363 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31364 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31365 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31366 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31367 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31368 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31369 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31370 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31371 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31372 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31373 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31374 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31375 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31376 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31377 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31378 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31379 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31380 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31381 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31382 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31383 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31384 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31385 SET_MAKE!$SET_MAKE$ac_delim
31386 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31387 USE_NLS!$USE_NLS$ac_delim
31388 MSGFMT!$MSGFMT$ac_delim
31389 GMSGFMT!$GMSGFMT$ac_delim
31390 XGETTEXT!$XGETTEXT$ac_delim
31391 MSGMERGE!$MSGMERGE$ac_delim
31392 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31393 LIBICONV!$LIBICONV$ac_delim
31394 LTLIBICONV!$LTLIBICONV$ac_delim
31395 INTLLIBS!$INTLLIBS$ac_delim
31396 LIBINTL!$LIBINTL$ac_delim
31397 LTLIBINTL!$LTLIBINTL$ac_delim
31398 POSUB!$POSUB$ac_delim
31399 GLIBC2!$GLIBC2$ac_delim
31400 ALLOCA!$ALLOCA$ac_delim
31401 GLIBC21!$GLIBC21$ac_delim
31402 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31403 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31404 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31405 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31406 INTLBISON!$INTLBISON$ac_delim
31407 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31408 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31409 CATOBJEXT!$CATOBJEXT$ac_delim
31410 DATADIRNAME!$DATADIRNAME$ac_delim
31411 INSTOBJEXT!$INSTOBJEXT$ac_delim
31412 GENCAT!$GENCAT$ac_delim
31413 INTLOBJS!$INTLOBJS$ac_delim
31414 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31415 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31416 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31417 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31418 GNOME_LIBS!$GNOME_LIBS$ac_delim
31419 GNOME_DIR!$GNOME_DIR$ac_delim
31420 BAT_DIR!$BAT_DIR$ac_delim
31421 QWT_INC!$QWT_INC$ac_delim
31422 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31423 QWT_LIB!$QWT_LIB$ac_delim
31424 QWT!$QWT$ac_delim
31425 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31426 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31427 WX_DIR!$WX_DIR$ac_delim
31428 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31429 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31430 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31431 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31432 STATIC_FD!$STATIC_FD$ac_delim
31433 STATIC_SD!$STATIC_SD$ac_delim
31434 STATIC_DIR!$STATIC_DIR$ac_delim
31435 STATIC_CONS!$STATIC_CONS$ac_delim
31436 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31437 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31438 ALL_DIRS!$ALL_DIRS$ac_delim
31439 DIRD_DIR!$DIRD_DIR$ac_delim
31440 DIR_TOOLS!$DIR_TOOLS$ac_delim
31441 STORED_DIR!$STORED_DIR$ac_delim
31442 CONS_INC!$CONS_INC$ac_delim
31443 CONS_OBJ!$CONS_OBJ$ac_delim
31444 CONS_SRC!$CONS_SRC$ac_delim
31445 CONS_LIBS!$CONS_LIBS$ac_delim
31446 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31447 READLINE_SRC!$READLINE_SRC$ac_delim
31448 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31449 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31450 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31451 OPENSSL_INC!$OPENSSL_INC$ac_delim
31452 working_dir!$working_dir$ac_delim
31453 _ACEOF
31454
31455   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31456     break
31457   elif $ac_last_try; then
31458     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31459 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31460    { (exit 1); exit 1; }; }
31461   else
31462     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31463   fi
31464 done
31465
31466 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31467 if test -n "$ac_eof"; then
31468   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31469   ac_eof=`expr $ac_eof + 1`
31470 fi
31471
31472 cat >>$CONFIG_STATUS <<_ACEOF
31473 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31475 _ACEOF
31476 sed '
31477 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31478 s/^/s,@/; s/!/@,|#_!!_#|/
31479 :n
31480 t n
31481 s/'"$ac_delim"'$/,g/; t
31482 s/$/\\/; p
31483 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31484 ' >>$CONFIG_STATUS <conf$$subs.sed
31485 rm -f conf$$subs.sed
31486 cat >>$CONFIG_STATUS <<_ACEOF
31487 CEOF$ac_eof
31488 _ACEOF
31489
31490
31491 ac_delim='%!_!# '
31492 for ac_last_try in false false false false false :; do
31493   cat >conf$$subs.sed <<_ACEOF
31494 archivedir!$archivedir$ac_delim
31495 scriptdir!$scriptdir$ac_delim
31496 dump_email!$dump_email$ac_delim
31497 job_email!$job_email$ac_delim
31498 smtp_host!$smtp_host$ac_delim
31499 piddir!$piddir$ac_delim
31500 subsysdir!$subsysdir$ac_delim
31501 baseport!$baseport$ac_delim
31502 dir_port!$dir_port$ac_delim
31503 fd_port!$fd_port$ac_delim
31504 sd_port!$sd_port$ac_delim
31505 dir_password!$dir_password$ac_delim
31506 fd_password!$fd_password$ac_delim
31507 sd_password!$sd_password$ac_delim
31508 mon_dir_password!$mon_dir_password$ac_delim
31509 mon_fd_password!$mon_fd_password$ac_delim
31510 mon_sd_password!$mon_sd_password$ac_delim
31511 db_name!$db_name$ac_delim
31512 db_user!$db_user$ac_delim
31513 dir_user!$dir_user$ac_delim
31514 dir_group!$dir_group$ac_delim
31515 sd_user!$sd_user$ac_delim
31516 sd_group!$sd_group$ac_delim
31517 fd_user!$fd_user$ac_delim
31518 fd_group!$fd_group$ac_delim
31519 SBINPERM!$SBINPERM$ac_delim
31520 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31521 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31522 SQL_BINDIR!$SQL_BINDIR$ac_delim
31523 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31524 DB_PROG!$DB_PROG$ac_delim
31525 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31526 cats!$cats$ac_delim
31527 DB_TYPE!$DB_TYPE$ac_delim
31528 GETCONF!$GETCONF$ac_delim
31529 XMKMF!$XMKMF$ac_delim
31530 X_CFLAGS!$X_CFLAGS$ac_delim
31531 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31532 X_LIBS!$X_LIBS$ac_delim
31533 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31534 LIBOBJS!$LIBOBJS$ac_delim
31535 FDLIBS!$FDLIBS$ac_delim
31536 DEBUG!$DEBUG$ac_delim
31537 DINCLUDE!$DINCLUDE$ac_delim
31538 DLIB!$DLIB$ac_delim
31539 DB_LIBS!$DB_LIBS$ac_delim
31540 WCFLAGS!$WCFLAGS$ac_delim
31541 WLDFLAGS!$WLDFLAGS$ac_delim
31542 WRAPLIBS!$WRAPLIBS$ac_delim
31543 OBJLIST!$OBJLIST$ac_delim
31544 hostname!$hostname$ac_delim
31545 TAPEDRIVE!$TAPEDRIVE$ac_delim
31546 PSCMD!$PSCMD$ac_delim
31547 WIN32!$WIN32$ac_delim
31548 MACOSX!$MACOSX$ac_delim
31549 DISTNAME!$DISTNAME$ac_delim
31550 DISTVER!$DISTVER$ac_delim
31551 LTLIBOBJS!$LTLIBOBJS$ac_delim
31552 _ACEOF
31553
31554   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
31555     break
31556   elif $ac_last_try; then
31557     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31559    { (exit 1); exit 1; }; }
31560   else
31561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31562   fi
31563 done
31564
31565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31566 if test -n "$ac_eof"; then
31567   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31568   ac_eof=`expr $ac_eof + 1`
31569 fi
31570
31571 cat >>$CONFIG_STATUS <<_ACEOF
31572 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31574 _ACEOF
31575 sed '
31576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31577 s/^/s,@/; s/!/@,|#_!!_#|/
31578 :n
31579 t n
31580 s/'"$ac_delim"'$/,g/; t
31581 s/$/\\/; p
31582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31583 ' >>$CONFIG_STATUS <conf$$subs.sed
31584 rm -f conf$$subs.sed
31585 cat >>$CONFIG_STATUS <<_ACEOF
31586 :end
31587 s/|#_!!_#|//g
31588 CEOF$ac_eof
31589 _ACEOF
31590
31591
31592 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31593 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31594 # trailing colons and then remove the whole line if VPATH becomes empty
31595 # (actually we leave an empty line to preserve line numbers).
31596 if test "x$srcdir" = x.; then
31597   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31598 s/:*\$(srcdir):*/:/
31599 s/:*\${srcdir}:*/:/
31600 s/:*@srcdir@:*/:/
31601 s/^\([^=]*=[     ]*\):*/\1/
31602 s/:*$//
31603 s/^[^=]*=[       ]*$//
31604 }'
31605 fi
31606
31607 cat >>$CONFIG_STATUS <<\_ACEOF
31608 fi # test -n "$CONFIG_FILES"
31609
31610
31611 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31612 do
31613   case $ac_tag in
31614   :[FHLC]) ac_mode=$ac_tag; continue;;
31615   esac
31616   case $ac_mode$ac_tag in
31617   :[FHL]*:*);;
31618   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31619 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31620    { (exit 1); exit 1; }; };;
31621   :[FH]-) ac_tag=-:-;;
31622   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31623   esac
31624   ac_save_IFS=$IFS
31625   IFS=:
31626   set x $ac_tag
31627   IFS=$ac_save_IFS
31628   shift
31629   ac_file=$1
31630   shift
31631
31632   case $ac_mode in
31633   :L) ac_source=$1;;
31634   :[FH])
31635     ac_file_inputs=
31636     for ac_f
31637     do
31638       case $ac_f in
31639       -) ac_f="$tmp/stdin";;
31640       *) # Look for the file first in the build tree, then in the source tree
31641          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31642          # because $ac_f cannot contain `:'.
31643          test -f "$ac_f" ||
31644            case $ac_f in
31645            [\\/$]*) false;;
31646            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31647            esac ||
31648            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31649 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31650    { (exit 1); exit 1; }; };;
31651       esac
31652       ac_file_inputs="$ac_file_inputs $ac_f"
31653     done
31654
31655     # Let's still pretend it is `configure' which instantiates (i.e., don't
31656     # use $as_me), people would be surprised to read:
31657     #    /* config.h.  Generated by config.status.  */
31658     configure_input="Generated from "`IFS=:
31659           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31660     if test x"$ac_file" != x-; then
31661       configure_input="$ac_file.  $configure_input"
31662       { echo "$as_me:$LINENO: creating $ac_file" >&5
31663 echo "$as_me: creating $ac_file" >&6;}
31664     fi
31665
31666     case $ac_tag in
31667     *:-:* | *:-) cat >"$tmp/stdin";;
31668     esac
31669     ;;
31670   esac
31671
31672   ac_dir=`$as_dirname -- "$ac_file" ||
31673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31674          X"$ac_file" : 'X\(//\)[^/]' \| \
31675          X"$ac_file" : 'X\(//\)$' \| \
31676          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31677 echo X"$ac_file" |
31678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31679             s//\1/
31680             q
31681           }
31682           /^X\(\/\/\)[^/].*/{
31683             s//\1/
31684             q
31685           }
31686           /^X\(\/\/\)$/{
31687             s//\1/
31688             q
31689           }
31690           /^X\(\/\).*/{
31691             s//\1/
31692             q
31693           }
31694           s/.*/./; q'`
31695   { as_dir="$ac_dir"
31696   case $as_dir in #(
31697   -*) as_dir=./$as_dir;;
31698   esac
31699   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31700     as_dirs=
31701     while :; do
31702       case $as_dir in #(
31703       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31704       *) as_qdir=$as_dir;;
31705       esac
31706       as_dirs="'$as_qdir' $as_dirs"
31707       as_dir=`$as_dirname -- "$as_dir" ||
31708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31709          X"$as_dir" : 'X\(//\)[^/]' \| \
31710          X"$as_dir" : 'X\(//\)$' \| \
31711          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31712 echo X"$as_dir" |
31713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31714             s//\1/
31715             q
31716           }
31717           /^X\(\/\/\)[^/].*/{
31718             s//\1/
31719             q
31720           }
31721           /^X\(\/\/\)$/{
31722             s//\1/
31723             q
31724           }
31725           /^X\(\/\).*/{
31726             s//\1/
31727             q
31728           }
31729           s/.*/./; q'`
31730       test -d "$as_dir" && break
31731     done
31732     test -z "$as_dirs" || eval "mkdir $as_dirs"
31733   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31734 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31735    { (exit 1); exit 1; }; }; }
31736   ac_builddir=.
31737
31738 case "$ac_dir" in
31739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31740 *)
31741   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31742   # A ".." for each directory in $ac_dir_suffix.
31743   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31744   case $ac_top_builddir_sub in
31745   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31746   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31747   esac ;;
31748 esac
31749 ac_abs_top_builddir=$ac_pwd
31750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31751 # for backward compatibility:
31752 ac_top_builddir=$ac_top_build_prefix
31753
31754 case $srcdir in
31755   .)  # We are building in place.
31756     ac_srcdir=.
31757     ac_top_srcdir=$ac_top_builddir_sub
31758     ac_abs_top_srcdir=$ac_pwd ;;
31759   [\\/]* | ?:[\\/]* )  # Absolute name.
31760     ac_srcdir=$srcdir$ac_dir_suffix;
31761     ac_top_srcdir=$srcdir
31762     ac_abs_top_srcdir=$srcdir ;;
31763   *) # Relative name.
31764     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31765     ac_top_srcdir=$ac_top_build_prefix$srcdir
31766     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31767 esac
31768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31769
31770
31771   case $ac_mode in
31772   :F)
31773   #
31774   # CONFIG_FILE
31775   #
31776
31777   case $INSTALL in
31778   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31779   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31780   esac
31781 _ACEOF
31782
31783 cat >>$CONFIG_STATUS <<\_ACEOF
31784 # If the template does not know about datarootdir, expand it.
31785 # FIXME: This hack should be removed a few years after 2.60.
31786 ac_datarootdir_hack=; ac_datarootdir_seen=
31787
31788 case `sed -n '/datarootdir/ {
31789   p
31790   q
31791 }
31792 /@datadir@/p
31793 /@docdir@/p
31794 /@infodir@/p
31795 /@localedir@/p
31796 /@mandir@/p
31797 ' $ac_file_inputs` in
31798 *datarootdir*) ac_datarootdir_seen=yes;;
31799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31800   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31801 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31802 _ACEOF
31803 cat >>$CONFIG_STATUS <<_ACEOF
31804   ac_datarootdir_hack='
31805   s&@datadir@&$datadir&g
31806   s&@docdir@&$docdir&g
31807   s&@infodir@&$infodir&g
31808   s&@localedir@&$localedir&g
31809   s&@mandir@&$mandir&g
31810     s&\\\${datarootdir}&$datarootdir&g' ;;
31811 esac
31812 _ACEOF
31813
31814 # Neutralize VPATH when `$srcdir' = `.'.
31815 # Shell code in configure.ac might set extrasub.
31816 # FIXME: do we really want to maintain this feature?
31817 cat >>$CONFIG_STATUS <<_ACEOF
31818   sed "$ac_vpsub
31819 $extrasub
31820 _ACEOF
31821 cat >>$CONFIG_STATUS <<\_ACEOF
31822 :t
31823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31824 s&@configure_input@&$configure_input&;t t
31825 s&@top_builddir@&$ac_top_builddir_sub&;t t
31826 s&@srcdir@&$ac_srcdir&;t t
31827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31828 s&@top_srcdir@&$ac_top_srcdir&;t t
31829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31830 s&@builddir@&$ac_builddir&;t t
31831 s&@abs_builddir@&$ac_abs_builddir&;t t
31832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31833 s&@INSTALL@&$ac_INSTALL&;t t
31834 $ac_datarootdir_hack
31835 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31836
31837 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31838   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31839   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31840   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31841 which seems to be undefined.  Please make sure it is defined." >&5
31842 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31843 which seems to be undefined.  Please make sure it is defined." >&2;}
31844
31845   rm -f "$tmp/stdin"
31846   case $ac_file in
31847   -) cat "$tmp/out"; rm -f "$tmp/out";;
31848   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31849   esac
31850  ;;
31851   :H)
31852   #
31853   # CONFIG_HEADER
31854   #
31855 _ACEOF
31856
31857 # Transform confdefs.h into a sed script `conftest.defines', that
31858 # substitutes the proper values into config.h.in to produce config.h.
31859 rm -f conftest.defines conftest.tail
31860 # First, append a space to every undef/define line, to ease matching.
31861 echo 's/$/ /' >conftest.defines
31862 # Then, protect against being on the right side of a sed subst, or in
31863 # an unquoted here document, in config.status.  If some macros were
31864 # called several times there might be several #defines for the same
31865 # symbol, which is useless.  But do not sort them, since the last
31866 # AC_DEFINE must be honored.
31867 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31868 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31869 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31870 # PARAMS is the parameter list in the macro definition--in most cases, it's
31871 # just an empty string.
31872 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31873 ac_dB='\\)[      (].*,\\1define\\2'
31874 ac_dC=' '
31875 ac_dD=' ,'
31876
31877 uniq confdefs.h |
31878   sed -n '
31879         t rset
31880         :rset
31881         s/^[     ]*#[    ]*define[       ][      ]*//
31882         t ok
31883         d
31884         :ok
31885         s/[\\&,]/\\&/g
31886         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31887         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31888   ' >>conftest.defines
31889
31890 # Remove the space that was appended to ease matching.
31891 # Then replace #undef with comments.  This is necessary, for
31892 # example, in the case of _POSIX_SOURCE, which is predefined and required
31893 # on some systems where configure will not decide to define it.
31894 # (The regexp can be short, since the line contains either #define or #undef.)
31895 echo 's/ $//
31896 s,^[     #]*u.*,/* & */,' >>conftest.defines
31897
31898 # Break up conftest.defines:
31899 ac_max_sed_lines=50
31900
31901 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31902 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31903 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31904 # et cetera.
31905 ac_in='$ac_file_inputs'
31906 ac_out='"$tmp/out1"'
31907 ac_nxt='"$tmp/out2"'
31908
31909 while :
31910 do
31911   # Write a here document:
31912     cat >>$CONFIG_STATUS <<_ACEOF
31913     # First, check the format of the line:
31914     cat >"\$tmp/defines.sed" <<\\CEOF
31915 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31916 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31917 b
31918 :def
31919 _ACEOF
31920   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31921   echo 'CEOF
31922     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31923   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31924   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31925   grep . conftest.tail >/dev/null || break
31926   rm -f conftest.defines
31927   mv conftest.tail conftest.defines
31928 done
31929 rm -f conftest.defines conftest.tail
31930
31931 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31932 cat >>$CONFIG_STATUS <<\_ACEOF
31933   if test x"$ac_file" != x-; then
31934     echo "/* $configure_input  */" >"$tmp/config.h"
31935     cat "$ac_result" >>"$tmp/config.h"
31936     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31937       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31938 echo "$as_me: $ac_file is unchanged" >&6;}
31939     else
31940       rm -f $ac_file
31941       mv "$tmp/config.h" $ac_file
31942     fi
31943   else
31944     echo "/* $configure_input  */"
31945     cat "$ac_result"
31946   fi
31947   rm -f "$tmp/out12"
31948  ;;
31949
31950   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31951 echo "$as_me: executing $ac_file commands" >&6;}
31952  ;;
31953   esac
31954
31955
31956   case $ac_file$ac_mode in
31957     "default-1":C)
31958     for ac_file in $CONFIG_FILES; do
31959       # Support "outfile[:infile[:infile...]]"
31960       case "$ac_file" in
31961         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31962       esac
31963       # PO directories have a Makefile.in generated from Makefile.in.in.
31964       case "$ac_file" in */Makefile.in)
31965         # Adjust a relative srcdir.
31966         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31967         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31968         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31969         # In autoconf-2.13 it is called $ac_given_srcdir.
31970         # In autoconf-2.50 it is called $srcdir.
31971         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31972         case "$ac_given_srcdir" in
31973           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31974           /*) top_srcdir="$ac_given_srcdir" ;;
31975           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31976         esac
31977         # Treat a directory as a PO directory if and only if it has a
31978         # POTFILES.in file. This allows packages to have multiple PO
31979         # directories under different names or in different locations.
31980         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31981           rm -f "$ac_dir/POTFILES"
31982           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31983           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31984           POMAKEFILEDEPS="POTFILES.in"
31985           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31986           # on $ac_dir but don't depend on user-specified configuration
31987           # parameters.
31988           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31989             # The LINGUAS file contains the set of available languages.
31990             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31991               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31992             fi
31993             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31994             # Hide the ALL_LINGUAS assigment from automake.
31995             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31996             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31997           else
31998             # The set of available languages was given in configure.in.
31999             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32000           fi
32001           # Compute POFILES
32002           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32003           # Compute UPDATEPOFILES
32004           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32005           # Compute DUMMYPOFILES
32006           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32007           # Compute GMOFILES
32008           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32009           case "$ac_given_srcdir" in
32010             .) srcdirpre= ;;
32011             *) srcdirpre='$(srcdir)/' ;;
32012           esac
32013           POFILES=
32014           UPDATEPOFILES=
32015           DUMMYPOFILES=
32016           GMOFILES=
32017           for lang in $ALL_LINGUAS; do
32018             POFILES="$POFILES $srcdirpre$lang.po"
32019             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32020             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32021             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32022           done
32023           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32024           # environment variable.
32025           INST_LINGUAS=
32026           if test -n "$ALL_LINGUAS"; then
32027             for presentlang in $ALL_LINGUAS; do
32028               useit=no
32029               if test "%UNSET%" != "$LINGUAS"; then
32030                 desiredlanguages="$LINGUAS"
32031               else
32032                 desiredlanguages="$ALL_LINGUAS"
32033               fi
32034               for desiredlang in $desiredlanguages; do
32035                 # Use the presentlang catalog if desiredlang is
32036                 #   a. equal to presentlang, or
32037                 #   b. a variant of presentlang (because in this case,
32038                 #      presentlang can be used as a fallback for messages
32039                 #      which are not translated in the desiredlang catalog).
32040                 case "$desiredlang" in
32041                   "$presentlang"*) useit=yes;;
32042                 esac
32043               done
32044               if test $useit = yes; then
32045                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32046               fi
32047             done
32048           fi
32049           CATALOGS=
32050           if test -n "$INST_LINGUAS"; then
32051             for lang in $INST_LINGUAS; do
32052               CATALOGS="$CATALOGS $lang.gmo"
32053             done
32054           fi
32055           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32056           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"
32057           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32058             if test -f "$f"; then
32059               case "$f" in
32060                 *.orig | *.bak | *~) ;;
32061                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32062               esac
32063             fi
32064           done
32065         fi
32066         ;;
32067       esac
32068     done ;;
32069     "default":C)
32070  ;;
32071
32072   esac
32073 done # for ac_tag
32074
32075
32076 { (exit 0); exit 0; }
32077 _ACEOF
32078 chmod +x $CONFIG_STATUS
32079 ac_clean_files=$ac_clean_files_save
32080
32081
32082 # configure is writing to config.log, and then calls config.status.
32083 # config.status does its own redirection, appending to config.log.
32084 # Unfortunately, on DOS this fails, as config.log is still kept open
32085 # by configure, so config.status won't be able to write to it; its
32086 # output is simply discarded.  So we exec the FD to /dev/null,
32087 # effectively closing config.log, so it can be properly (re)opened and
32088 # appended to by config.status.  When coming back to configure, we
32089 # need to make the FD available again.
32090 if test "$no_create" != yes; then
32091   ac_cs_success=:
32092   ac_config_status_args=
32093   test "$silent" = yes &&
32094     ac_config_status_args="$ac_config_status_args --quiet"
32095   exec 5>/dev/null
32096   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32097   exec 5>>config.log
32098   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32099   # would make configure fail if this is the last instruction.
32100   $ac_cs_success || { (exit 1); exit 1; }
32101 fi
32102
32103
32104 if test "${support_bat}" = "yes" ; then
32105   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32106   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32107   exit 1
32108   fi
32109
32110   QMAKEBIN="qmake"
32111
32112   if test "x$QMAKEQT4" != "xnone"; then
32113     QMAKEBIN=qmake-qt4
32114   fi
32115
32116
32117
32118   cd src/qt-console
32119   chmod 755 install_conf_file build-depkgs-qt-console
32120   echo "Creating bat Makefile"
32121   $QMAKEBIN
32122   cd ${BUILD_DIR}
32123 fi
32124
32125 echo "Doing make of dependencies"
32126 ${MAKE:-make} depend
32127
32128 cd scripts
32129 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32130 chmod 755 dvd-handler dvd-simulator
32131 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32132 cd ..
32133
32134 c=updatedb
32135 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32136 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32137
32138 c=src/cats
32139
32140 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32141 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32142
32143 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32144 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32145
32146 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32147 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32148
32149 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32150 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32151
32152 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32153 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32154
32155 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32156 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32157
32158 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32159 chmod 755 $c/sqlite
32160 chmod 755 $c/mysql
32161
32162 chmod 755 src/win32/build-depkgs-mingw32
32163
32164
32165
32166 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32167    largefile_support="yes"
32168 fi
32169
32170 #
32171 # A whole lot of hand springs to get the compiler version.
32172 #  This is because gcc changed the output in version 3.0
32173 #
32174 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32175 if test "x${CCVERSION}" = "x" ; then
32176   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32177 fi
32178 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32179 if test x"${CXXVERSION}" = x ; then
32180   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32181 fi
32182
32183 if test "x${subsysdir}" = "x${sbindir}" ; then
32184    echo " "
32185    echo " "
32186    echo "You have set --sbindir and --with-subsys-dir"
32187    echo "  both equal to: ${subsysdir} "
32188    echo "  This is not permitted. Please reconfigure."
32189    echo " "
32190    echo "Aborting configuration ..."
32191    echo " "
32192    echo " "
32193    exit 1
32194 fi
32195
32196 if test "x${db_type}" = "xInternal" ; then
32197    echo " "
32198    echo " "
32199    echo "You have not specified either --enable-client-only or one of the"
32200    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32201    echo "  This is not permitted. Please reconfigure."
32202    echo " "
32203    echo "Aborting the configuration ..."
32204    echo " "
32205    echo " "
32206    exit 1
32207 fi
32208
32209 echo "
32210 Configuration on `date`:
32211
32212   Host:                       $host -- ${DISTNAME} ${DISTVER}
32213   Bacula version:             ${VERSION} (${DATE})
32214   Source code location:       ${srcdir}
32215   Install binaries:           ${sbindir}
32216   Install config files:       ${sysconfdir}
32217   Scripts directory:          ${scriptdir}
32218   Archive directory:          ${archivedir}
32219   Working directory:          ${working_dir}
32220   PID directory:              ${piddir}
32221   Subsys directory:           ${subsysdir}
32222   Man directory:              ${mandir}
32223   Data directory:             ${datadir}
32224   C Compiler:                 ${CC} ${CCVERSION}
32225   C++ Compiler:               ${CXX} ${CXXVERSION}
32226   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32227   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32228   Libraries:                  ${LIBS}
32229   Statically Linked Tools:    ${support_static_tools}
32230   Statically Linked FD:       ${support_static_fd}
32231   Statically Linked SD:       ${support_static_sd}
32232   Statically Linked DIR:      ${support_static_dir}
32233   Statically Linked CONS:     ${support_static_cons}
32234   Database type:              ${db_type}
32235   Database lib:               ${DB_LIBS}
32236   Database name:              ${db_name}
32237   Database user:              ${db_user}
32238
32239   Job Output Email:           ${job_email}
32240   Traceback Email:            ${dump_email}
32241   SMTP Host Address:          ${smtp_host}
32242
32243   Director Port:              ${dir_port}
32244   File daemon Port:           ${fd_port}
32245   Storage daemon Port:        ${sd_port}
32246
32247   Director User:              ${dir_user}
32248   Director Group:             ${dir_group}
32249   Storage Daemon User:        ${sd_user}
32250   Storage DaemonGroup:        ${sd_group}
32251   File Daemon User:           ${fd_user}
32252   File Daemon Group:          ${fd_group}
32253
32254   SQL binaries Directory      ${SQL_BINDIR}
32255
32256   Large file support:         $largefile_support
32257   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32258   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32259   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32260   TLS support:                ${support_tls}
32261   Encryption support:         ${support_crypto}
32262   ZLIB support:               ${have_zlib}
32263   enable-smartalloc:          ${support_smartalloc}
32264   enable-faketape:            ${support_faketape}
32265   bat support:                ${support_bat} ${QWT_LDFLAGS}
32266   enable-gnome:               ${support_gnome} ${gnome_version}
32267   enable-bwx-console:         ${support_wx_console} ${wx_version}
32268   enable-tray-monitor:        ${support_tray_monitor}
32269   client-only:                ${build_client_only}
32270   build-dird:                 ${build_dird}
32271   build-stored:               ${build_stored}
32272   ACL support:                ${have_acl}
32273   Python support:             ${support_python} ${PYTHON_LIBS}
32274   Batch insert enabled:       ${support_batch_insert}
32275
32276   " > config.out
32277
32278 cat config.out