]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Eliminate compiler warning in vss_generic.cpp
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 WXCONS_CPPFLAGS
778 WXCONS_LDFLAGS
779 WX_DIR
780 TRAY_MONITOR_CPPFLAGS
781 TRAY_MONITOR_LDFLAGS
782 TRAY_MONITOR_DIR
783 TTOOL_LDFLAGS
784 STATIC_FD
785 STATIC_SD
786 STATIC_DIR
787 STATIC_CONS
788 STATIC_GNOME_CONS
789 STATIC_WX_CONS
790 ALL_DIRS
791 DIRD_DIR
792 DIR_TOOLS
793 STORED_DIR
794 CONS_INC
795 CONS_OBJ
796 CONS_SRC
797 CONS_LIBS
798 CONS_LDFLAGS
799 READLINE_SRC
800 PYTHON_LIBS
801 PYTHON_INCDIR
802 OPENSSL_LIBS
803 OPENSSL_INC
804 working_dir
805 archivedir
806 scriptdir
807 dump_email
808 job_email
809 smtp_host
810 piddir
811 subsysdir
812 baseport
813 dir_port
814 fd_port
815 sd_port
816 dir_password
817 fd_password
818 sd_password
819 mon_dir_password
820 mon_fd_password
821 mon_sd_password
822 db_name
823 db_user
824 dir_user
825 dir_group
826 sd_user
827 sd_group
828 fd_user
829 fd_group
830 SBINPERM
831 SQL_LFLAGS
832 SQL_INCLUDE
833 SQL_BINDIR
834 DBI_DBD_DRIVERDIR
835 DB_PROG
836 cats
837 DB_TYPE
838 GETCONF
839 XMKMF
840 X_CFLAGS
841 X_PRE_LIBS
842 X_LIBS
843 X_EXTRA_LIBS
844 LIBOBJS
845 FDLIBS
846 DEBUG
847 DINCLUDE
848 DLIB
849 DB_LIBS
850 WCFLAGS
851 WLDFLAGS
852 WRAPLIBS
853 OBJLIST
854 hostname
855 TAPEDRIVE
856 PSCMD
857 WIN32
858 MACOSX
859 DISTNAME
860 DISTVER
861 LTLIBOBJS'
862 ac_subst_files='MCOMMON'
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
871 CXX
872 CXXFLAGS
873 CCC
874 CPP
875 WXCONFIG
876 WXFLAGS
877 XMKMF'
878
879
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930   # If the previous option needs an argument, assign it.
931   if test -n "$ac_prev"; then
932     eval $ac_prev=\$ac_option
933     ac_prev=
934     continue
935   fi
936
937   case $ac_option in
938   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939   *)    ac_optarg=yes ;;
940   esac
941
942   # Accept the important Cygnus configure options, so we can diagnose typos.
943
944   case $ac_dashdash$ac_option in
945   --)
946     ac_dashdash=yes ;;
947
948   -bindir | --bindir | --bindi | --bind | --bin | --bi)
949     ac_prev=bindir ;;
950   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951     bindir=$ac_optarg ;;
952
953   -build | --build | --buil | --bui | --bu)
954     ac_prev=build_alias ;;
955   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956     build_alias=$ac_optarg ;;
957
958   -cache-file | --cache-file | --cache-fil | --cache-fi \
959   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960     ac_prev=cache_file ;;
961   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963     cache_file=$ac_optarg ;;
964
965   --config-cache | -C)
966     cache_file=config.cache ;;
967
968   -datadir | --datadir | --datadi | --datad)
969     ac_prev=datadir ;;
970   -datadir=* | --datadir=* | --datadi=* | --datad=*)
971     datadir=$ac_optarg ;;
972
973   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974   | --dataroo | --dataro | --datar)
975     ac_prev=datarootdir ;;
976   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978     datarootdir=$ac_optarg ;;
979
980   -disable-* | --disable-*)
981     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
984       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
985    { (exit 1); exit 1; }; }
986     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
987     eval enable_$ac_feature=no ;;
988
989   -docdir | --docdir | --docdi | --doc | --do)
990     ac_prev=docdir ;;
991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992     docdir=$ac_optarg ;;
993
994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995     ac_prev=dvidir ;;
996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997     dvidir=$ac_optarg ;;
998
999   -enable-* | --enable-*)
1000     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004    { (exit 1); exit 1; }; }
1005     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006     eval enable_$ac_feature=\$ac_optarg ;;
1007
1008   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010   | --exec | --exe | --ex)
1011     ac_prev=exec_prefix ;;
1012   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014   | --exec=* | --exe=* | --ex=*)
1015     exec_prefix=$ac_optarg ;;
1016
1017   -gas | --gas | --ga | --g)
1018     # Obsolete; use --with-gas.
1019     with_gas=yes ;;
1020
1021   -help | --help | --hel | --he | -h)
1022     ac_init_help=long ;;
1023   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024     ac_init_help=recursive ;;
1025   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026     ac_init_help=short ;;
1027
1028   -host | --host | --hos | --ho)
1029     ac_prev=host_alias ;;
1030   -host=* | --host=* | --hos=* | --ho=*)
1031     host_alias=$ac_optarg ;;
1032
1033   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034     ac_prev=htmldir ;;
1035   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036   | --ht=*)
1037     htmldir=$ac_optarg ;;
1038
1039   -includedir | --includedir | --includedi | --included | --include \
1040   | --includ | --inclu | --incl | --inc)
1041     ac_prev=includedir ;;
1042   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043   | --includ=* | --inclu=* | --incl=* | --inc=*)
1044     includedir=$ac_optarg ;;
1045
1046   -infodir | --infodir | --infodi | --infod | --info | --inf)
1047     ac_prev=infodir ;;
1048   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049     infodir=$ac_optarg ;;
1050
1051   -libdir | --libdir | --libdi | --libd)
1052     ac_prev=libdir ;;
1053   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054     libdir=$ac_optarg ;;
1055
1056   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057   | --libexe | --libex | --libe)
1058     ac_prev=libexecdir ;;
1059   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060   | --libexe=* | --libex=* | --libe=*)
1061     libexecdir=$ac_optarg ;;
1062
1063   -localedir | --localedir | --localedi | --localed | --locale)
1064     ac_prev=localedir ;;
1065   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066     localedir=$ac_optarg ;;
1067
1068   -localstatedir | --localstatedir | --localstatedi | --localstated \
1069   | --localstate | --localstat | --localsta | --localst | --locals)
1070     ac_prev=localstatedir ;;
1071   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073     localstatedir=$ac_optarg ;;
1074
1075   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076     ac_prev=mandir ;;
1077   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078     mandir=$ac_optarg ;;
1079
1080   -nfp | --nfp | --nf)
1081     # Obsolete; use --without-fp.
1082     with_fp=no ;;
1083
1084   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085   | --no-cr | --no-c | -n)
1086     no_create=yes ;;
1087
1088   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090     no_recursion=yes ;;
1091
1092   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094   | --oldin | --oldi | --old | --ol | --o)
1095     ac_prev=oldincludedir ;;
1096   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099     oldincludedir=$ac_optarg ;;
1100
1101   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102     ac_prev=prefix ;;
1103   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104     prefix=$ac_optarg ;;
1105
1106   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107   | --program-pre | --program-pr | --program-p)
1108     ac_prev=program_prefix ;;
1109   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111     program_prefix=$ac_optarg ;;
1112
1113   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114   | --program-suf | --program-su | --program-s)
1115     ac_prev=program_suffix ;;
1116   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118     program_suffix=$ac_optarg ;;
1119
1120   -program-transform-name | --program-transform-name \
1121   | --program-transform-nam | --program-transform-na \
1122   | --program-transform-n | --program-transform- \
1123   | --program-transform | --program-transfor \
1124   | --program-transfo | --program-transf \
1125   | --program-trans | --program-tran \
1126   | --progr-tra | --program-tr | --program-t)
1127     ac_prev=program_transform_name ;;
1128   -program-transform-name=* | --program-transform-name=* \
1129   | --program-transform-nam=* | --program-transform-na=* \
1130   | --program-transform-n=* | --program-transform-=* \
1131   | --program-transform=* | --program-transfor=* \
1132   | --program-transfo=* | --program-transf=* \
1133   | --program-trans=* | --program-tran=* \
1134   | --progr-tra=* | --program-tr=* | --program-t=*)
1135     program_transform_name=$ac_optarg ;;
1136
1137   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138     ac_prev=pdfdir ;;
1139   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140     pdfdir=$ac_optarg ;;
1141
1142   -psdir | --psdir | --psdi | --psd | --ps)
1143     ac_prev=psdir ;;
1144   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145     psdir=$ac_optarg ;;
1146
1147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148   | -silent | --silent | --silen | --sile | --sil)
1149     silent=yes ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       { echo "$as_me: error: invalid package name: $ac_package" >&2
1201    { (exit 1); exit 1; }; }
1202     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1203     eval with_$ac_package=\$ac_optarg ;;
1204
1205   -without-* | --without-*)
1206     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209       { echo "$as_me: error: invalid package name: $ac_package" >&2
1210    { (exit 1); exit 1; }; }
1211     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1212     eval with_$ac_package=no ;;
1213
1214   --x)
1215     # Obsolete; use --with-x.
1216     with_x=yes ;;
1217
1218   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219   | --x-incl | --x-inc | --x-in | --x-i)
1220     ac_prev=x_includes ;;
1221   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223     x_includes=$ac_optarg ;;
1224
1225   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227     ac_prev=x_libraries ;;
1228   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230     x_libraries=$ac_optarg ;;
1231
1232   -*) { echo "$as_me: error: unrecognized option: $ac_option
1233 Try \`$0 --help' for more information." >&2
1234    { (exit 1); exit 1; }; }
1235     ;;
1236
1237   *=*)
1238     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239     # Reject names that are not valid shell variable names.
1240     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1241       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1242    { (exit 1); exit 1; }; }
1243     eval $ac_envvar=\$ac_optarg
1244     export $ac_envvar ;;
1245
1246   *)
1247     # FIXME: should be removed in autoconf 3.0.
1248     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252     ;;
1253
1254   esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259   { echo "$as_me: error: missing argument to $ac_option" >&2
1260    { (exit 1); exit 1; }; }
1261 fi
1262
1263 # Be sure to have absolute directory names.
1264 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265                 datadir sysconfdir sharedstatedir localstatedir includedir \
1266                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267                 libdir localedir mandir
1268 do
1269   eval ac_val=\$$ac_var
1270   case $ac_val in
1271     [\\/$]* | ?:[\\/]* )  continue;;
1272     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273   esac
1274   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1275    { (exit 1); exit 1; }; }
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used." >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   { echo "$as_me: error: Working directory cannot be determined" >&2
1306    { (exit 1); exit 1; }; }
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308   { echo "$as_me: error: pwd does not report name of working directory" >&2
1309    { (exit 1); exit 1; }; }
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$0" ||
1317 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$0" : 'X\(//\)[^/]' \| \
1319          X"$0" : 'X\(//\)$' \| \
1320          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1321 echo X"$0" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1349    { (exit 1); exit 1; }; }
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1354    { (exit 1); exit 1; }; }
1355         pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358   srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_env_${ac_var}_value=\$${ac_var}
1369   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377   # Omit some internal or obsolete options to make the list less imposing.
1378   # This message is too long to be a string in the A/UX 3.1 sh.
1379   cat <<_ACEOF
1380 \`configure' configures this package to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390   -h, --help              display this help and exit
1391       --help=short        display options specific to this package
1392       --help=recursive    display the short help of all the included packages
1393   -V, --version           display version information and exit
1394   -q, --quiet, --silent   do not print \`checking...' messages
1395       --cache-file=FILE   cache test results in FILE [disabled]
1396   -C, --config-cache      alias for \`--cache-file=config.cache'
1397   -n, --no-create         do not create output files
1398       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401   --prefix=PREFIX         install architecture-independent files in PREFIX
1402                           [$ac_default_prefix]
1403   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                           [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414   --bindir=DIR           user executables [EPREFIX/bin]
1415   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1416   --libexecdir=DIR       program executables [EPREFIX/libexec]
1417   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1418   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1419   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1420   --libdir=DIR           object code libraries [EPREFIX/lib]
1421   --includedir=DIR       C header files [PREFIX/include]
1422   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1423   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1424   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1425   --infodir=DIR          info documentation [DATAROOTDIR/info]
1426   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1427   --mandir=DIR           man documentation [DATAROOTDIR/man]
1428   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1429   --htmldir=DIR          html documentation [DOCDIR]
1430   --dvidir=DIR           dvi documentation [DOCDIR]
1431   --pdfdir=DIR           pdf documentation [DOCDIR]
1432   --psdir=DIR            ps documentation [DOCDIR]
1433 _ACEOF
1434
1435   cat <<\_ACEOF
1436
1437 X features:
1438   --x-includes=DIR    X include files are in DIR
1439   --x-libraries=DIR   X library files are in DIR
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --disable-nls           do not use Native Language Support
1455   --disable-rpath         do not hardcode runtime library paths
1456   --enable-gnome          enable build of bgnome-console GUI disabled
1457   --enable-bat  enable build of bat Qt4 GUI disabled
1458   --enable-bwx-console     enable build of wxWidgets console disabled
1459   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1460   --enable-smartalloc     enable smartalloc debugging support disabled
1461   --enable-static-tools   enable static tape tools disabled
1462   --enable-static-fd      enable static File daemon disabled
1463   --enable-static-sd      enable static Storage daemon disabled
1464   --enable-static-dir     enable static Director disabled
1465   --enable-static-cons    enable static Console disabled
1466   --enable-client-only    build client (File daemon) only disabled
1467   --enable-build-dird     enable building of dird (Director) enabled
1468   --enable-build-stored   enable building of stored (Storage daemon) enabled
1469  --disable-conio disable conio support enabled
1470
1471   --enable-ipv6             enable ipv6 support enabled
1472
1473   --disable-readline      disable readline support disable
1474
1475         --enable-batch-insert       enable the DB batch insert code disabled
1476   --disable-largefile     omit support for large files
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1482   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1483   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1484   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1485   --without-libintl-prefix     don't search for libintl in includedir and libdir
1486   --with-included-gettext use the GNU gettext library included here
1487  --with-qwt[=DIR]                 specify qwt library directory
1488  --with-readline[=DIR]         specify readline library directory
1489
1490   --with-python[=DIR]   Include Python support.  DIR is the Python base
1491                           install directory, default is to search through
1492                           a number of common places for the Python files.
1493   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1494   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1495   --with-working-dir=PATH        specify path of Bacula working directory
1496   --with-archivedir=PATH        specify path of SD archive directory
1497   --with-scriptdir=PATH    specify path of Bacula scripts directory
1498   --with-dump-email=EMAIL        dump email address
1499   --with-job-email=EMAIL         job output email address
1500   --with-smtp-host=HOST          SMTP mail host address
1501   --with-pid-dir=PATH            specify location of Bacula pid files
1502   --with-subsys-dir=PATH         specify location of Bacula subsys file
1503   --with-baseport=PORT           specify base port address for daemons
1504   --with-dir-password=PASSWORD   specify Director's password
1505   --with-fd-password=PASSWORD    specify Client's password
1506   --with-sd-password=PASSWORD    specify Storage daemon's password
1507   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1508   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1509   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1510   --with-db-name=DBNAME        specify database name (default bacula)
1511   --with-db-user=UNAME         specify database user (default bacula)
1512   --with-dir-user=USER           specify user for Director daemon
1513   --with-dir-group=GROUP                 specify group for Director daemon
1514   --with-sd-user=USER            specify user for Storage daemon
1515   --with-sd-group=GROUP          specify group for Storage daemon
1516   --with-fd-user=USER            specify user for File daemon
1517   --with-fd-group=GROUP          specify group for File daemon
1518   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1519   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1520                           base install directory, defaults to /usr/local/pgsql
1521
1522   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1523                           install directory, default is to search through
1524                           a number of common places for the MySQL files.
1525
1526   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1527                           install directory, default is to search through
1528                           a number of common places for the MySQL files.
1529
1530   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1531                           install directory, default is to search through
1532                           a number of common places for the SQLite3 files.
1533
1534   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1535                           install directory, default is to search through
1536                           a number of common places for the SQLite files.
1537
1538   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1539                           install directory, default is to search through
1540                           a number of common places for the DBI files.
1541
1542   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1543                           the one DBI driver like Mysql, Postgresql, others.
1544                           Default is to not configure any driver.
1545   --with-x                use the X Window System
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CXX         C++ compiler command
1556   CXXFLAGS    C++ compiler flags
1557   CPP         C preprocessor
1558   WXCONFIG    wx-config command. On some systems, you must set it to
1559               wx-config-2.6 to use wxWidgets 2.6.
1560   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1561   XMKMF       Path to xmkmf, Makefile generator for X Window System
1562
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571   # If there are subdirs, report their specific --help.
1572   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573     test -d "$ac_dir" || continue
1574     ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1580   # A ".." for each directory in $ac_dir_suffix.
1581   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1582   case $ac_top_builddir_sub in
1583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585   esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593   .)  # We are building in place.
1594     ac_srcdir=.
1595     ac_top_srcdir=$ac_top_builddir_sub
1596     ac_abs_top_srcdir=$ac_pwd ;;
1597   [\\/]* | ?:[\\/]* )  # Absolute name.
1598     ac_srcdir=$srcdir$ac_dir_suffix;
1599     ac_top_srcdir=$srcdir
1600     ac_abs_top_srcdir=$srcdir ;;
1601   *) # Relative name.
1602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603     ac_top_srcdir=$ac_top_build_prefix$srcdir
1604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608     cd "$ac_dir" || { ac_status=$?; continue; }
1609     # Check for guested configure.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 configure
1627 generated by GNU Autoconf 2.61
1628
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634   exit
1635 fi
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1639
1640 It was created by $as_me, which was
1641 generated by GNU Autoconf 2.61.  Invocation command line was
1642
1643   $ $0 $@
1644
1645 _ACEOF
1646 exec 5>>config.log
1647 {
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1652
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1658
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1661
1662 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1663 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1666 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1667 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1668 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1669
1670 _ASUNAME
1671
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1680
1681 } >&5
1682
1683 cat >&5 <<_ACEOF
1684
1685
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1689
1690 _ACEOF
1691
1692
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1703 do
1704   for ac_arg
1705   do
1706     case $ac_arg in
1707     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709     | -silent | --silent | --silen | --sile | --sil)
1710       continue ;;
1711     *\'*)
1712       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713     esac
1714     case $ac_pass in
1715     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1716     2)
1717       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718       if test $ac_must_keep_next = true; then
1719         ac_must_keep_next=false # Got value, back to normal.
1720       else
1721         case $ac_arg in
1722           *=* | --config-cache | -C | -disable-* | --disable-* \
1723           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725           | -with-* | --with-* | -without-* | --without-* | --x)
1726             case "$ac_configure_args0 " in
1727               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728             esac
1729             ;;
1730           -* ) ac_must_keep_next=true ;;
1731         esac
1732       fi
1733       ac_configure_args="$ac_configure_args '$ac_arg'"
1734       ;;
1735     esac
1736   done
1737 done
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1740
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log.  We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747   # Save into config.log some information that might help in debugging.
1748   {
1749     echo
1750
1751     cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756     echo
1757     # The following way of writing the cache mishandles newlines in values,
1758 (
1759   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760     eval ac_val=\$$ac_var
1761     case $ac_val in #(
1762     *${as_nl}*)
1763       case $ac_var in #(
1764       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1765 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1766       esac
1767       case $ac_var in #(
1768       _ | IFS | as_nl) ;; #(
1769       *) $as_unset $ac_var ;;
1770       esac ;;
1771     esac
1772   done
1773   (set) 2>&1 |
1774     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1775     *${as_nl}ac_space=\ *)
1776       sed -n \
1777         "s/'\''/'\''\\\\'\'''\''/g;
1778           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1779       ;; #(
1780     *)
1781       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1782       ;;
1783     esac |
1784     sort
1785 )
1786     echo
1787
1788     cat <<\_ASBOX
1789 ## ----------------- ##
1790 ## Output variables. ##
1791 ## ----------------- ##
1792 _ASBOX
1793     echo
1794     for ac_var in $ac_subst_vars
1795     do
1796       eval ac_val=\$$ac_var
1797       case $ac_val in
1798       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799       esac
1800       echo "$ac_var='\''$ac_val'\''"
1801     done | sort
1802     echo
1803
1804     if test -n "$ac_subst_files"; then
1805       cat <<\_ASBOX
1806 ## ------------------- ##
1807 ## File substitutions. ##
1808 ## ------------------- ##
1809 _ASBOX
1810       echo
1811       for ac_var in $ac_subst_files
1812       do
1813         eval ac_val=\$$ac_var
1814         case $ac_val in
1815         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816         esac
1817         echo "$ac_var='\''$ac_val'\''"
1818       done | sort
1819       echo
1820     fi
1821
1822     if test -s confdefs.h; then
1823       cat <<\_ASBOX
1824 ## ----------- ##
1825 ## confdefs.h. ##
1826 ## ----------- ##
1827 _ASBOX
1828       echo
1829       cat confdefs.h
1830       echo
1831     fi
1832     test "$ac_signal" != 0 &&
1833       echo "$as_me: caught signal $ac_signal"
1834     echo "$as_me: exit $exit_status"
1835   } >&5
1836   rm -f core *.core core.conftest.* &&
1837     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1838     exit $exit_status
1839 ' 0
1840 for ac_signal in 1 2 13 15; do
1841   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 done
1843 ac_signal=0
1844
1845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1846 rm -f -r conftest* confdefs.h
1847
1848 # Predefined preprocessor variables.
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 _ACEOF
1873
1874
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878   set x "$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1881 else
1882   set x "$ac_default_prefix/share/config.site" \
1883         "$ac_default_prefix/etc/config.site"
1884 fi
1885 shift
1886 for ac_site_file
1887 do
1888   if test -r "$ac_site_file"; then
1889     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 echo "$as_me: loading site script $ac_site_file" >&6;}
1891     sed 's/^/| /' "$ac_site_file" >&5
1892     . "$ac_site_file"
1893   fi
1894 done
1895
1896 if test -r "$cache_file"; then
1897   # Some versions of bash will fail to source /dev/null (special
1898   # files actually), so we avoid doing that.
1899   if test -f "$cache_file"; then
1900     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 echo "$as_me: loading cache $cache_file" >&6;}
1902     case $cache_file in
1903       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904       *)                      . "./$cache_file";;
1905     esac
1906   fi
1907 else
1908   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 echo "$as_me: creating cache $cache_file" >&6;}
1910   >$cache_file
1911 fi
1912
1913 # Check that the precious variables saved in the cache have kept the same
1914 # value.
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918   eval ac_new_set=\$ac_env_${ac_var}_set
1919   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920   eval ac_new_val=\$ac_env_${ac_var}_value
1921   case $ac_old_set,$ac_new_set in
1922     set,)
1923       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925       ac_cache_corrupted=: ;;
1926     ,set)
1927       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,);;
1931     *)
1932       if test "x$ac_old_val" != "x$ac_new_val"; then
1933         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1934 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1935         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1936 echo "$as_me:   former value:  $ac_old_val" >&2;}
1937         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1938 echo "$as_me:   current value: $ac_new_val" >&2;}
1939         ac_cache_corrupted=:
1940       fi;;
1941   esac
1942   # Pass precious variables to config.status.
1943   if test "$ac_new_set" = set; then
1944     case $ac_new_val in
1945     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1946     *) ac_arg=$ac_var=$ac_new_val ;;
1947     esac
1948     case " $ac_configure_args " in
1949       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1950       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1951     esac
1952   fi
1953 done
1954 if $ac_cache_corrupted; then
1955   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1956 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1957   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1958 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978 ac_ext=c
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983
1984
1985 BUILD_DIR=`pwd`
1986 cd ..
1987 TOP_DIR=`pwd`
1988 cd ${BUILD_DIR}
1989
1990
1991 ac_aux_dir=
1992 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1993   if test -f "$ac_dir/install-sh"; then
1994     ac_aux_dir=$ac_dir
1995     ac_install_sh="$ac_aux_dir/install-sh -c"
1996     break
1997   elif test -f "$ac_dir/install.sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install.sh -c"
2000     break
2001   elif test -f "$ac_dir/shtool"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/shtool install -c"
2004     break
2005   fi
2006 done
2007 if test -z "$ac_aux_dir"; then
2008   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2009 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 # These three variables are undocumented and unsupported,
2014 # and are intended to be withdrawn in a future Autoconf release.
2015 # They can cause serious problems if a builder's source tree is in a directory
2016 # whose full name contains unusual characters.
2017 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2018 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2019 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2020
2021
2022 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2023
2024
2025
2026
2027
2028 for ac_prog in true
2029 do
2030   # Extract the first word of "$ac_prog", so it can be a program name with args.
2031 set dummy $ac_prog; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   case $TRUEPRG in
2038   [\\/]* | ?:[\\/]*)
2039   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2040   ;;
2041   *)
2042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047   for ac_exec_ext in '' $ac_executable_extensions; do
2048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051     break 2
2052   fi
2053 done
2054 done
2055 IFS=$as_save_IFS
2056
2057   ;;
2058 esac
2059 fi
2060 TRUEPRG=$ac_cv_path_TRUEPRG
2061 if test -n "$TRUEPRG"; then
2062   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2063 echo "${ECHO_T}$TRUEPRG" >&6; }
2064 else
2065   { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2067 fi
2068
2069
2070   test -n "$TRUEPRG" && break
2071 done
2072 test -n "$TRUEPRG" || TRUEPRG=":"
2073
2074 for ac_prog in false
2075 do
2076   # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   case $FALSEPRG in
2084   [\\/]* | ?:[\\/]*)
2085   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2086   ;;
2087   *)
2088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101 IFS=$as_save_IFS
2102
2103   ;;
2104 esac
2105 fi
2106 FALSEPRG=$ac_cv_path_FALSEPRG
2107 if test -n "$FALSEPRG"; then
2108   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2109 echo "${ECHO_T}$FALSEPRG" >&6; }
2110 else
2111   { echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6; }
2113 fi
2114
2115
2116   test -n "$FALSEPRG" && break
2117 done
2118 test -n "$FALSEPRG" || FALSEPRG=":"
2119
2120
2121
2122 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2123 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2124 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2125 echo "configuring for bacula $VERSION ($DATE)"
2126
2127
2128
2129 ac_ext=c
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134 if test -n "$ac_tool_prefix"; then
2135   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$CC"; then
2143   ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   for ac_exec_ext in '' $ac_executable_extensions; do
2151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154     break 2
2155   fi
2156 done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161 fi
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164   { echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6; }
2166 else
2167   { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2169 fi
2170
2171
2172 fi
2173 if test -z "$ac_cv_prog_CC"; then
2174   ac_ct_CC=$CC
2175   # Extract the first word of "gcc", so it can be a program name with args.
2176 set dummy gcc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$ac_ct_CC"; then
2183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188   IFS=$as_save_IFS
2189   test -z "$as_dir" && as_dir=.
2190   for ac_exec_ext in '' $ac_executable_extensions; do
2191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192     ac_cv_prog_ac_ct_CC="gcc"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6; }
2206 else
2207   { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 fi
2210
2211   if test "x$ac_ct_CC" = x; then
2212     CC=""
2213   else
2214     case $cross_compiling:$ac_tool_warned in
2215 yes:)
2216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2217 whose name does not start with the host triplet.  If you think this
2218 configuration is useful to you, please write to autoconf@gnu.org." >&5
2219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet.  If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2222 ac_tool_warned=yes ;;
2223 esac
2224     CC=$ac_ct_CC
2225   fi
2226 else
2227   CC="$ac_cv_prog_CC"
2228 fi
2229
2230 if test -z "$CC"; then
2231           if test -n "$ac_tool_prefix"; then
2232     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}cc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   if test -n "$CC"; then
2240   ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247   for ac_exec_ext in '' $ac_executable_extensions; do
2248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249     ac_cv_prog_CC="${ac_tool_prefix}cc"
2250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251     break 2
2252   fi
2253 done
2254 done
2255 IFS=$as_save_IFS
2256
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261   { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269   fi
2270 fi
2271 if test -z "$CC"; then
2272   # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282   ac_prog_rejected=no
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291        ac_prog_rejected=yes
2292        continue
2293      fi
2294     ac_cv_prog_CC="cc"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300 IFS=$as_save_IFS
2301
2302 if test $ac_prog_rejected = yes; then
2303   # We found a bogon in the path, so make sure we never use it.
2304   set dummy $ac_cv_prog_CC
2305   shift
2306   if test $# != 0; then
2307     # We chose a different compiler from the bogus one.
2308     # However, it has the same basename, so the bogon will be chosen
2309     # first if we set CC to just the basename; use the full file name.
2310     shift
2311     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2312   fi
2313 fi
2314 fi
2315 fi
2316 CC=$ac_cv_prog_CC
2317 if test -n "$CC"; then
2318   { echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6; }
2320 else
2321   { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2323 fi
2324
2325
2326 fi
2327 if test -z "$CC"; then
2328   if test -n "$ac_tool_prefix"; then
2329   for ac_prog in cl.exe
2330   do
2331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   if test -n "$CC"; then
2339   ac_cv_prog_CC="$CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 CC=$ac_cv_prog_CC
2359 if test -n "$CC"; then
2360   { echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6; }
2362 else
2363   { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2365 fi
2366
2367
2368     test -n "$CC" && break
2369   done
2370 fi
2371 if test -z "$CC"; then
2372   ac_ct_CC=$CC
2373   for ac_prog in cl.exe
2374 do
2375   # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   if test -n "$ac_ct_CC"; then
2383   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388   IFS=$as_save_IFS
2389   test -z "$as_dir" && as_dir=.
2390   for ac_exec_ext in '' $ac_executable_extensions; do
2391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392     ac_cv_prog_ac_ct_CC="$ac_prog"
2393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394     break 2
2395   fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6; }
2406 else
2407   { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2409 fi
2410
2411
2412   test -n "$ac_ct_CC" && break
2413 done
2414
2415   if test "x$ac_ct_CC" = x; then
2416     CC=""
2417   else
2418     case $cross_compiling:$ac_tool_warned in
2419 yes:)
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet.  If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet.  If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2427 esac
2428     CC=$ac_ct_CC
2429   fi
2430 fi
2431
2432 fi
2433
2434
2435 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: no acceptable C compiler found in \$PATH
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440
2441 # Provide some information about the compiler.
2442 echo "$as_me:$LINENO: checking for C compiler version" >&5
2443 ac_compiler=`set X $ac_compile; echo $2`
2444 { (ac_try="$ac_compiler --version >&5"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_compiler --version >&5") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }
2454 { (ac_try="$ac_compiler -v >&5"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460   (eval "$ac_compiler -v >&5") 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }
2464 { (ac_try="$ac_compiler -V >&5"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_compiler -V >&5") 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }
2474
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 ac_clean_files_save=$ac_clean_files
2491 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2492 # Try to create an executable without -o first, disregard a.out.
2493 # It will help us diagnose broken compilers, and finding out an intuition
2494 # of exeext.
2495 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2496 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2497 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2498 #
2499 # List of possible output files, starting from the most likely.
2500 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2501 # only as a last resort.  b.out is created by i960 compilers.
2502 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2503 #
2504 # The IRIX 6 linker writes into existing files which may not be
2505 # executable, retaining their permissions.  Remove them first so a
2506 # subsequent execution test works.
2507 ac_rmfiles=
2508 for ac_file in $ac_files
2509 do
2510   case $ac_file in
2511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2512     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2513   esac
2514 done
2515 rm -f $ac_rmfiles
2516
2517 if { (ac_try="$ac_link_default"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_link_default") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; then
2527   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2529 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2530 # so that the user can short-circuit this test for compilers unknown to
2531 # Autoconf.
2532 for ac_file in $ac_files ''
2533 do
2534   test -f "$ac_file" || continue
2535   case $ac_file in
2536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2537         ;;
2538     [ab].out )
2539         # We found the default executable, but exeext='' is most
2540         # certainly right.
2541         break;;
2542     *.* )
2543         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2544         then :; else
2545            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546         fi
2547         # We set ac_cv_exeext here because the later test for it is not
2548         # safe: cross compilers may not add the suffix if given an `-o'
2549         # argument, so we may need to know it at that point already.
2550         # Even if this section looks crufty: it has the advantage of
2551         # actually working.
2552         break;;
2553     * )
2554         break;;
2555   esac
2556 done
2557 test "$ac_cv_exeext" = no && ac_cv_exeext=
2558
2559 else
2560   ac_file=''
2561 fi
2562
2563 { echo "$as_me:$LINENO: result: $ac_file" >&5
2564 echo "${ECHO_T}$ac_file" >&6; }
2565 if test -z "$ac_file"; then
2566   echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C compiler cannot create executables
2572 See \`config.log' for more details." >&2;}
2573    { (exit 77); exit 77; }; }
2574 fi
2575
2576 ac_exeext=$ac_cv_exeext
2577
2578 # Check that the compiler produces executables we can run.  If not, either
2579 # the compiler is broken, or we cross compile.
2580 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2582 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583 # If not cross compiling, check that we can run a simple program.
2584 if test "$cross_compiling" != yes; then
2585   if { ac_try='./$ac_file'
2586   { (case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_try") 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595     cross_compiling=no
2596   else
2597     if test "$cross_compiling" = maybe; then
2598         cross_compiling=yes
2599     else
2600         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2601 If you meant to cross compile, use \`--host'.
2602 See \`config.log' for more details." >&5
2603 echo "$as_me: error: cannot run C compiled programs.
2604 If you meant to cross compile, use \`--host'.
2605 See \`config.log' for more details." >&2;}
2606    { (exit 1); exit 1; }; }
2607     fi
2608   fi
2609 fi
2610 { echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6; }
2612
2613 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2614 ac_clean_files=$ac_clean_files_save
2615 # Check that the compiler produces executables we can run.  If not, either
2616 # the compiler is broken, or we cross compile.
2617 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2618 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2619 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2620 echo "${ECHO_T}$cross_compiling" >&6; }
2621
2622 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2623 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2624 if { (ac_try="$ac_link"
2625 case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630   (eval "$ac_link") 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; then
2634   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2636 # work properly (i.e., refer to `conftest.exe'), while it won't with
2637 # `rm'.
2638 for ac_file in conftest.exe conftest conftest.*; do
2639   test -f "$ac_file" || continue
2640   case $ac_file in
2641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2642     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2643           break;;
2644     * ) break;;
2645   esac
2646 done
2647 else
2648   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2651 See \`config.log' for more details." >&2;}
2652    { (exit 1); exit 1; }; }
2653 fi
2654
2655 rm -f conftest$ac_cv_exeext
2656 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2657 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2658
2659 rm -f conftest.$ac_ext
2660 EXEEXT=$ac_cv_exeext
2661 ac_exeext=$EXEEXT
2662 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2663 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2664 if test "${ac_cv_objext+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673
2674 int
2675 main ()
2676 {
2677
2678   ;
2679   return 0;
2680 }
2681 _ACEOF
2682 rm -f conftest.o conftest.obj
2683 if { (ac_try="$ac_compile"
2684 case "(($ac_try" in
2685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686   *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689   (eval "$ac_compile") 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; then
2693   for ac_file in conftest.o conftest.obj conftest.*; do
2694   test -f "$ac_file" || continue;
2695   case $ac_file in
2696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2697     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698        break;;
2699   esac
2700 done
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2706 See \`config.log' for more details." >&5
2707 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details." >&2;}
2709    { (exit 1); exit 1; }; }
2710 fi
2711
2712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2713 fi
2714 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2715 echo "${ECHO_T}$ac_cv_objext" >&6; }
2716 OBJEXT=$ac_cv_objext
2717 ac_objext=$OBJEXT
2718 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733 #ifndef __GNUC__
2734        choke me
2735 #endif
2736
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (ac_try="$ac_compile"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_compile") 2>conftest.er1
2749   ac_status=$?
2750   grep -v '^ *+' conftest.er1 >conftest.err
2751   rm -f conftest.er1
2752   cat conftest.err >&5
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); } && {
2755          test -z "$ac_c_werror_flag" ||
2756          test ! -s conftest.err
2757        } && test -s conftest.$ac_objext; then
2758   ac_compiler_gnu=yes
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763         ac_compiler_gnu=no
2764 fi
2765
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768
2769 fi
2770 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2771 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2772 GCC=`test $ac_compiler_gnu = yes && echo yes`
2773 ac_test_CFLAGS=${CFLAGS+set}
2774 ac_save_CFLAGS=$CFLAGS
2775 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2776 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_cc_g+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   ac_save_c_werror_flag=$ac_c_werror_flag
2781    ac_c_werror_flag=yes
2782    ac_cv_prog_cc_g=no
2783    CFLAGS="-g"
2784    cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (ac_try="$ac_compile"
2801 case "(($ac_try" in
2802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803   *) ac_try_echo=$ac_try;;
2804 esac
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806   (eval "$ac_compile") 2>conftest.er1
2807   ac_status=$?
2808   grep -v '^ *+' conftest.er1 >conftest.err
2809   rm -f conftest.er1
2810   cat conftest.err >&5
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); } && {
2813          test -z "$ac_c_werror_flag" ||
2814          test ! -s conftest.err
2815        } && test -s conftest.$ac_objext; then
2816   ac_cv_prog_cc_g=yes
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821         CFLAGS=""
2822       cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_compile") 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } && {
2851          test -z "$ac_c_werror_flag" ||
2852          test ! -s conftest.err
2853        } && test -s conftest.$ac_objext; then
2854   :
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859         ac_c_werror_flag=$ac_save_c_werror_flag
2860          CFLAGS="-g"
2861          cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867
2868 int
2869 main ()
2870 {
2871
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_compile") 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } && {
2890          test -z "$ac_c_werror_flag" ||
2891          test ! -s conftest.err
2892        } && test -s conftest.$ac_objext; then
2893   ac_cv_prog_cc_g=yes
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898
2899 fi
2900
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 fi
2903
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 fi
2906
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908    ac_c_werror_flag=$ac_save_c_werror_flag
2909 fi
2910 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2911 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2912 if test "$ac_test_CFLAGS" = set; then
2913   CFLAGS=$ac_save_CFLAGS
2914 elif test $ac_cv_prog_cc_g = yes; then
2915   if test "$GCC" = yes; then
2916     CFLAGS="-g -O2"
2917   else
2918     CFLAGS="-g"
2919   fi
2920 else
2921   if test "$GCC" = yes; then
2922     CFLAGS="-O2"
2923   else
2924     CFLAGS=
2925   fi
2926 fi
2927 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2928 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2929 if test "${ac_cv_prog_cc_c89+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   ac_cv_prog_cc_c89=no
2933 ac_save_CC=$CC
2934 cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #include <stdarg.h>
2941 #include <stdio.h>
2942 #include <sys/types.h>
2943 #include <sys/stat.h>
2944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2945 struct buf { int x; };
2946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947 static char *e (p, i)
2948      char **p;
2949      int i;
2950 {
2951   return p[i];
2952 }
2953 static char *f (char * (*g) (char **, int), char **p, ...)
2954 {
2955   char *s;
2956   va_list v;
2957   va_start (v,p);
2958   s = g (p, va_arg (v,int));
2959   va_end (v);
2960   return s;
2961 }
2962
2963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2964    function prototypes and stuff, but not '\xHH' hex character constants.
2965    These don't provoke an error unfortunately, instead are silently treated
2966    as 'x'.  The following induces an error, until -std is added to get
2967    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2968    array size at least.  It's necessary to write '\x00'==0 to get something
2969    that's true only with -std.  */
2970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2971
2972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973    inside strings and character constants.  */
2974 #define FOO(x) 'x'
2975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2976
2977 int test (int i, double x);
2978 struct s1 {int (*f) (int a);};
2979 struct s2 {int (*f) (double a);};
2980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2981 int argc;
2982 char **argv;
2983 int
2984 main ()
2985 {
2986 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2993 do
2994   CC="$ac_save_CC $ac_arg"
2995   rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compile") 2>conftest.er1
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } && {
3009          test -z "$ac_c_werror_flag" ||
3010          test ! -s conftest.err
3011        } && test -s conftest.$ac_objext; then
3012   ac_cv_prog_cc_c89=$ac_arg
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017
3018 fi
3019
3020 rm -f core conftest.err conftest.$ac_objext
3021   test "x$ac_cv_prog_cc_c89" != "xno" && break
3022 done
3023 rm -f conftest.$ac_ext
3024 CC=$ac_save_CC
3025
3026 fi
3027 # AC_CACHE_VAL
3028 case "x$ac_cv_prog_cc_c89" in
3029   x)
3030     { echo "$as_me:$LINENO: result: none needed" >&5
3031 echo "${ECHO_T}none needed" >&6; } ;;
3032   xno)
3033     { echo "$as_me:$LINENO: result: unsupported" >&5
3034 echo "${ECHO_T}unsupported" >&6; } ;;
3035   *)
3036     CC="$CC $ac_cv_prog_cc_c89"
3037     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3038 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3039 esac
3040
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048 ac_ext=cpp
3049 ac_cpp='$CXXCPP $CPPFLAGS'
3050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3053 if test -z "$CXX"; then
3054   if test -n "$CCC"; then
3055     CXX=$CCC
3056   else
3057     if test -n "$ac_tool_prefix"; then
3058   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3059   do
3060     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_CXX+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if test -n "$CXX"; then
3068   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075   for ac_exec_ext in '' $ac_executable_extensions; do
3076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CXX=$ac_cv_prog_CXX
3088 if test -n "$CXX"; then
3089   { echo "$as_me:$LINENO: result: $CXX" >&5
3090 echo "${ECHO_T}$CXX" >&6; }
3091 else
3092   { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3094 fi
3095
3096
3097     test -n "$CXX" && break
3098   done
3099 fi
3100 if test -z "$CXX"; then
3101   ac_ct_CXX=$CXX
3102   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3103 do
3104   # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -n "$ac_ct_CXX"; then
3112   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_exec_ext in '' $ac_executable_extensions; do
3120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121     ac_cv_prog_ac_ct_CXX="$ac_prog"
3122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3135 else
3136   { echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6; }
3138 fi
3139
3140
3141   test -n "$ac_ct_CXX" && break
3142 done
3143
3144   if test "x$ac_ct_CXX" = x; then
3145     CXX="g++"
3146   else
3147     case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet.  If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&5
3152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3153 whose name does not start with the host triplet.  If you think this
3154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157     CXX=$ac_ct_CXX
3158   fi
3159 fi
3160
3161   fi
3162 fi
3163 # Provide some information about the compiler.
3164 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3165 ac_compiler=`set X $ac_compile; echo $2`
3166 { (ac_try="$ac_compiler --version >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler --version >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176 { (ac_try="$ac_compiler -v >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compiler -v >&5") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }
3186 { (ac_try="$ac_compiler -V >&5"
3187 case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_compiler -V >&5") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }
3196
3197 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3198 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3199 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212 #ifndef __GNUC__
3213        choke me
3214 #endif
3215
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_compile") 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } && {
3234          test -z "$ac_cxx_werror_flag" ||
3235          test ! -s conftest.err
3236        } && test -s conftest.$ac_objext; then
3237   ac_compiler_gnu=yes
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242         ac_compiler_gnu=no
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3247
3248 fi
3249 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3250 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3251 GXX=`test $ac_compiler_gnu = yes && echo yes`
3252 ac_test_CXXFLAGS=${CXXFLAGS+set}
3253 ac_save_CXXFLAGS=$CXXFLAGS
3254 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3255 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cxx_g+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3260    ac_cxx_werror_flag=yes
3261    ac_cv_prog_cxx_g=no
3262    CXXFLAGS="-g"
3263    cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269
3270 int
3271 main ()
3272 {
3273
3274   ;
3275   return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_compile") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } && {
3292          test -z "$ac_cxx_werror_flag" ||
3293          test ! -s conftest.err
3294        } && test -s conftest.$ac_objext; then
3295   ac_cv_prog_cxx_g=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300         CXXFLAGS=""
3301       cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h.  */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h.  */
3307
3308 int
3309 main ()
3310 {
3311
3312   ;
3313   return 0;
3314 }
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_compile") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } && {
3330          test -z "$ac_cxx_werror_flag" ||
3331          test ! -s conftest.err
3332        } && test -s conftest.$ac_objext; then
3333   :
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3339          CXXFLAGS="-g"
3340          cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346
3347 int
3348 main ()
3349 {
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362   (eval "$ac_compile") 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } && {
3369          test -z "$ac_cxx_werror_flag" ||
3370          test ! -s conftest.err
3371        } && test -s conftest.$ac_objext; then
3372   ac_cv_prog_cxx_g=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377
3378 fi
3379
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 fi
3382
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3388 fi
3389 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3391 if test "$ac_test_CXXFLAGS" = set; then
3392   CXXFLAGS=$ac_save_CXXFLAGS
3393 elif test $ac_cv_prog_cxx_g = yes; then
3394   if test "$GXX" = yes; then
3395     CXXFLAGS="-g -O2"
3396   else
3397     CXXFLAGS="-g"
3398   fi
3399 else
3400   if test "$GXX" = yes; then
3401     CXXFLAGS="-O2"
3402   else
3403     CXXFLAGS=
3404   fi
3405 fi
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
3412 if test "x$CC" != xcc; then
3413   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3414 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3415 else
3416   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3417 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3418 fi
3419 set dummy $CC; ac_cc=`echo $2 |
3420                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3421 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 # Make sure it works both with $CC and with simple cc.
3440 # We do the test twice because some compilers refuse to overwrite an
3441 # existing .o file with -o, though they will create one.
3442 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3443 rm -f conftest2.*
3444 if { (case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_try") 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } &&
3453    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_try") 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); };
3462 then
3463   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3464   if test "x$CC" != xcc; then
3465     # Test first that cc exists at all.
3466     if { ac_try='cc -c conftest.$ac_ext >&5'
3467   { (case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_try") 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; }; then
3476       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3477       rm -f conftest2.*
3478       if { (case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_try") 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } &&
3487          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_try") 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); };
3496       then
3497         # cc works too.
3498         :
3499       else
3500         # cc exists but doesn't like -o.
3501         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3502       fi
3503     fi
3504   fi
3505 else
3506   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3507 fi
3508 rm -f core conftest*
3509
3510 fi
3511 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3512   { echo "$as_me:$LINENO: result: yes" >&5
3513 echo "${ECHO_T}yes" >&6; }
3514 else
3515   { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3517
3518 cat >>confdefs.h <<\_ACEOF
3519 #define NO_MINUS_C_MINUS_O 1
3520 _ACEOF
3521
3522 fi
3523
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3530 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3531 # On Suns, sometimes $CPP names a directory.
3532 if test -n "$CPP" && test -d "$CPP"; then
3533   CPP=
3534 fi
3535 if test -z "$CPP"; then
3536   if test "${ac_cv_prog_CPP+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539       # Double quotes because CPP needs to be expanded
3540     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3541     do
3542       ac_preproc_ok=false
3543 for ac_c_preproc_warn_flag in '' yes
3544 do
3545   # Use a header file that comes with gcc, so configuring glibc
3546   # with a fresh cross-compiler works.
3547   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548   # <limits.h> exists even on freestanding compilers.
3549   # On the NeXT, cc -E runs the code through the compiler's parser,
3550   # not just through cpp. "Syntax error" is here to catch this case.
3551   cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557 #ifdef __STDC__
3558 # include <limits.h>
3559 #else
3560 # include <assert.h>
3561 #endif
3562                      Syntax error
3563 _ACEOF
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } >/dev/null && {
3577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3578          test ! -s conftest.err
3579        }; then
3580   :
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585   # Broken: fails on valid input.
3586 continue
3587 fi
3588
3589 rm -f conftest.err conftest.$ac_ext
3590
3591   # OK, works on sane cases.  Now check whether nonexistent headers
3592   # can be detected and how.
3593   cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 #include <ac_nonexistent.h>
3600 _ACEOF
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } >/dev/null && {
3614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3615          test ! -s conftest.err
3616        }; then
3617   # Broken: success on invalid input.
3618 continue
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623   # Passes both tests.
3624 ac_preproc_ok=:
3625 break
3626 fi
3627
3628 rm -f conftest.err conftest.$ac_ext
3629
3630 done
3631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632 rm -f conftest.err conftest.$ac_ext
3633 if $ac_preproc_ok; then
3634   break
3635 fi
3636
3637     done
3638     ac_cv_prog_CPP=$CPP
3639
3640 fi
3641   CPP=$ac_cv_prog_CPP
3642 else
3643   ac_cv_prog_CPP=$CPP
3644 fi
3645 { echo "$as_me:$LINENO: result: $CPP" >&5
3646 echo "${ECHO_T}$CPP" >&6; }
3647 ac_preproc_ok=false
3648 for ac_c_preproc_warn_flag in '' yes
3649 do
3650   # Use a header file that comes with gcc, so configuring glibc
3651   # with a fresh cross-compiler works.
3652   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653   # <limits.h> exists even on freestanding compilers.
3654   # On the NeXT, cc -E runs the code through the compiler's parser,
3655   # not just through cpp. "Syntax error" is here to catch this case.
3656   cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #ifdef __STDC__
3663 # include <limits.h>
3664 #else
3665 # include <assert.h>
3666 #endif
3667                      Syntax error
3668 _ACEOF
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } >/dev/null && {
3682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683          test ! -s conftest.err
3684        }; then
3685   :
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690   # Broken: fails on valid input.
3691 continue
3692 fi
3693
3694 rm -f conftest.err conftest.$ac_ext
3695
3696   # OK, works on sane cases.  Now check whether nonexistent headers
3697   # can be detected and how.
3698   cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704 #include <ac_nonexistent.h>
3705 _ACEOF
3706 if { (ac_try="$ac_cpp conftest.$ac_ext"
3707 case "(($ac_try" in
3708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709   *) ac_try_echo=$ac_try;;
3710 esac
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3713   ac_status=$?
3714   grep -v '^ *+' conftest.er1 >conftest.err
3715   rm -f conftest.er1
3716   cat conftest.err >&5
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); } >/dev/null && {
3719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3720          test ! -s conftest.err
3721        }; then
3722   # Broken: success on invalid input.
3723 continue
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728   # Passes both tests.
3729 ac_preproc_ok=:
3730 break
3731 fi
3732
3733 rm -f conftest.err conftest.$ac_ext
3734
3735 done
3736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3737 rm -f conftest.err conftest.$ac_ext
3738 if $ac_preproc_ok; then
3739   :
3740 else
3741   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3742 See \`config.log' for more details." >&5
3743 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3744 See \`config.log' for more details." >&2;}
3745    { (exit 1); exit 1; }; }
3746 fi
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754
3755 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3756 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_GREP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   # Extract the first word of "grep ggrep" to use in msg output
3761 if test -z "$GREP"; then
3762 set dummy grep ggrep; ac_prog_name=$2
3763 if test "${ac_cv_path_GREP+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   ac_path_GREP_found=false
3767 # Loop through the user's path and test for each of PROGNAME-LIST
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3770 do
3771   IFS=$as_save_IFS
3772   test -z "$as_dir" && as_dir=.
3773   for ac_prog in grep ggrep; do
3774   for ac_exec_ext in '' $ac_executable_extensions; do
3775     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3776     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3777     # Check for GNU ac_path_GREP and select it if it is found.
3778   # Check for GNU $ac_path_GREP
3779 case `"$ac_path_GREP" --version 2>&1` in
3780 *GNU*)
3781   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3782 *)
3783   ac_count=0
3784   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3785   while :
3786   do
3787     cat "conftest.in" "conftest.in" >"conftest.tmp"
3788     mv "conftest.tmp" "conftest.in"
3789     cp "conftest.in" "conftest.nl"
3790     echo 'GREP' >> "conftest.nl"
3791     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3792     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3793     ac_count=`expr $ac_count + 1`
3794     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3795       # Best one so far, save it but keep looking for a better one
3796       ac_cv_path_GREP="$ac_path_GREP"
3797       ac_path_GREP_max=$ac_count
3798     fi
3799     # 10*(2^10) chars as input seems more than enough
3800     test $ac_count -gt 10 && break
3801   done
3802   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3803 esac
3804
3805
3806     $ac_path_GREP_found && break 3
3807   done
3808 done
3809
3810 done
3811 IFS=$as_save_IFS
3812
3813
3814 fi
3815
3816 GREP="$ac_cv_path_GREP"
3817 if test -z "$GREP"; then
3818   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3819 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3820    { (exit 1); exit 1; }; }
3821 fi
3822
3823 else
3824   ac_cv_path_GREP=$GREP
3825 fi
3826
3827
3828 fi
3829 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3830 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3831  GREP="$ac_cv_path_GREP"
3832
3833
3834 { echo "$as_me:$LINENO: checking for egrep" >&5
3835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3836 if test "${ac_cv_path_EGREP+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3840    then ac_cv_path_EGREP="$GREP -E"
3841    else
3842      # Extract the first word of "egrep" to use in msg output
3843 if test -z "$EGREP"; then
3844 set dummy egrep; ac_prog_name=$2
3845 if test "${ac_cv_path_EGREP+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   ac_path_EGREP_found=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3852 do
3853   IFS=$as_save_IFS
3854   test -z "$as_dir" && as_dir=.
3855   for ac_prog in egrep; do
3856   for ac_exec_ext in '' $ac_executable_extensions; do
3857     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3858     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3859     # Check for GNU ac_path_EGREP and select it if it is found.
3860   # Check for GNU $ac_path_EGREP
3861 case `"$ac_path_EGREP" --version 2>&1` in
3862 *GNU*)
3863   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3864 *)
3865   ac_count=0
3866   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3867   while :
3868   do
3869     cat "conftest.in" "conftest.in" >"conftest.tmp"
3870     mv "conftest.tmp" "conftest.in"
3871     cp "conftest.in" "conftest.nl"
3872     echo 'EGREP' >> "conftest.nl"
3873     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3874     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3875     ac_count=`expr $ac_count + 1`
3876     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3877       # Best one so far, save it but keep looking for a better one
3878       ac_cv_path_EGREP="$ac_path_EGREP"
3879       ac_path_EGREP_max=$ac_count
3880     fi
3881     # 10*(2^10) chars as input seems more than enough
3882     test $ac_count -gt 10 && break
3883   done
3884   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3885 esac
3886
3887
3888     $ac_path_EGREP_found && break 3
3889   done
3890 done
3891
3892 done
3893 IFS=$as_save_IFS
3894
3895
3896 fi
3897
3898 EGREP="$ac_cv_path_EGREP"
3899 if test -z "$EGREP"; then
3900   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3901 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3902    { (exit 1); exit 1; }; }
3903 fi
3904
3905 else
3906   ac_cv_path_EGREP=$EGREP
3907 fi
3908
3909
3910    fi
3911 fi
3912 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3913 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3914  EGREP="$ac_cv_path_EGREP"
3915
3916
3917 if test $ac_cv_c_compiler_gnu = yes; then
3918     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3919 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3920 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923     ac_pattern="Autoconf.*'x'"
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <sgtty.h>
3931 Autoconf TIOCGETP
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3935   ac_cv_prog_gcc_traditional=yes
3936 else
3937   ac_cv_prog_gcc_traditional=no
3938 fi
3939 rm -f conftest*
3940
3941
3942   if test $ac_cv_prog_gcc_traditional = no; then
3943     cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <termio.h>
3950 Autoconf TCGETA
3951 _ACEOF
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3954   ac_cv_prog_gcc_traditional=yes
3955 fi
3956 rm -f conftest*
3957
3958   fi
3959 fi
3960 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3961 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3962   if test $ac_cv_prog_gcc_traditional = yes; then
3963     CC="$CC -traditional"
3964   fi
3965 fi
3966
3967 BASECC=`basename $CC`
3968 have_gcc=no
3969 if test "x$BASECC" = xgcc; then
3970    cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_GCC 1
3972 _ACEOF
3973
3974    have_gcc=yes
3975 fi
3976 # Extract the first word of "$CXX", so it can be a program name with args.
3977 set dummy $CXX; ac_word=$2
3978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3980 if test "${ac_cv_path_CXX+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   case $CXX in
3984   [\\/]* | ?:[\\/]*)
3985   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3986   ;;
3987   *)
3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4004   ;;
4005 esac
4006 fi
4007 CXX=$ac_cv_path_CXX
4008 if test -n "$CXX"; then
4009   { echo "$as_me:$LINENO: result: $CXX" >&5
4010 echo "${ECHO_T}$CXX" >&6; }
4011 else
4012   { echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6; }
4014 fi
4015
4016
4017 if test ! -e $CXX; then
4018    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4019 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4020    { (exit 1); exit 1; }; }
4021 fi
4022
4023 # Find a good install program.  We prefer a C program (faster),
4024 # so one script is as good as another.  But avoid the broken or
4025 # incompatible versions:
4026 # SysV /etc/install, /usr/sbin/install
4027 # SunOS /usr/etc/install
4028 # IRIX /sbin/install
4029 # AIX /bin/install
4030 # AmigaOS /C/install, which installs bootblocks on floppy discs
4031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4034 # OS/2's system install, which has a completely different semantic
4035 # ./install, which can be erroneously created by make from ./install.sh.
4036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4038 if test -z "$INSTALL"; then
4039 if test "${ac_cv_path_install+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   # Account for people who put trailing slashes in PATH elements.
4048 case $as_dir/ in
4049   ./ | .// | /cC/* | \
4050   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4051   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4052   /usr/ucb/* ) ;;
4053   *)
4054     # OSF1 and SCO ODT 3.0 have their own names for install.
4055     # Don't use installbsd from OSF since it installs stuff as root
4056     # by default.
4057     for ac_prog in ginstall scoinst install; do
4058       for ac_exec_ext in '' $ac_executable_extensions; do
4059         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4060           if test $ac_prog = install &&
4061             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4062             # AIX install.  It has an incompatible calling convention.
4063             :
4064           elif test $ac_prog = install &&
4065             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4066             # program-specific install script used by HP pwplus--don't use.
4067             :
4068           else
4069             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4070             break 3
4071           fi
4072         fi
4073       done
4074     done
4075     ;;
4076 esac
4077 done
4078 IFS=$as_save_IFS
4079
4080
4081 fi
4082   if test "${ac_cv_path_install+set}" = set; then
4083     INSTALL=$ac_cv_path_install
4084   else
4085     # As a last resort, use the slow shell script.  Don't cache a
4086     # value for INSTALL within a source directory, because that will
4087     # break other packages using the cache if that directory is
4088     # removed, or if the value is a relative name.
4089     INSTALL=$ac_install_sh
4090   fi
4091 fi
4092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4093 echo "${ECHO_T}$INSTALL" >&6; }
4094
4095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4096 # It thinks the first close brace ends the variable substitution.
4097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4098
4099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4100
4101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4102
4103 if test -n "$ac_tool_prefix"; then
4104   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4108 if test "${ac_cv_prog_RANLIB+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   if test -n "$RANLIB"; then
4112   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119   for ac_exec_ext in '' $ac_executable_extensions; do
4120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126 done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 RANLIB=$ac_cv_prog_RANLIB
4132 if test -n "$RANLIB"; then
4133   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4134 echo "${ECHO_T}$RANLIB" >&6; }
4135 else
4136   { echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6; }
4138 fi
4139
4140
4141 fi
4142 if test -z "$ac_cv_prog_RANLIB"; then
4143   ac_ct_RANLIB=$RANLIB
4144   # Extract the first word of "ranlib", so it can be a program name with args.
4145 set dummy ranlib; ac_word=$2
4146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$ac_ct_RANLIB"; then
4152   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161     ac_cv_prog_ac_ct_RANLIB="ranlib"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167 IFS=$as_save_IFS
4168
4169 fi
4170 fi
4171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4172 if test -n "$ac_ct_RANLIB"; then
4173   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4175 else
4176   { echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6; }
4178 fi
4179
4180   if test "x$ac_ct_RANLIB" = x; then
4181     RANLIB=":"
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet.  If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&5
4188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4189 whose name does not start with the host triplet.  If you think this
4190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4191 ac_tool_warned=yes ;;
4192 esac
4193     RANLIB=$ac_ct_RANLIB
4194   fi
4195 else
4196   RANLIB="$ac_cv_prog_RANLIB"
4197 fi
4198
4199 # Extract the first word of "mv", so it can be a program name with args.
4200 set dummy mv; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_path_MV+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   case $MV in
4207   [\\/]* | ?:[\\/]*)
4208   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4209   ;;
4210   *)
4211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216   for ac_exec_ext in '' $ac_executable_extensions; do
4217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220     break 2
4221   fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4227   ;;
4228 esac
4229 fi
4230 MV=$ac_cv_path_MV
4231 if test -n "$MV"; then
4232   { echo "$as_me:$LINENO: result: $MV" >&5
4233 echo "${ECHO_T}$MV" >&6; }
4234 else
4235   { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4237 fi
4238
4239
4240 # Extract the first word of "rm", so it can be a program name with args.
4241 set dummy rm; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_path_RM+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   case $RM in
4248   [\\/]* | ?:[\\/]*)
4249   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4250   ;;
4251   *)
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4268   ;;
4269 esac
4270 fi
4271 RM=$ac_cv_path_RM
4272 if test -n "$RM"; then
4273   { echo "$as_me:$LINENO: result: $RM" >&5
4274 echo "${ECHO_T}$RM" >&6; }
4275 else
4276   { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4278 fi
4279
4280
4281 # Extract the first word of "cp", so it can be a program name with args.
4282 set dummy cp; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_path_CP+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   case $CP in
4289   [\\/]* | ?:[\\/]*)
4290   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4291   ;;
4292   *)
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4309   ;;
4310 esac
4311 fi
4312 CP=$ac_cv_path_CP
4313 if test -n "$CP"; then
4314   { echo "$as_me:$LINENO: result: $CP" >&5
4315 echo "${ECHO_T}$CP" >&6; }
4316 else
4317   { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4319 fi
4320
4321
4322 # Extract the first word of "sed", so it can be a program name with args.
4323 set dummy sed; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_path_SED+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   case $SED in
4330   [\\/]* | ?:[\\/]*)
4331   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4332   ;;
4333   *)
4334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337   IFS=$as_save_IFS
4338   test -z "$as_dir" && as_dir=.
4339   for ac_exec_ext in '' $ac_executable_extensions; do
4340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343     break 2
4344   fi
4345 done
4346 done
4347 IFS=$as_save_IFS
4348
4349   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4350   ;;
4351 esac
4352 fi
4353 SED=$ac_cv_path_SED
4354 if test -n "$SED"; then
4355   { echo "$as_me:$LINENO: result: $SED" >&5
4356 echo "${ECHO_T}$SED" >&6; }
4357 else
4358   { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4360 fi
4361
4362
4363 # Extract the first word of "echo", so it can be a program name with args.
4364 set dummy echo; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_path_ECHO+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   case $ECHO in
4371   [\\/]* | ?:[\\/]*)
4372   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4373   ;;
4374   *)
4375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380   for ac_exec_ext in '' $ac_executable_extensions; do
4381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384     break 2
4385   fi
4386 done
4387 done
4388 IFS=$as_save_IFS
4389
4390   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4391   ;;
4392 esac
4393 fi
4394 ECHO=$ac_cv_path_ECHO
4395 if test -n "$ECHO"; then
4396   { echo "$as_me:$LINENO: result: $ECHO" >&5
4397 echo "${ECHO_T}$ECHO" >&6; }
4398 else
4399   { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4401 fi
4402
4403
4404 # Extract the first word of "cmp", so it can be a program name with args.
4405 set dummy cmp; ac_word=$2
4406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408 if test "${ac_cv_path_CMP+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   case $CMP in
4412   [\\/]* | ?:[\\/]*)
4413   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4414   ;;
4415   *)
4416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419   IFS=$as_save_IFS
4420   test -z "$as_dir" && as_dir=.
4421   for ac_exec_ext in '' $ac_executable_extensions; do
4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425     break 2
4426   fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4432   ;;
4433 esac
4434 fi
4435 CMP=$ac_cv_path_CMP
4436 if test -n "$CMP"; then
4437   { echo "$as_me:$LINENO: result: $CMP" >&5
4438 echo "${ECHO_T}$CMP" >&6; }
4439 else
4440   { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4442 fi
4443
4444
4445 # Extract the first word of "tbl", so it can be a program name with args.
4446 set dummy tbl; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_path_TBL+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   case $TBL in
4453   [\\/]* | ?:[\\/]*)
4454   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4455   ;;
4456   *)
4457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4473   ;;
4474 esac
4475 fi
4476 TBL=$ac_cv_path_TBL
4477 if test -n "$TBL"; then
4478   { echo "$as_me:$LINENO: result: $TBL" >&5
4479 echo "${ECHO_T}$TBL" >&6; }
4480 else
4481   { echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; }
4483 fi
4484
4485
4486 # Extract the first word of "ar", so it can be a program name with args.
4487 set dummy ar; ac_word=$2
4488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490 if test "${ac_cv_path_AR+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   case $AR in
4494   [\\/]* | ?:[\\/]*)
4495   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4496   ;;
4497   *)
4498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503   for ac_exec_ext in '' $ac_executable_extensions; do
4504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4514   ;;
4515 esac
4516 fi
4517 AR=$ac_cv_path_AR
4518 if test -n "$AR"; then
4519   { echo "$as_me:$LINENO: result: $AR" >&5
4520 echo "${ECHO_T}$AR" >&6; }
4521 else
4522   { echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6; }
4524 fi
4525
4526
4527 # Extract the first word of "openssl", so it can be a program name with args.
4528 set dummy openssl; ac_word=$2
4529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531 if test "${ac_cv_path_OPENSSL+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   case $OPENSSL in
4535   [\\/]* | ?:[\\/]*)
4536   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4537   ;;
4538   *)
4539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544   for ac_exec_ext in '' $ac_executable_extensions; do
4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4555   ;;
4556 esac
4557 fi
4558 OPENSSL=$ac_cv_path_OPENSSL
4559 if test -n "$OPENSSL"; then
4560   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4561 echo "${ECHO_T}$OPENSSL" >&6; }
4562 else
4563   { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4565 fi
4566
4567
4568 # Extract the first word of "mtx", so it can be a program name with args.
4569 set dummy mtx; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_path_MTX+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   case $MTX in
4576   [\\/]* | ?:[\\/]*)
4577   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4578   ;;
4579   *)
4580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4596   ;;
4597 esac
4598 fi
4599 MTX=$ac_cv_path_MTX
4600 if test -n "$MTX"; then
4601   { echo "$as_me:$LINENO: result: $MTX" >&5
4602 echo "${ECHO_T}$MTX" >&6; }
4603 else
4604   { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4606 fi
4607
4608
4609 # Extract the first word of "dd", so it can be a program name with args.
4610 set dummy dd; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_path_DD+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   case $DD in
4617   [\\/]* | ?:[\\/]*)
4618   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4619   ;;
4620   *)
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626   for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633 done
4634 IFS=$as_save_IFS
4635
4636   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4637   ;;
4638 esac
4639 fi
4640 DD=$ac_cv_path_DD
4641 if test -n "$DD"; then
4642   { echo "$as_me:$LINENO: result: $DD" >&5
4643 echo "${ECHO_T}$DD" >&6; }
4644 else
4645   { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4647 fi
4648
4649
4650 # Extract the first word of "mkisofs", so it can be a program name with args.
4651 set dummy mkisofs; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_path_MKISOFS+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   case $MKISOFS in
4658   [\\/]* | ?:[\\/]*)
4659   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4660   ;;
4661   *)
4662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667   for ac_exec_ext in '' $ac_executable_extensions; do
4668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671     break 2
4672   fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4678   ;;
4679 esac
4680 fi
4681 MKISOFS=$ac_cv_path_MKISOFS
4682 if test -n "$MKISOFS"; then
4683   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4684 echo "${ECHO_T}$MKISOFS" >&6; }
4685 else
4686   { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4688 fi
4689
4690
4691 # Extract the first word of "python", so it can be a program name with args.
4692 set dummy python; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_path_PYTHON+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   case $PYTHON in
4699   [\\/]* | ?:[\\/]*)
4700   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4701   ;;
4702   *)
4703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708   for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4719   ;;
4720 esac
4721 fi
4722 PYTHON=$ac_cv_path_PYTHON
4723 if test -n "$PYTHON"; then
4724   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4725 echo "${ECHO_T}$PYTHON" >&6; }
4726 else
4727   { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 fi
4730
4731
4732 # Extract the first word of "growisofs", so it can be a program name with args.
4733 set dummy growisofs; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   case $GROWISOFS in
4740   [\\/]* | ?:[\\/]*)
4741   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4742   ;;
4743   *)
4744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4760   ;;
4761 esac
4762 fi
4763 GROWISOFS=$ac_cv_path_GROWISOFS
4764 if test -n "$GROWISOFS"; then
4765   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4766 echo "${ECHO_T}$GROWISOFS" >&6; }
4767 else
4768   { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 fi
4771
4772
4773 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4774 set dummy dvd+rw-mediainfo; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   case $DVDRWMEDIAINFO in
4781   [\\/]* | ?:[\\/]*)
4782   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4783   ;;
4784   *)
4785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790   for ac_exec_ext in '' $ac_executable_extensions; do
4791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4801   ;;
4802 esac
4803 fi
4804 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4805 if test -n "$DVDRWMEDIAINFO"; then
4806   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4807 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4808 else
4809   { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4811 fi
4812
4813
4814 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4815 set dummy dvd+rw-format; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   case $DVDRWFORMAT in
4822   [\\/]* | ?:[\\/]*)
4823   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4824   ;;
4825   *)
4826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4842   ;;
4843 esac
4844 fi
4845 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4846 if test -n "$DVDRWFORMAT"; then
4847   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4848 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4849 else
4850   { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4852 fi
4853
4854
4855 # Extract the first word of "pkg-config", so it can be a program name with args.
4856 set dummy pkg-config; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   case $PKGCONFIG in
4863   [\\/]* | ?:[\\/]*)
4864   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4865   ;;
4866   *)
4867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872   for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4883   ;;
4884 esac
4885 fi
4886 PKGCONFIG=$ac_cv_path_PKGCONFIG
4887 if test -n "$PKGCONFIG"; then
4888   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4889 echo "${ECHO_T}$PKGCONFIG" >&6; }
4890 else
4891   { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4893 fi
4894
4895
4896 # Extract the first word of "qmake", so it can be a program name with args.
4897 set dummy qmake; ac_word=$2
4898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_QMAKE+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   case $QMAKE in
4904   [\\/]* | ?:[\\/]*)
4905   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4906   ;;
4907   *)
4908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913   for ac_exec_ext in '' $ac_executable_extensions; do
4914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4924   ;;
4925 esac
4926 fi
4927 QMAKE=$ac_cv_path_QMAKE
4928 if test -n "$QMAKE"; then
4929   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4930 echo "${ECHO_T}$QMAKE" >&6; }
4931 else
4932   { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4934 fi
4935
4936
4937 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4938 set dummy qmake-qt4; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   case $QMAKEQT4 in
4945   [\\/]* | ?:[\\/]*)
4946   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4947   ;;
4948   *)
4949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4965   ;;
4966 esac
4967 fi
4968 QMAKEQT4=$ac_cv_path_QMAKEQT4
4969 if test -n "$QMAKEQT4"; then
4970   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4971 echo "${ECHO_T}$QMAKEQT4" >&6; }
4972 else
4973   { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4975 fi
4976
4977
4978
4979 if test "x$WXCONFIG" = x; then
4980   WXCONFIG=wx-config
4981 fi
4982 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4983 set dummy ${WXCONFIG}; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   case $WXCONFIG in
4990   [\\/]* | ?:[\\/]*)
4991   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4992   ;;
4993   *)
4994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999   for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006 done
5007 IFS=$as_save_IFS
5008
5009   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5010   ;;
5011 esac
5012 fi
5013 WXCONFIG=$ac_cv_path_WXCONFIG
5014 if test -n "$WXCONFIG"; then
5015   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5016 echo "${ECHO_T}$WXCONFIG" >&6; }
5017 else
5018   { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5020 fi
5021
5022
5023
5024 # Extract the first word of "cdrecord", so it can be a program name with args.
5025 set dummy cdrecord; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_path_CDRECORD+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   case $CDRECORD in
5032   [\\/]* | ?:[\\/]*)
5033   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5034   ;;
5035   *)
5036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041   for ac_exec_ext in '' $ac_executable_extensions; do
5042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5052   ;;
5053 esac
5054 fi
5055 CDRECORD=$ac_cv_path_CDRECORD
5056 if test -n "$CDRECORD"; then
5057   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5058 echo "${ECHO_T}$CDRECORD" >&6; }
5059 else
5060   { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5062 fi
5063
5064
5065 # Extract the first word of "pidof", so it can be a program name with args.
5066 set dummy pidof; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_PIDOF+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   case $PIDOF in
5073   [\\/]* | ?:[\\/]*)
5074   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5075   ;;
5076   *)
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082   for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5093   ;;
5094 esac
5095 fi
5096 PIDOF=$ac_cv_path_PIDOF
5097 if test -n "$PIDOF"; then
5098   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5099 echo "${ECHO_T}$PIDOF" >&6; }
5100 else
5101   { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105
5106 for ac_prog in gawk mawk nawk awk
5107 do
5108   # Extract the first word of "$ac_prog", so it can be a program name with args.
5109 set dummy $ac_prog; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_prog_AWK+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   if test -n "$AWK"; then
5116   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123   for ac_exec_ext in '' $ac_executable_extensions; do
5124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125     ac_cv_prog_AWK="$ac_prog"
5126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 AWK=$ac_cv_prog_AWK
5136 if test -n "$AWK"; then
5137   { echo "$as_me:$LINENO: result: $AWK" >&5
5138 echo "${ECHO_T}$AWK" >&6; }
5139 else
5140   { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5142 fi
5143
5144
5145   test -n "$AWK" && break
5146 done
5147
5148 # Some AWK programs fail, so test it and warn the user
5149 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5150       { if ((prog == $2) || (("(" prog ")") == $2) ||
5151            (("" prog "") == $2) ||
5152            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5153 else
5154   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5155    The regex engine of $AWK is too broken to be used you
5156    might want to install GNU AWK.
5157    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5158 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5159    The regex engine of $AWK is too broken to be used you
5160    might want to install GNU AWK.
5161    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5162    { (exit 1); exit 1; }; }
5163 fi
5164 THE_AWK=$AWK
5165 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5166 set dummy $THE_AWK; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_AWK+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   case $AWK in
5173   [\\/]* | ?:[\\/]*)
5174   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5175   ;;
5176   *)
5177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5193   ;;
5194 esac
5195 fi
5196 AWK=$ac_cv_path_AWK
5197 if test -n "$AWK"; then
5198   { echo "$as_me:$LINENO: result: $AWK" >&5
5199 echo "${ECHO_T}$AWK" >&6; }
5200 else
5201   { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5203 fi
5204
5205
5206
5207
5208 test -n "$ARFLAG" || ARFLAGS="cr"
5209
5210
5211 MAKE_SHELL=/bin/sh
5212
5213
5214
5215
5216
5217
5218
5219 # Make sure we can run config.sub.
5220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5221   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5222 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5223    { (exit 1); exit 1; }; }
5224
5225 { echo "$as_me:$LINENO: checking build system type" >&5
5226 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5227 if test "${ac_cv_build+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   ac_build_alias=$build_alias
5231 test "x$ac_build_alias" = x &&
5232   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5233 test "x$ac_build_alias" = x &&
5234   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5235 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5236    { (exit 1); exit 1; }; }
5237 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5238   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5239 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5240    { (exit 1); exit 1; }; }
5241
5242 fi
5243 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5244 echo "${ECHO_T}$ac_cv_build" >&6; }
5245 case $ac_cv_build in
5246 *-*-*) ;;
5247 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5248 echo "$as_me: error: invalid value of canonical build" >&2;}
5249    { (exit 1); exit 1; }; };;
5250 esac
5251 build=$ac_cv_build
5252 ac_save_IFS=$IFS; IFS='-'
5253 set x $ac_cv_build
5254 shift
5255 build_cpu=$1
5256 build_vendor=$2
5257 shift; shift
5258 # Remember, the first character of IFS is used to create $*,
5259 # except with old shells:
5260 build_os=$*
5261 IFS=$ac_save_IFS
5262 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5263
5264
5265
5266 { echo "$as_me:$LINENO: checking host system type" >&5
5267 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5268 if test "${ac_cv_host+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   if test "x$host_alias" = x; then
5272   ac_cv_host=$ac_cv_build
5273 else
5274   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5275     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5276 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5277    { (exit 1); exit 1; }; }
5278 fi
5279
5280 fi
5281 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5282 echo "${ECHO_T}$ac_cv_host" >&6; }
5283 case $ac_cv_host in
5284 *-*-*) ;;
5285 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5286 echo "$as_me: error: invalid value of canonical host" >&2;}
5287    { (exit 1); exit 1; }; };;
5288 esac
5289 host=$ac_cv_host
5290 ac_save_IFS=$IFS; IFS='-'
5291 set x $ac_cv_host
5292 shift
5293 host_cpu=$1
5294 host_vendor=$2
5295 shift; shift
5296 # Remember, the first character of IFS is used to create $*,
5297 # except with old shells:
5298 host_os=$*
5299 IFS=$ac_save_IFS
5300 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5301
5302
5303 case $host_os in
5304   *cygwin* ) CYGWIN=yes;;
5305          * ) CYGWIN=no;;
5306 esac
5307
5308 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5309 then
5310
5311
5312 if $TRUEPRG; then
5313   HAVE_SUN_OS_TRUE=
5314   HAVE_SUN_OS_FALSE='#'
5315 else
5316   HAVE_SUN_OS_TRUE='#'
5317   HAVE_SUN_OS_FALSE=
5318 fi
5319         cat >>confdefs.h <<\_ACEOF
5320 #define HAVE_SUN_OS 1
5321 _ACEOF
5322
5323 else
5324
5325
5326 if $FALSEPRG; then
5327   HAVE_SUN_OS_TRUE=
5328   HAVE_SUN_OS_FALSE='#'
5329 else
5330   HAVE_SUN_OS_TRUE='#'
5331   HAVE_SUN_OS_FALSE=
5332 fi
5333 fi
5334
5335 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5336 then
5337
5338
5339 if $TRUEPRG; then
5340   HAVE_OSF1_OS_TRUE=
5341   HAVE_OSF1_OS_FALSE='#'
5342 else
5343   HAVE_OSF1_OS_TRUE='#'
5344   HAVE_OSF1_OS_FALSE=
5345 fi
5346         cat >>confdefs.h <<\_ACEOF
5347 #define HAVE_OSF1_OS 1
5348 _ACEOF
5349
5350 else
5351
5352
5353 if $FALSEPRG; then
5354   HAVE_OSF1_OS_TRUE=
5355   HAVE_OSF1_OS_FALSE='#'
5356 else
5357   HAVE_OSF1_OS_TRUE='#'
5358   HAVE_OSF1_OS_FALSE=
5359 fi
5360 fi
5361
5362 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5363 then
5364
5365
5366 if $TRUEPRG; then
5367   HAVE_AIX_OS_TRUE=
5368   HAVE_AIX_OS_FALSE='#'
5369 else
5370   HAVE_AIX_OS_TRUE='#'
5371   HAVE_AIX_OS_FALSE=
5372 fi
5373         cat >>confdefs.h <<\_ACEOF
5374 #define HAVE_AIX_OS 1
5375 _ACEOF
5376
5377 else
5378
5379
5380 if $FALSEPRG; then
5381   HAVE_AIX_OS_TRUE=
5382   HAVE_AIX_OS_FALSE='#'
5383 else
5384   HAVE_AIX_OS_TRUE='#'
5385   HAVE_AIX_OS_FALSE=
5386 fi
5387 fi
5388
5389 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5390 then
5391
5392
5393 if $TRUEPRG; then
5394   HAVE_HPUX_OS_TRUE=
5395   HAVE_HPUX_OS_FALSE='#'
5396 else
5397   HAVE_HPUX_OS_TRUE='#'
5398   HAVE_HPUX_OS_FALSE=
5399 fi
5400         cat >>confdefs.h <<\_ACEOF
5401 #define HAVE_HPUX_OS 1
5402 _ACEOF
5403
5404 else
5405
5406
5407 if $FALSEPRG; then
5408   HAVE_HPUX_OS_TRUE=
5409   HAVE_HPUX_OS_FALSE='#'
5410 else
5411   HAVE_HPUX_OS_TRUE='#'
5412   HAVE_HPUX_OS_FALSE=
5413 fi
5414 fi
5415
5416 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5417 then
5418
5419
5420 if $TRUEPRG; then
5421   HAVE_LINUX_OS_TRUE=
5422   HAVE_LINUX_OS_FALSE='#'
5423 else
5424   HAVE_LINUX_OS_TRUE='#'
5425   HAVE_LINUX_OS_FALSE=
5426 fi
5427         cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_LINUX_OS 1
5429 _ACEOF
5430
5431 else
5432
5433
5434 if $FALSEPRG; then
5435   HAVE_LINUX_OS_TRUE=
5436   HAVE_LINUX_OS_FALSE='#'
5437 else
5438   HAVE_LINUX_OS_TRUE='#'
5439   HAVE_LINUX_OS_FALSE=
5440 fi
5441 fi
5442
5443 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5444 then
5445
5446
5447 if $TRUEPRG; then
5448   HAVE_FREEBSD_OS_TRUE=
5449   HAVE_FREEBSD_OS_FALSE='#'
5450 else
5451   HAVE_FREEBSD_OS_TRUE='#'
5452   HAVE_FREEBSD_OS_FALSE=
5453 fi
5454         cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_FREEBSD_OS 1
5456 _ACEOF
5457
5458 else
5459
5460
5461 if $FALSEPRG; then
5462   HAVE_FREEBSD_OS_TRUE=
5463   HAVE_FREEBSD_OS_FALSE='#'
5464 else
5465   HAVE_FREEBSD_OS_TRUE='#'
5466   HAVE_FREEBSD_OS_FALSE=
5467 fi
5468 fi
5469
5470 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5471 then
5472
5473
5474 if $TRUEPRG; then
5475   HAVE_NETBSD_OS_TRUE=
5476   HAVE_NETBSD_OS_FALSE='#'
5477 else
5478   HAVE_NETBSD_OS_TRUE='#'
5479   HAVE_NETBSD_OS_FALSE=
5480 fi
5481         cat >>confdefs.h <<\_ACEOF
5482 #define HAVE_NETBSD_OS 1
5483 _ACEOF
5484
5485 else
5486
5487
5488 if $FALSEPRG; then
5489   HAVE_NETBSD_OS_TRUE=
5490   HAVE_NETBSD_OS_FALSE='#'
5491 else
5492   HAVE_NETBSD_OS_TRUE='#'
5493   HAVE_NETBSD_OS_FALSE=
5494 fi
5495 fi
5496
5497 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5498 then
5499
5500
5501 if $TRUEPRG; then
5502   HAVE_OPENBSD_OS_TRUE=
5503   HAVE_OPENBSD_OS_FALSE='#'
5504 else
5505   HAVE_OPENBSD_OS_TRUE='#'
5506   HAVE_OPENBSD_OS_FALSE=
5507 fi
5508         cat >>confdefs.h <<\_ACEOF
5509 #define HAVE_OPENBSD_OS 1
5510 _ACEOF
5511
5512 else
5513
5514
5515 if $FALSEPRG; then
5516   HAVE_OPENBSD_OS_TRUE=
5517   HAVE_OPENBSD_OS_FALSE='#'
5518 else
5519   HAVE_OPENBSD_OS_TRUE='#'
5520   HAVE_OPENBSD_OS_FALSE=
5521 fi
5522 fi
5523
5524 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5525 then
5526
5527
5528 if $TRUEPRG; then
5529   HAVE_BSDI_OS_TRUE=
5530   HAVE_BSDI_OS_FALSE='#'
5531 else
5532   HAVE_BSDI_OS_TRUE='#'
5533   HAVE_BSDI_OS_FALSE=
5534 fi
5535         cat >>confdefs.h <<\_ACEOF
5536 #define HAVE_BSDI_OS 1
5537 _ACEOF
5538
5539 else
5540
5541
5542 if $FALSEPRG; then
5543   HAVE_BSDI_OS_TRUE=
5544   HAVE_BSDI_OS_FALSE='#'
5545 else
5546   HAVE_BSDI_OS_TRUE='#'
5547   HAVE_BSDI_OS_FALSE=
5548 fi
5549 fi
5550
5551 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5552 then
5553
5554
5555 if $TRUEPRG; then
5556   HAVE_SGI_OS_TRUE=
5557   HAVE_SGI_OS_FALSE='#'
5558 else
5559   HAVE_SGI_OS_TRUE='#'
5560   HAVE_SGI_OS_FALSE=
5561 fi
5562         cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_SGI_OS 1
5564 _ACEOF
5565
5566 else
5567
5568
5569 if $FALSEPRG; then
5570   HAVE_SGI_OS_TRUE=
5571   HAVE_SGI_OS_FALSE='#'
5572 else
5573   HAVE_SGI_OS_TRUE='#'
5574   HAVE_SGI_OS_FALSE=
5575 fi
5576 fi
5577
5578 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5579 then
5580
5581
5582 if $TRUEPRG; then
5583   HAVE_IRIX_OS_TRUE=
5584   HAVE_IRIX_OS_FALSE='#'
5585 else
5586   HAVE_IRIX_OS_TRUE='#'
5587   HAVE_IRIX_OS_FALSE=
5588 fi
5589         cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_IRIX_OS 1
5591 _ACEOF
5592
5593 else
5594
5595
5596 if $FALSEPRG; then
5597   HAVE_IRIX_OS_TRUE=
5598   HAVE_IRIX_OS_FALSE='#'
5599 else
5600   HAVE_IRIX_OS_TRUE='#'
5601   HAVE_IRIX_OS_FALSE=
5602 fi
5603 fi
5604
5605 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5606 then
5607
5608
5609 if $TRUEPRG; then
5610   HAVE_DARWIN_OS_TRUE=
5611   HAVE_DARWIN_OS_FALSE='#'
5612 else
5613   HAVE_DARWIN_OS_TRUE='#'
5614   HAVE_DARWIN_OS_FALSE=
5615 fi
5616     cat >>confdefs.h <<\_ACEOF
5617 #define HAVE_DARWIN_OS 1
5618 _ACEOF
5619
5620 else
5621
5622
5623 if $FALSEPRG; then
5624   HAVE_DARWIN_OS_TRUE=
5625   HAVE_DARWIN_OS_FALSE='#'
5626 else
5627   HAVE_DARWIN_OS_TRUE='#'
5628   HAVE_DARWIN_OS_FALSE=
5629 fi
5630 fi
5631
5632
5633 # -----------------------------------------------------------
5634 # ----------------------------------------------------------
5635 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5636 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5637 if test "x$DISTNAME" != "x"
5638 then
5639         echo "distname set to $DISTNAME"
5640 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5641 then
5642         DISTNAME=alpha
5643 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5644 then
5645         DISTNAME=aix
5646 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5647 then
5648         DISTNAME=hpux
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5650 then
5651         DISTNAME=solaris
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5653 then
5654         DISTNAME=freebsd
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5656 then
5657         DISTNAME=netbsd
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5659 then
5660         DISTNAME=openbsd
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5662 then
5663         DISTNAME=irix
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5665 then
5666         DISTNAME=bsdi
5667 elif test -f /etc/SuSE-release
5668 then
5669         DISTNAME=suse
5670 elif test -d /etc/SuSEconfig
5671 then
5672         DISTNAME=suse5
5673 elif test -f /etc/mandrake-release
5674 then
5675         DISTNAME=mandrake
5676 elif test -f /etc/whitebox-release
5677 then
5678        DISTNAME=redhat
5679 elif test -f /etc/redhat-release
5680 then
5681         DISTNAME=redhat
5682 elif test -f /etc/gentoo-release
5683 then
5684         DISTNAME=gentoo
5685 elif test -f /etc/debian_version
5686 then
5687         DISTNAME=debian
5688 elif test -f /etc/slackware-version
5689 then
5690         DISTNAME=slackware
5691 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5692 then
5693     DISTNAME=darwin
5694 elif test -f /etc/engarde-version
5695 then
5696         DISTNAME=engarde
5697 elif test "$CYGWIN" = yes
5698 then
5699         DISTNAME=cygwin
5700         cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_CYGWIN 1
5702 _ACEOF
5703
5704 else
5705         DISTNAME=unknown
5706 fi
5707 { echo "$as_me:$LINENO: result: done" >&5
5708 echo "${ECHO_T}done" >&6; }
5709
5710
5711 # --------------------------------------------------
5712 # Suppport for gettext (translations)
5713 # By default, $datadir is ${prefix}/share
5714 # --------------------------------------------------
5715 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5717 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5718 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   cat >conftest.make <<\_ACEOF
5722 SHELL = /bin/sh
5723 all:
5724         @echo '@@@%%%=$(MAKE)=@@@%%%'
5725 _ACEOF
5726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5728   *@@@%%%=?*=@@@%%%*)
5729     eval ac_cv_prog_make_${ac_make}_set=yes;;
5730   *)
5731     eval ac_cv_prog_make_${ac_make}_set=no;;
5732 esac
5733 rm -f conftest.make
5734 fi
5735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5736   { echo "$as_me:$LINENO: result: yes" >&5
5737 echo "${ECHO_T}yes" >&6; }
5738   SET_MAKE=
5739 else
5740   { echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6; }
5742   SET_MAKE="MAKE=${MAKE-make}"
5743 fi
5744
5745
5746
5747         MKINSTALLDIRS=
5748   if test -n "$ac_aux_dir"; then
5749     case "$ac_aux_dir" in
5750       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5751       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5752     esac
5753   fi
5754   if test -z "$MKINSTALLDIRS"; then
5755     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5756   fi
5757
5758
5759
5760   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5762     # Check whether --enable-nls was given.
5763 if test "${enable_nls+set}" = set; then
5764   enableval=$enable_nls; USE_NLS=$enableval
5765 else
5766   USE_NLS=yes
5767 fi
5768
5769   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5770 echo "${ECHO_T}$USE_NLS" >&6; }
5771
5772
5773
5774
5775
5776
5777 # Prepare PATH_SEPARATOR.
5778 # The user is always right.
5779 if test "${PATH_SEPARATOR+set}" != set; then
5780   echo "#! /bin/sh" >conf$$.sh
5781   echo  "exit 0"   >>conf$$.sh
5782   chmod +x conf$$.sh
5783   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5784     PATH_SEPARATOR=';'
5785   else
5786     PATH_SEPARATOR=:
5787   fi
5788   rm -f conf$$.sh
5789 fi
5790
5791 # Find out how to test for executable files. Don't use a zero-byte file,
5792 # as systems may use methods other than mode bits to determine executability.
5793 cat >conf$$.file <<_ASEOF
5794 #! /bin/sh
5795 exit 0
5796 _ASEOF
5797 chmod +x conf$$.file
5798 if test -x conf$$.file >/dev/null 2>&1; then
5799   ac_executable_p="test -x"
5800 else
5801   ac_executable_p="test -f"
5802 fi
5803 rm -f conf$$.file
5804
5805 # Extract the first word of "msgfmt", so it can be a program name with args.
5806 set dummy msgfmt; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_path_MSGFMT+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   case "$MSGFMT" in
5813   [\\/]* | ?:[\\/]*)
5814     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5815     ;;
5816   *)
5817     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5818     for ac_dir in $PATH; do
5819       IFS="$ac_save_IFS"
5820       test -z "$ac_dir" && ac_dir=.
5821       for ac_exec_ext in '' $ac_executable_extensions; do
5822         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5823           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5824           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5825      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5826             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5827             break 2
5828           fi
5829         fi
5830       done
5831     done
5832     IFS="$ac_save_IFS"
5833   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5834     ;;
5835 esac
5836 fi
5837 MSGFMT="$ac_cv_path_MSGFMT"
5838 if test "$MSGFMT" != ":"; then
5839   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5840 echo "${ECHO_T}$MSGFMT" >&6; }
5841 else
5842   { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5844 fi
5845
5846   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5847 set dummy gmsgfmt; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   case $GMSGFMT in
5854   [\\/]* | ?:[\\/]*)
5855   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5856   ;;
5857   *)
5858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5874   ;;
5875 esac
5876 fi
5877 GMSGFMT=$ac_cv_path_GMSGFMT
5878 if test -n "$GMSGFMT"; then
5879   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5880 echo "${ECHO_T}$GMSGFMT" >&6; }
5881 else
5882   { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5884 fi
5885
5886
5887
5888
5889 # Prepare PATH_SEPARATOR.
5890 # The user is always right.
5891 if test "${PATH_SEPARATOR+set}" != set; then
5892   echo "#! /bin/sh" >conf$$.sh
5893   echo  "exit 0"   >>conf$$.sh
5894   chmod +x conf$$.sh
5895   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5896     PATH_SEPARATOR=';'
5897   else
5898     PATH_SEPARATOR=:
5899   fi
5900   rm -f conf$$.sh
5901 fi
5902
5903 # Find out how to test for executable files. Don't use a zero-byte file,
5904 # as systems may use methods other than mode bits to determine executability.
5905 cat >conf$$.file <<_ASEOF
5906 #! /bin/sh
5907 exit 0
5908 _ASEOF
5909 chmod +x conf$$.file
5910 if test -x conf$$.file >/dev/null 2>&1; then
5911   ac_executable_p="test -x"
5912 else
5913   ac_executable_p="test -f"
5914 fi
5915 rm -f conf$$.file
5916
5917 # Extract the first word of "xgettext", so it can be a program name with args.
5918 set dummy xgettext; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   case "$XGETTEXT" in
5925   [\\/]* | ?:[\\/]*)
5926     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5927     ;;
5928   *)
5929     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5930     for ac_dir in $PATH; do
5931       IFS="$ac_save_IFS"
5932       test -z "$ac_dir" && ac_dir=.
5933       for ac_exec_ext in '' $ac_executable_extensions; do
5934         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5935           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5936           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5937      (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
5938             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5939             break 2
5940           fi
5941         fi
5942       done
5943     done
5944     IFS="$ac_save_IFS"
5945   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5946     ;;
5947 esac
5948 fi
5949 XGETTEXT="$ac_cv_path_XGETTEXT"
5950 if test "$XGETTEXT" != ":"; then
5951   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5952 echo "${ECHO_T}$XGETTEXT" >&6; }
5953 else
5954   { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5956 fi
5957
5958     rm -f messages.po
5959
5960
5961 # Prepare PATH_SEPARATOR.
5962 # The user is always right.
5963 if test "${PATH_SEPARATOR+set}" != set; then
5964   echo "#! /bin/sh" >conf$$.sh
5965   echo  "exit 0"   >>conf$$.sh
5966   chmod +x conf$$.sh
5967   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5968     PATH_SEPARATOR=';'
5969   else
5970     PATH_SEPARATOR=:
5971   fi
5972   rm -f conf$$.sh
5973 fi
5974
5975 # Find out how to test for executable files. Don't use a zero-byte file,
5976 # as systems may use methods other than mode bits to determine executability.
5977 cat >conf$$.file <<_ASEOF
5978 #! /bin/sh
5979 exit 0
5980 _ASEOF
5981 chmod +x conf$$.file
5982 if test -x conf$$.file >/dev/null 2>&1; then
5983   ac_executable_p="test -x"
5984 else
5985   ac_executable_p="test -f"
5986 fi
5987 rm -f conf$$.file
5988
5989 # Extract the first word of "msgmerge", so it can be a program name with args.
5990 set dummy msgmerge; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   case "$MSGMERGE" in
5997   [\\/]* | ?:[\\/]*)
5998     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5999     ;;
6000   *)
6001     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6002     for ac_dir in $PATH; do
6003       IFS="$ac_save_IFS"
6004       test -z "$ac_dir" && ac_dir=.
6005       for ac_exec_ext in '' $ac_executable_extensions; do
6006         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6007           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6008           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6009             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6010             break 2
6011           fi
6012         fi
6013       done
6014     done
6015     IFS="$ac_save_IFS"
6016   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6017     ;;
6018 esac
6019 fi
6020 MSGMERGE="$ac_cv_path_MSGMERGE"
6021 if test "$MSGMERGE" != ":"; then
6022   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6023 echo "${ECHO_T}$MSGMERGE" >&6; }
6024 else
6025   { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6027 fi
6028
6029
6030       if test "$GMSGFMT" != ":"; then
6031             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6032        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6033       : ;
6034     else
6035       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6036       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6037 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6038       GMSGFMT=":"
6039     fi
6040   fi
6041
6042       if test "$XGETTEXT" != ":"; then
6043             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6044        (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
6045       : ;
6046     else
6047       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6048 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6049       XGETTEXT=":"
6050     fi
6051         rm -f messages.po
6052   fi
6053
6054   ac_config_commands="$ac_config_commands default-1"
6055
6056
6057
6058       if test "X$prefix" = "XNONE"; then
6059     acl_final_prefix="$ac_default_prefix"
6060   else
6061     acl_final_prefix="$prefix"
6062   fi
6063   if test "X$exec_prefix" = "XNONE"; then
6064     acl_final_exec_prefix='${prefix}'
6065   else
6066     acl_final_exec_prefix="$exec_prefix"
6067   fi
6068   acl_save_prefix="$prefix"
6069   prefix="$acl_final_prefix"
6070   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6071   prefix="$acl_save_prefix"
6072
6073
6074 # Check whether --with-gnu-ld was given.
6075 if test "${with_gnu_ld+set}" = set; then
6076   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6077 else
6078   with_gnu_ld=no
6079 fi
6080
6081 # Prepare PATH_SEPARATOR.
6082 # The user is always right.
6083 if test "${PATH_SEPARATOR+set}" != set; then
6084   echo "#! /bin/sh" >conf$$.sh
6085   echo  "exit 0"   >>conf$$.sh
6086   chmod +x conf$$.sh
6087   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6088     PATH_SEPARATOR=';'
6089   else
6090     PATH_SEPARATOR=:
6091   fi
6092   rm -f conf$$.sh
6093 fi
6094 ac_prog=ld
6095 if test "$GCC" = yes; then
6096   # Check if gcc -print-prog-name=ld gives a path.
6097   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6098 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6099   case $host in
6100   *-*-mingw*)
6101     # gcc leaves a trailing carriage return which upsets mingw
6102     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6103   *)
6104     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6105   esac
6106   case $ac_prog in
6107     # Accept absolute paths.
6108     [\\/]* | [A-Za-z]:[\\/]*)
6109       re_direlt='/[^/][^/]*/\.\./'
6110       # Canonicalize the path of ld
6111       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6112       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6113         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6114       done
6115       test -z "$LD" && LD="$ac_prog"
6116       ;;
6117   "")
6118     # If it fails, then pretend we aren't using GCC.
6119     ac_prog=ld
6120     ;;
6121   *)
6122     # If it is relative, then search for the first ld in PATH.
6123     with_gnu_ld=unknown
6124     ;;
6125   esac
6126 elif test "$with_gnu_ld" = yes; then
6127   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6128 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6129 else
6130   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6131 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6132 fi
6133 if test "${acl_cv_path_LD+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   if test -z "$LD"; then
6137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6138   for ac_dir in $PATH; do
6139     test -z "$ac_dir" && ac_dir=.
6140     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6141       acl_cv_path_LD="$ac_dir/$ac_prog"
6142       # Check to see if the program is GNU ld.  I'd rather use --version,
6143       # but apparently some GNU ld's only accept -v.
6144       # Break only if it was the GNU/non-GNU ld that we prefer.
6145       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6146       *GNU* | *'with BFD'*)
6147         test "$with_gnu_ld" != no && break ;;
6148       *)
6149         test "$with_gnu_ld" != yes && break ;;
6150       esac
6151     fi
6152   done
6153   IFS="$ac_save_ifs"
6154 else
6155   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6156 fi
6157 fi
6158
6159 LD="$acl_cv_path_LD"
6160 if test -n "$LD"; then
6161   { echo "$as_me:$LINENO: result: $LD" >&5
6162 echo "${ECHO_T}$LD" >&6; }
6163 else
6164   { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6168 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6169    { (exit 1); exit 1; }; }
6170 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6171 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6172 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6176 case `$LD -v 2>&1 </dev/null` in
6177 *GNU* | *'with BFD'*)
6178   acl_cv_prog_gnu_ld=yes ;;
6179 *)
6180   acl_cv_prog_gnu_ld=no ;;
6181 esac
6182 fi
6183 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6184 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6185 with_gnu_ld=$acl_cv_prog_gnu_ld
6186
6187
6188
6189
6190                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6191 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6192 if test "${acl_cv_rpath+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195
6196     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6197     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6198     . ./conftest.sh
6199     rm -f ./conftest.sh
6200     acl_cv_rpath=done
6201
6202 fi
6203 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6204 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6205   wl="$acl_cv_wl"
6206   libext="$acl_cv_libext"
6207   shlibext="$acl_cv_shlibext"
6208   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6209   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6210   hardcode_direct="$acl_cv_hardcode_direct"
6211   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6212     # Check whether --enable-rpath was given.
6213 if test "${enable_rpath+set}" = set; then
6214   enableval=$enable_rpath; :
6215 else
6216   enable_rpath=yes
6217 fi
6218
6219
6220
6221
6222
6223
6224
6225
6226     use_additional=yes
6227
6228   acl_save_prefix="$prefix"
6229   prefix="$acl_final_prefix"
6230   acl_save_exec_prefix="$exec_prefix"
6231   exec_prefix="$acl_final_exec_prefix"
6232
6233     eval additional_includedir=\"$includedir\"
6234     eval additional_libdir=\"$libdir\"
6235
6236   exec_prefix="$acl_save_exec_prefix"
6237   prefix="$acl_save_prefix"
6238
6239
6240 # Check whether --with-libiconv-prefix was given.
6241 if test "${with_libiconv_prefix+set}" = set; then
6242   withval=$with_libiconv_prefix;
6243     if test "X$withval" = "Xno"; then
6244       use_additional=no
6245     else
6246       if test "X$withval" = "X"; then
6247
6248   acl_save_prefix="$prefix"
6249   prefix="$acl_final_prefix"
6250   acl_save_exec_prefix="$exec_prefix"
6251   exec_prefix="$acl_final_exec_prefix"
6252
6253           eval additional_includedir=\"$includedir\"
6254           eval additional_libdir=\"$libdir\"
6255
6256   exec_prefix="$acl_save_exec_prefix"
6257   prefix="$acl_save_prefix"
6258
6259       else
6260         additional_includedir="$withval/include"
6261         additional_libdir="$withval/lib"
6262       fi
6263     fi
6264
6265 fi
6266
6267       LIBICONV=
6268   LTLIBICONV=
6269   INCICONV=
6270   rpathdirs=
6271   ltrpathdirs=
6272   names_already_handled=
6273   names_next_round='iconv '
6274   while test -n "$names_next_round"; do
6275     names_this_round="$names_next_round"
6276     names_next_round=
6277     for name in $names_this_round; do
6278       already_handled=
6279       for n in $names_already_handled; do
6280         if test "$n" = "$name"; then
6281           already_handled=yes
6282           break
6283         fi
6284       done
6285       if test -z "$already_handled"; then
6286         names_already_handled="$names_already_handled $name"
6287                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6288         eval value=\"\$HAVE_LIB$uppername\"
6289         if test -n "$value"; then
6290           if test "$value" = yes; then
6291             eval value=\"\$LIB$uppername\"
6292             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6293             eval value=\"\$LTLIB$uppername\"
6294             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6295           else
6296                                     :
6297           fi
6298         else
6299                               found_dir=
6300           found_la=
6301           found_so=
6302           found_a=
6303           if test $use_additional = yes; then
6304             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6305               found_dir="$additional_libdir"
6306               found_so="$additional_libdir/lib$name.$shlibext"
6307               if test -f "$additional_libdir/lib$name.la"; then
6308                 found_la="$additional_libdir/lib$name.la"
6309               fi
6310             else
6311               if test -f "$additional_libdir/lib$name.$libext"; then
6312                 found_dir="$additional_libdir"
6313                 found_a="$additional_libdir/lib$name.$libext"
6314                 if test -f "$additional_libdir/lib$name.la"; then
6315                   found_la="$additional_libdir/lib$name.la"
6316                 fi
6317               fi
6318             fi
6319           fi
6320           if test "X$found_dir" = "X"; then
6321             for x in $LDFLAGS $LTLIBICONV; do
6322
6323   acl_save_prefix="$prefix"
6324   prefix="$acl_final_prefix"
6325   acl_save_exec_prefix="$exec_prefix"
6326   exec_prefix="$acl_final_exec_prefix"
6327   eval x=\"$x\"
6328   exec_prefix="$acl_save_exec_prefix"
6329   prefix="$acl_save_prefix"
6330
6331               case "$x" in
6332                 -L*)
6333                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6334                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6335                     found_dir="$dir"
6336                     found_so="$dir/lib$name.$shlibext"
6337                     if test -f "$dir/lib$name.la"; then
6338                       found_la="$dir/lib$name.la"
6339                     fi
6340                   else
6341                     if test -f "$dir/lib$name.$libext"; then
6342                       found_dir="$dir"
6343                       found_a="$dir/lib$name.$libext"
6344                       if test -f "$dir/lib$name.la"; then
6345                         found_la="$dir/lib$name.la"
6346                       fi
6347                     fi
6348                   fi
6349                   ;;
6350               esac
6351               if test "X$found_dir" != "X"; then
6352                 break
6353               fi
6354             done
6355           fi
6356           if test "X$found_dir" != "X"; then
6357                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6358             if test "X$found_so" != "X"; then
6359                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6360                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6361               else
6362                                                                                 haveit=
6363                 for x in $ltrpathdirs; do
6364                   if test "X$x" = "X$found_dir"; then
6365                     haveit=yes
6366                     break
6367                   fi
6368                 done
6369                 if test -z "$haveit"; then
6370                   ltrpathdirs="$ltrpathdirs $found_dir"
6371                 fi
6372                                 if test "$hardcode_direct" = yes; then
6373                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6374                 else
6375                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6376                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6377                                                             haveit=
6378                     for x in $rpathdirs; do
6379                       if test "X$x" = "X$found_dir"; then
6380                         haveit=yes
6381                         break
6382                       fi
6383                     done
6384                     if test -z "$haveit"; then
6385                       rpathdirs="$rpathdirs $found_dir"
6386                     fi
6387                   else
6388                                                                                 haveit=
6389                     for x in $LDFLAGS $LIBICONV; do
6390
6391   acl_save_prefix="$prefix"
6392   prefix="$acl_final_prefix"
6393   acl_save_exec_prefix="$exec_prefix"
6394   exec_prefix="$acl_final_exec_prefix"
6395   eval x=\"$x\"
6396   exec_prefix="$acl_save_exec_prefix"
6397   prefix="$acl_save_prefix"
6398
6399                       if test "X$x" = "X-L$found_dir"; then
6400                         haveit=yes
6401                         break
6402                       fi
6403                     done
6404                     if test -z "$haveit"; then
6405                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6406                     fi
6407                     if test "$hardcode_minus_L" != no; then
6408                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6409                     else
6410                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6411                     fi
6412                   fi
6413                 fi
6414               fi
6415             else
6416               if test "X$found_a" != "X"; then
6417                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6418               else
6419                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6420               fi
6421             fi
6422                         additional_includedir=
6423             case "$found_dir" in
6424               */lib | */lib/)
6425                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6426                 additional_includedir="$basedir/include"
6427                 ;;
6428             esac
6429             if test "X$additional_includedir" != "X"; then
6430                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6431                 haveit=
6432                 if test "X$additional_includedir" = "X/usr/local/include"; then
6433                   if test -n "$GCC"; then
6434                     case $host_os in
6435                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6436                     esac
6437                   fi
6438                 fi
6439                 if test -z "$haveit"; then
6440                   for x in $CPPFLAGS $INCICONV; do
6441
6442   acl_save_prefix="$prefix"
6443   prefix="$acl_final_prefix"
6444   acl_save_exec_prefix="$exec_prefix"
6445   exec_prefix="$acl_final_exec_prefix"
6446   eval x=\"$x\"
6447   exec_prefix="$acl_save_exec_prefix"
6448   prefix="$acl_save_prefix"
6449
6450                     if test "X$x" = "X-I$additional_includedir"; then
6451                       haveit=yes
6452                       break
6453                     fi
6454                   done
6455                   if test -z "$haveit"; then
6456                     if test -d "$additional_includedir"; then
6457                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6458                     fi
6459                   fi
6460                 fi
6461               fi
6462             fi
6463                         if test -n "$found_la"; then
6464                                                         save_libdir="$libdir"
6465               case "$found_la" in
6466                 */* | *\\*) . "$found_la" ;;
6467                 *) . "./$found_la" ;;
6468               esac
6469               libdir="$save_libdir"
6470                             for dep in $dependency_libs; do
6471                 case "$dep" in
6472                   -L*)
6473                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6474                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6475                       haveit=
6476                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6477                         if test -n "$GCC"; then
6478                           case $host_os in
6479                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6480                           esac
6481                         fi
6482                       fi
6483                       if test -z "$haveit"; then
6484                         haveit=
6485                         for x in $LDFLAGS $LIBICONV; do
6486
6487   acl_save_prefix="$prefix"
6488   prefix="$acl_final_prefix"
6489   acl_save_exec_prefix="$exec_prefix"
6490   exec_prefix="$acl_final_exec_prefix"
6491   eval x=\"$x\"
6492   exec_prefix="$acl_save_exec_prefix"
6493   prefix="$acl_save_prefix"
6494
6495                           if test "X$x" = "X-L$additional_libdir"; then
6496                             haveit=yes
6497                             break
6498                           fi
6499                         done
6500                         if test -z "$haveit"; then
6501                           if test -d "$additional_libdir"; then
6502                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6503                           fi
6504                         fi
6505                         haveit=
6506                         for x in $LDFLAGS $LTLIBICONV; do
6507
6508   acl_save_prefix="$prefix"
6509   prefix="$acl_final_prefix"
6510   acl_save_exec_prefix="$exec_prefix"
6511   exec_prefix="$acl_final_exec_prefix"
6512   eval x=\"$x\"
6513   exec_prefix="$acl_save_exec_prefix"
6514   prefix="$acl_save_prefix"
6515
6516                           if test "X$x" = "X-L$additional_libdir"; then
6517                             haveit=yes
6518                             break
6519                           fi
6520                         done
6521                         if test -z "$haveit"; then
6522                           if test -d "$additional_libdir"; then
6523                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6524                           fi
6525                         fi
6526                       fi
6527                     fi
6528                     ;;
6529                   -R*)
6530                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6531                     if test "$enable_rpath" != no; then
6532                                                                   haveit=
6533                       for x in $rpathdirs; do
6534                         if test "X$x" = "X$dir"; then
6535                           haveit=yes
6536                           break
6537                         fi
6538                       done
6539                       if test -z "$haveit"; then
6540                         rpathdirs="$rpathdirs $dir"
6541                       fi
6542                                                                   haveit=
6543                       for x in $ltrpathdirs; do
6544                         if test "X$x" = "X$dir"; then
6545                           haveit=yes
6546                           break
6547                         fi
6548                       done
6549                       if test -z "$haveit"; then
6550                         ltrpathdirs="$ltrpathdirs $dir"
6551                       fi
6552                     fi
6553                     ;;
6554                   -l*)
6555                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6556                     ;;
6557                   *.la)
6558                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6559                     ;;
6560                   *)
6561                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6562                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6563                     ;;
6564                 esac
6565               done
6566             fi
6567           else
6568                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6569             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6570           fi
6571         fi
6572       fi
6573     done
6574   done
6575   if test "X$rpathdirs" != "X"; then
6576     if test -n "$hardcode_libdir_separator"; then
6577                         alldirs=
6578       for found_dir in $rpathdirs; do
6579         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6580       done
6581             acl_save_libdir="$libdir"
6582       libdir="$alldirs"
6583       eval flag=\"$hardcode_libdir_flag_spec\"
6584       libdir="$acl_save_libdir"
6585       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6586     else
6587             for found_dir in $rpathdirs; do
6588         acl_save_libdir="$libdir"
6589         libdir="$found_dir"
6590         eval flag=\"$hardcode_libdir_flag_spec\"
6591         libdir="$acl_save_libdir"
6592         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6593       done
6594     fi
6595   fi
6596   if test "X$ltrpathdirs" != "X"; then
6597             for found_dir in $ltrpathdirs; do
6598       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6599     done
6600   fi
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6620 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6621 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   gt_save_CPPFLAGS="$CPPFLAGS"
6625      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6626      gt_save_LIBS="$LIBS"
6627      LIBS="$LIBS -framework CoreFoundation"
6628      cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634 #include <CFPreferences.h>
6635 int
6636 main ()
6637 {
6638 CFPreferencesCopyAppValue(NULL, NULL)
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6645 case "(($ac_try" in
6646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647   *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650   (eval "$ac_link") 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
6654   cat conftest.err >&5
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } && {
6657          test -z "$ac_c_werror_flag" ||
6658          test ! -s conftest.err
6659        } && test -s conftest$ac_exeext &&
6660        $as_test_x conftest$ac_exeext; then
6661   gt_cv_func_CFPreferencesCopyAppValue=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666         gt_cv_func_CFPreferencesCopyAppValue=no
6667 fi
6668
6669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6670       conftest$ac_exeext conftest.$ac_ext
6671      CPPFLAGS="$gt_save_CPPFLAGS"
6672      LIBS="$gt_save_LIBS"
6673 fi
6674 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6675 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6676   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6677
6678 cat >>confdefs.h <<\_ACEOF
6679 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6680 _ACEOF
6681
6682   fi
6683     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6684 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6685 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   gt_save_CPPFLAGS="$CPPFLAGS"
6689      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6690      gt_save_LIBS="$LIBS"
6691      LIBS="$LIBS -framework CoreFoundation"
6692      cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h.  */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h.  */
6698 #include <CFLocale.h>
6699 int
6700 main ()
6701 {
6702 CFLocaleCopyCurrent();
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6709 case "(($ac_try" in
6710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711   *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714   (eval "$ac_link") 2>conftest.er1
6715   ac_status=$?
6716   grep -v '^ *+' conftest.er1 >conftest.err
6717   rm -f conftest.er1
6718   cat conftest.err >&5
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } && {
6721          test -z "$ac_c_werror_flag" ||
6722          test ! -s conftest.err
6723        } && test -s conftest$ac_exeext &&
6724        $as_test_x conftest$ac_exeext; then
6725   gt_cv_func_CFLocaleCopyCurrent=yes
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730         gt_cv_func_CFLocaleCopyCurrent=no
6731 fi
6732
6733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6734       conftest$ac_exeext conftest.$ac_ext
6735      CPPFLAGS="$gt_save_CPPFLAGS"
6736      LIBS="$gt_save_LIBS"
6737 fi
6738 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6739 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6740   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6741
6742 cat >>confdefs.h <<\_ACEOF
6743 #define HAVE_CFLOCALECOPYCURRENT 1
6744 _ACEOF
6745
6746   fi
6747   INTL_MACOSX_LIBS=
6748   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6749     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6750   fi
6751
6752
6753
6754
6755   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6756 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6757     # Check whether --enable-nls was given.
6758 if test "${enable_nls+set}" = set; then
6759   enableval=$enable_nls; USE_NLS=$enableval
6760 else
6761   USE_NLS=yes
6762 fi
6763
6764   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6765 echo "${ECHO_T}$USE_NLS" >&6; }
6766
6767
6768
6769
6770   LIBINTL=
6771   LTLIBINTL=
6772   POSUB=
6773
6774     if test "$USE_NLS" = "yes"; then
6775     gt_use_preinstalled_gnugettext=no
6776
6777
6778
6779
6780
6781
6782         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6783 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6784 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <libintl.h>
6794 extern int _nl_msg_cat_cntr;
6795 extern int *_nl_domain_bindings;
6796 int
6797 main ()
6798 {
6799 bindtextdomain ("", "");
6800 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6807 case "(($ac_try" in
6808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809   *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812   (eval "$ac_link") 2>conftest.er1
6813   ac_status=$?
6814   grep -v '^ *+' conftest.er1 >conftest.err
6815   rm -f conftest.er1
6816   cat conftest.err >&5
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); } && {
6819          test -z "$ac_c_werror_flag" ||
6820          test ! -s conftest.err
6821        } && test -s conftest$ac_exeext &&
6822        $as_test_x conftest$ac_exeext; then
6823   gt_cv_func_gnugettext1_libc=yes
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828         gt_cv_func_gnugettext1_libc=no
6829 fi
6830
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832       conftest$ac_exeext conftest.$ac_ext
6833 fi
6834 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6835 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6836
6837         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6838
6839
6840
6841
6842
6843           am_save_CPPFLAGS="$CPPFLAGS"
6844
6845   for element in $INCICONV; do
6846     haveit=
6847     for x in $CPPFLAGS; do
6848
6849   acl_save_prefix="$prefix"
6850   prefix="$acl_final_prefix"
6851   acl_save_exec_prefix="$exec_prefix"
6852   exec_prefix="$acl_final_exec_prefix"
6853   eval x=\"$x\"
6854   exec_prefix="$acl_save_exec_prefix"
6855   prefix="$acl_save_prefix"
6856
6857       if test "X$x" = "X$element"; then
6858         haveit=yes
6859         break
6860       fi
6861     done
6862     if test -z "$haveit"; then
6863       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6864     fi
6865   done
6866
6867
6868   { echo "$as_me:$LINENO: checking for iconv" >&5
6869 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6870 if test "${am_cv_func_iconv+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873
6874     am_cv_func_iconv="no, consider installing GNU libiconv"
6875     am_cv_lib_iconv=no
6876     cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882 #include <stdlib.h>
6883 #include <iconv.h>
6884 int
6885 main ()
6886 {
6887 iconv_t cd = iconv_open("","");
6888        iconv(cd,NULL,NULL,NULL,NULL);
6889        iconv_close(cd);
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (ac_try="$ac_link"
6896 case "(($ac_try" in
6897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898   *) ac_try_echo=$ac_try;;
6899 esac
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901   (eval "$ac_link") 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } && {
6908          test -z "$ac_c_werror_flag" ||
6909          test ! -s conftest.err
6910        } && test -s conftest$ac_exeext &&
6911        $as_test_x conftest$ac_exeext; then
6912   am_cv_func_iconv=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921       conftest$ac_exeext conftest.$ac_ext
6922     if test "$am_cv_func_iconv" != yes; then
6923       am_save_LIBS="$LIBS"
6924       LIBS="$LIBS $LIBICONV"
6925       cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h.  */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h.  */
6931 #include <stdlib.h>
6932 #include <iconv.h>
6933 int
6934 main ()
6935 {
6936 iconv_t cd = iconv_open("","");
6937          iconv(cd,NULL,NULL,NULL,NULL);
6938          iconv_close(cd);
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6945 case "(($ac_try" in
6946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947   *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950   (eval "$ac_link") 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } && {
6957          test -z "$ac_c_werror_flag" ||
6958          test ! -s conftest.err
6959        } && test -s conftest$ac_exeext &&
6960        $as_test_x conftest$ac_exeext; then
6961   am_cv_lib_iconv=yes
6962         am_cv_func_iconv=yes
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967
6968 fi
6969
6970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6971       conftest$ac_exeext conftest.$ac_ext
6972       LIBS="$am_save_LIBS"
6973     fi
6974
6975 fi
6976 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6977 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6978   if test "$am_cv_func_iconv" = yes; then
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_ICONV 1
6982 _ACEOF
6983
6984   fi
6985   if test "$am_cv_lib_iconv" = yes; then
6986     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6987 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6988     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6989 echo "${ECHO_T}$LIBICONV" >&6; }
6990   else
6991             CPPFLAGS="$am_save_CPPFLAGS"
6992     LIBICONV=
6993     LTLIBICONV=
6994   fi
6995
6996
6997
6998
6999
7000
7001     use_additional=yes
7002
7003   acl_save_prefix="$prefix"
7004   prefix="$acl_final_prefix"
7005   acl_save_exec_prefix="$exec_prefix"
7006   exec_prefix="$acl_final_exec_prefix"
7007
7008     eval additional_includedir=\"$includedir\"
7009     eval additional_libdir=\"$libdir\"
7010
7011   exec_prefix="$acl_save_exec_prefix"
7012   prefix="$acl_save_prefix"
7013
7014
7015 # Check whether --with-libintl-prefix was given.
7016 if test "${with_libintl_prefix+set}" = set; then
7017   withval=$with_libintl_prefix;
7018     if test "X$withval" = "Xno"; then
7019       use_additional=no
7020     else
7021       if test "X$withval" = "X"; then
7022
7023   acl_save_prefix="$prefix"
7024   prefix="$acl_final_prefix"
7025   acl_save_exec_prefix="$exec_prefix"
7026   exec_prefix="$acl_final_exec_prefix"
7027
7028           eval additional_includedir=\"$includedir\"
7029           eval additional_libdir=\"$libdir\"
7030
7031   exec_prefix="$acl_save_exec_prefix"
7032   prefix="$acl_save_prefix"
7033
7034       else
7035         additional_includedir="$withval/include"
7036         additional_libdir="$withval/lib"
7037       fi
7038     fi
7039
7040 fi
7041
7042       LIBINTL=
7043   LTLIBINTL=
7044   INCINTL=
7045   rpathdirs=
7046   ltrpathdirs=
7047   names_already_handled=
7048   names_next_round='intl '
7049   while test -n "$names_next_round"; do
7050     names_this_round="$names_next_round"
7051     names_next_round=
7052     for name in $names_this_round; do
7053       already_handled=
7054       for n in $names_already_handled; do
7055         if test "$n" = "$name"; then
7056           already_handled=yes
7057           break
7058         fi
7059       done
7060       if test -z "$already_handled"; then
7061         names_already_handled="$names_already_handled $name"
7062                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7063         eval value=\"\$HAVE_LIB$uppername\"
7064         if test -n "$value"; then
7065           if test "$value" = yes; then
7066             eval value=\"\$LIB$uppername\"
7067             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7068             eval value=\"\$LTLIB$uppername\"
7069             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7070           else
7071                                     :
7072           fi
7073         else
7074                               found_dir=
7075           found_la=
7076           found_so=
7077           found_a=
7078           if test $use_additional = yes; then
7079             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7080               found_dir="$additional_libdir"
7081               found_so="$additional_libdir/lib$name.$shlibext"
7082               if test -f "$additional_libdir/lib$name.la"; then
7083                 found_la="$additional_libdir/lib$name.la"
7084               fi
7085             else
7086               if test -f "$additional_libdir/lib$name.$libext"; then
7087                 found_dir="$additional_libdir"
7088                 found_a="$additional_libdir/lib$name.$libext"
7089                 if test -f "$additional_libdir/lib$name.la"; then
7090                   found_la="$additional_libdir/lib$name.la"
7091                 fi
7092               fi
7093             fi
7094           fi
7095           if test "X$found_dir" = "X"; then
7096             for x in $LDFLAGS $LTLIBINTL; do
7097
7098   acl_save_prefix="$prefix"
7099   prefix="$acl_final_prefix"
7100   acl_save_exec_prefix="$exec_prefix"
7101   exec_prefix="$acl_final_exec_prefix"
7102   eval x=\"$x\"
7103   exec_prefix="$acl_save_exec_prefix"
7104   prefix="$acl_save_prefix"
7105
7106               case "$x" in
7107                 -L*)
7108                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7109                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7110                     found_dir="$dir"
7111                     found_so="$dir/lib$name.$shlibext"
7112                     if test -f "$dir/lib$name.la"; then
7113                       found_la="$dir/lib$name.la"
7114                     fi
7115                   else
7116                     if test -f "$dir/lib$name.$libext"; then
7117                       found_dir="$dir"
7118                       found_a="$dir/lib$name.$libext"
7119                       if test -f "$dir/lib$name.la"; then
7120                         found_la="$dir/lib$name.la"
7121                       fi
7122                     fi
7123                   fi
7124                   ;;
7125               esac
7126               if test "X$found_dir" != "X"; then
7127                 break
7128               fi
7129             done
7130           fi
7131           if test "X$found_dir" != "X"; then
7132                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7133             if test "X$found_so" != "X"; then
7134                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7135                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7136               else
7137                                                                                 haveit=
7138                 for x in $ltrpathdirs; do
7139                   if test "X$x" = "X$found_dir"; then
7140                     haveit=yes
7141                     break
7142                   fi
7143                 done
7144                 if test -z "$haveit"; then
7145                   ltrpathdirs="$ltrpathdirs $found_dir"
7146                 fi
7147                                 if test "$hardcode_direct" = yes; then
7148                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7149                 else
7150                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7151                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7152                                                             haveit=
7153                     for x in $rpathdirs; do
7154                       if test "X$x" = "X$found_dir"; then
7155                         haveit=yes
7156                         break
7157                       fi
7158                     done
7159                     if test -z "$haveit"; then
7160                       rpathdirs="$rpathdirs $found_dir"
7161                     fi
7162                   else
7163                                                                                 haveit=
7164                     for x in $LDFLAGS $LIBINTL; do
7165
7166   acl_save_prefix="$prefix"
7167   prefix="$acl_final_prefix"
7168   acl_save_exec_prefix="$exec_prefix"
7169   exec_prefix="$acl_final_exec_prefix"
7170   eval x=\"$x\"
7171   exec_prefix="$acl_save_exec_prefix"
7172   prefix="$acl_save_prefix"
7173
7174                       if test "X$x" = "X-L$found_dir"; then
7175                         haveit=yes
7176                         break
7177                       fi
7178                     done
7179                     if test -z "$haveit"; then
7180                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7181                     fi
7182                     if test "$hardcode_minus_L" != no; then
7183                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7184                     else
7185                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7186                     fi
7187                   fi
7188                 fi
7189               fi
7190             else
7191               if test "X$found_a" != "X"; then
7192                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7193               else
7194                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7195               fi
7196             fi
7197                         additional_includedir=
7198             case "$found_dir" in
7199               */lib | */lib/)
7200                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7201                 additional_includedir="$basedir/include"
7202                 ;;
7203             esac
7204             if test "X$additional_includedir" != "X"; then
7205                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7206                 haveit=
7207                 if test "X$additional_includedir" = "X/usr/local/include"; then
7208                   if test -n "$GCC"; then
7209                     case $host_os in
7210                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7211                     esac
7212                   fi
7213                 fi
7214                 if test -z "$haveit"; then
7215                   for x in $CPPFLAGS $INCINTL; do
7216
7217   acl_save_prefix="$prefix"
7218   prefix="$acl_final_prefix"
7219   acl_save_exec_prefix="$exec_prefix"
7220   exec_prefix="$acl_final_exec_prefix"
7221   eval x=\"$x\"
7222   exec_prefix="$acl_save_exec_prefix"
7223   prefix="$acl_save_prefix"
7224
7225                     if test "X$x" = "X-I$additional_includedir"; then
7226                       haveit=yes
7227                       break
7228                     fi
7229                   done
7230                   if test -z "$haveit"; then
7231                     if test -d "$additional_includedir"; then
7232                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7233                     fi
7234                   fi
7235                 fi
7236               fi
7237             fi
7238                         if test -n "$found_la"; then
7239                                                         save_libdir="$libdir"
7240               case "$found_la" in
7241                 */* | *\\*) . "$found_la" ;;
7242                 *) . "./$found_la" ;;
7243               esac
7244               libdir="$save_libdir"
7245                             for dep in $dependency_libs; do
7246                 case "$dep" in
7247                   -L*)
7248                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7249                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7250                       haveit=
7251                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7252                         if test -n "$GCC"; then
7253                           case $host_os in
7254                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7255                           esac
7256                         fi
7257                       fi
7258                       if test -z "$haveit"; then
7259                         haveit=
7260                         for x in $LDFLAGS $LIBINTL; do
7261
7262   acl_save_prefix="$prefix"
7263   prefix="$acl_final_prefix"
7264   acl_save_exec_prefix="$exec_prefix"
7265   exec_prefix="$acl_final_exec_prefix"
7266   eval x=\"$x\"
7267   exec_prefix="$acl_save_exec_prefix"
7268   prefix="$acl_save_prefix"
7269
7270                           if test "X$x" = "X-L$additional_libdir"; then
7271                             haveit=yes
7272                             break
7273                           fi
7274                         done
7275                         if test -z "$haveit"; then
7276                           if test -d "$additional_libdir"; then
7277                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7278                           fi
7279                         fi
7280                         haveit=
7281                         for x in $LDFLAGS $LTLIBINTL; do
7282
7283   acl_save_prefix="$prefix"
7284   prefix="$acl_final_prefix"
7285   acl_save_exec_prefix="$exec_prefix"
7286   exec_prefix="$acl_final_exec_prefix"
7287   eval x=\"$x\"
7288   exec_prefix="$acl_save_exec_prefix"
7289   prefix="$acl_save_prefix"
7290
7291                           if test "X$x" = "X-L$additional_libdir"; then
7292                             haveit=yes
7293                             break
7294                           fi
7295                         done
7296                         if test -z "$haveit"; then
7297                           if test -d "$additional_libdir"; then
7298                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7299                           fi
7300                         fi
7301                       fi
7302                     fi
7303                     ;;
7304                   -R*)
7305                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7306                     if test "$enable_rpath" != no; then
7307                                                                   haveit=
7308                       for x in $rpathdirs; do
7309                         if test "X$x" = "X$dir"; then
7310                           haveit=yes
7311                           break
7312                         fi
7313                       done
7314                       if test -z "$haveit"; then
7315                         rpathdirs="$rpathdirs $dir"
7316                       fi
7317                                                                   haveit=
7318                       for x in $ltrpathdirs; do
7319                         if test "X$x" = "X$dir"; then
7320                           haveit=yes
7321                           break
7322                         fi
7323                       done
7324                       if test -z "$haveit"; then
7325                         ltrpathdirs="$ltrpathdirs $dir"
7326                       fi
7327                     fi
7328                     ;;
7329                   -l*)
7330                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7331                     ;;
7332                   *.la)
7333                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7334                     ;;
7335                   *)
7336                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7337                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7338                     ;;
7339                 esac
7340               done
7341             fi
7342           else
7343                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7344             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7345           fi
7346         fi
7347       fi
7348     done
7349   done
7350   if test "X$rpathdirs" != "X"; then
7351     if test -n "$hardcode_libdir_separator"; then
7352                         alldirs=
7353       for found_dir in $rpathdirs; do
7354         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7355       done
7356             acl_save_libdir="$libdir"
7357       libdir="$alldirs"
7358       eval flag=\"$hardcode_libdir_flag_spec\"
7359       libdir="$acl_save_libdir"
7360       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7361     else
7362             for found_dir in $rpathdirs; do
7363         acl_save_libdir="$libdir"
7364         libdir="$found_dir"
7365         eval flag=\"$hardcode_libdir_flag_spec\"
7366         libdir="$acl_save_libdir"
7367         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7368       done
7369     fi
7370   fi
7371   if test "X$ltrpathdirs" != "X"; then
7372             for found_dir in $ltrpathdirs; do
7373       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7374     done
7375   fi
7376
7377           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7378 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7379 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   gt_save_CPPFLAGS="$CPPFLAGS"
7383             CPPFLAGS="$CPPFLAGS $INCINTL"
7384             gt_save_LIBS="$LIBS"
7385             LIBS="$LIBS $LIBINTL"
7386                         cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h.  */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h.  */
7392 #include <libintl.h>
7393 extern int _nl_msg_cat_cntr;
7394 extern
7395 #ifdef __cplusplus
7396 "C"
7397 #endif
7398 const char *_nl_expand_alias (const char *);
7399 int
7400 main ()
7401 {
7402 bindtextdomain ("", "");
7403 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (ac_try="$ac_link"
7410 case "(($ac_try" in
7411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412   *) ac_try_echo=$ac_try;;
7413 esac
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415   (eval "$ac_link") 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
7419   cat conftest.err >&5
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } && {
7422          test -z "$ac_c_werror_flag" ||
7423          test ! -s conftest.err
7424        } && test -s conftest$ac_exeext &&
7425        $as_test_x conftest$ac_exeext; then
7426   gt_cv_func_gnugettext1_libintl=yes
7427 else
7428   echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431         gt_cv_func_gnugettext1_libintl=no
7432 fi
7433
7434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7435       conftest$ac_exeext conftest.$ac_ext
7436                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7437               LIBS="$LIBS $LIBICONV"
7438               cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h.  */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h.  */
7444 #include <libintl.h>
7445 extern int _nl_msg_cat_cntr;
7446 extern
7447 #ifdef __cplusplus
7448 "C"
7449 #endif
7450 const char *_nl_expand_alias (const char *);
7451 int
7452 main ()
7453 {
7454 bindtextdomain ("", "");
7455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7462 case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467   (eval "$ac_link") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } && {
7474          test -z "$ac_c_werror_flag" ||
7475          test ! -s conftest.err
7476        } && test -s conftest$ac_exeext &&
7477        $as_test_x conftest$ac_exeext; then
7478   LIBINTL="$LIBINTL $LIBICONV"
7479                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7480                 gt_cv_func_gnugettext1_libintl=yes
7481
7482 else
7483   echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486
7487 fi
7488
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7490       conftest$ac_exeext conftest.$ac_ext
7491             fi
7492             CPPFLAGS="$gt_save_CPPFLAGS"
7493             LIBS="$gt_save_LIBS"
7494 fi
7495 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7496 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7497         fi
7498
7499                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7500            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7501                 && test "$PACKAGE" != gettext-runtime \
7502                 && test "$PACKAGE" != gettext-tools; }; then
7503           gt_use_preinstalled_gnugettext=yes
7504         else
7505                     LIBINTL=
7506           LTLIBINTL=
7507           INCINTL=
7508         fi
7509
7510
7511
7512     if test -n "$INTL_MACOSX_LIBS"; then
7513       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7514          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7515                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7516         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7517       fi
7518     fi
7519
7520     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7521        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7522
7523 cat >>confdefs.h <<\_ACEOF
7524 #define ENABLE_NLS 1
7525 _ACEOF
7526
7527     else
7528       USE_NLS=no
7529     fi
7530   fi
7531
7532   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7533 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7534   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7535 echo "${ECHO_T}$USE_NLS" >&6; }
7536   if test "$USE_NLS" = "yes"; then
7537     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7538 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7539     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7540       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7541         gt_source="external libintl"
7542       else
7543         gt_source="libc"
7544       fi
7545     else
7546       gt_source="included intl directory"
7547     fi
7548     { echo "$as_me:$LINENO: result: $gt_source" >&5
7549 echo "${ECHO_T}$gt_source" >&6; }
7550   fi
7551
7552   if test "$USE_NLS" = "yes"; then
7553
7554     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7555       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7556         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7557 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7558         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7559 echo "${ECHO_T}$LIBINTL" >&6; }
7560
7561   for element in $INCINTL; do
7562     haveit=
7563     for x in $CPPFLAGS; do
7564
7565   acl_save_prefix="$prefix"
7566   prefix="$acl_final_prefix"
7567   acl_save_exec_prefix="$exec_prefix"
7568   exec_prefix="$acl_final_exec_prefix"
7569   eval x=\"$x\"
7570   exec_prefix="$acl_save_exec_prefix"
7571   prefix="$acl_save_prefix"
7572
7573       if test "X$x" = "X$element"; then
7574         haveit=yes
7575         break
7576       fi
7577     done
7578     if test -z "$haveit"; then
7579       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7580     fi
7581   done
7582
7583       fi
7584
7585
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_GETTEXT 1
7588 _ACEOF
7589
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_DCGETTEXT 1
7593 _ACEOF
7594
7595     fi
7596
7597         POSUB=po
7598   fi
7599
7600
7601
7602     INTLLIBS="$LIBINTL"
7603
7604
7605
7606
7607
7608
7609 if test x${prefix} = xNONE ; then
7610    if test `eval echo ${datadir}` = NONE/share ; then
7611       datadir=/usr/share
7612    fi
7613 fi
7614
7615 # ------------------------------------------------------------------
7616 #  If the user has not set --prefix, we set our default to nothing.
7617 #  In this case, if the user has not set --sysconfdir, we set it
7618 #  to the package default of /etc/bacula.  If either --prefix or
7619 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7620 # ------------------------------------------------------------------
7621 if test x${prefix} = xNONE ; then
7622     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7623         sysconfdir=/etc/bacula
7624     fi
7625     prefix=
7626 fi
7627 sysconfdir=`eval echo ${sysconfdir}`
7628 datadir=`eval echo ${datadir}`
7629 localedir=`eval echo ${datadir}/locale`
7630 cat >>confdefs.h <<_ACEOF
7631 #define LOCALEDIR "$localedir"
7632 _ACEOF
7633
7634 cat >>confdefs.h <<_ACEOF
7635 #define SYSCONFDIR "$sysconfdir"
7636 _ACEOF
7637
7638
7639 # -------------------------------------------------------------------------
7640 #  If the user has not set --exec-prefix, we default to ${prefix}
7641 # -------------------------------------------------------------------------
7642 if test x${exec_prefix} = xNONE ; then
7643     exec_prefix=${prefix}
7644 fi
7645
7646 # ------------------------------------------------------------------
7647 # If the user has not set --sbindir, we set our default as /sbin
7648 # ------------------------------------------------------------------
7649 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7650     sbindir=${exec_prefix}/sbin
7651 fi
7652 sbindir=`eval echo ${sbindir}`
7653
7654
7655 # -------------------------------------------------------------------------
7656 #  If the user has not set --mandir, we default to /usr/share/man
7657 # -------------------------------------------------------------------------
7658 if test x$mandir = x'${prefix}/man' ; then
7659    mandir=/usr/share/man
7660 fi
7661
7662
7663 for ac_prog in msgfmt
7664 do
7665   # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy $ac_prog; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_MSGFMT+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   case $MSGFMT in
7673   [\\/]* | ?:[\\/]*)
7674   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7675   ;;
7676   *)
7677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682   for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692   ;;
7693 esac
7694 fi
7695 MSGFMT=$ac_cv_path_MSGFMT
7696 if test -n "$MSGFMT"; then
7697   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7698 echo "${ECHO_T}$MSGFMT" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705   test -n "$MSGFMT" && break
7706 done
7707 test -n "$MSGFMT" || MSGFMT="no"
7708
7709 if test "$MSGFMT" = "no"
7710 then
7711    echo 'msgfmt program not found, disabling NLS !'
7712    USE_NLS=no
7713    USE_INCLUDED_LIBINTL=no
7714 #else
7715
7716     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7717 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7718 if test "${ac_cv_gnu_library_2+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727
7728 #include <features.h>
7729 #ifdef __GNU_LIBRARY__
7730  #if (__GLIBC__ >= 2)
7731   Lucky GNU user
7732  #endif
7733 #endif
7734
7735 _ACEOF
7736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7737   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7738   ac_cv_gnu_library_2=yes
7739 else
7740   ac_cv_gnu_library_2=no
7741 fi
7742 rm -f conftest*
7743
7744
7745
7746 fi
7747 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7748 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7749
7750     GLIBC2="$ac_cv_gnu_library_2"
7751
7752
7753
7754         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7755 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7756 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   ac_check_lib_save_LIBS=$LIBS
7760 LIBS="-lcposix  $LIBS"
7761 cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767
7768 /* Override any GCC internal prototype to avoid an error.
7769    Use char because int might match the return type of a GCC
7770    builtin and then its argument prototype would still apply.  */
7771 #ifdef __cplusplus
7772 extern "C"
7773 #endif
7774 char strerror ();
7775 int
7776 main ()
7777 {
7778 return strerror ();
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (ac_try="$ac_link"
7785 case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790   (eval "$ac_link") 2>conftest.er1
7791   ac_status=$?
7792   grep -v '^ *+' conftest.er1 >conftest.err
7793   rm -f conftest.er1
7794   cat conftest.err >&5
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } && {
7797          test -z "$ac_c_werror_flag" ||
7798          test ! -s conftest.err
7799        } && test -s conftest$ac_exeext &&
7800        $as_test_x conftest$ac_exeext; then
7801   ac_cv_lib_cposix_strerror=yes
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806         ac_cv_lib_cposix_strerror=no
7807 fi
7808
7809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810       conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7812 fi
7813 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7814 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7815 if test $ac_cv_lib_cposix_strerror = yes; then
7816   LIBS="$LIBS -lcposix"
7817 fi
7818
7819
7820
7821 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7823 if test "${ac_cv_header_stdc+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832 #include <stdlib.h>
7833 #include <stdarg.h>
7834 #include <string.h>
7835 #include <float.h>
7836
7837 int
7838 main ()
7839 {
7840
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849   *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852   (eval "$ac_compile") 2>conftest.er1
7853   ac_status=$?
7854   grep -v '^ *+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } && {
7859          test -z "$ac_c_werror_flag" ||
7860          test ! -s conftest.err
7861        } && test -s conftest.$ac_objext; then
7862   ac_cv_header_stdc=yes
7863 else
7864   echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867         ac_cv_header_stdc=no
7868 fi
7869
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871
7872 if test $ac_cv_header_stdc = yes; then
7873   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7874   cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 #include <string.h>
7881
7882 _ACEOF
7883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7884   $EGREP "memchr" >/dev/null 2>&1; then
7885   :
7886 else
7887   ac_cv_header_stdc=no
7888 fi
7889 rm -f conftest*
7890
7891 fi
7892
7893 if test $ac_cv_header_stdc = yes; then
7894   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7895   cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h.  */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h.  */
7901 #include <stdlib.h>
7902
7903 _ACEOF
7904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7905   $EGREP "free" >/dev/null 2>&1; then
7906   :
7907 else
7908   ac_cv_header_stdc=no
7909 fi
7910 rm -f conftest*
7911
7912 fi
7913
7914 if test $ac_cv_header_stdc = yes; then
7915   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7916   if test "$cross_compiling" = yes; then
7917   :
7918 else
7919   cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925 #include <ctype.h>
7926 #include <stdlib.h>
7927 #if ((' ' & 0x0FF) == 0x020)
7928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7930 #else
7931 # define ISLOWER(c) \
7932                    (('a' <= (c) && (c) <= 'i') \
7933                      || ('j' <= (c) && (c) <= 'r') \
7934                      || ('s' <= (c) && (c) <= 'z'))
7935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7936 #endif
7937
7938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7939 int
7940 main ()
7941 {
7942   int i;
7943   for (i = 0; i < 256; i++)
7944     if (XOR (islower (i), ISLOWER (i))
7945         || toupper (i) != TOUPPER (i))
7946       return 2;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7952 case "(($ac_try" in
7953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954   *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957   (eval "$ac_link") 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   :
7971 else
7972   echo "$as_me: program exited with status $ac_status" >&5
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7975
7976 ( exit $ac_status )
7977 ac_cv_header_stdc=no
7978 fi
7979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7980 fi
7981
7982
7983 fi
7984 fi
7985 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7986 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7987 if test $ac_cv_header_stdc = yes; then
7988
7989 cat >>confdefs.h <<\_ACEOF
7990 #define STDC_HEADERS 1
7991 _ACEOF
7992
7993 fi
7994
7995 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7996 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7997 if test "${ac_cv_c_const+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h.  */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h.  */
8006
8007 int
8008 main ()
8009 {
8010 /* FIXME: Include the comments suggested by Paul. */
8011 #ifndef __cplusplus
8012   /* Ultrix mips cc rejects this.  */
8013   typedef int charset[2];
8014   const charset cs;
8015   /* SunOS 4.1.1 cc rejects this.  */
8016   char const *const *pcpcc;
8017   char **ppc;
8018   /* NEC SVR4.0.2 mips cc rejects this.  */
8019   struct point {int x, y;};
8020   static struct point const zero = {0,0};
8021   /* AIX XL C 1.02.0.0 rejects this.
8022      It does not let you subtract one const X* pointer from another in
8023      an arm of an if-expression whose if-part is not a constant
8024      expression */
8025   const char *g = "string";
8026   pcpcc = &g + (g ? g-g : 0);
8027   /* HPUX 7.0 cc rejects these. */
8028   ++pcpcc;
8029   ppc = (char**) pcpcc;
8030   pcpcc = (char const *const *) ppc;
8031   { /* SCO 3.2v4 cc rejects this.  */
8032     char *t;
8033     char const *s = 0 ? (char *) 0 : (char const *) 0;
8034
8035     *t++ = 0;
8036     if (s) return 0;
8037   }
8038   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8039     int x[] = {25, 17};
8040     const int *foo = &x[0];
8041     ++foo;
8042   }
8043   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8044     typedef const int *iptr;
8045     iptr p = 0;
8046     ++p;
8047   }
8048   { /* AIX XL C 1.02.0.0 rejects this saying
8049        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8050     struct s { int j; const int *ap[3]; };
8051     struct s *b; b->j = 5;
8052   }
8053   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8054     const int foo = 10;
8055     if (!foo) return 0;
8056   }
8057   return !cs[0] && !zero.x;
8058 #endif
8059
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8066 case "(($ac_try" in
8067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068   *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071   (eval "$ac_compile") 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } && {
8078          test -z "$ac_c_werror_flag" ||
8079          test ! -s conftest.err
8080        } && test -s conftest.$ac_objext; then
8081   ac_cv_c_const=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086         ac_cv_c_const=no
8087 fi
8088
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8092 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8093 if test $ac_cv_c_const = no; then
8094
8095 cat >>confdefs.h <<\_ACEOF
8096 #define const
8097 _ACEOF
8098
8099 fi
8100
8101
8102   { echo "$as_me:$LINENO: checking for signed" >&5
8103 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8104 if test "${bh_cv_c_signed+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113
8114 int
8115 main ()
8116 {
8117 signed char x;
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext
8123 if { (ac_try="$ac_compile"
8124 case "(($ac_try" in
8125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126   *) ac_try_echo=$ac_try;;
8127 esac
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129   (eval "$ac_compile") 2>conftest.er1
8130   ac_status=$?
8131   grep -v '^ *+' conftest.er1 >conftest.err
8132   rm -f conftest.er1
8133   cat conftest.err >&5
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); } && {
8136          test -z "$ac_c_werror_flag" ||
8137          test ! -s conftest.err
8138        } && test -s conftest.$ac_objext; then
8139   bh_cv_c_signed=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144         bh_cv_c_signed=no
8145 fi
8146
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8150 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8151   if test $bh_cv_c_signed = no; then
8152
8153 cat >>confdefs.h <<\_ACEOF
8154 #define signed
8155 _ACEOF
8156
8157   fi
8158
8159 { echo "$as_me:$LINENO: checking for inline" >&5
8160 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8161 if test "${ac_cv_c_inline+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   ac_cv_c_inline=no
8165 for ac_kw in inline __inline__ __inline; do
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #ifndef __cplusplus
8173 typedef int foo_t;
8174 static $ac_kw foo_t static_foo () {return 0; }
8175 $ac_kw foo_t foo () {return 0; }
8176 #endif
8177
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_compile") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } && {
8193          test -z "$ac_c_werror_flag" ||
8194          test ! -s conftest.err
8195        } && test -s conftest.$ac_objext; then
8196   ac_cv_c_inline=$ac_kw
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201
8202 fi
8203
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205   test "$ac_cv_c_inline" != no && break
8206 done
8207
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8210 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8211
8212
8213 case $ac_cv_c_inline in
8214   inline | yes) ;;
8215   *)
8216     case $ac_cv_c_inline in
8217       no) ac_val=;;
8218       *) ac_val=$ac_cv_c_inline;;
8219     esac
8220     cat >>confdefs.h <<_ACEOF
8221 #ifndef __cplusplus
8222 #define inline $ac_val
8223 #endif
8224 _ACEOF
8225     ;;
8226 esac
8227
8228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8239                   inttypes.h stdint.h unistd.h
8240 do
8241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253 $ac_includes_default
8254
8255 #include <$ac_header>
8256 _ACEOF
8257 rm -f conftest.$ac_objext
8258 if { (ac_try="$ac_compile"
8259 case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_compile") 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } && {
8271          test -z "$ac_c_werror_flag" ||
8272          test ! -s conftest.err
8273        } && test -s conftest.$ac_objext; then
8274   eval "$as_ac_Header=yes"
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279         eval "$as_ac_Header=no"
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 ac_res=`eval echo '${'$as_ac_Header'}'`
8285                { echo "$as_me:$LINENO: result: $ac_res" >&5
8286 echo "${ECHO_T}$ac_res" >&6; }
8287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288   cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8290 _ACEOF
8291
8292 fi
8293
8294 done
8295
8296
8297 { echo "$as_me:$LINENO: checking for off_t" >&5
8298 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8299 if test "${ac_cv_type_off_t+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h.  */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h.  */
8308 $ac_includes_default
8309 typedef off_t ac__type_new_;
8310 int
8311 main ()
8312 {
8313 if ((ac__type_new_ *) 0)
8314   return 0;
8315 if (sizeof (ac__type_new_))
8316   return 0;
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8323 case "(($ac_try" in
8324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325   *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328   (eval "$ac_compile") 2>conftest.er1
8329   ac_status=$?
8330   grep -v '^ *+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } && {
8335          test -z "$ac_c_werror_flag" ||
8336          test ! -s conftest.err
8337        } && test -s conftest.$ac_objext; then
8338   ac_cv_type_off_t=yes
8339 else
8340   echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343         ac_cv_type_off_t=no
8344 fi
8345
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8349 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8350 if test $ac_cv_type_off_t = yes; then
8351   :
8352 else
8353
8354 cat >>confdefs.h <<_ACEOF
8355 #define off_t long int
8356 _ACEOF
8357
8358 fi
8359
8360 { echo "$as_me:$LINENO: checking for size_t" >&5
8361 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8362 if test "${ac_cv_type_size_t+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371 $ac_includes_default
8372 typedef size_t ac__type_new_;
8373 int
8374 main ()
8375 {
8376 if ((ac__type_new_ *) 0)
8377   return 0;
8378 if (sizeof (ac__type_new_))
8379   return 0;
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8386 case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391   (eval "$ac_compile") 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } && {
8398          test -z "$ac_c_werror_flag" ||
8399          test ! -s conftest.err
8400        } && test -s conftest.$ac_objext; then
8401   ac_cv_type_size_t=yes
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406         ac_cv_type_size_t=no
8407 fi
8408
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8412 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8413 if test $ac_cv_type_size_t = yes; then
8414   :
8415 else
8416
8417 cat >>confdefs.h <<_ACEOF
8418 #define size_t unsigned int
8419 _ACEOF
8420
8421 fi
8422
8423
8424   { echo "$as_me:$LINENO: checking for long long" >&5
8425 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8426 if test "${ac_cv_type_long_long+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h.  */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h.  */
8435 long long ll = 1LL; int i = 63;
8436 int
8437 main ()
8438 {
8439 long long llmax = (long long) -1;
8440      return ll << i | ll >> i | llmax / ll | llmax % ll;
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (ac_try="$ac_link"
8447 case "(($ac_try" in
8448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449   *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452   (eval "$ac_link") 2>conftest.er1
8453   ac_status=$?
8454   grep -v '^ *+' conftest.er1 >conftest.err
8455   rm -f conftest.er1
8456   cat conftest.err >&5
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); } && {
8459          test -z "$ac_c_werror_flag" ||
8460          test ! -s conftest.err
8461        } && test -s conftest$ac_exeext &&
8462        $as_test_x conftest$ac_exeext; then
8463   ac_cv_type_long_long=yes
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468         ac_cv_type_long_long=no
8469 fi
8470
8471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472       conftest$ac_exeext conftest.$ac_ext
8473 fi
8474 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8475 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8476   if test $ac_cv_type_long_long = yes; then
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_LONG_LONG 1
8480 _ACEOF
8481
8482   fi
8483
8484
8485   { echo "$as_me:$LINENO: checking for long double" >&5
8486 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8487 if test "${gt_cv_c_long_double+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   if test "$GCC" = yes; then
8491        gt_cv_c_long_double=yes
8492      else
8493        cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499
8500          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8501          long double foo = 0.0;
8502          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8503          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8504
8505 int
8506 main ()
8507 {
8508
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } && {
8527          test -z "$ac_c_werror_flag" ||
8528          test ! -s conftest.err
8529        } && test -s conftest.$ac_objext; then
8530   gt_cv_c_long_double=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535         gt_cv_c_long_double=no
8536 fi
8537
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539      fi
8540 fi
8541 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8542 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8543   if test $gt_cv_c_long_double = yes; then
8544
8545 cat >>confdefs.h <<\_ACEOF
8546 #define HAVE_LONG_DOUBLE 1
8547 _ACEOF
8548
8549   fi
8550
8551
8552   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8553 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8554 if test "${gt_cv_c_wchar_t+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 #include <stddef.h>
8564        wchar_t foo = (wchar_t)'\0';
8565 int
8566 main ()
8567 {
8568
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_compile") 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } && {
8587          test -z "$ac_c_werror_flag" ||
8588          test ! -s conftest.err
8589        } && test -s conftest.$ac_objext; then
8590   gt_cv_c_wchar_t=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595         gt_cv_c_wchar_t=no
8596 fi
8597
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 fi
8600 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8601 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8602   if test $gt_cv_c_wchar_t = yes; then
8603
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_WCHAR_T 1
8606 _ACEOF
8607
8608   fi
8609
8610
8611   { echo "$as_me:$LINENO: checking for wint_t" >&5
8612 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8613 if test "${gt_cv_c_wint_t+set}" = set; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622 #include <wchar.h>
8623        wint_t foo = (wchar_t)'\0';
8624 int
8625 main ()
8626 {
8627
8628   ;
8629   return 0;
8630 }
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636   *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639   (eval "$ac_compile") 2>conftest.er1
8640   ac_status=$?
8641   grep -v '^ *+' conftest.er1 >conftest.err
8642   rm -f conftest.er1
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } && {
8646          test -z "$ac_c_werror_flag" ||
8647          test ! -s conftest.err
8648        } && test -s conftest.$ac_objext; then
8649   gt_cv_c_wint_t=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654         gt_cv_c_wint_t=no
8655 fi
8656
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8660 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8661   if test $gt_cv_c_wint_t = yes; then
8662
8663 cat >>confdefs.h <<\_ACEOF
8664 #define HAVE_WINT_T 1
8665 _ACEOF
8666
8667   fi
8668
8669
8670   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8671 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8672 if test "${gl_cv_header_inttypes_h+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681 #include <sys/types.h>
8682 #include <inttypes.h>
8683 int
8684 main ()
8685 {
8686 uintmax_t i = (uintmax_t) -1;
8687   ;
8688   return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8693 case "(($ac_try" in
8694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695   *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698   (eval "$ac_compile") 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } && {
8705          test -z "$ac_c_werror_flag" ||
8706          test ! -s conftest.err
8707        } && test -s conftest.$ac_objext; then
8708   gl_cv_header_inttypes_h=yes
8709 else
8710   echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8712
8713         gl_cv_header_inttypes_h=no
8714 fi
8715
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8719 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8720   if test $gl_cv_header_inttypes_h = yes; then
8721
8722 cat >>confdefs.h <<_ACEOF
8723 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8724 _ACEOF
8725
8726   fi
8727
8728
8729   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8730 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8731 if test "${gl_cv_header_stdint_h+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #include <sys/types.h>
8741 #include <stdint.h>
8742 int
8743 main ()
8744 {
8745 uintmax_t i = (uintmax_t) -1;
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_compile") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } && {
8764          test -z "$ac_c_werror_flag" ||
8765          test ! -s conftest.err
8766        } && test -s conftest.$ac_objext; then
8767   gl_cv_header_stdint_h=yes
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772         gl_cv_header_stdint_h=no
8773 fi
8774
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 fi
8777 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8778 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8779   if test $gl_cv_header_stdint_h = yes; then
8780
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_STDINT_H_WITH_UINTMAX 1
8783 _ACEOF
8784
8785   fi
8786
8787
8788
8789
8790   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8791 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8792 if test "${gt_cv_c_intmax_t+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801
8802 #include <stddef.h>
8803 #include <stdlib.h>
8804 #if HAVE_STDINT_H_WITH_UINTMAX
8805 #include <stdint.h>
8806 #endif
8807 #if HAVE_INTTYPES_H_WITH_UINTMAX
8808 #include <inttypes.h>
8809 #endif
8810
8811 int
8812 main ()
8813 {
8814 intmax_t x = -1;
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8821 case "(($ac_try" in
8822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823   *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826   (eval "$ac_compile") 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } && {
8833          test -z "$ac_c_werror_flag" ||
8834          test ! -s conftest.err
8835        } && test -s conftest.$ac_objext; then
8836   gt_cv_c_intmax_t=yes
8837 else
8838   echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841         gt_cv_c_intmax_t=no
8842 fi
8843
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 fi
8846 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8847 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8848   if test $gt_cv_c_intmax_t = yes; then
8849
8850 cat >>confdefs.h <<\_ACEOF
8851 #define HAVE_INTMAX_T 1
8852 _ACEOF
8853
8854   fi
8855
8856
8857
8858   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8859 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8860 if test "${gt_cv_func_printf_posix+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863
8864       if test "$cross_compiling" = yes; then
8865
8866         cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872
8873 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8874   notposix
8875 #endif
8876
8877 _ACEOF
8878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8879   $EGREP "notposix" >/dev/null 2>&1; then
8880   gt_cv_func_printf_posix="guessing no"
8881 else
8882   gt_cv_func_printf_posix="guessing yes"
8883 fi
8884 rm -f conftest*
8885
8886
8887 else
8888   cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h.  */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h.  */
8894
8895 #include <stdio.h>
8896 #include <string.h>
8897 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8898    dollar expansion (possibly an autoconf bug).  */
8899 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8900 static char buf[100];
8901 int main ()
8902 {
8903   sprintf (buf, format, 33, 55);
8904   return (strcmp (buf, "55 33") != 0);
8905 }
8906 _ACEOF
8907 rm -f conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914   (eval "$ac_link") 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8918   { (case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_try") 2>&5
8924   ac_status=$?
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); }; }; then
8927   gt_cv_func_printf_posix=yes
8928 else
8929   echo "$as_me: program exited with status $ac_status" >&5
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ( exit $ac_status )
8934 gt_cv_func_printf_posix=no
8935 fi
8936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8937 fi
8938
8939
8940
8941 fi
8942 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8943 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8944   case $gt_cv_func_printf_posix in
8945     *yes)
8946
8947 cat >>confdefs.h <<\_ACEOF
8948 #define HAVE_POSIX_PRINTF 1
8949 _ACEOF
8950
8951       ;;
8952   esac
8953
8954 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8955 # for constant arguments.  Useless!
8956 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8957 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8958 if test "${ac_cv_working_alloca_h+set}" = set; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967 #include <alloca.h>
8968 int
8969 main ()
8970 {
8971 char *p = (char *) alloca (2 * sizeof (int));
8972                           if (p) return 0;
8973   ;
8974   return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8979 case "(($ac_try" in
8980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981   *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984   (eval "$ac_link") 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && {
8991          test -z "$ac_c_werror_flag" ||
8992          test ! -s conftest.err
8993        } && test -s conftest$ac_exeext &&
8994        $as_test_x conftest$ac_exeext; then
8995   ac_cv_working_alloca_h=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000         ac_cv_working_alloca_h=no
9001 fi
9002
9003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9004       conftest$ac_exeext conftest.$ac_ext
9005 fi
9006 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9007 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9008 if test $ac_cv_working_alloca_h = yes; then
9009
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_ALLOCA_H 1
9012 _ACEOF
9013
9014 fi
9015
9016 { echo "$as_me:$LINENO: checking for alloca" >&5
9017 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9018 if test "${ac_cv_func_alloca_works+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 #ifdef __GNUC__
9028 # define alloca __builtin_alloca
9029 #else
9030 # ifdef _MSC_VER
9031 #  include <malloc.h>
9032 #  define alloca _alloca
9033 # else
9034 #  ifdef HAVE_ALLOCA_H
9035 #   include <alloca.h>
9036 #  else
9037 #   ifdef _AIX
9038  #pragma alloca
9039 #   else
9040 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9041 char *alloca ();
9042 #    endif
9043 #   endif
9044 #  endif
9045 # endif
9046 #endif
9047
9048 int
9049 main ()
9050 {
9051 char *p = (char *) alloca (1);
9052                                     if (p) return 0;
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (ac_try="$ac_link"
9059 case "(($ac_try" in
9060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061   *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064   (eval "$ac_link") 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } && {
9071          test -z "$ac_c_werror_flag" ||
9072          test ! -s conftest.err
9073        } && test -s conftest$ac_exeext &&
9074        $as_test_x conftest$ac_exeext; then
9075   ac_cv_func_alloca_works=yes
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080         ac_cv_func_alloca_works=no
9081 fi
9082
9083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9084       conftest$ac_exeext conftest.$ac_ext
9085 fi
9086 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9087 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9088
9089 if test $ac_cv_func_alloca_works = yes; then
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_ALLOCA 1
9093 _ACEOF
9094
9095 else
9096   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9097 # that cause trouble.  Some versions do not even contain alloca or
9098 # contain a buggy version.  If you still want to use their alloca,
9099 # use ar to extract alloca.o from them instead of compiling alloca.c.
9100
9101 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9102
9103 cat >>confdefs.h <<\_ACEOF
9104 #define C_ALLOCA 1
9105 _ACEOF
9106
9107
9108 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9109 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9110 if test "${ac_cv_os_cray+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #if defined CRAY && ! defined CRAY2
9120 webecray
9121 #else
9122 wenotbecray
9123 #endif
9124
9125 _ACEOF
9126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9127   $EGREP "webecray" >/dev/null 2>&1; then
9128   ac_cv_os_cray=yes
9129 else
9130   ac_cv_os_cray=no
9131 fi
9132 rm -f conftest*
9133
9134 fi
9135 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9136 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9137 if test $ac_cv_os_cray = yes; then
9138   for ac_func in _getb67 GETB67 getb67; do
9139     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9143   echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145   cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h.  */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h.  */
9151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9153 #define $ac_func innocuous_$ac_func
9154
9155 /* System header to define __stub macros and hopefully few prototypes,
9156     which can conflict with char $ac_func (); below.
9157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9158     <limits.h> exists even on freestanding compilers.  */
9159
9160 #ifdef __STDC__
9161 # include <limits.h>
9162 #else
9163 # include <assert.h>
9164 #endif
9165
9166 #undef $ac_func
9167
9168 /* Override any GCC internal prototype to avoid an error.
9169    Use char because int might match the return type of a GCC
9170    builtin and then its argument prototype would still apply.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 char $ac_func ();
9175 /* The GNU C library defines this for functions which it implements
9176     to always fail with ENOSYS.  Some functions are actually named
9177     something starting with __ and the normal name is an alias.  */
9178 #if defined __stub_$ac_func || defined __stub___$ac_func
9179 choke me
9180 #endif
9181
9182 int
9183 main ()
9184 {
9185 return $ac_func ();
9186   ;
9187   return 0;
9188 }
9189 _ACEOF
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (ac_try="$ac_link"
9192 case "(($ac_try" in
9193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194   *) ac_try_echo=$ac_try;;
9195 esac
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197   (eval "$ac_link") 2>conftest.er1
9198   ac_status=$?
9199   grep -v '^ *+' conftest.er1 >conftest.err
9200   rm -f conftest.er1
9201   cat conftest.err >&5
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } && {
9204          test -z "$ac_c_werror_flag" ||
9205          test ! -s conftest.err
9206        } && test -s conftest$ac_exeext &&
9207        $as_test_x conftest$ac_exeext; then
9208   eval "$as_ac_var=yes"
9209 else
9210   echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213         eval "$as_ac_var=no"
9214 fi
9215
9216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9217       conftest$ac_exeext conftest.$ac_ext
9218 fi
9219 ac_res=`eval echo '${'$as_ac_var'}'`
9220                { echo "$as_me:$LINENO: result: $ac_res" >&5
9221 echo "${ECHO_T}$ac_res" >&6; }
9222 if test `eval echo '${'$as_ac_var'}'` = yes; then
9223
9224 cat >>confdefs.h <<_ACEOF
9225 #define CRAY_STACKSEG_END $ac_func
9226 _ACEOF
9227
9228     break
9229 fi
9230
9231   done
9232 fi
9233
9234 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9235 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9236 if test "${ac_cv_c_stack_direction+set}" = set; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   if test "$cross_compiling" = yes; then
9240   ac_cv_c_stack_direction=0
9241 else
9242   cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 $ac_includes_default
9249 int
9250 find_stack_direction ()
9251 {
9252   static char *addr = 0;
9253   auto char dummy;
9254   if (addr == 0)
9255     {
9256       addr = &dummy;
9257       return find_stack_direction ();
9258     }
9259   else
9260     return (&dummy > addr) ? 1 : -1;
9261 }
9262
9263 int
9264 main ()
9265 {
9266   return find_stack_direction () < 0;
9267 }
9268 _ACEOF
9269 rm -f conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9271 case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_link") 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9280   { (case "(($ac_try" in
9281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282   *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285   (eval "$ac_try") 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; }; then
9289   ac_cv_c_stack_direction=1
9290 else
9291   echo "$as_me: program exited with status $ac_status" >&5
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ( exit $ac_status )
9296 ac_cv_c_stack_direction=-1
9297 fi
9298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9299 fi
9300
9301
9302 fi
9303 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9304 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9305
9306 cat >>confdefs.h <<_ACEOF
9307 #define STACK_DIRECTION $ac_cv_c_stack_direction
9308 _ACEOF
9309
9310
9311 fi
9312
9313
9314
9315 for ac_header in stdlib.h unistd.h
9316 do
9317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 fi
9324 ac_res=`eval echo '${'$as_ac_Header'}'`
9325                { echo "$as_me:$LINENO: result: $ac_res" >&5
9326 echo "${ECHO_T}$ac_res" >&6; }
9327 else
9328   # Is the header compilable?
9329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h.  */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h.  */
9337 $ac_includes_default
9338 #include <$ac_header>
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_compile") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } && {
9354          test -z "$ac_c_werror_flag" ||
9355          test ! -s conftest.err
9356        } && test -s conftest.$ac_objext; then
9357   ac_header_compiler=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362         ac_header_compiler=no
9363 fi
9364
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367 echo "${ECHO_T}$ac_header_compiler" >&6; }
9368
9369 # Is the header present?
9370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378 #include <$ac_header>
9379 _ACEOF
9380 if { (ac_try="$ac_cpp conftest.$ac_ext"
9381 case "(($ac_try" in
9382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383   *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9387   ac_status=$?
9388   grep -v '^ *+' conftest.er1 >conftest.err
9389   rm -f conftest.er1
9390   cat conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } >/dev/null && {
9393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9394          test ! -s conftest.err
9395        }; then
9396   ac_header_preproc=yes
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401   ac_header_preproc=no
9402 fi
9403
9404 rm -f conftest.err conftest.$ac_ext
9405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9406 echo "${ECHO_T}$ac_header_preproc" >&6; }
9407
9408 # So?  What about this header?
9409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9410   yes:no: )
9411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9415     ac_header_preproc=yes
9416     ;;
9417   no:yes:* )
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9430
9431     ;;
9432 esac
9433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   eval "$as_ac_Header=\$ac_header_preproc"
9439 fi
9440 ac_res=`eval echo '${'$as_ac_Header'}'`
9441                { echo "$as_me:$LINENO: result: $ac_res" >&5
9442 echo "${ECHO_T}$ac_res" >&6; }
9443
9444 fi
9445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9446   cat >>confdefs.h <<_ACEOF
9447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9448 _ACEOF
9449
9450 fi
9451
9452 done
9453
9454
9455 for ac_func in getpagesize
9456 do
9457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9471 #define $ac_func innocuous_$ac_func
9472
9473 /* System header to define __stub macros and hopefully few prototypes,
9474     which can conflict with char $ac_func (); below.
9475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9476     <limits.h> exists even on freestanding compilers.  */
9477
9478 #ifdef __STDC__
9479 # include <limits.h>
9480 #else
9481 # include <assert.h>
9482 #endif
9483
9484 #undef $ac_func
9485
9486 /* Override any GCC internal prototype to avoid an error.
9487    Use char because int might match the return type of a GCC
9488    builtin and then its argument prototype would still apply.  */
9489 #ifdef __cplusplus
9490 extern "C"
9491 #endif
9492 char $ac_func ();
9493 /* The GNU C library defines this for functions which it implements
9494     to always fail with ENOSYS.  Some functions are actually named
9495     something starting with __ and the normal name is an alias.  */
9496 #if defined __stub_$ac_func || defined __stub___$ac_func
9497 choke me
9498 #endif
9499
9500 int
9501 main ()
9502 {
9503 return $ac_func ();
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_link") 2>conftest.er1
9516   ac_status=$?
9517   grep -v '^ *+' conftest.er1 >conftest.err
9518   rm -f conftest.er1
9519   cat conftest.err >&5
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } && {
9522          test -z "$ac_c_werror_flag" ||
9523          test ! -s conftest.err
9524        } && test -s conftest$ac_exeext &&
9525        $as_test_x conftest$ac_exeext; then
9526   eval "$as_ac_var=yes"
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531         eval "$as_ac_var=no"
9532 fi
9533
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535       conftest$ac_exeext conftest.$ac_ext
9536 fi
9537 ac_res=`eval echo '${'$as_ac_var'}'`
9538                { echo "$as_me:$LINENO: result: $ac_res" >&5
9539 echo "${ECHO_T}$ac_res" >&6; }
9540 if test `eval echo '${'$as_ac_var'}'` = yes; then
9541   cat >>confdefs.h <<_ACEOF
9542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 _ACEOF
9544
9545 fi
9546 done
9547
9548 { echo "$as_me:$LINENO: checking for working mmap" >&5
9549 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9550 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   if test "$cross_compiling" = yes; then
9554   ac_cv_func_mmap_fixed_mapped=no
9555 else
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 $ac_includes_default
9563 /* malloc might have been renamed as rpl_malloc. */
9564 #undef malloc
9565
9566 /* Thanks to Mike Haertel and Jim Avera for this test.
9567    Here is a matrix of mmap possibilities:
9568         mmap private not fixed
9569         mmap private fixed at somewhere currently unmapped
9570         mmap private fixed at somewhere already mapped
9571         mmap shared not fixed
9572         mmap shared fixed at somewhere currently unmapped
9573         mmap shared fixed at somewhere already mapped
9574    For private mappings, we should verify that changes cannot be read()
9575    back from the file, nor mmap's back from the file at a different
9576    address.  (There have been systems where private was not correctly
9577    implemented like the infamous i386 svr4.0, and systems where the
9578    VM page cache was not coherent with the file system buffer cache
9579    like early versions of FreeBSD and possibly contemporary NetBSD.)
9580    For shared mappings, we should conversely verify that changes get
9581    propagated back to all the places they're supposed to be.
9582
9583    Grep wants private fixed already mapped.
9584    The main things grep needs to know about mmap are:
9585    * does it exist and is it safe to write into the mmap'd area
9586    * how to use it (BSD variants)  */
9587
9588 #include <fcntl.h>
9589 #include <sys/mman.h>
9590
9591 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9592 char *malloc ();
9593 #endif
9594
9595 /* This mess was copied from the GNU getpagesize.h.  */
9596 #ifndef HAVE_GETPAGESIZE
9597 /* Assume that all systems that can run configure have sys/param.h.  */
9598 # ifndef HAVE_SYS_PARAM_H
9599 #  define HAVE_SYS_PARAM_H 1
9600 # endif
9601
9602 # ifdef _SC_PAGESIZE
9603 #  define getpagesize() sysconf(_SC_PAGESIZE)
9604 # else /* no _SC_PAGESIZE */
9605 #  ifdef HAVE_SYS_PARAM_H
9606 #   include <sys/param.h>
9607 #   ifdef EXEC_PAGESIZE
9608 #    define getpagesize() EXEC_PAGESIZE
9609 #   else /* no EXEC_PAGESIZE */
9610 #    ifdef NBPG
9611 #     define getpagesize() NBPG * CLSIZE
9612 #     ifndef CLSIZE
9613 #      define CLSIZE 1
9614 #     endif /* no CLSIZE */
9615 #    else /* no NBPG */
9616 #     ifdef NBPC
9617 #      define getpagesize() NBPC
9618 #     else /* no NBPC */
9619 #      ifdef PAGESIZE
9620 #       define getpagesize() PAGESIZE
9621 #      endif /* PAGESIZE */
9622 #     endif /* no NBPC */
9623 #    endif /* no NBPG */
9624 #   endif /* no EXEC_PAGESIZE */
9625 #  else /* no HAVE_SYS_PARAM_H */
9626 #   define getpagesize() 8192   /* punt totally */
9627 #  endif /* no HAVE_SYS_PARAM_H */
9628 # endif /* no _SC_PAGESIZE */
9629
9630 #endif /* no HAVE_GETPAGESIZE */
9631
9632 int
9633 main ()
9634 {
9635   char *data, *data2, *data3;
9636   int i, pagesize;
9637   int fd;
9638
9639   pagesize = getpagesize ();
9640
9641   /* First, make a file with some known garbage in it. */
9642   data = (char *) malloc (pagesize);
9643   if (!data)
9644     return 1;
9645   for (i = 0; i < pagesize; ++i)
9646     *(data + i) = rand ();
9647   umask (0);
9648   fd = creat ("conftest.mmap", 0600);
9649   if (fd < 0)
9650     return 1;
9651   if (write (fd, data, pagesize) != pagesize)
9652     return 1;
9653   close (fd);
9654
9655   /* Next, try to mmap the file at a fixed address which already has
9656      something else allocated at it.  If we can, also make sure that
9657      we see the same garbage.  */
9658   fd = open ("conftest.mmap", O_RDWR);
9659   if (fd < 0)
9660     return 1;
9661   data2 = (char *) malloc (2 * pagesize);
9662   if (!data2)
9663     return 1;
9664   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9665   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9666                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9667     return 1;
9668   for (i = 0; i < pagesize; ++i)
9669     if (*(data + i) != *(data2 + i))
9670       return 1;
9671
9672   /* Finally, make sure that changes to the mapped area do not
9673      percolate back to the file as seen by read().  (This is a bug on
9674      some variants of i386 svr4.0.)  */
9675   for (i = 0; i < pagesize; ++i)
9676     *(data2 + i) = *(data2 + i) + 1;
9677   data3 = (char *) malloc (pagesize);
9678   if (!data3)
9679     return 1;
9680   if (read (fd, data3, pagesize) != pagesize)
9681     return 1;
9682   for (i = 0; i < pagesize; ++i)
9683     if (*(data + i) != *(data3 + i))
9684       return 1;
9685   close (fd);
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest$ac_exeext
9690 if { (ac_try="$ac_link"
9691 case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696   (eval "$ac_link") 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9700   { (case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_try") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   ac_cv_func_mmap_fixed_mapped=yes
9710 else
9711   echo "$as_me: program exited with status $ac_status" >&5
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 ( exit $ac_status )
9716 ac_cv_func_mmap_fixed_mapped=no
9717 fi
9718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9719 fi
9720
9721
9722 fi
9723 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9724 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9725 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9726
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_MMAP 1
9729 _ACEOF
9730
9731 fi
9732 rm -f conftest.mmap
9733
9734
9735     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9736 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9737 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9738   echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740   cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746
9747 #include <features.h>
9748 #ifdef __GNU_LIBRARY__
9749  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9750   Lucky GNU user
9751  #endif
9752 #endif
9753
9754 _ACEOF
9755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9756   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9757   ac_cv_gnu_library_2_1=yes
9758 else
9759   ac_cv_gnu_library_2_1=no
9760 fi
9761 rm -f conftest*
9762
9763
9764
9765 fi
9766 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9767 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9768
9769     GLIBC21="$ac_cv_gnu_library_2_1"
9770
9771
9772
9773
9774   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9775 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9776 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779
9780       if test "$cross_compiling" = yes; then
9781
9782           # Guess based on the CPU.
9783           case "$host_cpu" in
9784             alpha* | i3456786 | m68k | s390*)
9785               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9786             *)
9787               gt_cv_int_divbyzero_sigfpe="guessing no";;
9788           esac
9789
9790 else
9791   cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h.  */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h.  */
9797
9798 #include <stdlib.h>
9799 #include <signal.h>
9800
9801 static void
9802 #ifdef __cplusplus
9803 sigfpe_handler (int sig)
9804 #else
9805 sigfpe_handler (sig) int sig;
9806 #endif
9807 {
9808   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9809   exit (sig != SIGFPE);
9810 }
9811
9812 int x = 1;
9813 int y = 0;
9814 int z;
9815 int nan;
9816
9817 int main ()
9818 {
9819   signal (SIGFPE, sigfpe_handler);
9820 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9821 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9822   signal (SIGTRAP, sigfpe_handler);
9823 #endif
9824 /* Linux/SPARC yields signal SIGILL.  */
9825 #if defined (__sparc__) && defined (__linux__)
9826   signal (SIGILL, sigfpe_handler);
9827 #endif
9828
9829   z = x / y;
9830   nan = y / y;
9831   exit (1);
9832 }
9833
9834 _ACEOF
9835 rm -f conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_link") 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9846   { (case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_try") 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855   gt_cv_int_divbyzero_sigfpe=yes
9856 else
9857   echo "$as_me: program exited with status $ac_status" >&5
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ( exit $ac_status )
9862 gt_cv_int_divbyzero_sigfpe=no
9863 fi
9864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9865 fi
9866
9867
9868
9869 fi
9870 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9871 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9872   case "$gt_cv_int_divbyzero_sigfpe" in
9873     *yes) value=1;;
9874     *) value=0;;
9875   esac
9876
9877 cat >>confdefs.h <<_ACEOF
9878 #define INTDIV0_RAISES_SIGFPE $value
9879 _ACEOF
9880
9881
9882
9883   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9884 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9885 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 unsigned long long ull = 1ULL; int i = 63;
9895 int
9896 main ()
9897 {
9898 unsigned long long ullmax = (unsigned long long) -1;
9899      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (ac_try="$ac_link"
9906 case "(($ac_try" in
9907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908   *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911   (eval "$ac_link") 2>conftest.er1
9912   ac_status=$?
9913   grep -v '^ *+' conftest.er1 >conftest.err
9914   rm -f conftest.er1
9915   cat conftest.err >&5
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } && {
9918          test -z "$ac_c_werror_flag" ||
9919          test ! -s conftest.err
9920        } && test -s conftest$ac_exeext &&
9921        $as_test_x conftest$ac_exeext; then
9922   ac_cv_type_unsigned_long_long=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927         ac_cv_type_unsigned_long_long=no
9928 fi
9929
9930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9931       conftest$ac_exeext conftest.$ac_ext
9932 fi
9933 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9934 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9935   if test $ac_cv_type_unsigned_long_long = yes; then
9936
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_UNSIGNED_LONG_LONG 1
9939 _ACEOF
9940
9941   fi
9942
9943
9944
9945
9946   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9947
9948     test $ac_cv_type_unsigned_long_long = yes \
9949       && ac_type='unsigned long long' \
9950       || ac_type='unsigned long'
9951
9952 cat >>confdefs.h <<_ACEOF
9953 #define uintmax_t $ac_type
9954 _ACEOF
9955
9956   else
9957
9958 cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_UINTMAX_T 1
9960 _ACEOF
9961
9962   fi
9963
9964
9965   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9966 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9967 if test "${gt_cv_header_inttypes_h+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970
9971     cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977 #include <sys/types.h>
9978 #include <inttypes.h>
9979 int
9980 main ()
9981 {
9982
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_compile") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } && {
10001          test -z "$ac_c_werror_flag" ||
10002          test ! -s conftest.err
10003        } && test -s conftest.$ac_objext; then
10004   gt_cv_header_inttypes_h=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         gt_cv_header_inttypes_h=no
10010 fi
10011
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013
10014 fi
10015 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10016 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10017   if test $gt_cv_header_inttypes_h = yes; then
10018
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_INTTYPES_H 1
10021 _ACEOF
10022
10023   fi
10024
10025
10026
10027   if test $gt_cv_header_inttypes_h = yes; then
10028     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10029 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10030 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033
10034         cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h.  */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h.  */
10040 #include <inttypes.h>
10041 #ifdef PRId32
10042 char *p = PRId32;
10043 #endif
10044
10045 int
10046 main ()
10047 {
10048
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext
10054 if { (ac_try="$ac_compile"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_compile") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } && {
10067          test -z "$ac_c_werror_flag" ||
10068          test ! -s conftest.err
10069        } && test -s conftest.$ac_objext; then
10070   gt_cv_inttypes_pri_broken=no
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075         gt_cv_inttypes_pri_broken=yes
10076 fi
10077
10078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079
10080 fi
10081 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10082 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10083   fi
10084   if test "$gt_cv_inttypes_pri_broken" = yes; then
10085
10086 cat >>confdefs.h <<_ACEOF
10087 #define PRI_MACROS_BROKEN 1
10088 _ACEOF
10089
10090   fi
10091
10092
10093
10094 for ac_header in stdint.h
10095 do
10096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 fi
10103 ac_res=`eval echo '${'$as_ac_Header'}'`
10104                { echo "$as_me:$LINENO: result: $ac_res" >&5
10105 echo "${ECHO_T}$ac_res" >&6; }
10106 else
10107   # Is the header compilable?
10108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 $ac_includes_default
10117 #include <$ac_header>
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (ac_try="$ac_compile"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_compile") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } && {
10133          test -z "$ac_c_werror_flag" ||
10134          test ! -s conftest.err
10135        } && test -s conftest.$ac_objext; then
10136   ac_header_compiler=yes
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141         ac_header_compiler=no
10142 fi
10143
10144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10146 echo "${ECHO_T}$ac_header_compiler" >&6; }
10147
10148 # Is the header present?
10149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157 #include <$ac_header>
10158 _ACEOF
10159 if { (ac_try="$ac_cpp conftest.$ac_ext"
10160 case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } >/dev/null && {
10172          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10173          test ! -s conftest.err
10174        }; then
10175   ac_header_preproc=yes
10176 else
10177   echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180   ac_header_preproc=no
10181 fi
10182
10183 rm -f conftest.err conftest.$ac_ext
10184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10185 echo "${ECHO_T}$ac_header_preproc" >&6; }
10186
10187 # So?  What about this header?
10188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10189   yes:no: )
10190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10194     ac_header_preproc=yes
10195     ;;
10196   no:yes:* )
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10209
10210     ;;
10211 esac
10212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217   eval "$as_ac_Header=\$ac_header_preproc"
10218 fi
10219 ac_res=`eval echo '${'$as_ac_Header'}'`
10220                { echo "$as_me:$LINENO: result: $ac_res" >&5
10221 echo "${ECHO_T}$ac_res" >&6; }
10222
10223 fi
10224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10225   cat >>confdefs.h <<_ACEOF
10226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10227 _ACEOF
10228
10229 fi
10230
10231 done
10232
10233     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10234 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10235   result=
10236   cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242
10243 #include <limits.h>
10244 #if HAVE_STDINT_H
10245 #include <stdint.h>
10246 #endif
10247 #ifdef SIZE_MAX
10248 Found it
10249 #endif
10250
10251 _ACEOF
10252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10253   $EGREP "Found it" >/dev/null 2>&1; then
10254   result=yes
10255 fi
10256 rm -f conftest*
10257
10258   if test -z "$result"; then
10259                     if test "$cross_compiling" = yes; then
10260   # Depending upon the size, compute the lo and hi bounds.
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267 #include <stddef.h>
10268 int
10269 main ()
10270 {
10271 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10272 test_array [0] = 0
10273
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext
10279 if { (ac_try="$ac_compile"
10280 case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285   (eval "$ac_compile") 2>conftest.er1
10286   ac_status=$?
10287   grep -v '^ *+' conftest.er1 >conftest.err
10288   rm -f conftest.er1
10289   cat conftest.err >&5
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } && {
10292          test -z "$ac_c_werror_flag" ||
10293          test ! -s conftest.err
10294        } && test -s conftest.$ac_objext; then
10295   ac_lo=0 ac_mid=0
10296   while :; do
10297     cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h.  */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h.  */
10303 #include <stddef.h>
10304 int
10305 main ()
10306 {
10307 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10308 test_array [0] = 0
10309
10310   ;
10311   return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (ac_try="$ac_compile"
10316 case "(($ac_try" in
10317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318   *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321   (eval "$ac_compile") 2>conftest.er1
10322   ac_status=$?
10323   grep -v '^ *+' conftest.er1 >conftest.err
10324   rm -f conftest.er1
10325   cat conftest.err >&5
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); } && {
10328          test -z "$ac_c_werror_flag" ||
10329          test ! -s conftest.err
10330        } && test -s conftest.$ac_objext; then
10331   ac_hi=$ac_mid; break
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336         ac_lo=`expr $ac_mid + 1`
10337                         if test $ac_lo -le $ac_mid; then
10338                           ac_lo= ac_hi=
10339                           break
10340                         fi
10341                         ac_mid=`expr 2 '*' $ac_mid + 1`
10342 fi
10343
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345   done
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350         cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356 #include <stddef.h>
10357 int
10358 main ()
10359 {
10360 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10361 test_array [0] = 0
10362
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374   (eval "$ac_compile") 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } && {
10381          test -z "$ac_c_werror_flag" ||
10382          test ! -s conftest.err
10383        } && test -s conftest.$ac_objext; then
10384   ac_hi=-1 ac_mid=-1
10385   while :; do
10386     cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h.  */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h.  */
10392 #include <stddef.h>
10393 int
10394 main ()
10395 {
10396 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10397 test_array [0] = 0
10398
10399   ;
10400   return 0;
10401 }
10402 _ACEOF
10403 rm -f conftest.$ac_objext
10404 if { (ac_try="$ac_compile"
10405 case "(($ac_try" in
10406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407   *) ac_try_echo=$ac_try;;
10408 esac
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410   (eval "$ac_compile") 2>conftest.er1
10411   ac_status=$?
10412   grep -v '^ *+' conftest.er1 >conftest.err
10413   rm -f conftest.er1
10414   cat conftest.err >&5
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } && {
10417          test -z "$ac_c_werror_flag" ||
10418          test ! -s conftest.err
10419        } && test -s conftest.$ac_objext; then
10420   ac_lo=$ac_mid; break
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425         ac_hi=`expr '(' $ac_mid ')' - 1`
10426                         if test $ac_mid -le $ac_hi; then
10427                           ac_lo= ac_hi=
10428                           break
10429                         fi
10430                         ac_mid=`expr 2 '*' $ac_mid`
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434   done
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439         ac_lo= ac_hi=
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10443 fi
10444
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446 # Binary search between lo and hi bounds.
10447 while test "x$ac_lo" != "x$ac_hi"; do
10448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10449   cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h.  */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h.  */
10455 #include <stddef.h>
10456 int
10457 main ()
10458 {
10459 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10460 test_array [0] = 0
10461
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470   *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473   (eval "$ac_compile") 2>conftest.er1
10474   ac_status=$?
10475   grep -v '^ *+' conftest.er1 >conftest.err
10476   rm -f conftest.er1
10477   cat conftest.err >&5
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } && {
10480          test -z "$ac_c_werror_flag" ||
10481          test ! -s conftest.err
10482        } && test -s conftest.$ac_objext; then
10483   ac_hi=$ac_mid
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488         ac_lo=`expr '(' $ac_mid ')' + 1`
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492 done
10493 case $ac_lo in
10494 ?*) res_hi=$ac_lo;;
10495 '') result=? ;;
10496 esac
10497 else
10498   cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h.  */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h.  */
10504 #include <stddef.h>
10505 static long int longval () { return ~(size_t)0 / 10; }
10506 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10507 #include <stdio.h>
10508 #include <stdlib.h>
10509 int
10510 main ()
10511 {
10512
10513   FILE *f = fopen ("conftest.val", "w");
10514   if (! f)
10515     return 1;
10516   if ((~(size_t)0 / 10) < 0)
10517     {
10518       long int i = longval ();
10519       if (i != (~(size_t)0 / 10))
10520         return 1;
10521       fprintf (f, "%ld\n", i);
10522     }
10523   else
10524     {
10525       unsigned long int i = ulongval ();
10526       if (i != (~(size_t)0 / 10))
10527         return 1;
10528       fprintf (f, "%lu\n", i);
10529     }
10530   return ferror (f) || fclose (f) != 0;
10531
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_link") 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10547   { (case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_try") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   res_hi=`cat conftest.val`
10557 else
10558   echo "$as_me: program exited with status $ac_status" >&5
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ( exit $ac_status )
10563 result=?
10564 fi
10565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10566 fi
10567 rm -f conftest.val
10568
10569     if test "$cross_compiling" = yes; then
10570   # Depending upon the size, compute the lo and hi bounds.
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 #include <stddef.h>
10578 int
10579 main ()
10580 {
10581 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10582 test_array [0] = 0
10583
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595   (eval "$ac_compile") 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } && {
10602          test -z "$ac_c_werror_flag" ||
10603          test ! -s conftest.err
10604        } && test -s conftest.$ac_objext; then
10605   ac_lo=0 ac_mid=0
10606   while :; do
10607     cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 #include <stddef.h>
10614 int
10615 main ()
10616 {
10617 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10618 test_array [0] = 0
10619
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_compile") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } && {
10638          test -z "$ac_c_werror_flag" ||
10639          test ! -s conftest.err
10640        } && test -s conftest.$ac_objext; then
10641   ac_hi=$ac_mid; break
10642 else
10643   echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646         ac_lo=`expr $ac_mid + 1`
10647                         if test $ac_lo -le $ac_mid; then
10648                           ac_lo= ac_hi=
10649                           break
10650                         fi
10651                         ac_mid=`expr 2 '*' $ac_mid + 1`
10652 fi
10653
10654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655   done
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660         cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666 #include <stddef.h>
10667 int
10668 main ()
10669 {
10670 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10671 test_array [0] = 0
10672
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684   (eval "$ac_compile") 2>conftest.er1
10685   ac_status=$?
10686   grep -v '^ *+' conftest.er1 >conftest.err
10687   rm -f conftest.er1
10688   cat conftest.err >&5
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } && {
10691          test -z "$ac_c_werror_flag" ||
10692          test ! -s conftest.err
10693        } && test -s conftest.$ac_objext; then
10694   ac_hi=-1 ac_mid=-1
10695   while :; do
10696     cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702 #include <stddef.h>
10703 int
10704 main ()
10705 {
10706 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10707 test_array [0] = 0
10708
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext
10714 if { (ac_try="$ac_compile"
10715 case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_compile") 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } && {
10727          test -z "$ac_c_werror_flag" ||
10728          test ! -s conftest.err
10729        } && test -s conftest.$ac_objext; then
10730   ac_lo=$ac_mid; break
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735         ac_hi=`expr '(' $ac_mid ')' - 1`
10736                         if test $ac_mid -le $ac_hi; then
10737                           ac_lo= ac_hi=
10738                           break
10739                         fi
10740                         ac_mid=`expr 2 '*' $ac_mid`
10741 fi
10742
10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744   done
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749         ac_lo= ac_hi=
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 fi
10754
10755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 # Binary search between lo and hi bounds.
10757 while test "x$ac_lo" != "x$ac_hi"; do
10758   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10759   cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765 #include <stddef.h>
10766 int
10767 main ()
10768 {
10769 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10770 test_array [0] = 0
10771
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_compile") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && {
10790          test -z "$ac_c_werror_flag" ||
10791          test ! -s conftest.err
10792        } && test -s conftest.$ac_objext; then
10793   ac_hi=$ac_mid
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_lo=`expr '(' $ac_mid ')' + 1`
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 done
10803 case $ac_lo in
10804 ?*) res_lo=$ac_lo;;
10805 '') result=? ;;
10806 esac
10807 else
10808   cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 #include <stddef.h>
10815 static long int longval () { return ~(size_t)0 % 10; }
10816 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10817 #include <stdio.h>
10818 #include <stdlib.h>
10819 int
10820 main ()
10821 {
10822
10823   FILE *f = fopen ("conftest.val", "w");
10824   if (! f)
10825     return 1;
10826   if ((~(size_t)0 % 10) < 0)
10827     {
10828       long int i = longval ();
10829       if (i != (~(size_t)0 % 10))
10830         return 1;
10831       fprintf (f, "%ld\n", i);
10832     }
10833   else
10834     {
10835       unsigned long int i = ulongval ();
10836       if (i != (~(size_t)0 % 10))
10837         return 1;
10838       fprintf (f, "%lu\n", i);
10839     }
10840   return ferror (f) || fclose (f) != 0;
10841
10842   ;
10843   return 0;
10844 }
10845 _ACEOF
10846 rm -f conftest$ac_exeext
10847 if { (ac_try="$ac_link"
10848 case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_link") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10857   { (case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_try") 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   res_lo=`cat conftest.val`
10867 else
10868   echo "$as_me: program exited with status $ac_status" >&5
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872 ( exit $ac_status )
10873 result=?
10874 fi
10875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10876 fi
10877 rm -f conftest.val
10878
10879     if test "$cross_compiling" = yes; then
10880   # Depending upon the size, compute the lo and hi bounds.
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 #include <stddef.h>
10888 int
10889 main ()
10890 {
10891 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10892 test_array [0] = 0
10893
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext
10899 if { (ac_try="$ac_compile"
10900 case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_compile") 2>conftest.er1
10906   ac_status=$?
10907   grep -v '^ *+' conftest.er1 >conftest.err
10908   rm -f conftest.er1
10909   cat conftest.err >&5
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } && {
10912          test -z "$ac_c_werror_flag" ||
10913          test ! -s conftest.err
10914        } && test -s conftest.$ac_objext; then
10915   ac_lo=0 ac_mid=0
10916   while :; do
10917     cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 #include <stddef.h>
10924 int
10925 main ()
10926 {
10927 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10928 test_array [0] = 0
10929
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_compile") 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } && {
10948          test -z "$ac_c_werror_flag" ||
10949          test ! -s conftest.err
10950        } && test -s conftest.$ac_objext; then
10951   ac_hi=$ac_mid; break
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956         ac_lo=`expr $ac_mid + 1`
10957                         if test $ac_lo -le $ac_mid; then
10958                           ac_lo= ac_hi=
10959                           break
10960                         fi
10961                         ac_mid=`expr 2 '*' $ac_mid + 1`
10962 fi
10963
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965   done
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970         cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976 #include <stddef.h>
10977 int
10978 main ()
10979 {
10980 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10981 test_array [0] = 0
10982
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_compile") 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } && {
11001          test -z "$ac_c_werror_flag" ||
11002          test ! -s conftest.err
11003        } && test -s conftest.$ac_objext; then
11004   ac_hi=-1 ac_mid=-1
11005   while :; do
11006     cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 #include <stddef.h>
11013 int
11014 main ()
11015 {
11016 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11017 test_array [0] = 0
11018
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_compile") 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } && {
11037          test -z "$ac_c_werror_flag" ||
11038          test ! -s conftest.err
11039        } && test -s conftest.$ac_objext; then
11040   ac_lo=$ac_mid; break
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045         ac_hi=`expr '(' $ac_mid ')' - 1`
11046                         if test $ac_mid -le $ac_hi; then
11047                           ac_lo= ac_hi=
11048                           break
11049                         fi
11050                         ac_mid=`expr 2 '*' $ac_mid`
11051 fi
11052
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054   done
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059         ac_lo= ac_hi=
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 fi
11064
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 # Binary search between lo and hi bounds.
11067 while test "x$ac_lo" != "x$ac_hi"; do
11068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11069   cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <stddef.h>
11076 int
11077 main ()
11078 {
11079 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11080 test_array [0] = 0
11081
11082   ;
11083   return 0;
11084 }
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_compile") 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } && {
11100          test -z "$ac_c_werror_flag" ||
11101          test ! -s conftest.err
11102        } && test -s conftest.$ac_objext; then
11103   ac_hi=$ac_mid
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108         ac_lo=`expr '(' $ac_mid ')' + 1`
11109 fi
11110
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 done
11113 case $ac_lo in
11114 ?*) fits_in_uint=$ac_lo;;
11115 '') result=? ;;
11116 esac
11117 else
11118   cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 #include <stddef.h>
11125 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11126 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11127 #include <stdio.h>
11128 #include <stdlib.h>
11129 int
11130 main ()
11131 {
11132
11133   FILE *f = fopen ("conftest.val", "w");
11134   if (! f)
11135     return 1;
11136   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11137     {
11138       long int i = longval ();
11139       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11140         return 1;
11141       fprintf (f, "%ld\n", i);
11142     }
11143   else
11144     {
11145       unsigned long int i = ulongval ();
11146       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11147         return 1;
11148       fprintf (f, "%lu\n", i);
11149     }
11150   return ferror (f) || fclose (f) != 0;
11151
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_link") 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11167   { (case "(($ac_try" in
11168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169   *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172   (eval "$ac_try") 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; }; then
11176   fits_in_uint=`cat conftest.val`
11177 else
11178   echo "$as_me: program exited with status $ac_status" >&5
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ( exit $ac_status )
11183 result=?
11184 fi
11185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11186 fi
11187 rm -f conftest.val
11188
11189     if test "$fits_in_uint" = 1; then
11190                   cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h.  */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h.  */
11196 #include <stddef.h>
11197         extern size_t foo;
11198         extern unsigned long foo;
11199
11200 int
11201 main ()
11202 {
11203
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_compile") 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } && {
11222          test -z "$ac_c_werror_flag" ||
11223          test ! -s conftest.err
11224        } && test -s conftest.$ac_objext; then
11225   fits_in_uint=0
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230
11231 fi
11232
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234     fi
11235     if test -z "$result"; then
11236       if test "$fits_in_uint" = 1; then
11237         result="$res_hi$res_lo"U
11238       else
11239         result="$res_hi$res_lo"UL
11240       fi
11241     else
11242             result='~(size_t)0'
11243     fi
11244   fi
11245   { echo "$as_me:$LINENO: result: $result" >&5
11246 echo "${ECHO_T}$result" >&6; }
11247   if test "$result" != yes; then
11248
11249 cat >>confdefs.h <<_ACEOF
11250 #define SIZE_MAX $result
11251 _ACEOF
11252
11253   fi
11254
11255
11256
11257
11258
11259 for ac_header in stdint.h
11260 do
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 fi
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269                { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11271 else
11272   # Is the header compilable?
11273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 $ac_includes_default
11282 #include <$ac_header>
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_compile") 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } && {
11298          test -z "$ac_c_werror_flag" ||
11299          test ! -s conftest.err
11300        } && test -s conftest.$ac_objext; then
11301   ac_header_compiler=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306         ac_header_compiler=no
11307 fi
11308
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 #include <$ac_header>
11323 _ACEOF
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } >/dev/null && {
11337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11338          test ! -s conftest.err
11339        }; then
11340   ac_header_preproc=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345   ac_header_preproc=no
11346 fi
11347
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351
11352 # So?  What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354   yes:no: )
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359     ac_header_preproc=yes
11360     ;;
11361   no:yes:* )
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374
11375     ;;
11376 esac
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   eval "$as_ac_Header=\$ac_header_preproc"
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387
11388 fi
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11393
11394 fi
11395
11396 done
11397
11398
11399
11400
11401
11402
11403
11404
11405   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11406 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11407 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 $ac_includes_default
11417 typedef ptrdiff_t ac__type_new_;
11418 int
11419 main ()
11420 {
11421 if ((ac__type_new_ *) 0)
11422   return 0;
11423 if (sizeof (ac__type_new_))
11424   return 0;
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433   *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436   (eval "$ac_compile") 2>conftest.er1
11437   ac_status=$?
11438   grep -v '^ *+' conftest.er1 >conftest.err
11439   rm -f conftest.er1
11440   cat conftest.err >&5
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); } && {
11443          test -z "$ac_c_werror_flag" ||
11444          test ! -s conftest.err
11445        } && test -s conftest.$ac_objext; then
11446   ac_cv_type_ptrdiff_t=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451         ac_cv_type_ptrdiff_t=no
11452 fi
11453
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 fi
11456 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11457 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11458 if test $ac_cv_type_ptrdiff_t = yes; then
11459   :
11460 else
11461
11462 cat >>confdefs.h <<\_ACEOF
11463 #define ptrdiff_t long
11464 _ACEOF
11465
11466
11467 fi
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11480 stdlib.h string.h unistd.h sys/param.h
11481 do
11482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 fi
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490                { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 else
11493   # Is the header compilable?
11494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502 $ac_includes_default
11503 #include <$ac_header>
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (ac_try="$ac_compile"
11507 case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_compile") 2>conftest.er1
11513   ac_status=$?
11514   grep -v '^ *+' conftest.er1 >conftest.err
11515   rm -f conftest.er1
11516   cat conftest.err >&5
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } && {
11519          test -z "$ac_c_werror_flag" ||
11520          test ! -s conftest.err
11521        } && test -s conftest.$ac_objext; then
11522   ac_header_compiler=yes
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527         ac_header_compiler=no
11528 fi
11529
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533
11534 # Is the header present?
11535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 #include <$ac_header>
11544 _ACEOF
11545 if { (ac_try="$ac_cpp conftest.$ac_ext"
11546 case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11552   ac_status=$?
11553   grep -v '^ *+' conftest.er1 >conftest.err
11554   rm -f conftest.er1
11555   cat conftest.err >&5
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } >/dev/null && {
11558          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11559          test ! -s conftest.err
11560        }; then
11561   ac_header_preproc=yes
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566   ac_header_preproc=no
11567 fi
11568
11569 rm -f conftest.err conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11571 echo "${ECHO_T}$ac_header_preproc" >&6; }
11572
11573 # So?  What about this header?
11574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11575   yes:no: )
11576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11580     ac_header_preproc=yes
11581     ;;
11582   no:yes:* )
11583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11595
11596     ;;
11597 esac
11598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603   eval "$as_ac_Header=\$ac_header_preproc"
11604 fi
11605 ac_res=`eval echo '${'$as_ac_Header'}'`
11606                { echo "$as_me:$LINENO: result: $ac_res" >&5
11607 echo "${ECHO_T}$ac_res" >&6; }
11608
11609 fi
11610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11611   cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11613 _ACEOF
11614
11615 fi
11616
11617 done
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11643 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11644 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11645 __fsetlocking
11646 do
11647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11661 #define $ac_func innocuous_$ac_func
11662
11663 /* System header to define __stub macros and hopefully few prototypes,
11664     which can conflict with char $ac_func (); below.
11665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666     <limits.h> exists even on freestanding compilers.  */
11667
11668 #ifdef __STDC__
11669 # include <limits.h>
11670 #else
11671 # include <assert.h>
11672 #endif
11673
11674 #undef $ac_func
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char $ac_func ();
11683 /* The GNU C library defines this for functions which it implements
11684     to always fail with ENOSYS.  Some functions are actually named
11685     something starting with __ and the normal name is an alias.  */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 choke me
11688 #endif
11689
11690 int
11691 main ()
11692 {
11693 return $ac_func ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_link") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } && {
11712          test -z "$ac_c_werror_flag" ||
11713          test ! -s conftest.err
11714        } && test -s conftest$ac_exeext &&
11715        $as_test_x conftest$ac_exeext; then
11716   eval "$as_ac_var=yes"
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721         eval "$as_ac_var=no"
11722 fi
11723
11724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11725       conftest$ac_exeext conftest.$ac_ext
11726 fi
11727 ac_res=`eval echo '${'$as_ac_var'}'`
11728                { echo "$as_me:$LINENO: result: $ac_res" >&5
11729 echo "${ECHO_T}$ac_res" >&6; }
11730 if test `eval echo '${'$as_ac_var'}'` = yes; then
11731   cat >>confdefs.h <<_ACEOF
11732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11733 _ACEOF
11734
11735 fi
11736 done
11737
11738
11739
11740   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11741 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11742 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751 #include <stdio.h>
11752 int
11753 main ()
11754 {
11755
11756 #ifndef _snprintf
11757   char *p = (char *) _snprintf;
11758 #endif
11759
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (ac_try="$ac_compile"
11766 case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_compile") 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } && {
11778          test -z "$ac_c_werror_flag" ||
11779          test ! -s conftest.err
11780        } && test -s conftest.$ac_objext; then
11781   ac_cv_have_decl__snprintf=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786         ac_cv_have_decl__snprintf=no
11787 fi
11788
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 fi
11791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11792 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11793   if test $ac_cv_have_decl__snprintf = yes; then
11794     gt_value=1
11795   else
11796     gt_value=0
11797   fi
11798
11799 cat >>confdefs.h <<_ACEOF
11800 #define HAVE_DECL__SNPRINTF $gt_value
11801 _ACEOF
11802
11803
11804
11805   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11806 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11807 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 #include <stdio.h>
11817 int
11818 main ()
11819 {
11820
11821 #ifndef _snwprintf
11822   char *p = (char *) _snwprintf;
11823 #endif
11824
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (ac_try="$ac_compile"
11831 case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_compile") 2>conftest.er1
11837   ac_status=$?
11838   grep -v '^ *+' conftest.er1 >conftest.err
11839   rm -f conftest.er1
11840   cat conftest.err >&5
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } && {
11843          test -z "$ac_c_werror_flag" ||
11844          test ! -s conftest.err
11845        } && test -s conftest.$ac_objext; then
11846   ac_cv_have_decl__snwprintf=yes
11847 else
11848   echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851         ac_cv_have_decl__snwprintf=no
11852 fi
11853
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 fi
11856 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11857 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11858   if test $ac_cv_have_decl__snwprintf = yes; then
11859     gt_value=1
11860   else
11861     gt_value=0
11862   fi
11863
11864 cat >>confdefs.h <<_ACEOF
11865 #define HAVE_DECL__SNWPRINTF $gt_value
11866 _ACEOF
11867
11868
11869
11870
11871   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11872 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11873 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882 #include <stdio.h>
11883 int
11884 main ()
11885 {
11886
11887 #ifndef feof_unlocked
11888   char *p = (char *) feof_unlocked;
11889 #endif
11890
11891   ;
11892   return 0;
11893 }
11894 _ACEOF
11895 rm -f conftest.$ac_objext
11896 if { (ac_try="$ac_compile"
11897 case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_compile") 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } && {
11909          test -z "$ac_c_werror_flag" ||
11910          test ! -s conftest.err
11911        } && test -s conftest.$ac_objext; then
11912   ac_cv_have_decl_feof_unlocked=yes
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917         ac_cv_have_decl_feof_unlocked=no
11918 fi
11919
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 fi
11922 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11923 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11924   if test $ac_cv_have_decl_feof_unlocked = yes; then
11925     gt_value=1
11926   else
11927     gt_value=0
11928   fi
11929
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11932 _ACEOF
11933
11934
11935
11936   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11937 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11938 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 #include <stdio.h>
11948 int
11949 main ()
11950 {
11951
11952 #ifndef fgets_unlocked
11953   char *p = (char *) fgets_unlocked;
11954 #endif
11955
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext
11961 if { (ac_try="$ac_compile"
11962 case "(($ac_try" in
11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964   *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967   (eval "$ac_compile") 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } && {
11974          test -z "$ac_c_werror_flag" ||
11975          test ! -s conftest.err
11976        } && test -s conftest.$ac_objext; then
11977   ac_cv_have_decl_fgets_unlocked=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982         ac_cv_have_decl_fgets_unlocked=no
11983 fi
11984
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 fi
11987 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11988 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11989   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11990     gt_value=1
11991   else
11992     gt_value=0
11993   fi
11994
11995 cat >>confdefs.h <<_ACEOF
11996 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11997 _ACEOF
11998
11999
12000
12001   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12002 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12003 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006   cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012 #include <stdio.h>
12013 int
12014 main ()
12015 {
12016
12017 #ifndef getc_unlocked
12018   char *p = (char *) getc_unlocked;
12019 #endif
12020
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext
12026 if { (ac_try="$ac_compile"
12027 case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_compile") 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
12036   cat conftest.err >&5
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } && {
12039          test -z "$ac_c_werror_flag" ||
12040          test ! -s conftest.err
12041        } && test -s conftest.$ac_objext; then
12042   ac_cv_have_decl_getc_unlocked=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047         ac_cv_have_decl_getc_unlocked=no
12048 fi
12049
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 fi
12052 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12053 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12054   if test $ac_cv_have_decl_getc_unlocked = yes; then
12055     gt_value=1
12056   else
12057     gt_value=0
12058   fi
12059
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12062 _ACEOF
12063
12064
12065
12066   case $gt_cv_func_printf_posix in
12067     *yes) HAVE_POSIX_PRINTF=1 ;;
12068     *) HAVE_POSIX_PRINTF=0 ;;
12069   esac
12070
12071   if test "$ac_cv_func_asprintf" = yes; then
12072     HAVE_ASPRINTF=1
12073   else
12074     HAVE_ASPRINTF=0
12075   fi
12076
12077   if test "$ac_cv_func_snprintf" = yes; then
12078     HAVE_SNPRINTF=1
12079   else
12080     HAVE_SNPRINTF=0
12081   fi
12082
12083   if test "$ac_cv_func_wprintf" = yes; then
12084     HAVE_WPRINTF=1
12085   else
12086     HAVE_WPRINTF=0
12087   fi
12088
12089
12090
12091
12092
12093
12094
12095           am_save_CPPFLAGS="$CPPFLAGS"
12096
12097   for element in $INCICONV; do
12098     haveit=
12099     for x in $CPPFLAGS; do
12100
12101   acl_save_prefix="$prefix"
12102   prefix="$acl_final_prefix"
12103   acl_save_exec_prefix="$exec_prefix"
12104   exec_prefix="$acl_final_exec_prefix"
12105   eval x=\"$x\"
12106   exec_prefix="$acl_save_exec_prefix"
12107   prefix="$acl_save_prefix"
12108
12109       if test "X$x" = "X$element"; then
12110         haveit=yes
12111         break
12112       fi
12113     done
12114     if test -z "$haveit"; then
12115       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12116     fi
12117   done
12118
12119
12120   { echo "$as_me:$LINENO: checking for iconv" >&5
12121 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12122 if test "${am_cv_func_iconv+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125
12126     am_cv_func_iconv="no, consider installing GNU libiconv"
12127     am_cv_lib_iconv=no
12128     cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 #include <stdlib.h>
12135 #include <iconv.h>
12136 int
12137 main ()
12138 {
12139 iconv_t cd = iconv_open("","");
12140        iconv(cd,NULL,NULL,NULL,NULL);
12141        iconv_close(cd);
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (ac_try="$ac_link"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_link") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } && {
12160          test -z "$ac_c_werror_flag" ||
12161          test ! -s conftest.err
12162        } && test -s conftest$ac_exeext &&
12163        $as_test_x conftest$ac_exeext; then
12164   am_cv_func_iconv=yes
12165 else
12166   echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169
12170 fi
12171
12172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12173       conftest$ac_exeext conftest.$ac_ext
12174     if test "$am_cv_func_iconv" != yes; then
12175       am_save_LIBS="$LIBS"
12176       LIBS="$LIBS $LIBICONV"
12177       cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183 #include <stdlib.h>
12184 #include <iconv.h>
12185 int
12186 main ()
12187 {
12188 iconv_t cd = iconv_open("","");
12189          iconv(cd,NULL,NULL,NULL,NULL);
12190          iconv_close(cd);
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_link") 2>conftest.er1
12203   ac_status=$?
12204   grep -v '^ *+' conftest.er1 >conftest.err
12205   rm -f conftest.er1
12206   cat conftest.err >&5
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); } && {
12209          test -z "$ac_c_werror_flag" ||
12210          test ! -s conftest.err
12211        } && test -s conftest$ac_exeext &&
12212        $as_test_x conftest$ac_exeext; then
12213   am_cv_lib_iconv=yes
12214         am_cv_func_iconv=yes
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219
12220 fi
12221
12222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12223       conftest$ac_exeext conftest.$ac_ext
12224       LIBS="$am_save_LIBS"
12225     fi
12226
12227 fi
12228 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12229 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12230   if test "$am_cv_func_iconv" = yes; then
12231
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_ICONV 1
12234 _ACEOF
12235
12236   fi
12237   if test "$am_cv_lib_iconv" = yes; then
12238     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12239 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12240     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12241 echo "${ECHO_T}$LIBICONV" >&6; }
12242   else
12243             CPPFLAGS="$am_save_CPPFLAGS"
12244     LIBICONV=
12245     LTLIBICONV=
12246   fi
12247
12248
12249
12250   if test "$am_cv_func_iconv" = yes; then
12251     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12252 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12253     if test "${am_cv_proto_iconv+set}" = set; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256
12257       cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263
12264 #include <stdlib.h>
12265 #include <iconv.h>
12266 extern
12267 #ifdef __cplusplus
12268 "C"
12269 #endif
12270 #if defined(__STDC__) || defined(__cplusplus)
12271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12272 #else
12273 size_t iconv();
12274 #endif
12275
12276 int
12277 main ()
12278 {
12279
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 rm -f conftest.$ac_objext
12285 if { (ac_try="$ac_compile"
12286 case "(($ac_try" in
12287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288   *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291   (eval "$ac_compile") 2>conftest.er1
12292   ac_status=$?
12293   grep -v '^ *+' conftest.er1 >conftest.err
12294   rm -f conftest.er1
12295   cat conftest.err >&5
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } && {
12298          test -z "$ac_c_werror_flag" ||
12299          test ! -s conftest.err
12300        } && test -s conftest.$ac_objext; then
12301   am_cv_proto_iconv_arg1=""
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306         am_cv_proto_iconv_arg1="const"
12307 fi
12308
12309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310       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);"
12311 fi
12312
12313     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12314     { echo "$as_me:$LINENO: result: ${ac_t:-
12315          }$am_cv_proto_iconv" >&5
12316 echo "${ECHO_T}${ac_t:-
12317          }$am_cv_proto_iconv" >&6; }
12318
12319 cat >>confdefs.h <<_ACEOF
12320 #define ICONV_CONST $am_cv_proto_iconv_arg1
12321 _ACEOF
12322
12323   fi
12324
12325
12326   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12327 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12328 if test "${am_cv_langinfo_codeset+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337 #include <langinfo.h>
12338 int
12339 main ()
12340 {
12341 char* cs = nl_langinfo(CODESET);
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (ac_try="$ac_link"
12348 case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353   (eval "$ac_link") 2>conftest.er1
12354   ac_status=$?
12355   grep -v '^ *+' conftest.er1 >conftest.err
12356   rm -f conftest.er1
12357   cat conftest.err >&5
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } && {
12360          test -z "$ac_c_werror_flag" ||
12361          test ! -s conftest.err
12362        } && test -s conftest$ac_exeext &&
12363        $as_test_x conftest$ac_exeext; then
12364   am_cv_langinfo_codeset=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369         am_cv_langinfo_codeset=no
12370 fi
12371
12372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12373       conftest$ac_exeext conftest.$ac_ext
12374
12375 fi
12376 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12377 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12378   if test $am_cv_langinfo_codeset = yes; then
12379
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_LANGINFO_CODESET 1
12382 _ACEOF
12383
12384   fi
12385
12386   if test $ac_cv_header_locale_h = yes; then
12387
12388   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12389 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12390 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399 #include <locale.h>
12400 int
12401 main ()
12402 {
12403 return LC_MESSAGES
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (ac_try="$ac_link"
12410 case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_link") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } && {
12422          test -z "$ac_c_werror_flag" ||
12423          test ! -s conftest.err
12424        } && test -s conftest$ac_exeext &&
12425        $as_test_x conftest$ac_exeext; then
12426   gt_cv_val_LC_MESSAGES=yes
12427 else
12428   echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431         gt_cv_val_LC_MESSAGES=no
12432 fi
12433
12434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12435       conftest$ac_exeext conftest.$ac_ext
12436 fi
12437 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12438 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12439   if test $gt_cv_val_LC_MESSAGES = yes; then
12440
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_LC_MESSAGES 1
12443 _ACEOF
12444
12445   fi
12446
12447   fi
12448
12449   if test -n "$INTL_MACOSX_LIBS"; then
12450     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12451   fi
12452
12453                       for ac_prog in bison
12454 do
12455   # Extract the first word of "$ac_prog", so it can be a program name with args.
12456 set dummy $ac_prog; ac_word=$2
12457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12459 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12460   echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462   if test -n "$INTLBISON"; then
12463   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12464 else
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12467 do
12468   IFS=$as_save_IFS
12469   test -z "$as_dir" && as_dir=.
12470   for ac_exec_ext in '' $ac_executable_extensions; do
12471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472     ac_cv_prog_INTLBISON="$ac_prog"
12473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12474     break 2
12475   fi
12476 done
12477 done
12478 IFS=$as_save_IFS
12479
12480 fi
12481 fi
12482 INTLBISON=$ac_cv_prog_INTLBISON
12483 if test -n "$INTLBISON"; then
12484   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12485 echo "${ECHO_T}$INTLBISON" >&6; }
12486 else
12487   { echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6; }
12489 fi
12490
12491
12492   test -n "$INTLBISON" && break
12493 done
12494
12495   if test -z "$INTLBISON"; then
12496     ac_verc_fail=yes
12497   else
12498         { echo "$as_me:$LINENO: checking version of bison" >&5
12499 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12500     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12501     case $ac_prog_version in
12502       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12503       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12504          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12505       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12506     esac
12507     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12508 echo "${ECHO_T}$ac_prog_version" >&6; }
12509   fi
12510   if test $ac_verc_fail = yes; then
12511     INTLBISON=:
12512   fi
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12530 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12531 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12532   echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534   gt_save_CPPFLAGS="$CPPFLAGS"
12535      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12536      gt_save_LIBS="$LIBS"
12537      LIBS="$LIBS -framework CoreFoundation"
12538      cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h.  */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h.  */
12544 #include <CFPreferences.h>
12545 int
12546 main ()
12547 {
12548 CFPreferencesCopyAppValue(NULL, NULL)
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_link") 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } && {
12567          test -z "$ac_c_werror_flag" ||
12568          test ! -s conftest.err
12569        } && test -s conftest$ac_exeext &&
12570        $as_test_x conftest$ac_exeext; then
12571   gt_cv_func_CFPreferencesCopyAppValue=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576         gt_cv_func_CFPreferencesCopyAppValue=no
12577 fi
12578
12579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12580       conftest$ac_exeext conftest.$ac_ext
12581      CPPFLAGS="$gt_save_CPPFLAGS"
12582      LIBS="$gt_save_LIBS"
12583 fi
12584 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12585 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12586   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12587
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12590 _ACEOF
12591
12592   fi
12593     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12594 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12595 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12596   echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598   gt_save_CPPFLAGS="$CPPFLAGS"
12599      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12600      gt_save_LIBS="$LIBS"
12601      LIBS="$LIBS -framework CoreFoundation"
12602      cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 #include <CFLocale.h>
12609 int
12610 main ()
12611 {
12612 CFLocaleCopyCurrent();
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624   (eval "$ac_link") 2>conftest.er1
12625   ac_status=$?
12626   grep -v '^ *+' conftest.er1 >conftest.err
12627   rm -f conftest.er1
12628   cat conftest.err >&5
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } && {
12631          test -z "$ac_c_werror_flag" ||
12632          test ! -s conftest.err
12633        } && test -s conftest$ac_exeext &&
12634        $as_test_x conftest$ac_exeext; then
12635   gt_cv_func_CFLocaleCopyCurrent=yes
12636 else
12637   echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640         gt_cv_func_CFLocaleCopyCurrent=no
12641 fi
12642
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644       conftest$ac_exeext conftest.$ac_ext
12645      CPPFLAGS="$gt_save_CPPFLAGS"
12646      LIBS="$gt_save_LIBS"
12647 fi
12648 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12649 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12650   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12651
12652 cat >>confdefs.h <<\_ACEOF
12653 #define HAVE_CFLOCALECOPYCURRENT 1
12654 _ACEOF
12655
12656   fi
12657   INTL_MACOSX_LIBS=
12658   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12659     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12660   fi
12661
12662
12663
12664
12665   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12666 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12667     # Check whether --enable-nls was given.
12668 if test "${enable_nls+set}" = set; then
12669   enableval=$enable_nls; USE_NLS=$enableval
12670 else
12671   USE_NLS=yes
12672 fi
12673
12674   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12675 echo "${ECHO_T}$USE_NLS" >&6; }
12676
12677
12678
12679
12680     BUILD_INCLUDED_LIBINTL=no
12681     USE_INCLUDED_LIBINTL=no
12682
12683   LIBINTL=
12684   LTLIBINTL=
12685   POSUB=
12686
12687     if test "$USE_NLS" = "yes"; then
12688     gt_use_preinstalled_gnugettext=no
12689
12690       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12691 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12692
12693 # Check whether --with-included-gettext was given.
12694 if test "${with_included_gettext+set}" = set; then
12695   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12696 else
12697   nls_cv_force_use_gnu_gettext=no
12698 fi
12699
12700       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12701 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12702
12703       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12704       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12705
12706
12707
12708
12709
12710
12711         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12712 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12713 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12714   echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716   cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h.  */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h.  */
12722 #include <libintl.h>
12723 extern int _nl_msg_cat_cntr;
12724 extern int *_nl_domain_bindings;
12725 int
12726 main ()
12727 {
12728 bindtextdomain ("", "");
12729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_link") 2>conftest.er1
12742   ac_status=$?
12743   grep -v '^ *+' conftest.er1 >conftest.err
12744   rm -f conftest.er1
12745   cat conftest.err >&5
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } && {
12748          test -z "$ac_c_werror_flag" ||
12749          test ! -s conftest.err
12750        } && test -s conftest$ac_exeext &&
12751        $as_test_x conftest$ac_exeext; then
12752   gt_cv_func_gnugettext1_libc=yes
12753 else
12754   echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757         gt_cv_func_gnugettext1_libc=no
12758 fi
12759
12760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12761       conftest$ac_exeext conftest.$ac_ext
12762 fi
12763 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12764 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12765
12766         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12767
12768
12769
12770     use_additional=yes
12771
12772   acl_save_prefix="$prefix"
12773   prefix="$acl_final_prefix"
12774   acl_save_exec_prefix="$exec_prefix"
12775   exec_prefix="$acl_final_exec_prefix"
12776
12777     eval additional_includedir=\"$includedir\"
12778     eval additional_libdir=\"$libdir\"
12779
12780   exec_prefix="$acl_save_exec_prefix"
12781   prefix="$acl_save_prefix"
12782
12783
12784 # Check whether --with-libintl-prefix was given.
12785 if test "${with_libintl_prefix+set}" = set; then
12786   withval=$with_libintl_prefix;
12787     if test "X$withval" = "Xno"; then
12788       use_additional=no
12789     else
12790       if test "X$withval" = "X"; then
12791
12792   acl_save_prefix="$prefix"
12793   prefix="$acl_final_prefix"
12794   acl_save_exec_prefix="$exec_prefix"
12795   exec_prefix="$acl_final_exec_prefix"
12796
12797           eval additional_includedir=\"$includedir\"
12798           eval additional_libdir=\"$libdir\"
12799
12800   exec_prefix="$acl_save_exec_prefix"
12801   prefix="$acl_save_prefix"
12802
12803       else
12804         additional_includedir="$withval/include"
12805         additional_libdir="$withval/lib"
12806       fi
12807     fi
12808
12809 fi
12810
12811       LIBINTL=
12812   LTLIBINTL=
12813   INCINTL=
12814   rpathdirs=
12815   ltrpathdirs=
12816   names_already_handled=
12817   names_next_round='intl '
12818   while test -n "$names_next_round"; do
12819     names_this_round="$names_next_round"
12820     names_next_round=
12821     for name in $names_this_round; do
12822       already_handled=
12823       for n in $names_already_handled; do
12824         if test "$n" = "$name"; then
12825           already_handled=yes
12826           break
12827         fi
12828       done
12829       if test -z "$already_handled"; then
12830         names_already_handled="$names_already_handled $name"
12831                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12832         eval value=\"\$HAVE_LIB$uppername\"
12833         if test -n "$value"; then
12834           if test "$value" = yes; then
12835             eval value=\"\$LIB$uppername\"
12836             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12837             eval value=\"\$LTLIB$uppername\"
12838             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12839           else
12840                                     :
12841           fi
12842         else
12843                               found_dir=
12844           found_la=
12845           found_so=
12846           found_a=
12847           if test $use_additional = yes; then
12848             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12849               found_dir="$additional_libdir"
12850               found_so="$additional_libdir/lib$name.$shlibext"
12851               if test -f "$additional_libdir/lib$name.la"; then
12852                 found_la="$additional_libdir/lib$name.la"
12853               fi
12854             else
12855               if test -f "$additional_libdir/lib$name.$libext"; then
12856                 found_dir="$additional_libdir"
12857                 found_a="$additional_libdir/lib$name.$libext"
12858                 if test -f "$additional_libdir/lib$name.la"; then
12859                   found_la="$additional_libdir/lib$name.la"
12860                 fi
12861               fi
12862             fi
12863           fi
12864           if test "X$found_dir" = "X"; then
12865             for x in $LDFLAGS $LTLIBINTL; do
12866
12867   acl_save_prefix="$prefix"
12868   prefix="$acl_final_prefix"
12869   acl_save_exec_prefix="$exec_prefix"
12870   exec_prefix="$acl_final_exec_prefix"
12871   eval x=\"$x\"
12872   exec_prefix="$acl_save_exec_prefix"
12873   prefix="$acl_save_prefix"
12874
12875               case "$x" in
12876                 -L*)
12877                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12878                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12879                     found_dir="$dir"
12880                     found_so="$dir/lib$name.$shlibext"
12881                     if test -f "$dir/lib$name.la"; then
12882                       found_la="$dir/lib$name.la"
12883                     fi
12884                   else
12885                     if test -f "$dir/lib$name.$libext"; then
12886                       found_dir="$dir"
12887                       found_a="$dir/lib$name.$libext"
12888                       if test -f "$dir/lib$name.la"; then
12889                         found_la="$dir/lib$name.la"
12890                       fi
12891                     fi
12892                   fi
12893                   ;;
12894               esac
12895               if test "X$found_dir" != "X"; then
12896                 break
12897               fi
12898             done
12899           fi
12900           if test "X$found_dir" != "X"; then
12901                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12902             if test "X$found_so" != "X"; then
12903                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12904                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12905               else
12906                                                                                 haveit=
12907                 for x in $ltrpathdirs; do
12908                   if test "X$x" = "X$found_dir"; then
12909                     haveit=yes
12910                     break
12911                   fi
12912                 done
12913                 if test -z "$haveit"; then
12914                   ltrpathdirs="$ltrpathdirs $found_dir"
12915                 fi
12916                                 if test "$hardcode_direct" = yes; then
12917                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12918                 else
12919                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12920                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12921                                                             haveit=
12922                     for x in $rpathdirs; do
12923                       if test "X$x" = "X$found_dir"; then
12924                         haveit=yes
12925                         break
12926                       fi
12927                     done
12928                     if test -z "$haveit"; then
12929                       rpathdirs="$rpathdirs $found_dir"
12930                     fi
12931                   else
12932                                                                                 haveit=
12933                     for x in $LDFLAGS $LIBINTL; do
12934
12935   acl_save_prefix="$prefix"
12936   prefix="$acl_final_prefix"
12937   acl_save_exec_prefix="$exec_prefix"
12938   exec_prefix="$acl_final_exec_prefix"
12939   eval x=\"$x\"
12940   exec_prefix="$acl_save_exec_prefix"
12941   prefix="$acl_save_prefix"
12942
12943                       if test "X$x" = "X-L$found_dir"; then
12944                         haveit=yes
12945                         break
12946                       fi
12947                     done
12948                     if test -z "$haveit"; then
12949                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12950                     fi
12951                     if test "$hardcode_minus_L" != no; then
12952                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12953                     else
12954                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12955                     fi
12956                   fi
12957                 fi
12958               fi
12959             else
12960               if test "X$found_a" != "X"; then
12961                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12962               else
12963                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12964               fi
12965             fi
12966                         additional_includedir=
12967             case "$found_dir" in
12968               */lib | */lib/)
12969                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12970                 additional_includedir="$basedir/include"
12971                 ;;
12972             esac
12973             if test "X$additional_includedir" != "X"; then
12974                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12975                 haveit=
12976                 if test "X$additional_includedir" = "X/usr/local/include"; then
12977                   if test -n "$GCC"; then
12978                     case $host_os in
12979                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12980                     esac
12981                   fi
12982                 fi
12983                 if test -z "$haveit"; then
12984                   for x in $CPPFLAGS $INCINTL; do
12985
12986   acl_save_prefix="$prefix"
12987   prefix="$acl_final_prefix"
12988   acl_save_exec_prefix="$exec_prefix"
12989   exec_prefix="$acl_final_exec_prefix"
12990   eval x=\"$x\"
12991   exec_prefix="$acl_save_exec_prefix"
12992   prefix="$acl_save_prefix"
12993
12994                     if test "X$x" = "X-I$additional_includedir"; then
12995                       haveit=yes
12996                       break
12997                     fi
12998                   done
12999                   if test -z "$haveit"; then
13000                     if test -d "$additional_includedir"; then
13001                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13002                     fi
13003                   fi
13004                 fi
13005               fi
13006             fi
13007                         if test -n "$found_la"; then
13008                                                         save_libdir="$libdir"
13009               case "$found_la" in
13010                 */* | *\\*) . "$found_la" ;;
13011                 *) . "./$found_la" ;;
13012               esac
13013               libdir="$save_libdir"
13014                             for dep in $dependency_libs; do
13015                 case "$dep" in
13016                   -L*)
13017                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13018                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13019                       haveit=
13020                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13021                         if test -n "$GCC"; then
13022                           case $host_os in
13023                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13024                           esac
13025                         fi
13026                       fi
13027                       if test -z "$haveit"; then
13028                         haveit=
13029                         for x in $LDFLAGS $LIBINTL; do
13030
13031   acl_save_prefix="$prefix"
13032   prefix="$acl_final_prefix"
13033   acl_save_exec_prefix="$exec_prefix"
13034   exec_prefix="$acl_final_exec_prefix"
13035   eval x=\"$x\"
13036   exec_prefix="$acl_save_exec_prefix"
13037   prefix="$acl_save_prefix"
13038
13039                           if test "X$x" = "X-L$additional_libdir"; then
13040                             haveit=yes
13041                             break
13042                           fi
13043                         done
13044                         if test -z "$haveit"; then
13045                           if test -d "$additional_libdir"; then
13046                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13047                           fi
13048                         fi
13049                         haveit=
13050                         for x in $LDFLAGS $LTLIBINTL; do
13051
13052   acl_save_prefix="$prefix"
13053   prefix="$acl_final_prefix"
13054   acl_save_exec_prefix="$exec_prefix"
13055   exec_prefix="$acl_final_exec_prefix"
13056   eval x=\"$x\"
13057   exec_prefix="$acl_save_exec_prefix"
13058   prefix="$acl_save_prefix"
13059
13060                           if test "X$x" = "X-L$additional_libdir"; then
13061                             haveit=yes
13062                             break
13063                           fi
13064                         done
13065                         if test -z "$haveit"; then
13066                           if test -d "$additional_libdir"; then
13067                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13068                           fi
13069                         fi
13070                       fi
13071                     fi
13072                     ;;
13073                   -R*)
13074                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13075                     if test "$enable_rpath" != no; then
13076                                                                   haveit=
13077                       for x in $rpathdirs; do
13078                         if test "X$x" = "X$dir"; then
13079                           haveit=yes
13080                           break
13081                         fi
13082                       done
13083                       if test -z "$haveit"; then
13084                         rpathdirs="$rpathdirs $dir"
13085                       fi
13086                                                                   haveit=
13087                       for x in $ltrpathdirs; do
13088                         if test "X$x" = "X$dir"; then
13089                           haveit=yes
13090                           break
13091                         fi
13092                       done
13093                       if test -z "$haveit"; then
13094                         ltrpathdirs="$ltrpathdirs $dir"
13095                       fi
13096                     fi
13097                     ;;
13098                   -l*)
13099                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13100                     ;;
13101                   *.la)
13102                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13103                     ;;
13104                   *)
13105                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13106                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13107                     ;;
13108                 esac
13109               done
13110             fi
13111           else
13112                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13113             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13114           fi
13115         fi
13116       fi
13117     done
13118   done
13119   if test "X$rpathdirs" != "X"; then
13120     if test -n "$hardcode_libdir_separator"; then
13121                         alldirs=
13122       for found_dir in $rpathdirs; do
13123         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13124       done
13125             acl_save_libdir="$libdir"
13126       libdir="$alldirs"
13127       eval flag=\"$hardcode_libdir_flag_spec\"
13128       libdir="$acl_save_libdir"
13129       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13130     else
13131             for found_dir in $rpathdirs; do
13132         acl_save_libdir="$libdir"
13133         libdir="$found_dir"
13134         eval flag=\"$hardcode_libdir_flag_spec\"
13135         libdir="$acl_save_libdir"
13136         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13137       done
13138     fi
13139   fi
13140   if test "X$ltrpathdirs" != "X"; then
13141             for found_dir in $ltrpathdirs; do
13142       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13143     done
13144   fi
13145
13146           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13147 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13148 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   gt_save_CPPFLAGS="$CPPFLAGS"
13152             CPPFLAGS="$CPPFLAGS $INCINTL"
13153             gt_save_LIBS="$LIBS"
13154             LIBS="$LIBS $LIBINTL"
13155                         cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h.  */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h.  */
13161 #include <libintl.h>
13162 extern int _nl_msg_cat_cntr;
13163 extern
13164 #ifdef __cplusplus
13165 "C"
13166 #endif
13167 const char *_nl_expand_alias (const char *);
13168 int
13169 main ()
13170 {
13171 bindtextdomain ("", "");
13172 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_link") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } && {
13191          test -z "$ac_c_werror_flag" ||
13192          test ! -s conftest.err
13193        } && test -s conftest$ac_exeext &&
13194        $as_test_x conftest$ac_exeext; then
13195   gt_cv_func_gnugettext1_libintl=yes
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200         gt_cv_func_gnugettext1_libintl=no
13201 fi
13202
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204       conftest$ac_exeext conftest.$ac_ext
13205                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13206               LIBS="$LIBS $LIBICONV"
13207               cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213 #include <libintl.h>
13214 extern int _nl_msg_cat_cntr;
13215 extern
13216 #ifdef __cplusplus
13217 "C"
13218 #endif
13219 const char *_nl_expand_alias (const char *);
13220 int
13221 main ()
13222 {
13223 bindtextdomain ("", "");
13224 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (ac_try="$ac_link"
13231 case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236   (eval "$ac_link") 2>conftest.er1
13237   ac_status=$?
13238   grep -v '^ *+' conftest.er1 >conftest.err
13239   rm -f conftest.er1
13240   cat conftest.err >&5
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } && {
13243          test -z "$ac_c_werror_flag" ||
13244          test ! -s conftest.err
13245        } && test -s conftest$ac_exeext &&
13246        $as_test_x conftest$ac_exeext; then
13247   LIBINTL="$LIBINTL $LIBICONV"
13248                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13249                 gt_cv_func_gnugettext1_libintl=yes
13250
13251 else
13252   echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255
13256 fi
13257
13258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13259       conftest$ac_exeext conftest.$ac_ext
13260             fi
13261             CPPFLAGS="$gt_save_CPPFLAGS"
13262             LIBS="$gt_save_LIBS"
13263 fi
13264 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13265 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13266         fi
13267
13268                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13269            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13270                 && test "$PACKAGE" != gettext-runtime \
13271                 && test "$PACKAGE" != gettext-tools; }; then
13272           gt_use_preinstalled_gnugettext=yes
13273         else
13274                     LIBINTL=
13275           LTLIBINTL=
13276           INCINTL=
13277         fi
13278
13279
13280         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13281                               nls_cv_use_gnu_gettext=yes
13282         fi
13283       fi
13284
13285       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13286                 BUILD_INCLUDED_LIBINTL=yes
13287         USE_INCLUDED_LIBINTL=yes
13288         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13289         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13290         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13291       fi
13292
13293       CATOBJEXT=
13294       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13295          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13296                 CATOBJEXT=.gmo
13297       fi
13298
13299
13300     if test -n "$INTL_MACOSX_LIBS"; then
13301       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13302          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13303                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13304         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13305       fi
13306     fi
13307
13308     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13309        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13310
13311 cat >>confdefs.h <<\_ACEOF
13312 #define ENABLE_NLS 1
13313 _ACEOF
13314
13315     else
13316       USE_NLS=no
13317     fi
13318   fi
13319
13320   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13321 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13322   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13323 echo "${ECHO_T}$USE_NLS" >&6; }
13324   if test "$USE_NLS" = "yes"; then
13325     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13326 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13327     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13328       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13329         gt_source="external libintl"
13330       else
13331         gt_source="libc"
13332       fi
13333     else
13334       gt_source="included intl directory"
13335     fi
13336     { echo "$as_me:$LINENO: result: $gt_source" >&5
13337 echo "${ECHO_T}$gt_source" >&6; }
13338   fi
13339
13340   if test "$USE_NLS" = "yes"; then
13341
13342     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13343       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13344         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13345 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13346         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13347 echo "${ECHO_T}$LIBINTL" >&6; }
13348
13349   for element in $INCINTL; do
13350     haveit=
13351     for x in $CPPFLAGS; do
13352
13353   acl_save_prefix="$prefix"
13354   prefix="$acl_final_prefix"
13355   acl_save_exec_prefix="$exec_prefix"
13356   exec_prefix="$acl_final_exec_prefix"
13357   eval x=\"$x\"
13358   exec_prefix="$acl_save_exec_prefix"
13359   prefix="$acl_save_prefix"
13360
13361       if test "X$x" = "X$element"; then
13362         haveit=yes
13363         break
13364       fi
13365     done
13366     if test -z "$haveit"; then
13367       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13368     fi
13369   done
13370
13371       fi
13372
13373
13374 cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_GETTEXT 1
13376 _ACEOF
13377
13378
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_DCGETTEXT 1
13381 _ACEOF
13382
13383     fi
13384
13385         POSUB=po
13386   fi
13387
13388
13389             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13390       BUILD_INCLUDED_LIBINTL=yes
13391     fi
13392
13393
13394
13395
13396
13397         nls_cv_header_intl=
13398     nls_cv_header_libgt=
13399
13400         DATADIRNAME=share
13401
13402
13403         INSTOBJEXT=.mo
13404
13405
13406         GENCAT=gencat
13407
13408
13409         INTLOBJS=
13410     if test "$USE_INCLUDED_LIBINTL" = yes; then
13411       INTLOBJS="\$(GETTOBJS)"
13412     fi
13413
13414
13415         INTL_LIBTOOL_SUFFIX_PREFIX=
13416
13417
13418
13419     INTLLIBS="$LIBINTL"
13420
13421
13422
13423
13424
13425
13426 fi
13427
13428
13429 support_mysql=no
13430 support_sqlite=no
13431 support_sqlite3=no
13432 support_postgresql=no
13433 support_dbi=no
13434 support_smartalloc=yes
13435 support_readline=yes
13436 support_conio=yes
13437 support_gnome=no
13438 support_bat=no
13439 support_wx_console=no
13440 support_tls=no
13441 support_crypto=no
13442 gnome_version=
13443 wx_version=
13444 support_static_tools=no
13445 support_static_fd=no
13446 support_static_sd=no
13447 support_static_dir=no
13448 support_static_cons=no
13449 support_python=no
13450 build_client_only=no
13451 build_dird=yes
13452 build_stored=yes
13453 cats=
13454 db_type=Internal
13455 DB_TYPE=bdb
13456
13457
13458 # -------------------------------------------
13459 # gnome (default off)
13460 # -------------------------------------------
13461 # Check whether --enable-gnome was given.
13462 if test "${enable_gnome+set}" = set; then
13463   enableval=$enable_gnome; if test x$enableval = xyes; then
13464     support_gnome=yes
13465   fi
13466 fi
13467
13468
13469 GNOME_DIR=
13470 if test x$support_gnome = xyes; then
13471   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13472   pkg=$?
13473   if test $pkg = 0; then
13474      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13475      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13476      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13477      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13478
13479
13480
13481
13482      GNOME_DIR=src/gnome2-console
13483      gnome_version="Version 2.x"
13484   else
13485      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13486 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13487    { (exit 1); exit 1; }; }
13488   fi
13489 fi
13490
13491
13492 # -------------------------------------------
13493 # bat (default off)
13494 # -------------------------------------------
13495 # Check whether --enable-bat was given.
13496 if test "${enable_bat+set}" = set; then
13497   enableval=$enable_bat; if test x$enableval = xyes; then
13498
13499 cat >>confdefs.h <<\_ACEOF
13500 #define HAVE_BAT 1
13501 _ACEOF
13502
13503     support_bat=yes
13504   fi
13505 fi
13506
13507
13508 BAT_DIR=
13509 if test x$support_bat = xyes; then
13510   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13511   pkg=$?
13512   if test $pkg = 0; then
13513      BAT_DIR=src/qt-console
13514   else
13515      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13516 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13517    { (exit 1); exit 1; }; }
13518   fi
13519 fi
13520
13521 #
13522 #  If bat is enabled, we need the qwt library
13523 got_qwt=no
13524 QWT_INC=
13525 QWT_LDFLAGS=
13526 if test x$support_bat = xyes; then
13527    { echo "$as_me:$LINENO: checking for qwt support" >&5
13528 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13529
13530 # Check whether --with-qwt was given.
13531 if test "${with_qwt+set}" = set; then
13532   withval=$with_qwt;
13533         case "$with_qwt" in
13534         no)
13535           ;;
13536         yes|*)
13537           if test -f ${with_qwt}/include/qwt.h; then
13538              QWT_INC="${with_qwt}/include"
13539              QWT_LDFLAGS="-L${with_qwt}/lib"
13540           fi
13541           ;;
13542         esac
13543
13544
13545 fi
13546
13547 #
13548 # Search in standard places, or --with-qwt not specified
13549 #
13550    if test x$QWT_INC = x; then
13551       for root in /usr /usr/local; do
13552          for ver in qwt qwt5 qwt-qt4; do
13553             if test -f ${root}/include/${ver}/qwt.h; then
13554                QWT_INC="${root}/include/${ver}"
13555                if test -d ${root}/lib64/; then
13556                   QWT_LDFLAGS="-L${root}/lib64"
13557                else
13558                   QWT_LDFLAGS="-L${root}/lib"
13559                fi
13560                got_qwt=yes
13561                break;
13562             fi
13563          done
13564       done
13565    fi
13566    if test x$QWT_INC = x; then
13567       { echo "$as_me:$LINENO: result: no" >&5
13568 echo "${ECHO_T}no" >&6; }
13569       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13570 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13571    { (exit 1); exit 1; }; }
13572       BAT_DIR=
13573       support_bat=no
13574    else
13575       { echo "$as_me:$LINENO: result: yes" >&5
13576 echo "${ECHO_T}yes" >&6; }
13577    fi
13578 fi
13579
13580
13581
13582
13583
13584
13585 # -------------------------------------------
13586 # bwx-console (default off)
13587 # -------------------------------------------
13588 # Check whether --enable-bwx-console was given.
13589 if test "${enable_bwx_console+set}" = set; then
13590   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13591     support_wx_console=yes
13592   fi
13593 fi
13594
13595
13596 WX_DIR=
13597 if test x$support_wx_console = xyes; then
13598   abc=`$WXCONFIG $WXFLAGS --cppflags`
13599   pkg=$?
13600   if test $pkg = 0; then
13601      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13602      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13603      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13604
13605
13606
13607      WX_DIR=src/wx-console
13608   else
13609      echo " "
13610      echo "wx-config program not found. bwx-console disabled."
13611      echo " "
13612      support_wx_console=no
13613   fi
13614 fi
13615
13616
13617
13618 # -------------------------------------------
13619 # tray-monitor (default off)
13620 # -------------------------------------------
13621 # Check whether --enable-tray-monitor was given.
13622 if test "${enable_tray_monitor+set}" = set; then
13623   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13624     support_tray_monitor=yes
13625   fi
13626 fi
13627
13628
13629 TRAY_MONITOR_DIR=
13630 if test x$support_tray_monitor = xyes; then
13631   abc=`$PKGCONFIG --exists gtk+-2.0`
13632   pkg=$?
13633   if test $pkg = 0; then
13634      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13635      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13636
13637
13638      TRAY_MONITOR_DIR=src/tray-monitor
13639      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13640      pkg=$?
13641      if test $pkg = 0; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_GTK_2_4 1
13645 _ACEOF
13646
13647      fi
13648   fi
13649 fi
13650
13651
13652 # -------------------------------------------
13653 # smartalloc (default off)
13654 # -------------------------------------------
13655 # Check whether --enable-smartalloc was given.
13656 if test "${enable_smartalloc+set}" = set; then
13657   enableval=$enable_smartalloc; if test x$enableval = xno; then
13658     support_smartalloc=no
13659   fi
13660 fi
13661
13662
13663 if test x$support_smartalloc = xyes; then
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define SMARTALLOC 1
13667 _ACEOF
13668
13669 fi
13670
13671 # -------------------------------------------
13672 # static-tools (default off)
13673 # -------------------------------------------
13674 # Check whether --enable-static-tools was given.
13675 if test "${enable_static_tools+set}" = set; then
13676   enableval=$enable_static_tools; if test x$enableval = xyes; then
13677      support_static_tools=yes
13678    fi
13679 fi
13680
13681
13682 TTOOL_LDFLAGS=
13683 if test x$support_static_tools = xyes; then
13684    TTOOL_LDFLAGS="-static"
13685 fi
13686
13687
13688 # -------------------------------------------
13689 # static-fd    (default off)
13690 # -------------------------------------------
13691 # Check whether --enable-static-fd was given.
13692 if test "${enable_static_fd+set}" = set; then
13693   enableval=$enable_static_fd; if test x$enableval = xyes; then
13694      support_static_fd=yes
13695    fi
13696 fi
13697
13698
13699 STATIC_FD=
13700 if test x$support_static_fd = xyes; then
13701    STATIC_FD="static-bacula-fd"
13702 fi
13703
13704
13705 # -------------------------------------------
13706 # static-sd    (default off)
13707 # -------------------------------------------
13708 # Check whether --enable-static-sd was given.
13709 if test "${enable_static_sd+set}" = set; then
13710   enableval=$enable_static_sd; if test x$enableval = xyes; then
13711      support_static_sd=yes
13712    fi
13713 fi
13714
13715
13716 STATIC_SD=
13717 if test x$support_static_sd = xyes; then
13718    STATIC_SD="static-bacula-sd"
13719 fi
13720
13721
13722 # -------------------------------------------
13723 # static-dir   (default off)
13724 # -------------------------------------------
13725 # Check whether --enable-static-dir was given.
13726 if test "${enable_static_dir+set}" = set; then
13727   enableval=$enable_static_dir; if test x$enableval = xyes; then
13728      support_static_dir=yes
13729    fi
13730 fi
13731
13732
13733 STATIC_DIR=
13734 if test x$support_static_dir = xyes; then
13735    STATIC_DIR="static-bacula-dir"
13736 fi
13737
13738
13739 # -------------------------------------------
13740 # static-cons  (default off)
13741 # -------------------------------------------
13742 # Check whether --enable-static-cons was given.
13743 if test "${enable_static_cons+set}" = set; then
13744   enableval=$enable_static_cons; if test x$enableval = xyes; then
13745      support_static_cons=yes
13746    fi
13747 fi
13748
13749
13750 STATIC_CONS=
13751 STATIC_GNOME_CONS=
13752 STATIC_WX_CONS=
13753 if test x$support_static_cons = xyes; then
13754    STATIC_CONS="static-bconsole"
13755    STATIC_GNOME_CONS="static-bgnome-console"
13756    STATIC_WX_CONS="static-bwx-console"
13757 fi
13758
13759
13760
13761
13762 # -------------------------------------------
13763 # client_only  (default off)
13764 # -------------------------------------------
13765 # Check whether --enable-client-only was given.
13766 if test "${enable_client_only+set}" = set; then
13767   enableval=$enable_client_only; if test x$enableval = xyes; then
13768       build_client_only=yes
13769       db_type=None
13770       DB_TYPE=none
13771    fi
13772 fi
13773
13774 if test x$build_client_only = xno; then
13775    ALL_DIRS="subdirs"
13776 else
13777    ALL_DIRS=""
13778 fi
13779
13780
13781 # -------------------------------------------
13782 # director  (default on)
13783 # -------------------------------------------
13784 # Check whether --enable-build-dird was given.
13785 if test "${enable_build_dird+set}" = set; then
13786   enableval=$enable_build_dird; if test x$enableval = xno; then
13787       build_dird=no
13788    fi
13789 fi
13790
13791 if test x$build_dird = xyes; then
13792    DIRD_DIR="src/dird"
13793    DIR_TOOLS="DIRTOOLS"
13794 else
13795    DIRD_DIR=""
13796    DIR_TOOLS="NODIRTOOLS"
13797 fi
13798
13799
13800
13801 # -------------------------------------------
13802 # stored  (default on)
13803 # -------------------------------------------
13804 # Check whether --enable-build-stored was given.
13805 if test "${enable_build_stored+set}" = set; then
13806   enableval=$enable_build_stored; if test x$enableval = xno; then
13807       build_stored=no
13808    fi
13809 fi
13810
13811 if test x$build_stored = xyes; then
13812    STORED_DIR="src/stored"
13813 else
13814    STORED_DIR=""
13815 fi
13816
13817
13818 # ---------------------------------------------------
13819 # Check for conio (Bacula readline substitute)(
13820 # ---------------------------------------------------
13821 # this allows you to turn it completely off
13822 # Check whether --enable-conio was given.
13823 if test "${enable_conio+set}" = set; then
13824   enableval=$enable_conio; if test x$enableval = xno; then
13825      support_conio=no
13826   fi
13827
13828 fi
13829
13830
13831
13832 # ---------------------------------------------------
13833 # Check for IPv6 support
13834 # ---------------------------------------------------
13835 # this allows you to turn it completely off
13836 support_ipv6=yes
13837 # Check whether --enable-ipv6 was given.
13838 if test "${enable_ipv6+set}" = set; then
13839   enableval=$enable_ipv6; if test x$enableval = xno; then
13840      support_ipv6=no
13841   fi
13842
13843 fi
13844
13845
13846 if test x$support_ipv6 = xyes; then
13847     cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853  #include <sys/types.h>
13854 #include <sys/socket.h>
13855 #include <netinet/in.h>
13856 int
13857 main ()
13858 {
13859 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13860   ;
13861   return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_link") 2>conftest.er1
13872   ac_status=$?
13873   grep -v '^ *+' conftest.er1 >conftest.err
13874   rm -f conftest.er1
13875   cat conftest.err >&5
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } && {
13878          test -z "$ac_c_werror_flag" ||
13879          test ! -s conftest.err
13880        } && test -s conftest$ac_exeext &&
13881        $as_test_x conftest$ac_exeext; then
13882   support_ipv6=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887         support_ipv6=no
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891       conftest$ac_exeext conftest.$ac_ext
13892 fi
13893
13894 if test x$support_ipv6 = xyes; then
13895
13896 cat >>confdefs.h <<\_ACEOF
13897 #define HAVE_IPV6 1
13898 _ACEOF
13899
13900 fi
13901
13902
13903
13904 got_conio="no"
13905 if test x$support_conio = xyes; then
13906    if test "${ac_cv_header_termcap_h+set}" = set; then
13907   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13908 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13909 if test "${ac_cv_header_termcap_h+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 fi
13912 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13913 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13914 else
13915   # Is the header compilable?
13916 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13917 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13918 cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924 $ac_includes_default
13925 #include <termcap.h>
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (ac_try="$ac_compile"
13929 case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_compile") 2>conftest.er1
13935   ac_status=$?
13936   grep -v '^ *+' conftest.er1 >conftest.err
13937   rm -f conftest.er1
13938   cat conftest.err >&5
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); } && {
13941          test -z "$ac_c_werror_flag" ||
13942          test ! -s conftest.err
13943        } && test -s conftest.$ac_objext; then
13944   ac_header_compiler=yes
13945 else
13946   echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949         ac_header_compiler=no
13950 fi
13951
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13954 echo "${ECHO_T}$ac_header_compiler" >&6; }
13955
13956 # Is the header present?
13957 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13958 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h.  */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h.  */
13965 #include <termcap.h>
13966 _ACEOF
13967 if { (ac_try="$ac_cpp conftest.$ac_ext"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } >/dev/null && {
13980          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13981          test ! -s conftest.err
13982        }; then
13983   ac_header_preproc=yes
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988   ac_header_preproc=no
13989 fi
13990
13991 rm -f conftest.err conftest.$ac_ext
13992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13993 echo "${ECHO_T}$ac_header_preproc" >&6; }
13994
13995 # So?  What about this header?
13996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13997   yes:no: )
13998     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13999 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14001 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14002     ac_header_preproc=yes
14003     ;;
14004   no:yes:* )
14005     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14006 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14007     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14008 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14009     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14010 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14011     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14012 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14013     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14014 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14016 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14017
14018     ;;
14019 esac
14020 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14021 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_termcap_h+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   ac_cv_header_termcap_h=$ac_header_preproc
14026 fi
14027 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14028 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14029
14030 fi
14031 if test $ac_cv_header_termcap_h = yes; then
14032    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14033 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14034 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-ltermcap  $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045
14046 /* Override any GCC internal prototype to avoid an error.
14047    Use char because int might match the return type of a GCC
14048    builtin and then its argument prototype would still apply.  */
14049 #ifdef __cplusplus
14050 extern "C"
14051 #endif
14052 char tgetent ();
14053 int
14054 main ()
14055 {
14056 return tgetent ();
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (ac_try="$ac_link"
14063 case "(($ac_try" in
14064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065   *) ac_try_echo=$ac_try;;
14066 esac
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068   (eval "$ac_link") 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } && {
14075          test -z "$ac_c_werror_flag" ||
14076          test ! -s conftest.err
14077        } && test -s conftest$ac_exeext &&
14078        $as_test_x conftest$ac_exeext; then
14079   ac_cv_lib_termcap_tgetent=yes
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084         ac_cv_lib_termcap_tgetent=no
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14088       conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14090 fi
14091 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14092 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14093 if test $ac_cv_lib_termcap_tgetent = yes; then
14094    CONS_LIBS="-ltermcap"
14095          CONS_OBJ="conio.o"
14096          CONS_SRC="conio.c"
14097          got_conio="yes"
14098          support_readline=no
14099
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_CONIO 1
14102 _ACEOF
14103
14104
14105 else
14106    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14107 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14108 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-lncurses  $LIBS"
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h.  */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h.  */
14119
14120 /* Override any GCC internal prototype to avoid an error.
14121    Use char because int might match the return type of a GCC
14122    builtin and then its argument prototype would still apply.  */
14123 #ifdef __cplusplus
14124 extern "C"
14125 #endif
14126 char tgetent ();
14127 int
14128 main ()
14129 {
14130 return tgetent ();
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139   *) ac_try_echo=$ac_try;;
14140 esac
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142   (eval "$ac_link") 2>conftest.er1
14143   ac_status=$?
14144   grep -v '^ *+' conftest.er1 >conftest.err
14145   rm -f conftest.er1
14146   cat conftest.err >&5
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } && {
14149          test -z "$ac_c_werror_flag" ||
14150          test ! -s conftest.err
14151        } && test -s conftest$ac_exeext &&
14152        $as_test_x conftest$ac_exeext; then
14153   ac_cv_lib_ncurses_tgetent=yes
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158         ac_cv_lib_ncurses_tgetent=no
14159 fi
14160
14161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14162       conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14164 fi
14165 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14166 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14167 if test $ac_cv_lib_ncurses_tgetent = yes; then
14168    CONS_LIBS="-lncurses"
14169            CONS_OBJ="conio.o"
14170            CONS_SRC="conio.c"
14171            got_conio="yes"
14172            support_readline=no
14173
14174 cat >>confdefs.h <<\_ACEOF
14175 #define HAVE_CONIO 1
14176 _ACEOF
14177
14178
14179 fi
14180
14181
14182 fi
14183
14184
14185 else
14186
14187
14188 for ac_header in curses.h
14189 do
14190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14192   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 fi
14197 ac_res=`eval echo '${'$as_ac_Header'}'`
14198                { echo "$as_me:$LINENO: result: $ac_res" >&5
14199 echo "${ECHO_T}$ac_res" >&6; }
14200 else
14201   # Is the header compilable?
14202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210 $ac_includes_default
14211 #include <$ac_header>
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (ac_try="$ac_compile"
14215 case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_compile") 2>conftest.er1
14221   ac_status=$?
14222   grep -v '^ *+' conftest.er1 >conftest.err
14223   rm -f conftest.er1
14224   cat conftest.err >&5
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } && {
14227          test -z "$ac_c_werror_flag" ||
14228          test ! -s conftest.err
14229        } && test -s conftest.$ac_objext; then
14230   ac_header_compiler=yes
14231 else
14232   echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14234
14235         ac_header_compiler=no
14236 fi
14237
14238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14240 echo "${ECHO_T}$ac_header_compiler" >&6; }
14241
14242 # Is the header present?
14243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251 #include <$ac_header>
14252 _ACEOF
14253 if { (ac_try="$ac_cpp conftest.$ac_ext"
14254 case "(($ac_try" in
14255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256   *) ac_try_echo=$ac_try;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } >/dev/null && {
14266          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14267          test ! -s conftest.err
14268        }; then
14269   ac_header_preproc=yes
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274   ac_header_preproc=no
14275 fi
14276
14277 rm -f conftest.err conftest.$ac_ext
14278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14279 echo "${ECHO_T}$ac_header_preproc" >&6; }
14280
14281 # So?  What about this header?
14282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14283   yes:no: )
14284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14288     ac_header_preproc=yes
14289     ;;
14290   no:yes:* )
14291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14293     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14294 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14295     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14297     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14298 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14301     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14303
14304     ;;
14305 esac
14306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311   eval "$as_ac_Header=\$ac_header_preproc"
14312 fi
14313 ac_res=`eval echo '${'$as_ac_Header'}'`
14314                { echo "$as_me:$LINENO: result: $ac_res" >&5
14315 echo "${ECHO_T}$ac_res" >&6; }
14316
14317 fi
14318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14319   cat >>confdefs.h <<_ACEOF
14320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14321 _ACEOF
14322
14323 fi
14324
14325 done
14326
14327          { echo "$as_me:$LINENO: checking for term.h" >&5
14328 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14329 if test "${ac_cv_header_term_h+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332   cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338 #if HAVE_CURSES_H
14339 #include <curses.h>
14340 #endif
14341
14342
14343 #include <term.h>
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (ac_try="$ac_compile"
14347 case "(($ac_try" in
14348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349   *) ac_try_echo=$ac_try;;
14350 esac
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352   (eval "$ac_compile") 2>conftest.er1
14353   ac_status=$?
14354   grep -v '^ *+' conftest.er1 >conftest.err
14355   rm -f conftest.er1
14356   cat conftest.err >&5
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } && {
14359          test -z "$ac_c_werror_flag" ||
14360          test ! -s conftest.err
14361        } && test -s conftest.$ac_objext; then
14362   ac_cv_header_term_h=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367         ac_cv_header_term_h=no
14368 fi
14369
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 fi
14372 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14373 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14374 if test $ac_cv_header_term_h = yes; then
14375    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14376 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14377 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   ac_check_lib_save_LIBS=$LIBS
14381 LIBS="-lcurses  $LIBS"
14382 cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388
14389 /* Override any GCC internal prototype to avoid an error.
14390    Use char because int might match the return type of a GCC
14391    builtin and then its argument prototype would still apply.  */
14392 #ifdef __cplusplus
14393 extern "C"
14394 #endif
14395 char tgetent ();
14396 int
14397 main ()
14398 {
14399 return tgetent ();
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_link") 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } && {
14418          test -z "$ac_c_werror_flag" ||
14419          test ! -s conftest.err
14420        } && test -s conftest$ac_exeext &&
14421        $as_test_x conftest$ac_exeext; then
14422   ac_cv_lib_curses_tgetent=yes
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427         ac_cv_lib_curses_tgetent=no
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431       conftest$ac_exeext conftest.$ac_ext
14432 LIBS=$ac_check_lib_save_LIBS
14433 fi
14434 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14435 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14436 if test $ac_cv_lib_curses_tgetent = yes; then
14437    CONS_LIBS="-lcurses"
14438                    CONS_OBJ="conio.o"
14439                    CONS_SRC="conio.c"
14440                    got_conio="yes"
14441                    support_readline=no
14442
14443 cat >>confdefs.h <<\_ACEOF
14444 #define HAVE_CONIO 1
14445 _ACEOF
14446
14447
14448 fi
14449
14450
14451 else
14452    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14453 fi
14454
14455
14456
14457 fi
14458
14459
14460 fi
14461
14462
14463 # ---------------------------------------------------
14464 # Check for readline support/directory (default off)
14465 # ---------------------------------------------------
14466 # this allows you to turn it completely off
14467 # Check whether --enable-readline was given.
14468 if test "${enable_readline+set}" = set; then
14469   enableval=$enable_readline; if test x$enableval = xno; then
14470     support_readline=no
14471   fi
14472 fi
14473
14474
14475 got_readline="no"
14476 READLINE_SRC=
14477 if test x$support_readline = xyes; then
14478
14479 # Check whether --with-readline was given.
14480 if test "${with_readline+set}" = set; then
14481   withval=$with_readline;
14482         case "$with_readline" in
14483         no) : ;;
14484         yes|*)
14485           if test -f ${with_readline}/readline.h; then
14486              CONS_INC="-I${with_readline}"
14487              CONS_LDFLAGS="-L$with_readline"
14488           elif test -f ${with_readline}/include/readline/readline.h; then
14489              CONS_INC="-I${with_readline}/include/readline"
14490              CONS_LDFLAGS="-L${with_readline}/lib"
14491              with_readline="${with_readline}/include/readline"
14492           else
14493              with_readline="/usr/include/readline"
14494           fi
14495           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14497   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14498 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14500   echo $ECHO_N "(cached) $ECHO_C" >&6
14501 fi
14502 ac_res=`eval echo '${'$as_ac_Header'}'`
14503                { echo "$as_me:$LINENO: result: $ac_res" >&5
14504 echo "${ECHO_T}$ac_res" >&6; }
14505 else
14506   # Is the header compilable?
14507 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14508 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515 $ac_includes_default
14516 #include <${with_readline}/readline.h>
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (ac_try="$ac_compile"
14520 case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_compile") 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } && {
14532          test -z "$ac_c_werror_flag" ||
14533          test ! -s conftest.err
14534        } && test -s conftest.$ac_objext; then
14535   ac_header_compiler=yes
14536 else
14537   echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540         ac_header_compiler=no
14541 fi
14542
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14545 echo "${ECHO_T}$ac_header_compiler" >&6; }
14546
14547 # Is the header present?
14548 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14549 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 #include <${with_readline}/readline.h>
14557 _ACEOF
14558 if { (ac_try="$ac_cpp conftest.$ac_ext"
14559 case "(($ac_try" in
14560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561   *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14565   ac_status=$?
14566   grep -v '^ *+' conftest.er1 >conftest.err
14567   rm -f conftest.er1
14568   cat conftest.err >&5
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); } >/dev/null && {
14571          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14572          test ! -s conftest.err
14573        }; then
14574   ac_header_preproc=yes
14575 else
14576   echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579   ac_header_preproc=no
14580 fi
14581
14582 rm -f conftest.err conftest.$ac_ext
14583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14584 echo "${ECHO_T}$ac_header_preproc" >&6; }
14585
14586 # So?  What about this header?
14587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14588   yes:no: )
14589     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14590 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14591     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14593     ac_header_preproc=yes
14594     ;;
14595   no:yes:* )
14596     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14597 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14598     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14599 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14600     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14601 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14602     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14603 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14604     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14605 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14606     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14607 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14608
14609     ;;
14610 esac
14611 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14612 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   eval "$as_ac_Header=\$ac_header_preproc"
14617 fi
14618 ac_res=`eval echo '${'$as_ac_Header'}'`
14619                { echo "$as_me:$LINENO: result: $ac_res" >&5
14620 echo "${ECHO_T}$ac_res" >&6; }
14621
14622 fi
14623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14624
14625 cat >>confdefs.h <<\_ACEOF
14626 #define HAVE_READLINE 1
14627 _ACEOF
14628
14629                CONS_LIBS="-lreadline -lhistory -ltermcap"
14630                got_readline="yes"
14631
14632 else
14633    echo " "
14634                echo "readline.h not found. readline turned off ..."
14635                echo " "
14636
14637
14638 fi
14639
14640
14641           ;;
14642         esac
14643
14644 else
14645
14646        # check for standard readline library
14647        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14648   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14649 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14650 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 fi
14653 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14654 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14655 else
14656   # Is the header compilable?
14657 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14658 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 $ac_includes_default
14666 #include </usr/include/readline/readline.h>
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_compile") 2>conftest.er1
14676   ac_status=$?
14677   grep -v '^ *+' conftest.er1 >conftest.err
14678   rm -f conftest.er1
14679   cat conftest.err >&5
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } && {
14682          test -z "$ac_c_werror_flag" ||
14683          test ! -s conftest.err
14684        } && test -s conftest.$ac_objext; then
14685   ac_header_compiler=yes
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690         ac_header_compiler=no
14691 fi
14692
14693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14695 echo "${ECHO_T}$ac_header_compiler" >&6; }
14696
14697 # Is the header present?
14698 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14699 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 #include </usr/include/readline/readline.h>
14707 _ACEOF
14708 if { (ac_try="$ac_cpp conftest.$ac_ext"
14709 case "(($ac_try" in
14710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711   *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14715   ac_status=$?
14716   grep -v '^ *+' conftest.er1 >conftest.err
14717   rm -f conftest.er1
14718   cat conftest.err >&5
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } >/dev/null && {
14721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14722          test ! -s conftest.err
14723        }; then
14724   ac_header_preproc=yes
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729   ac_header_preproc=no
14730 fi
14731
14732 rm -f conftest.err conftest.$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14734 echo "${ECHO_T}$ac_header_preproc" >&6; }
14735
14736 # So?  What about this header?
14737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14738   yes:no: )
14739     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14740 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14741     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14743     ac_header_preproc=yes
14744     ;;
14745   no:yes:* )
14746     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14747 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14748     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14749 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14750     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14751 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14753 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14754     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14755 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14756     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14757 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14758
14759     ;;
14760 esac
14761 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14762 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14767 fi
14768 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14769 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14770
14771 fi
14772 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14773
14774 cat >>confdefs.h <<\_ACEOF
14775 #define HAVE_READLINE 1
14776 _ACEOF
14777
14778            got_readline="yes"
14779            CONS_INC="-I/usr/include/readline"
14780            CONS_LIBS="-lreadline -ltermcap"
14781
14782 else
14783
14784            # Did not find standard library, so try Bacula's default
14785             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14788 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 fi
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793                { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795 else
14796   # Is the header compilable?
14797 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14798 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 $ac_includes_default
14806 #include <${TOP_DIR}/depkgs/readline/readline.h>
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812   *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815   (eval "$ac_compile") 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } && {
14822          test -z "$ac_c_werror_flag" ||
14823          test ! -s conftest.err
14824        } && test -s conftest.$ac_objext; then
14825   ac_header_compiler=yes
14826 else
14827   echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14829
14830         ac_header_compiler=no
14831 fi
14832
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14835 echo "${ECHO_T}$ac_header_compiler" >&6; }
14836
14837 # Is the header present?
14838 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14839 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 #include <${TOP_DIR}/depkgs/readline/readline.h>
14847 _ACEOF
14848 if { (ac_try="$ac_cpp conftest.$ac_ext"
14849 case "(($ac_try" in
14850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851   *) ac_try_echo=$ac_try;;
14852 esac
14853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14855   ac_status=$?
14856   grep -v '^ *+' conftest.er1 >conftest.err
14857   rm -f conftest.er1
14858   cat conftest.err >&5
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); } >/dev/null && {
14861          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14862          test ! -s conftest.err
14863        }; then
14864   ac_header_preproc=yes
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869   ac_header_preproc=no
14870 fi
14871
14872 rm -f conftest.err conftest.$ac_ext
14873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14874 echo "${ECHO_T}$ac_header_preproc" >&6; }
14875
14876 # So?  What about this header?
14877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14878   yes:no: )
14879     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14880 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14883     ac_header_preproc=yes
14884     ;;
14885   no:yes:* )
14886     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14887 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14888     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14889 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14890     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14891 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14892     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14893 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14894     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14895 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14897 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14898
14899     ;;
14900 esac
14901 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14902 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14904   echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906   eval "$as_ac_Header=\$ac_header_preproc"
14907 fi
14908 ac_res=`eval echo '${'$as_ac_Header'}'`
14909                { echo "$as_me:$LINENO: result: $ac_res" >&5
14910 echo "${ECHO_T}$ac_res" >&6; }
14911
14912 fi
14913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14914
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_READLINE 1
14917 _ACEOF
14918
14919                  got_readline="yes"
14920                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14921                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14922                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14923                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14924
14925 else
14926    echo " "
14927                 echo "readline.h not found. readline turned off ..."
14928                 echo " "
14929
14930
14931 fi
14932
14933
14934
14935
14936 fi
14937
14938
14939
14940
14941 fi
14942
14943 fi
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954 # Minimal stuff for readline Makefile configuration
14955 MAKE_SHELL=/bin/sh
14956
14957 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14958 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14959 if test "${ac_cv_header_stat_broken+set}" = set; then
14960   echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962   cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h.  */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h.  */
14968 #include <sys/types.h>
14969 #include <sys/stat.h>
14970
14971 #if defined S_ISBLK && defined S_IFDIR
14972 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14973 #endif
14974
14975 #if defined S_ISBLK && defined S_IFCHR
14976 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14977 #endif
14978
14979 #if defined S_ISLNK && defined S_IFREG
14980 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14981 #endif
14982
14983 #if defined S_ISSOCK && defined S_IFREG
14984 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14985 #endif
14986
14987 _ACEOF
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
14990 case "(($ac_try" in
14991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992   *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995   (eval "$ac_compile") 2>conftest.er1
14996   ac_status=$?
14997   grep -v '^ *+' conftest.er1 >conftest.err
14998   rm -f conftest.er1
14999   cat conftest.err >&5
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } && {
15002          test -z "$ac_c_werror_flag" ||
15003          test ! -s conftest.err
15004        } && test -s conftest.$ac_objext; then
15005   ac_cv_header_stat_broken=no
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010         ac_cv_header_stat_broken=yes
15011 fi
15012
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15016 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15017 if test $ac_cv_header_stat_broken = yes; then
15018
15019 cat >>confdefs.h <<\_ACEOF
15020 #define STAT_MACROS_BROKEN 1
15021 _ACEOF
15022
15023 fi
15024
15025
15026
15027
15028
15029
15030 ac_header_dirent=no
15031 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15032   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15033 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15034 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044 #include <sys/types.h>
15045 #include <$ac_hdr>
15046
15047 int
15048 main ()
15049 {
15050 if ((DIR *) 0)
15051 return 0;
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (ac_try="$ac_compile"
15058 case "(($ac_try" in
15059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060   *) ac_try_echo=$ac_try;;
15061 esac
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063   (eval "$ac_compile") 2>conftest.er1
15064   ac_status=$?
15065   grep -v '^ *+' conftest.er1 >conftest.err
15066   rm -f conftest.er1
15067   cat conftest.err >&5
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } && {
15070          test -z "$ac_c_werror_flag" ||
15071          test ! -s conftest.err
15072        } && test -s conftest.$ac_objext; then
15073   eval "$as_ac_Header=yes"
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078         eval "$as_ac_Header=no"
15079 fi
15080
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 fi
15083 ac_res=`eval echo '${'$as_ac_Header'}'`
15084                { echo "$as_me:$LINENO: result: $ac_res" >&5
15085 echo "${ECHO_T}$ac_res" >&6; }
15086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15087   cat >>confdefs.h <<_ACEOF
15088 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15089 _ACEOF
15090
15091 ac_header_dirent=$ac_hdr; break
15092 fi
15093
15094 done
15095 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15096 if test $ac_header_dirent = dirent.h; then
15097   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15098 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15099 if test "${ac_cv_search_opendir+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   ac_func_search_save_LIBS=$LIBS
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109
15110 /* Override any GCC internal prototype to avoid an error.
15111    Use char because int might match the return type of a GCC
15112    builtin and then its argument prototype would still apply.  */
15113 #ifdef __cplusplus
15114 extern "C"
15115 #endif
15116 char opendir ();
15117 int
15118 main ()
15119 {
15120 return opendir ();
15121   ;
15122   return 0;
15123 }
15124 _ACEOF
15125 for ac_lib in '' dir; do
15126   if test -z "$ac_lib"; then
15127     ac_res="none required"
15128   else
15129     ac_res=-l$ac_lib
15130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15131   fi
15132   rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_link") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest$ac_exeext &&
15149        $as_test_x conftest$ac_exeext; then
15150   ac_cv_search_opendir=$ac_res
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155
15156 fi
15157
15158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159       conftest$ac_exeext
15160   if test "${ac_cv_search_opendir+set}" = set; then
15161   break
15162 fi
15163 done
15164 if test "${ac_cv_search_opendir+set}" = set; then
15165   :
15166 else
15167   ac_cv_search_opendir=no
15168 fi
15169 rm conftest.$ac_ext
15170 LIBS=$ac_func_search_save_LIBS
15171 fi
15172 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15173 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15174 ac_res=$ac_cv_search_opendir
15175 if test "$ac_res" != no; then
15176   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15177
15178 fi
15179
15180 else
15181   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15182 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15183 if test "${ac_cv_search_opendir+set}" = set; then
15184   echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186   ac_func_search_save_LIBS=$LIBS
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h.  */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h.  */
15193
15194 /* Override any GCC internal prototype to avoid an error.
15195    Use char because int might match the return type of a GCC
15196    builtin and then its argument prototype would still apply.  */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 char opendir ();
15201 int
15202 main ()
15203 {
15204 return opendir ();
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 for ac_lib in '' x; do
15210   if test -z "$ac_lib"; then
15211     ac_res="none required"
15212   else
15213     ac_res=-l$ac_lib
15214     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15215   fi
15216   rm -f conftest.$ac_objext conftest$ac_exeext
15217 if { (ac_try="$ac_link"
15218 case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_link") 2>conftest.er1
15224   ac_status=$?
15225   grep -v '^ *+' conftest.er1 >conftest.err
15226   rm -f conftest.er1
15227   cat conftest.err >&5
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } && {
15230          test -z "$ac_c_werror_flag" ||
15231          test ! -s conftest.err
15232        } && test -s conftest$ac_exeext &&
15233        $as_test_x conftest$ac_exeext; then
15234   ac_cv_search_opendir=$ac_res
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239
15240 fi
15241
15242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15243       conftest$ac_exeext
15244   if test "${ac_cv_search_opendir+set}" = set; then
15245   break
15246 fi
15247 done
15248 if test "${ac_cv_search_opendir+set}" = set; then
15249   :
15250 else
15251   ac_cv_search_opendir=no
15252 fi
15253 rm conftest.$ac_ext
15254 LIBS=$ac_func_search_save_LIBS
15255 fi
15256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15258 ac_res=$ac_cv_search_opendir
15259 if test "$ac_res" != no; then
15260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15261
15262 fi
15263
15264 fi
15265
15266
15267
15268
15269
15270
15271
15272
15273 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15274 do
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281   cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15289 #define $ac_func innocuous_$ac_func
15290
15291 /* System header to define __stub macros and hopefully few prototypes,
15292     which can conflict with char $ac_func (); below.
15293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294     <limits.h> exists even on freestanding compilers.  */
15295
15296 #ifdef __STDC__
15297 # include <limits.h>
15298 #else
15299 # include <assert.h>
15300 #endif
15301
15302 #undef $ac_func
15303
15304 /* Override any GCC internal prototype to avoid an error.
15305    Use char because int might match the return type of a GCC
15306    builtin and then its argument prototype would still apply.  */
15307 #ifdef __cplusplus
15308 extern "C"
15309 #endif
15310 char $ac_func ();
15311 /* The GNU C library defines this for functions which it implements
15312     to always fail with ENOSYS.  Some functions are actually named
15313     something starting with __ and the normal name is an alias.  */
15314 #if defined __stub_$ac_func || defined __stub___$ac_func
15315 choke me
15316 #endif
15317
15318 int
15319 main ()
15320 {
15321 return $ac_func ();
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_link") 2>conftest.er1
15334   ac_status=$?
15335   grep -v '^ *+' conftest.er1 >conftest.err
15336   rm -f conftest.er1
15337   cat conftest.err >&5
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); } && {
15340          test -z "$ac_c_werror_flag" ||
15341          test ! -s conftest.err
15342        } && test -s conftest$ac_exeext &&
15343        $as_test_x conftest$ac_exeext; then
15344   eval "$as_ac_var=yes"
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349         eval "$as_ac_var=no"
15350 fi
15351
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353       conftest$ac_exeext conftest.$ac_ext
15354 fi
15355 ac_res=`eval echo '${'$as_ac_var'}'`
15356                { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15358 if test `eval echo '${'$as_ac_var'}'` = yes; then
15359   cat >>confdefs.h <<_ACEOF
15360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15361 _ACEOF
15362
15363 fi
15364 done
15365
15366
15367
15368 for ac_func in nanosleep nl_langinfo
15369 do
15370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15384 #define $ac_func innocuous_$ac_func
15385
15386 /* System header to define __stub macros and hopefully few prototypes,
15387     which can conflict with char $ac_func (); below.
15388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15389     <limits.h> exists even on freestanding compilers.  */
15390
15391 #ifdef __STDC__
15392 # include <limits.h>
15393 #else
15394 # include <assert.h>
15395 #endif
15396
15397 #undef $ac_func
15398
15399 /* Override any GCC internal prototype to avoid an error.
15400    Use char because int might match the return type of a GCC
15401    builtin and then its argument prototype would still apply.  */
15402 #ifdef __cplusplus
15403 extern "C"
15404 #endif
15405 char $ac_func ();
15406 /* The GNU C library defines this for functions which it implements
15407     to always fail with ENOSYS.  Some functions are actually named
15408     something starting with __ and the normal name is an alias.  */
15409 #if defined __stub_$ac_func || defined __stub___$ac_func
15410 choke me
15411 #endif
15412
15413 int
15414 main ()
15415 {
15416 return $ac_func ();
15417   ;
15418   return 0;
15419 }
15420 _ACEOF
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (ac_try="$ac_link"
15423 case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_link") 2>conftest.er1
15429   ac_status=$?
15430   grep -v '^ *+' conftest.er1 >conftest.err
15431   rm -f conftest.er1
15432   cat conftest.err >&5
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } && {
15435          test -z "$ac_c_werror_flag" ||
15436          test ! -s conftest.err
15437        } && test -s conftest$ac_exeext &&
15438        $as_test_x conftest$ac_exeext; then
15439   eval "$as_ac_var=yes"
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443
15444         eval "$as_ac_var=no"
15445 fi
15446
15447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15448       conftest$ac_exeext conftest.$ac_ext
15449 fi
15450 ac_res=`eval echo '${'$as_ac_var'}'`
15451                { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_var'}'` = yes; then
15454   cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15456 _ACEOF
15457
15458 fi
15459 done
15460
15461
15462 for ac_header in varargs.h
15463 do
15464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469   echo $ECHO_N "(cached) $ECHO_C" >&6
15470 fi
15471 ac_res=`eval echo '${'$as_ac_Header'}'`
15472                { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15474 else
15475   # Is the header compilable?
15476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 $ac_includes_default
15485 #include <$ac_header>
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (ac_try="$ac_compile"
15489 case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_compile") 2>conftest.er1
15495   ac_status=$?
15496   grep -v '^ *+' conftest.er1 >conftest.err
15497   rm -f conftest.er1
15498   cat conftest.err >&5
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } && {
15501          test -z "$ac_c_werror_flag" ||
15502          test ! -s conftest.err
15503        } && test -s conftest.$ac_objext; then
15504   ac_header_compiler=yes
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509         ac_header_compiler=no
15510 fi
15511
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6; }
15515
15516 # Is the header present?
15517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525 #include <$ac_header>
15526 _ACEOF
15527 if { (ac_try="$ac_cpp conftest.$ac_ext"
15528 case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15534   ac_status=$?
15535   grep -v '^ *+' conftest.er1 >conftest.err
15536   rm -f conftest.er1
15537   cat conftest.err >&5
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); } >/dev/null && {
15540          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15541          test ! -s conftest.err
15542        }; then
15543   ac_header_preproc=yes
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548   ac_header_preproc=no
15549 fi
15550
15551 rm -f conftest.err conftest.$ac_ext
15552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15553 echo "${ECHO_T}$ac_header_preproc" >&6; }
15554
15555 # So?  What about this header?
15556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15557   yes:no: )
15558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15562     ac_header_preproc=yes
15563     ;;
15564   no:yes:* )
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15577
15578     ;;
15579 esac
15580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15583   echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585   eval "$as_ac_Header=\$ac_header_preproc"
15586 fi
15587 ac_res=`eval echo '${'$as_ac_Header'}'`
15588                { echo "$as_me:$LINENO: result: $ac_res" >&5
15589 echo "${ECHO_T}$ac_res" >&6; }
15590
15591 fi
15592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15593   cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15595 _ACEOF
15596
15597 fi
15598
15599 done
15600
15601
15602 # End of readline/conio stuff
15603 # -----------------------------------------------------------------------
15604
15605 # -----------------------------------------------------------------------
15606 #  Check for Python support
15607 #
15608 { echo "$as_me:$LINENO: checking for Python support" >&5
15609 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15610
15611 # Check whether --with-python was given.
15612 if test "${with_python+set}" = set; then
15613   withval=$with_python;
15614   PYTHON_INCDIR=
15615   PYTHON_LIBS=
15616   if test "$withval" != "no"; then
15617      if test "$withval" = "yes"; then
15618         for python_root in /usr /usr/local /usr/sfw; do
15619           for ver in python2.2 python2.3 python2.4 python2.5; do
15620              if test -f $python_root/include/${ver}/Python.h; then
15621                 PYTHON_INCDIR=-I$python_root/include/${ver}
15622                 if test -d $python_root/lib64/${ver}/config; then
15623                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15624                 else
15625                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15626                 fi
15627                 break
15628              fi
15629           done
15630         done
15631         if test x$PYTHON_INCDIR = x; then
15632           if test -f $prefix/include/Python.h; then
15633              PYTHON_INCDIR=-I$prefix/include
15634              if test -d $prefix/lib64/config; then
15635                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15636              else
15637                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15638              fi
15639           else
15640            { echo "$as_me:$LINENO: result: no" >&5
15641 echo "${ECHO_T}no" >&6; }
15642            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15643 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15644    { (exit 1); exit 1; }; }
15645           fi
15646         fi
15647      else
15648         if test -f $withval/Python.h; then
15649            PYTHON_INCDIR=-I$withval
15650            PYTHON_LIBS="-L$withval/config -lpython"
15651         elif test -f $withval/include/Python.h; then
15652            PYTHON_INCDIR=-I$withval/include
15653            if test -d $withval/lib64/config; then
15654               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15655            else
15656               PYTHON_LIBS="-L$withval/lib/config -lpython"
15657            fi
15658         elif test -f $withval/include/python/Python.h; then
15659            PYTHON_INCDIR=-I$withval/include/python
15660            if test -d $withval/lib64/python/config; then
15661               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15662            else
15663               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15664            fi
15665         else
15666            { echo "$as_me:$LINENO: result: no" >&5
15667 echo "${ECHO_T}no" >&6; }
15668            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15669 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15670    { (exit 1); exit 1; }; }
15671         fi
15672      fi
15673      cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_PYTHON 1
15675 _ACEOF
15676
15677      { echo "$as_me:$LINENO: result: yes" >&5
15678 echo "${ECHO_T}yes" >&6; }
15679      support_python=yes
15680      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15681 echo "$as_me: checking for more Python libs" >&6;}
15682      saved_LIBS="$LIBS"; LIBS=
15683      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15684 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15685 if test "${ac_cv_search_shm_open+set}" = set; then
15686   echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688   ac_func_search_save_LIBS=$LIBS
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695
15696 /* Override any GCC internal prototype to avoid an error.
15697    Use char because int might match the return type of a GCC
15698    builtin and then its argument prototype would still apply.  */
15699 #ifdef __cplusplus
15700 extern "C"
15701 #endif
15702 char shm_open ();
15703 int
15704 main ()
15705 {
15706 return shm_open ();
15707   ;
15708   return 0;
15709 }
15710 _ACEOF
15711 for ac_lib in '' rt; do
15712   if test -z "$ac_lib"; then
15713     ac_res="none required"
15714   else
15715     ac_res=-l$ac_lib
15716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15717   fi
15718   rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (ac_try="$ac_link"
15720 case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_link") 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } && {
15732          test -z "$ac_c_werror_flag" ||
15733          test ! -s conftest.err
15734        } && test -s conftest$ac_exeext &&
15735        $as_test_x conftest$ac_exeext; then
15736   ac_cv_search_shm_open=$ac_res
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741
15742 fi
15743
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745       conftest$ac_exeext
15746   if test "${ac_cv_search_shm_open+set}" = set; then
15747   break
15748 fi
15749 done
15750 if test "${ac_cv_search_shm_open+set}" = set; then
15751   :
15752 else
15753   ac_cv_search_shm_open=no
15754 fi
15755 rm conftest.$ac_ext
15756 LIBS=$ac_func_search_save_LIBS
15757 fi
15758 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15759 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15760 ac_res=$ac_cv_search_shm_open
15761 if test "$ac_res" != no; then
15762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15763
15764 fi
15765
15766
15767 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15768 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15769 if test "${ac_cv_lib_util_openpty+set}" = set; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   ac_check_lib_save_LIBS=$LIBS
15773 LIBS="-lutil  $LIBS"
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h.  */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h.  */
15780
15781 /* Override any GCC internal prototype to avoid an error.
15782    Use char because int might match the return type of a GCC
15783    builtin and then its argument prototype would still apply.  */
15784 #ifdef __cplusplus
15785 extern "C"
15786 #endif
15787 char openpty ();
15788 int
15789 main ()
15790 {
15791 return openpty ();
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (ac_try="$ac_link"
15798 case "(($ac_try" in
15799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800   *) ac_try_echo=$ac_try;;
15801 esac
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803   (eval "$ac_link") 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } && {
15810          test -z "$ac_c_werror_flag" ||
15811          test ! -s conftest.err
15812        } && test -s conftest$ac_exeext &&
15813        $as_test_x conftest$ac_exeext; then
15814   ac_cv_lib_util_openpty=yes
15815 else
15816   echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15818
15819         ac_cv_lib_util_openpty=no
15820 fi
15821
15822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15823       conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15825 fi
15826 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15827 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15828 if test $ac_cv_lib_util_openpty = yes; then
15829   cat >>confdefs.h <<_ACEOF
15830 #define HAVE_LIBUTIL 1
15831 _ACEOF
15832
15833   LIBS="-lutil $LIBS"
15834
15835 fi
15836
15837      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15838      LIBS="$saved_LIBS"
15839   else
15840      { echo "$as_me:$LINENO: result: no" >&5
15841 echo "${ECHO_T}no" >&6; }
15842   fi
15843
15844 else
15845
15846   { echo "$as_me:$LINENO: result: no" >&5
15847 echo "${ECHO_T}no" >&6; }
15848
15849 fi
15850
15851
15852
15853
15854 #
15855 # Find where sockets are (especially for Solaris)
15856 # Do this before the TCP Wrappers test since tcp wrappers
15857 # uses the socket library and some linkers are stupid.
15858 #
15859 { echo "$as_me:$LINENO: checking for socket" >&5
15860 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15861 if test "${ac_cv_func_socket+set}" = set; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15872 #define socket innocuous_socket
15873
15874 /* System header to define __stub macros and hopefully few prototypes,
15875     which can conflict with char socket (); below.
15876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15877     <limits.h> exists even on freestanding compilers.  */
15878
15879 #ifdef __STDC__
15880 # include <limits.h>
15881 #else
15882 # include <assert.h>
15883 #endif
15884
15885 #undef socket
15886
15887 /* Override any GCC internal prototype to avoid an error.
15888    Use char because int might match the return type of a GCC
15889    builtin and then its argument prototype would still apply.  */
15890 #ifdef __cplusplus
15891 extern "C"
15892 #endif
15893 char socket ();
15894 /* The GNU C library defines this for functions which it implements
15895     to always fail with ENOSYS.  Some functions are actually named
15896     something starting with __ and the normal name is an alias.  */
15897 #if defined __stub_socket || defined __stub___socket
15898 choke me
15899 #endif
15900
15901 int
15902 main ()
15903 {
15904 return socket ();
15905   ;
15906   return 0;
15907 }
15908 _ACEOF
15909 rm -f conftest.$ac_objext conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_link") 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } && {
15923          test -z "$ac_c_werror_flag" ||
15924          test ! -s conftest.err
15925        } && test -s conftest$ac_exeext &&
15926        $as_test_x conftest$ac_exeext; then
15927   ac_cv_func_socket=yes
15928 else
15929   echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932         ac_cv_func_socket=no
15933 fi
15934
15935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15936       conftest$ac_exeext conftest.$ac_ext
15937 fi
15938 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15939 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15940 if test $ac_cv_func_socket = yes; then
15941   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15942 echo "${ECHO_T}using libc's socket" >&6; }
15943 else
15944
15945 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15946 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15947 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15948   echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950   ac_check_lib_save_LIBS=$LIBS
15951 LIBS="-lxnet  $LIBS"
15952 cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958
15959 /* Override any GCC internal prototype to avoid an error.
15960    Use char because int might match the return type of a GCC
15961    builtin and then its argument prototype would still apply.  */
15962 #ifdef __cplusplus
15963 extern "C"
15964 #endif
15965 char socket ();
15966 int
15967 main ()
15968 {
15969 return socket ();
15970   ;
15971   return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978   *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981   (eval "$ac_link") 2>conftest.er1
15982   ac_status=$?
15983   grep -v '^ *+' conftest.er1 >conftest.err
15984   rm -f conftest.er1
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); } && {
15988          test -z "$ac_c_werror_flag" ||
15989          test ! -s conftest.err
15990        } && test -s conftest$ac_exeext &&
15991        $as_test_x conftest$ac_exeext; then
15992   ac_cv_lib_xnet_socket=yes
15993 else
15994   echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997         ac_cv_lib_xnet_socket=no
15998 fi
15999
16000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16001       conftest$ac_exeext conftest.$ac_ext
16002 LIBS=$ac_check_lib_save_LIBS
16003 fi
16004 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16005 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16006 if test $ac_cv_lib_xnet_socket = yes; then
16007   cat >>confdefs.h <<_ACEOF
16008 #define HAVE_LIBXNET 1
16009 _ACEOF
16010
16011   LIBS="-lxnet $LIBS"
16012
16013 fi
16014
16015
16016 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16017 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16018 if test "${ac_cv_lib_socket_socket+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lsocket  $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029
16030 /* Override any GCC internal prototype to avoid an error.
16031    Use char because int might match the return type of a GCC
16032    builtin and then its argument prototype would still apply.  */
16033 #ifdef __cplusplus
16034 extern "C"
16035 #endif
16036 char socket ();
16037 int
16038 main ()
16039 {
16040 return socket ();
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_link") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } && {
16059          test -z "$ac_c_werror_flag" ||
16060          test ! -s conftest.err
16061        } && test -s conftest$ac_exeext &&
16062        $as_test_x conftest$ac_exeext; then
16063   ac_cv_lib_socket_socket=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068         ac_cv_lib_socket_socket=no
16069 fi
16070
16071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16072       conftest$ac_exeext conftest.$ac_ext
16073 LIBS=$ac_check_lib_save_LIBS
16074 fi
16075 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16076 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16077 if test $ac_cv_lib_socket_socket = yes; then
16078   cat >>confdefs.h <<_ACEOF
16079 #define HAVE_LIBSOCKET 1
16080 _ACEOF
16081
16082   LIBS="-lsocket $LIBS"
16083
16084 fi
16085
16086
16087 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16088 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16089 if test "${ac_cv_lib_inet_socket+set}" = set; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092   ac_check_lib_save_LIBS=$LIBS
16093 LIBS="-linet  $LIBS"
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100
16101 /* Override any GCC internal prototype to avoid an error.
16102    Use char because int might match the return type of a GCC
16103    builtin and then its argument prototype would still apply.  */
16104 #ifdef __cplusplus
16105 extern "C"
16106 #endif
16107 char socket ();
16108 int
16109 main ()
16110 {
16111 return socket ();
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext conftest$ac_exeext
16117 if { (ac_try="$ac_link"
16118 case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_link") 2>conftest.er1
16124   ac_status=$?
16125   grep -v '^ *+' conftest.er1 >conftest.err
16126   rm -f conftest.er1
16127   cat conftest.err >&5
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); } && {
16130          test -z "$ac_c_werror_flag" ||
16131          test ! -s conftest.err
16132        } && test -s conftest$ac_exeext &&
16133        $as_test_x conftest$ac_exeext; then
16134   ac_cv_lib_inet_socket=yes
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139         ac_cv_lib_inet_socket=no
16140 fi
16141
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143       conftest$ac_exeext conftest.$ac_ext
16144 LIBS=$ac_check_lib_save_LIBS
16145 fi
16146 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16147 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16148 if test $ac_cv_lib_inet_socket = yes; then
16149   cat >>confdefs.h <<_ACEOF
16150 #define HAVE_LIBINET 1
16151 _ACEOF
16152
16153   LIBS="-linet $LIBS"
16154
16155 fi
16156
16157 fi
16158
16159
16160
16161 # -----------------------------------------------------------
16162 # Check whether user wants TCP wrappers support (default off)
16163 # -----------------------------------------------------------
16164 TCPW_MSG="no"
16165 WRAPLIBS=""
16166
16167 # Check whether --with-tcp-wrappers was given.
16168 if test "${with_tcp_wrappers+set}" = set; then
16169   withval=$with_tcp_wrappers;
16170     if test "x$withval" != "xno" ; then
16171        saved_LIBS="$LIBS"
16172        LIBS="$saved_LIBS -lwrap"
16173        { echo "$as_me:$LINENO: checking for libwrap" >&5
16174 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16175        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16176 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16177 if test "${ac_cv_search_nanosleep+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180   ac_func_search_save_LIBS=$LIBS
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187
16188 /* Override any GCC internal prototype to avoid an error.
16189    Use char because int might match the return type of a GCC
16190    builtin and then its argument prototype would still apply.  */
16191 #ifdef __cplusplus
16192 extern "C"
16193 #endif
16194 char nanosleep ();
16195 int
16196 main ()
16197 {
16198 return nanosleep ();
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 for ac_lib in '' rt; do
16204   if test -z "$ac_lib"; then
16205     ac_res="none required"
16206   else
16207     ac_res=-l$ac_lib
16208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16209   fi
16210   rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_link") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && {
16224          test -z "$ac_c_werror_flag" ||
16225          test ! -s conftest.err
16226        } && test -s conftest$ac_exeext &&
16227        $as_test_x conftest$ac_exeext; then
16228   ac_cv_search_nanosleep=$ac_res
16229 else
16230   echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16232
16233
16234 fi
16235
16236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16237       conftest$ac_exeext
16238   if test "${ac_cv_search_nanosleep+set}" = set; then
16239   break
16240 fi
16241 done
16242 if test "${ac_cv_search_nanosleep+set}" = set; then
16243   :
16244 else
16245   ac_cv_search_nanosleep=no
16246 fi
16247 rm conftest.$ac_ext
16248 LIBS=$ac_func_search_save_LIBS
16249 fi
16250 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16251 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16252 ac_res=$ac_cv_search_nanosleep
16253 if test "$ac_res" != no; then
16254   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16255
16256 fi
16257
16258        cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264  #include <sys/types.h>
16265             #include <tcpd.h>
16266              int deny_severity = 0;
16267              int allow_severity = 0;
16268              struct request_info *req;
16269 int
16270 main ()
16271 {
16272  hosts_access(req);
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 rm -f conftest.$ac_objext conftest$ac_exeext
16278 if { (ac_try="$ac_link"
16279 case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_link") 2>conftest.er1
16285   ac_status=$?
16286   grep -v '^ *+' conftest.er1 >conftest.err
16287   rm -f conftest.er1
16288   cat conftest.err >&5
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); } && {
16291          test -z "$ac_c_werror_flag" ||
16292          test ! -s conftest.err
16293        } && test -s conftest$ac_exeext &&
16294        $as_test_x conftest$ac_exeext; then
16295
16296             { echo "$as_me:$LINENO: result: yes" >&5
16297 echo "${ECHO_T}yes" >&6; }
16298
16299 cat >>confdefs.h <<\_ACEOF
16300 #define HAVE_LIBWRAP 1
16301 _ACEOF
16302
16303             TCPW_MSG="yes"
16304             LIBS="$saved_LIBS"
16305             WRAPLIBS="-lwrap"
16306
16307 else
16308   echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311
16312             LIBS="$saved_LIBS -lwrap -lnsl"
16313             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16314             cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320  #include <sys/types.h>
16321                  #include <tcpd.h>
16322                  int deny_severity = 0;
16323                  int allow_severity = 0;
16324                  struct request_info *req;
16325 int
16326 main ()
16327 {
16328  hosts_access(req);
16329   ;
16330   return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337   *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340   (eval "$ac_link") 2>conftest.er1
16341   ac_status=$?
16342   grep -v '^ *+' conftest.er1 >conftest.err
16343   rm -f conftest.er1
16344   cat conftest.err >&5
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); } && {
16347          test -z "$ac_c_werror_flag" ||
16348          test ! -s conftest.err
16349        } && test -s conftest$ac_exeext &&
16350        $as_test_x conftest$ac_exeext; then
16351
16352                  { echo "$as_me:$LINENO: result: yes" >&5
16353 echo "${ECHO_T}yes" >&6; }
16354
16355 cat >>confdefs.h <<\_ACEOF
16356 #define HAVE_LIBWRAP 1
16357 _ACEOF
16358
16359                  TCPW_MSG="yes"
16360                  LIBS="$saved_LIBS"
16361                  WRAPLIBS="-lwrap"
16362
16363 else
16364   echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16366
16367         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16368 echo "$as_me: error: *** libwrap missing" >&2;}
16369    { (exit 1); exit 1; }; }
16370
16371 fi
16372
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374       conftest$ac_exeext conftest.$ac_ext
16375
16376 fi
16377
16378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16379       conftest$ac_exeext conftest.$ac_ext
16380     fi
16381
16382
16383 fi
16384
16385
16386 # -----------------------------------------------------------
16387 # Check whether OpenSSL is available
16388 # -----------------------------------------------------------
16389 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16390 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16391
16392 # Check whether --with-openssl was given.
16393 if test "${with_openssl+set}" = set; then
16394   withval=$with_openssl; with_openssl_directory=${withval}
16395 fi
16396
16397
16398 if test "x$with_openssl_directory" != "x"; then
16399         OPENSSL_LIBS="-lssl -lcrypto"
16400         OPENSSL_INC=""
16401
16402         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16403                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16404                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16405         fi
16406
16407         saved_LIBS="${LIBS}"
16408         saved_CFLAGS="${CFLAGS}"
16409         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16410         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16411
16412         cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418  #include <openssl/ssl.h>
16419 int
16420 main ()
16421 {
16422  CRYPTO_set_id_callback(NULL);
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_link") 2>conftest.er1
16435   ac_status=$?
16436   grep -v '^ *+' conftest.er1 >conftest.err
16437   rm -f conftest.er1
16438   cat conftest.err >&5
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); } && {
16441          test -z "$ac_c_werror_flag" ||
16442          test ! -s conftest.err
16443        } && test -s conftest$ac_exeext &&
16444        $as_test_x conftest$ac_exeext; then
16445
16446                         support_tls="yes"
16447                         support_crypto="yes"
16448
16449 else
16450   echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453          support_tls="no"
16454
16455 fi
16456
16457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16458       conftest$ac_exeext conftest.$ac_ext
16459
16460         cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466  #include <openssl/evp.h>
16467 int
16468 main ()
16469 {
16470  EVP_sha512();
16471   ;
16472   return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (ac_try="$ac_link"
16477 case "(($ac_try" in
16478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479   *) ac_try_echo=$ac_try;;
16480 esac
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482   (eval "$ac_link") 2>conftest.er1
16483   ac_status=$?
16484   grep -v '^ *+' conftest.er1 >conftest.err
16485   rm -f conftest.er1
16486   cat conftest.err >&5
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } && {
16489          test -z "$ac_c_werror_flag" ||
16490          test ! -s conftest.err
16491        } && test -s conftest$ac_exeext &&
16492        $as_test_x conftest$ac_exeext; then
16493    ac_cv_openssl_sha2="yes"
16494 else
16495   echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498          ac_cv_openssl_sha2="no"
16499
16500 fi
16501
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503       conftest$ac_exeext conftest.$ac_ext
16504
16505         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16506         # implementation, presumably for export reasons. If 192bit AES
16507         # is available, we assume that we're running with a 'non-export'
16508         # openssl library.
16509         cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515  #include <openssl/evp.h>
16516 int
16517 main ()
16518 {
16519  EVP_aes_192_cbc();
16520   ;
16521   return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_link") 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } && {
16538          test -z "$ac_c_werror_flag" ||
16539          test ! -s conftest.err
16540        } && test -s conftest$ac_exeext &&
16541        $as_test_x conftest$ac_exeext; then
16542    ac_cv_openssl_export="no"
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547          ac_cv_openssl_export="yes"
16548
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552       conftest$ac_exeext conftest.$ac_ext
16553
16554         LIBS="${saved_LIBS}"
16555         CFLAGS="${saved_CFLAGS}"
16556
16557         if test "$support_tls" = "yes"; then
16558
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_OPENSSL 1
16561 _ACEOF
16562
16563
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_TLS 1
16566 _ACEOF
16567
16568
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_CRYPTO 1
16571 _ACEOF
16572
16573         fi
16574
16575         if test "$ac_cv_openssl_sha2" = "yes"; then
16576
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_SHA2 1
16579 _ACEOF
16580
16581         fi
16582
16583         if test "$ac_cv_openssl_export" = "yes"; then
16584
16585 cat >>confdefs.h <<\_ACEOF
16586 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16587 _ACEOF
16588
16589         fi
16590 else
16591         support_tls="no"
16592         support_crypto="no"
16593         OPENSSL_LIBS=""
16594         OPENSSL_INC=""
16595 fi
16596
16597 { echo "$as_me:$LINENO: result: $support_tls" >&5
16598 echo "${ECHO_T}$support_tls" >&6; }
16599
16600
16601
16602
16603 # -----------------------------------------------------------
16604 # dlopen is needed for plugins
16605 # -----------------------------------------------------------
16606 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16607 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16608 if test "${ac_cv_search_dlopen+set}" = set; then
16609   echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611   ac_func_search_save_LIBS=$LIBS
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h.  */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h.  */
16618
16619 /* Override any GCC internal prototype to avoid an error.
16620    Use char because int might match the return type of a GCC
16621    builtin and then its argument prototype would still apply.  */
16622 #ifdef __cplusplus
16623 extern "C"
16624 #endif
16625 char dlopen ();
16626 int
16627 main ()
16628 {
16629 return dlopen ();
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 for ac_lib in '' dl; do
16635   if test -z "$ac_lib"; then
16636     ac_res="none required"
16637   else
16638     ac_res=-l$ac_lib
16639     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16640   fi
16641   rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_link") 2>conftest.er1
16649   ac_status=$?
16650   grep -v '^ *+' conftest.er1 >conftest.err
16651   rm -f conftest.er1
16652   cat conftest.err >&5
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } && {
16655          test -z "$ac_c_werror_flag" ||
16656          test ! -s conftest.err
16657        } && test -s conftest$ac_exeext &&
16658        $as_test_x conftest$ac_exeext; then
16659   ac_cv_search_dlopen=$ac_res
16660 else
16661   echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664
16665 fi
16666
16667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16668       conftest$ac_exeext
16669   if test "${ac_cv_search_dlopen+set}" = set; then
16670   break
16671 fi
16672 done
16673 if test "${ac_cv_search_dlopen+set}" = set; then
16674   :
16675 else
16676   ac_cv_search_dlopen=no
16677 fi
16678 rm conftest.$ac_ext
16679 LIBS=$ac_func_search_save_LIBS
16680 fi
16681 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16682 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16683 ac_res=$ac_cv_search_dlopen
16684 if test "$ac_res" != no; then
16685   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16686
16687 fi
16688
16689
16690 # ------------------------------------------
16691 # Where to place working dir
16692 # ------------------------------------------
16693 working_dir=`eval echo ${prefix}/var/bacula/working`
16694
16695 # Check whether --with-working-dir was given.
16696 if test "${with_working_dir+set}" = set; then
16697   withval=$with_working_dir;
16698        if test "x$withval" != "xno" ; then
16699               working_dir=$withval
16700        fi
16701
16702
16703 fi
16704
16705
16706
16707
16708 # ------------------------------------------------------------------
16709 # If the user has not set archivedir, we set our default as /tmp
16710 # ------------------------------------------------------------------
16711 archive_dir=/tmp
16712
16713 # Check whether --with-archivedir was given.
16714 if test "${with_archivedir+set}" = set; then
16715   withval=$with_archivedir;
16716        if test "x$withval" != "xno" ; then
16717               archivedir=$withval
16718        fi
16719
16720
16721 fi
16722
16723
16724
16725
16726
16727
16728 # ------------------------------------------
16729 # Where to place scriptdir (script files)
16730 # ------------------------------------------
16731 scriptdir=`eval echo ${sysconfdir}`
16732
16733 # Check whether --with-scriptdir was given.
16734 if test "${with_scriptdir+set}" = set; then
16735   withval=$with_scriptdir;
16736        if test "x$withval" != "xno" ; then
16737               scriptdir=$withval
16738        fi
16739
16740
16741 fi
16742
16743
16744
16745
16746
16747 # ------------------------------------------
16748 # Where to send dump email
16749 # ------------------------------------------
16750 dump_email=root@localhost
16751
16752 # Check whether --with-dump-email was given.
16753 if test "${with_dump_email+set}" = set; then
16754   withval=$with_dump_email;
16755        if test "x$withval" != "xno" ; then
16756               dump_email=$withval
16757        fi
16758
16759
16760 fi
16761
16762
16763
16764
16765 # ------------------------------------------
16766 # Where to send job email
16767 # ------------------------------------------
16768 job_email=root@localhost
16769
16770 # Check whether --with-job-email was given.
16771 if test "${with_job_email+set}" = set; then
16772   withval=$with_job_email;
16773        if test "x$withval" != "xno" ; then
16774               job_email=$withval
16775        fi
16776
16777
16778 fi
16779
16780
16781
16782
16783 # ------------------------------------------
16784 # Where to find smtp host
16785 # ------------------------------------------
16786 smtp_host=localhost
16787
16788 # Check whether --with-smtp_host was given.
16789 if test "${with_smtp_host+set}" = set; then
16790   withval=$with_smtp_host;
16791        if test "x$withval" != "xno" ; then
16792               smtp_host=$withval
16793        fi
16794
16795
16796 fi
16797
16798
16799
16800
16801
16802 # ------------------------------------
16803 # Where to place pid files
16804 # ------------------------------------
16805 piddir=/var/run
16806
16807 # Check whether --with-pid-dir was given.
16808 if test "${with_pid_dir+set}" = set; then
16809   withval=$with_pid_dir;
16810         if test "x$withval" != "xno" ; then
16811             piddir=$withval
16812         fi
16813
16814
16815 fi
16816
16817
16818 cat >>confdefs.h <<_ACEOF
16819 #define _PATH_BACULA_PIDDIR "$piddir"
16820 _ACEOF
16821
16822
16823
16824
16825 # ------------------------------------
16826 # Where to place subsys "lock file"
16827 # ------------------------------------
16828 subsysdir=/var/run/subsys
16829 if test -d /var/run/subsys; then
16830    subsysdir=/var/run/subsys
16831 elif test -d /var/lock/subsys; then
16832    subsysdir=/var/lock/subsys
16833 else
16834    subsysdir=/var/run/subsys
16835 fi
16836
16837 # Check whether --with-subsys-dir was given.
16838 if test "${with_subsys_dir+set}" = set; then
16839   withval=$with_subsys_dir;
16840         if test "x$withval" != "xno" ; then
16841             subsysdir=$withval
16842         fi
16843
16844
16845 fi
16846
16847
16848
16849
16850
16851
16852 # ------------------------------------
16853 # Where to start assigning ports
16854 # ------------------------------------
16855 baseport=9101
16856
16857 # Check whether --with-baseport was given.
16858 if test "${with_baseport+set}" = set; then
16859   withval=$with_baseport;
16860         if test "x$withval" != "xno" ; then
16861              baseport=$withval
16862         fi
16863
16864
16865 fi
16866
16867
16868
16869 dir_port=`expr $baseport`
16870 fd_port=`expr $baseport + 1`
16871 sd_port=`expr $fd_port + 1`
16872
16873
16874
16875
16876
16877
16878 # ------------------------------------------
16879 # Generate passwords
16880 # ------------------------------------------
16881 dir_password=
16882
16883 # Check whether --with-dir-password was given.
16884 if test "${with_dir_password+set}" = set; then
16885   withval=$with_dir_password;
16886        if test "x$withval" != "xno" ; then
16887            dir_password=$withval
16888        fi
16889
16890
16891 fi
16892
16893
16894 if test "x$dir_password" = "x" ; then
16895    if test "x$OPENSSL" = "xnone" ; then
16896       key=`autoconf/randpass 33`
16897    else
16898       key=`openssl rand -base64 33`
16899    fi
16900    dir_password=$key
16901 fi
16902
16903 fd_password=
16904
16905 # Check whether --with-fd-password was given.
16906 if test "${with_fd_password+set}" = set; then
16907   withval=$with_fd_password;
16908        if test "x$withval" != "xno" ; then
16909            fd_password=$withval
16910        fi
16911
16912
16913 fi
16914
16915
16916 if test "x$fd_password" = "x" ; then
16917    if test "x$OPENSSL" = "xnone" ; then
16918       key=`autoconf/randpass 37`
16919    else
16920       key=`openssl rand -base64 33`
16921    fi
16922    fd_password=$key
16923 fi
16924
16925 sd_password=
16926
16927 # Check whether --with-sd-password was given.
16928 if test "${with_sd_password+set}" = set; then
16929   withval=$with_sd_password;
16930        if test "x$withval" != "xno" ; then
16931            sd_password=$withval
16932        fi
16933
16934
16935 fi
16936
16937
16938 if test "x$sd_password" = "x" ; then
16939    if test "x$OPENSSL" = "xnone" ; then
16940       key=`autoconf/randpass 41`
16941    else
16942       key=`openssl rand -base64 33`
16943    fi
16944    sd_password=$key
16945 fi
16946
16947 mon_dir_password=
16948
16949 # Check whether --with-mon-dir-password was given.
16950 if test "${with_mon_dir_password+set}" = set; then
16951   withval=$with_mon_dir_password;
16952        if test "x$withval" != "xno" ; then
16953            mon_dir_password=$withval
16954        fi
16955
16956
16957 fi
16958
16959
16960 if test "x$mon_dir_password" = "x" ; then
16961    if test "x$OPENSSL" = "xnone" ; then
16962       key=`autoconf/randpass 33`
16963    else
16964       key=`openssl rand -base64 33`
16965    fi
16966    mon_dir_password=$key
16967 fi
16968
16969 mon_fd_password=
16970
16971 # Check whether --with-mon-fd-password was given.
16972 if test "${with_mon_fd_password+set}" = set; then
16973   withval=$with_mon_fd_password;
16974        if test "x$withval" != "xno" ; then
16975            mon_fd_password=$withval
16976        fi
16977
16978
16979 fi
16980
16981
16982 if test "x$mon_fd_password" = "x" ; then
16983    if test "x$OPENSSL" = "xnone" ; then
16984       key=`autoconf/randpass 37`
16985    else
16986       key=`openssl rand -base64 33`
16987    fi
16988    mon_fd_password=$key
16989 fi
16990
16991 mon_sd_password=
16992
16993 # Check whether --with-mon-sd-password was given.
16994 if test "${with_mon_sd_password+set}" = set; then
16995   withval=$with_mon_sd_password;
16996        if test "x$withval" != "xno" ; then
16997            mon_sd_password=$withval
16998        fi
16999
17000
17001 fi
17002
17003
17004 if test "x$mon_sd_password" = "x" ; then
17005    if test "x$OPENSSL" = "xnone" ; then
17006       key=`autoconf/randpass 41`
17007    else
17008       key=`openssl rand -base64 33`
17009    fi
17010    mon_sd_password=$key
17011 fi
17012
17013
17014
17015
17016
17017
17018
17019
17020 #
17021 # Pickup any database name
17022 #
17023 db_name=bacula
17024
17025 # Check whether --with-db_name was given.
17026 if test "${with_db_name+set}" = set; then
17027   withval=$with_db_name;
17028         if test "x$withval" != "x" ; then
17029              db_name=$withval
17030         fi
17031
17032
17033 fi
17034
17035
17036
17037 db_user=bacula
17038
17039 # Check whether --with-db_user was given.
17040 if test "${with_db_user+set}" = set; then
17041   withval=$with_db_user;
17042         if test "x$withval" != "x" ; then
17043              db_user=$withval
17044         fi
17045
17046
17047 fi
17048
17049
17050
17051
17052 #
17053 # Handle users and groups for each daemon
17054 #
17055 dir_user=
17056
17057 # Check whether --with-dir_user was given.
17058 if test "${with_dir_user+set}" = set; then
17059   withval=$with_dir_user;
17060         if test "x$withval" != "x" ; then
17061              dir_user=$withval
17062         fi
17063
17064
17065 fi
17066
17067
17068 dir_group=
17069
17070 # Check whether --with-dir_group was given.
17071 if test "${with_dir_group+set}" = set; then
17072   withval=$with_dir_group;
17073         if test "x$withval" != "x" ; then
17074              dir_group=$withval
17075         fi
17076
17077
17078 fi
17079
17080
17081 sd_user=
17082
17083 # Check whether --with-sd_user was given.
17084 if test "${with_sd_user+set}" = set; then
17085   withval=$with_sd_user;
17086         if test "x$withval" != "x" ; then
17087              sd_user=$withval
17088         fi
17089
17090
17091 fi
17092
17093
17094 sd_group=
17095
17096 # Check whether --with-sd_group was given.
17097 if test "${with_sd_group+set}" = set; then
17098   withval=$with_sd_group;
17099         if test "x$withval" != "x" ; then
17100              sd_group=$withval
17101         fi
17102
17103
17104 fi
17105
17106
17107 fd_user=
17108
17109 # Check whether --with-fd_user was given.
17110 if test "${with_fd_user+set}" = set; then
17111   withval=$with_fd_user;
17112         if test "x$withval" != "x" ; then
17113              fd_user=$withval
17114         fi
17115
17116
17117 fi
17118
17119
17120 fd_group=
17121
17122 # Check whether --with-fd_group was given.
17123 if test "${with_fd_group+set}" = set; then
17124   withval=$with_fd_group;
17125         if test "x$withval" != "x" ; then
17126              fd_group=$withval
17127         fi
17128
17129
17130 fi
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140 #
17141 # allow setting default executable permissions
17142 #
17143 SBINPERM=0754
17144
17145 # Check whether --with-sbin-perm was given.
17146 if test "${with_sbin_perm+set}" = set; then
17147   withval=$with_sbin_perm;
17148         if test "x$withval" != "x" ; then
17149             SBINPERM=$withval
17150         fi
17151
17152
17153 fi
17154
17155
17156
17157
17158 # ------------------------------------------------
17159 # Bacula check for various SQL database engines
17160 # ------------------------------------------------
17161 SQL_LIB=
17162
17163 db_found=no
17164 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17165 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17166
17167 # Check whether --with-postgresql was given.
17168 if test "${with_postgresql+set}" = set; then
17169   withval=$with_postgresql;
17170   if test "$withval" != "no"; then
17171       if test "$db_found" = "yes"; then
17172           { echo "$as_me:$LINENO: result: error" >&5
17173 echo "${ECHO_T}error" >&6; }
17174           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17175 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17176    { (exit 1); exit 1; }; };
17177       fi
17178       if test "$withval" = "yes"; then
17179           PG_CONFIG=`which pg_config`
17180           if test -n "$PG_CONFIG";then
17181               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17182               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17183               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17184           elif test -f /usr/local/include/libpq-fe.h; then
17185               POSTGRESQL_INCDIR=/usr/local/include
17186               if test -d /usr/local/lib64; then
17187                  POSTGRESQL_LIBDIR=/usr/local/lib64
17188               else
17189                  POSTGRESQL_LIBDIR=/usr/local/lib
17190               fi
17191               POSTGRESQL_BINDIR=/usr/local/bin
17192           elif test -f /usr/include/libpq-fe.h; then
17193               POSTGRESQL_INCDIR=/usr/include
17194               if test -d /usr/lib64; then
17195                  POSTGRESQL_LIBDIR=/usr/lib64
17196               else
17197                  POSTGRESQL_LIBDIR=/usr/lib
17198               fi
17199               POSTGRESQL_BINDIR=/usr/bin
17200           elif test -f /usr/include/pgsql/libpq-fe.h; then
17201               POSTGRESQL_INCDIR=/usr/include/pgsql
17202               if test -d /usr/lib64/pgsql; then
17203                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17204               else
17205                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17206               fi
17207               POSTGRESQL_BINDIR=/usr/bin
17208           elif test -f /usr/include/postgresql/libpq-fe.h; then
17209               POSTGRESQL_INCDIR=/usr/include/postgresql
17210               if test -d /usr/lib64/postgresql; then
17211                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17212               else
17213                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17214               fi
17215               POSTGRESQL_BINDIR=/usr/bin
17216           else
17217               { echo "$as_me:$LINENO: result: no" >&5
17218 echo "${ECHO_T}no" >&6; }
17219               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17220 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17221    { (exit 1); exit 1; }; }
17222           fi
17223       elif test -f $withval/include/libpq-fe.h; then
17224           POSTGRESQL_INCDIR=$withval/include
17225           POSTGRESQL_LIBDIR=$withval/lib
17226           POSTGRESQL_BINDIR=$withval/bin
17227       elif test -f $withval/include/postgresql/libpq-fe.h; then
17228           POSTGRESQL_INCDIR=$withval/include/postgresql
17229      if test -d $withval/lib64; then
17230          POSTGRESQL_LIBDIR=$withval/lib64
17231      else
17232          POSTGRESQL_LIBDIR=$withval/lib
17233      fi
17234           POSTGRESQL_BINDIR=$withval/bin
17235       else
17236           { echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6; }
17238           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17239 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17240    { (exit 1); exit 1; }; }
17241       fi
17242       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17243       { echo "$as_me:$LINENO: checking for crypt" >&5
17244 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17245 if test "${ac_cv_func_crypt+set}" = set; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17256 #define crypt innocuous_crypt
17257
17258 /* System header to define __stub macros and hopefully few prototypes,
17259     which can conflict with char crypt (); below.
17260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261     <limits.h> exists even on freestanding compilers.  */
17262
17263 #ifdef __STDC__
17264 # include <limits.h>
17265 #else
17266 # include <assert.h>
17267 #endif
17268
17269 #undef crypt
17270
17271 /* Override any GCC internal prototype to avoid an error.
17272    Use char because int might match the return type of a GCC
17273    builtin and then its argument prototype would still apply.  */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 char crypt ();
17278 /* The GNU C library defines this for functions which it implements
17279     to always fail with ENOSYS.  Some functions are actually named
17280     something starting with __ and the normal name is an alias.  */
17281 #if defined __stub_crypt || defined __stub___crypt
17282 choke me
17283 #endif
17284
17285 int
17286 main ()
17287 {
17288 return crypt ();
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_link") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } && {
17307          test -z "$ac_c_werror_flag" ||
17308          test ! -s conftest.err
17309        } && test -s conftest$ac_exeext &&
17310        $as_test_x conftest$ac_exeext; then
17311   ac_cv_func_crypt=yes
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316         ac_cv_func_crypt=no
17317 fi
17318
17319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17320       conftest$ac_exeext conftest.$ac_ext
17321 fi
17322 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17323 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17324 if test $ac_cv_func_crypt = yes; then
17325   :
17326 else
17327   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17328 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17329 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17330   echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332   ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-lcrypt  $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340
17341 /* Override any GCC internal prototype to avoid an error.
17342    Use char because int might match the return type of a GCC
17343    builtin and then its argument prototype would still apply.  */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char crypt ();
17348 int
17349 main ()
17350 {
17351 return crypt ();
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_link") 2>conftest.er1
17364   ac_status=$?
17365   grep -v '^ *+' conftest.er1 >conftest.err
17366   rm -f conftest.er1
17367   cat conftest.err >&5
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); } && {
17370          test -z "$ac_c_werror_flag" ||
17371          test ! -s conftest.err
17372        } && test -s conftest$ac_exeext &&
17373        $as_test_x conftest$ac_exeext; then
17374   ac_cv_lib_crypt_crypt=yes
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379         ac_cv_lib_crypt_crypt=no
17380 fi
17381
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383       conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17385 fi
17386 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17387 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17388 if test $ac_cv_lib_crypt_crypt = yes; then
17389   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17390 fi
17391
17392 fi
17393
17394       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17395       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17396       SQL_BINDIR=$POSTGRESQL_BINDIR
17397       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17398
17399       cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_POSTGRESQL 1
17401 _ACEOF
17402
17403       { echo "$as_me:$LINENO: result: yes" >&5
17404 echo "${ECHO_T}yes" >&6; }
17405       db_found=yes
17406       support_postgresql=yes
17407       db_type=PostgreSQL
17408       DB_TYPE=postgresql
17409   else
17410       { echo "$as_me:$LINENO: result: no" >&5
17411 echo "${ECHO_T}no" >&6; }
17412   fi
17413
17414 else
17415
17416   { echo "$as_me:$LINENO: result: no" >&5
17417 echo "${ECHO_T}no" >&6; }
17418
17419 fi
17420
17421
17422
17423
17424
17425
17426
17427
17428 db_found=no
17429 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17430 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17431
17432 # Check whether --with-mysql was given.
17433 if test "${with_mysql+set}" = set; then
17434   withval=$with_mysql;
17435   if test "$withval" != "no"; then
17436         if test "$withval" = "yes"; then
17437            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17438                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17439                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17440                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17441                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17442                    else
17443                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17444                    fi
17445                    MYSQL_BINDIR=/usr/local/mysql/bin
17446            elif test -f /usr/include/mysql/mysql.h; then
17447                    MYSQL_INCDIR=/usr/include/mysql
17448                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17449                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17450                            MYSQL_LIBDIR=/usr/lib64/mysql
17451                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17452                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17453                            MYSQL_LIBDIR=/usr/lib/mysql
17454                    else
17455                            MYSQL_LIBDIR=/usr/lib
17456                    fi
17457                    MYSQL_BINDIR=/usr/bin
17458            elif test -f /usr/include/mysql.h; then
17459                    MYSQL_INCDIR=/usr/include
17460                    if test -f /usr/lib64/libmysqlclient_r.a \
17461                         -o -f /usr/lib64/libmysqlclient_r.so; then
17462                            MYSQL_LIBDIR=/usr/lib64
17463                    else
17464                            MYSQL_LIBDIR=/usr/lib
17465                    fi
17466                    MYSQL_BINDIR=/usr/bin
17467            elif test -f /usr/local/include/mysql/mysql.h; then
17468                    MYSQL_INCDIR=/usr/local/include/mysql
17469                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17470                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17471                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17472                    else
17473                            MYSQL_LIBDIR=/usr/local/lib/mysql
17474                    fi
17475                    MYSQL_BINDIR=/usr/local/bin
17476            elif test -f /usr/local/include/mysql.h; then
17477                    MYSQL_INCDIR=/usr/local/include
17478                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17479                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17480                            MYSQL_LIBDIR=/usr/local/lib64
17481                    else
17482                            MYSQL_LIBDIR=/usr/local/lib
17483                    fi
17484                    MYSQL_BINDIR=/usr/local/bin
17485            else
17486               { echo "$as_me:$LINENO: result: no" >&5
17487 echo "${ECHO_T}no" >&6; }
17488               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17489 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17490    { (exit 1); exit 1; }; }
17491            fi
17492         else
17493            if test -f $withval/include/mysql/mysql.h; then
17494               MYSQL_INCDIR=$withval/include/mysql
17495               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17496                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17497                  MYSQL_LIBDIR=$withval/lib64/mysql
17498               else
17499                  MYSQL_LIBDIR=$withval/lib/mysql
17500                  # Solaris ...
17501                  if test -f $withval/lib/libmysqlclient_r.so; then
17502                     MYSQL_LIBDIR=$withval/lib
17503                  fi
17504               fi
17505               MYSQL_BINDIR=$withval/bin
17506            elif test -f $withval/include/mysql.h; then
17507               MYSQL_INCDIR=$withval/include
17508               if test -f $withval/lib64/libmysqlclient_r.a \
17509                    -o -f $withval/lib64/libmysqlclient_r.so; then
17510                  MYSQL_LIBDIR=$withval/lib64
17511               else
17512                  MYSQL_LIBDIR=$withval/lib
17513               fi
17514               MYSQL_BINDIR=$withval/bin
17515            else
17516               { echo "$as_me:$LINENO: result: no" >&5
17517 echo "${ECHO_T}no" >&6; }
17518               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17519 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17520    { (exit 1); exit 1; }; }
17521            fi
17522         fi
17523     SQL_INCLUDE=-I$MYSQL_INCDIR
17524     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17525          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17526        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17527        cat >>confdefs.h <<\_ACEOF
17528 #define HAVE_THREAD_SAFE_MYSQL 1
17529 _ACEOF
17530
17531     fi
17532     SQL_BINDIR=$MYSQL_BINDIR
17533     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17534
17535     cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_MYSQL 1
17537 _ACEOF
17538
17539     { echo "$as_me:$LINENO: result: yes" >&5
17540 echo "${ECHO_T}yes" >&6; }
17541     db_found=yes
17542     support_mysql=yes
17543     db_type=MySQL
17544     DB_TYPE=mysql
17545
17546   else
17547         { echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6; }
17549   fi
17550
17551
17552 fi
17553
17554
17555
17556 # Check whether --with-embedded-mysql was given.
17557 if test "${with_embedded_mysql+set}" = set; then
17558   withval=$with_embedded_mysql;
17559   if test "$withval" != "no"; then
17560         if test "$withval" = "yes"; then
17561                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17562                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17563                         if test -d /usr/local/mysql/lib64/mysql; then
17564                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17565                         else
17566                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17567                         fi
17568                         MYSQL_BINDIR=/usr/local/mysql/bin
17569                 elif test -f /usr/include/mysql/mysql.h; then
17570                         MYSQL_INCDIR=/usr/include/mysql
17571                         if test -d /usr/lib64/mysql; then
17572                                 MYSQL_LIBDIR=/usr/lib64/mysql
17573                         else
17574                                 MYSQL_LIBDIR=/usr/lib/mysql
17575                         fi
17576                         MYSQL_BINDIR=/usr/bin
17577                 elif test -f /usr/include/mysql.h; then
17578                         MYSQL_INCDIR=/usr/include
17579                         if test -d /usr/lib64; then
17580                                 MYSQL_LIBDIR=/usr/lib64
17581                         else
17582                                 MYSQL_LIBDIR=/usr/lib
17583                         fi
17584                         MYSQL_BINDIR=/usr/bin
17585                 elif test -f /usr/local/include/mysql/mysql.h; then
17586                         MYSQL_INCDIR=/usr/local/include/mysql
17587                         if test -d /usr/local/lib64/mysql; then
17588                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17589                         else
17590                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17591                         fi
17592                         MYSQL_BINDIR=/usr/local/bin
17593                 elif test -f /usr/local/include/mysql.h; then
17594                         MYSQL_INCDIR=/usr/local/include
17595                         if test -d /usr/local/lib64; then
17596                                 MYSQL_LIBDIR=/usr/local/lib64
17597                         else
17598                                 MYSQL_LIBDIR=/usr/local/lib
17599                         fi
17600                         MYSQL_BINDIR=/usr/local/bin
17601                 else
17602                    { echo "$as_me:$LINENO: result: no" >&5
17603 echo "${ECHO_T}no" >&6; }
17604                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17605 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17606    { (exit 1); exit 1; }; }
17607                 fi
17608         else
17609                 if test -f $withval/include/mysql/mysql.h; then
17610                         MYSQL_INCDIR=$withval/include/mysql
17611                         if test -d $withval/lib64/mysql; then
17612                                 MYSQL_LIBDIR=$withval/lib64/mysql
17613                         else
17614                                 MYSQL_LIBDIR=$withval/lib/mysql
17615                         fi
17616                         MYSQL_BINDIR=$withval/bin
17617                 elif test -f $withval/include/mysql.h; then
17618                         MYSQL_INCDIR=$withval/include
17619                         if test -d $withval/lib64; then
17620                                 MYSQL_LIBDIR=$withval/lib64
17621                         else
17622                                 MYSQL_LIBDIR=$withval/lib
17623                         fi
17624                         MYSQL_BINDIR=$withval/bin
17625                 else
17626                    { echo "$as_me:$LINENO: result: no" >&5
17627 echo "${ECHO_T}no" >&6; }
17628                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17629 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17630    { (exit 1); exit 1; }; }
17631                 fi
17632         fi
17633     SQL_INCLUDE=-I$MYSQL_INCDIR
17634     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17635     SQL_BINDIR=$MYSQL_BINDIR
17636     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17637
17638     cat >>confdefs.h <<\_ACEOF
17639 #define HAVE_MYSQL 1
17640 _ACEOF
17641
17642     cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_EMBEDDED_MYSQL 1
17644 _ACEOF
17645
17646     { echo "$as_me:$LINENO: result: yes" >&5
17647 echo "${ECHO_T}yes" >&6; }
17648     db_found=yes
17649     support_mysql=yes
17650     db_type=MySQL
17651     DB_TYPE=mysql
17652
17653   else
17654         { echo "$as_me:$LINENO: result: no" >&5
17655 echo "${ECHO_T}no" >&6; }
17656   fi
17657
17658
17659 fi
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670 db_found=no
17671 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17672 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17673
17674 # Check whether --with-sqlite3 was given.
17675 if test "${with_sqlite3+set}" = set; then
17676   withval=$with_sqlite3;
17677   if test "$withval" != "no"; then
17678      if test "$withval" = "yes"; then
17679         if test -f /usr/local/include/sqlite3.h; then
17680            SQLITE_INCDIR=/usr/local/include
17681            if test -d /usr/local/lib64; then
17682               SQLITE_LIBDIR=/usr/local/lib64
17683            else
17684               SQLITE_LIBDIR=/usr/local/lib
17685            fi
17686            SQLITE_BINDIR=/usr/local/bin
17687         elif test -f /usr/include/sqlite3.h; then
17688            SQLITE_INCDIR=/usr/include
17689            if test -d /usr/lib64; then
17690               SQLITE_LIBDIR=/usr/lib64
17691            else
17692               SQLITE_LIBDIR=/usr/lib
17693            fi
17694            SQLITE_BINDIR=/usr/bin
17695         elif test -f $prefix/include/sqlite3.h; then
17696            SQLITE_INCDIR=$prefix/include
17697            if test -d $prefix/lib64; then
17698               SQLITE_LIBDIR=$prefix/lib64
17699            else
17700               SQLITE_LIBDIR=$prefix/lib
17701            fi
17702            SQLITE_BINDIR=$prefix/bin
17703         else
17704            { echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6; }
17706            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17707 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17708    { (exit 1); exit 1; }; }
17709         fi
17710      else
17711         if test -f $withval/sqlite3.h; then
17712            SQLITE_INCDIR=$withval
17713            SQLITE_LIBDIR=$withval
17714            SQLITE_BINDIR=$withval
17715         elif test -f $withval/include/sqlite3.h; then
17716            SQLITE_INCDIR=$withval/include
17717            if test -d $withval/lib64; then
17718               SQLITE_LIBDIR=$withval/lib64
17719            else
17720               SQLITE_LIBDIR=$withval/lib
17721            fi
17722            SQLITE_BINDIR=$withval/bin
17723         else
17724            { echo "$as_me:$LINENO: result: no" >&5
17725 echo "${ECHO_T}no" >&6; }
17726            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17727 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17728    { (exit 1); exit 1; }; }
17729         fi
17730      fi
17731      SQL_INCLUDE=-I$SQLITE_INCDIR
17732      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17733      SQL_BINDIR=$SQLITE_BINDIR
17734      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17735
17736      cat >>confdefs.h <<\_ACEOF
17737 #define HAVE_SQLITE3 1
17738 _ACEOF
17739
17740      { echo "$as_me:$LINENO: result: yes" >&5
17741 echo "${ECHO_T}yes" >&6; }
17742      db_found=yes
17743      support_sqlite3=yes
17744      db_type=SQLite3
17745      DB_TYPE=sqlite3
17746
17747   else
17748      { echo "$as_me:$LINENO: result: no" >&5
17749 echo "${ECHO_T}no" >&6; }
17750   fi
17751
17752 else
17753
17754   { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17756
17757 fi
17758
17759
17760
17761
17762
17763
17764
17765
17766 db_found=no
17767 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17768 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17769
17770 # Check whether --with-sqlite was given.
17771 if test "${with_sqlite+set}" = set; then
17772   withval=$with_sqlite;
17773   if test "$withval" != "no"; then
17774      if test "$withval" = "yes"; then
17775         if test -f /usr/local/include/sqlite.h; then
17776            SQLITE_INCDIR=/usr/local/include
17777            if test -d /usr/local/lib64; then
17778               SQLITE_LIBDIR=/usr/local/lib64
17779            else
17780               SQLITE_LIBDIR=/usr/local/lib
17781            fi
17782            SQLITE_BINDIR=/usr/local/bin
17783         elif test -f /usr/include/sqlite.h; then
17784            SQLITE_INCDIR=/usr/include
17785            if test -d /usr/lib64; then
17786               SQLITE_LIBDIR=/usr/lib64
17787            else
17788               SQLITE_LIBDIR=/usr/lib
17789            fi
17790            SQLITE_BINDIR=/usr/bin
17791         elif test -f $prefix/include/sqlite.h; then
17792            SQLITE_INCDIR=$prefix/include
17793            if test -d $prefix/lib64; then
17794               SQLITE_LIBDIR=$prefix/lib64
17795            else
17796               SQLITE_LIBDIR=$prefix/lib
17797            fi
17798            SQLITE_BINDIR=$prefix/bin
17799         else
17800            { echo "$as_me:$LINENO: result: no" >&5
17801 echo "${ECHO_T}no" >&6; }
17802            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17803 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17804    { (exit 1); exit 1; }; }
17805         fi
17806      else
17807         if test -f $withval/sqlite.h; then
17808            SQLITE_INCDIR=$withval
17809            SQLITE_LIBDIR=$withval
17810            SQLITE_BINDIR=$withval
17811         elif test -f $withval/include/sqlite.h; then
17812            SQLITE_INCDIR=$withval/include
17813            if test -d $withval/lib64; then
17814               SQLITE_LIBDIR=$withval/lib64
17815            else
17816               SQLITE_LIBDIR=$withval/lib
17817            fi
17818            SQLITE_BINDIR=$withval/bin
17819         else
17820            { echo "$as_me:$LINENO: result: no" >&5
17821 echo "${ECHO_T}no" >&6; }
17822            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17823 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17824    { (exit 1); exit 1; }; }
17825         fi
17826      fi
17827      SQL_INCLUDE=-I$SQLITE_INCDIR
17828      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17829      SQL_BINDIR=$SQLITE_BINDIR
17830      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17831
17832      cat >>confdefs.h <<\_ACEOF
17833 #define HAVE_SQLITE 1
17834 _ACEOF
17835
17836      { echo "$as_me:$LINENO: result: yes" >&5
17837 echo "${ECHO_T}yes" >&6; }
17838      db_found=yes
17839      support_sqlite=yes
17840      db_type=SQLite
17841      DB_TYPE=sqlite
17842
17843   else
17844      { echo "$as_me:$LINENO: result: no" >&5
17845 echo "${ECHO_T}no" >&6; }
17846   fi
17847
17848 else
17849
17850   { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17852
17853 fi
17854
17855
17856
17857
17858
17859
17860
17861
17862 db_found=no
17863 { echo "$as_me:$LINENO: checking for DBI support" >&5
17864 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17865
17866 # Check whether --with-dbi was given.
17867 if test "${with_dbi+set}" = set; then
17868   withval=$with_dbi;
17869   if test "$withval" != "no"; then
17870      if test "$withval" = "yes"; then
17871         if test -f /usr/local/include/dbi/dbi.h; then
17872            DBI_INCDIR=/usr/local/dbi/include
17873            if test -d /usr/local/lib64; then
17874               DBI_LIBDIR=/usr/local/lib64
17875            else
17876               DBI_LIBDIR=/usr/local/lib
17877            fi
17878            DBI_BINDIR=/usr/local/bin
17879         elif test -f /usr/include/dbi/dbi.h; then
17880            DBI_INCDIR=/usr/include
17881            if test -d /usr/lib64; then
17882               DBI_LIBDIR=/usr/lib64
17883            else
17884               DBI_LIBDIR=/usr/lib
17885            fi
17886            DBI_BINDIR=/usr/bin
17887         elif test -f $prefix/include/dbi/dbi.h; then
17888            DBI_INCDIR=$prefix/include
17889            if test -d $prefix/lib64; then
17890               DBI_LIBDIR=$prefix/lib64
17891            else
17892               DBI_LIBDIR=$prefix/lib
17893            fi
17894            DBI_BINDIR=$prefix/bin
17895         else
17896            { echo "$as_me:$LINENO: result: no" >&5
17897 echo "${ECHO_T}no" >&6; }
17898            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17899 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17900    { (exit 1); exit 1; }; }
17901         fi
17902         if test -d /usr/local/lib/dbd; then
17903            DRIVERDIR=/usr/local/lib/dbd
17904            if test -d /usr/local/lib64/dbd; then
17905               DRIVERDIR=/usr/local/lib64/dbd
17906            else
17907               DRIVERDIR=/usr/local/lib/dbd
17908            fi
17909         elif test -d /usr/lib/dbd; then
17910            DRIVERDIR=/usr/lib/dbd
17911            if test -d /usr/lib64/dbd; then
17912               DRIVERDIR=/usr/lib64/dbd
17913            else
17914               DRIVERDIR=/usr/lib/dbd
17915            fi
17916         elif test -d $prefix/lib/dbd; then
17917            if test -d $prefix/lib64/dbd; then
17918               DRIVERDIR=$prefix/lib64/dbd
17919            else
17920               DRIVERDIR=$prefix/lib/dbd
17921            fi
17922         else
17923            { echo "$as_me:$LINENO: result: no" >&5
17924 echo "${ECHO_T}no" >&6; }
17925            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17926 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17927    { (exit 1); exit 1; }; }
17928         fi
17929      else
17930         if test -f $withval/dbi.h; then
17931            DBI_INCDIR=$withval
17932            DBI_LIBDIR=$withval
17933            DBI_BINDIR=$withval
17934         elif test -f $withval/include/dbi/dbi.h; then
17935            DBI_INCDIR=$withval/include
17936            if test -d $withval/lib64; then
17937               DBI_LIBDIR=$withval/lib64
17938            else
17939               DBI_LIBDIR=$withval/lib
17940            fi
17941            DBI_BINDIR=$withval/bin
17942         else
17943            { echo "$as_me:$LINENO: result: no" >&5
17944 echo "${ECHO_T}no" >&6; }
17945            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17946 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17947    { (exit 1); exit 1; }; }
17948         fi
17949         if test -d $withval/dbd; then
17950            DRIVERDIR=$withval/dbd
17951         elif test -d $withval/lib/; then
17952            if test -d $withval/lib64/dbd; then
17953               DRIVERDIR=$withval/lib64/dbd
17954            else
17955               DRIVERDIR=$withval/lib/dbd
17956            fi
17957         else
17958            { echo "$as_me:$LINENO: result: no" >&5
17959 echo "${ECHO_T}no" >&6; }
17960            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17961 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17962    { (exit 1); exit 1; }; }
17963         fi
17964      fi
17965      SQL_INCLUDE=-I$DBI_INCDIR
17966      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17967      SQL_BINDIR=$DBI_BINDIR
17968      SQL_LIB=$DBI_LIBDIR/libdbi.a
17969      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
17970
17971      cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_DBI 1
17973 _ACEOF
17974
17975      { echo "$as_me:$LINENO: result: yes" >&5
17976 echo "${ECHO_T}yes" >&6; }
17977      db_found=yes
17978      support_dbi=yes
17979      db_type=DBI
17980      DB_TYPE=dbi
17981
17982   else
17983      { echo "$as_me:$LINENO: result: no" >&5
17984 echo "${ECHO_T}no" >&6; }
17985   fi
17986
17987 else
17988
17989   { echo "$as_me:$LINENO: result: no" >&5
17990 echo "${ECHO_T}no" >&6; }
17991
17992 fi
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002 db_found=no
18003 db_prog=no
18004 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18005 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18006
18007 # Check whether --with-dbi-driver was given.
18008 if test "${with_dbi_driver+set}" = set; then
18009   withval=$with_dbi_driver;
18010   if test "$withval" != "no"; then
18011      case $withval in
18012         "mysql")
18013            db_prog="mysql"
18014            if test -f /usr/local/mysql/bin/mysql; then
18015               SQL_BINDIR=/usr/local/mysql/bin
18016            elif test -f /usr/bin/mysql; then
18017               SQL_BINDIR=/usr/bin
18018            elif test -f /usr/local/bin/mysql; then
18019               SQL_BINDIR=/usr/local/bin
18020            else
18021               { echo "$as_me:$LINENO: result: no" >&5
18022 echo "${ECHO_T}no" >&6; }
18023               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18024 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18025    { (exit 1); exit 1; }; }
18026            fi
18027         ;;
18028         "postgresql")
18029            db_prog="postgresql"
18030            PG_CONFIG=`which pg_config`
18031            if test -n "$PG_CONFIG";then
18032               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18033            elif test -f /usr/local/bin/psql; then
18034               SQL_BINDIR=/usr/local/bin
18035            elif test -f /usr/bin/psql; then
18036               SQL_BINDIR=/usr/bin
18037            else
18038               { echo "$as_me:$LINENO: result: no" >&5
18039 echo "${ECHO_T}no" >&6; }
18040               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18041 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18042    { (exit 1); exit 1; }; }
18043           fi
18044         ;;
18045         *)
18046            { echo "$as_me:$LINENO: result: no" >&5
18047 echo "${ECHO_T}no" >&6; }
18048            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18049 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18050    { (exit 1); exit 1; }; }
18051         ;;
18052      esac
18053
18054      { echo "$as_me:$LINENO: result: yes" >&5
18055 echo "${ECHO_T}yes" >&6; }
18056      DB_PROG=$db_prog
18057
18058   else
18059      { echo "$as_me:$LINENO: result: no" >&5
18060 echo "${ECHO_T}no" >&6; }
18061   fi
18062
18063 else
18064
18065   { echo "$as_me:$LINENO: result: no" >&5
18066 echo "${ECHO_T}no" >&6; }
18067
18068 fi
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078 # -------------------------------------------
18079 # enable batch attribute DB insert (default on)
18080 # -------------------------------------------
18081 support_batch_insert=no
18082 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18083 pkg=$?
18084 if test $pkg = 0; then
18085    support_batch_insert=yes
18086    # Check whether --enable-batch-insert was given.
18087 if test "${enable_batch_insert+set}" = set; then
18088   enableval=$enable_batch_insert; if test x$enableval = xno; then
18089        support_batch_insert=no
18090       else
18091        support_batch_insert=yes
18092      fi
18093 fi
18094
18095 fi
18096
18097 # Check if postgresql support batch mode
18098 if test x$DB_TYPE = xpostgresql; then
18099    A=`nm $SQL_LIB | grep PQputCopyData`
18100    pkg=$?
18101    if test $pkg != 0; then
18102       support_batch_insert=no
18103    fi
18104 fi
18105
18106 if test x$DB_TYPE = xdbi; then
18107    DB_TYPE=$DB_PROG
18108    db_type=$DB_PROG
18109 fi
18110
18111 if test $support_batch_insert = yes ; then
18112
18113 cat >>confdefs.h <<\_ACEOF
18114 #define HAVE_BATCH_FILE_INSERT 1
18115 _ACEOF
18116
18117 fi
18118
18119
18120 cat >>confdefs.h <<\_ACEOF
18121 #define PROTOTYPES 1
18122 _ACEOF
18123
18124
18125 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18126     if test -z "$CCOPTS"; then
18127         CCOPTS='-g -O2 -Wall'
18128     fi
18129     CFLAGS="$CCOPTS"
18130 fi
18131
18132
18133
18134
18135 largefile_support="no"
18136
18137    # Check whether --enable-largefile was given.
18138 if test "${enable_largefile+set}" = set; then
18139   enableval=$enable_largefile;
18140 fi
18141
18142    if test "$enable_largefile" != no; then
18143      if test -n "$ac_tool_prefix"; then
18144   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18145 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18148 if test "${ac_cv_prog_GETCONF+set}" = set; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151   if test -n "$GETCONF"; then
18152   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18153 else
18154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18155 for as_dir in $PATH
18156 do
18157   IFS=$as_save_IFS
18158   test -z "$as_dir" && as_dir=.
18159   for ac_exec_ext in '' $ac_executable_extensions; do
18160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18161     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18163     break 2
18164   fi
18165 done
18166 done
18167 IFS=$as_save_IFS
18168
18169 fi
18170 fi
18171 GETCONF=$ac_cv_prog_GETCONF
18172 if test -n "$GETCONF"; then
18173   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18174 echo "${ECHO_T}$GETCONF" >&6; }
18175 else
18176   { echo "$as_me:$LINENO: result: no" >&5
18177 echo "${ECHO_T}no" >&6; }
18178 fi
18179
18180
18181 fi
18182 if test -z "$ac_cv_prog_GETCONF"; then
18183   ac_ct_GETCONF=$GETCONF
18184   # Extract the first word of "getconf", so it can be a program name with args.
18185 set dummy getconf; ac_word=$2
18186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18188 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18189   echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191   if test -n "$ac_ct_GETCONF"; then
18192   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18193 else
18194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18195 for as_dir in $PATH
18196 do
18197   IFS=$as_save_IFS
18198   test -z "$as_dir" && as_dir=.
18199   for ac_exec_ext in '' $ac_executable_extensions; do
18200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18201     ac_cv_prog_ac_ct_GETCONF="getconf"
18202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18203     break 2
18204   fi
18205 done
18206 done
18207 IFS=$as_save_IFS
18208
18209 fi
18210 fi
18211 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18212 if test -n "$ac_ct_GETCONF"; then
18213   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18214 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18215 else
18216   { echo "$as_me:$LINENO: result: no" >&5
18217 echo "${ECHO_T}no" >&6; }
18218 fi
18219
18220   if test "x$ac_ct_GETCONF" = x; then
18221     GETCONF=""
18222   else
18223     case $cross_compiling:$ac_tool_warned in
18224 yes:)
18225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18226 whose name does not start with the host triplet.  If you think this
18227 configuration is useful to you, please write to autoconf@gnu.org." >&5
18228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18229 whose name does not start with the host triplet.  If you think this
18230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18231 ac_tool_warned=yes ;;
18232 esac
18233     GETCONF=$ac_ct_GETCONF
18234   fi
18235 else
18236   GETCONF="$ac_cv_prog_GETCONF"
18237 fi
18238
18239      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18240 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18241 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18242   echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18245         ac_cv_sys_largefile_CFLAGS=no
18246         case "$host_os" in
18247            # IRIX 6.2 and later require cc -n32.
18248            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18249              if test "$GCC" != yes; then
18250                ac_cv_sys_largefile_CFLAGS=-n32
18251              fi
18252              ac_save_CC="$CC"
18253              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18254              cat >conftest.$ac_ext <<_ACEOF
18255 /* confdefs.h.  */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h.  */
18260
18261 int
18262 main ()
18263 {
18264
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (ac_try="$ac_link"
18271 case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276   (eval "$ac_link") 2>conftest.er1
18277   ac_status=$?
18278   grep -v '^ *+' conftest.er1 >conftest.err
18279   rm -f conftest.er1
18280   cat conftest.err >&5
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); } && {
18283          test -z "$ac_c_werror_flag" ||
18284          test ! -s conftest.err
18285        } && test -s conftest$ac_exeext &&
18286        $as_test_x conftest$ac_exeext; then
18287   :
18288 else
18289   echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292         ac_cv_sys_largefile_CFLAGS=no
18293 fi
18294
18295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18296       conftest$ac_exeext conftest.$ac_ext
18297              CC="$ac_save_CC"
18298            esac
18299       }
18300 fi
18301 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18302 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18303      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18304 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18305 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18306   echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18309         ac_cv_sys_largefile_LDFLAGS=no
18310
18311       }
18312 fi
18313 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18314 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18315      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18316 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18317 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18318   echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18321         ac_cv_sys_largefile_LIBS=no
18322
18323       }
18324 fi
18325 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18326 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18327
18328      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18329        case "$ac_flag" in
18330        no) ;;
18331        -D_FILE_OFFSET_BITS=*) ;;
18332        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18333        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18334        -D?* | -I?*)
18335          case "$ac_flag" in
18336    no) ;;
18337    ?*)
18338      case "$CPPFLAGS" in
18339      '') CPPFLAGS="$ac_flag" ;;
18340      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18341      esac ;;
18342    esac ;;
18343        *)
18344          case "$ac_flag" in
18345    no) ;;
18346    ?*)
18347      case "$CFLAGS" in
18348      '') CFLAGS="$ac_flag" ;;
18349      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18350      esac ;;
18351    esac ;;
18352        esac
18353      done
18354      case "$ac_cv_sys_largefile_LDFLAGS" in
18355    no) ;;
18356    ?*)
18357      case "$LDFLAGS" in
18358      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18359      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18360      esac ;;
18361    esac
18362      case "$ac_cv_sys_largefile_LIBS" in
18363    no) ;;
18364    ?*)
18365      case "$LIBS" in
18366      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18367      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18368      esac ;;
18369    esac
18370      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18371 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18372 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18373   echo $ECHO_N "(cached) $ECHO_C" >&6
18374 else
18375   ac_cv_sys_file_offset_bits=no
18376       ac_cv_sys_file_offset_bits=64
18377       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18378         case "$ac_flag" in
18379         -D_FILE_OFFSET_BITS)
18380           ac_cv_sys_file_offset_bits=1 ;;
18381         -D_FILE_OFFSET_BITS=*)
18382           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18383         esac
18384       done
18385
18386 fi
18387 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18388 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18389    if test "$ac_cv_sys_file_offset_bits" != no; then
18390
18391 cat >>confdefs.h <<_ACEOF
18392 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18393 _ACEOF
18394
18395    fi
18396      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18397 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18398 if test "${ac_cv_sys_largefile_source+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401   ac_cv_sys_largefile_source=no
18402       ac_cv_sys_largefile_source=1
18403       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18404         case "$ac_flag" in
18405         -D_LARGEFILE_SOURCE)
18406           ac_cv_sys_largefile_source=1 ;;
18407         -D_LARGEFILE_SOURCE=*)
18408           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18409         esac
18410       done
18411
18412 fi
18413 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18414 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18415    if test "$ac_cv_sys_largefile_source" != no; then
18416
18417 cat >>confdefs.h <<_ACEOF
18418 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18419 _ACEOF
18420
18421    fi
18422      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18423 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18424 if test "${ac_cv_sys_large_files+set}" = set; then
18425   echo $ECHO_N "(cached) $ECHO_C" >&6
18426 else
18427   ac_cv_sys_large_files=no
18428       ac_cv_sys_large_files=1
18429       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18430         case "$ac_flag" in
18431         -D_LARGE_FILES)
18432           ac_cv_sys_large_files=1 ;;
18433         -D_LARGE_FILES=*)
18434           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18435         esac
18436       done
18437
18438 fi
18439 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18440 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18441    if test "$ac_cv_sys_large_files" != no; then
18442
18443 cat >>confdefs.h <<_ACEOF
18444 #define _LARGE_FILES $ac_cv_sys_large_files
18445 _ACEOF
18446
18447    fi
18448    fi
18449
18450
18451
18452 { echo "$as_me:$LINENO: checking for X" >&5
18453 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18454
18455
18456 # Check whether --with-x was given.
18457 if test "${with_x+set}" = set; then
18458   withval=$with_x;
18459 fi
18460
18461 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18462 if test "x$with_x" = xno; then
18463   # The user explicitly disabled X.
18464   have_x=disabled
18465 else
18466   case $x_includes,$x_libraries in #(
18467     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18468 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18469    { (exit 1); exit 1; }; };; #(
18470     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18471   echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473   # One or both of the vars are not set, and there is no cached value.
18474 ac_x_includes=no ac_x_libraries=no
18475 rm -f -r conftest.dir
18476 if mkdir conftest.dir; then
18477   cd conftest.dir
18478   cat >Imakefile <<'_ACEOF'
18479 incroot:
18480         @echo incroot='${INCROOT}'
18481 usrlibdir:
18482         @echo usrlibdir='${USRLIBDIR}'
18483 libdir:
18484         @echo libdir='${LIBDIR}'
18485 _ACEOF
18486   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18487     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18488     for ac_var in incroot usrlibdir libdir; do
18489       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18490     done
18491     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18492     for ac_extension in a so sl; do
18493       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18494          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18495         ac_im_usrlibdir=$ac_im_libdir; break
18496       fi
18497     done
18498     # Screen out bogus values from the imake configuration.  They are
18499     # bogus both because they are the default anyway, and because
18500     # using them would break gcc on systems where it needs fixed includes.
18501     case $ac_im_incroot in
18502         /usr/include) ac_x_includes= ;;
18503         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18504     esac
18505     case $ac_im_usrlibdir in
18506         /usr/lib | /lib) ;;
18507         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18508     esac
18509   fi
18510   cd ..
18511   rm -f -r conftest.dir
18512 fi
18513
18514 # Standard set of common directories for X headers.
18515 # Check X11 before X11Rn because it is often a symlink to the current release.
18516 ac_x_header_dirs='
18517 /usr/X11/include
18518 /usr/X11R6/include
18519 /usr/X11R5/include
18520 /usr/X11R4/include
18521
18522 /usr/include/X11
18523 /usr/include/X11R6
18524 /usr/include/X11R5
18525 /usr/include/X11R4
18526
18527 /usr/local/X11/include
18528 /usr/local/X11R6/include
18529 /usr/local/X11R5/include
18530 /usr/local/X11R4/include
18531
18532 /usr/local/include/X11
18533 /usr/local/include/X11R6
18534 /usr/local/include/X11R5
18535 /usr/local/include/X11R4
18536
18537 /usr/X386/include
18538 /usr/x386/include
18539 /usr/XFree86/include/X11
18540
18541 /usr/include
18542 /usr/local/include
18543 /usr/unsupported/include
18544 /usr/athena/include
18545 /usr/local/x11r5/include
18546 /usr/lpp/Xamples/include
18547
18548 /usr/openwin/include
18549 /usr/openwin/share/include'
18550
18551 if test "$ac_x_includes" = no; then
18552   # Guess where to find include files, by looking for Xlib.h.
18553   # First, try using that file with no special directory specified.
18554   cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h.  */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h.  */
18560 #include <X11/Xlib.h>
18561 _ACEOF
18562 if { (ac_try="$ac_cpp conftest.$ac_ext"
18563 case "(($ac_try" in
18564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565   *) ac_try_echo=$ac_try;;
18566 esac
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18569   ac_status=$?
18570   grep -v '^ *+' conftest.er1 >conftest.err
18571   rm -f conftest.er1
18572   cat conftest.err >&5
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); } >/dev/null && {
18575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18576          test ! -s conftest.err
18577        }; then
18578   # We can compile using X headers with no special include directory.
18579 ac_x_includes=
18580 else
18581   echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18583
18584   for ac_dir in $ac_x_header_dirs; do
18585   if test -r "$ac_dir/X11/Xlib.h"; then
18586     ac_x_includes=$ac_dir
18587     break
18588   fi
18589 done
18590 fi
18591
18592 rm -f conftest.err conftest.$ac_ext
18593 fi # $ac_x_includes = no
18594
18595 if test "$ac_x_libraries" = no; then
18596   # Check for the libraries.
18597   # See if we find them without any special options.
18598   # Don't add to $LIBS permanently.
18599   ac_save_LIBS=$LIBS
18600   LIBS="-lX11 $LIBS"
18601   cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h.  */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h.  */
18607 #include <X11/Xlib.h>
18608 int
18609 main ()
18610 {
18611 XrmInitialize ()
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_link") 2>conftest.er1
18624   ac_status=$?
18625   grep -v '^ *+' conftest.er1 >conftest.err
18626   rm -f conftest.er1
18627   cat conftest.err >&5
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } && {
18630          test -z "$ac_c_werror_flag" ||
18631          test ! -s conftest.err
18632        } && test -s conftest$ac_exeext &&
18633        $as_test_x conftest$ac_exeext; then
18634   LIBS=$ac_save_LIBS
18635 # We can link X programs with no special library path.
18636 ac_x_libraries=
18637 else
18638   echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18640
18641         LIBS=$ac_save_LIBS
18642 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18643 do
18644   # Don't even attempt the hair of trying to link an X program!
18645   for ac_extension in a so sl; do
18646     if test -r "$ac_dir/libX11.$ac_extension"; then
18647       ac_x_libraries=$ac_dir
18648       break 2
18649     fi
18650   done
18651 done
18652 fi
18653
18654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18655       conftest$ac_exeext conftest.$ac_ext
18656 fi # $ac_x_libraries = no
18657
18658 case $ac_x_includes,$ac_x_libraries in #(
18659   no,* | *,no | *\'*)
18660     # Didn't find X, or a directory has "'" in its name.
18661     ac_cv_have_x="have_x=no";; #(
18662   *)
18663     # Record where we found X for the cache.
18664     ac_cv_have_x="have_x=yes\
18665         ac_x_includes='$ac_x_includes'\
18666         ac_x_libraries='$ac_x_libraries'"
18667 esac
18668 fi
18669 ;; #(
18670     *) have_x=yes;;
18671   esac
18672   eval "$ac_cv_have_x"
18673 fi # $with_x != no
18674
18675 if test "$have_x" != yes; then
18676   { echo "$as_me:$LINENO: result: $have_x" >&5
18677 echo "${ECHO_T}$have_x" >&6; }
18678   no_x=yes
18679 else
18680   # If each of the values was on the command line, it overrides each guess.
18681   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18682   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18683   # Update the cache value to reflect the command line values.
18684   ac_cv_have_x="have_x=yes\
18685         ac_x_includes='$x_includes'\
18686         ac_x_libraries='$x_libraries'"
18687   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18688 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18689 fi
18690
18691 if test "$no_x" = yes; then
18692   # Not all programs may use this symbol, but it does not hurt to define it.
18693
18694 cat >>confdefs.h <<\_ACEOF
18695 #define X_DISPLAY_MISSING 1
18696 _ACEOF
18697
18698   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18699 else
18700   if test -n "$x_includes"; then
18701     X_CFLAGS="$X_CFLAGS -I$x_includes"
18702   fi
18703
18704   # It would also be nice to do this for all -L options, not just this one.
18705   if test -n "$x_libraries"; then
18706     X_LIBS="$X_LIBS -L$x_libraries"
18707     # For Solaris; some versions of Sun CC require a space after -R and
18708     # others require no space.  Words are not sufficient . . . .
18709     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18710 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18711     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18712     ac_xsave_c_werror_flag=$ac_c_werror_flag
18713     ac_c_werror_flag=yes
18714     cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h.  */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h.  */
18720
18721 int
18722 main ()
18723 {
18724
18725   ;
18726   return 0;
18727 }
18728 _ACEOF
18729 rm -f conftest.$ac_objext conftest$ac_exeext
18730 if { (ac_try="$ac_link"
18731 case "(($ac_try" in
18732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733   *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736   (eval "$ac_link") 2>conftest.er1
18737   ac_status=$?
18738   grep -v '^ *+' conftest.er1 >conftest.err
18739   rm -f conftest.er1
18740   cat conftest.err >&5
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); } && {
18743          test -z "$ac_c_werror_flag" ||
18744          test ! -s conftest.err
18745        } && test -s conftest$ac_exeext &&
18746        $as_test_x conftest$ac_exeext; then
18747   { echo "$as_me:$LINENO: result: no" >&5
18748 echo "${ECHO_T}no" >&6; }
18749        X_LIBS="$X_LIBS -R$x_libraries"
18750 else
18751   echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754         LIBS="$ac_xsave_LIBS -R $x_libraries"
18755        cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h.  */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h.  */
18761
18762 int
18763 main ()
18764 {
18765
18766   ;
18767   return 0;
18768 }
18769 _ACEOF
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777   (eval "$ac_link") 2>conftest.er1
18778   ac_status=$?
18779   grep -v '^ *+' conftest.er1 >conftest.err
18780   rm -f conftest.er1
18781   cat conftest.err >&5
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } && {
18784          test -z "$ac_c_werror_flag" ||
18785          test ! -s conftest.err
18786        } && test -s conftest$ac_exeext &&
18787        $as_test_x conftest$ac_exeext; then
18788   { echo "$as_me:$LINENO: result: yes" >&5
18789 echo "${ECHO_T}yes" >&6; }
18790           X_LIBS="$X_LIBS -R $x_libraries"
18791 else
18792   echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795         { echo "$as_me:$LINENO: result: neither works" >&5
18796 echo "${ECHO_T}neither works" >&6; }
18797 fi
18798
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800       conftest$ac_exeext conftest.$ac_ext
18801 fi
18802
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804       conftest$ac_exeext conftest.$ac_ext
18805     ac_c_werror_flag=$ac_xsave_c_werror_flag
18806     LIBS=$ac_xsave_LIBS
18807   fi
18808
18809   # Check for system-dependent libraries X programs must link with.
18810   # Do this before checking for the system-independent R6 libraries
18811   # (-lICE), since we may need -lsocket or whatever for X linking.
18812
18813   if test "$ISC" = yes; then
18814     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18815   else
18816     # Martyn Johnson says this is needed for Ultrix, if the X
18817     # libraries were built with DECnet support.  And Karl Berry says
18818     # the Alpha needs dnet_stub (dnet does not exist).
18819     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18820     cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826
18827 /* Override any GCC internal prototype to avoid an error.
18828    Use char because int might match the return type of a GCC
18829    builtin and then its argument prototype would still apply.  */
18830 #ifdef __cplusplus
18831 extern "C"
18832 #endif
18833 char XOpenDisplay ();
18834 int
18835 main ()
18836 {
18837 return XOpenDisplay ();
18838   ;
18839   return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (ac_try="$ac_link"
18844 case "(($ac_try" in
18845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846   *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849   (eval "$ac_link") 2>conftest.er1
18850   ac_status=$?
18851   grep -v '^ *+' conftest.er1 >conftest.err
18852   rm -f conftest.er1
18853   cat conftest.err >&5
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); } && {
18856          test -z "$ac_c_werror_flag" ||
18857          test ! -s conftest.err
18858        } && test -s conftest$ac_exeext &&
18859        $as_test_x conftest$ac_exeext; then
18860   :
18861 else
18862   echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18866 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18867 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   ac_check_lib_save_LIBS=$LIBS
18871 LIBS="-ldnet  $LIBS"
18872 cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18878
18879 /* Override any GCC internal prototype to avoid an error.
18880    Use char because int might match the return type of a GCC
18881    builtin and then its argument prototype would still apply.  */
18882 #ifdef __cplusplus
18883 extern "C"
18884 #endif
18885 char dnet_ntoa ();
18886 int
18887 main ()
18888 {
18889 return dnet_ntoa ();
18890   ;
18891   return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext conftest$ac_exeext
18895 if { (ac_try="$ac_link"
18896 case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_link") 2>conftest.er1
18902   ac_status=$?
18903   grep -v '^ *+' conftest.er1 >conftest.err
18904   rm -f conftest.er1
18905   cat conftest.err >&5
18906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907   (exit $ac_status); } && {
18908          test -z "$ac_c_werror_flag" ||
18909          test ! -s conftest.err
18910        } && test -s conftest$ac_exeext &&
18911        $as_test_x conftest$ac_exeext; then
18912   ac_cv_lib_dnet_dnet_ntoa=yes
18913 else
18914   echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917         ac_cv_lib_dnet_dnet_ntoa=no
18918 fi
18919
18920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18921       conftest$ac_exeext conftest.$ac_ext
18922 LIBS=$ac_check_lib_save_LIBS
18923 fi
18924 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18925 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18926 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18927   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18928 fi
18929
18930     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18931       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18932 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936   ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-ldnet_stub  $LIBS"
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 dnet_ntoa ();
18952 int
18953 main ()
18954 {
18955 return dnet_ntoa ();
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   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18979 else
18980   echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983         ac_cv_lib_dnet_stub_dnet_ntoa=no
18984 fi
18985
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987       conftest$ac_exeext conftest.$ac_ext
18988 LIBS=$ac_check_lib_save_LIBS
18989 fi
18990 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18991 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18992 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18993   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18994 fi
18995
18996     fi
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000       conftest$ac_exeext conftest.$ac_ext
19001     LIBS="$ac_xsave_LIBS"
19002
19003     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19004     # to get the SysV transport functions.
19005     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19006     # needs -lnsl.
19007     # The nsl library prevents programs from opening the X display
19008     # on Irix 5.2, according to T.E. Dickey.
19009     # The functions gethostbyname, getservbyname, and inet_addr are
19010     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19011     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19012 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19013 if test "${ac_cv_func_gethostbyname+set}" = set; then
19014   echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016   cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19024 #define gethostbyname innocuous_gethostbyname
19025
19026 /* System header to define __stub macros and hopefully few prototypes,
19027     which can conflict with char gethostbyname (); below.
19028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029     <limits.h> exists even on freestanding compilers.  */
19030
19031 #ifdef __STDC__
19032 # include <limits.h>
19033 #else
19034 # include <assert.h>
19035 #endif
19036
19037 #undef gethostbyname
19038
19039 /* Override any GCC internal prototype to avoid an error.
19040    Use char because int might match the return type of a GCC
19041    builtin and then its argument prototype would still apply.  */
19042 #ifdef __cplusplus
19043 extern "C"
19044 #endif
19045 char gethostbyname ();
19046 /* The GNU C library defines this for functions which it implements
19047     to always fail with ENOSYS.  Some functions are actually named
19048     something starting with __ and the normal name is an alias.  */
19049 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19050 choke me
19051 #endif
19052
19053 int
19054 main ()
19055 {
19056 return gethostbyname ();
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_link") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } && {
19075          test -z "$ac_c_werror_flag" ||
19076          test ! -s conftest.err
19077        } && test -s conftest$ac_exeext &&
19078        $as_test_x conftest$ac_exeext; then
19079   ac_cv_func_gethostbyname=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084         ac_cv_func_gethostbyname=no
19085 fi
19086
19087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19088       conftest$ac_exeext conftest.$ac_ext
19089 fi
19090 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19091 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19092
19093     if test $ac_cv_func_gethostbyname = no; then
19094       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19095 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19096 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19097   echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099   ac_check_lib_save_LIBS=$LIBS
19100 LIBS="-lnsl  $LIBS"
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h.  */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h.  */
19107
19108 /* Override any GCC internal prototype to avoid an error.
19109    Use char because int might match the return type of a GCC
19110    builtin and then its argument prototype would still apply.  */
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 char gethostbyname ();
19115 int
19116 main ()
19117 {
19118 return gethostbyname ();
19119   ;
19120   return 0;
19121 }
19122 _ACEOF
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (ac_try="$ac_link"
19125 case "(($ac_try" in
19126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127   *) ac_try_echo=$ac_try;;
19128 esac
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130   (eval "$ac_link") 2>conftest.er1
19131   ac_status=$?
19132   grep -v '^ *+' conftest.er1 >conftest.err
19133   rm -f conftest.er1
19134   cat conftest.err >&5
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); } && {
19137          test -z "$ac_c_werror_flag" ||
19138          test ! -s conftest.err
19139        } && test -s conftest$ac_exeext &&
19140        $as_test_x conftest$ac_exeext; then
19141   ac_cv_lib_nsl_gethostbyname=yes
19142 else
19143   echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146         ac_cv_lib_nsl_gethostbyname=no
19147 fi
19148
19149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19150       conftest$ac_exeext conftest.$ac_ext
19151 LIBS=$ac_check_lib_save_LIBS
19152 fi
19153 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19154 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19155 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19156   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19157 fi
19158
19159       if test $ac_cv_lib_nsl_gethostbyname = no; then
19160         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19161 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19162 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19163   echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165   ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-lbsd  $LIBS"
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h.  */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h.  */
19173
19174 /* Override any GCC internal prototype to avoid an error.
19175    Use char because int might match the return type of a GCC
19176    builtin and then its argument prototype would still apply.  */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 char gethostbyname ();
19181 int
19182 main ()
19183 {
19184 return gethostbyname ();
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193   *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196   (eval "$ac_link") 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } && {
19203          test -z "$ac_c_werror_flag" ||
19204          test ! -s conftest.err
19205        } && test -s conftest$ac_exeext &&
19206        $as_test_x conftest$ac_exeext; then
19207   ac_cv_lib_bsd_gethostbyname=yes
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212         ac_cv_lib_bsd_gethostbyname=no
19213 fi
19214
19215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19216       conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19218 fi
19219 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19220 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19221 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19222   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19223 fi
19224
19225       fi
19226     fi
19227
19228     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19229     # socket/setsockopt and other routines are undefined under SCO ODT
19230     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19231     # on later versions), says Simon Leinen: it contains gethostby*
19232     # variants that don't use the name server (or something).  -lsocket
19233     # must be given before -lnsl if both are needed.  We assume that
19234     # if connect needs -lnsl, so does gethostbyname.
19235     { echo "$as_me:$LINENO: checking for connect" >&5
19236 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19237 if test "${ac_cv_func_connect+set}" = set; then
19238   echo $ECHO_N "(cached) $ECHO_C" >&6
19239 else
19240   cat >conftest.$ac_ext <<_ACEOF
19241 /* confdefs.h.  */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h.  */
19246 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19248 #define connect innocuous_connect
19249
19250 /* System header to define __stub macros and hopefully few prototypes,
19251     which can conflict with char connect (); below.
19252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19253     <limits.h> exists even on freestanding compilers.  */
19254
19255 #ifdef __STDC__
19256 # include <limits.h>
19257 #else
19258 # include <assert.h>
19259 #endif
19260
19261 #undef connect
19262
19263 /* Override any GCC internal prototype to avoid an error.
19264    Use char because int might match the return type of a GCC
19265    builtin and then its argument prototype would still apply.  */
19266 #ifdef __cplusplus
19267 extern "C"
19268 #endif
19269 char connect ();
19270 /* The GNU C library defines this for functions which it implements
19271     to always fail with ENOSYS.  Some functions are actually named
19272     something starting with __ and the normal name is an alias.  */
19273 #if defined __stub_connect || defined __stub___connect
19274 choke me
19275 #endif
19276
19277 int
19278 main ()
19279 {
19280 return connect ();
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292   (eval "$ac_link") 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } && {
19299          test -z "$ac_c_werror_flag" ||
19300          test ! -s conftest.err
19301        } && test -s conftest$ac_exeext &&
19302        $as_test_x conftest$ac_exeext; then
19303   ac_cv_func_connect=yes
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308         ac_cv_func_connect=no
19309 fi
19310
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312       conftest$ac_exeext conftest.$ac_ext
19313 fi
19314 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19315 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19316
19317     if test $ac_cv_func_connect = no; then
19318       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19319 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19320 if test "${ac_cv_lib_socket_connect+set}" = set; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323   ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h.  */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h.  */
19331
19332 /* Override any GCC internal prototype to avoid an error.
19333    Use char because int might match the return type of a GCC
19334    builtin and then its argument prototype would still apply.  */
19335 #ifdef __cplusplus
19336 extern "C"
19337 #endif
19338 char connect ();
19339 int
19340 main ()
19341 {
19342 return connect ();
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354   (eval "$ac_link") 2>conftest.er1
19355   ac_status=$?
19356   grep -v '^ *+' conftest.er1 >conftest.err
19357   rm -f conftest.er1
19358   cat conftest.err >&5
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); } && {
19361          test -z "$ac_c_werror_flag" ||
19362          test ! -s conftest.err
19363        } && test -s conftest$ac_exeext &&
19364        $as_test_x conftest$ac_exeext; then
19365   ac_cv_lib_socket_connect=yes
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370         ac_cv_lib_socket_connect=no
19371 fi
19372
19373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19374       conftest$ac_exeext conftest.$ac_ext
19375 LIBS=$ac_check_lib_save_LIBS
19376 fi
19377 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19378 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19379 if test $ac_cv_lib_socket_connect = yes; then
19380   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19381 fi
19382
19383     fi
19384
19385     # Guillermo Gomez says -lposix is necessary on A/UX.
19386     { echo "$as_me:$LINENO: checking for remove" >&5
19387 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19388 if test "${ac_cv_func_remove+set}" = set; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391   cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h.  */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h.  */
19397 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19399 #define remove innocuous_remove
19400
19401 /* System header to define __stub macros and hopefully few prototypes,
19402     which can conflict with char remove (); below.
19403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19404     <limits.h> exists even on freestanding compilers.  */
19405
19406 #ifdef __STDC__
19407 # include <limits.h>
19408 #else
19409 # include <assert.h>
19410 #endif
19411
19412 #undef remove
19413
19414 /* Override any GCC internal prototype to avoid an error.
19415    Use char because int might match the return type of a GCC
19416    builtin and then its argument prototype would still apply.  */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char remove ();
19421 /* The GNU C library defines this for functions which it implements
19422     to always fail with ENOSYS.  Some functions are actually named
19423     something starting with __ and the normal name is an alias.  */
19424 #if defined __stub_remove || defined __stub___remove
19425 choke me
19426 #endif
19427
19428 int
19429 main ()
19430 {
19431 return remove ();
19432   ;
19433   return 0;
19434 }
19435 _ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (ac_try="$ac_link"
19438 case "(($ac_try" in
19439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440   *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443   (eval "$ac_link") 2>conftest.er1
19444   ac_status=$?
19445   grep -v '^ *+' conftest.er1 >conftest.err
19446   rm -f conftest.er1
19447   cat conftest.err >&5
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); } && {
19450          test -z "$ac_c_werror_flag" ||
19451          test ! -s conftest.err
19452        } && test -s conftest$ac_exeext &&
19453        $as_test_x conftest$ac_exeext; then
19454   ac_cv_func_remove=yes
19455 else
19456   echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459         ac_cv_func_remove=no
19460 fi
19461
19462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463       conftest$ac_exeext conftest.$ac_ext
19464 fi
19465 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19466 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19467
19468     if test $ac_cv_func_remove = no; then
19469       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19470 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19471 if test "${ac_cv_lib_posix_remove+set}" = set; then
19472   echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474   ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-lposix  $LIBS"
19476 cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482
19483 /* Override any GCC internal prototype to avoid an error.
19484    Use char because int might match the return type of a GCC
19485    builtin and then its argument prototype would still apply.  */
19486 #ifdef __cplusplus
19487 extern "C"
19488 #endif
19489 char remove ();
19490 int
19491 main ()
19492 {
19493 return remove ();
19494   ;
19495   return 0;
19496 }
19497 _ACEOF
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_link") 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } && {
19512          test -z "$ac_c_werror_flag" ||
19513          test ! -s conftest.err
19514        } && test -s conftest$ac_exeext &&
19515        $as_test_x conftest$ac_exeext; then
19516   ac_cv_lib_posix_remove=yes
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521         ac_cv_lib_posix_remove=no
19522 fi
19523
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525       conftest$ac_exeext conftest.$ac_ext
19526 LIBS=$ac_check_lib_save_LIBS
19527 fi
19528 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19529 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19530 if test $ac_cv_lib_posix_remove = yes; then
19531   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19532 fi
19533
19534     fi
19535
19536     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19537     { echo "$as_me:$LINENO: checking for shmat" >&5
19538 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19539 if test "${ac_cv_func_shmat+set}" = set; then
19540   echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542   cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h.  */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h.  */
19548 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19550 #define shmat innocuous_shmat
19551
19552 /* System header to define __stub macros and hopefully few prototypes,
19553     which can conflict with char shmat (); below.
19554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19555     <limits.h> exists even on freestanding compilers.  */
19556
19557 #ifdef __STDC__
19558 # include <limits.h>
19559 #else
19560 # include <assert.h>
19561 #endif
19562
19563 #undef shmat
19564
19565 /* Override any GCC internal prototype to avoid an error.
19566    Use char because int might match the return type of a GCC
19567    builtin and then its argument prototype would still apply.  */
19568 #ifdef __cplusplus
19569 extern "C"
19570 #endif
19571 char shmat ();
19572 /* The GNU C library defines this for functions which it implements
19573     to always fail with ENOSYS.  Some functions are actually named
19574     something starting with __ and the normal name is an alias.  */
19575 #if defined __stub_shmat || defined __stub___shmat
19576 choke me
19577 #endif
19578
19579 int
19580 main ()
19581 {
19582 return shmat ();
19583   ;
19584   return 0;
19585 }
19586 _ACEOF
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (ac_try="$ac_link"
19589 case "(($ac_try" in
19590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591   *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594   (eval "$ac_link") 2>conftest.er1
19595   ac_status=$?
19596   grep -v '^ *+' conftest.er1 >conftest.err
19597   rm -f conftest.er1
19598   cat conftest.err >&5
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); } && {
19601          test -z "$ac_c_werror_flag" ||
19602          test ! -s conftest.err
19603        } && test -s conftest$ac_exeext &&
19604        $as_test_x conftest$ac_exeext; then
19605   ac_cv_func_shmat=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610         ac_cv_func_shmat=no
19611 fi
19612
19613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19614       conftest$ac_exeext conftest.$ac_ext
19615 fi
19616 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19617 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19618
19619     if test $ac_cv_func_shmat = no; then
19620       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19621 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19622 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19623   echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625   ac_check_lib_save_LIBS=$LIBS
19626 LIBS="-lipc  $LIBS"
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633
19634 /* Override any GCC internal prototype to avoid an error.
19635    Use char because int might match the return type of a GCC
19636    builtin and then its argument prototype would still apply.  */
19637 #ifdef __cplusplus
19638 extern "C"
19639 #endif
19640 char shmat ();
19641 int
19642 main ()
19643 {
19644 return shmat ();
19645   ;
19646   return 0;
19647 }
19648 _ACEOF
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_link") 2>conftest.er1
19657   ac_status=$?
19658   grep -v '^ *+' conftest.er1 >conftest.err
19659   rm -f conftest.er1
19660   cat conftest.err >&5
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); } && {
19663          test -z "$ac_c_werror_flag" ||
19664          test ! -s conftest.err
19665        } && test -s conftest$ac_exeext &&
19666        $as_test_x conftest$ac_exeext; then
19667   ac_cv_lib_ipc_shmat=yes
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672         ac_cv_lib_ipc_shmat=no
19673 fi
19674
19675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19676       conftest$ac_exeext conftest.$ac_ext
19677 LIBS=$ac_check_lib_save_LIBS
19678 fi
19679 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19680 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19681 if test $ac_cv_lib_ipc_shmat = yes; then
19682   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19683 fi
19684
19685     fi
19686   fi
19687
19688   # Check for libraries that X11R6 Xt/Xaw programs need.
19689   ac_save_LDFLAGS=$LDFLAGS
19690   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19691   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19692   # check for ICE first), but we must link in the order -lSM -lICE or
19693   # we get undefined symbols.  So assume we have SM if we have ICE.
19694   # These have to be linked with before -lX11, unlike the other
19695   # libraries we check for below, so use a different variable.
19696   # John Interrante, Karl Berry
19697   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19698 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19699 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19700   echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702   ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19704 cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h.  */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h.  */
19710
19711 /* Override any GCC internal prototype to avoid an error.
19712    Use char because int might match the return type of a GCC
19713    builtin and then its argument prototype would still apply.  */
19714 #ifdef __cplusplus
19715 extern "C"
19716 #endif
19717 char IceConnectionNumber ();
19718 int
19719 main ()
19720 {
19721 return IceConnectionNumber ();
19722   ;
19723   return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733   (eval "$ac_link") 2>conftest.er1
19734   ac_status=$?
19735   grep -v '^ *+' conftest.er1 >conftest.err
19736   rm -f conftest.er1
19737   cat conftest.err >&5
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); } && {
19740          test -z "$ac_c_werror_flag" ||
19741          test ! -s conftest.err
19742        } && test -s conftest$ac_exeext &&
19743        $as_test_x conftest$ac_exeext; then
19744   ac_cv_lib_ICE_IceConnectionNumber=yes
19745 else
19746   echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19748
19749         ac_cv_lib_ICE_IceConnectionNumber=no
19750 fi
19751
19752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19753       conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19755 fi
19756 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19757 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19758 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19759   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19760 fi
19761
19762   LDFLAGS=$ac_save_LDFLAGS
19763
19764 fi
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797 for ac_header in \
19798         assert.h \
19799         fcntl.h \
19800         grp.h \
19801         pwd.h \
19802         libc.h \
19803         limits.h \
19804         stdarg.h \
19805         stdlib.h \
19806         stdint.h \
19807         string.h \
19808         strings.h \
19809         termios.h \
19810         termcap.h \
19811         term.h \
19812         unistd.h \
19813         sys/bitypes.h \
19814         sys/byteorder.h \
19815         sys/ioctl.h \
19816         sys/select.h \
19817         sys/socket.h \
19818         sys/sockio.h \
19819         sys/stat.h \
19820         sys/time.h \
19821         sys/types.h \
19822         arpa/nameser.h \
19823         resolv.h \
19824         mtio.h \
19825         sys/mtio.h \
19826         sys/tape.h \
19827         regex.h \
19828
19829 do
19830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 fi
19837 ac_res=`eval echo '${'$as_ac_Header'}'`
19838                { echo "$as_me:$LINENO: result: $ac_res" >&5
19839 echo "${ECHO_T}$ac_res" >&6; }
19840 else
19841   # Is the header compilable?
19842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h.  */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h.  */
19850 $ac_includes_default
19851 #include <$ac_header>
19852 _ACEOF
19853 rm -f conftest.$ac_objext
19854 if { (ac_try="$ac_compile"
19855 case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860   (eval "$ac_compile") 2>conftest.er1
19861   ac_status=$?
19862   grep -v '^ *+' conftest.er1 >conftest.err
19863   rm -f conftest.er1
19864   cat conftest.err >&5
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } && {
19867          test -z "$ac_c_werror_flag" ||
19868          test ! -s conftest.err
19869        } && test -s conftest.$ac_objext; then
19870   ac_header_compiler=yes
19871 else
19872   echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19874
19875         ac_header_compiler=no
19876 fi
19877
19878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19880 echo "${ECHO_T}$ac_header_compiler" >&6; }
19881
19882 # Is the header present?
19883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 #include <$ac_header>
19892 _ACEOF
19893 if { (ac_try="$ac_cpp conftest.$ac_ext"
19894 case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } >/dev/null && {
19906          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19907          test ! -s conftest.err
19908        }; then
19909   ac_header_preproc=yes
19910 else
19911   echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914   ac_header_preproc=no
19915 fi
19916
19917 rm -f conftest.err conftest.$ac_ext
19918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19919 echo "${ECHO_T}$ac_header_preproc" >&6; }
19920
19921 # So?  What about this header?
19922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19923   yes:no: )
19924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19928     ac_header_preproc=yes
19929     ;;
19930   no:yes:* )
19931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19943
19944     ;;
19945 esac
19946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19949   echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951   eval "$as_ac_Header=\$ac_header_preproc"
19952 fi
19953 ac_res=`eval echo '${'$as_ac_Header'}'`
19954                { echo "$as_me:$LINENO: result: $ac_res" >&5
19955 echo "${ECHO_T}$ac_res" >&6; }
19956
19957 fi
19958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19959   cat >>confdefs.h <<_ACEOF
19960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19961 _ACEOF
19962
19963 fi
19964
19965 done
19966
19967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19969 if test "${ac_cv_header_stdc+set}" = set; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 #include <stdlib.h>
19979 #include <stdarg.h>
19980 #include <string.h>
19981 #include <float.h>
19982
19983 int
19984 main ()
19985 {
19986
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (ac_try="$ac_compile"
19993 case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_compile") 2>conftest.er1
19999   ac_status=$?
20000   grep -v '^ *+' conftest.er1 >conftest.err
20001   rm -f conftest.er1
20002   cat conftest.err >&5
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); } && {
20005          test -z "$ac_c_werror_flag" ||
20006          test ! -s conftest.err
20007        } && test -s conftest.$ac_objext; then
20008   ac_cv_header_stdc=yes
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013         ac_cv_header_stdc=no
20014 fi
20015
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017
20018 if test $ac_cv_header_stdc = yes; then
20019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 #include <string.h>
20027
20028 _ACEOF
20029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20030   $EGREP "memchr" >/dev/null 2>&1; then
20031   :
20032 else
20033   ac_cv_header_stdc=no
20034 fi
20035 rm -f conftest*
20036
20037 fi
20038
20039 if test $ac_cv_header_stdc = yes; then
20040   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20041   cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047 #include <stdlib.h>
20048
20049 _ACEOF
20050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20051   $EGREP "free" >/dev/null 2>&1; then
20052   :
20053 else
20054   ac_cv_header_stdc=no
20055 fi
20056 rm -f conftest*
20057
20058 fi
20059
20060 if test $ac_cv_header_stdc = yes; then
20061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20062   if test "$cross_compiling" = yes; then
20063   :
20064 else
20065   cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071 #include <ctype.h>
20072 #include <stdlib.h>
20073 #if ((' ' & 0x0FF) == 0x020)
20074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20076 #else
20077 # define ISLOWER(c) \
20078                    (('a' <= (c) && (c) <= 'i') \
20079                      || ('j' <= (c) && (c) <= 'r') \
20080                      || ('s' <= (c) && (c) <= 'z'))
20081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20082 #endif
20083
20084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20085 int
20086 main ()
20087 {
20088   int i;
20089   for (i = 0; i < 256; i++)
20090     if (XOR (islower (i), ISLOWER (i))
20091         || toupper (i) != TOUPPER (i))
20092       return 2;
20093   return 0;
20094 }
20095 _ACEOF
20096 rm -f conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100   *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103   (eval "$ac_link") 2>&5
20104   ac_status=$?
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20107   { (case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_try") 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   :
20117 else
20118   echo "$as_me: program exited with status $ac_status" >&5
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122 ( exit $ac_status )
20123 ac_cv_header_stdc=no
20124 fi
20125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20126 fi
20127
20128
20129 fi
20130 fi
20131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20133 if test $ac_cv_header_stdc = yes; then
20134
20135 cat >>confdefs.h <<\_ACEOF
20136 #define STDC_HEADERS 1
20137 _ACEOF
20138
20139 fi
20140
20141 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20142 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20143 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146   cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152 #include <sys/types.h>
20153 int
20154 main ()
20155 {
20156 return makedev(0, 0);
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (ac_try="$ac_link"
20163 case "(($ac_try" in
20164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165   *) ac_try_echo=$ac_try;;
20166 esac
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168   (eval "$ac_link") 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } && {
20175          test -z "$ac_c_werror_flag" ||
20176          test ! -s conftest.err
20177        } && test -s conftest$ac_exeext &&
20178        $as_test_x conftest$ac_exeext; then
20179   ac_cv_header_sys_types_h_makedev=yes
20180 else
20181   echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184         ac_cv_header_sys_types_h_makedev=no
20185 fi
20186
20187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20188       conftest$ac_exeext conftest.$ac_ext
20189
20190 fi
20191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20192 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20193
20194 if test $ac_cv_header_sys_types_h_makedev = no; then
20195 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20196   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20197 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20198 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 fi
20201 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20202 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20203 else
20204   # Is the header compilable?
20205 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20206 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213 $ac_includes_default
20214 #include <sys/mkdev.h>
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_compile") 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && {
20230          test -z "$ac_c_werror_flag" ||
20231          test ! -s conftest.err
20232        } && test -s conftest.$ac_objext; then
20233   ac_header_compiler=yes
20234 else
20235   echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238         ac_header_compiler=no
20239 fi
20240
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20243 echo "${ECHO_T}$ac_header_compiler" >&6; }
20244
20245 # Is the header present?
20246 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20247 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20248 cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254 #include <sys/mkdev.h>
20255 _ACEOF
20256 if { (ac_try="$ac_cpp conftest.$ac_ext"
20257 case "(($ac_try" in
20258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259   *) ac_try_echo=$ac_try;;
20260 esac
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20263   ac_status=$?
20264   grep -v '^ *+' conftest.er1 >conftest.err
20265   rm -f conftest.er1
20266   cat conftest.err >&5
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); } >/dev/null && {
20269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20270          test ! -s conftest.err
20271        }; then
20272   ac_header_preproc=yes
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277   ac_header_preproc=no
20278 fi
20279
20280 rm -f conftest.err conftest.$ac_ext
20281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20282 echo "${ECHO_T}$ac_header_preproc" >&6; }
20283
20284 # So?  What about this header?
20285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20286   yes:no: )
20287     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20288 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20289     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20290 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20291     ac_header_preproc=yes
20292     ;;
20293   no:yes:* )
20294     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20295 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20296     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20297 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20298     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20299 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20300     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20301 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20303 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20304     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20305 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20306
20307     ;;
20308 esac
20309 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20310 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20311 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20315 fi
20316 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20317 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20318
20319 fi
20320 if test $ac_cv_header_sys_mkdev_h = yes; then
20321
20322 cat >>confdefs.h <<\_ACEOF
20323 #define MAJOR_IN_MKDEV 1
20324 _ACEOF
20325
20326 fi
20327
20328
20329
20330   if test $ac_cv_header_sys_mkdev_h = no; then
20331     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20332   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20333 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20334 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20335   echo $ECHO_N "(cached) $ECHO_C" >&6
20336 fi
20337 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20338 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20339 else
20340   # Is the header compilable?
20341 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20342 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h.  */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h.  */
20349 $ac_includes_default
20350 #include <sys/sysmacros.h>
20351 _ACEOF
20352 rm -f conftest.$ac_objext
20353 if { (ac_try="$ac_compile"
20354 case "(($ac_try" in
20355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356   *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359   (eval "$ac_compile") 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } && {
20366          test -z "$ac_c_werror_flag" ||
20367          test ! -s conftest.err
20368        } && test -s conftest.$ac_objext; then
20369   ac_header_compiler=yes
20370 else
20371   echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374         ac_header_compiler=no
20375 fi
20376
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20379 echo "${ECHO_T}$ac_header_compiler" >&6; }
20380
20381 # Is the header present?
20382 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20383 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20384 cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 #include <sys/sysmacros.h>
20391 _ACEOF
20392 if { (ac_try="$ac_cpp conftest.$ac_ext"
20393 case "(($ac_try" in
20394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395   *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20399   ac_status=$?
20400   grep -v '^ *+' conftest.er1 >conftest.err
20401   rm -f conftest.er1
20402   cat conftest.err >&5
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } >/dev/null && {
20405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20406          test ! -s conftest.err
20407        }; then
20408   ac_header_preproc=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413   ac_header_preproc=no
20414 fi
20415
20416 rm -f conftest.err conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6; }
20419
20420 # So?  What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20422   yes:no: )
20423     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20427     ac_header_preproc=yes
20428     ;;
20429   no:yes:* )
20430     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20432     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20434     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20436     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20438     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20440     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20442
20443     ;;
20444 esac
20445 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20446 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20447 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20448   echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20451 fi
20452 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20453 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20454
20455 fi
20456 if test $ac_cv_header_sys_sysmacros_h = yes; then
20457
20458 cat >>confdefs.h <<\_ACEOF
20459 #define MAJOR_IN_SYSMACROS 1
20460 _ACEOF
20461
20462 fi
20463
20464
20465   fi
20466 fi
20467
20468
20469
20470
20471
20472
20473 ac_header_dirent=no
20474 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20475   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20476 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20477 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481   cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487 #include <sys/types.h>
20488 #include <$ac_hdr>
20489
20490 int
20491 main ()
20492 {
20493 if ((DIR *) 0)
20494 return 0;
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_compile") 2>conftest.er1
20507   ac_status=$?
20508   grep -v '^ *+' conftest.er1 >conftest.err
20509   rm -f conftest.er1
20510   cat conftest.err >&5
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); } && {
20513          test -z "$ac_c_werror_flag" ||
20514          test ! -s conftest.err
20515        } && test -s conftest.$ac_objext; then
20516   eval "$as_ac_Header=yes"
20517 else
20518   echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521         eval "$as_ac_Header=no"
20522 fi
20523
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 ac_res=`eval echo '${'$as_ac_Header'}'`
20527                { echo "$as_me:$LINENO: result: $ac_res" >&5
20528 echo "${ECHO_T}$ac_res" >&6; }
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530   cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20532 _ACEOF
20533
20534 ac_header_dirent=$ac_hdr; break
20535 fi
20536
20537 done
20538 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20539 if test $ac_header_dirent = dirent.h; then
20540   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20542 if test "${ac_cv_search_opendir+set}" = set; then
20543   echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545   ac_func_search_save_LIBS=$LIBS
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552
20553 /* Override any GCC internal prototype to avoid an error.
20554    Use char because int might match the return type of a GCC
20555    builtin and then its argument prototype would still apply.  */
20556 #ifdef __cplusplus
20557 extern "C"
20558 #endif
20559 char opendir ();
20560 int
20561 main ()
20562 {
20563 return opendir ();
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 for ac_lib in '' dir; do
20569   if test -z "$ac_lib"; then
20570     ac_res="none required"
20571   else
20572     ac_res=-l$ac_lib
20573     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20574   fi
20575   rm -f conftest.$ac_objext conftest$ac_exeext
20576 if { (ac_try="$ac_link"
20577 case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_link") 2>conftest.er1
20583   ac_status=$?
20584   grep -v '^ *+' conftest.er1 >conftest.err
20585   rm -f conftest.er1
20586   cat conftest.err >&5
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } && {
20589          test -z "$ac_c_werror_flag" ||
20590          test ! -s conftest.err
20591        } && test -s conftest$ac_exeext &&
20592        $as_test_x conftest$ac_exeext; then
20593   ac_cv_search_opendir=$ac_res
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20602       conftest$ac_exeext
20603   if test "${ac_cv_search_opendir+set}" = set; then
20604   break
20605 fi
20606 done
20607 if test "${ac_cv_search_opendir+set}" = set; then
20608   :
20609 else
20610   ac_cv_search_opendir=no
20611 fi
20612 rm conftest.$ac_ext
20613 LIBS=$ac_func_search_save_LIBS
20614 fi
20615 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20616 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20617 ac_res=$ac_cv_search_opendir
20618 if test "$ac_res" != no; then
20619   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20620
20621 fi
20622
20623 else
20624   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20626 if test "${ac_cv_search_opendir+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629   ac_func_search_save_LIBS=$LIBS
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636
20637 /* Override any GCC internal prototype to avoid an error.
20638    Use char because int might match the return type of a GCC
20639    builtin and then its argument prototype would still apply.  */
20640 #ifdef __cplusplus
20641 extern "C"
20642 #endif
20643 char opendir ();
20644 int
20645 main ()
20646 {
20647 return opendir ();
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 for ac_lib in '' x; do
20653   if test -z "$ac_lib"; then
20654     ac_res="none required"
20655   else
20656     ac_res=-l$ac_lib
20657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20658   fi
20659   rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (ac_try="$ac_link"
20661 case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_link") 2>conftest.er1
20667   ac_status=$?
20668   grep -v '^ *+' conftest.er1 >conftest.err
20669   rm -f conftest.er1
20670   cat conftest.err >&5
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } && {
20673          test -z "$ac_c_werror_flag" ||
20674          test ! -s conftest.err
20675        } && test -s conftest$ac_exeext &&
20676        $as_test_x conftest$ac_exeext; then
20677   ac_cv_search_opendir=$ac_res
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682
20683 fi
20684
20685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20686       conftest$ac_exeext
20687   if test "${ac_cv_search_opendir+set}" = set; then
20688   break
20689 fi
20690 done
20691 if test "${ac_cv_search_opendir+set}" = set; then
20692   :
20693 else
20694   ac_cv_search_opendir=no
20695 fi
20696 rm conftest.$ac_ext
20697 LIBS=$ac_func_search_save_LIBS
20698 fi
20699 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20700 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20701 ac_res=$ac_cv_search_opendir
20702 if test "$ac_res" != no; then
20703   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20704
20705 fi
20706
20707 fi
20708
20709 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20710 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20711 if test "${ac_cv_header_stat_broken+set}" = set; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 #include <sys/types.h>
20721 #include <sys/stat.h>
20722
20723 #if defined S_ISBLK && defined S_IFDIR
20724 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20725 #endif
20726
20727 #if defined S_ISBLK && defined S_IFCHR
20728 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20729 #endif
20730
20731 #if defined S_ISLNK && defined S_IFREG
20732 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20733 #endif
20734
20735 #if defined S_ISSOCK && defined S_IFREG
20736 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20737 #endif
20738
20739 _ACEOF
20740 rm -f conftest.$ac_objext
20741 if { (ac_try="$ac_compile"
20742 case "(($ac_try" in
20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744   *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747   (eval "$ac_compile") 2>conftest.er1
20748   ac_status=$?
20749   grep -v '^ *+' conftest.er1 >conftest.err
20750   rm -f conftest.er1
20751   cat conftest.err >&5
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); } && {
20754          test -z "$ac_c_werror_flag" ||
20755          test ! -s conftest.err
20756        } && test -s conftest.$ac_objext; then
20757   ac_cv_header_stat_broken=no
20758 else
20759   echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762         ac_cv_header_stat_broken=yes
20763 fi
20764
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 fi
20767 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20768 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20769 if test $ac_cv_header_stat_broken = yes; then
20770
20771 cat >>confdefs.h <<\_ACEOF
20772 #define STAT_MACROS_BROKEN 1
20773 _ACEOF
20774
20775 fi
20776
20777 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20778 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20779 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20780   echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782   cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788 #include <sys/types.h>
20789 #include <sys/wait.h>
20790 #ifndef WEXITSTATUS
20791 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20792 #endif
20793 #ifndef WIFEXITED
20794 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20795 #endif
20796
20797 int
20798 main ()
20799 {
20800   int s;
20801   wait (&s);
20802   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_compile") 2>conftest.er1
20815   ac_status=$?
20816   grep -v '^ *+' conftest.er1 >conftest.err
20817   rm -f conftest.er1
20818   cat conftest.err >&5
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } && {
20821          test -z "$ac_c_werror_flag" ||
20822          test ! -s conftest.err
20823        } && test -s conftest.$ac_objext; then
20824   ac_cv_header_sys_wait_h=yes
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829         ac_cv_header_sys_wait_h=no
20830 fi
20831
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 fi
20834 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20835 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20836 if test $ac_cv_header_sys_wait_h = yes; then
20837
20838 cat >>confdefs.h <<\_ACEOF
20839 #define HAVE_SYS_WAIT_H 1
20840 _ACEOF
20841
20842 fi
20843
20844 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20845 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20846 if test "${ac_cv_header_time+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849   cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h.  */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h.  */
20855 #include <sys/types.h>
20856 #include <sys/time.h>
20857 #include <time.h>
20858
20859 int
20860 main ()
20861 {
20862 if ((struct tm *) 0)
20863 return 0;
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   ac_cv_header_time=yes
20886 else
20887   echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890         ac_cv_header_time=no
20891 fi
20892
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 fi
20895 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20896 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20897 if test $ac_cv_header_time = yes; then
20898
20899 cat >>confdefs.h <<\_ACEOF
20900 #define TIME_WITH_SYS_TIME 1
20901 _ACEOF
20902
20903 fi
20904
20905 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20906 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20907 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20908   echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910   cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h.  */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h.  */
20916 $ac_includes_default
20917 int
20918 main ()
20919 {
20920 static struct stat ac_aggr;
20921 if (ac_aggr.st_blksize)
20922 return 0;
20923   ;
20924   return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931   *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934   (eval "$ac_compile") 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } && {
20941          test -z "$ac_c_werror_flag" ||
20942          test ! -s conftest.err
20943        } && test -s conftest.$ac_objext; then
20944   ac_cv_member_struct_stat_st_blksize=yes
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949         cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955 $ac_includes_default
20956 int
20957 main ()
20958 {
20959 static struct stat ac_aggr;
20960 if (sizeof ac_aggr.st_blksize)
20961 return 0;
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973   (eval "$ac_compile") 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } && {
20980          test -z "$ac_c_werror_flag" ||
20981          test ! -s conftest.err
20982        } && test -s conftest.$ac_objext; then
20983   ac_cv_member_struct_stat_st_blksize=yes
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988         ac_cv_member_struct_stat_st_blksize=no
20989 fi
20990
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 fi
20996 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20997 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20998 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20999
21000 cat >>confdefs.h <<_ACEOF
21001 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21002 _ACEOF
21003
21004
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_ST_BLKSIZE 1
21007 _ACEOF
21008
21009 fi
21010
21011
21012 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21013 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21014 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h.  */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h.  */
21023 $ac_includes_default
21024 int
21025 main ()
21026 {
21027 static struct stat ac_aggr;
21028 if (ac_aggr.st_blocks)
21029 return 0;
21030   ;
21031   return 0;
21032 }
21033 _ACEOF
21034 rm -f conftest.$ac_objext
21035 if { (ac_try="$ac_compile"
21036 case "(($ac_try" in
21037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038   *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041   (eval "$ac_compile") 2>conftest.er1
21042   ac_status=$?
21043   grep -v '^ *+' conftest.er1 >conftest.err
21044   rm -f conftest.er1
21045   cat conftest.err >&5
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); } && {
21048          test -z "$ac_c_werror_flag" ||
21049          test ! -s conftest.err
21050        } && test -s conftest.$ac_objext; then
21051   ac_cv_member_struct_stat_st_blocks=yes
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056         cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h.  */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h.  */
21062 $ac_includes_default
21063 int
21064 main ()
21065 {
21066 static struct stat ac_aggr;
21067 if (sizeof ac_aggr.st_blocks)
21068 return 0;
21069   ;
21070   return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077   *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080   (eval "$ac_compile") 2>conftest.er1
21081   ac_status=$?
21082   grep -v '^ *+' conftest.er1 >conftest.err
21083   rm -f conftest.er1
21084   cat conftest.err >&5
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } && {
21087          test -z "$ac_c_werror_flag" ||
21088          test ! -s conftest.err
21089        } && test -s conftest.$ac_objext; then
21090   ac_cv_member_struct_stat_st_blocks=yes
21091 else
21092   echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095         ac_cv_member_struct_stat_st_blocks=no
21096 fi
21097
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 fi
21100
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 fi
21103 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21104 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21105 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21106
21107 cat >>confdefs.h <<_ACEOF
21108 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21109 _ACEOF
21110
21111
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_ST_BLOCKS 1
21114 _ACEOF
21115
21116 else
21117   case " $LIBOBJS " in
21118   *" fileblocks.$ac_objext "* ) ;;
21119   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21120  ;;
21121 esac
21122
21123 fi
21124
21125
21126 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21127 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21128 if test "${ac_cv_struct_tm+set}" = set; then
21129   echo $ECHO_N "(cached) $ECHO_C" >&6
21130 else
21131   cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 #include <sys/types.h>
21138 #include <time.h>
21139
21140 int
21141 main ()
21142 {
21143 struct tm tm;
21144                                      int *p = &tm.tm_sec;
21145                                      return !p;
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_compile") 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } && {
21164          test -z "$ac_c_werror_flag" ||
21165          test ! -s conftest.err
21166        } && test -s conftest.$ac_objext; then
21167   ac_cv_struct_tm=time.h
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172         ac_cv_struct_tm=sys/time.h
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 fi
21177 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21178 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21179 if test $ac_cv_struct_tm = sys/time.h; then
21180
21181 cat >>confdefs.h <<\_ACEOF
21182 #define TM_IN_SYS_TIME 1
21183 _ACEOF
21184
21185 fi
21186
21187 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21188 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21189 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21190   echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192   cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198 #include <sys/types.h>
21199 #include <$ac_cv_struct_tm>
21200
21201
21202 int
21203 main ()
21204 {
21205 static struct tm ac_aggr;
21206 if (ac_aggr.tm_zone)
21207 return 0;
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216   *) ac_try_echo=$ac_try;;
21217 esac
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219   (eval "$ac_compile") 2>conftest.er1
21220   ac_status=$?
21221   grep -v '^ *+' conftest.er1 >conftest.err
21222   rm -f conftest.er1
21223   cat conftest.err >&5
21224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); } && {
21226          test -z "$ac_c_werror_flag" ||
21227          test ! -s conftest.err
21228        } && test -s conftest.$ac_objext; then
21229   ac_cv_member_struct_tm_tm_zone=yes
21230 else
21231   echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234         cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <sys/types.h>
21241 #include <$ac_cv_struct_tm>
21242
21243
21244 int
21245 main ()
21246 {
21247 static struct tm ac_aggr;
21248 if (sizeof ac_aggr.tm_zone)
21249 return 0;
21250   ;
21251   return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext
21255 if { (ac_try="$ac_compile"
21256 case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_compile") 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } && {
21268          test -z "$ac_c_werror_flag" ||
21269          test ! -s conftest.err
21270        } && test -s conftest.$ac_objext; then
21271   ac_cv_member_struct_tm_tm_zone=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276         ac_cv_member_struct_tm_tm_zone=no
21277 fi
21278
21279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21280 fi
21281
21282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283 fi
21284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21285 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21286 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21287
21288 cat >>confdefs.h <<_ACEOF
21289 #define HAVE_STRUCT_TM_TM_ZONE 1
21290 _ACEOF
21291
21292
21293 fi
21294
21295 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21296
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_TM_ZONE 1
21299 _ACEOF
21300
21301 else
21302   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21303 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21304 if test "${ac_cv_have_decl_tzname+set}" = set; then
21305   echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307   cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h.  */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h.  */
21313 #include <time.h>
21314
21315 int
21316 main ()
21317 {
21318 #ifndef tzname
21319   (void) tzname;
21320 #endif
21321
21322   ;
21323   return 0;
21324 }
21325 _ACEOF
21326 rm -f conftest.$ac_objext
21327 if { (ac_try="$ac_compile"
21328 case "(($ac_try" in
21329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330   *) ac_try_echo=$ac_try;;
21331 esac
21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333   (eval "$ac_compile") 2>conftest.er1
21334   ac_status=$?
21335   grep -v '^ *+' conftest.er1 >conftest.err
21336   rm -f conftest.er1
21337   cat conftest.err >&5
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); } && {
21340          test -z "$ac_c_werror_flag" ||
21341          test ! -s conftest.err
21342        } && test -s conftest.$ac_objext; then
21343   ac_cv_have_decl_tzname=yes
21344 else
21345   echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348         ac_cv_have_decl_tzname=no
21349 fi
21350
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 fi
21353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21354 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21355 if test $ac_cv_have_decl_tzname = yes; then
21356
21357 cat >>confdefs.h <<_ACEOF
21358 #define HAVE_DECL_TZNAME 1
21359 _ACEOF
21360
21361
21362 else
21363   cat >>confdefs.h <<_ACEOF
21364 #define HAVE_DECL_TZNAME 0
21365 _ACEOF
21366
21367
21368 fi
21369
21370
21371   { echo "$as_me:$LINENO: checking for tzname" >&5
21372 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21373 if test "${ac_cv_var_tzname+set}" = set; then
21374   echo $ECHO_N "(cached) $ECHO_C" >&6
21375 else
21376   cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h.  */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h.  */
21382 #include <time.h>
21383 #if !HAVE_DECL_TZNAME
21384 extern char *tzname[];
21385 #endif
21386
21387 int
21388 main ()
21389 {
21390 return tzname[0][0];
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 rm -f conftest.$ac_objext conftest$ac_exeext
21396 if { (ac_try="$ac_link"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_link") 2>conftest.er1
21403   ac_status=$?
21404   grep -v '^ *+' conftest.er1 >conftest.err
21405   rm -f conftest.er1
21406   cat conftest.err >&5
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); } && {
21409          test -z "$ac_c_werror_flag" ||
21410          test ! -s conftest.err
21411        } && test -s conftest$ac_exeext &&
21412        $as_test_x conftest$ac_exeext; then
21413   ac_cv_var_tzname=yes
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418         ac_cv_var_tzname=no
21419 fi
21420
21421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21422       conftest$ac_exeext conftest.$ac_ext
21423 fi
21424 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21425 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21426   if test $ac_cv_var_tzname = yes; then
21427
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_TZNAME 1
21430 _ACEOF
21431
21432   fi
21433 fi
21434
21435
21436 { echo "$as_me:$LINENO: checking for utime.h" >&5
21437 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21438 if test "${ba_cv_header_utime_h+set}" = set; then
21439   echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441   cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447
21448 #include <sys/types.h>
21449 #include <utime.h>
21450 int
21451 main ()
21452 {
21453 struct utimbuf foo
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
21460 case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_compile") 2>conftest.er1
21466   ac_status=$?
21467   grep -v '^ *+' conftest.er1 >conftest.err
21468   rm -f conftest.er1
21469   cat conftest.err >&5
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); } && {
21472          test -z "$ac_c_werror_flag" ||
21473          test ! -s conftest.err
21474        } && test -s conftest.$ac_objext; then
21475   ba_cv_header_utime_h=yes
21476 else
21477   echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480         ba_cv_header_utime_h=no
21481 fi
21482
21483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21484 fi
21485 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21486 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21487 test $ba_cv_header_utime_h = yes &&
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_UTIME_H 1
21490 _ACEOF
21491
21492
21493 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21494 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21495 if test "${ba_cv_header_socklen_t+set}" = set; then
21496   echo $ECHO_N "(cached) $ECHO_C" >&6
21497 else
21498   cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h.  */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h.  */
21504
21505 #include <sys/types.h>
21506 #include <sys/socket.h>
21507 int
21508 main ()
21509 {
21510 socklen_t x
21511   ;
21512   return 0;
21513 }
21514 _ACEOF
21515 rm -f conftest.$ac_objext
21516 if { (ac_try="$ac_compile"
21517 case "(($ac_try" in
21518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519   *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522   (eval "$ac_compile") 2>conftest.er1
21523   ac_status=$?
21524   grep -v '^ *+' conftest.er1 >conftest.err
21525   rm -f conftest.er1
21526   cat conftest.err >&5
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } && {
21529          test -z "$ac_c_werror_flag" ||
21530          test ! -s conftest.err
21531        } && test -s conftest.$ac_objext; then
21532   ba_cv_header_socklen_t=yes
21533 else
21534   echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537         ba_cv_header_socklen_t=no
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541 fi
21542 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21543 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21544 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21545 #define HAVE_SOCKLEN_T 1
21546 _ACEOF
21547
21548
21549 { echo "$as_me:$LINENO: checking for bigendian" >&5
21550 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21551 if test "${ba_cv_bigendian+set}" = set; then
21552   echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554   if test "$cross_compiling" = yes; then
21555   ba_cv_bigendian=no
21556 else
21557   cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21564 _ACEOF
21565 rm -f conftest$ac_exeext
21566 if { (ac_try="$ac_link"
21567 case "(($ac_try" in
21568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569   *) ac_try_echo=$ac_try;;
21570 esac
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572   (eval "$ac_link") 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21576   { (case "(($ac_try" in
21577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578   *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581   (eval "$ac_try") 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); }; }; then
21585   ba_cv_bigendian=yes
21586 else
21587   echo "$as_me: program exited with status $ac_status" >&5
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591 ( exit $ac_status )
21592 ba_cv_bigendian=no
21593 fi
21594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21595 fi
21596
21597
21598 fi
21599 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21600 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21601 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_BIGENDIAN 1
21603 _ACEOF
21604
21605
21606 ac_ext=cpp
21607 ac_cpp='$CXXCPP $CPPFLAGS'
21608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21611
21612
21613 { echo "$as_me:$LINENO: checking for typeof" >&5
21614 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21615 if test "${ba_cv_have_typeof+set}" = set; then
21616   echo $ECHO_N "(cached) $ECHO_C" >&6
21617 else
21618   if test "$cross_compiling" = yes; then
21619   ba_cv_have_typeof=no
21620 else
21621   cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627 main(){char *a = 0; a = (typeof a)a;}
21628 _ACEOF
21629 rm -f conftest$ac_exeext
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633   *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636   (eval "$ac_link") 2>&5
21637   ac_status=$?
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21640   { (case "(($ac_try" in
21641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642   *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645   (eval "$ac_try") 2>&5
21646   ac_status=$?
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); }; }; then
21649   ba_cv_have_typeof=yes
21650 else
21651   echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ( exit $ac_status )
21656 ba_cv_have_typeof=no
21657 fi
21658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21659 fi
21660
21661
21662 fi
21663 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21664 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21665 test $ba_cv_have_typeof = yes &&
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_TYPEOF 1
21668 _ACEOF
21669
21670 ac_ext=c
21671 ac_cpp='$CPP $CPPFLAGS'
21672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21675
21676
21677 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21678 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21679 if test "${ac_cv_c_const+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688
21689 int
21690 main ()
21691 {
21692 /* FIXME: Include the comments suggested by Paul. */
21693 #ifndef __cplusplus
21694   /* Ultrix mips cc rejects this.  */
21695   typedef int charset[2];
21696   const charset cs;
21697   /* SunOS 4.1.1 cc rejects this.  */
21698   char const *const *pcpcc;
21699   char **ppc;
21700   /* NEC SVR4.0.2 mips cc rejects this.  */
21701   struct point {int x, y;};
21702   static struct point const zero = {0,0};
21703   /* AIX XL C 1.02.0.0 rejects this.
21704      It does not let you subtract one const X* pointer from another in
21705      an arm of an if-expression whose if-part is not a constant
21706      expression */
21707   const char *g = "string";
21708   pcpcc = &g + (g ? g-g : 0);
21709   /* HPUX 7.0 cc rejects these. */
21710   ++pcpcc;
21711   ppc = (char**) pcpcc;
21712   pcpcc = (char const *const *) ppc;
21713   { /* SCO 3.2v4 cc rejects this.  */
21714     char *t;
21715     char const *s = 0 ? (char *) 0 : (char const *) 0;
21716
21717     *t++ = 0;
21718     if (s) return 0;
21719   }
21720   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21721     int x[] = {25, 17};
21722     const int *foo = &x[0];
21723     ++foo;
21724   }
21725   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21726     typedef const int *iptr;
21727     iptr p = 0;
21728     ++p;
21729   }
21730   { /* AIX XL C 1.02.0.0 rejects this saying
21731        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21732     struct s { int j; const int *ap[3]; };
21733     struct s *b; b->j = 5;
21734   }
21735   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21736     const int foo = 10;
21737     if (!foo) return 0;
21738   }
21739   return !cs[0] && !zero.x;
21740 #endif
21741
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750   *) ac_try_echo=$ac_try;;
21751 esac
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753   (eval "$ac_compile") 2>conftest.er1
21754   ac_status=$?
21755   grep -v '^ *+' conftest.er1 >conftest.err
21756   rm -f conftest.er1
21757   cat conftest.err >&5
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); } && {
21760          test -z "$ac_c_werror_flag" ||
21761          test ! -s conftest.err
21762        } && test -s conftest.$ac_objext; then
21763   ac_cv_c_const=yes
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768         ac_cv_c_const=no
21769 fi
21770
21771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772 fi
21773 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21774 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21775 if test $ac_cv_c_const = no; then
21776
21777 cat >>confdefs.h <<\_ACEOF
21778 #define const
21779 _ACEOF
21780
21781 fi
21782
21783
21784
21785 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21786 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21787 fstype=no
21788 # The order of these tests is important.
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h.  */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h.  */
21795 #include <sys/statvfs.h>
21796 #include <sys/fstyp.h>
21797 _ACEOF
21798 if { (ac_try="$ac_cpp conftest.$ac_ext"
21799 case "(($ac_try" in
21800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801   *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21805   ac_status=$?
21806   grep -v '^ *+' conftest.er1 >conftest.err
21807   rm -f conftest.er1
21808   cat conftest.err >&5
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); } >/dev/null && {
21811          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21812          test ! -s conftest.err
21813        }; then
21814   cat >>confdefs.h <<\_ACEOF
21815 #define FSTYPE_STATVFS 1
21816 _ACEOF
21817  fstype=SVR4
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822
21823 fi
21824
21825 rm -f conftest.err conftest.$ac_ext
21826 if test $fstype = no; then
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h.  */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h.  */
21833 #include <sys/statfs.h>
21834 #include <sys/fstyp.h>
21835 _ACEOF
21836 if { (ac_try="$ac_cpp conftest.$ac_ext"
21837 case "(($ac_try" in
21838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839   *) ac_try_echo=$ac_try;;
21840 esac
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21843   ac_status=$?
21844   grep -v '^ *+' conftest.er1 >conftest.err
21845   rm -f conftest.er1
21846   cat conftest.err >&5
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); } >/dev/null && {
21849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21850          test ! -s conftest.err
21851        }; then
21852   cat >>confdefs.h <<\_ACEOF
21853 #define FSTYPE_USG_STATFS 1
21854 _ACEOF
21855  fstype=SVR3
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860
21861 fi
21862
21863 rm -f conftest.err conftest.$ac_ext
21864 fi
21865 if test $fstype = no; then
21866 cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #include <sys/statfs.h>
21873 #include <sys/vmount.h>
21874 _ACEOF
21875 if { (ac_try="$ac_cpp conftest.$ac_ext"
21876 case "(($ac_try" in
21877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878   *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21882   ac_status=$?
21883   grep -v '^ *+' conftest.er1 >conftest.err
21884   rm -f conftest.er1
21885   cat conftest.err >&5
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); } >/dev/null && {
21888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21889          test ! -s conftest.err
21890        }; then
21891   cat >>confdefs.h <<\_ACEOF
21892 #define FSTYPE_AIX_STATFS 1
21893 _ACEOF
21894  fstype=AIX
21895 else
21896   echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21898
21899
21900 fi
21901
21902 rm -f conftest.err conftest.$ac_ext
21903 fi
21904 if test $fstype = no; then
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 #include <mntent.h>
21912 _ACEOF
21913 if { (ac_try="$ac_cpp conftest.$ac_ext"
21914 case "(($ac_try" in
21915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916   *) ac_try_echo=$ac_try;;
21917 esac
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } >/dev/null && {
21926          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21927          test ! -s conftest.err
21928        }; then
21929   cat >>confdefs.h <<\_ACEOF
21930 #define FSTYPE_MNTENT 1
21931 _ACEOF
21932  fstype=4.3BSD
21933 else
21934   echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21936
21937
21938 fi
21939
21940 rm -f conftest.err conftest.$ac_ext
21941 fi
21942 if test $fstype = no; then
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949 #include <sys/mount.h>
21950
21951 _ACEOF
21952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21953   $EGREP "f_type;" >/dev/null 2>&1; then
21954   cat >>confdefs.h <<\_ACEOF
21955 #define FSTYPE_STATFS 1
21956 _ACEOF
21957  fstype=4.4BSD/OSF1
21958 fi
21959 rm -f conftest*
21960
21961 fi
21962 if test $fstype = no; then
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h.  */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h.  */
21969 #include <sys/mount.h>
21970 #include <sys/fs_types.h>
21971 _ACEOF
21972 if { (ac_try="$ac_cpp conftest.$ac_ext"
21973 case "(($ac_try" in
21974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975   *) ac_try_echo=$ac_try;;
21976 esac
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21979   ac_status=$?
21980   grep -v '^ *+' conftest.er1 >conftest.err
21981   rm -f conftest.er1
21982   cat conftest.err >&5
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); } >/dev/null && {
21985          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21986          test ! -s conftest.err
21987        }; then
21988   cat >>confdefs.h <<\_ACEOF
21989 #define FSTYPE_GETMNT 1
21990 _ACEOF
21991  fstype=Ultrix
21992 else
21993   echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996
21997 fi
21998
21999 rm -f conftest.err conftest.$ac_ext
22000 fi
22001 { echo "$as_me:$LINENO: result: $fstype" >&5
22002 echo "${ECHO_T}$fstype" >&6; }
22003
22004 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22005   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22006 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22007 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22008   echo $ECHO_N "(cached) $ECHO_C" >&6
22009 fi
22010 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22011 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22012 else
22013   # Is the header compilable?
22014 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22015 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22016 cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h.  */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h.  */
22022 $ac_includes_default
22023 #include <sys/statvfs.h>
22024 _ACEOF
22025 rm -f conftest.$ac_objext
22026 if { (ac_try="$ac_compile"
22027 case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032   (eval "$ac_compile") 2>conftest.er1
22033   ac_status=$?
22034   grep -v '^ *+' conftest.er1 >conftest.err
22035   rm -f conftest.er1
22036   cat conftest.err >&5
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); } && {
22039          test -z "$ac_c_werror_flag" ||
22040          test ! -s conftest.err
22041        } && test -s conftest.$ac_objext; then
22042   ac_header_compiler=yes
22043 else
22044   echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22046
22047         ac_header_compiler=no
22048 fi
22049
22050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22052 echo "${ECHO_T}$ac_header_compiler" >&6; }
22053
22054 # Is the header present?
22055 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22056 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22057 cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063 #include <sys/statvfs.h>
22064 _ACEOF
22065 if { (ac_try="$ac_cpp conftest.$ac_ext"
22066 case "(($ac_try" in
22067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068   *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22072   ac_status=$?
22073   grep -v '^ *+' conftest.er1 >conftest.err
22074   rm -f conftest.er1
22075   cat conftest.err >&5
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); } >/dev/null && {
22078          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22079          test ! -s conftest.err
22080        }; then
22081   ac_header_preproc=yes
22082 else
22083   echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.$ac_ext >&5
22085
22086   ac_header_preproc=no
22087 fi
22088
22089 rm -f conftest.err conftest.$ac_ext
22090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22091 echo "${ECHO_T}$ac_header_preproc" >&6; }
22092
22093 # So?  What about this header?
22094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22095   yes:no: )
22096     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22097 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22098     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22099 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22100     ac_header_preproc=yes
22101     ;;
22102   no:yes:* )
22103     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22104 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22105     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22106 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22107     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22108 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22109     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22110 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22111     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22112 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22113     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22114 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22115
22116     ;;
22117 esac
22118 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22119 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22120 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22121   echo $ECHO_N "(cached) $ECHO_C" >&6
22122 else
22123   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22124 fi
22125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22126 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22127
22128 fi
22129 if test $ac_cv_header_sys_statvfs_h = yes; then
22130
22131 cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_SYS_STATVFS_H 1
22133 _ACEOF
22134
22135 fi
22136
22137
22138
22139 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22140 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22141 if test "${ac_cv_type_signal+set}" = set; then
22142   echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150 #include <sys/types.h>
22151 #include <signal.h>
22152
22153 int
22154 main ()
22155 {
22156 return *(signal (0, 0)) (0) == 1;
22157   ;
22158   return 0;
22159 }
22160 _ACEOF
22161 rm -f conftest.$ac_objext
22162 if { (ac_try="$ac_compile"
22163 case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168   (eval "$ac_compile") 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } && {
22175          test -z "$ac_c_werror_flag" ||
22176          test ! -s conftest.err
22177        } && test -s conftest.$ac_objext; then
22178   ac_cv_type_signal=int
22179 else
22180   echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183         ac_cv_type_signal=void
22184 fi
22185
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187 fi
22188 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22189 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22190
22191 cat >>confdefs.h <<_ACEOF
22192 #define RETSIGTYPE $ac_cv_type_signal
22193 _ACEOF
22194
22195
22196
22197   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22198 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22199   if test "${bash_cv_signal_vintage+set}" = set; then
22200   echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202
22203     cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 #include <signal.h>
22210 int
22211 main ()
22212 {
22213
22214       sigset_t ss;
22215       struct sigaction sa;
22216       sigemptyset(&ss); sigsuspend(&ss);
22217       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22218       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22219
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228   *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231   (eval "$ac_link") 2>conftest.er1
22232   ac_status=$?
22233   grep -v '^ *+' conftest.er1 >conftest.err
22234   rm -f conftest.er1
22235   cat conftest.err >&5
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } && {
22238          test -z "$ac_c_werror_flag" ||
22239          test ! -s conftest.err
22240        } && test -s conftest$ac_exeext &&
22241        $as_test_x conftest$ac_exeext; then
22242   bash_cv_signal_vintage="posix"
22243 else
22244   echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247
22248       cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254 #include <signal.h>
22255 int
22256 main ()
22257 {
22258
22259           int mask = sigmask(SIGINT);
22260           sigsetmask(mask); sigblock(mask); sigpause(mask);
22261
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (ac_try="$ac_link"
22268 case "(($ac_try" in
22269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270   *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273   (eval "$ac_link") 2>conftest.er1
22274   ac_status=$?
22275   grep -v '^ *+' conftest.er1 >conftest.err
22276   rm -f conftest.er1
22277   cat conftest.err >&5
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } && {
22280          test -z "$ac_c_werror_flag" ||
22281          test ! -s conftest.err
22282        } && test -s conftest$ac_exeext &&
22283        $as_test_x conftest$ac_exeext; then
22284   bash_cv_signal_vintage="4.2bsd"
22285 else
22286   echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22288
22289
22290         cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296
22297           #include <signal.h>
22298           RETSIGTYPE foo() { }
22299 int
22300 main ()
22301 {
22302
22303                   int mask = sigmask(SIGINT);
22304                   sigset(SIGINT, foo); sigrelse(SIGINT);
22305                   sighold(SIGINT); sigpause(SIGINT);
22306
22307   ;
22308   return 0;
22309 }
22310 _ACEOF
22311 rm -f conftest.$ac_objext conftest$ac_exeext
22312 if { (ac_try="$ac_link"
22313 case "(($ac_try" in
22314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315   *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318   (eval "$ac_link") 2>conftest.er1
22319   ac_status=$?
22320   grep -v '^ *+' conftest.er1 >conftest.err
22321   rm -f conftest.er1
22322   cat conftest.err >&5
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); } && {
22325          test -z "$ac_c_werror_flag" ||
22326          test ! -s conftest.err
22327        } && test -s conftest$ac_exeext &&
22328        $as_test_x conftest$ac_exeext; then
22329   bash_cv_signal_vintage="svr3"
22330 else
22331   echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22333
22334         bash_cv_signal_vintage="v7"
22335
22336 fi
22337
22338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22339       conftest$ac_exeext conftest.$ac_ext
22340
22341 fi
22342
22343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22344       conftest$ac_exeext conftest.$ac_ext
22345
22346 fi
22347
22348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22349       conftest$ac_exeext conftest.$ac_ext
22350
22351 fi
22352
22353   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22354 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22355   if test "$bash_cv_signal_vintage" = "posix"; then
22356     cat >>confdefs.h <<\_ACEOF
22357 #define HAVE_POSIX_SIGNALS 1
22358 _ACEOF
22359
22360   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22361     cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_BSD_SIGNALS 1
22363 _ACEOF
22364
22365   elif test "$bash_cv_signal_vintage" = "svr3"; then
22366     cat >>confdefs.h <<\_ACEOF
22367 #define HAVE_USG_SIGHOLD 1
22368 _ACEOF
22369
22370   fi
22371
22372 { echo "$as_me:$LINENO: checking for mode_t" >&5
22373 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22374 if test "${ac_cv_type_mode_t+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383 $ac_includes_default
22384 typedef mode_t ac__type_new_;
22385 int
22386 main ()
22387 {
22388 if ((ac__type_new_ *) 0)
22389   return 0;
22390 if (sizeof (ac__type_new_))
22391   return 0;
22392   ;
22393   return 0;
22394 }
22395 _ACEOF
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400   *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403   (eval "$ac_compile") 2>conftest.er1
22404   ac_status=$?
22405   grep -v '^ *+' conftest.er1 >conftest.err
22406   rm -f conftest.er1
22407   cat conftest.err >&5
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); } && {
22410          test -z "$ac_c_werror_flag" ||
22411          test ! -s conftest.err
22412        } && test -s conftest.$ac_objext; then
22413   ac_cv_type_mode_t=yes
22414 else
22415   echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22417
22418         ac_cv_type_mode_t=no
22419 fi
22420
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 fi
22423 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22424 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22425 if test $ac_cv_type_mode_t = yes; then
22426   :
22427 else
22428
22429 cat >>confdefs.h <<_ACEOF
22430 #define mode_t int
22431 _ACEOF
22432
22433 fi
22434
22435 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22436 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22437 if test "${ac_cv_type_uid_t+set}" = set; then
22438   echo $ECHO_N "(cached) $ECHO_C" >&6
22439 else
22440   cat >conftest.$ac_ext <<_ACEOF
22441 /* confdefs.h.  */
22442 _ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h.  */
22446 #include <sys/types.h>
22447
22448 _ACEOF
22449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22450   $EGREP "uid_t" >/dev/null 2>&1; then
22451   ac_cv_type_uid_t=yes
22452 else
22453   ac_cv_type_uid_t=no
22454 fi
22455 rm -f conftest*
22456
22457 fi
22458 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22459 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22460 if test $ac_cv_type_uid_t = no; then
22461
22462 cat >>confdefs.h <<\_ACEOF
22463 #define uid_t int
22464 _ACEOF
22465
22466
22467 cat >>confdefs.h <<\_ACEOF
22468 #define gid_t int
22469 _ACEOF
22470
22471 fi
22472
22473 { echo "$as_me:$LINENO: checking for size_t" >&5
22474 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22475 if test "${ac_cv_type_size_t+set}" = set; then
22476   echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478   cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h.  */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h.  */
22484 $ac_includes_default
22485 typedef size_t ac__type_new_;
22486 int
22487 main ()
22488 {
22489 if ((ac__type_new_ *) 0)
22490   return 0;
22491 if (sizeof (ac__type_new_))
22492   return 0;
22493   ;
22494   return 0;
22495 }
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501   *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504   (eval "$ac_compile") 2>conftest.er1
22505   ac_status=$?
22506   grep -v '^ *+' conftest.er1 >conftest.err
22507   rm -f conftest.er1
22508   cat conftest.err >&5
22509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510   (exit $ac_status); } && {
22511          test -z "$ac_c_werror_flag" ||
22512          test ! -s conftest.err
22513        } && test -s conftest.$ac_objext; then
22514   ac_cv_type_size_t=yes
22515 else
22516   echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22518
22519         ac_cv_type_size_t=no
22520 fi
22521
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523 fi
22524 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22525 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22526 if test $ac_cv_type_size_t = yes; then
22527   :
22528 else
22529
22530 cat >>confdefs.h <<_ACEOF
22531 #define size_t unsigned int
22532 _ACEOF
22533
22534 fi
22535
22536 { echo "$as_me:$LINENO: checking for pid_t" >&5
22537 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22538 if test "${ac_cv_type_pid_t+set}" = set; then
22539   echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541   cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547 $ac_includes_default
22548 typedef pid_t ac__type_new_;
22549 int
22550 main ()
22551 {
22552 if ((ac__type_new_ *) 0)
22553   return 0;
22554 if (sizeof (ac__type_new_))
22555   return 0;
22556   ;
22557   return 0;
22558 }
22559 _ACEOF
22560 rm -f conftest.$ac_objext
22561 if { (ac_try="$ac_compile"
22562 case "(($ac_try" in
22563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564   *) ac_try_echo=$ac_try;;
22565 esac
22566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22567   (eval "$ac_compile") 2>conftest.er1
22568   ac_status=$?
22569   grep -v '^ *+' conftest.er1 >conftest.err
22570   rm -f conftest.er1
22571   cat conftest.err >&5
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } && {
22574          test -z "$ac_c_werror_flag" ||
22575          test ! -s conftest.err
22576        } && test -s conftest.$ac_objext; then
22577   ac_cv_type_pid_t=yes
22578 else
22579   echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582         ac_cv_type_pid_t=no
22583 fi
22584
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22586 fi
22587 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22588 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22589 if test $ac_cv_type_pid_t = yes; then
22590   :
22591 else
22592
22593 cat >>confdefs.h <<_ACEOF
22594 #define pid_t int
22595 _ACEOF
22596
22597 fi
22598
22599 { echo "$as_me:$LINENO: checking for off_t" >&5
22600 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22601 if test "${ac_cv_type_off_t+set}" = set; then
22602   echo $ECHO_N "(cached) $ECHO_C" >&6
22603 else
22604   cat >conftest.$ac_ext <<_ACEOF
22605 /* confdefs.h.  */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h.  */
22610 $ac_includes_default
22611 typedef off_t ac__type_new_;
22612 int
22613 main ()
22614 {
22615 if ((ac__type_new_ *) 0)
22616   return 0;
22617 if (sizeof (ac__type_new_))
22618   return 0;
22619   ;
22620   return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627   *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630   (eval "$ac_compile") 2>conftest.er1
22631   ac_status=$?
22632   grep -v '^ *+' conftest.er1 >conftest.err
22633   rm -f conftest.er1
22634   cat conftest.err >&5
22635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); } && {
22637          test -z "$ac_c_werror_flag" ||
22638          test ! -s conftest.err
22639        } && test -s conftest.$ac_objext; then
22640   ac_cv_type_off_t=yes
22641 else
22642   echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645         ac_cv_type_off_t=no
22646 fi
22647
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22649 fi
22650 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22651 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22652 if test $ac_cv_type_off_t = yes; then
22653   :
22654 else
22655
22656 cat >>confdefs.h <<_ACEOF
22657 #define off_t long int
22658 _ACEOF
22659
22660 fi
22661
22662 { echo "$as_me:$LINENO: checking for ino_t" >&5
22663 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22664 if test "${ac_cv_type_ino_t+set}" = set; then
22665   echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667   cat >conftest.$ac_ext <<_ACEOF
22668 /* confdefs.h.  */
22669 _ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h.  */
22673 $ac_includes_default
22674 typedef ino_t ac__type_new_;
22675 int
22676 main ()
22677 {
22678 if ((ac__type_new_ *) 0)
22679   return 0;
22680 if (sizeof (ac__type_new_))
22681   return 0;
22682   ;
22683   return 0;
22684 }
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690   *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693   (eval "$ac_compile") 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } && {
22700          test -z "$ac_c_werror_flag" ||
22701          test ! -s conftest.err
22702        } && test -s conftest.$ac_objext; then
22703   ac_cv_type_ino_t=yes
22704 else
22705   echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22707
22708         ac_cv_type_ino_t=no
22709 fi
22710
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 fi
22713 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22714 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22715 if test $ac_cv_type_ino_t = yes; then
22716   :
22717 else
22718
22719 cat >>confdefs.h <<_ACEOF
22720 #define ino_t unsigned long
22721 _ACEOF
22722
22723 fi
22724
22725 { echo "$as_me:$LINENO: checking for dev_t" >&5
22726 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22727 if test "${ac_cv_type_dev_t+set}" = set; then
22728   echo $ECHO_N "(cached) $ECHO_C" >&6
22729 else
22730   cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h.  */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h.  */
22736 $ac_includes_default
22737 typedef dev_t ac__type_new_;
22738 int
22739 main ()
22740 {
22741 if ((ac__type_new_ *) 0)
22742   return 0;
22743 if (sizeof (ac__type_new_))
22744   return 0;
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753   *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756   (eval "$ac_compile") 2>conftest.er1
22757   ac_status=$?
22758   grep -v '^ *+' conftest.er1 >conftest.err
22759   rm -f conftest.er1
22760   cat conftest.err >&5
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); } && {
22763          test -z "$ac_c_werror_flag" ||
22764          test ! -s conftest.err
22765        } && test -s conftest.$ac_objext; then
22766   ac_cv_type_dev_t=yes
22767 else
22768   echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771         ac_cv_type_dev_t=no
22772 fi
22773
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 fi
22776 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22777 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22778 if test $ac_cv_type_dev_t = yes; then
22779   :
22780 else
22781
22782 cat >>confdefs.h <<_ACEOF
22783 #define dev_t unsigned long
22784 _ACEOF
22785
22786 fi
22787
22788 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22789 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22790 if test "${ac_cv_type_daddr_t+set}" = set; then
22791   echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793   cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h.  */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h.  */
22799 $ac_includes_default
22800 typedef daddr_t ac__type_new_;
22801 int
22802 main ()
22803 {
22804 if ((ac__type_new_ *) 0)
22805   return 0;
22806 if (sizeof (ac__type_new_))
22807   return 0;
22808   ;
22809   return 0;
22810 }
22811 _ACEOF
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_compile") 2>conftest.er1
22820   ac_status=$?
22821   grep -v '^ *+' conftest.er1 >conftest.err
22822   rm -f conftest.er1
22823   cat conftest.err >&5
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } && {
22826          test -z "$ac_c_werror_flag" ||
22827          test ! -s conftest.err
22828        } && test -s conftest.$ac_objext; then
22829   ac_cv_type_daddr_t=yes
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834         ac_cv_type_daddr_t=no
22835 fi
22836
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 fi
22839 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22840 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22841 if test $ac_cv_type_daddr_t = yes; then
22842   :
22843 else
22844
22845 cat >>confdefs.h <<_ACEOF
22846 #define daddr_t long
22847 _ACEOF
22848
22849 fi
22850
22851 { echo "$as_me:$LINENO: checking for major_t" >&5
22852 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22853 if test "${ac_cv_type_major_t+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856   cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 $ac_includes_default
22863 typedef major_t ac__type_new_;
22864 int
22865 main ()
22866 {
22867 if ((ac__type_new_ *) 0)
22868   return 0;
22869 if (sizeof (ac__type_new_))
22870   return 0;
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (ac_try="$ac_compile"
22877 case "(($ac_try" in
22878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879   *) ac_try_echo=$ac_try;;
22880 esac
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882   (eval "$ac_compile") 2>conftest.er1
22883   ac_status=$?
22884   grep -v '^ *+' conftest.er1 >conftest.err
22885   rm -f conftest.er1
22886   cat conftest.err >&5
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); } && {
22889          test -z "$ac_c_werror_flag" ||
22890          test ! -s conftest.err
22891        } && test -s conftest.$ac_objext; then
22892   ac_cv_type_major_t=yes
22893 else
22894   echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897         ac_cv_type_major_t=no
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 fi
22902 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22903 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22904 if test $ac_cv_type_major_t = yes; then
22905   :
22906 else
22907
22908 cat >>confdefs.h <<_ACEOF
22909 #define major_t int
22910 _ACEOF
22911
22912 fi
22913
22914 { echo "$as_me:$LINENO: checking for minor_t" >&5
22915 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22916 if test "${ac_cv_type_minor_t+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919   cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h.  */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h.  */
22925 $ac_includes_default
22926 typedef minor_t ac__type_new_;
22927 int
22928 main ()
22929 {
22930 if ((ac__type_new_ *) 0)
22931   return 0;
22932 if (sizeof (ac__type_new_))
22933   return 0;
22934   ;
22935   return 0;
22936 }
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942   *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945   (eval "$ac_compile") 2>conftest.er1
22946   ac_status=$?
22947   grep -v '^ *+' conftest.er1 >conftest.err
22948   rm -f conftest.er1
22949   cat conftest.err >&5
22950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951   (exit $ac_status); } && {
22952          test -z "$ac_c_werror_flag" ||
22953          test ! -s conftest.err
22954        } && test -s conftest.$ac_objext; then
22955   ac_cv_type_minor_t=yes
22956 else
22957   echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22959
22960         ac_cv_type_minor_t=no
22961 fi
22962
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 fi
22965 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22966 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22967 if test $ac_cv_type_minor_t = yes; then
22968   :
22969 else
22970
22971 cat >>confdefs.h <<_ACEOF
22972 #define minor_t int
22973 _ACEOF
22974
22975 fi
22976
22977 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22978 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22979 if test "${ac_cv_type_ssize_t+set}" = set; then
22980   echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982   cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988 $ac_includes_default
22989 typedef ssize_t ac__type_new_;
22990 int
22991 main ()
22992 {
22993 if ((ac__type_new_ *) 0)
22994   return 0;
22995 if (sizeof (ac__type_new_))
22996   return 0;
22997   ;
22998   return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005   *) ac_try_echo=$ac_try;;
23006 esac
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008   (eval "$ac_compile") 2>conftest.er1
23009   ac_status=$?
23010   grep -v '^ *+' conftest.er1 >conftest.err
23011   rm -f conftest.er1
23012   cat conftest.err >&5
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); } && {
23015          test -z "$ac_c_werror_flag" ||
23016          test ! -s conftest.err
23017        } && test -s conftest.$ac_objext; then
23018   ac_cv_type_ssize_t=yes
23019 else
23020   echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023         ac_cv_type_ssize_t=no
23024 fi
23025
23026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027 fi
23028 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23029 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23030 if test $ac_cv_type_ssize_t = yes; then
23031   :
23032 else
23033
23034 cat >>confdefs.h <<_ACEOF
23035 #define ssize_t int
23036 _ACEOF
23037
23038 fi
23039
23040 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23041 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23042 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23043   echo $ECHO_N "(cached) $ECHO_C" >&6
23044 else
23045   cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051 $ac_includes_default
23052 int
23053 main ()
23054 {
23055 static struct stat ac_aggr;
23056 if (ac_aggr.st_blocks)
23057 return 0;
23058   ;
23059   return 0;
23060 }
23061 _ACEOF
23062 rm -f conftest.$ac_objext
23063 if { (ac_try="$ac_compile"
23064 case "(($ac_try" in
23065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066   *) ac_try_echo=$ac_try;;
23067 esac
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069   (eval "$ac_compile") 2>conftest.er1
23070   ac_status=$?
23071   grep -v '^ *+' conftest.er1 >conftest.err
23072   rm -f conftest.er1
23073   cat conftest.err >&5
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } && {
23076          test -z "$ac_c_werror_flag" ||
23077          test ! -s conftest.err
23078        } && test -s conftest.$ac_objext; then
23079   ac_cv_member_struct_stat_st_blocks=yes
23080 else
23081   echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23083
23084         cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h.  */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h.  */
23090 $ac_includes_default
23091 int
23092 main ()
23093 {
23094 static struct stat ac_aggr;
23095 if (sizeof ac_aggr.st_blocks)
23096 return 0;
23097   ;
23098   return 0;
23099 }
23100 _ACEOF
23101 rm -f conftest.$ac_objext
23102 if { (ac_try="$ac_compile"
23103 case "(($ac_try" in
23104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105   *) ac_try_echo=$ac_try;;
23106 esac
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108   (eval "$ac_compile") 2>conftest.er1
23109   ac_status=$?
23110   grep -v '^ *+' conftest.er1 >conftest.err
23111   rm -f conftest.er1
23112   cat conftest.err >&5
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); } && {
23115          test -z "$ac_c_werror_flag" ||
23116          test ! -s conftest.err
23117        } && test -s conftest.$ac_objext; then
23118   ac_cv_member_struct_stat_st_blocks=yes
23119 else
23120   echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23122
23123         ac_cv_member_struct_stat_st_blocks=no
23124 fi
23125
23126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 fi
23128
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 fi
23131 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23132 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23133 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23134
23135 cat >>confdefs.h <<_ACEOF
23136 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23137 _ACEOF
23138
23139
23140 cat >>confdefs.h <<\_ACEOF
23141 #define HAVE_ST_BLOCKS 1
23142 _ACEOF
23143
23144 else
23145   case " $LIBOBJS " in
23146   *" fileblocks.$ac_objext "* ) ;;
23147   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23148  ;;
23149 esac
23150
23151 fi
23152
23153
23154 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23155 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23156 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23157   echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159   cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165 $ac_includes_default
23166 int
23167 main ()
23168 {
23169 static struct stat ac_aggr;
23170 if (ac_aggr.st_rdev)
23171 return 0;
23172   ;
23173   return 0;
23174 }
23175 _ACEOF
23176 rm -f conftest.$ac_objext
23177 if { (ac_try="$ac_compile"
23178 case "(($ac_try" in
23179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180   *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183   (eval "$ac_compile") 2>conftest.er1
23184   ac_status=$?
23185   grep -v '^ *+' conftest.er1 >conftest.err
23186   rm -f conftest.er1
23187   cat conftest.err >&5
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); } && {
23190          test -z "$ac_c_werror_flag" ||
23191          test ! -s conftest.err
23192        } && test -s conftest.$ac_objext; then
23193   ac_cv_member_struct_stat_st_rdev=yes
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198         cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204 $ac_includes_default
23205 int
23206 main ()
23207 {
23208 static struct stat ac_aggr;
23209 if (sizeof ac_aggr.st_rdev)
23210 return 0;
23211   ;
23212   return 0;
23213 }
23214 _ACEOF
23215 rm -f conftest.$ac_objext
23216 if { (ac_try="$ac_compile"
23217 case "(($ac_try" in
23218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219   *) ac_try_echo=$ac_try;;
23220 esac
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222   (eval "$ac_compile") 2>conftest.er1
23223   ac_status=$?
23224   grep -v '^ *+' conftest.er1 >conftest.err
23225   rm -f conftest.er1
23226   cat conftest.err >&5
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); } && {
23229          test -z "$ac_c_werror_flag" ||
23230          test ! -s conftest.err
23231        } && test -s conftest.$ac_objext; then
23232   ac_cv_member_struct_stat_st_rdev=yes
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237         ac_cv_member_struct_stat_st_rdev=no
23238 fi
23239
23240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23241 fi
23242
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244 fi
23245 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23246 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23247 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23248
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_STRUCT_STAT_ST_RDEV 1
23251 _ACEOF
23252
23253
23254 cat >>confdefs.h <<\_ACEOF
23255 #define HAVE_ST_RDEV 1
23256 _ACEOF
23257
23258 fi
23259
23260
23261 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23262 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23263 if test "${ac_cv_struct_tm+set}" = set; then
23264   echo $ECHO_N "(cached) $ECHO_C" >&6
23265 else
23266   cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 #include <sys/types.h>
23273 #include <time.h>
23274
23275 int
23276 main ()
23277 {
23278 struct tm tm;
23279                                      int *p = &tm.tm_sec;
23280                                      return !p;
23281   ;
23282   return 0;
23283 }
23284 _ACEOF
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289   *) ac_try_echo=$ac_try;;
23290 esac
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292   (eval "$ac_compile") 2>conftest.er1
23293   ac_status=$?
23294   grep -v '^ *+' conftest.er1 >conftest.err
23295   rm -f conftest.er1
23296   cat conftest.err >&5
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); } && {
23299          test -z "$ac_c_werror_flag" ||
23300          test ! -s conftest.err
23301        } && test -s conftest.$ac_objext; then
23302   ac_cv_struct_tm=time.h
23303 else
23304   echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23306
23307         ac_cv_struct_tm=sys/time.h
23308 fi
23309
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 fi
23312 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23313 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23314 if test $ac_cv_struct_tm = sys/time.h; then
23315
23316 cat >>confdefs.h <<\_ACEOF
23317 #define TM_IN_SYS_TIME 1
23318 _ACEOF
23319
23320 fi
23321
23322 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23323 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23324 if test "${ac_cv_c_const+set}" = set; then
23325   echo $ECHO_N "(cached) $ECHO_C" >&6
23326 else
23327   cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h.  */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h.  */
23333
23334 int
23335 main ()
23336 {
23337 /* FIXME: Include the comments suggested by Paul. */
23338 #ifndef __cplusplus
23339   /* Ultrix mips cc rejects this.  */
23340   typedef int charset[2];
23341   const charset cs;
23342   /* SunOS 4.1.1 cc rejects this.  */
23343   char const *const *pcpcc;
23344   char **ppc;
23345   /* NEC SVR4.0.2 mips cc rejects this.  */
23346   struct point {int x, y;};
23347   static struct point const zero = {0,0};
23348   /* AIX XL C 1.02.0.0 rejects this.
23349      It does not let you subtract one const X* pointer from another in
23350      an arm of an if-expression whose if-part is not a constant
23351      expression */
23352   const char *g = "string";
23353   pcpcc = &g + (g ? g-g : 0);
23354   /* HPUX 7.0 cc rejects these. */
23355   ++pcpcc;
23356   ppc = (char**) pcpcc;
23357   pcpcc = (char const *const *) ppc;
23358   { /* SCO 3.2v4 cc rejects this.  */
23359     char *t;
23360     char const *s = 0 ? (char *) 0 : (char const *) 0;
23361
23362     *t++ = 0;
23363     if (s) return 0;
23364   }
23365   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23366     int x[] = {25, 17};
23367     const int *foo = &x[0];
23368     ++foo;
23369   }
23370   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23371     typedef const int *iptr;
23372     iptr p = 0;
23373     ++p;
23374   }
23375   { /* AIX XL C 1.02.0.0 rejects this saying
23376        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23377     struct s { int j; const int *ap[3]; };
23378     struct s *b; b->j = 5;
23379   }
23380   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23381     const int foo = 10;
23382     if (!foo) return 0;
23383   }
23384   return !cs[0] && !zero.x;
23385 #endif
23386
23387   ;
23388   return 0;
23389 }
23390 _ACEOF
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395   *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398   (eval "$ac_compile") 2>conftest.er1
23399   ac_status=$?
23400   grep -v '^ *+' conftest.er1 >conftest.err
23401   rm -f conftest.er1
23402   cat conftest.err >&5
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); } && {
23405          test -z "$ac_c_werror_flag" ||
23406          test ! -s conftest.err
23407        } && test -s conftest.$ac_objext; then
23408   ac_cv_c_const=yes
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413         ac_cv_c_const=no
23414 fi
23415
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 fi
23418 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23419 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23420 if test $ac_cv_c_const = no; then
23421
23422 cat >>confdefs.h <<\_ACEOF
23423 #define const
23424 _ACEOF
23425
23426 fi
23427
23428
23429
23430 { echo "$as_me:$LINENO: checking for char" >&5
23431 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23432 if test "${ac_cv_type_char+set}" = set; then
23433   echo $ECHO_N "(cached) $ECHO_C" >&6
23434 else
23435   cat >conftest.$ac_ext <<_ACEOF
23436 /* confdefs.h.  */
23437 _ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h.  */
23441 $ac_includes_default
23442 typedef char ac__type_new_;
23443 int
23444 main ()
23445 {
23446 if ((ac__type_new_ *) 0)
23447   return 0;
23448 if (sizeof (ac__type_new_))
23449   return 0;
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458   *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461   (eval "$ac_compile") 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } && {
23468          test -z "$ac_c_werror_flag" ||
23469          test ! -s conftest.err
23470        } && test -s conftest.$ac_objext; then
23471   ac_cv_type_char=yes
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476         ac_cv_type_char=no
23477 fi
23478
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480 fi
23481 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23482 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23483
23484 # The cast to long int works around a bug in the HP C Compiler
23485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23487 # This bug is HP SR number 8606223364.
23488 { echo "$as_me:$LINENO: checking size of char" >&5
23489 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23490 if test "${ac_cv_sizeof_char+set}" = set; then
23491   echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493   if test "$cross_compiling" = yes; then
23494   # Depending upon the size, compute the lo and hi bounds.
23495 cat >conftest.$ac_ext <<_ACEOF
23496 /* confdefs.h.  */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h.  */
23501 $ac_includes_default
23502    typedef char ac__type_sizeof_;
23503 int
23504 main ()
23505 {
23506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23507 test_array [0] = 0
23508
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext
23514 if { (ac_try="$ac_compile"
23515 case "(($ac_try" in
23516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517   *) ac_try_echo=$ac_try;;
23518 esac
23519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520   (eval "$ac_compile") 2>conftest.er1
23521   ac_status=$?
23522   grep -v '^ *+' conftest.er1 >conftest.err
23523   rm -f conftest.er1
23524   cat conftest.err >&5
23525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526   (exit $ac_status); } && {
23527          test -z "$ac_c_werror_flag" ||
23528          test ! -s conftest.err
23529        } && test -s conftest.$ac_objext; then
23530   ac_lo=0 ac_mid=0
23531   while :; do
23532     cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h.  */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h.  */
23538 $ac_includes_default
23539    typedef char ac__type_sizeof_;
23540 int
23541 main ()
23542 {
23543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23544 test_array [0] = 0
23545
23546   ;
23547   return 0;
23548 }
23549 _ACEOF
23550 rm -f conftest.$ac_objext
23551 if { (ac_try="$ac_compile"
23552 case "(($ac_try" in
23553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554   *) ac_try_echo=$ac_try;;
23555 esac
23556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23557   (eval "$ac_compile") 2>conftest.er1
23558   ac_status=$?
23559   grep -v '^ *+' conftest.er1 >conftest.err
23560   rm -f conftest.er1
23561   cat conftest.err >&5
23562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563   (exit $ac_status); } && {
23564          test -z "$ac_c_werror_flag" ||
23565          test ! -s conftest.err
23566        } && test -s conftest.$ac_objext; then
23567   ac_hi=$ac_mid; break
23568 else
23569   echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23571
23572         ac_lo=`expr $ac_mid + 1`
23573                         if test $ac_lo -le $ac_mid; then
23574                           ac_lo= ac_hi=
23575                           break
23576                         fi
23577                         ac_mid=`expr 2 '*' $ac_mid + 1`
23578 fi
23579
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581   done
23582 else
23583   echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23585
23586         cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h.  */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h.  */
23592 $ac_includes_default
23593    typedef char ac__type_sizeof_;
23594 int
23595 main ()
23596 {
23597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23598 test_array [0] = 0
23599
23600   ;
23601   return 0;
23602 }
23603 _ACEOF
23604 rm -f conftest.$ac_objext
23605 if { (ac_try="$ac_compile"
23606 case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611   (eval "$ac_compile") 2>conftest.er1
23612   ac_status=$?
23613   grep -v '^ *+' conftest.er1 >conftest.err
23614   rm -f conftest.er1
23615   cat conftest.err >&5
23616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); } && {
23618          test -z "$ac_c_werror_flag" ||
23619          test ! -s conftest.err
23620        } && test -s conftest.$ac_objext; then
23621   ac_hi=-1 ac_mid=-1
23622   while :; do
23623     cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h.  */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h.  */
23629 $ac_includes_default
23630    typedef char ac__type_sizeof_;
23631 int
23632 main ()
23633 {
23634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23635 test_array [0] = 0
23636
23637   ;
23638   return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext
23642 if { (ac_try="$ac_compile"
23643 case "(($ac_try" in
23644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645   *) ac_try_echo=$ac_try;;
23646 esac
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648   (eval "$ac_compile") 2>conftest.er1
23649   ac_status=$?
23650   grep -v '^ *+' conftest.er1 >conftest.err
23651   rm -f conftest.er1
23652   cat conftest.err >&5
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); } && {
23655          test -z "$ac_c_werror_flag" ||
23656          test ! -s conftest.err
23657        } && test -s conftest.$ac_objext; then
23658   ac_lo=$ac_mid; break
23659 else
23660   echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23662
23663         ac_hi=`expr '(' $ac_mid ')' - 1`
23664                         if test $ac_mid -le $ac_hi; then
23665                           ac_lo= ac_hi=
23666                           break
23667                         fi
23668                         ac_mid=`expr 2 '*' $ac_mid`
23669 fi
23670
23671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23672   done
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677         ac_lo= ac_hi=
23678 fi
23679
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681 fi
23682
23683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684 # Binary search between lo and hi bounds.
23685 while test "x$ac_lo" != "x$ac_hi"; do
23686   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23687   cat >conftest.$ac_ext <<_ACEOF
23688 /* confdefs.h.  */
23689 _ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h.  */
23693 $ac_includes_default
23694    typedef char ac__type_sizeof_;
23695 int
23696 main ()
23697 {
23698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23699 test_array [0] = 0
23700
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext
23706 if { (ac_try="$ac_compile"
23707 case "(($ac_try" in
23708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709   *) ac_try_echo=$ac_try;;
23710 esac
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712   (eval "$ac_compile") 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } && {
23719          test -z "$ac_c_werror_flag" ||
23720          test ! -s conftest.err
23721        } && test -s conftest.$ac_objext; then
23722   ac_hi=$ac_mid
23723 else
23724   echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23726
23727         ac_lo=`expr '(' $ac_mid ')' + 1`
23728 fi
23729
23730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23731 done
23732 case $ac_lo in
23733 ?*) ac_cv_sizeof_char=$ac_lo;;
23734 '') if test "$ac_cv_type_char" = yes; then
23735      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23736 See \`config.log' for more details." >&5
23737 echo "$as_me: error: cannot compute sizeof (char)
23738 See \`config.log' for more details." >&2;}
23739    { (exit 77); exit 77; }; }
23740    else
23741      ac_cv_sizeof_char=0
23742    fi ;;
23743 esac
23744 else
23745   cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751 $ac_includes_default
23752    typedef char ac__type_sizeof_;
23753 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23754 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23755 #include <stdio.h>
23756 #include <stdlib.h>
23757 int
23758 main ()
23759 {
23760
23761   FILE *f = fopen ("conftest.val", "w");
23762   if (! f)
23763     return 1;
23764   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23765     {
23766       long int i = longval ();
23767       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23768         return 1;
23769       fprintf (f, "%ld\n", i);
23770     }
23771   else
23772     {
23773       unsigned long int i = ulongval ();
23774       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23775         return 1;
23776       fprintf (f, "%lu\n", i);
23777     }
23778   return ferror (f) || fclose (f) != 0;
23779
23780   ;
23781   return 0;
23782 }
23783 _ACEOF
23784 rm -f conftest$ac_exeext
23785 if { (ac_try="$ac_link"
23786 case "(($ac_try" in
23787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788   *) ac_try_echo=$ac_try;;
23789 esac
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791   (eval "$ac_link") 2>&5
23792   ac_status=$?
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795   { (case "(($ac_try" in
23796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797   *) ac_try_echo=$ac_try;;
23798 esac
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800   (eval "$ac_try") 2>&5
23801   ac_status=$?
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); }; }; then
23804   ac_cv_sizeof_char=`cat conftest.val`
23805 else
23806   echo "$as_me: program exited with status $ac_status" >&5
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23809
23810 ( exit $ac_status )
23811 if test "$ac_cv_type_char" = yes; then
23812      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23813 See \`config.log' for more details." >&5
23814 echo "$as_me: error: cannot compute sizeof (char)
23815 See \`config.log' for more details." >&2;}
23816    { (exit 77); exit 77; }; }
23817    else
23818      ac_cv_sizeof_char=0
23819    fi
23820 fi
23821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23822 fi
23823 rm -f conftest.val
23824 fi
23825 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23826 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23827
23828
23829
23830 cat >>confdefs.h <<_ACEOF
23831 #define SIZEOF_CHAR $ac_cv_sizeof_char
23832 _ACEOF
23833
23834
23835 { echo "$as_me:$LINENO: checking for short int" >&5
23836 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23837 if test "${ac_cv_type_short_int+set}" = set; then
23838   echo $ECHO_N "(cached) $ECHO_C" >&6
23839 else
23840   cat >conftest.$ac_ext <<_ACEOF
23841 /* confdefs.h.  */
23842 _ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h.  */
23846 $ac_includes_default
23847 typedef short int ac__type_new_;
23848 int
23849 main ()
23850 {
23851 if ((ac__type_new_ *) 0)
23852   return 0;
23853 if (sizeof (ac__type_new_))
23854   return 0;
23855   ;
23856   return 0;
23857 }
23858 _ACEOF
23859 rm -f conftest.$ac_objext
23860 if { (ac_try="$ac_compile"
23861 case "(($ac_try" in
23862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23863   *) ac_try_echo=$ac_try;;
23864 esac
23865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23866   (eval "$ac_compile") 2>conftest.er1
23867   ac_status=$?
23868   grep -v '^ *+' conftest.er1 >conftest.err
23869   rm -f conftest.er1
23870   cat conftest.err >&5
23871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872   (exit $ac_status); } && {
23873          test -z "$ac_c_werror_flag" ||
23874          test ! -s conftest.err
23875        } && test -s conftest.$ac_objext; then
23876   ac_cv_type_short_int=yes
23877 else
23878   echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23880
23881         ac_cv_type_short_int=no
23882 fi
23883
23884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23885 fi
23886 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23887 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23888
23889 # The cast to long int works around a bug in the HP C Compiler
23890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23892 # This bug is HP SR number 8606223364.
23893 { echo "$as_me:$LINENO: checking size of short int" >&5
23894 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23895 if test "${ac_cv_sizeof_short_int+set}" = set; then
23896   echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898   if test "$cross_compiling" = yes; then
23899   # Depending upon the size, compute the lo and hi bounds.
23900 cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h.  */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h.  */
23906 $ac_includes_default
23907    typedef short int ac__type_sizeof_;
23908 int
23909 main ()
23910 {
23911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23912 test_array [0] = 0
23913
23914   ;
23915   return 0;
23916 }
23917 _ACEOF
23918 rm -f conftest.$ac_objext
23919 if { (ac_try="$ac_compile"
23920 case "(($ac_try" in
23921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23922   *) ac_try_echo=$ac_try;;
23923 esac
23924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23925   (eval "$ac_compile") 2>conftest.er1
23926   ac_status=$?
23927   grep -v '^ *+' conftest.er1 >conftest.err
23928   rm -f conftest.er1
23929   cat conftest.err >&5
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); } && {
23932          test -z "$ac_c_werror_flag" ||
23933          test ! -s conftest.err
23934        } && test -s conftest.$ac_objext; then
23935   ac_lo=0 ac_mid=0
23936   while :; do
23937     cat >conftest.$ac_ext <<_ACEOF
23938 /* confdefs.h.  */
23939 _ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h.  */
23943 $ac_includes_default
23944    typedef short int ac__type_sizeof_;
23945 int
23946 main ()
23947 {
23948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23949 test_array [0] = 0
23950
23951   ;
23952   return 0;
23953 }
23954 _ACEOF
23955 rm -f conftest.$ac_objext
23956 if { (ac_try="$ac_compile"
23957 case "(($ac_try" in
23958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959   *) ac_try_echo=$ac_try;;
23960 esac
23961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23962   (eval "$ac_compile") 2>conftest.er1
23963   ac_status=$?
23964   grep -v '^ *+' conftest.er1 >conftest.err
23965   rm -f conftest.er1
23966   cat conftest.err >&5
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); } && {
23969          test -z "$ac_c_werror_flag" ||
23970          test ! -s conftest.err
23971        } && test -s conftest.$ac_objext; then
23972   ac_hi=$ac_mid; break
23973 else
23974   echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23976
23977         ac_lo=`expr $ac_mid + 1`
23978                         if test $ac_lo -le $ac_mid; then
23979                           ac_lo= ac_hi=
23980                           break
23981                         fi
23982                         ac_mid=`expr 2 '*' $ac_mid + 1`
23983 fi
23984
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986   done
23987 else
23988   echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23990
23991         cat >conftest.$ac_ext <<_ACEOF
23992 /* confdefs.h.  */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h.  */
23997 $ac_includes_default
23998    typedef short int ac__type_sizeof_;
23999 int
24000 main ()
24001 {
24002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24003 test_array [0] = 0
24004
24005   ;
24006   return 0;
24007 }
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (ac_try="$ac_compile"
24011 case "(($ac_try" in
24012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013   *) ac_try_echo=$ac_try;;
24014 esac
24015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24016   (eval "$ac_compile") 2>conftest.er1
24017   ac_status=$?
24018   grep -v '^ *+' conftest.er1 >conftest.err
24019   rm -f conftest.er1
24020   cat conftest.err >&5
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); } && {
24023          test -z "$ac_c_werror_flag" ||
24024          test ! -s conftest.err
24025        } && test -s conftest.$ac_objext; then
24026   ac_hi=-1 ac_mid=-1
24027   while :; do
24028     cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h.  */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h.  */
24034 $ac_includes_default
24035    typedef short int ac__type_sizeof_;
24036 int
24037 main ()
24038 {
24039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24040 test_array [0] = 0
24041
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext
24047 if { (ac_try="$ac_compile"
24048 case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_compile") 2>conftest.er1
24054   ac_status=$?
24055   grep -v '^ *+' conftest.er1 >conftest.err
24056   rm -f conftest.er1
24057   cat conftest.err >&5
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); } && {
24060          test -z "$ac_c_werror_flag" ||
24061          test ! -s conftest.err
24062        } && test -s conftest.$ac_objext; then
24063   ac_lo=$ac_mid; break
24064 else
24065   echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068         ac_hi=`expr '(' $ac_mid ')' - 1`
24069                         if test $ac_mid -le $ac_hi; then
24070                           ac_lo= ac_hi=
24071                           break
24072                         fi
24073                         ac_mid=`expr 2 '*' $ac_mid`
24074 fi
24075
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24077   done
24078 else
24079   echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24081
24082         ac_lo= ac_hi=
24083 fi
24084
24085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24086 fi
24087
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24089 # Binary search between lo and hi bounds.
24090 while test "x$ac_lo" != "x$ac_hi"; do
24091   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24092   cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098 $ac_includes_default
24099    typedef short int ac__type_sizeof_;
24100 int
24101 main ()
24102 {
24103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24104 test_array [0] = 0
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114   *) ac_try_echo=$ac_try;;
24115 esac
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117   (eval "$ac_compile") 2>conftest.er1
24118   ac_status=$?
24119   grep -v '^ *+' conftest.er1 >conftest.err
24120   rm -f conftest.er1
24121   cat conftest.err >&5
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); } && {
24124          test -z "$ac_c_werror_flag" ||
24125          test ! -s conftest.err
24126        } && test -s conftest.$ac_objext; then
24127   ac_hi=$ac_mid
24128 else
24129   echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24131
24132         ac_lo=`expr '(' $ac_mid ')' + 1`
24133 fi
24134
24135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24136 done
24137 case $ac_lo in
24138 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24139 '') if test "$ac_cv_type_short_int" = yes; then
24140      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24141 See \`config.log' for more details." >&5
24142 echo "$as_me: error: cannot compute sizeof (short int)
24143 See \`config.log' for more details." >&2;}
24144    { (exit 77); exit 77; }; }
24145    else
24146      ac_cv_sizeof_short_int=0
24147    fi ;;
24148 esac
24149 else
24150   cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h.  */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h.  */
24156 $ac_includes_default
24157    typedef short int ac__type_sizeof_;
24158 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24159 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24160 #include <stdio.h>
24161 #include <stdlib.h>
24162 int
24163 main ()
24164 {
24165
24166   FILE *f = fopen ("conftest.val", "w");
24167   if (! f)
24168     return 1;
24169   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24170     {
24171       long int i = longval ();
24172       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24173         return 1;
24174       fprintf (f, "%ld\n", i);
24175     }
24176   else
24177     {
24178       unsigned long int i = ulongval ();
24179       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24180         return 1;
24181       fprintf (f, "%lu\n", i);
24182     }
24183   return ferror (f) || fclose (f) != 0;
24184
24185   ;
24186   return 0;
24187 }
24188 _ACEOF
24189 rm -f conftest$ac_exeext
24190 if { (ac_try="$ac_link"
24191 case "(($ac_try" in
24192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193   *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196   (eval "$ac_link") 2>&5
24197   ac_status=$?
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24200   { (case "(($ac_try" in
24201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202   *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205   (eval "$ac_try") 2>&5
24206   ac_status=$?
24207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208   (exit $ac_status); }; }; then
24209   ac_cv_sizeof_short_int=`cat conftest.val`
24210 else
24211   echo "$as_me: program exited with status $ac_status" >&5
24212 echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24214
24215 ( exit $ac_status )
24216 if test "$ac_cv_type_short_int" = yes; then
24217      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24218 See \`config.log' for more details." >&5
24219 echo "$as_me: error: cannot compute sizeof (short int)
24220 See \`config.log' for more details." >&2;}
24221    { (exit 77); exit 77; }; }
24222    else
24223      ac_cv_sizeof_short_int=0
24224    fi
24225 fi
24226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24227 fi
24228 rm -f conftest.val
24229 fi
24230 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24231 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24232
24233
24234
24235 cat >>confdefs.h <<_ACEOF
24236 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24237 _ACEOF
24238
24239
24240 { echo "$as_me:$LINENO: checking for int" >&5
24241 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24242 if test "${ac_cv_type_int+set}" = set; then
24243   echo $ECHO_N "(cached) $ECHO_C" >&6
24244 else
24245   cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h.  */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h.  */
24251 $ac_includes_default
24252 typedef int ac__type_new_;
24253 int
24254 main ()
24255 {
24256 if ((ac__type_new_ *) 0)
24257   return 0;
24258 if (sizeof (ac__type_new_))
24259   return 0;
24260   ;
24261   return 0;
24262 }
24263 _ACEOF
24264 rm -f conftest.$ac_objext
24265 if { (ac_try="$ac_compile"
24266 case "(($ac_try" in
24267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268   *) ac_try_echo=$ac_try;;
24269 esac
24270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271   (eval "$ac_compile") 2>conftest.er1
24272   ac_status=$?
24273   grep -v '^ *+' conftest.er1 >conftest.err
24274   rm -f conftest.er1
24275   cat conftest.err >&5
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); } && {
24278          test -z "$ac_c_werror_flag" ||
24279          test ! -s conftest.err
24280        } && test -s conftest.$ac_objext; then
24281   ac_cv_type_int=yes
24282 else
24283   echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24285
24286         ac_cv_type_int=no
24287 fi
24288
24289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 fi
24291 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24292 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24293
24294 # The cast to long int works around a bug in the HP C Compiler
24295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24297 # This bug is HP SR number 8606223364.
24298 { echo "$as_me:$LINENO: checking size of int" >&5
24299 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24300 if test "${ac_cv_sizeof_int+set}" = set; then
24301   echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303   if test "$cross_compiling" = yes; then
24304   # Depending upon the size, compute the lo and hi bounds.
24305 cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 $ac_includes_default
24312    typedef int ac__type_sizeof_;
24313 int
24314 main ()
24315 {
24316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24317 test_array [0] = 0
24318
24319   ;
24320   return 0;
24321 }
24322 _ACEOF
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327   *) ac_try_echo=$ac_try;;
24328 esac
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330   (eval "$ac_compile") 2>conftest.er1
24331   ac_status=$?
24332   grep -v '^ *+' conftest.er1 >conftest.err
24333   rm -f conftest.er1
24334   cat conftest.err >&5
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); } && {
24337          test -z "$ac_c_werror_flag" ||
24338          test ! -s conftest.err
24339        } && test -s conftest.$ac_objext; then
24340   ac_lo=0 ac_mid=0
24341   while :; do
24342     cat >conftest.$ac_ext <<_ACEOF
24343 /* confdefs.h.  */
24344 _ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h.  */
24348 $ac_includes_default
24349    typedef int ac__type_sizeof_;
24350 int
24351 main ()
24352 {
24353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24354 test_array [0] = 0
24355
24356   ;
24357   return 0;
24358 }
24359 _ACEOF
24360 rm -f conftest.$ac_objext
24361 if { (ac_try="$ac_compile"
24362 case "(($ac_try" in
24363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364   *) ac_try_echo=$ac_try;;
24365 esac
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367   (eval "$ac_compile") 2>conftest.er1
24368   ac_status=$?
24369   grep -v '^ *+' conftest.er1 >conftest.err
24370   rm -f conftest.er1
24371   cat conftest.err >&5
24372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373   (exit $ac_status); } && {
24374          test -z "$ac_c_werror_flag" ||
24375          test ! -s conftest.err
24376        } && test -s conftest.$ac_objext; then
24377   ac_hi=$ac_mid; break
24378 else
24379   echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24381
24382         ac_lo=`expr $ac_mid + 1`
24383                         if test $ac_lo -le $ac_mid; then
24384                           ac_lo= ac_hi=
24385                           break
24386                         fi
24387                         ac_mid=`expr 2 '*' $ac_mid + 1`
24388 fi
24389
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391   done
24392 else
24393   echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396         cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h.  */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h.  */
24402 $ac_includes_default
24403    typedef int ac__type_sizeof_;
24404 int
24405 main ()
24406 {
24407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24408 test_array [0] = 0
24409
24410   ;
24411   return 0;
24412 }
24413 _ACEOF
24414 rm -f conftest.$ac_objext
24415 if { (ac_try="$ac_compile"
24416 case "(($ac_try" in
24417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418   *) ac_try_echo=$ac_try;;
24419 esac
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421   (eval "$ac_compile") 2>conftest.er1
24422   ac_status=$?
24423   grep -v '^ *+' conftest.er1 >conftest.err
24424   rm -f conftest.er1
24425   cat conftest.err >&5
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); } && {
24428          test -z "$ac_c_werror_flag" ||
24429          test ! -s conftest.err
24430        } && test -s conftest.$ac_objext; then
24431   ac_hi=-1 ac_mid=-1
24432   while :; do
24433     cat >conftest.$ac_ext <<_ACEOF
24434 /* confdefs.h.  */
24435 _ACEOF
24436 cat confdefs.h >>conftest.$ac_ext
24437 cat >>conftest.$ac_ext <<_ACEOF
24438 /* end confdefs.h.  */
24439 $ac_includes_default
24440    typedef int ac__type_sizeof_;
24441 int
24442 main ()
24443 {
24444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24445 test_array [0] = 0
24446
24447   ;
24448   return 0;
24449 }
24450 _ACEOF
24451 rm -f conftest.$ac_objext
24452 if { (ac_try="$ac_compile"
24453 case "(($ac_try" in
24454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24455   *) ac_try_echo=$ac_try;;
24456 esac
24457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24458   (eval "$ac_compile") 2>conftest.er1
24459   ac_status=$?
24460   grep -v '^ *+' conftest.er1 >conftest.err
24461   rm -f conftest.er1
24462   cat conftest.err >&5
24463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464   (exit $ac_status); } && {
24465          test -z "$ac_c_werror_flag" ||
24466          test ! -s conftest.err
24467        } && test -s conftest.$ac_objext; then
24468   ac_lo=$ac_mid; break
24469 else
24470   echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24472
24473         ac_hi=`expr '(' $ac_mid ')' - 1`
24474                         if test $ac_mid -le $ac_hi; then
24475                           ac_lo= ac_hi=
24476                           break
24477                         fi
24478                         ac_mid=`expr 2 '*' $ac_mid`
24479 fi
24480
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482   done
24483 else
24484   echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24486
24487         ac_lo= ac_hi=
24488 fi
24489
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 fi
24492
24493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24494 # Binary search between lo and hi bounds.
24495 while test "x$ac_lo" != "x$ac_hi"; do
24496   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24497   cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 $ac_includes_default
24504    typedef int ac__type_sizeof_;
24505 int
24506 main ()
24507 {
24508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24509 test_array [0] = 0
24510
24511   ;
24512   return 0;
24513 }
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_compile") 2>conftest.er1
24523   ac_status=$?
24524   grep -v '^ *+' conftest.er1 >conftest.err
24525   rm -f conftest.er1
24526   cat conftest.err >&5
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); } && {
24529          test -z "$ac_c_werror_flag" ||
24530          test ! -s conftest.err
24531        } && test -s conftest.$ac_objext; then
24532   ac_hi=$ac_mid
24533 else
24534   echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537         ac_lo=`expr '(' $ac_mid ')' + 1`
24538 fi
24539
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24541 done
24542 case $ac_lo in
24543 ?*) ac_cv_sizeof_int=$ac_lo;;
24544 '') if test "$ac_cv_type_int" = yes; then
24545      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24546 See \`config.log' for more details." >&5
24547 echo "$as_me: error: cannot compute sizeof (int)
24548 See \`config.log' for more details." >&2;}
24549    { (exit 77); exit 77; }; }
24550    else
24551      ac_cv_sizeof_int=0
24552    fi ;;
24553 esac
24554 else
24555   cat >conftest.$ac_ext <<_ACEOF
24556 /* confdefs.h.  */
24557 _ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h.  */
24561 $ac_includes_default
24562    typedef int ac__type_sizeof_;
24563 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24564 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24565 #include <stdio.h>
24566 #include <stdlib.h>
24567 int
24568 main ()
24569 {
24570
24571   FILE *f = fopen ("conftest.val", "w");
24572   if (! f)
24573     return 1;
24574   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24575     {
24576       long int i = longval ();
24577       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24578         return 1;
24579       fprintf (f, "%ld\n", i);
24580     }
24581   else
24582     {
24583       unsigned long int i = ulongval ();
24584       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24585         return 1;
24586       fprintf (f, "%lu\n", i);
24587     }
24588   return ferror (f) || fclose (f) != 0;
24589
24590   ;
24591   return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest$ac_exeext
24595 if { (ac_try="$ac_link"
24596 case "(($ac_try" in
24597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598   *) ac_try_echo=$ac_try;;
24599 esac
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601   (eval "$ac_link") 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24605   { (case "(($ac_try" in
24606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607   *) ac_try_echo=$ac_try;;
24608 esac
24609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24610   (eval "$ac_try") 2>&5
24611   ac_status=$?
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); }; }; then
24614   ac_cv_sizeof_int=`cat conftest.val`
24615 else
24616   echo "$as_me: program exited with status $ac_status" >&5
24617 echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24619
24620 ( exit $ac_status )
24621 if test "$ac_cv_type_int" = yes; then
24622      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24623 See \`config.log' for more details." >&5
24624 echo "$as_me: error: cannot compute sizeof (int)
24625 See \`config.log' for more details." >&2;}
24626    { (exit 77); exit 77; }; }
24627    else
24628      ac_cv_sizeof_int=0
24629    fi
24630 fi
24631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24632 fi
24633 rm -f conftest.val
24634 fi
24635 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24636 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24637
24638
24639
24640 cat >>confdefs.h <<_ACEOF
24641 #define SIZEOF_INT $ac_cv_sizeof_int
24642 _ACEOF
24643
24644
24645 { echo "$as_me:$LINENO: checking for long int" >&5
24646 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24647 if test "${ac_cv_type_long_int+set}" = set; then
24648   echo $ECHO_N "(cached) $ECHO_C" >&6
24649 else
24650   cat >conftest.$ac_ext <<_ACEOF
24651 /* confdefs.h.  */
24652 _ACEOF
24653 cat confdefs.h >>conftest.$ac_ext
24654 cat >>conftest.$ac_ext <<_ACEOF
24655 /* end confdefs.h.  */
24656 $ac_includes_default
24657 typedef long int ac__type_new_;
24658 int
24659 main ()
24660 {
24661 if ((ac__type_new_ *) 0)
24662   return 0;
24663 if (sizeof (ac__type_new_))
24664   return 0;
24665   ;
24666   return 0;
24667 }
24668 _ACEOF
24669 rm -f conftest.$ac_objext
24670 if { (ac_try="$ac_compile"
24671 case "(($ac_try" in
24672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673   *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676   (eval "$ac_compile") 2>conftest.er1
24677   ac_status=$?
24678   grep -v '^ *+' conftest.er1 >conftest.err
24679   rm -f conftest.er1
24680   cat conftest.err >&5
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } && {
24683          test -z "$ac_c_werror_flag" ||
24684          test ! -s conftest.err
24685        } && test -s conftest.$ac_objext; then
24686   ac_cv_type_long_int=yes
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691         ac_cv_type_long_int=no
24692 fi
24693
24694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24695 fi
24696 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24697 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24698
24699 # The cast to long int works around a bug in the HP C Compiler
24700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24702 # This bug is HP SR number 8606223364.
24703 { echo "$as_me:$LINENO: checking size of long int" >&5
24704 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24705 if test "${ac_cv_sizeof_long_int+set}" = set; then
24706   echo $ECHO_N "(cached) $ECHO_C" >&6
24707 else
24708   if test "$cross_compiling" = yes; then
24709   # Depending upon the size, compute the lo and hi bounds.
24710 cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h.  */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h.  */
24716 $ac_includes_default
24717    typedef long int ac__type_sizeof_;
24718 int
24719 main ()
24720 {
24721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24722 test_array [0] = 0
24723
24724   ;
24725   return 0;
24726 }
24727 _ACEOF
24728 rm -f conftest.$ac_objext
24729 if { (ac_try="$ac_compile"
24730 case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735   (eval "$ac_compile") 2>conftest.er1
24736   ac_status=$?
24737   grep -v '^ *+' conftest.er1 >conftest.err
24738   rm -f conftest.er1
24739   cat conftest.err >&5
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); } && {
24742          test -z "$ac_c_werror_flag" ||
24743          test ! -s conftest.err
24744        } && test -s conftest.$ac_objext; then
24745   ac_lo=0 ac_mid=0
24746   while :; do
24747     cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h.  */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h.  */
24753 $ac_includes_default
24754    typedef long int ac__type_sizeof_;
24755 int
24756 main ()
24757 {
24758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24759 test_array [0] = 0
24760
24761   ;
24762   return 0;
24763 }
24764 _ACEOF
24765 rm -f conftest.$ac_objext
24766 if { (ac_try="$ac_compile"
24767 case "(($ac_try" in
24768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769   *) ac_try_echo=$ac_try;;
24770 esac
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772   (eval "$ac_compile") 2>conftest.er1
24773   ac_status=$?
24774   grep -v '^ *+' conftest.er1 >conftest.err
24775   rm -f conftest.er1
24776   cat conftest.err >&5
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); } && {
24779          test -z "$ac_c_werror_flag" ||
24780          test ! -s conftest.err
24781        } && test -s conftest.$ac_objext; then
24782   ac_hi=$ac_mid; break
24783 else
24784   echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24786
24787         ac_lo=`expr $ac_mid + 1`
24788                         if test $ac_lo -le $ac_mid; then
24789                           ac_lo= ac_hi=
24790                           break
24791                         fi
24792                         ac_mid=`expr 2 '*' $ac_mid + 1`
24793 fi
24794
24795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796   done
24797 else
24798   echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24800
24801         cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807 $ac_includes_default
24808    typedef long int ac__type_sizeof_;
24809 int
24810 main ()
24811 {
24812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24813 test_array [0] = 0
24814
24815   ;
24816   return 0;
24817 }
24818 _ACEOF
24819 rm -f conftest.$ac_objext
24820 if { (ac_try="$ac_compile"
24821 case "(($ac_try" in
24822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24823   *) ac_try_echo=$ac_try;;
24824 esac
24825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24826   (eval "$ac_compile") 2>conftest.er1
24827   ac_status=$?
24828   grep -v '^ *+' conftest.er1 >conftest.err
24829   rm -f conftest.er1
24830   cat conftest.err >&5
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } && {
24833          test -z "$ac_c_werror_flag" ||
24834          test ! -s conftest.err
24835        } && test -s conftest.$ac_objext; then
24836   ac_hi=-1 ac_mid=-1
24837   while :; do
24838     cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844 $ac_includes_default
24845    typedef long int ac__type_sizeof_;
24846 int
24847 main ()
24848 {
24849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24850 test_array [0] = 0
24851
24852   ;
24853   return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860   *) ac_try_echo=$ac_try;;
24861 esac
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863   (eval "$ac_compile") 2>conftest.er1
24864   ac_status=$?
24865   grep -v '^ *+' conftest.er1 >conftest.err
24866   rm -f conftest.er1
24867   cat conftest.err >&5
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); } && {
24870          test -z "$ac_c_werror_flag" ||
24871          test ! -s conftest.err
24872        } && test -s conftest.$ac_objext; then
24873   ac_lo=$ac_mid; break
24874 else
24875   echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24877
24878         ac_hi=`expr '(' $ac_mid ')' - 1`
24879                         if test $ac_mid -le $ac_hi; then
24880                           ac_lo= ac_hi=
24881                           break
24882                         fi
24883                         ac_mid=`expr 2 '*' $ac_mid`
24884 fi
24885
24886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24887   done
24888 else
24889   echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24891
24892         ac_lo= ac_hi=
24893 fi
24894
24895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24896 fi
24897
24898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24899 # Binary search between lo and hi bounds.
24900 while test "x$ac_lo" != "x$ac_hi"; do
24901   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24902   cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h.  */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h.  */
24908 $ac_includes_default
24909    typedef long int ac__type_sizeof_;
24910 int
24911 main ()
24912 {
24913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24914 test_array [0] = 0
24915
24916   ;
24917   return 0;
24918 }
24919 _ACEOF
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924   *) ac_try_echo=$ac_try;;
24925 esac
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927   (eval "$ac_compile") 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } && {
24934          test -z "$ac_c_werror_flag" ||
24935          test ! -s conftest.err
24936        } && test -s conftest.$ac_objext; then
24937   ac_hi=$ac_mid
24938 else
24939   echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24941
24942         ac_lo=`expr '(' $ac_mid ')' + 1`
24943 fi
24944
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24946 done
24947 case $ac_lo in
24948 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24949 '') if test "$ac_cv_type_long_int" = yes; then
24950      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24951 See \`config.log' for more details." >&5
24952 echo "$as_me: error: cannot compute sizeof (long int)
24953 See \`config.log' for more details." >&2;}
24954    { (exit 77); exit 77; }; }
24955    else
24956      ac_cv_sizeof_long_int=0
24957    fi ;;
24958 esac
24959 else
24960   cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h.  */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h.  */
24966 $ac_includes_default
24967    typedef long int ac__type_sizeof_;
24968 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24969 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24970 #include <stdio.h>
24971 #include <stdlib.h>
24972 int
24973 main ()
24974 {
24975
24976   FILE *f = fopen ("conftest.val", "w");
24977   if (! f)
24978     return 1;
24979   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24980     {
24981       long int i = longval ();
24982       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24983         return 1;
24984       fprintf (f, "%ld\n", i);
24985     }
24986   else
24987     {
24988       unsigned long int i = ulongval ();
24989       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24990         return 1;
24991       fprintf (f, "%lu\n", i);
24992     }
24993   return ferror (f) || fclose (f) != 0;
24994
24995   ;
24996   return 0;
24997 }
24998 _ACEOF
24999 rm -f conftest$ac_exeext
25000 if { (ac_try="$ac_link"
25001 case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_link") 2>&5
25007   ac_status=$?
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25010   { (case "(($ac_try" in
25011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25012   *) ac_try_echo=$ac_try;;
25013 esac
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015   (eval "$ac_try") 2>&5
25016   ac_status=$?
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); }; }; then
25019   ac_cv_sizeof_long_int=`cat conftest.val`
25020 else
25021   echo "$as_me: program exited with status $ac_status" >&5
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 ( exit $ac_status )
25026 if test "$ac_cv_type_long_int" = yes; then
25027      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25028 See \`config.log' for more details." >&5
25029 echo "$as_me: error: cannot compute sizeof (long int)
25030 See \`config.log' for more details." >&2;}
25031    { (exit 77); exit 77; }; }
25032    else
25033      ac_cv_sizeof_long_int=0
25034    fi
25035 fi
25036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25037 fi
25038 rm -f conftest.val
25039 fi
25040 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25041 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25042
25043
25044
25045 cat >>confdefs.h <<_ACEOF
25046 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25047 _ACEOF
25048
25049
25050 { echo "$as_me:$LINENO: checking for long long int" >&5
25051 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25052 if test "${ac_cv_type_long_long_int+set}" = set; then
25053   echo $ECHO_N "(cached) $ECHO_C" >&6
25054 else
25055   cat >conftest.$ac_ext <<_ACEOF
25056 /* confdefs.h.  */
25057 _ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h.  */
25061 $ac_includes_default
25062 typedef long long int ac__type_new_;
25063 int
25064 main ()
25065 {
25066 if ((ac__type_new_ *) 0)
25067   return 0;
25068 if (sizeof (ac__type_new_))
25069   return 0;
25070   ;
25071   return 0;
25072 }
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078   *) ac_try_echo=$ac_try;;
25079 esac
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081   (eval "$ac_compile") 2>conftest.er1
25082   ac_status=$?
25083   grep -v '^ *+' conftest.er1 >conftest.err
25084   rm -f conftest.er1
25085   cat conftest.err >&5
25086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087   (exit $ac_status); } && {
25088          test -z "$ac_c_werror_flag" ||
25089          test ! -s conftest.err
25090        } && test -s conftest.$ac_objext; then
25091   ac_cv_type_long_long_int=yes
25092 else
25093   echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25095
25096         ac_cv_type_long_long_int=no
25097 fi
25098
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 fi
25101 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25102 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25103
25104 # The cast to long int works around a bug in the HP C Compiler
25105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25107 # This bug is HP SR number 8606223364.
25108 { echo "$as_me:$LINENO: checking size of long long int" >&5
25109 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25110 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25111   echo $ECHO_N "(cached) $ECHO_C" >&6
25112 else
25113   if test "$cross_compiling" = yes; then
25114   # Depending upon the size, compute the lo and hi bounds.
25115 cat >conftest.$ac_ext <<_ACEOF
25116 /* confdefs.h.  */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h.  */
25121 $ac_includes_default
25122    typedef long long int ac__type_sizeof_;
25123 int
25124 main ()
25125 {
25126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25127 test_array [0] = 0
25128
25129   ;
25130   return 0;
25131 }
25132 _ACEOF
25133 rm -f conftest.$ac_objext
25134 if { (ac_try="$ac_compile"
25135 case "(($ac_try" in
25136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137   *) ac_try_echo=$ac_try;;
25138 esac
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140   (eval "$ac_compile") 2>conftest.er1
25141   ac_status=$?
25142   grep -v '^ *+' conftest.er1 >conftest.err
25143   rm -f conftest.er1
25144   cat conftest.err >&5
25145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146   (exit $ac_status); } && {
25147          test -z "$ac_c_werror_flag" ||
25148          test ! -s conftest.err
25149        } && test -s conftest.$ac_objext; then
25150   ac_lo=0 ac_mid=0
25151   while :; do
25152     cat >conftest.$ac_ext <<_ACEOF
25153 /* confdefs.h.  */
25154 _ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h.  */
25158 $ac_includes_default
25159    typedef long long int ac__type_sizeof_;
25160 int
25161 main ()
25162 {
25163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25164 test_array [0] = 0
25165
25166   ;
25167   return 0;
25168 }
25169 _ACEOF
25170 rm -f conftest.$ac_objext
25171 if { (ac_try="$ac_compile"
25172 case "(($ac_try" in
25173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174   *) ac_try_echo=$ac_try;;
25175 esac
25176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177   (eval "$ac_compile") 2>conftest.er1
25178   ac_status=$?
25179   grep -v '^ *+' conftest.er1 >conftest.err
25180   rm -f conftest.er1
25181   cat conftest.err >&5
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); } && {
25184          test -z "$ac_c_werror_flag" ||
25185          test ! -s conftest.err
25186        } && test -s conftest.$ac_objext; then
25187   ac_hi=$ac_mid; break
25188 else
25189   echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25191
25192         ac_lo=`expr $ac_mid + 1`
25193                         if test $ac_lo -le $ac_mid; then
25194                           ac_lo= ac_hi=
25195                           break
25196                         fi
25197                         ac_mid=`expr 2 '*' $ac_mid + 1`
25198 fi
25199
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201   done
25202 else
25203   echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25205
25206         cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h.  */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h.  */
25212 $ac_includes_default
25213    typedef long long int ac__type_sizeof_;
25214 int
25215 main ()
25216 {
25217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25218 test_array [0] = 0
25219
25220   ;
25221   return 0;
25222 }
25223 _ACEOF
25224 rm -f conftest.$ac_objext
25225 if { (ac_try="$ac_compile"
25226 case "(($ac_try" in
25227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228   *) ac_try_echo=$ac_try;;
25229 esac
25230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25231   (eval "$ac_compile") 2>conftest.er1
25232   ac_status=$?
25233   grep -v '^ *+' conftest.er1 >conftest.err
25234   rm -f conftest.er1
25235   cat conftest.err >&5
25236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); } && {
25238          test -z "$ac_c_werror_flag" ||
25239          test ! -s conftest.err
25240        } && test -s conftest.$ac_objext; then
25241   ac_hi=-1 ac_mid=-1
25242   while :; do
25243     cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249 $ac_includes_default
25250    typedef long long int ac__type_sizeof_;
25251 int
25252 main ()
25253 {
25254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25255 test_array [0] = 0
25256
25257   ;
25258   return 0;
25259 }
25260 _ACEOF
25261 rm -f conftest.$ac_objext
25262 if { (ac_try="$ac_compile"
25263 case "(($ac_try" in
25264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265   *) ac_try_echo=$ac_try;;
25266 esac
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268   (eval "$ac_compile") 2>conftest.er1
25269   ac_status=$?
25270   grep -v '^ *+' conftest.er1 >conftest.err
25271   rm -f conftest.er1
25272   cat conftest.err >&5
25273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274   (exit $ac_status); } && {
25275          test -z "$ac_c_werror_flag" ||
25276          test ! -s conftest.err
25277        } && test -s conftest.$ac_objext; then
25278   ac_lo=$ac_mid; break
25279 else
25280   echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.$ac_ext >&5
25282
25283         ac_hi=`expr '(' $ac_mid ')' - 1`
25284                         if test $ac_mid -le $ac_hi; then
25285                           ac_lo= ac_hi=
25286                           break
25287                         fi
25288                         ac_mid=`expr 2 '*' $ac_mid`
25289 fi
25290
25291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25292   done
25293 else
25294   echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25296
25297         ac_lo= ac_hi=
25298 fi
25299
25300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301 fi
25302
25303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25304 # Binary search between lo and hi bounds.
25305 while test "x$ac_lo" != "x$ac_hi"; do
25306   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25307   cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h.  */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h.  */
25313 $ac_includes_default
25314    typedef long long int ac__type_sizeof_;
25315 int
25316 main ()
25317 {
25318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25319 test_array [0] = 0
25320
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 rm -f conftest.$ac_objext
25326 if { (ac_try="$ac_compile"
25327 case "(($ac_try" in
25328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329   *) ac_try_echo=$ac_try;;
25330 esac
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332   (eval "$ac_compile") 2>conftest.er1
25333   ac_status=$?
25334   grep -v '^ *+' conftest.er1 >conftest.err
25335   rm -f conftest.er1
25336   cat conftest.err >&5
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); } && {
25339          test -z "$ac_c_werror_flag" ||
25340          test ! -s conftest.err
25341        } && test -s conftest.$ac_objext; then
25342   ac_hi=$ac_mid
25343 else
25344   echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25346
25347         ac_lo=`expr '(' $ac_mid ')' + 1`
25348 fi
25349
25350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 done
25352 case $ac_lo in
25353 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25354 '') if test "$ac_cv_type_long_long_int" = yes; then
25355      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25356 See \`config.log' for more details." >&5
25357 echo "$as_me: error: cannot compute sizeof (long long int)
25358 See \`config.log' for more details." >&2;}
25359    { (exit 77); exit 77; }; }
25360    else
25361      ac_cv_sizeof_long_long_int=0
25362    fi ;;
25363 esac
25364 else
25365   cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371 $ac_includes_default
25372    typedef long long int ac__type_sizeof_;
25373 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25374 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25375 #include <stdio.h>
25376 #include <stdlib.h>
25377 int
25378 main ()
25379 {
25380
25381   FILE *f = fopen ("conftest.val", "w");
25382   if (! f)
25383     return 1;
25384   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25385     {
25386       long int i = longval ();
25387       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25388         return 1;
25389       fprintf (f, "%ld\n", i);
25390     }
25391   else
25392     {
25393       unsigned long int i = ulongval ();
25394       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25395         return 1;
25396       fprintf (f, "%lu\n", i);
25397     }
25398   return ferror (f) || fclose (f) != 0;
25399
25400   ;
25401   return 0;
25402 }
25403 _ACEOF
25404 rm -f conftest$ac_exeext
25405 if { (ac_try="$ac_link"
25406 case "(($ac_try" in
25407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25408   *) ac_try_echo=$ac_try;;
25409 esac
25410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25411   (eval "$ac_link") 2>&5
25412   ac_status=$?
25413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25415   { (case "(($ac_try" in
25416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417   *) ac_try_echo=$ac_try;;
25418 esac
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420   (eval "$ac_try") 2>&5
25421   ac_status=$?
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); }; }; then
25424   ac_cv_sizeof_long_long_int=`cat conftest.val`
25425 else
25426   echo "$as_me: program exited with status $ac_status" >&5
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25429
25430 ( exit $ac_status )
25431 if test "$ac_cv_type_long_long_int" = yes; then
25432      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25433 See \`config.log' for more details." >&5
25434 echo "$as_me: error: cannot compute sizeof (long long int)
25435 See \`config.log' for more details." >&2;}
25436    { (exit 77); exit 77; }; }
25437    else
25438      ac_cv_sizeof_long_long_int=0
25439    fi
25440 fi
25441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25442 fi
25443 rm -f conftest.val
25444 fi
25445 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25446 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25447
25448
25449
25450 cat >>confdefs.h <<_ACEOF
25451 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25452 _ACEOF
25453
25454
25455 { echo "$as_me:$LINENO: checking for int *" >&5
25456 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25457 if test "${ac_cv_type_int_p+set}" = set; then
25458   echo $ECHO_N "(cached) $ECHO_C" >&6
25459 else
25460   cat >conftest.$ac_ext <<_ACEOF
25461 /* confdefs.h.  */
25462 _ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h.  */
25466 $ac_includes_default
25467 typedef int * ac__type_new_;
25468 int
25469 main ()
25470 {
25471 if ((ac__type_new_ *) 0)
25472   return 0;
25473 if (sizeof (ac__type_new_))
25474   return 0;
25475   ;
25476   return 0;
25477 }
25478 _ACEOF
25479 rm -f conftest.$ac_objext
25480 if { (ac_try="$ac_compile"
25481 case "(($ac_try" in
25482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483   *) ac_try_echo=$ac_try;;
25484 esac
25485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25486   (eval "$ac_compile") 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } && {
25493          test -z "$ac_c_werror_flag" ||
25494          test ! -s conftest.err
25495        } && test -s conftest.$ac_objext; then
25496   ac_cv_type_int_p=yes
25497 else
25498   echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25500
25501         ac_cv_type_int_p=no
25502 fi
25503
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25505 fi
25506 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25507 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25508
25509 # The cast to long int works around a bug in the HP C Compiler
25510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25512 # This bug is HP SR number 8606223364.
25513 { echo "$as_me:$LINENO: checking size of int *" >&5
25514 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25515 if test "${ac_cv_sizeof_int_p+set}" = set; then
25516   echo $ECHO_N "(cached) $ECHO_C" >&6
25517 else
25518   if test "$cross_compiling" = yes; then
25519   # Depending upon the size, compute the lo and hi bounds.
25520 cat >conftest.$ac_ext <<_ACEOF
25521 /* confdefs.h.  */
25522 _ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h.  */
25526 $ac_includes_default
25527    typedef int * ac__type_sizeof_;
25528 int
25529 main ()
25530 {
25531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25532 test_array [0] = 0
25533
25534   ;
25535   return 0;
25536 }
25537 _ACEOF
25538 rm -f conftest.$ac_objext
25539 if { (ac_try="$ac_compile"
25540 case "(($ac_try" in
25541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25542   *) ac_try_echo=$ac_try;;
25543 esac
25544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25545   (eval "$ac_compile") 2>conftest.er1
25546   ac_status=$?
25547   grep -v '^ *+' conftest.er1 >conftest.err
25548   rm -f conftest.er1
25549   cat conftest.err >&5
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); } && {
25552          test -z "$ac_c_werror_flag" ||
25553          test ! -s conftest.err
25554        } && test -s conftest.$ac_objext; then
25555   ac_lo=0 ac_mid=0
25556   while :; do
25557     cat >conftest.$ac_ext <<_ACEOF
25558 /* confdefs.h.  */
25559 _ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h.  */
25563 $ac_includes_default
25564    typedef int * ac__type_sizeof_;
25565 int
25566 main ()
25567 {
25568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25569 test_array [0] = 0
25570
25571   ;
25572   return 0;
25573 }
25574 _ACEOF
25575 rm -f conftest.$ac_objext
25576 if { (ac_try="$ac_compile"
25577 case "(($ac_try" in
25578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25579   *) ac_try_echo=$ac_try;;
25580 esac
25581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25582   (eval "$ac_compile") 2>conftest.er1
25583   ac_status=$?
25584   grep -v '^ *+' conftest.er1 >conftest.err
25585   rm -f conftest.er1
25586   cat conftest.err >&5
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); } && {
25589          test -z "$ac_c_werror_flag" ||
25590          test ! -s conftest.err
25591        } && test -s conftest.$ac_objext; then
25592   ac_hi=$ac_mid; break
25593 else
25594   echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25596
25597         ac_lo=`expr $ac_mid + 1`
25598                         if test $ac_lo -le $ac_mid; then
25599                           ac_lo= ac_hi=
25600                           break
25601                         fi
25602                         ac_mid=`expr 2 '*' $ac_mid + 1`
25603 fi
25604
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606   done
25607 else
25608   echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25610
25611         cat >conftest.$ac_ext <<_ACEOF
25612 /* confdefs.h.  */
25613 _ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h.  */
25617 $ac_includes_default
25618    typedef int * ac__type_sizeof_;
25619 int
25620 main ()
25621 {
25622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25623 test_array [0] = 0
25624
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 rm -f conftest.$ac_objext
25630 if { (ac_try="$ac_compile"
25631 case "(($ac_try" in
25632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633   *) ac_try_echo=$ac_try;;
25634 esac
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636   (eval "$ac_compile") 2>conftest.er1
25637   ac_status=$?
25638   grep -v '^ *+' conftest.er1 >conftest.err
25639   rm -f conftest.er1
25640   cat conftest.err >&5
25641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642   (exit $ac_status); } && {
25643          test -z "$ac_c_werror_flag" ||
25644          test ! -s conftest.err
25645        } && test -s conftest.$ac_objext; then
25646   ac_hi=-1 ac_mid=-1
25647   while :; do
25648     cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654 $ac_includes_default
25655    typedef int * ac__type_sizeof_;
25656 int
25657 main ()
25658 {
25659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25660 test_array [0] = 0
25661
25662   ;
25663   return 0;
25664 }
25665 _ACEOF
25666 rm -f conftest.$ac_objext
25667 if { (ac_try="$ac_compile"
25668 case "(($ac_try" in
25669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670   *) ac_try_echo=$ac_try;;
25671 esac
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673   (eval "$ac_compile") 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } && {
25680          test -z "$ac_c_werror_flag" ||
25681          test ! -s conftest.err
25682        } && test -s conftest.$ac_objext; then
25683   ac_lo=$ac_mid; break
25684 else
25685   echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25687
25688         ac_hi=`expr '(' $ac_mid ')' - 1`
25689                         if test $ac_mid -le $ac_hi; then
25690                           ac_lo= ac_hi=
25691                           break
25692                         fi
25693                         ac_mid=`expr 2 '*' $ac_mid`
25694 fi
25695
25696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697   done
25698 else
25699   echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25701
25702         ac_lo= ac_hi=
25703 fi
25704
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 fi
25707
25708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 # Binary search between lo and hi bounds.
25710 while test "x$ac_lo" != "x$ac_hi"; do
25711   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25712   cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718 $ac_includes_default
25719    typedef int * ac__type_sizeof_;
25720 int
25721 main ()
25722 {
25723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25724 test_array [0] = 0
25725
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 rm -f conftest.$ac_objext
25731 if { (ac_try="$ac_compile"
25732 case "(($ac_try" in
25733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734   *) ac_try_echo=$ac_try;;
25735 esac
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737   (eval "$ac_compile") 2>conftest.er1
25738   ac_status=$?
25739   grep -v '^ *+' conftest.er1 >conftest.err
25740   rm -f conftest.er1
25741   cat conftest.err >&5
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } && {
25744          test -z "$ac_c_werror_flag" ||
25745          test ! -s conftest.err
25746        } && test -s conftest.$ac_objext; then
25747   ac_hi=$ac_mid
25748 else
25749   echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25751
25752         ac_lo=`expr '(' $ac_mid ')' + 1`
25753 fi
25754
25755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25756 done
25757 case $ac_lo in
25758 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25759 '') if test "$ac_cv_type_int_p" = yes; then
25760      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25761 See \`config.log' for more details." >&5
25762 echo "$as_me: error: cannot compute sizeof (int *)
25763 See \`config.log' for more details." >&2;}
25764    { (exit 77); exit 77; }; }
25765    else
25766      ac_cv_sizeof_int_p=0
25767    fi ;;
25768 esac
25769 else
25770   cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h.  */
25776 $ac_includes_default
25777    typedef int * ac__type_sizeof_;
25778 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25779 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25780 #include <stdio.h>
25781 #include <stdlib.h>
25782 int
25783 main ()
25784 {
25785
25786   FILE *f = fopen ("conftest.val", "w");
25787   if (! f)
25788     return 1;
25789   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25790     {
25791       long int i = longval ();
25792       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25793         return 1;
25794       fprintf (f, "%ld\n", i);
25795     }
25796   else
25797     {
25798       unsigned long int i = ulongval ();
25799       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25800         return 1;
25801       fprintf (f, "%lu\n", i);
25802     }
25803   return ferror (f) || fclose (f) != 0;
25804
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest$ac_exeext
25810 if { (ac_try="$ac_link"
25811 case "(($ac_try" in
25812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813   *) ac_try_echo=$ac_try;;
25814 esac
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816   (eval "$ac_link") 2>&5
25817   ac_status=$?
25818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25820   { (case "(($ac_try" in
25821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25822   *) ac_try_echo=$ac_try;;
25823 esac
25824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25825   (eval "$ac_try") 2>&5
25826   ac_status=$?
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); }; }; then
25829   ac_cv_sizeof_int_p=`cat conftest.val`
25830 else
25831   echo "$as_me: program exited with status $ac_status" >&5
25832 echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25834
25835 ( exit $ac_status )
25836 if test "$ac_cv_type_int_p" = yes; then
25837      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25838 See \`config.log' for more details." >&5
25839 echo "$as_me: error: cannot compute sizeof (int *)
25840 See \`config.log' for more details." >&2;}
25841    { (exit 77); exit 77; }; }
25842    else
25843      ac_cv_sizeof_int_p=0
25844    fi
25845 fi
25846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25847 fi
25848 rm -f conftest.val
25849 fi
25850 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25851 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25852
25853
25854
25855 cat >>confdefs.h <<_ACEOF
25856 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25857 _ACEOF
25858
25859
25860
25861 # Check for sys/types.h types
25862 { echo "$as_me:$LINENO: checking for u_int type" >&5
25863 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25864 if test "${ac_cv_have_u_int+set}" = set; then
25865   echo $ECHO_N "(cached) $ECHO_C" >&6
25866 else
25867
25868     cat >conftest.$ac_ext <<_ACEOF
25869 /* confdefs.h.  */
25870 _ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h.  */
25874  #include <sys/types.h>
25875 int
25876 main ()
25877 {
25878  u_int a; a = 1;
25879   ;
25880   return 0;
25881 }
25882 _ACEOF
25883 rm -f conftest.$ac_objext
25884 if { (ac_try="$ac_compile"
25885 case "(($ac_try" in
25886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887   *) ac_try_echo=$ac_try;;
25888 esac
25889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890   (eval "$ac_compile") 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } && {
25897          test -z "$ac_c_werror_flag" ||
25898          test ! -s conftest.err
25899        } && test -s conftest.$ac_objext; then
25900    ac_cv_have_u_int="yes"
25901 else
25902   echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25904
25905          ac_cv_have_u_int="no"
25906
25907 fi
25908
25909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25910
25911 fi
25912 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25913 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25914 if test "x$ac_cv_have_u_int" = "xyes" ; then
25915    cat >>confdefs.h <<\_ACEOF
25916 #define HAVE_U_INT 1
25917 _ACEOF
25918
25919    have_u_int=1
25920 fi
25921
25922 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25923 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25924 if test "${ac_cv_have_intmax_t+set}" = set; then
25925   echo $ECHO_N "(cached) $ECHO_C" >&6
25926 else
25927
25928    cat >conftest.$ac_ext <<_ACEOF
25929 /* confdefs.h.  */
25930 _ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h.  */
25934  #include <sys/types.h>
25935 int
25936 main ()
25937 {
25938  intmax_t a; a = 1;
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_compile") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } && {
25957          test -z "$ac_c_werror_flag" ||
25958          test ! -s conftest.err
25959        } && test -s conftest.$ac_objext; then
25960    ac_cv_have_intmax_t="yes"
25961 else
25962   echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965
25966          cat >conftest.$ac_ext <<_ACEOF
25967 /* confdefs.h.  */
25968 _ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h.  */
25972  #include <stdint.h>
25973 int
25974 main ()
25975 {
25976  intmax_t a; a = 1;
25977   ;
25978   return 0;
25979 }
25980 _ACEOF
25981 rm -f conftest.$ac_objext
25982 if { (ac_try="$ac_compile"
25983 case "(($ac_try" in
25984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25985   *) ac_try_echo=$ac_try;;
25986 esac
25987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25988   (eval "$ac_compile") 2>conftest.er1
25989   ac_status=$?
25990   grep -v '^ *+' conftest.er1 >conftest.err
25991   rm -f conftest.er1
25992   cat conftest.err >&5
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); } && {
25995          test -z "$ac_c_werror_flag" ||
25996          test ! -s conftest.err
25997        } && test -s conftest.$ac_objext; then
25998    ac_cv_have_intmax_t="yes"
25999 else
26000   echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26002
26003          ac_cv_have_intmax_t="no"
26004
26005 fi
26006
26007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008
26009
26010 fi
26011
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013
26014
26015 fi
26016 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26017 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26018 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26019    cat >>confdefs.h <<\_ACEOF
26020 #define HAVE_INTMAX_T 1
26021 _ACEOF
26022
26023    have_intmax_t=1
26024 fi
26025
26026
26027 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26028 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26029 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26030   echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
26032
26033    cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039  #include <sys/types.h>
26040 int
26041 main ()
26042 {
26043  u_intmax_t a; a = 1;
26044   ;
26045   return 0;
26046 }
26047 _ACEOF
26048 rm -f conftest.$ac_objext
26049 if { (ac_try="$ac_compile"
26050 case "(($ac_try" in
26051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052   *) ac_try_echo=$ac_try;;
26053 esac
26054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26055   (eval "$ac_compile") 2>conftest.er1
26056   ac_status=$?
26057   grep -v '^ *+' conftest.er1 >conftest.err
26058   rm -f conftest.er1
26059   cat conftest.err >&5
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); } && {
26062          test -z "$ac_c_werror_flag" ||
26063          test ! -s conftest.err
26064        } && test -s conftest.$ac_objext; then
26065    ac_cv_have_u_intmax_t="yes"
26066 else
26067   echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26069
26070
26071          cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077  #include <stdint.h>
26078 int
26079 main ()
26080 {
26081  u_intmax_t a; a = 1;
26082   ;
26083   return 0;
26084 }
26085 _ACEOF
26086 rm -f conftest.$ac_objext
26087 if { (ac_try="$ac_compile"
26088 case "(($ac_try" in
26089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090   *) ac_try_echo=$ac_try;;
26091 esac
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093   (eval "$ac_compile") 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } && {
26100          test -z "$ac_c_werror_flag" ||
26101          test ! -s conftest.err
26102        } && test -s conftest.$ac_objext; then
26103    ac_cv_have_u_intmax_t="yes"
26104 else
26105   echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26107
26108          ac_cv_have_u_intmax_t="no"
26109
26110 fi
26111
26112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113
26114
26115 fi
26116
26117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26118
26119 fi
26120 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26121 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26122 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26123    cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_U_INTMAX_T 1
26125 _ACEOF
26126
26127    have_u_intmax_t=1
26128 fi
26129
26130
26131 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26132 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26133 if test "${ac_cv_have_intxx_t+set}" = set; then
26134   echo $ECHO_N "(cached) $ECHO_C" >&6
26135 else
26136
26137    cat >conftest.$ac_ext <<_ACEOF
26138 /* confdefs.h.  */
26139 _ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h.  */
26143  #include <sys/types.h>
26144 int
26145 main ()
26146 {
26147  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26148   ;
26149   return 0;
26150 }
26151 _ACEOF
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156   *) ac_try_echo=$ac_try;;
26157 esac
26158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26159   (eval "$ac_compile") 2>conftest.er1
26160   ac_status=$?
26161   grep -v '^ *+' conftest.er1 >conftest.err
26162   rm -f conftest.er1
26163   cat conftest.err >&5
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); } && {
26166          test -z "$ac_c_werror_flag" ||
26167          test ! -s conftest.err
26168        } && test -s conftest.$ac_objext; then
26169    ac_cv_have_intxx_t="yes"
26170 else
26171   echo "$as_me: failed program was:" >&5
26172 sed 's/^/| /' conftest.$ac_ext >&5
26173
26174          ac_cv_have_intxx_t="no"
26175
26176 fi
26177
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179
26180 fi
26181 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26182 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26183 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26184    cat >>confdefs.h <<\_ACEOF
26185 #define HAVE_INTXX_T 1
26186 _ACEOF
26187
26188    have_intxx_t=1
26189 fi
26190
26191 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26192 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26193 if test "${ac_cv_have_int64_t+set}" = set; then
26194   echo $ECHO_N "(cached) $ECHO_C" >&6
26195 else
26196
26197    cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203  #include <sys/types.h>
26204 int
26205 main ()
26206 {
26207  int64_t a; a = 1;
26208   ;
26209   return 0;
26210 }
26211 _ACEOF
26212 rm -f conftest.$ac_objext
26213 if { (ac_try="$ac_compile"
26214 case "(($ac_try" in
26215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216   *) ac_try_echo=$ac_try;;
26217 esac
26218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26219   (eval "$ac_compile") 2>conftest.er1
26220   ac_status=$?
26221   grep -v '^ *+' conftest.er1 >conftest.err
26222   rm -f conftest.er1
26223   cat conftest.err >&5
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); } && {
26226          test -z "$ac_c_werror_flag" ||
26227          test ! -s conftest.err
26228        } && test -s conftest.$ac_objext; then
26229    ac_cv_have_int64_t="yes"
26230 else
26231   echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26233
26234          ac_cv_have_int64_t="no"
26235
26236 fi
26237
26238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26239
26240 fi
26241 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26242 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26243 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26244    cat >>confdefs.h <<\_ACEOF
26245 #define HAVE_INT64_T 1
26246 _ACEOF
26247
26248    have_int64_t=1
26249 fi
26250
26251 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26252 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26253 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26254   echo $ECHO_N "(cached) $ECHO_C" >&6
26255 else
26256
26257    cat >conftest.$ac_ext <<_ACEOF
26258 /* confdefs.h.  */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h.  */
26263  #include <sys/types.h>
26264 int
26265 main ()
26266 {
26267  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26268   ;
26269   return 0;
26270 }
26271 _ACEOF
26272 rm -f conftest.$ac_objext
26273 if { (ac_try="$ac_compile"
26274 case "(($ac_try" in
26275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26276   *) ac_try_echo=$ac_try;;
26277 esac
26278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26279   (eval "$ac_compile") 2>conftest.er1
26280   ac_status=$?
26281   grep -v '^ *+' conftest.er1 >conftest.err
26282   rm -f conftest.er1
26283   cat conftest.err >&5
26284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285   (exit $ac_status); } && {
26286          test -z "$ac_c_werror_flag" ||
26287          test ! -s conftest.err
26288        } && test -s conftest.$ac_objext; then
26289    ac_cv_have_u_intxx_t="yes"
26290 else
26291   echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26293
26294          ac_cv_have_u_intxx_t="no"
26295
26296 fi
26297
26298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299
26300 fi
26301 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26302 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26303 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26304    cat >>confdefs.h <<\_ACEOF
26305 #define HAVE_U_INTXX_T 1
26306 _ACEOF
26307
26308    have_u_intxx_t=1
26309 fi
26310
26311 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26312 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26313 if test "${ac_cv_have_u_int64_t+set}" = set; then
26314   echo $ECHO_N "(cached) $ECHO_C" >&6
26315 else
26316
26317    cat >conftest.$ac_ext <<_ACEOF
26318 /* confdefs.h.  */
26319 _ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h.  */
26323  #include <sys/types.h>
26324 int
26325 main ()
26326 {
26327  u_int64_t a; a = 1;
26328   ;
26329   return 0;
26330 }
26331 _ACEOF
26332 rm -f conftest.$ac_objext
26333 if { (ac_try="$ac_compile"
26334 case "(($ac_try" in
26335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336   *) ac_try_echo=$ac_try;;
26337 esac
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339   (eval "$ac_compile") 2>conftest.er1
26340   ac_status=$?
26341   grep -v '^ *+' conftest.er1 >conftest.err
26342   rm -f conftest.er1
26343   cat conftest.err >&5
26344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345   (exit $ac_status); } && {
26346          test -z "$ac_c_werror_flag" ||
26347          test ! -s conftest.err
26348        } && test -s conftest.$ac_objext; then
26349    ac_cv_have_u_int64_t="yes"
26350 else
26351   echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26353
26354          ac_cv_have_u_int64_t="no"
26355
26356 fi
26357
26358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26359
26360 fi
26361 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26362 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26363 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26364    cat >>confdefs.h <<\_ACEOF
26365 #define HAVE_U_INT64_T 1
26366 _ACEOF
26367
26368    have_u_int64_t=1
26369 fi
26370
26371 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26372            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26373 then
26374    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26375 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26376    cat >conftest.$ac_ext <<_ACEOF
26377 /* confdefs.h.  */
26378 _ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h.  */
26382  #include <sys/bitypes.h>
26383 int
26384 main ()
26385 {
26386  int8_t a; int16_t b; int32_t c;
26387         u_int8_t e; u_int16_t f; u_int32_t g;
26388         a = b = c = e = f = g = 1;
26389   ;
26390   return 0;
26391 }
26392 _ACEOF
26393 rm -f conftest.$ac_objext
26394 if { (ac_try="$ac_compile"
26395 case "(($ac_try" in
26396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26397   *) ac_try_echo=$ac_try;;
26398 esac
26399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26400   (eval "$ac_compile") 2>conftest.er1
26401   ac_status=$?
26402   grep -v '^ *+' conftest.er1 >conftest.err
26403   rm -f conftest.er1
26404   cat conftest.err >&5
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); } && {
26407          test -z "$ac_c_werror_flag" ||
26408          test ! -s conftest.err
26409        } && test -s conftest.$ac_objext; then
26410    cat >>confdefs.h <<\_ACEOF
26411 #define HAVE_U_INTXX_T 1
26412 _ACEOF
26413
26414         cat >>confdefs.h <<\_ACEOF
26415 #define HAVE_INTXX_T 1
26416 _ACEOF
26417
26418         cat >>confdefs.h <<\_ACEOF
26419 #define HAVE_SYS_BITYPES_H 1
26420 _ACEOF
26421
26422         { echo "$as_me:$LINENO: result: yes" >&5
26423 echo "${ECHO_T}yes" >&6; }
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428          { echo "$as_me:$LINENO: result: no" >&5
26429 echo "${ECHO_T}no" >&6; }
26430
26431 fi
26432
26433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26434 fi
26435
26436 if test -z "$have_u_intxx_t" ; then
26437    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26438 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26439 if test "${ac_cv_have_uintxx_t+set}" = set; then
26440   echo $ECHO_N "(cached) $ECHO_C" >&6
26441 else
26442
26443       cat >conftest.$ac_ext <<_ACEOF
26444 /* confdefs.h.  */
26445 _ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h.  */
26449  #include <sys/types.h>
26450 int
26451 main ()
26452 {
26453  uint8_t a; uint16_t b;
26454            uint32_t c; a = b = c = 1;
26455   ;
26456   return 0;
26457 }
26458 _ACEOF
26459 rm -f conftest.$ac_objext
26460 if { (ac_try="$ac_compile"
26461 case "(($ac_try" in
26462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463   *) ac_try_echo=$ac_try;;
26464 esac
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466   (eval "$ac_compile") 2>conftest.er1
26467   ac_status=$?
26468   grep -v '^ *+' conftest.er1 >conftest.err
26469   rm -f conftest.er1
26470   cat conftest.err >&5
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); } && {
26473          test -z "$ac_c_werror_flag" ||
26474          test ! -s conftest.err
26475        } && test -s conftest.$ac_objext; then
26476    ac_cv_have_uintxx_t="yes"
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481          ac_cv_have_uintxx_t="no"
26482
26483 fi
26484
26485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26486
26487 fi
26488 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26489 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26490    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26491       cat >>confdefs.h <<\_ACEOF
26492 #define HAVE_UINTXX_T 1
26493 _ACEOF
26494
26495    fi
26496 fi
26497
26498 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26499           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26500 then
26501    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26502 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26503    cat >conftest.$ac_ext <<_ACEOF
26504 /* confdefs.h.  */
26505 _ACEOF
26506 cat confdefs.h >>conftest.$ac_ext
26507 cat >>conftest.$ac_ext <<_ACEOF
26508 /* end confdefs.h.  */
26509  #include <sys/bitypes.h>
26510 int
26511 main ()
26512 {
26513  int64_t a; u_int64_t b;
26514        a = b = 1;
26515   ;
26516   return 0;
26517 }
26518 _ACEOF
26519 rm -f conftest.$ac_objext
26520 if { (ac_try="$ac_compile"
26521 case "(($ac_try" in
26522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26523   *) ac_try_echo=$ac_try;;
26524 esac
26525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26526   (eval "$ac_compile") 2>conftest.er1
26527   ac_status=$?
26528   grep -v '^ *+' conftest.er1 >conftest.err
26529   rm -f conftest.er1
26530   cat conftest.err >&5
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); } && {
26533          test -z "$ac_c_werror_flag" ||
26534          test ! -s conftest.err
26535        } && test -s conftest.$ac_objext; then
26536    cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_U_INT64_T 1
26538 _ACEOF
26539
26540        cat >>confdefs.h <<\_ACEOF
26541 #define HAVE_INT64_T 1
26542 _ACEOF
26543
26544        { echo "$as_me:$LINENO: result: yes" >&5
26545 echo "${ECHO_T}yes" >&6; }
26546 else
26547   echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26549
26550          { echo "$as_me:$LINENO: result: no" >&5
26551 echo "${ECHO_T}no" >&6; }
26552
26553 fi
26554
26555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26556 fi
26557
26558 if (test -z "$have_uintxx_t" && \
26559           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26560 then
26561    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26562 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26563    cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569  #include <sys/bitypes.h>
26570 int
26571 main ()
26572 {
26573  uint8_t a; uint16_t b;
26574           uint32_t c; a = b = c = 1;
26575   ;
26576   return 0;
26577 }
26578 _ACEOF
26579 rm -f conftest.$ac_objext
26580 if { (ac_try="$ac_compile"
26581 case "(($ac_try" in
26582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583   *) ac_try_echo=$ac_try;;
26584 esac
26585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586   (eval "$ac_compile") 2>conftest.er1
26587   ac_status=$?
26588   grep -v '^ *+' conftest.er1 >conftest.err
26589   rm -f conftest.er1
26590   cat conftest.err >&5
26591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592   (exit $ac_status); } && {
26593          test -z "$ac_c_werror_flag" ||
26594          test ! -s conftest.err
26595        } && test -s conftest.$ac_objext; then
26596    cat >>confdefs.h <<\_ACEOF
26597 #define HAVE_UINTXX_T 1
26598 _ACEOF
26599
26600        { echo "$as_me:$LINENO: result: yes" >&5
26601 echo "${ECHO_T}yes" >&6; }
26602 else
26603   echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26605
26606          { echo "$as_me:$LINENO: result: no" >&5
26607 echo "${ECHO_T}no" >&6; }
26608
26609 fi
26610
26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612
26613 fi
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631 for ac_func in \
26632         fork \
26633         getcwd \
26634         gethostname \
26635         getpid \
26636         gettimeofday \
26637         setpgid \
26638         setpgrp \
26639         setsid \
26640         signal \
26641         strerror \
26642         strncmp \
26643         strncpy \
26644         vfprintf \
26645
26646 do
26647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26651   echo $ECHO_N "(cached) $ECHO_C" >&6
26652 else
26653   cat >conftest.$ac_ext <<_ACEOF
26654 /* confdefs.h.  */
26655 _ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h.  */
26659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26661 #define $ac_func innocuous_$ac_func
26662
26663 /* System header to define __stub macros and hopefully few prototypes,
26664     which can conflict with char $ac_func (); below.
26665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26666     <limits.h> exists even on freestanding compilers.  */
26667
26668 #ifdef __STDC__
26669 # include <limits.h>
26670 #else
26671 # include <assert.h>
26672 #endif
26673
26674 #undef $ac_func
26675
26676 /* Override any GCC internal prototype to avoid an error.
26677    Use char because int might match the return type of a GCC
26678    builtin and then its argument prototype would still apply.  */
26679 #ifdef __cplusplus
26680 extern "C"
26681 #endif
26682 char $ac_func ();
26683 /* The GNU C library defines this for functions which it implements
26684     to always fail with ENOSYS.  Some functions are actually named
26685     something starting with __ and the normal name is an alias.  */
26686 #if defined __stub_$ac_func || defined __stub___$ac_func
26687 choke me
26688 #endif
26689
26690 int
26691 main ()
26692 {
26693 return $ac_func ();
26694   ;
26695   return 0;
26696 }
26697 _ACEOF
26698 rm -f conftest.$ac_objext conftest$ac_exeext
26699 if { (ac_try="$ac_link"
26700 case "(($ac_try" in
26701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26702   *) ac_try_echo=$ac_try;;
26703 esac
26704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26705   (eval "$ac_link") 2>conftest.er1
26706   ac_status=$?
26707   grep -v '^ *+' conftest.er1 >conftest.err
26708   rm -f conftest.er1
26709   cat conftest.err >&5
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); } && {
26712          test -z "$ac_c_werror_flag" ||
26713          test ! -s conftest.err
26714        } && test -s conftest$ac_exeext &&
26715        $as_test_x conftest$ac_exeext; then
26716   eval "$as_ac_var=yes"
26717 else
26718   echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26720
26721         eval "$as_ac_var=no"
26722 fi
26723
26724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26725       conftest$ac_exeext conftest.$ac_ext
26726 fi
26727 ac_res=`eval echo '${'$as_ac_var'}'`
26728                { echo "$as_me:$LINENO: result: $ac_res" >&5
26729 echo "${ECHO_T}$ac_res" >&6; }
26730 if test `eval echo '${'$as_ac_var'}'` = yes; then
26731   cat >>confdefs.h <<_ACEOF
26732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26733 _ACEOF
26734
26735 else
26736   echo 'configure: cannot find needed function.'; exit 1
26737
26738 fi
26739 done
26740
26741
26742
26743 for ac_func in fchdir
26744 do
26745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26749   echo $ECHO_N "(cached) $ECHO_C" >&6
26750 else
26751   cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26759 #define $ac_func innocuous_$ac_func
26760
26761 /* System header to define __stub macros and hopefully few prototypes,
26762     which can conflict with char $ac_func (); below.
26763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26764     <limits.h> exists even on freestanding compilers.  */
26765
26766 #ifdef __STDC__
26767 # include <limits.h>
26768 #else
26769 # include <assert.h>
26770 #endif
26771
26772 #undef $ac_func
26773
26774 /* Override any GCC internal prototype to avoid an error.
26775    Use char because int might match the return type of a GCC
26776    builtin and then its argument prototype would still apply.  */
26777 #ifdef __cplusplus
26778 extern "C"
26779 #endif
26780 char $ac_func ();
26781 /* The GNU C library defines this for functions which it implements
26782     to always fail with ENOSYS.  Some functions are actually named
26783     something starting with __ and the normal name is an alias.  */
26784 #if defined __stub_$ac_func || defined __stub___$ac_func
26785 choke me
26786 #endif
26787
26788 int
26789 main ()
26790 {
26791 return $ac_func ();
26792   ;
26793   return 0;
26794 }
26795 _ACEOF
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (ac_try="$ac_link"
26798 case "(($ac_try" in
26799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26800   *) ac_try_echo=$ac_try;;
26801 esac
26802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26803   (eval "$ac_link") 2>conftest.er1
26804   ac_status=$?
26805   grep -v '^ *+' conftest.er1 >conftest.err
26806   rm -f conftest.er1
26807   cat conftest.err >&5
26808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809   (exit $ac_status); } && {
26810          test -z "$ac_c_werror_flag" ||
26811          test ! -s conftest.err
26812        } && test -s conftest$ac_exeext &&
26813        $as_test_x conftest$ac_exeext; then
26814   eval "$as_ac_var=yes"
26815 else
26816   echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26818
26819         eval "$as_ac_var=no"
26820 fi
26821
26822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26823       conftest$ac_exeext conftest.$ac_ext
26824 fi
26825 ac_res=`eval echo '${'$as_ac_var'}'`
26826                { echo "$as_me:$LINENO: result: $ac_res" >&5
26827 echo "${ECHO_T}$ac_res" >&6; }
26828 if test `eval echo '${'$as_ac_var'}'` = yes; then
26829   cat >>confdefs.h <<_ACEOF
26830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26831 _ACEOF
26832  cat >>confdefs.h <<\_ACEOF
26833 #define HAVE_FCHDIR 1
26834 _ACEOF
26835
26836 fi
26837 done
26838
26839
26840 for ac_func in strtoll
26841 do
26842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26846   echo $ECHO_N "(cached) $ECHO_C" >&6
26847 else
26848   cat >conftest.$ac_ext <<_ACEOF
26849 /* confdefs.h.  */
26850 _ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h.  */
26854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26856 #define $ac_func innocuous_$ac_func
26857
26858 /* System header to define __stub macros and hopefully few prototypes,
26859     which can conflict with char $ac_func (); below.
26860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26861     <limits.h> exists even on freestanding compilers.  */
26862
26863 #ifdef __STDC__
26864 # include <limits.h>
26865 #else
26866 # include <assert.h>
26867 #endif
26868
26869 #undef $ac_func
26870
26871 /* Override any GCC internal prototype to avoid an error.
26872    Use char because int might match the return type of a GCC
26873    builtin and then its argument prototype would still apply.  */
26874 #ifdef __cplusplus
26875 extern "C"
26876 #endif
26877 char $ac_func ();
26878 /* The GNU C library defines this for functions which it implements
26879     to always fail with ENOSYS.  Some functions are actually named
26880     something starting with __ and the normal name is an alias.  */
26881 #if defined __stub_$ac_func || defined __stub___$ac_func
26882 choke me
26883 #endif
26884
26885 int
26886 main ()
26887 {
26888 return $ac_func ();
26889   ;
26890   return 0;
26891 }
26892 _ACEOF
26893 rm -f conftest.$ac_objext conftest$ac_exeext
26894 if { (ac_try="$ac_link"
26895 case "(($ac_try" in
26896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26897   *) ac_try_echo=$ac_try;;
26898 esac
26899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26900   (eval "$ac_link") 2>conftest.er1
26901   ac_status=$?
26902   grep -v '^ *+' conftest.er1 >conftest.err
26903   rm -f conftest.er1
26904   cat conftest.err >&5
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); } && {
26907          test -z "$ac_c_werror_flag" ||
26908          test ! -s conftest.err
26909        } && test -s conftest$ac_exeext &&
26910        $as_test_x conftest$ac_exeext; then
26911   eval "$as_ac_var=yes"
26912 else
26913   echo "$as_me: failed program was:" >&5
26914 sed 's/^/| /' conftest.$ac_ext >&5
26915
26916         eval "$as_ac_var=no"
26917 fi
26918
26919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26920       conftest$ac_exeext conftest.$ac_ext
26921 fi
26922 ac_res=`eval echo '${'$as_ac_var'}'`
26923                { echo "$as_me:$LINENO: result: $ac_res" >&5
26924 echo "${ECHO_T}$ac_res" >&6; }
26925 if test `eval echo '${'$as_ac_var'}'` = yes; then
26926   cat >>confdefs.h <<_ACEOF
26927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26928 _ACEOF
26929  cat >>confdefs.h <<\_ACEOF
26930 #define HAVE_STRTOLL 1
26931 _ACEOF
26932
26933 fi
26934 done
26935
26936
26937 for ac_func in posix_fadvise
26938 do
26939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26943   echo $ECHO_N "(cached) $ECHO_C" >&6
26944 else
26945   cat >conftest.$ac_ext <<_ACEOF
26946 /* confdefs.h.  */
26947 _ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h.  */
26951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26953 #define $ac_func innocuous_$ac_func
26954
26955 /* System header to define __stub macros and hopefully few prototypes,
26956     which can conflict with char $ac_func (); below.
26957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26958     <limits.h> exists even on freestanding compilers.  */
26959
26960 #ifdef __STDC__
26961 # include <limits.h>
26962 #else
26963 # include <assert.h>
26964 #endif
26965
26966 #undef $ac_func
26967
26968 /* Override any GCC internal prototype to avoid an error.
26969    Use char because int might match the return type of a GCC
26970    builtin and then its argument prototype would still apply.  */
26971 #ifdef __cplusplus
26972 extern "C"
26973 #endif
26974 char $ac_func ();
26975 /* The GNU C library defines this for functions which it implements
26976     to always fail with ENOSYS.  Some functions are actually named
26977     something starting with __ and the normal name is an alias.  */
26978 #if defined __stub_$ac_func || defined __stub___$ac_func
26979 choke me
26980 #endif
26981
26982 int
26983 main ()
26984 {
26985 return $ac_func ();
26986   ;
26987   return 0;
26988 }
26989 _ACEOF
26990 rm -f conftest.$ac_objext conftest$ac_exeext
26991 if { (ac_try="$ac_link"
26992 case "(($ac_try" in
26993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994   *) ac_try_echo=$ac_try;;
26995 esac
26996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997   (eval "$ac_link") 2>conftest.er1
26998   ac_status=$?
26999   grep -v '^ *+' conftest.er1 >conftest.err
27000   rm -f conftest.er1
27001   cat conftest.err >&5
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); } && {
27004          test -z "$ac_c_werror_flag" ||
27005          test ! -s conftest.err
27006        } && test -s conftest$ac_exeext &&
27007        $as_test_x conftest$ac_exeext; then
27008   eval "$as_ac_var=yes"
27009 else
27010   echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013         eval "$as_ac_var=no"
27014 fi
27015
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017       conftest$ac_exeext conftest.$ac_ext
27018 fi
27019 ac_res=`eval echo '${'$as_ac_var'}'`
27020                { echo "$as_me:$LINENO: result: $ac_res" >&5
27021 echo "${ECHO_T}$ac_res" >&6; }
27022 if test `eval echo '${'$as_ac_var'}'` = yes; then
27023   cat >>confdefs.h <<_ACEOF
27024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27025 _ACEOF
27026
27027 fi
27028 done
27029
27030
27031 for ac_func in fdatasync
27032 do
27033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27037   echo $ECHO_N "(cached) $ECHO_C" >&6
27038 else
27039   cat >conftest.$ac_ext <<_ACEOF
27040 /* confdefs.h.  */
27041 _ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h.  */
27045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27047 #define $ac_func innocuous_$ac_func
27048
27049 /* System header to define __stub macros and hopefully few prototypes,
27050     which can conflict with char $ac_func (); below.
27051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27052     <limits.h> exists even on freestanding compilers.  */
27053
27054 #ifdef __STDC__
27055 # include <limits.h>
27056 #else
27057 # include <assert.h>
27058 #endif
27059
27060 #undef $ac_func
27061
27062 /* Override any GCC internal prototype to avoid an error.
27063    Use char because int might match the return type of a GCC
27064    builtin and then its argument prototype would still apply.  */
27065 #ifdef __cplusplus
27066 extern "C"
27067 #endif
27068 char $ac_func ();
27069 /* The GNU C library defines this for functions which it implements
27070     to always fail with ENOSYS.  Some functions are actually named
27071     something starting with __ and the normal name is an alias.  */
27072 #if defined __stub_$ac_func || defined __stub___$ac_func
27073 choke me
27074 #endif
27075
27076 int
27077 main ()
27078 {
27079 return $ac_func ();
27080   ;
27081   return 0;
27082 }
27083 _ACEOF
27084 rm -f conftest.$ac_objext conftest$ac_exeext
27085 if { (ac_try="$ac_link"
27086 case "(($ac_try" in
27087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27088   *) ac_try_echo=$ac_try;;
27089 esac
27090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27091   (eval "$ac_link") 2>conftest.er1
27092   ac_status=$?
27093   grep -v '^ *+' conftest.er1 >conftest.err
27094   rm -f conftest.er1
27095   cat conftest.err >&5
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); } && {
27098          test -z "$ac_c_werror_flag" ||
27099          test ! -s conftest.err
27100        } && test -s conftest$ac_exeext &&
27101        $as_test_x conftest$ac_exeext; then
27102   eval "$as_ac_var=yes"
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107         eval "$as_ac_var=no"
27108 fi
27109
27110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27111       conftest$ac_exeext conftest.$ac_ext
27112 fi
27113 ac_res=`eval echo '${'$as_ac_var'}'`
27114                { echo "$as_me:$LINENO: result: $ac_res" >&5
27115 echo "${ECHO_T}$ac_res" >&6; }
27116 if test `eval echo '${'$as_ac_var'}'` = yes; then
27117   cat >>confdefs.h <<_ACEOF
27118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27119 _ACEOF
27120
27121 fi
27122 done
27123
27124
27125
27126 for ac_func in chflags
27127 do
27128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27132   echo $ECHO_N "(cached) $ECHO_C" >&6
27133 else
27134   cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h.  */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h.  */
27140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27142 #define $ac_func innocuous_$ac_func
27143
27144 /* System header to define __stub macros and hopefully few prototypes,
27145     which can conflict with char $ac_func (); below.
27146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27147     <limits.h> exists even on freestanding compilers.  */
27148
27149 #ifdef __STDC__
27150 # include <limits.h>
27151 #else
27152 # include <assert.h>
27153 #endif
27154
27155 #undef $ac_func
27156
27157 /* Override any GCC internal prototype to avoid an error.
27158    Use char because int might match the return type of a GCC
27159    builtin and then its argument prototype would still apply.  */
27160 #ifdef __cplusplus
27161 extern "C"
27162 #endif
27163 char $ac_func ();
27164 /* The GNU C library defines this for functions which it implements
27165     to always fail with ENOSYS.  Some functions are actually named
27166     something starting with __ and the normal name is an alias.  */
27167 #if defined __stub_$ac_func || defined __stub___$ac_func
27168 choke me
27169 #endif
27170
27171 int
27172 main ()
27173 {
27174 return $ac_func ();
27175   ;
27176   return 0;
27177 }
27178 _ACEOF
27179 rm -f conftest.$ac_objext conftest$ac_exeext
27180 if { (ac_try="$ac_link"
27181 case "(($ac_try" in
27182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27183   *) ac_try_echo=$ac_try;;
27184 esac
27185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27186   (eval "$ac_link") 2>conftest.er1
27187   ac_status=$?
27188   grep -v '^ *+' conftest.er1 >conftest.err
27189   rm -f conftest.er1
27190   cat conftest.err >&5
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); } && {
27193          test -z "$ac_c_werror_flag" ||
27194          test ! -s conftest.err
27195        } && test -s conftest$ac_exeext &&
27196        $as_test_x conftest$ac_exeext; then
27197   eval "$as_ac_var=yes"
27198 else
27199   echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27201
27202         eval "$as_ac_var=no"
27203 fi
27204
27205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27206       conftest$ac_exeext conftest.$ac_ext
27207 fi
27208 ac_res=`eval echo '${'$as_ac_var'}'`
27209                { echo "$as_me:$LINENO: result: $ac_res" >&5
27210 echo "${ECHO_T}$ac_res" >&6; }
27211 if test `eval echo '${'$as_ac_var'}'` = yes; then
27212   cat >>confdefs.h <<_ACEOF
27213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27214 _ACEOF
27215
27216 fi
27217 done
27218
27219
27220
27221
27222
27223
27224 for ac_func in snprintf vsnprintf gethostid fseeko
27225 do
27226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27230   echo $ECHO_N "(cached) $ECHO_C" >&6
27231 else
27232   cat >conftest.$ac_ext <<_ACEOF
27233 /* confdefs.h.  */
27234 _ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h.  */
27238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27240 #define $ac_func innocuous_$ac_func
27241
27242 /* System header to define __stub macros and hopefully few prototypes,
27243     which can conflict with char $ac_func (); below.
27244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27245     <limits.h> exists even on freestanding compilers.  */
27246
27247 #ifdef __STDC__
27248 # include <limits.h>
27249 #else
27250 # include <assert.h>
27251 #endif
27252
27253 #undef $ac_func
27254
27255 /* Override any GCC internal prototype to avoid an error.
27256    Use char because int might match the return type of a GCC
27257    builtin and then its argument prototype would still apply.  */
27258 #ifdef __cplusplus
27259 extern "C"
27260 #endif
27261 char $ac_func ();
27262 /* The GNU C library defines this for functions which it implements
27263     to always fail with ENOSYS.  Some functions are actually named
27264     something starting with __ and the normal name is an alias.  */
27265 #if defined __stub_$ac_func || defined __stub___$ac_func
27266 choke me
27267 #endif
27268
27269 int
27270 main ()
27271 {
27272 return $ac_func ();
27273   ;
27274   return 0;
27275 }
27276 _ACEOF
27277 rm -f conftest.$ac_objext conftest$ac_exeext
27278 if { (ac_try="$ac_link"
27279 case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284   (eval "$ac_link") 2>conftest.er1
27285   ac_status=$?
27286   grep -v '^ *+' conftest.er1 >conftest.err
27287   rm -f conftest.er1
27288   cat conftest.err >&5
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); } && {
27291          test -z "$ac_c_werror_flag" ||
27292          test ! -s conftest.err
27293        } && test -s conftest$ac_exeext &&
27294        $as_test_x conftest$ac_exeext; then
27295   eval "$as_ac_var=yes"
27296 else
27297   echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27299
27300         eval "$as_ac_var=no"
27301 fi
27302
27303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27304       conftest$ac_exeext conftest.$ac_ext
27305 fi
27306 ac_res=`eval echo '${'$as_ac_var'}'`
27307                { echo "$as_me:$LINENO: result: $ac_res" >&5
27308 echo "${ECHO_T}$ac_res" >&6; }
27309 if test `eval echo '${'$as_ac_var'}'` = yes; then
27310   cat >>confdefs.h <<_ACEOF
27311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27312 _ACEOF
27313
27314 fi
27315 done
27316
27317
27318 { echo "$as_me:$LINENO: checking for va_copy" >&5
27319 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27320 if test "${ba_cv_va_copy+set}" = set; then
27321   echo $ECHO_N "(cached) $ECHO_C" >&6
27322 else
27323   cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h.  */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h.  */
27329
27330 #include <stdarg.h>
27331 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27332 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27333
27334 int
27335 main ()
27336 {
27337 call_use_va_copy(1,2,3)
27338   ;
27339   return 0;
27340 }
27341 _ACEOF
27342 rm -f conftest.$ac_objext conftest$ac_exeext
27343 if { (ac_try="$ac_link"
27344 case "(($ac_try" in
27345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27346   *) ac_try_echo=$ac_try;;
27347 esac
27348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27349   (eval "$ac_link") 2>conftest.er1
27350   ac_status=$?
27351   grep -v '^ *+' conftest.er1 >conftest.err
27352   rm -f conftest.er1
27353   cat conftest.err >&5
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); } && {
27356          test -z "$ac_c_werror_flag" ||
27357          test ! -s conftest.err
27358        } && test -s conftest$ac_exeext &&
27359        $as_test_x conftest$ac_exeext; then
27360   ba_cv_va_copy=yes
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365         ba_cv_va_copy=no
27366 fi
27367
27368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27369       conftest$ac_exeext conftest.$ac_ext
27370 fi
27371 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27372 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27373 test $ba_cv_va_copy = yes &&
27374 cat >>confdefs.h <<\_ACEOF
27375 #define HAVE_VA_COPY 1
27376 _ACEOF
27377
27378
27379
27380
27381
27382
27383
27384 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27385 do
27386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27390   echo $ECHO_N "(cached) $ECHO_C" >&6
27391 else
27392   cat >conftest.$ac_ext <<_ACEOF
27393 /* confdefs.h.  */
27394 _ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h.  */
27398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27400 #define $ac_func innocuous_$ac_func
27401
27402 /* System header to define __stub macros and hopefully few prototypes,
27403     which can conflict with char $ac_func (); below.
27404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27405     <limits.h> exists even on freestanding compilers.  */
27406
27407 #ifdef __STDC__
27408 # include <limits.h>
27409 #else
27410 # include <assert.h>
27411 #endif
27412
27413 #undef $ac_func
27414
27415 /* Override any GCC internal prototype to avoid an error.
27416    Use char because int might match the return type of a GCC
27417    builtin and then its argument prototype would still apply.  */
27418 #ifdef __cplusplus
27419 extern "C"
27420 #endif
27421 char $ac_func ();
27422 /* The GNU C library defines this for functions which it implements
27423     to always fail with ENOSYS.  Some functions are actually named
27424     something starting with __ and the normal name is an alias.  */
27425 #if defined __stub_$ac_func || defined __stub___$ac_func
27426 choke me
27427 #endif
27428
27429 int
27430 main ()
27431 {
27432 return $ac_func ();
27433   ;
27434   return 0;
27435 }
27436 _ACEOF
27437 rm -f conftest.$ac_objext conftest$ac_exeext
27438 if { (ac_try="$ac_link"
27439 case "(($ac_try" in
27440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441   *) ac_try_echo=$ac_try;;
27442 esac
27443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444   (eval "$ac_link") 2>conftest.er1
27445   ac_status=$?
27446   grep -v '^ *+' conftest.er1 >conftest.err
27447   rm -f conftest.er1
27448   cat conftest.err >&5
27449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450   (exit $ac_status); } && {
27451          test -z "$ac_c_werror_flag" ||
27452          test ! -s conftest.err
27453        } && test -s conftest$ac_exeext &&
27454        $as_test_x conftest$ac_exeext; then
27455   eval "$as_ac_var=yes"
27456 else
27457   echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27459
27460         eval "$as_ac_var=no"
27461 fi
27462
27463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27464       conftest$ac_exeext conftest.$ac_ext
27465 fi
27466 ac_res=`eval echo '${'$as_ac_var'}'`
27467                { echo "$as_me:$LINENO: result: $ac_res" >&5
27468 echo "${ECHO_T}$ac_res" >&6; }
27469 if test `eval echo '${'$as_ac_var'}'` = yes; then
27470   cat >>confdefs.h <<_ACEOF
27471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27472 _ACEOF
27473
27474 fi
27475 done
27476
27477
27478 # If resolver functions are not in libc check for -lnsl or -lresolv.
27479 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27480 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27481 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27482   echo $ECHO_N "(cached) $ECHO_C" >&6
27483 else
27484   cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h.  */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h.  */
27490 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27492 #define gethostbyname_r innocuous_gethostbyname_r
27493
27494 /* System header to define __stub macros and hopefully few prototypes,
27495     which can conflict with char gethostbyname_r (); below.
27496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27497     <limits.h> exists even on freestanding compilers.  */
27498
27499 #ifdef __STDC__
27500 # include <limits.h>
27501 #else
27502 # include <assert.h>
27503 #endif
27504
27505 #undef gethostbyname_r
27506
27507 /* Override any GCC internal prototype to avoid an error.
27508    Use char because int might match the return type of a GCC
27509    builtin and then its argument prototype would still apply.  */
27510 #ifdef __cplusplus
27511 extern "C"
27512 #endif
27513 char gethostbyname_r ();
27514 /* The GNU C library defines this for functions which it implements
27515     to always fail with ENOSYS.  Some functions are actually named
27516     something starting with __ and the normal name is an alias.  */
27517 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27518 choke me
27519 #endif
27520
27521 int
27522 main ()
27523 {
27524 return gethostbyname_r ();
27525   ;
27526   return 0;
27527 }
27528 _ACEOF
27529 rm -f conftest.$ac_objext conftest$ac_exeext
27530 if { (ac_try="$ac_link"
27531 case "(($ac_try" in
27532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533   *) ac_try_echo=$ac_try;;
27534 esac
27535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536   (eval "$ac_link") 2>conftest.er1
27537   ac_status=$?
27538   grep -v '^ *+' conftest.er1 >conftest.err
27539   rm -f conftest.er1
27540   cat conftest.err >&5
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); } && {
27543          test -z "$ac_c_werror_flag" ||
27544          test ! -s conftest.err
27545        } && test -s conftest$ac_exeext &&
27546        $as_test_x conftest$ac_exeext; then
27547   ac_cv_func_gethostbyname_r=yes
27548 else
27549   echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27551
27552         ac_cv_func_gethostbyname_r=no
27553 fi
27554
27555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27556       conftest$ac_exeext conftest.$ac_ext
27557 fi
27558 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27559 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27560 if test $ac_cv_func_gethostbyname_r = yes; then
27561   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27562 echo "${ECHO_T}using libc's resolver" >&6; }
27563 else
27564
27565 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27566 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27567 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27568   echo $ECHO_N "(cached) $ECHO_C" >&6
27569 else
27570   ac_check_lib_save_LIBS=$LIBS
27571 LIBS="-lnsl  $LIBS"
27572 cat >conftest.$ac_ext <<_ACEOF
27573 /* confdefs.h.  */
27574 _ACEOF
27575 cat confdefs.h >>conftest.$ac_ext
27576 cat >>conftest.$ac_ext <<_ACEOF
27577 /* end confdefs.h.  */
27578
27579 /* Override any GCC internal prototype to avoid an error.
27580    Use char because int might match the return type of a GCC
27581    builtin and then its argument prototype would still apply.  */
27582 #ifdef __cplusplus
27583 extern "C"
27584 #endif
27585 char gethostbyname_r ();
27586 int
27587 main ()
27588 {
27589 return gethostbyname_r ();
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 rm -f conftest.$ac_objext conftest$ac_exeext
27595 if { (ac_try="$ac_link"
27596 case "(($ac_try" in
27597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598   *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601   (eval "$ac_link") 2>conftest.er1
27602   ac_status=$?
27603   grep -v '^ *+' conftest.er1 >conftest.err
27604   rm -f conftest.er1
27605   cat conftest.err >&5
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); } && {
27608          test -z "$ac_c_werror_flag" ||
27609          test ! -s conftest.err
27610        } && test -s conftest$ac_exeext &&
27611        $as_test_x conftest$ac_exeext; then
27612   ac_cv_lib_nsl_gethostbyname_r=yes
27613 else
27614   echo "$as_me: failed program was:" >&5
27615 sed 's/^/| /' conftest.$ac_ext >&5
27616
27617         ac_cv_lib_nsl_gethostbyname_r=no
27618 fi
27619
27620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27621       conftest$ac_exeext conftest.$ac_ext
27622 LIBS=$ac_check_lib_save_LIBS
27623 fi
27624 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27625 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27626 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27627   cat >>confdefs.h <<_ACEOF
27628 #define HAVE_LIBNSL 1
27629 _ACEOF
27630
27631   LIBS="-lnsl $LIBS"
27632
27633 fi
27634
27635
27636 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27637 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27638 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27639   echo $ECHO_N "(cached) $ECHO_C" >&6
27640 else
27641   ac_check_lib_save_LIBS=$LIBS
27642 LIBS="-lresolv  $LIBS"
27643 cat >conftest.$ac_ext <<_ACEOF
27644 /* confdefs.h.  */
27645 _ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h.  */
27649
27650 /* Override any GCC internal prototype to avoid an error.
27651    Use char because int might match the return type of a GCC
27652    builtin and then its argument prototype would still apply.  */
27653 #ifdef __cplusplus
27654 extern "C"
27655 #endif
27656 char gethostbyname_r ();
27657 int
27658 main ()
27659 {
27660 return gethostbyname_r ();
27661   ;
27662   return 0;
27663 }
27664 _ACEOF
27665 rm -f conftest.$ac_objext conftest$ac_exeext
27666 if { (ac_try="$ac_link"
27667 case "(($ac_try" in
27668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669   *) ac_try_echo=$ac_try;;
27670 esac
27671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672   (eval "$ac_link") 2>conftest.er1
27673   ac_status=$?
27674   grep -v '^ *+' conftest.er1 >conftest.err
27675   rm -f conftest.er1
27676   cat conftest.err >&5
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); } && {
27679          test -z "$ac_c_werror_flag" ||
27680          test ! -s conftest.err
27681        } && test -s conftest$ac_exeext &&
27682        $as_test_x conftest$ac_exeext; then
27683   ac_cv_lib_resolv_gethostbyname_r=yes
27684 else
27685   echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27687
27688         ac_cv_lib_resolv_gethostbyname_r=no
27689 fi
27690
27691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27692       conftest$ac_exeext conftest.$ac_ext
27693 LIBS=$ac_check_lib_save_LIBS
27694 fi
27695 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27696 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27697 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27698   cat >>confdefs.h <<_ACEOF
27699 #define HAVE_LIBRESOLV 1
27700 _ACEOF
27701
27702   LIBS="-lresolv $LIBS"
27703
27704 fi
27705
27706 fi
27707
27708
27709
27710
27711
27712 for ac_func in inet_pton
27713 do
27714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27728 #define $ac_func innocuous_$ac_func
27729
27730 /* System header to define __stub macros and hopefully few prototypes,
27731     which can conflict with char $ac_func (); below.
27732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27733     <limits.h> exists even on freestanding compilers.  */
27734
27735 #ifdef __STDC__
27736 # include <limits.h>
27737 #else
27738 # include <assert.h>
27739 #endif
27740
27741 #undef $ac_func
27742
27743 /* Override any GCC internal prototype to avoid an error.
27744    Use char because int might match the return type of a GCC
27745    builtin and then its argument prototype would still apply.  */
27746 #ifdef __cplusplus
27747 extern "C"
27748 #endif
27749 char $ac_func ();
27750 /* The GNU C library defines this for functions which it implements
27751     to always fail with ENOSYS.  Some functions are actually named
27752     something starting with __ and the normal name is an alias.  */
27753 #if defined __stub_$ac_func || defined __stub___$ac_func
27754 choke me
27755 #endif
27756
27757 int
27758 main ()
27759 {
27760 return $ac_func ();
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
27765 rm -f conftest.$ac_objext conftest$ac_exeext
27766 if { (ac_try="$ac_link"
27767 case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_link") 2>conftest.er1
27773   ac_status=$?
27774   grep -v '^ *+' conftest.er1 >conftest.err
27775   rm -f conftest.er1
27776   cat conftest.err >&5
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); } && {
27779          test -z "$ac_c_werror_flag" ||
27780          test ! -s conftest.err
27781        } && test -s conftest$ac_exeext &&
27782        $as_test_x conftest$ac_exeext; then
27783   eval "$as_ac_var=yes"
27784 else
27785   echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27787
27788         eval "$as_ac_var=no"
27789 fi
27790
27791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27792       conftest$ac_exeext conftest.$ac_ext
27793 fi
27794 ac_res=`eval echo '${'$as_ac_var'}'`
27795                { echo "$as_me:$LINENO: result: $ac_res" >&5
27796 echo "${ECHO_T}$ac_res" >&6; }
27797 if test `eval echo '${'$as_ac_var'}'` = yes; then
27798   cat >>confdefs.h <<_ACEOF
27799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27800 _ACEOF
27801  cat >>confdefs.h <<\_ACEOF
27802 #define HAVE_INET_PTON 1
27803 _ACEOF
27804
27805 fi
27806 done
27807
27808
27809 for ac_func in inet_ntop
27810 do
27811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27815   echo $ECHO_N "(cached) $ECHO_C" >&6
27816 else
27817   cat >conftest.$ac_ext <<_ACEOF
27818 /* confdefs.h.  */
27819 _ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h.  */
27823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27825 #define $ac_func innocuous_$ac_func
27826
27827 /* System header to define __stub macros and hopefully few prototypes,
27828     which can conflict with char $ac_func (); below.
27829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27830     <limits.h> exists even on freestanding compilers.  */
27831
27832 #ifdef __STDC__
27833 # include <limits.h>
27834 #else
27835 # include <assert.h>
27836 #endif
27837
27838 #undef $ac_func
27839
27840 /* Override any GCC internal prototype to avoid an error.
27841    Use char because int might match the return type of a GCC
27842    builtin and then its argument prototype would still apply.  */
27843 #ifdef __cplusplus
27844 extern "C"
27845 #endif
27846 char $ac_func ();
27847 /* The GNU C library defines this for functions which it implements
27848     to always fail with ENOSYS.  Some functions are actually named
27849     something starting with __ and the normal name is an alias.  */
27850 #if defined __stub_$ac_func || defined __stub___$ac_func
27851 choke me
27852 #endif
27853
27854 int
27855 main ()
27856 {
27857 return $ac_func ();
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (ac_try="$ac_link"
27864 case "(($ac_try" in
27865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866   *) ac_try_echo=$ac_try;;
27867 esac
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869   (eval "$ac_link") 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } && {
27876          test -z "$ac_c_werror_flag" ||
27877          test ! -s conftest.err
27878        } && test -s conftest$ac_exeext &&
27879        $as_test_x conftest$ac_exeext; then
27880   eval "$as_ac_var=yes"
27881 else
27882   echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27884
27885         eval "$as_ac_var=no"
27886 fi
27887
27888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27889       conftest$ac_exeext conftest.$ac_ext
27890 fi
27891 ac_res=`eval echo '${'$as_ac_var'}'`
27892                { echo "$as_me:$LINENO: result: $ac_res" >&5
27893 echo "${ECHO_T}$ac_res" >&6; }
27894 if test `eval echo '${'$as_ac_var'}'` = yes; then
27895   cat >>confdefs.h <<_ACEOF
27896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27897 _ACEOF
27898  cat >>confdefs.h <<\_ACEOF
27899 #define HAVE_INET_NTOP 1
27900 _ACEOF
27901
27902 fi
27903 done
27904
27905
27906 for ac_func in gethostbyname2
27907 do
27908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914   cat >conftest.$ac_ext <<_ACEOF
27915 /* confdefs.h.  */
27916 _ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h.  */
27920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27922 #define $ac_func innocuous_$ac_func
27923
27924 /* System header to define __stub macros and hopefully few prototypes,
27925     which can conflict with char $ac_func (); below.
27926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27927     <limits.h> exists even on freestanding compilers.  */
27928
27929 #ifdef __STDC__
27930 # include <limits.h>
27931 #else
27932 # include <assert.h>
27933 #endif
27934
27935 #undef $ac_func
27936
27937 /* Override any GCC internal prototype to avoid an error.
27938    Use char because int might match the return type of a GCC
27939    builtin and then its argument prototype would still apply.  */
27940 #ifdef __cplusplus
27941 extern "C"
27942 #endif
27943 char $ac_func ();
27944 /* The GNU C library defines this for functions which it implements
27945     to always fail with ENOSYS.  Some functions are actually named
27946     something starting with __ and the normal name is an alias.  */
27947 #if defined __stub_$ac_func || defined __stub___$ac_func
27948 choke me
27949 #endif
27950
27951 int
27952 main ()
27953 {
27954 return $ac_func ();
27955   ;
27956   return 0;
27957 }
27958 _ACEOF
27959 rm -f conftest.$ac_objext conftest$ac_exeext
27960 if { (ac_try="$ac_link"
27961 case "(($ac_try" in
27962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963   *) ac_try_echo=$ac_try;;
27964 esac
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966   (eval "$ac_link") 2>conftest.er1
27967   ac_status=$?
27968   grep -v '^ *+' conftest.er1 >conftest.err
27969   rm -f conftest.er1
27970   cat conftest.err >&5
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); } && {
27973          test -z "$ac_c_werror_flag" ||
27974          test ! -s conftest.err
27975        } && test -s conftest$ac_exeext &&
27976        $as_test_x conftest$ac_exeext; then
27977   eval "$as_ac_var=yes"
27978 else
27979   echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27981
27982         eval "$as_ac_var=no"
27983 fi
27984
27985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27986       conftest$ac_exeext conftest.$ac_ext
27987 fi
27988 ac_res=`eval echo '${'$as_ac_var'}'`
27989                { echo "$as_me:$LINENO: result: $ac_res" >&5
27990 echo "${ECHO_T}$ac_res" >&6; }
27991 if test `eval echo '${'$as_ac_var'}'` = yes; then
27992   cat >>confdefs.h <<_ACEOF
27993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27994 _ACEOF
27995  cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_GETHOSTBYNAME2 1
27997 _ACEOF
27998
27999 fi
28000 done
28001
28002
28003 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28004 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28005 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28006   echo $ECHO_N "(cached) $ECHO_C" >&6
28007 else
28008   cat >conftest.$ac_ext <<_ACEOF
28009 /* confdefs.h.  */
28010 _ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h.  */
28014 #include <sys/socket.h>
28015 int
28016 main ()
28017 {
28018 struct sockaddr s; s.sa_len;
28019   ;
28020   return 0;
28021 }
28022 _ACEOF
28023 rm -f conftest.$ac_objext
28024 if { (ac_try="$ac_compile"
28025 case "(($ac_try" in
28026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027   *) ac_try_echo=$ac_try;;
28028 esac
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030   (eval "$ac_compile") 2>conftest.er1
28031   ac_status=$?
28032   grep -v '^ *+' conftest.er1 >conftest.err
28033   rm -f conftest.er1
28034   cat conftest.err >&5
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); } && {
28037          test -z "$ac_c_werror_flag" ||
28038          test ! -s conftest.err
28039        } && test -s conftest.$ac_objext; then
28040   ac_cv_struct_sockaddr_sa_len=yes
28041 else
28042   echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28044
28045         ac_cv_struct_sockaddr_sa_len=no
28046 fi
28047
28048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28049 fi
28050 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28051 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28052
28053  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28054
28055 cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_SA_LEN 1
28057 _ACEOF
28058
28059  fi
28060
28061
28062
28063
28064
28065 for ac_func in strftime
28066 do
28067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28071   echo $ECHO_N "(cached) $ECHO_C" >&6
28072 else
28073   cat >conftest.$ac_ext <<_ACEOF
28074 /* confdefs.h.  */
28075 _ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h.  */
28079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28081 #define $ac_func innocuous_$ac_func
28082
28083 /* System header to define __stub macros and hopefully few prototypes,
28084     which can conflict with char $ac_func (); below.
28085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28086     <limits.h> exists even on freestanding compilers.  */
28087
28088 #ifdef __STDC__
28089 # include <limits.h>
28090 #else
28091 # include <assert.h>
28092 #endif
28093
28094 #undef $ac_func
28095
28096 /* Override any GCC internal prototype to avoid an error.
28097    Use char because int might match the return type of a GCC
28098    builtin and then its argument prototype would still apply.  */
28099 #ifdef __cplusplus
28100 extern "C"
28101 #endif
28102 char $ac_func ();
28103 /* The GNU C library defines this for functions which it implements
28104     to always fail with ENOSYS.  Some functions are actually named
28105     something starting with __ and the normal name is an alias.  */
28106 #if defined __stub_$ac_func || defined __stub___$ac_func
28107 choke me
28108 #endif
28109
28110 int
28111 main ()
28112 {
28113 return $ac_func ();
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (ac_try="$ac_link"
28120 case "(($ac_try" in
28121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122   *) ac_try_echo=$ac_try;;
28123 esac
28124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125   (eval "$ac_link") 2>conftest.er1
28126   ac_status=$?
28127   grep -v '^ *+' conftest.er1 >conftest.err
28128   rm -f conftest.er1
28129   cat conftest.err >&5
28130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131   (exit $ac_status); } && {
28132          test -z "$ac_c_werror_flag" ||
28133          test ! -s conftest.err
28134        } && test -s conftest$ac_exeext &&
28135        $as_test_x conftest$ac_exeext; then
28136   eval "$as_ac_var=yes"
28137 else
28138   echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28140
28141         eval "$as_ac_var=no"
28142 fi
28143
28144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28145       conftest$ac_exeext conftest.$ac_ext
28146 fi
28147 ac_res=`eval echo '${'$as_ac_var'}'`
28148                { echo "$as_me:$LINENO: result: $ac_res" >&5
28149 echo "${ECHO_T}$ac_res" >&6; }
28150 if test `eval echo '${'$as_ac_var'}'` = yes; then
28151   cat >>confdefs.h <<_ACEOF
28152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28153 _ACEOF
28154
28155 else
28156   # strftime is in -lintl on SCO UNIX.
28157 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28158 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28159 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28160   echo $ECHO_N "(cached) $ECHO_C" >&6
28161 else
28162   ac_check_lib_save_LIBS=$LIBS
28163 LIBS="-lintl  $LIBS"
28164 cat >conftest.$ac_ext <<_ACEOF
28165 /* confdefs.h.  */
28166 _ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h.  */
28170
28171 /* Override any GCC internal prototype to avoid an error.
28172    Use char because int might match the return type of a GCC
28173    builtin and then its argument prototype would still apply.  */
28174 #ifdef __cplusplus
28175 extern "C"
28176 #endif
28177 char strftime ();
28178 int
28179 main ()
28180 {
28181 return strftime ();
28182   ;
28183   return 0;
28184 }
28185 _ACEOF
28186 rm -f conftest.$ac_objext conftest$ac_exeext
28187 if { (ac_try="$ac_link"
28188 case "(($ac_try" in
28189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28190   *) ac_try_echo=$ac_try;;
28191 esac
28192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28193   (eval "$ac_link") 2>conftest.er1
28194   ac_status=$?
28195   grep -v '^ *+' conftest.er1 >conftest.err
28196   rm -f conftest.er1
28197   cat conftest.err >&5
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } && {
28200          test -z "$ac_c_werror_flag" ||
28201          test ! -s conftest.err
28202        } && test -s conftest$ac_exeext &&
28203        $as_test_x conftest$ac_exeext; then
28204   ac_cv_lib_intl_strftime=yes
28205 else
28206   echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28208
28209         ac_cv_lib_intl_strftime=no
28210 fi
28211
28212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28213       conftest$ac_exeext conftest.$ac_ext
28214 LIBS=$ac_check_lib_save_LIBS
28215 fi
28216 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28217 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28218 if test $ac_cv_lib_intl_strftime = yes; then
28219   cat >>confdefs.h <<\_ACEOF
28220 #define HAVE_STRFTIME 1
28221 _ACEOF
28222
28223 LIBS="-lintl $LIBS"
28224 fi
28225
28226 fi
28227 done
28228
28229
28230 for ac_func in vprintf
28231 do
28232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28236   echo $ECHO_N "(cached) $ECHO_C" >&6
28237 else
28238   cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28246 #define $ac_func innocuous_$ac_func
28247
28248 /* System header to define __stub macros and hopefully few prototypes,
28249     which can conflict with char $ac_func (); below.
28250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28251     <limits.h> exists even on freestanding compilers.  */
28252
28253 #ifdef __STDC__
28254 # include <limits.h>
28255 #else
28256 # include <assert.h>
28257 #endif
28258
28259 #undef $ac_func
28260
28261 /* Override any GCC internal prototype to avoid an error.
28262    Use char because int might match the return type of a GCC
28263    builtin and then its argument prototype would still apply.  */
28264 #ifdef __cplusplus
28265 extern "C"
28266 #endif
28267 char $ac_func ();
28268 /* The GNU C library defines this for functions which it implements
28269     to always fail with ENOSYS.  Some functions are actually named
28270     something starting with __ and the normal name is an alias.  */
28271 #if defined __stub_$ac_func || defined __stub___$ac_func
28272 choke me
28273 #endif
28274
28275 int
28276 main ()
28277 {
28278 return $ac_func ();
28279   ;
28280   return 0;
28281 }
28282 _ACEOF
28283 rm -f conftest.$ac_objext conftest$ac_exeext
28284 if { (ac_try="$ac_link"
28285 case "(($ac_try" in
28286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287   *) ac_try_echo=$ac_try;;
28288 esac
28289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290   (eval "$ac_link") 2>conftest.er1
28291   ac_status=$?
28292   grep -v '^ *+' conftest.er1 >conftest.err
28293   rm -f conftest.er1
28294   cat conftest.err >&5
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); } && {
28297          test -z "$ac_c_werror_flag" ||
28298          test ! -s conftest.err
28299        } && test -s conftest$ac_exeext &&
28300        $as_test_x conftest$ac_exeext; then
28301   eval "$as_ac_var=yes"
28302 else
28303   echo "$as_me: failed program was:" >&5
28304 sed 's/^/| /' conftest.$ac_ext >&5
28305
28306         eval "$as_ac_var=no"
28307 fi
28308
28309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28310       conftest$ac_exeext conftest.$ac_ext
28311 fi
28312 ac_res=`eval echo '${'$as_ac_var'}'`
28313                { echo "$as_me:$LINENO: result: $ac_res" >&5
28314 echo "${ECHO_T}$ac_res" >&6; }
28315 if test `eval echo '${'$as_ac_var'}'` = yes; then
28316   cat >>confdefs.h <<_ACEOF
28317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28318 _ACEOF
28319
28320 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28321 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28322 if test "${ac_cv_func__doprnt+set}" = set; then
28323   echo $ECHO_N "(cached) $ECHO_C" >&6
28324 else
28325   cat >conftest.$ac_ext <<_ACEOF
28326 /* confdefs.h.  */
28327 _ACEOF
28328 cat confdefs.h >>conftest.$ac_ext
28329 cat >>conftest.$ac_ext <<_ACEOF
28330 /* end confdefs.h.  */
28331 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28333 #define _doprnt innocuous__doprnt
28334
28335 /* System header to define __stub macros and hopefully few prototypes,
28336     which can conflict with char _doprnt (); below.
28337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28338     <limits.h> exists even on freestanding compilers.  */
28339
28340 #ifdef __STDC__
28341 # include <limits.h>
28342 #else
28343 # include <assert.h>
28344 #endif
28345
28346 #undef _doprnt
28347
28348 /* Override any GCC internal prototype to avoid an error.
28349    Use char because int might match the return type of a GCC
28350    builtin and then its argument prototype would still apply.  */
28351 #ifdef __cplusplus
28352 extern "C"
28353 #endif
28354 char _doprnt ();
28355 /* The GNU C library defines this for functions which it implements
28356     to always fail with ENOSYS.  Some functions are actually named
28357     something starting with __ and the normal name is an alias.  */
28358 #if defined __stub__doprnt || defined __stub____doprnt
28359 choke me
28360 #endif
28361
28362 int
28363 main ()
28364 {
28365 return _doprnt ();
28366   ;
28367   return 0;
28368 }
28369 _ACEOF
28370 rm -f conftest.$ac_objext conftest$ac_exeext
28371 if { (ac_try="$ac_link"
28372 case "(($ac_try" in
28373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374   *) ac_try_echo=$ac_try;;
28375 esac
28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377   (eval "$ac_link") 2>conftest.er1
28378   ac_status=$?
28379   grep -v '^ *+' conftest.er1 >conftest.err
28380   rm -f conftest.er1
28381   cat conftest.err >&5
28382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383   (exit $ac_status); } && {
28384          test -z "$ac_c_werror_flag" ||
28385          test ! -s conftest.err
28386        } && test -s conftest$ac_exeext &&
28387        $as_test_x conftest$ac_exeext; then
28388   ac_cv_func__doprnt=yes
28389 else
28390   echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28392
28393         ac_cv_func__doprnt=no
28394 fi
28395
28396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28397       conftest$ac_exeext conftest.$ac_ext
28398 fi
28399 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28400 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28401 if test $ac_cv_func__doprnt = yes; then
28402
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_DOPRNT 1
28405 _ACEOF
28406
28407 fi
28408
28409 fi
28410 done
28411
28412
28413 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28414 # for constant arguments.  Useless!
28415 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28416 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28417 if test "${ac_cv_working_alloca_h+set}" = set; then
28418   echo $ECHO_N "(cached) $ECHO_C" >&6
28419 else
28420   cat >conftest.$ac_ext <<_ACEOF
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426 #include <alloca.h>
28427 int
28428 main ()
28429 {
28430 char *p = (char *) alloca (2 * sizeof (int));
28431                           if (p) return 0;
28432   ;
28433   return 0;
28434 }
28435 _ACEOF
28436 rm -f conftest.$ac_objext conftest$ac_exeext
28437 if { (ac_try="$ac_link"
28438 case "(($ac_try" in
28439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440   *) ac_try_echo=$ac_try;;
28441 esac
28442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28443   (eval "$ac_link") 2>conftest.er1
28444   ac_status=$?
28445   grep -v '^ *+' conftest.er1 >conftest.err
28446   rm -f conftest.er1
28447   cat conftest.err >&5
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); } && {
28450          test -z "$ac_c_werror_flag" ||
28451          test ! -s conftest.err
28452        } && test -s conftest$ac_exeext &&
28453        $as_test_x conftest$ac_exeext; then
28454   ac_cv_working_alloca_h=yes
28455 else
28456   echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28458
28459         ac_cv_working_alloca_h=no
28460 fi
28461
28462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28463       conftest$ac_exeext conftest.$ac_ext
28464 fi
28465 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28466 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28467 if test $ac_cv_working_alloca_h = yes; then
28468
28469 cat >>confdefs.h <<\_ACEOF
28470 #define HAVE_ALLOCA_H 1
28471 _ACEOF
28472
28473 fi
28474
28475 { echo "$as_me:$LINENO: checking for alloca" >&5
28476 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28477 if test "${ac_cv_func_alloca_works+set}" = set; then
28478   echo $ECHO_N "(cached) $ECHO_C" >&6
28479 else
28480   cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486 #ifdef __GNUC__
28487 # define alloca __builtin_alloca
28488 #else
28489 # ifdef _MSC_VER
28490 #  include <malloc.h>
28491 #  define alloca _alloca
28492 # else
28493 #  ifdef HAVE_ALLOCA_H
28494 #   include <alloca.h>
28495 #  else
28496 #   ifdef _AIX
28497  #pragma alloca
28498 #   else
28499 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28500 char *alloca ();
28501 #    endif
28502 #   endif
28503 #  endif
28504 # endif
28505 #endif
28506
28507 int
28508 main ()
28509 {
28510 char *p = (char *) alloca (1);
28511                                     if (p) return 0;
28512   ;
28513   return 0;
28514 }
28515 _ACEOF
28516 rm -f conftest.$ac_objext conftest$ac_exeext
28517 if { (ac_try="$ac_link"
28518 case "(($ac_try" in
28519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520   *) ac_try_echo=$ac_try;;
28521 esac
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523   (eval "$ac_link") 2>conftest.er1
28524   ac_status=$?
28525   grep -v '^ *+' conftest.er1 >conftest.err
28526   rm -f conftest.er1
28527   cat conftest.err >&5
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); } && {
28530          test -z "$ac_c_werror_flag" ||
28531          test ! -s conftest.err
28532        } && test -s conftest$ac_exeext &&
28533        $as_test_x conftest$ac_exeext; then
28534   ac_cv_func_alloca_works=yes
28535 else
28536   echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28538
28539         ac_cv_func_alloca_works=no
28540 fi
28541
28542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28543       conftest$ac_exeext conftest.$ac_ext
28544 fi
28545 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28546 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28547
28548 if test $ac_cv_func_alloca_works = yes; then
28549
28550 cat >>confdefs.h <<\_ACEOF
28551 #define HAVE_ALLOCA 1
28552 _ACEOF
28553
28554 else
28555   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28556 # that cause trouble.  Some versions do not even contain alloca or
28557 # contain a buggy version.  If you still want to use their alloca,
28558 # use ar to extract alloca.o from them instead of compiling alloca.c.
28559
28560 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28561
28562 cat >>confdefs.h <<\_ACEOF
28563 #define C_ALLOCA 1
28564 _ACEOF
28565
28566
28567 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28568 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28569 if test "${ac_cv_os_cray+set}" = set; then
28570   echo $ECHO_N "(cached) $ECHO_C" >&6
28571 else
28572   cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h.  */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h.  */
28578 #if defined CRAY && ! defined CRAY2
28579 webecray
28580 #else
28581 wenotbecray
28582 #endif
28583
28584 _ACEOF
28585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28586   $EGREP "webecray" >/dev/null 2>&1; then
28587   ac_cv_os_cray=yes
28588 else
28589   ac_cv_os_cray=no
28590 fi
28591 rm -f conftest*
28592
28593 fi
28594 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28595 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28596 if test $ac_cv_os_cray = yes; then
28597   for ac_func in _getb67 GETB67 getb67; do
28598     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28602   echo $ECHO_N "(cached) $ECHO_C" >&6
28603 else
28604   cat >conftest.$ac_ext <<_ACEOF
28605 /* confdefs.h.  */
28606 _ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h.  */
28610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28612 #define $ac_func innocuous_$ac_func
28613
28614 /* System header to define __stub macros and hopefully few prototypes,
28615     which can conflict with char $ac_func (); below.
28616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28617     <limits.h> exists even on freestanding compilers.  */
28618
28619 #ifdef __STDC__
28620 # include <limits.h>
28621 #else
28622 # include <assert.h>
28623 #endif
28624
28625 #undef $ac_func
28626
28627 /* Override any GCC internal prototype to avoid an error.
28628    Use char because int might match the return type of a GCC
28629    builtin and then its argument prototype would still apply.  */
28630 #ifdef __cplusplus
28631 extern "C"
28632 #endif
28633 char $ac_func ();
28634 /* The GNU C library defines this for functions which it implements
28635     to always fail with ENOSYS.  Some functions are actually named
28636     something starting with __ and the normal name is an alias.  */
28637 #if defined __stub_$ac_func || defined __stub___$ac_func
28638 choke me
28639 #endif
28640
28641 int
28642 main ()
28643 {
28644 return $ac_func ();
28645   ;
28646   return 0;
28647 }
28648 _ACEOF
28649 rm -f conftest.$ac_objext conftest$ac_exeext
28650 if { (ac_try="$ac_link"
28651 case "(($ac_try" in
28652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653   *) ac_try_echo=$ac_try;;
28654 esac
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656   (eval "$ac_link") 2>conftest.er1
28657   ac_status=$?
28658   grep -v '^ *+' conftest.er1 >conftest.err
28659   rm -f conftest.er1
28660   cat conftest.err >&5
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } && {
28663          test -z "$ac_c_werror_flag" ||
28664          test ! -s conftest.err
28665        } && test -s conftest$ac_exeext &&
28666        $as_test_x conftest$ac_exeext; then
28667   eval "$as_ac_var=yes"
28668 else
28669   echo "$as_me: failed program was:" >&5
28670 sed 's/^/| /' conftest.$ac_ext >&5
28671
28672         eval "$as_ac_var=no"
28673 fi
28674
28675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28676       conftest$ac_exeext conftest.$ac_ext
28677 fi
28678 ac_res=`eval echo '${'$as_ac_var'}'`
28679                { echo "$as_me:$LINENO: result: $ac_res" >&5
28680 echo "${ECHO_T}$ac_res" >&6; }
28681 if test `eval echo '${'$as_ac_var'}'` = yes; then
28682
28683 cat >>confdefs.h <<_ACEOF
28684 #define CRAY_STACKSEG_END $ac_func
28685 _ACEOF
28686
28687     break
28688 fi
28689
28690   done
28691 fi
28692
28693 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28694 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28695 if test "${ac_cv_c_stack_direction+set}" = set; then
28696   echo $ECHO_N "(cached) $ECHO_C" >&6
28697 else
28698   if test "$cross_compiling" = yes; then
28699   ac_cv_c_stack_direction=0
28700 else
28701   cat >conftest.$ac_ext <<_ACEOF
28702 /* confdefs.h.  */
28703 _ACEOF
28704 cat confdefs.h >>conftest.$ac_ext
28705 cat >>conftest.$ac_ext <<_ACEOF
28706 /* end confdefs.h.  */
28707 $ac_includes_default
28708 int
28709 find_stack_direction ()
28710 {
28711   static char *addr = 0;
28712   auto char dummy;
28713   if (addr == 0)
28714     {
28715       addr = &dummy;
28716       return find_stack_direction ();
28717     }
28718   else
28719     return (&dummy > addr) ? 1 : -1;
28720 }
28721
28722 int
28723 main ()
28724 {
28725   return find_stack_direction () < 0;
28726 }
28727 _ACEOF
28728 rm -f conftest$ac_exeext
28729 if { (ac_try="$ac_link"
28730 case "(($ac_try" in
28731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28732   *) ac_try_echo=$ac_try;;
28733 esac
28734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28735   (eval "$ac_link") 2>&5
28736   ac_status=$?
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28739   { (case "(($ac_try" in
28740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741   *) ac_try_echo=$ac_try;;
28742 esac
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744   (eval "$ac_try") 2>&5
28745   ac_status=$?
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); }; }; then
28748   ac_cv_c_stack_direction=1
28749 else
28750   echo "$as_me: program exited with status $ac_status" >&5
28751 echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28753
28754 ( exit $ac_status )
28755 ac_cv_c_stack_direction=-1
28756 fi
28757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28758 fi
28759
28760
28761 fi
28762 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28763 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28764
28765 cat >>confdefs.h <<_ACEOF
28766 #define STACK_DIRECTION $ac_cv_c_stack_direction
28767 _ACEOF
28768
28769
28770 fi
28771
28772 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28773 # -lseq on Dynix/PTX, -lgen on Unixware.
28774 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28775 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28776 if test "${ac_cv_search_getmntent+set}" = set; then
28777   echo $ECHO_N "(cached) $ECHO_C" >&6
28778 else
28779   ac_func_search_save_LIBS=$LIBS
28780 cat >conftest.$ac_ext <<_ACEOF
28781 /* confdefs.h.  */
28782 _ACEOF
28783 cat confdefs.h >>conftest.$ac_ext
28784 cat >>conftest.$ac_ext <<_ACEOF
28785 /* end confdefs.h.  */
28786
28787 /* Override any GCC internal prototype to avoid an error.
28788    Use char because int might match the return type of a GCC
28789    builtin and then its argument prototype would still apply.  */
28790 #ifdef __cplusplus
28791 extern "C"
28792 #endif
28793 char getmntent ();
28794 int
28795 main ()
28796 {
28797 return getmntent ();
28798   ;
28799   return 0;
28800 }
28801 _ACEOF
28802 for ac_lib in '' sun seq gen; do
28803   if test -z "$ac_lib"; then
28804     ac_res="none required"
28805   else
28806     ac_res=-l$ac_lib
28807     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28808   fi
28809   rm -f conftest.$ac_objext conftest$ac_exeext
28810 if { (ac_try="$ac_link"
28811 case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816   (eval "$ac_link") 2>conftest.er1
28817   ac_status=$?
28818   grep -v '^ *+' conftest.er1 >conftest.err
28819   rm -f conftest.er1
28820   cat conftest.err >&5
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); } && {
28823          test -z "$ac_c_werror_flag" ||
28824          test ! -s conftest.err
28825        } && test -s conftest$ac_exeext &&
28826        $as_test_x conftest$ac_exeext; then
28827   ac_cv_search_getmntent=$ac_res
28828 else
28829   echo "$as_me: failed program was:" >&5
28830 sed 's/^/| /' conftest.$ac_ext >&5
28831
28832
28833 fi
28834
28835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28836       conftest$ac_exeext
28837   if test "${ac_cv_search_getmntent+set}" = set; then
28838   break
28839 fi
28840 done
28841 if test "${ac_cv_search_getmntent+set}" = set; then
28842   :
28843 else
28844   ac_cv_search_getmntent=no
28845 fi
28846 rm conftest.$ac_ext
28847 LIBS=$ac_func_search_save_LIBS
28848 fi
28849 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28850 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28851 ac_res=$ac_cv_search_getmntent
28852 if test "$ac_res" != no; then
28853   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28854   ac_cv_func_getmntent=yes
28855
28856 cat >>confdefs.h <<\_ACEOF
28857 #define HAVE_GETMNTENT 1
28858 _ACEOF
28859
28860 else
28861   ac_cv_func_getmntent=no
28862 fi
28863
28864
28865 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28866 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28867 if test "${ac_cv_func_closedir_void+set}" = set; then
28868   echo $ECHO_N "(cached) $ECHO_C" >&6
28869 else
28870   if test "$cross_compiling" = yes; then
28871   ac_cv_func_closedir_void=yes
28872 else
28873   cat >conftest.$ac_ext <<_ACEOF
28874 /* confdefs.h.  */
28875 _ACEOF
28876 cat confdefs.h >>conftest.$ac_ext
28877 cat >>conftest.$ac_ext <<_ACEOF
28878 /* end confdefs.h.  */
28879 $ac_includes_default
28880 #include <$ac_header_dirent>
28881 #ifndef __cplusplus
28882 int closedir ();
28883 #endif
28884
28885 int
28886 main ()
28887 {
28888 return closedir (opendir (".")) != 0;
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest$ac_exeext
28894 if { (ac_try="$ac_link"
28895 case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_link") 2>&5
28901   ac_status=$?
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28904   { (case "(($ac_try" in
28905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906   *) ac_try_echo=$ac_try;;
28907 esac
28908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909   (eval "$ac_try") 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; }; then
28913   ac_cv_func_closedir_void=no
28914 else
28915   echo "$as_me: program exited with status $ac_status" >&5
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 ( exit $ac_status )
28920 ac_cv_func_closedir_void=yes
28921 fi
28922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28923 fi
28924
28925
28926 fi
28927 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28928 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28929 if test $ac_cv_func_closedir_void = yes; then
28930
28931 cat >>confdefs.h <<\_ACEOF
28932 #define CLOSEDIR_VOID 1
28933 _ACEOF
28934
28935 fi
28936
28937 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28938 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28939 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28940   echo $ECHO_N "(cached) $ECHO_C" >&6
28941 else
28942   if test "$cross_compiling" = yes; then
28943   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28944 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28945    { (exit 1); exit 1; }; }
28946 else
28947   cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953 $ac_includes_default
28954 int
28955 main ()
28956 {
28957 /* If this system has a BSD-style setpgrp which takes arguments,
28958   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28959   exit successfully. */
28960   return setpgrp (1,1) != -1;
28961   ;
28962   return 0;
28963 }
28964 _ACEOF
28965 rm -f conftest$ac_exeext
28966 if { (ac_try="$ac_link"
28967 case "(($ac_try" in
28968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969   *) ac_try_echo=$ac_try;;
28970 esac
28971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972   (eval "$ac_link") 2>&5
28973   ac_status=$?
28974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28976   { (case "(($ac_try" in
28977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28978   *) ac_try_echo=$ac_try;;
28979 esac
28980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28981   (eval "$ac_try") 2>&5
28982   ac_status=$?
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); }; }; then
28985   ac_cv_func_setpgrp_void=no
28986 else
28987   echo "$as_me: program exited with status $ac_status" >&5
28988 echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28990
28991 ( exit $ac_status )
28992 ac_cv_func_setpgrp_void=yes
28993 fi
28994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28995 fi
28996
28997
28998 fi
28999 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29000 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29001 if test $ac_cv_func_setpgrp_void = yes; then
29002
29003 cat >>confdefs.h <<\_ACEOF
29004 #define SETPGRP_VOID 1
29005 _ACEOF
29006
29007 fi
29008                       # AC_FUNC_FNMATCH    dnl use local version
29009
29010
29011 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29012 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29013 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29014   echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016   ac_check_lib_save_LIBS=$LIBS
29017 LIBS="-lintl  $LIBS"
29018 cat >conftest.$ac_ext <<_ACEOF
29019 /* confdefs.h.  */
29020 _ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h.  */
29024
29025 /* Override any GCC internal prototype to avoid an error.
29026    Use char because int might match the return type of a GCC
29027    builtin and then its argument prototype would still apply.  */
29028 #ifdef __cplusplus
29029 extern "C"
29030 #endif
29031 char gettext ();
29032 int
29033 main ()
29034 {
29035 return gettext ();
29036   ;
29037   return 0;
29038 }
29039 _ACEOF
29040 rm -f conftest.$ac_objext conftest$ac_exeext
29041 if { (ac_try="$ac_link"
29042 case "(($ac_try" in
29043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044   *) ac_try_echo=$ac_try;;
29045 esac
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047   (eval "$ac_link") 2>conftest.er1
29048   ac_status=$?
29049   grep -v '^ *+' conftest.er1 >conftest.err
29050   rm -f conftest.er1
29051   cat conftest.err >&5
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); } && {
29054          test -z "$ac_c_werror_flag" ||
29055          test ! -s conftest.err
29056        } && test -s conftest$ac_exeext &&
29057        $as_test_x conftest$ac_exeext; then
29058   ac_cv_lib_intl_gettext=yes
29059 else
29060   echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29062
29063         ac_cv_lib_intl_gettext=no
29064 fi
29065
29066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29067       conftest$ac_exeext conftest.$ac_ext
29068 LIBS=$ac_check_lib_save_LIBS
29069 fi
29070 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29071 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29072 if test $ac_cv_lib_intl_gettext = yes; then
29073   LIBS="$LIBS -lintl"
29074 fi
29075
29076
29077
29078
29079 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29080 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29081 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29082   echo $ECHO_N "(cached) $ECHO_C" >&6
29083 else
29084   ac_check_lib_save_LIBS=$LIBS
29085 LIBS="-lsun  $LIBS"
29086 cat >conftest.$ac_ext <<_ACEOF
29087 /* confdefs.h.  */
29088 _ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h.  */
29092
29093 /* Override any GCC internal prototype to avoid an error.
29094    Use char because int might match the return type of a GCC
29095    builtin and then its argument prototype would still apply.  */
29096 #ifdef __cplusplus
29097 extern "C"
29098 #endif
29099 char getpwnam ();
29100 int
29101 main ()
29102 {
29103 return getpwnam ();
29104   ;
29105   return 0;
29106 }
29107 _ACEOF
29108 rm -f conftest.$ac_objext conftest$ac_exeext
29109 if { (ac_try="$ac_link"
29110 case "(($ac_try" in
29111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112   *) ac_try_echo=$ac_try;;
29113 esac
29114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115   (eval "$ac_link") 2>conftest.er1
29116   ac_status=$?
29117   grep -v '^ *+' conftest.er1 >conftest.err
29118   rm -f conftest.er1
29119   cat conftest.err >&5
29120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); } && {
29122          test -z "$ac_c_werror_flag" ||
29123          test ! -s conftest.err
29124        } && test -s conftest$ac_exeext &&
29125        $as_test_x conftest$ac_exeext; then
29126   ac_cv_lib_sun_getpwnam=yes
29127 else
29128   echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29130
29131         ac_cv_lib_sun_getpwnam=no
29132 fi
29133
29134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29135       conftest$ac_exeext conftest.$ac_ext
29136 LIBS=$ac_check_lib_save_LIBS
29137 fi
29138 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29139 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29140 if test $ac_cv_lib_sun_getpwnam = yes; then
29141   cat >>confdefs.h <<_ACEOF
29142 #define HAVE_LIBSUN 1
29143 _ACEOF
29144
29145   LIBS="-lsun $LIBS"
29146
29147 fi
29148
29149
29150
29151 for ac_header in zlib.h
29152 do
29153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29158   echo $ECHO_N "(cached) $ECHO_C" >&6
29159 fi
29160 ac_res=`eval echo '${'$as_ac_Header'}'`
29161                { echo "$as_me:$LINENO: result: $ac_res" >&5
29162 echo "${ECHO_T}$ac_res" >&6; }
29163 else
29164   # Is the header compilable?
29165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29167 cat >conftest.$ac_ext <<_ACEOF
29168 /* confdefs.h.  */
29169 _ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h.  */
29173 $ac_includes_default
29174 #include <$ac_header>
29175 _ACEOF
29176 rm -f conftest.$ac_objext
29177 if { (ac_try="$ac_compile"
29178 case "(($ac_try" in
29179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29180   *) ac_try_echo=$ac_try;;
29181 esac
29182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29183   (eval "$ac_compile") 2>conftest.er1
29184   ac_status=$?
29185   grep -v '^ *+' conftest.er1 >conftest.err
29186   rm -f conftest.er1
29187   cat conftest.err >&5
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); } && {
29190          test -z "$ac_c_werror_flag" ||
29191          test ! -s conftest.err
29192        } && test -s conftest.$ac_objext; then
29193   ac_header_compiler=yes
29194 else
29195   echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29197
29198         ac_header_compiler=no
29199 fi
29200
29201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29203 echo "${ECHO_T}$ac_header_compiler" >&6; }
29204
29205 # Is the header present?
29206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29208 cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h.  */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h.  */
29214 #include <$ac_header>
29215 _ACEOF
29216 if { (ac_try="$ac_cpp conftest.$ac_ext"
29217 case "(($ac_try" in
29218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219   *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29223   ac_status=$?
29224   grep -v '^ *+' conftest.er1 >conftest.err
29225   rm -f conftest.er1
29226   cat conftest.err >&5
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); } >/dev/null && {
29229          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29230          test ! -s conftest.err
29231        }; then
29232   ac_header_preproc=yes
29233 else
29234   echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29236
29237   ac_header_preproc=no
29238 fi
29239
29240 rm -f conftest.err conftest.$ac_ext
29241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29242 echo "${ECHO_T}$ac_header_preproc" >&6; }
29243
29244 # So?  What about this header?
29245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29246   yes:no: )
29247     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29251     ac_header_preproc=yes
29252     ;;
29253   no:yes:* )
29254     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29256     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29257 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29258     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29260     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29261 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29264     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29266
29267     ;;
29268 esac
29269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272   echo $ECHO_N "(cached) $ECHO_C" >&6
29273 else
29274   eval "$as_ac_Header=\$ac_header_preproc"
29275 fi
29276 ac_res=`eval echo '${'$as_ac_Header'}'`
29277                { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29279
29280 fi
29281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29282   cat >>confdefs.h <<_ACEOF
29283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29284 _ACEOF
29285
29286 fi
29287
29288 done
29289
29290 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29291 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29292 if test "${ac_cv_lib_z_deflate+set}" = set; then
29293   echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29295   ac_check_lib_save_LIBS=$LIBS
29296 LIBS="-lz  $LIBS"
29297 cat >conftest.$ac_ext <<_ACEOF
29298 /* confdefs.h.  */
29299 _ACEOF
29300 cat confdefs.h >>conftest.$ac_ext
29301 cat >>conftest.$ac_ext <<_ACEOF
29302 /* end confdefs.h.  */
29303
29304 /* Override any GCC internal prototype to avoid an error.
29305    Use char because int might match the return type of a GCC
29306    builtin and then its argument prototype would still apply.  */
29307 #ifdef __cplusplus
29308 extern "C"
29309 #endif
29310 char deflate ();
29311 int
29312 main ()
29313 {
29314 return deflate ();
29315   ;
29316   return 0;
29317 }
29318 _ACEOF
29319 rm -f conftest.$ac_objext conftest$ac_exeext
29320 if { (ac_try="$ac_link"
29321 case "(($ac_try" in
29322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323   *) ac_try_echo=$ac_try;;
29324 esac
29325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326   (eval "$ac_link") 2>conftest.er1
29327   ac_status=$?
29328   grep -v '^ *+' conftest.er1 >conftest.err
29329   rm -f conftest.er1
29330   cat conftest.err >&5
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); } && {
29333          test -z "$ac_c_werror_flag" ||
29334          test ! -s conftest.err
29335        } && test -s conftest$ac_exeext &&
29336        $as_test_x conftest$ac_exeext; then
29337   ac_cv_lib_z_deflate=yes
29338 else
29339   echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.$ac_ext >&5
29341
29342         ac_cv_lib_z_deflate=no
29343 fi
29344
29345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29346       conftest$ac_exeext conftest.$ac_ext
29347 LIBS=$ac_check_lib_save_LIBS
29348 fi
29349 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29350 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29351 if test $ac_cv_lib_z_deflate = yes; then
29352   FDLIBS="-lz"
29353 fi
29354
29355 have_zlib=no
29356 if test x$FDLIBS = x-lz; then
29357   cat >>confdefs.h <<\_ACEOF
29358 #define HAVE_LIBZ 1
29359 _ACEOF
29360
29361   have_zlib=yes
29362 fi
29363
29364 #
29365 # Check for ACL libraries
29366 #
29367 have_acl=no
29368 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29369   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29370 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29371 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29372   echo $ECHO_N "(cached) $ECHO_C" >&6
29373 fi
29374 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29375 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29376 else
29377   # Is the header compilable?
29378 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29379 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29380 cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h.  */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h.  */
29386 $ac_includes_default
29387 #include <sys/acl.h>
29388 _ACEOF
29389 rm -f conftest.$ac_objext
29390 if { (ac_try="$ac_compile"
29391 case "(($ac_try" in
29392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393   *) ac_try_echo=$ac_try;;
29394 esac
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396   (eval "$ac_compile") 2>conftest.er1
29397   ac_status=$?
29398   grep -v '^ *+' conftest.er1 >conftest.err
29399   rm -f conftest.er1
29400   cat conftest.err >&5
29401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402   (exit $ac_status); } && {
29403          test -z "$ac_c_werror_flag" ||
29404          test ! -s conftest.err
29405        } && test -s conftest.$ac_objext; then
29406   ac_header_compiler=yes
29407 else
29408   echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29410
29411         ac_header_compiler=no
29412 fi
29413
29414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29416 echo "${ECHO_T}$ac_header_compiler" >&6; }
29417
29418 # Is the header present?
29419 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29420 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29421 cat >conftest.$ac_ext <<_ACEOF
29422 /* confdefs.h.  */
29423 _ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h.  */
29427 #include <sys/acl.h>
29428 _ACEOF
29429 if { (ac_try="$ac_cpp conftest.$ac_ext"
29430 case "(($ac_try" in
29431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432   *) ac_try_echo=$ac_try;;
29433 esac
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29436   ac_status=$?
29437   grep -v '^ *+' conftest.er1 >conftest.err
29438   rm -f conftest.er1
29439   cat conftest.err >&5
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); } >/dev/null && {
29442          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29443          test ! -s conftest.err
29444        }; then
29445   ac_header_preproc=yes
29446 else
29447   echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29449
29450   ac_header_preproc=no
29451 fi
29452
29453 rm -f conftest.err conftest.$ac_ext
29454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29455 echo "${ECHO_T}$ac_header_preproc" >&6; }
29456
29457 # So?  What about this header?
29458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29459   yes:no: )
29460     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29461 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29462     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29463 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29464     ac_header_preproc=yes
29465     ;;
29466   no:yes:* )
29467     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29468 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29469     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29470 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29471     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29472 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29473     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29474 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29475     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29476 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29477     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29478 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29479
29480     ;;
29481 esac
29482 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29483 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29484 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29485   echo $ECHO_N "(cached) $ECHO_C" >&6
29486 else
29487   ac_cv_header_sys_acl_h=$ac_header_preproc
29488 fi
29489 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29490 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29491
29492 fi
29493
29494
29495 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29496 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29497 if test "${ac_cv_func_acl_get_file+set}" = set; then
29498   echo $ECHO_N "(cached) $ECHO_C" >&6
29499 else
29500   cat >conftest.$ac_ext <<_ACEOF
29501 /* confdefs.h.  */
29502 _ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h.  */
29506 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29508 #define acl_get_file innocuous_acl_get_file
29509
29510 /* System header to define __stub macros and hopefully few prototypes,
29511     which can conflict with char acl_get_file (); below.
29512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29513     <limits.h> exists even on freestanding compilers.  */
29514
29515 #ifdef __STDC__
29516 # include <limits.h>
29517 #else
29518 # include <assert.h>
29519 #endif
29520
29521 #undef acl_get_file
29522
29523 /* Override any GCC internal prototype to avoid an error.
29524    Use char because int might match the return type of a GCC
29525    builtin and then its argument prototype would still apply.  */
29526 #ifdef __cplusplus
29527 extern "C"
29528 #endif
29529 char acl_get_file ();
29530 /* The GNU C library defines this for functions which it implements
29531     to always fail with ENOSYS.  Some functions are actually named
29532     something starting with __ and the normal name is an alias.  */
29533 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29534 choke me
29535 #endif
29536
29537 int
29538 main ()
29539 {
29540 return acl_get_file ();
29541   ;
29542   return 0;
29543 }
29544 _ACEOF
29545 rm -f conftest.$ac_objext conftest$ac_exeext
29546 if { (ac_try="$ac_link"
29547 case "(($ac_try" in
29548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549   *) ac_try_echo=$ac_try;;
29550 esac
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552   (eval "$ac_link") 2>conftest.er1
29553   ac_status=$?
29554   grep -v '^ *+' conftest.er1 >conftest.err
29555   rm -f conftest.er1
29556   cat conftest.err >&5
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } && {
29559          test -z "$ac_c_werror_flag" ||
29560          test ! -s conftest.err
29561        } && test -s conftest$ac_exeext &&
29562        $as_test_x conftest$ac_exeext; then
29563   ac_cv_func_acl_get_file=yes
29564 else
29565   echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29567
29568         ac_cv_func_acl_get_file=no
29569 fi
29570
29571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29572       conftest$ac_exeext conftest.$ac_ext
29573 fi
29574 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29575 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29576 if test $ac_cv_func_acl_get_file = yes; then
29577   have_acl=yes
29578 else
29579   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29580 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29581 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29582   echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584   ac_check_lib_save_LIBS=$LIBS
29585 LIBS="-lacl  $LIBS"
29586 cat >conftest.$ac_ext <<_ACEOF
29587 /* confdefs.h.  */
29588 _ACEOF
29589 cat confdefs.h >>conftest.$ac_ext
29590 cat >>conftest.$ac_ext <<_ACEOF
29591 /* end confdefs.h.  */
29592
29593 /* Override any GCC internal prototype to avoid an error.
29594    Use char because int might match the return type of a GCC
29595    builtin and then its argument prototype would still apply.  */
29596 #ifdef __cplusplus
29597 extern "C"
29598 #endif
29599 char acl_get_file ();
29600 int
29601 main ()
29602 {
29603 return acl_get_file ();
29604   ;
29605   return 0;
29606 }
29607 _ACEOF
29608 rm -f conftest.$ac_objext conftest$ac_exeext
29609 if { (ac_try="$ac_link"
29610 case "(($ac_try" in
29611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29612   *) ac_try_echo=$ac_try;;
29613 esac
29614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29615   (eval "$ac_link") 2>conftest.er1
29616   ac_status=$?
29617   grep -v '^ *+' conftest.er1 >conftest.err
29618   rm -f conftest.er1
29619   cat conftest.err >&5
29620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); } && {
29622          test -z "$ac_c_werror_flag" ||
29623          test ! -s conftest.err
29624        } && test -s conftest$ac_exeext &&
29625        $as_test_x conftest$ac_exeext; then
29626   ac_cv_lib_acl_acl_get_file=yes
29627 else
29628   echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29630
29631         ac_cv_lib_acl_acl_get_file=no
29632 fi
29633
29634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29635       conftest$ac_exeext conftest.$ac_ext
29636 LIBS=$ac_check_lib_save_LIBS
29637 fi
29638 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29639 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29640 if test $ac_cv_lib_acl_acl_get_file = yes; then
29641   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29642 else
29643   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29644 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29645 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29646   echo $ECHO_N "(cached) $ECHO_C" >&6
29647 else
29648   ac_check_lib_save_LIBS=$LIBS
29649 LIBS="-lsec  $LIBS"
29650 cat >conftest.$ac_ext <<_ACEOF
29651 /* confdefs.h.  */
29652 _ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h.  */
29656
29657 /* Override any GCC internal prototype to avoid an error.
29658    Use char because int might match the return type of a GCC
29659    builtin and then its argument prototype would still apply.  */
29660 #ifdef __cplusplus
29661 extern "C"
29662 #endif
29663 char acltotext ();
29664 int
29665 main ()
29666 {
29667 return acltotext ();
29668   ;
29669   return 0;
29670 }
29671 _ACEOF
29672 rm -f conftest.$ac_objext conftest$ac_exeext
29673 if { (ac_try="$ac_link"
29674 case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_link") 2>conftest.er1
29680   ac_status=$?
29681   grep -v '^ *+' conftest.er1 >conftest.err
29682   rm -f conftest.er1
29683   cat conftest.err >&5
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); } && {
29686          test -z "$ac_c_werror_flag" ||
29687          test ! -s conftest.err
29688        } && test -s conftest$ac_exeext &&
29689        $as_test_x conftest$ac_exeext; then
29690   ac_cv_lib_sec_acltotext=yes
29691 else
29692   echo "$as_me: failed program was:" >&5
29693 sed 's/^/| /' conftest.$ac_ext >&5
29694
29695         ac_cv_lib_sec_acltotext=no
29696 fi
29697
29698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29699       conftest$ac_exeext conftest.$ac_ext
29700 LIBS=$ac_check_lib_save_LIBS
29701 fi
29702 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29703 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29704 if test $ac_cv_lib_sec_acltotext = yes; then
29705   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29706 fi
29707
29708
29709 fi
29710
29711
29712 fi
29713
29714 if test $have_acl = yes; then
29715    cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_ACL 1
29717 _ACEOF
29718
29719 fi
29720
29721 PTHREAD_LIB=""
29722 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29723 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29724 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   ac_check_lib_save_LIBS=$LIBS
29728 LIBS="-lpthread  $LIBS"
29729 cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h.  */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h.  */
29735
29736 /* Override any GCC internal prototype to avoid an error.
29737    Use char because int might match the return type of a GCC
29738    builtin and then its argument prototype would still apply.  */
29739 #ifdef __cplusplus
29740 extern "C"
29741 #endif
29742 char pthread_create ();
29743 int
29744 main ()
29745 {
29746 return pthread_create ();
29747   ;
29748   return 0;
29749 }
29750 _ACEOF
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755   *) ac_try_echo=$ac_try;;
29756 esac
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758   (eval "$ac_link") 2>conftest.er1
29759   ac_status=$?
29760   grep -v '^ *+' conftest.er1 >conftest.err
29761   rm -f conftest.er1
29762   cat conftest.err >&5
29763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); } && {
29765          test -z "$ac_c_werror_flag" ||
29766          test ! -s conftest.err
29767        } && test -s conftest$ac_exeext &&
29768        $as_test_x conftest$ac_exeext; then
29769   ac_cv_lib_pthread_pthread_create=yes
29770 else
29771   echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29773
29774         ac_cv_lib_pthread_pthread_create=no
29775 fi
29776
29777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29778       conftest$ac_exeext conftest.$ac_ext
29779 LIBS=$ac_check_lib_save_LIBS
29780 fi
29781 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29782 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29783 if test $ac_cv_lib_pthread_pthread_create = yes; then
29784   PTHREAD_LIB="-lpthread"
29785 else
29786   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29787 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29788 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29789   echo $ECHO_N "(cached) $ECHO_C" >&6
29790 else
29791   ac_check_lib_save_LIBS=$LIBS
29792 LIBS="-lpthreads  $LIBS"
29793 cat >conftest.$ac_ext <<_ACEOF
29794 /* confdefs.h.  */
29795 _ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h.  */
29799
29800 /* Override any GCC internal prototype to avoid an error.
29801    Use char because int might match the return type of a GCC
29802    builtin and then its argument prototype would still apply.  */
29803 #ifdef __cplusplus
29804 extern "C"
29805 #endif
29806 char pthread_create ();
29807 int
29808 main ()
29809 {
29810 return pthread_create ();
29811   ;
29812   return 0;
29813 }
29814 _ACEOF
29815 rm -f conftest.$ac_objext conftest$ac_exeext
29816 if { (ac_try="$ac_link"
29817 case "(($ac_try" in
29818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819   *) ac_try_echo=$ac_try;;
29820 esac
29821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822   (eval "$ac_link") 2>conftest.er1
29823   ac_status=$?
29824   grep -v '^ *+' conftest.er1 >conftest.err
29825   rm -f conftest.er1
29826   cat conftest.err >&5
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); } && {
29829          test -z "$ac_c_werror_flag" ||
29830          test ! -s conftest.err
29831        } && test -s conftest$ac_exeext &&
29832        $as_test_x conftest$ac_exeext; then
29833   ac_cv_lib_pthreads_pthread_create=yes
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838         ac_cv_lib_pthreads_pthread_create=no
29839 fi
29840
29841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29842       conftest$ac_exeext conftest.$ac_ext
29843 LIBS=$ac_check_lib_save_LIBS
29844 fi
29845 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29846 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29847 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29848   PTHREAD_LIB="-lpthreads"
29849 else
29850   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29851 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29852 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29853   echo $ECHO_N "(cached) $ECHO_C" >&6
29854 else
29855   ac_check_lib_save_LIBS=$LIBS
29856 LIBS="-lc_r  $LIBS"
29857 cat >conftest.$ac_ext <<_ACEOF
29858 /* confdefs.h.  */
29859 _ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h.  */
29863
29864 /* Override any GCC internal prototype to avoid an error.
29865    Use char because int might match the return type of a GCC
29866    builtin and then its argument prototype would still apply.  */
29867 #ifdef __cplusplus
29868 extern "C"
29869 #endif
29870 char pthread_create ();
29871 int
29872 main ()
29873 {
29874 return pthread_create ();
29875   ;
29876   return 0;
29877 }
29878 _ACEOF
29879 rm -f conftest.$ac_objext conftest$ac_exeext
29880 if { (ac_try="$ac_link"
29881 case "(($ac_try" in
29882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883   *) ac_try_echo=$ac_try;;
29884 esac
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886   (eval "$ac_link") 2>conftest.er1
29887   ac_status=$?
29888   grep -v '^ *+' conftest.er1 >conftest.err
29889   rm -f conftest.er1
29890   cat conftest.err >&5
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); } && {
29893          test -z "$ac_c_werror_flag" ||
29894          test ! -s conftest.err
29895        } && test -s conftest$ac_exeext &&
29896        $as_test_x conftest$ac_exeext; then
29897   ac_cv_lib_c_r_pthread_create=yes
29898 else
29899   echo "$as_me: failed program was:" >&5
29900 sed 's/^/| /' conftest.$ac_ext >&5
29901
29902         ac_cv_lib_c_r_pthread_create=no
29903 fi
29904
29905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29906       conftest$ac_exeext conftest.$ac_ext
29907 LIBS=$ac_check_lib_save_LIBS
29908 fi
29909 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29910 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29911 if test $ac_cv_lib_c_r_pthread_create = yes; then
29912   PTHREAD_LIB="-lc_r"
29913 else
29914   { echo "$as_me:$LINENO: checking for pthread_create" >&5
29915 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29916 if test "${ac_cv_func_pthread_create+set}" = set; then
29917   echo $ECHO_N "(cached) $ECHO_C" >&6
29918 else
29919   cat >conftest.$ac_ext <<_ACEOF
29920 /* confdefs.h.  */
29921 _ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h.  */
29925 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29927 #define pthread_create innocuous_pthread_create
29928
29929 /* System header to define __stub macros and hopefully few prototypes,
29930     which can conflict with char pthread_create (); below.
29931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29932     <limits.h> exists even on freestanding compilers.  */
29933
29934 #ifdef __STDC__
29935 # include <limits.h>
29936 #else
29937 # include <assert.h>
29938 #endif
29939
29940 #undef pthread_create
29941
29942 /* Override any GCC internal prototype to avoid an error.
29943    Use char because int might match the return type of a GCC
29944    builtin and then its argument prototype would still apply.  */
29945 #ifdef __cplusplus
29946 extern "C"
29947 #endif
29948 char pthread_create ();
29949 /* The GNU C library defines this for functions which it implements
29950     to always fail with ENOSYS.  Some functions are actually named
29951     something starting with __ and the normal name is an alias.  */
29952 #if defined __stub_pthread_create || defined __stub___pthread_create
29953 choke me
29954 #endif
29955
29956 int
29957 main ()
29958 {
29959 return pthread_create ();
29960   ;
29961   return 0;
29962 }
29963 _ACEOF
29964 rm -f conftest.$ac_objext conftest$ac_exeext
29965 if { (ac_try="$ac_link"
29966 case "(($ac_try" in
29967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968   *) ac_try_echo=$ac_try;;
29969 esac
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971   (eval "$ac_link") 2>conftest.er1
29972   ac_status=$?
29973   grep -v '^ *+' conftest.er1 >conftest.err
29974   rm -f conftest.er1
29975   cat conftest.err >&5
29976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977   (exit $ac_status); } && {
29978          test -z "$ac_c_werror_flag" ||
29979          test ! -s conftest.err
29980        } && test -s conftest$ac_exeext &&
29981        $as_test_x conftest$ac_exeext; then
29982   ac_cv_func_pthread_create=yes
29983 else
29984   echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29986
29987         ac_cv_func_pthread_create=no
29988 fi
29989
29990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29991       conftest$ac_exeext conftest.$ac_ext
29992 fi
29993 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29994 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29995
29996
29997 fi
29998
29999
30000 fi
30001
30002
30003 fi
30004
30005
30006
30007 cat >>confdefs.h <<\_ACEOF
30008 #define FDLIBS 1
30009 _ACEOF
30010
30011
30012
30013 CFLAGS=${CFLAGS--O}
30014
30015 if test x$have_gcc = xyes ; then
30016    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30017    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30018 fi
30019 LDFLAGS=${LDFLAGS--O}
30020 DB_LIBS="${SQL_LFLAGS}"
30021 CPPFLAGS="$CPPFLAGS"
30022 CFLAGS="$CFLAGS"
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039 OBJLIST=
30040
30041
30042 lld="lld"
30043 llu="llu"
30044
30045 WCFLAGS=
30046 WLDFLAGS=
30047
30048 #
30049 # Finally we set appropriate distribution specific
30050 #  variables and defaults
30051 #
30052 # PFILES are platform specific files
30053 PFILES="platforms/Makefile"
30054 PSCMD="ps -e"
30055 WIN32=
30056 MACOSX=
30057 hostname=`uname -n | cut -d '.' -f 1`
30058 if test x${hostname} = x ; then
30059   hostname="localhost"
30060 fi
30061 case "$DISTNAME" in
30062 aix)
30063         DISTVER=`uname -r`
30064         PSCMD="ps -e -o pid,comm"
30065         PFILES="${PFILES} \
30066            platforms/aix/Makefile"
30067         TAPEDRIVE="/dev/rmt0.1"
30068   ;;
30069 alpha)
30070         DISTVER=`uname -r`
30071         PTHREAD_LIB="-lpthread -lexc"
30072         if test "${CC}" = "gcc" ; then
30073            lld="lld"
30074            llu="llu"
30075         else
30076            lld="ld"
30077            llu="lu"
30078         fi
30079         TAPEDRIVE="/dev/nrmt0"
30080   ;;
30081 bsdi)
30082         DISTVER=`uname -a |awk '{print $3}'`
30083         TAPEDRIVE="/dev/nrmt0"
30084         PTHREAD_LIB="-pthread"
30085         CFLAGS="${CFLAGS} -pthread"
30086         PSCMD="ps -ax -o pid,command"
30087         lld="qd"
30088         llu="qu"
30089         PFILES="${PFILES} \
30090             platforms/bsdi/Makefile \
30091             platforms/bsdi/bacula-fd \
30092             platforms/bsdi/bacula-sd \
30093             platforms/bsdi/bacula-dir"
30094         largefile_support="yes"
30095   ;;
30096 cygwin)
30097         DISTVER=`uname -a |awk '{print $3}'`
30098         TAPEDRIVE="/dev/nrst0"
30099         WIN32=win32
30100         WCFLAGS="-mwindows"
30101         WLDFLAGS="-mwindows"
30102   ;;
30103 darwin)
30104         DISTVER=`uname -r`
30105         TAPEDRIVE="/dev/nst0"
30106         PSCMD="ps -e -o pid,command"
30107         MACOSX=macosx
30108         PFILES="${PFILES} \
30109            platforms/darwin/Makefile"
30110   ;;
30111 debian)
30112         DISTVER=`cat /etc/debian_version`
30113         TAPEDRIVE="/dev/nrst0"
30114         PSCMD="ps -e -o pid,command"
30115   ;;
30116 freebsd)
30117         DISTVER=`uname -a |awk '{print $3}'`
30118         VER=`echo $DISTVER | cut -c 1`
30119         if test x$VER = x4 ; then
30120            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30121            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30122         fi
30123         lld="qd"
30124         llu="qu"
30125         TAPEDRIVE="/dev/nrsa0"
30126         PSCMD="ps -ax -o pid,command"
30127         PFILES="${PFILES} \
30128             platforms/freebsd/Makefile \
30129             platforms/freebsd/bacula-fd \
30130             platforms/freebsd/bacula-sd \
30131             platforms/freebsd/bacula-dir"
30132         largefile_support="yes"
30133   ;;
30134 hpux)
30135         PSCMD="UNIX95=1; ps -e -o pid,comm"
30136         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30137         DISTVER=`uname -r`
30138         TAPEDRIVE="/dev/rmt/0hnb"
30139         PTHREAD_LIB="-lpthread"
30140         cat >>confdefs.h <<\_ACEOF
30141 #define _INCLUDE_LONGLONG 1
30142 _ACEOF
30143
30144   ;;
30145 irix)
30146         DISTVER=`uname -r`
30147         TAPEDRIVE="/dev/rmt/0cbn"
30148         PSCMD="ps -e -o pid,comm"
30149         PFILES="${PFILES} \
30150             platforms/irix/Makefile \
30151             platforms/irix/bacula-fd \
30152             platforms/irix/bacula-sd \
30153             platforms/irix/bacula-dir"
30154   ;;
30155 netbsd)
30156         DISTVER=`uname -a |awk '{print $3}'`
30157         lld="qd"
30158         llu="qu"
30159         TAPEDRIVE="/dev/nrst0"
30160         PSCMD="ps -ax -o pid,command"
30161         PTHREAD_LIB="-pthread"
30162         CFLAGS="${CFLAGS} -pthread"
30163   ;;
30164 openbsd)
30165         DISTVER=`uname -a |awk '{print $3}'`
30166         lld="qd"
30167         llu="qu"
30168         TAPEDRIVE="/dev/nrst0"
30169         PSCMD="ps -ax -o pid,command"
30170         PTHREAD_LIB="-pthread"
30171         CFLAGS="${CFLAGS} -pthread"
30172         PFILES="${PFILES} \
30173             platforms/openbsd/Makefile \
30174             platforms/openbsd/bacula-fd \
30175             platforms/openbsd/bacula-sd \
30176             platforms/openbsd/bacula-dir"
30177   ;;
30178 redhat)
30179         if test -f /etc/whitebox-release ; then
30180            f=/etc/whitebox-release
30181         else
30182            f=/etc/redhat-release
30183         fi
30184         if test `cat $f | grep release |\
30185                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30186            DISTVER="Enterprise "`cat $f | grep release |\
30187                     cut -f 6 -d ' '`
30188         else
30189             DISTVER=`cat /etc/redhat-release | grep release |\
30190                      cut -f 5 -d ' '`
30191         fi
30192         TAPEDRIVE="/dev/nst0"
30193         PSCMD="ps -e -o pid,command"
30194         PFILES="${PFILES} \
30195             platforms/redhat/Makefile \
30196             platforms/redhat/bacula-fd \
30197             platforms/redhat/bacula-sd \
30198             platforms/redhat/bacula-dir \
30199             platforms/redhat/bacula.spec \
30200             "
30201   ;;
30202 mandrake)
30203         DISTVER=`cat /etc/mandrake-release | grep release |\
30204            cut -f 5 -d ' '`
30205         TAPEDRIVE="/dev/nst0"
30206         PSCMD="ps -e -o pid,command"
30207         PFILES="${PFILES} \
30208             platforms/mandrake/Makefile \
30209             platforms/mandrake/bacula-fd \
30210             platforms/mandrake/bacula-sd \
30211             platforms/mandrake/bacula-dir \
30212             platforms/mandrake/bacula.spec \
30213             "
30214   ;;
30215 gentoo)
30216         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30217         TAPEDRIVE="/dev/nst0"
30218         PSCMD="ps -e -o pid,command"
30219         PFILES="${PFILES} \
30220             platforms/gentoo/Makefile \
30221          platforms/gentoo/bacula-init \
30222             platforms/gentoo/bacula-fd \
30223             platforms/gentoo/bacula-sd \
30224             platforms/gentoo/bacula-dir"
30225   ;;
30226 slackware)
30227         DISTVER=`cat /etc/slackware-version`
30228         TAPEDRIVE="/dev/nst0"
30229         PSCMD="ps -e -o pid,command"
30230         PFILES="${PFILES} \
30231             platforms/slackware/Makefile \
30232             platforms/slackware/rc.bacula-fd \
30233             platforms/slackware/rc.bacula-sd \
30234             platforms/slackware/rc.bacula-dir\
30235             platforms/slackware/functions.bacula"
30236   ;;
30237 solaris)
30238         DISTVER=`uname -r`
30239         TAPEDRIVE="/dev/rmt/0cbn"
30240         PSCMD="ps -e -o pid,comm"
30241         PFILES="${PFILES} \
30242             platforms/solaris/Makefile \
30243             platforms/solaris/bacula-fd \
30244             platforms/solaris/bacula-sd \
30245             platforms/solaris/bacula-dir"
30246         if test x$DISTVER = x5.6 ; then
30247             cat >>confdefs.h <<\_ACEOF
30248 #define HAVE_OLD_SOCKOPT 1
30249 _ACEOF
30250
30251         fi
30252         LIBS="$LIBS -lresolv"
30253   ;;
30254 suse)
30255         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30256             cut -f 3 -d ' '`
30257         TAPEDRIVE="/dev/nst0"
30258         PSCMD="ps -e -o pid,command"
30259         PFILES="${PFILES} \
30260             platforms/suse/Makefile \
30261             platforms/suse/bacula-fd \
30262             platforms/suse/bacula-sd \
30263             platforms/suse/bacula-dir \
30264             platforms/suse/bacula \
30265             platforms/suse/bacula.spec"
30266   ;;
30267 suse5)
30268         DISTNAME=suse
30269         DISTVER=5.x
30270         TAPEDRIVE="/dev/nst0"
30271         PSCMD="ps -e -o pid,command"
30272         PFILES="${PFILES} \
30273             platforms/suse/Makefile \
30274             platforms/suse/bacula-fd \
30275             platforms/suse/bacula-sd \
30276             platforms/suse/bacula-dir"
30277   ;;
30278 unknown)
30279         DISTVER=unknown
30280         TAPEDRIVE="/dev/nst0"
30281   ;;
30282 *)
30283   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30284   ;;
30285 esac
30286
30287
30288
30289 LIBS="$PTHREAD_LIB $LIBS"
30290
30291 cat >>confdefs.h <<_ACEOF
30292 #define lld "$lld"
30293 _ACEOF
30294
30295 cat >>confdefs.h <<_ACEOF
30296 #define llu "$llu"
30297 _ACEOF
30298
30299
30300
30301
30302
30303
30304
30305
30306 MCOMMON=./autoconf/Make.common
30307
30308
30309 if test "x${subsysdir}" = "x${sbindir}" ; then
30310    echo " "
30311    echo " "
30312    echo "You have set both --sbindir and --with-subsys-dir"
30313    echo "  equal to: ${subsysdir} "
30314    echo "This is not permitted. Please reconfigure."
30315    echo " "
30316    echo "Aborting configuration ..."
30317    echo " "
30318    echo " "
30319    exit 1
30320 fi
30321
30322 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30323
30324 ac_config_commands="$ac_config_commands default"
30325
30326 cat >confcache <<\_ACEOF
30327 # This file is a shell script that caches the results of configure
30328 # tests run on this system so they can be shared between configure
30329 # scripts and configure runs, see configure's option --config-cache.
30330 # It is not useful on other systems.  If it contains results you don't
30331 # want to keep, you may remove or edit it.
30332 #
30333 # config.status only pays attention to the cache file if you give it
30334 # the --recheck option to rerun configure.
30335 #
30336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30338 # following values.
30339
30340 _ACEOF
30341
30342 # The following way of writing the cache mishandles newlines in values,
30343 # but we know of no workaround that is simple, portable, and efficient.
30344 # So, we kill variables containing newlines.
30345 # Ultrix sh set writes to stderr and can't be redirected directly,
30346 # and sets the high bit in the cache file unless we assign to the vars.
30347 (
30348   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30349     eval ac_val=\$$ac_var
30350     case $ac_val in #(
30351     *${as_nl}*)
30352       case $ac_var in #(
30353       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30354 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30355       esac
30356       case $ac_var in #(
30357       _ | IFS | as_nl) ;; #(
30358       *) $as_unset $ac_var ;;
30359       esac ;;
30360     esac
30361   done
30362
30363   (set) 2>&1 |
30364     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30365     *${as_nl}ac_space=\ *)
30366       # `set' does not quote correctly, so add quotes (double-quote
30367       # substitution turns \\\\ into \\, and sed turns \\ into \).
30368       sed -n \
30369         "s/'/'\\\\''/g;
30370           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30371       ;; #(
30372     *)
30373       # `set' quotes correctly as required by POSIX, so do not add quotes.
30374       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30375       ;;
30376     esac |
30377     sort
30378 ) |
30379   sed '
30380      /^ac_cv_env_/b end
30381      t clear
30382      :clear
30383      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30384      t end
30385      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30386      :end' >>confcache
30387 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30388   if test -w "$cache_file"; then
30389     test "x$cache_file" != "x/dev/null" &&
30390       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30391 echo "$as_me: updating cache $cache_file" >&6;}
30392     cat confcache >$cache_file
30393   else
30394     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30395 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30396   fi
30397 fi
30398 rm -f confcache
30399
30400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30401 # Let make expand exec_prefix.
30402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30403
30404 DEFS=-DHAVE_CONFIG_H
30405
30406 ac_libobjs=
30407 ac_ltlibobjs=
30408 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30409   # 1. Remove the extension, and $U if already installed.
30410   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30411   ac_i=`echo "$ac_i" | sed "$ac_script"`
30412   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30413   #    will be set to the directory where LIBOBJS objects are built.
30414   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30415   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30416 done
30417 LIBOBJS=$ac_libobjs
30418
30419 LTLIBOBJS=$ac_ltlibobjs
30420
30421
30422
30423 : ${CONFIG_STATUS=./config.status}
30424 ac_clean_files_save=$ac_clean_files
30425 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30426 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30427 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30428 cat >$CONFIG_STATUS <<_ACEOF
30429 #! $SHELL
30430 # Generated by $as_me.
30431 # Run this file to recreate the current configuration.
30432 # Compiler output produced by configure, useful for debugging
30433 # configure, is in config.log if it exists.
30434
30435 debug=false
30436 ac_cs_recheck=false
30437 ac_cs_silent=false
30438 SHELL=\${CONFIG_SHELL-$SHELL}
30439 _ACEOF
30440
30441 cat >>$CONFIG_STATUS <<\_ACEOF
30442 ## --------------------- ##
30443 ## M4sh Initialization.  ##
30444 ## --------------------- ##
30445
30446 # Be more Bourne compatible
30447 DUALCASE=1; export DUALCASE # for MKS sh
30448 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30449   emulate sh
30450   NULLCMD=:
30451   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30452   # is contrary to our usage.  Disable this feature.
30453   alias -g '${1+"$@"}'='"$@"'
30454   setopt NO_GLOB_SUBST
30455 else
30456   case `(set -o) 2>/dev/null` in
30457   *posix*) set -o posix ;;
30458 esac
30459
30460 fi
30461
30462
30463
30464
30465 # PATH needs CR
30466 # Avoid depending upon Character Ranges.
30467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30470 as_cr_digits='0123456789'
30471 as_cr_alnum=$as_cr_Letters$as_cr_digits
30472
30473 # The user is always right.
30474 if test "${PATH_SEPARATOR+set}" != set; then
30475   echo "#! /bin/sh" >conf$$.sh
30476   echo  "exit 0"   >>conf$$.sh
30477   chmod +x conf$$.sh
30478   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30479     PATH_SEPARATOR=';'
30480   else
30481     PATH_SEPARATOR=:
30482   fi
30483   rm -f conf$$.sh
30484 fi
30485
30486 # Support unset when possible.
30487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30488   as_unset=unset
30489 else
30490   as_unset=false
30491 fi
30492
30493
30494 # IFS
30495 # We need space, tab and new line, in precisely that order.  Quoting is
30496 # there to prevent editors from complaining about space-tab.
30497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30498 # splitting by setting IFS to empty value.)
30499 as_nl='
30500 '
30501 IFS=" ""        $as_nl"
30502
30503 # Find who we are.  Look in the path if we contain no directory separator.
30504 case $0 in
30505   *[\\/]* ) as_myself=$0 ;;
30506   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30507 for as_dir in $PATH
30508 do
30509   IFS=$as_save_IFS
30510   test -z "$as_dir" && as_dir=.
30511   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30512 done
30513 IFS=$as_save_IFS
30514
30515      ;;
30516 esac
30517 # We did not find ourselves, most probably we were run as `sh COMMAND'
30518 # in which case we are not to be found in the path.
30519 if test "x$as_myself" = x; then
30520   as_myself=$0
30521 fi
30522 if test ! -f "$as_myself"; then
30523   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30524   { (exit 1); exit 1; }
30525 fi
30526
30527 # Work around bugs in pre-3.0 UWIN ksh.
30528 for as_var in ENV MAIL MAILPATH
30529 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30530 done
30531 PS1='$ '
30532 PS2='> '
30533 PS4='+ '
30534
30535 # NLS nuisances.
30536 for as_var in \
30537   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30538   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30539   LC_TELEPHONE LC_TIME
30540 do
30541   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30542     eval $as_var=C; export $as_var
30543   else
30544     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30545   fi
30546 done
30547
30548 # Required to use basename.
30549 if expr a : '\(a\)' >/dev/null 2>&1 &&
30550    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30551   as_expr=expr
30552 else
30553   as_expr=false
30554 fi
30555
30556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30557   as_basename=basename
30558 else
30559   as_basename=false
30560 fi
30561
30562
30563 # Name of the executable.
30564 as_me=`$as_basename -- "$0" ||
30565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30566          X"$0" : 'X\(//\)$' \| \
30567          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30568 echo X/"$0" |
30569     sed '/^.*\/\([^/][^/]*\)\/*$/{
30570             s//\1/
30571             q
30572           }
30573           /^X\/\(\/\/\)$/{
30574             s//\1/
30575             q
30576           }
30577           /^X\/\(\/\).*/{
30578             s//\1/
30579             q
30580           }
30581           s/.*/./; q'`
30582
30583 # CDPATH.
30584 $as_unset CDPATH
30585
30586
30587
30588   as_lineno_1=$LINENO
30589   as_lineno_2=$LINENO
30590   test "x$as_lineno_1" != "x$as_lineno_2" &&
30591   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30592
30593   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30594   # uniformly replaced by the line number.  The first 'sed' inserts a
30595   # line-number line after each line using $LINENO; the second 'sed'
30596   # does the real work.  The second script uses 'N' to pair each
30597   # line-number line with the line containing $LINENO, and appends
30598   # trailing '-' during substitution so that $LINENO is not a special
30599   # case at line end.
30600   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30601   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30602   # E. McMahon (1931-1989) for sed's syntax.  :-)
30603   sed -n '
30604     p
30605     /[$]LINENO/=
30606   ' <$as_myself |
30607     sed '
30608       s/[$]LINENO.*/&-/
30609       t lineno
30610       b
30611       :lineno
30612       N
30613       :loop
30614       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30615       t loop
30616       s/-\n.*//
30617     ' >$as_me.lineno &&
30618   chmod +x "$as_me.lineno" ||
30619     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30620    { (exit 1); exit 1; }; }
30621
30622   # Don't try to exec as it changes $[0], causing all sort of problems
30623   # (the dirname of $[0] is not the place where we might find the
30624   # original and so on.  Autoconf is especially sensitive to this).
30625   . "./$as_me.lineno"
30626   # Exit status is that of the last command.
30627   exit
30628 }
30629
30630
30631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30632   as_dirname=dirname
30633 else
30634   as_dirname=false
30635 fi
30636
30637 ECHO_C= ECHO_N= ECHO_T=
30638 case `echo -n x` in
30639 -n*)
30640   case `echo 'x\c'` in
30641   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30642   *)   ECHO_C='\c';;
30643   esac;;
30644 *)
30645   ECHO_N='-n';;
30646 esac
30647
30648 if expr a : '\(a\)' >/dev/null 2>&1 &&
30649    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30650   as_expr=expr
30651 else
30652   as_expr=false
30653 fi
30654
30655 rm -f conf$$ conf$$.exe conf$$.file
30656 if test -d conf$$.dir; then
30657   rm -f conf$$.dir/conf$$.file
30658 else
30659   rm -f conf$$.dir
30660   mkdir conf$$.dir
30661 fi
30662 echo >conf$$.file
30663 if ln -s conf$$.file conf$$ 2>/dev/null; then
30664   as_ln_s='ln -s'
30665   # ... but there are two gotchas:
30666   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30667   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30668   # In both cases, we have to default to `cp -p'.
30669   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30670     as_ln_s='cp -p'
30671 elif ln conf$$.file conf$$ 2>/dev/null; then
30672   as_ln_s=ln
30673 else
30674   as_ln_s='cp -p'
30675 fi
30676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30677 rmdir conf$$.dir 2>/dev/null
30678
30679 if mkdir -p . 2>/dev/null; then
30680   as_mkdir_p=:
30681 else
30682   test -d ./-p && rmdir ./-p
30683   as_mkdir_p=false
30684 fi
30685
30686 if test -x / >/dev/null 2>&1; then
30687   as_test_x='test -x'
30688 else
30689   if ls -dL / >/dev/null 2>&1; then
30690     as_ls_L_option=L
30691   else
30692     as_ls_L_option=
30693   fi
30694   as_test_x='
30695     eval sh -c '\''
30696       if test -d "$1"; then
30697         test -d "$1/.";
30698       else
30699         case $1 in
30700         -*)set "./$1";;
30701         esac;
30702         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30703         ???[sx]*):;;*)false;;esac;fi
30704     '\'' sh
30705   '
30706 fi
30707 as_executable_p=$as_test_x
30708
30709 # Sed expression to map a string onto a valid CPP name.
30710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30711
30712 # Sed expression to map a string onto a valid variable name.
30713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30714
30715
30716 exec 6>&1
30717
30718 # Save the log message, to keep $[0] and so on meaningful, and to
30719 # report actual input values of CONFIG_FILES etc. instead of their
30720 # values after options handling.
30721 ac_log="
30722 This file was extended by $as_me, which was
30723 generated by GNU Autoconf 2.61.  Invocation command line was
30724
30725   CONFIG_FILES    = $CONFIG_FILES
30726   CONFIG_HEADERS  = $CONFIG_HEADERS
30727   CONFIG_LINKS    = $CONFIG_LINKS
30728   CONFIG_COMMANDS = $CONFIG_COMMANDS
30729   $ $0 $@
30730
30731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30732 "
30733
30734 _ACEOF
30735
30736 cat >>$CONFIG_STATUS <<_ACEOF
30737 # Files that config.status was made for.
30738 config_files="$ac_config_files"
30739 config_headers="$ac_config_headers"
30740 config_commands="$ac_config_commands"
30741
30742 _ACEOF
30743
30744 cat >>$CONFIG_STATUS <<\_ACEOF
30745 ac_cs_usage="\
30746 \`$as_me' instantiates files from templates according to the
30747 current configuration.
30748
30749 Usage: $0 [OPTIONS] [FILE]...
30750
30751   -h, --help       print this help, then exit
30752   -V, --version    print version number and configuration settings, then exit
30753   -q, --quiet      do not print progress messages
30754   -d, --debug      don't remove temporary files
30755       --recheck    update $as_me by reconfiguring in the same conditions
30756   --file=FILE[:TEMPLATE]
30757                    instantiate the configuration file FILE
30758   --header=FILE[:TEMPLATE]
30759                    instantiate the configuration header FILE
30760
30761 Configuration files:
30762 $config_files
30763
30764 Configuration headers:
30765 $config_headers
30766
30767 Configuration commands:
30768 $config_commands
30769
30770 Report bugs to <bug-autoconf@gnu.org>."
30771
30772 _ACEOF
30773 cat >>$CONFIG_STATUS <<_ACEOF
30774 ac_cs_version="\\
30775 config.status
30776 configured by $0, generated by GNU Autoconf 2.61,
30777   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30778
30779 Copyright (C) 2006 Free Software Foundation, Inc.
30780 This config.status script is free software; the Free Software Foundation
30781 gives unlimited permission to copy, distribute and modify it."
30782
30783 ac_pwd='$ac_pwd'
30784 srcdir='$srcdir'
30785 INSTALL='$INSTALL'
30786 _ACEOF
30787
30788 cat >>$CONFIG_STATUS <<\_ACEOF
30789 # If no file are specified by the user, then we need to provide default
30790 # value.  By we need to know if files were specified by the user.
30791 ac_need_defaults=:
30792 while test $# != 0
30793 do
30794   case $1 in
30795   --*=*)
30796     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30797     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30798     ac_shift=:
30799     ;;
30800   *)
30801     ac_option=$1
30802     ac_optarg=$2
30803     ac_shift=shift
30804     ;;
30805   esac
30806
30807   case $ac_option in
30808   # Handling of the options.
30809   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30810     ac_cs_recheck=: ;;
30811   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30812     echo "$ac_cs_version"; exit ;;
30813   --debug | --debu | --deb | --de | --d | -d )
30814     debug=: ;;
30815   --file | --fil | --fi | --f )
30816     $ac_shift
30817     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30818     ac_need_defaults=false;;
30819   --header | --heade | --head | --hea )
30820     $ac_shift
30821     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30822     ac_need_defaults=false;;
30823   --he | --h)
30824     # Conflict between --help and --header
30825     { echo "$as_me: error: ambiguous option: $1
30826 Try \`$0 --help' for more information." >&2
30827    { (exit 1); exit 1; }; };;
30828   --help | --hel | -h )
30829     echo "$ac_cs_usage"; exit ;;
30830   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30831   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30832     ac_cs_silent=: ;;
30833
30834   # This is an error.
30835   -*) { echo "$as_me: error: unrecognized option: $1
30836 Try \`$0 --help' for more information." >&2
30837    { (exit 1); exit 1; }; } ;;
30838
30839   *) ac_config_targets="$ac_config_targets $1"
30840      ac_need_defaults=false ;;
30841
30842   esac
30843   shift
30844 done
30845
30846 ac_configure_extra_args=
30847
30848 if $ac_cs_silent; then
30849   exec 6>/dev/null
30850   ac_configure_extra_args="$ac_configure_extra_args --silent"
30851 fi
30852
30853 _ACEOF
30854 cat >>$CONFIG_STATUS <<_ACEOF
30855 if \$ac_cs_recheck; then
30856   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30857   CONFIG_SHELL=$SHELL
30858   export CONFIG_SHELL
30859   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30860 fi
30861
30862 _ACEOF
30863 cat >>$CONFIG_STATUS <<\_ACEOF
30864 exec 5>>config.log
30865 {
30866   echo
30867   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30868 ## Running $as_me. ##
30869 _ASBOX
30870   echo "$ac_log"
30871 } >&5
30872
30873 _ACEOF
30874 cat >>$CONFIG_STATUS <<_ACEOF
30875 #
30876 # INIT-COMMANDS
30877 #
30878 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30879     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30880     # from automake.
30881     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30882     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30883     LINGUAS="${LINGUAS-%UNSET%}"
30884
30885
30886 _ACEOF
30887
30888 cat >>$CONFIG_STATUS <<\_ACEOF
30889
30890 # Handling of arguments.
30891 for ac_config_target in $ac_config_targets
30892 do
30893   case $ac_config_target in
30894     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30895     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30896     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30897     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30898     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30899     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30900     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30901     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30902     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30903     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30904     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30905     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30906     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30907     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30908     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30909     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30910     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30911     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30912     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30913     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30914     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30915     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30916     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30917     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30918     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30919     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30920     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30921     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30922     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30923     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30924     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30925     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30926     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30927     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30928     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30929     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30930     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30931     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30932     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30933     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30934     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30935     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30936     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30937     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30938     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30939     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30940     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30941     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30942     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30943     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30944     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30945     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30946     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30947     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30948     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30949     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30950     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30951     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30952     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30953     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30954     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30955     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30956     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30957     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30958     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30959     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30960     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30961     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30962     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30963     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30964     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30965     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30966     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30967     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30968     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30969     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30970     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30971     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30972     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30973     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30974     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30975     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30976     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30977     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30978     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30979     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30980     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30981     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30982     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30983     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30984     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30985     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30986     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30987     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30988     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30989     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30990     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30991     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30992     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30993     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30994     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30995     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30996     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30997     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30998     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30999     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31000
31001   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31003    { (exit 1); exit 1; }; };;
31004   esac
31005 done
31006
31007
31008 # If the user did not use the arguments to specify the items to instantiate,
31009 # then the envvar interface is used.  Set only those that are not.
31010 # We use the long form for the default assignment because of an extremely
31011 # bizarre bug on SunOS 4.1.3.
31012 if $ac_need_defaults; then
31013   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31014   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31015   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31016 fi
31017
31018 # Have a temporary directory for convenience.  Make it in the build tree
31019 # simply because there is no reason against having it here, and in addition,
31020 # creating and moving files from /tmp can sometimes cause problems.
31021 # Hook for its removal unless debugging.
31022 # Note that there is a small window in which the directory will not be cleaned:
31023 # after its creation but before its name has been assigned to `$tmp'.
31024 $debug ||
31025 {
31026   tmp=
31027   trap 'exit_status=$?
31028   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31029 ' 0
31030   trap '{ (exit 1); exit 1; }' 1 2 13 15
31031 }
31032 # Create a (secure) tmp directory for tmp files.
31033
31034 {
31035   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31036   test -n "$tmp" && test -d "$tmp"
31037 }  ||
31038 {
31039   tmp=./conf$$-$RANDOM
31040   (umask 077 && mkdir "$tmp")
31041 } ||
31042 {
31043    echo "$me: cannot create a temporary directory in ." >&2
31044    { (exit 1); exit 1; }
31045 }
31046
31047 #
31048 # Set up the sed scripts for CONFIG_FILES section.
31049 #
31050
31051 # No need to generate the scripts if there are no CONFIG_FILES.
31052 # This happens for instance when ./config.status config.h
31053 if test -n "$CONFIG_FILES"; then
31054
31055 _ACEOF
31056
31057 # Create sed commands to just substitute file output variables.
31058
31059 # Remaining file output variables are in a fragment that also has non-file
31060 # output varibles.
31061
31062
31063
31064 ac_delim='%!_!# '
31065 for ac_last_try in false false false false false :; do
31066   cat >conf$$subs.sed <<_ACEOF
31067 SHELL!$SHELL$ac_delim
31068 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31069 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31070 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31071 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31072 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31073 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31074 exec_prefix!$exec_prefix$ac_delim
31075 prefix!$prefix$ac_delim
31076 program_transform_name!$program_transform_name$ac_delim
31077 bindir!$bindir$ac_delim
31078 sbindir!$sbindir$ac_delim
31079 libexecdir!$libexecdir$ac_delim
31080 datarootdir!$datarootdir$ac_delim
31081 datadir!$datadir$ac_delim
31082 sysconfdir!$sysconfdir$ac_delim
31083 sharedstatedir!$sharedstatedir$ac_delim
31084 localstatedir!$localstatedir$ac_delim
31085 includedir!$includedir$ac_delim
31086 oldincludedir!$oldincludedir$ac_delim
31087 docdir!$docdir$ac_delim
31088 infodir!$infodir$ac_delim
31089 htmldir!$htmldir$ac_delim
31090 dvidir!$dvidir$ac_delim
31091 pdfdir!$pdfdir$ac_delim
31092 psdir!$psdir$ac_delim
31093 libdir!$libdir$ac_delim
31094 localedir!$localedir$ac_delim
31095 mandir!$mandir$ac_delim
31096 DEFS!$DEFS$ac_delim
31097 ECHO_C!$ECHO_C$ac_delim
31098 ECHO_N!$ECHO_N$ac_delim
31099 ECHO_T!$ECHO_T$ac_delim
31100 LIBS!$LIBS$ac_delim
31101 build_alias!$build_alias$ac_delim
31102 host_alias!$host_alias$ac_delim
31103 target_alias!$target_alias$ac_delim
31104 BUILD_DIR!$BUILD_DIR$ac_delim
31105 TOP_DIR!$TOP_DIR$ac_delim
31106 TRUEPRG!$TRUEPRG$ac_delim
31107 FALSEPRG!$FALSEPRG$ac_delim
31108 VERSION!$VERSION$ac_delim
31109 DATE!$DATE$ac_delim
31110 LSMDATE!$LSMDATE$ac_delim
31111 CC!$CC$ac_delim
31112 CFLAGS!$CFLAGS$ac_delim
31113 LDFLAGS!$LDFLAGS$ac_delim
31114 CPPFLAGS!$CPPFLAGS$ac_delim
31115 ac_ct_CC!$ac_ct_CC$ac_delim
31116 EXEEXT!$EXEEXT$ac_delim
31117 OBJEXT!$OBJEXT$ac_delim
31118 CXX!$CXX$ac_delim
31119 CXXFLAGS!$CXXFLAGS$ac_delim
31120 ac_ct_CXX!$ac_ct_CXX$ac_delim
31121 CPP!$CPP$ac_delim
31122 GREP!$GREP$ac_delim
31123 EGREP!$EGREP$ac_delim
31124 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31125 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31126 INSTALL_DATA!$INSTALL_DATA$ac_delim
31127 RANLIB!$RANLIB$ac_delim
31128 MV!$MV$ac_delim
31129 RM!$RM$ac_delim
31130 CP!$CP$ac_delim
31131 SED!$SED$ac_delim
31132 ECHO!$ECHO$ac_delim
31133 CMP!$CMP$ac_delim
31134 TBL!$TBL$ac_delim
31135 AR!$AR$ac_delim
31136 OPENSSL!$OPENSSL$ac_delim
31137 MTX!$MTX$ac_delim
31138 DD!$DD$ac_delim
31139 MKISOFS!$MKISOFS$ac_delim
31140 PYTHON!$PYTHON$ac_delim
31141 GROWISOFS!$GROWISOFS$ac_delim
31142 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31143 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31144 PKGCONFIG!$PKGCONFIG$ac_delim
31145 QMAKE!$QMAKE$ac_delim
31146 QMAKEQT4!$QMAKEQT4$ac_delim
31147 WXCONFIG!$WXCONFIG$ac_delim
31148 WXFLAGS!$WXFLAGS$ac_delim
31149 CDRECORD!$CDRECORD$ac_delim
31150 PIDOF!$PIDOF$ac_delim
31151 AWK!$AWK$ac_delim
31152 ARFLAGS!$ARFLAGS$ac_delim
31153 MAKE_SHELL!$MAKE_SHELL$ac_delim
31154 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31155 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31156 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31157 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31158 build!$build$ac_delim
31159 build_cpu!$build_cpu$ac_delim
31160 build_vendor!$build_vendor$ac_delim
31161 _ACEOF
31162
31163   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31164     break
31165   elif $ac_last_try; then
31166     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31168    { (exit 1); exit 1; }; }
31169   else
31170     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31171   fi
31172 done
31173
31174 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31175 if test -n "$ac_eof"; then
31176   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31177   ac_eof=`expr $ac_eof + 1`
31178 fi
31179
31180 cat >>$CONFIG_STATUS <<_ACEOF
31181 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31183 /^[      ]*@MCOMMON@[    ]*$/{
31184 r $MCOMMON
31185 d
31186 }
31187 _ACEOF
31188 sed '
31189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31190 s/^/s,@/; s/!/@,|#_!!_#|/
31191 :n
31192 t n
31193 s/'"$ac_delim"'$/,g/; t
31194 s/$/\\/; p
31195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31196 ' >>$CONFIG_STATUS <conf$$subs.sed
31197 rm -f conf$$subs.sed
31198 cat >>$CONFIG_STATUS <<_ACEOF
31199 CEOF$ac_eof
31200 _ACEOF
31201
31202
31203 ac_delim='%!_!# '
31204 for ac_last_try in false false false false false :; do
31205   cat >conf$$subs.sed <<_ACEOF
31206 build_os!$build_os$ac_delim
31207 host!$host$ac_delim
31208 host_cpu!$host_cpu$ac_delim
31209 host_vendor!$host_vendor$ac_delim
31210 host_os!$host_os$ac_delim
31211 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31212 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31213 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31214 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31215 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31216 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31217 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31218 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31219 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31220 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31221 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31222 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31223 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31224 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31225 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31226 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31227 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31228 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31229 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31230 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31231 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31232 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31233 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31234 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31235 SET_MAKE!$SET_MAKE$ac_delim
31236 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31237 USE_NLS!$USE_NLS$ac_delim
31238 MSGFMT!$MSGFMT$ac_delim
31239 GMSGFMT!$GMSGFMT$ac_delim
31240 XGETTEXT!$XGETTEXT$ac_delim
31241 MSGMERGE!$MSGMERGE$ac_delim
31242 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31243 LIBICONV!$LIBICONV$ac_delim
31244 LTLIBICONV!$LTLIBICONV$ac_delim
31245 INTLLIBS!$INTLLIBS$ac_delim
31246 LIBINTL!$LIBINTL$ac_delim
31247 LTLIBINTL!$LTLIBINTL$ac_delim
31248 POSUB!$POSUB$ac_delim
31249 GLIBC2!$GLIBC2$ac_delim
31250 ALLOCA!$ALLOCA$ac_delim
31251 GLIBC21!$GLIBC21$ac_delim
31252 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31253 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31254 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31255 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31256 INTLBISON!$INTLBISON$ac_delim
31257 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31258 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31259 CATOBJEXT!$CATOBJEXT$ac_delim
31260 DATADIRNAME!$DATADIRNAME$ac_delim
31261 INSTOBJEXT!$INSTOBJEXT$ac_delim
31262 GENCAT!$GENCAT$ac_delim
31263 INTLOBJS!$INTLOBJS$ac_delim
31264 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31265 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31266 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31267 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31268 GNOME_LIBS!$GNOME_LIBS$ac_delim
31269 GNOME_DIR!$GNOME_DIR$ac_delim
31270 BAT_DIR!$BAT_DIR$ac_delim
31271 QWT_INC!$QWT_INC$ac_delim
31272 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31273 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31274 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31275 WX_DIR!$WX_DIR$ac_delim
31276 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31277 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31278 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31279 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31280 STATIC_FD!$STATIC_FD$ac_delim
31281 STATIC_SD!$STATIC_SD$ac_delim
31282 STATIC_DIR!$STATIC_DIR$ac_delim
31283 STATIC_CONS!$STATIC_CONS$ac_delim
31284 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31285 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31286 ALL_DIRS!$ALL_DIRS$ac_delim
31287 DIRD_DIR!$DIRD_DIR$ac_delim
31288 DIR_TOOLS!$DIR_TOOLS$ac_delim
31289 STORED_DIR!$STORED_DIR$ac_delim
31290 CONS_INC!$CONS_INC$ac_delim
31291 CONS_OBJ!$CONS_OBJ$ac_delim
31292 CONS_SRC!$CONS_SRC$ac_delim
31293 CONS_LIBS!$CONS_LIBS$ac_delim
31294 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31295 READLINE_SRC!$READLINE_SRC$ac_delim
31296 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31297 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31298 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31299 OPENSSL_INC!$OPENSSL_INC$ac_delim
31300 working_dir!$working_dir$ac_delim
31301 archivedir!$archivedir$ac_delim
31302 scriptdir!$scriptdir$ac_delim
31303 _ACEOF
31304
31305   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31306     break
31307   elif $ac_last_try; then
31308     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31309 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31310    { (exit 1); exit 1; }; }
31311   else
31312     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31313   fi
31314 done
31315
31316 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31317 if test -n "$ac_eof"; then
31318   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31319   ac_eof=`expr $ac_eof + 1`
31320 fi
31321
31322 cat >>$CONFIG_STATUS <<_ACEOF
31323 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31325 _ACEOF
31326 sed '
31327 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31328 s/^/s,@/; s/!/@,|#_!!_#|/
31329 :n
31330 t n
31331 s/'"$ac_delim"'$/,g/; t
31332 s/$/\\/; p
31333 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31334 ' >>$CONFIG_STATUS <conf$$subs.sed
31335 rm -f conf$$subs.sed
31336 cat >>$CONFIG_STATUS <<_ACEOF
31337 CEOF$ac_eof
31338 _ACEOF
31339
31340
31341 ac_delim='%!_!# '
31342 for ac_last_try in false false false false false :; do
31343   cat >conf$$subs.sed <<_ACEOF
31344 dump_email!$dump_email$ac_delim
31345 job_email!$job_email$ac_delim
31346 smtp_host!$smtp_host$ac_delim
31347 piddir!$piddir$ac_delim
31348 subsysdir!$subsysdir$ac_delim
31349 baseport!$baseport$ac_delim
31350 dir_port!$dir_port$ac_delim
31351 fd_port!$fd_port$ac_delim
31352 sd_port!$sd_port$ac_delim
31353 dir_password!$dir_password$ac_delim
31354 fd_password!$fd_password$ac_delim
31355 sd_password!$sd_password$ac_delim
31356 mon_dir_password!$mon_dir_password$ac_delim
31357 mon_fd_password!$mon_fd_password$ac_delim
31358 mon_sd_password!$mon_sd_password$ac_delim
31359 db_name!$db_name$ac_delim
31360 db_user!$db_user$ac_delim
31361 dir_user!$dir_user$ac_delim
31362 dir_group!$dir_group$ac_delim
31363 sd_user!$sd_user$ac_delim
31364 sd_group!$sd_group$ac_delim
31365 fd_user!$fd_user$ac_delim
31366 fd_group!$fd_group$ac_delim
31367 SBINPERM!$SBINPERM$ac_delim
31368 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31369 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31370 SQL_BINDIR!$SQL_BINDIR$ac_delim
31371 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31372 DB_PROG!$DB_PROG$ac_delim
31373 cats!$cats$ac_delim
31374 DB_TYPE!$DB_TYPE$ac_delim
31375 GETCONF!$GETCONF$ac_delim
31376 XMKMF!$XMKMF$ac_delim
31377 X_CFLAGS!$X_CFLAGS$ac_delim
31378 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31379 X_LIBS!$X_LIBS$ac_delim
31380 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31381 LIBOBJS!$LIBOBJS$ac_delim
31382 FDLIBS!$FDLIBS$ac_delim
31383 DEBUG!$DEBUG$ac_delim
31384 DINCLUDE!$DINCLUDE$ac_delim
31385 DLIB!$DLIB$ac_delim
31386 DB_LIBS!$DB_LIBS$ac_delim
31387 WCFLAGS!$WCFLAGS$ac_delim
31388 WLDFLAGS!$WLDFLAGS$ac_delim
31389 WRAPLIBS!$WRAPLIBS$ac_delim
31390 OBJLIST!$OBJLIST$ac_delim
31391 hostname!$hostname$ac_delim
31392 TAPEDRIVE!$TAPEDRIVE$ac_delim
31393 PSCMD!$PSCMD$ac_delim
31394 WIN32!$WIN32$ac_delim
31395 MACOSX!$MACOSX$ac_delim
31396 DISTNAME!$DISTNAME$ac_delim
31397 DISTVER!$DISTVER$ac_delim
31398 LTLIBOBJS!$LTLIBOBJS$ac_delim
31399 _ACEOF
31400
31401   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
31402     break
31403   elif $ac_last_try; then
31404     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31405 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31406    { (exit 1); exit 1; }; }
31407   else
31408     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31409   fi
31410 done
31411
31412 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31413 if test -n "$ac_eof"; then
31414   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31415   ac_eof=`expr $ac_eof + 1`
31416 fi
31417
31418 cat >>$CONFIG_STATUS <<_ACEOF
31419 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31421 _ACEOF
31422 sed '
31423 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31424 s/^/s,@/; s/!/@,|#_!!_#|/
31425 :n
31426 t n
31427 s/'"$ac_delim"'$/,g/; t
31428 s/$/\\/; p
31429 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31430 ' >>$CONFIG_STATUS <conf$$subs.sed
31431 rm -f conf$$subs.sed
31432 cat >>$CONFIG_STATUS <<_ACEOF
31433 :end
31434 s/|#_!!_#|//g
31435 CEOF$ac_eof
31436 _ACEOF
31437
31438
31439 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31440 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31441 # trailing colons and then remove the whole line if VPATH becomes empty
31442 # (actually we leave an empty line to preserve line numbers).
31443 if test "x$srcdir" = x.; then
31444   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31445 s/:*\$(srcdir):*/:/
31446 s/:*\${srcdir}:*/:/
31447 s/:*@srcdir@:*/:/
31448 s/^\([^=]*=[     ]*\):*/\1/
31449 s/:*$//
31450 s/^[^=]*=[       ]*$//
31451 }'
31452 fi
31453
31454 cat >>$CONFIG_STATUS <<\_ACEOF
31455 fi # test -n "$CONFIG_FILES"
31456
31457
31458 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31459 do
31460   case $ac_tag in
31461   :[FHLC]) ac_mode=$ac_tag; continue;;
31462   esac
31463   case $ac_mode$ac_tag in
31464   :[FHL]*:*);;
31465   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31466 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31467    { (exit 1); exit 1; }; };;
31468   :[FH]-) ac_tag=-:-;;
31469   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31470   esac
31471   ac_save_IFS=$IFS
31472   IFS=:
31473   set x $ac_tag
31474   IFS=$ac_save_IFS
31475   shift
31476   ac_file=$1
31477   shift
31478
31479   case $ac_mode in
31480   :L) ac_source=$1;;
31481   :[FH])
31482     ac_file_inputs=
31483     for ac_f
31484     do
31485       case $ac_f in
31486       -) ac_f="$tmp/stdin";;
31487       *) # Look for the file first in the build tree, then in the source tree
31488          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31489          # because $ac_f cannot contain `:'.
31490          test -f "$ac_f" ||
31491            case $ac_f in
31492            [\\/$]*) false;;
31493            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31494            esac ||
31495            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31496 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31497    { (exit 1); exit 1; }; };;
31498       esac
31499       ac_file_inputs="$ac_file_inputs $ac_f"
31500     done
31501
31502     # Let's still pretend it is `configure' which instantiates (i.e., don't
31503     # use $as_me), people would be surprised to read:
31504     #    /* config.h.  Generated by config.status.  */
31505     configure_input="Generated from "`IFS=:
31506           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31507     if test x"$ac_file" != x-; then
31508       configure_input="$ac_file.  $configure_input"
31509       { echo "$as_me:$LINENO: creating $ac_file" >&5
31510 echo "$as_me: creating $ac_file" >&6;}
31511     fi
31512
31513     case $ac_tag in
31514     *:-:* | *:-) cat >"$tmp/stdin";;
31515     esac
31516     ;;
31517   esac
31518
31519   ac_dir=`$as_dirname -- "$ac_file" ||
31520 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31521          X"$ac_file" : 'X\(//\)[^/]' \| \
31522          X"$ac_file" : 'X\(//\)$' \| \
31523          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31524 echo X"$ac_file" |
31525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31526             s//\1/
31527             q
31528           }
31529           /^X\(\/\/\)[^/].*/{
31530             s//\1/
31531             q
31532           }
31533           /^X\(\/\/\)$/{
31534             s//\1/
31535             q
31536           }
31537           /^X\(\/\).*/{
31538             s//\1/
31539             q
31540           }
31541           s/.*/./; q'`
31542   { as_dir="$ac_dir"
31543   case $as_dir in #(
31544   -*) as_dir=./$as_dir;;
31545   esac
31546   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31547     as_dirs=
31548     while :; do
31549       case $as_dir in #(
31550       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31551       *) as_qdir=$as_dir;;
31552       esac
31553       as_dirs="'$as_qdir' $as_dirs"
31554       as_dir=`$as_dirname -- "$as_dir" ||
31555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31556          X"$as_dir" : 'X\(//\)[^/]' \| \
31557          X"$as_dir" : 'X\(//\)$' \| \
31558          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31559 echo X"$as_dir" |
31560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31561             s//\1/
31562             q
31563           }
31564           /^X\(\/\/\)[^/].*/{
31565             s//\1/
31566             q
31567           }
31568           /^X\(\/\/\)$/{
31569             s//\1/
31570             q
31571           }
31572           /^X\(\/\).*/{
31573             s//\1/
31574             q
31575           }
31576           s/.*/./; q'`
31577       test -d "$as_dir" && break
31578     done
31579     test -z "$as_dirs" || eval "mkdir $as_dirs"
31580   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31581 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31582    { (exit 1); exit 1; }; }; }
31583   ac_builddir=.
31584
31585 case "$ac_dir" in
31586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31587 *)
31588   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31589   # A ".." for each directory in $ac_dir_suffix.
31590   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31591   case $ac_top_builddir_sub in
31592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31594   esac ;;
31595 esac
31596 ac_abs_top_builddir=$ac_pwd
31597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31598 # for backward compatibility:
31599 ac_top_builddir=$ac_top_build_prefix
31600
31601 case $srcdir in
31602   .)  # We are building in place.
31603     ac_srcdir=.
31604     ac_top_srcdir=$ac_top_builddir_sub
31605     ac_abs_top_srcdir=$ac_pwd ;;
31606   [\\/]* | ?:[\\/]* )  # Absolute name.
31607     ac_srcdir=$srcdir$ac_dir_suffix;
31608     ac_top_srcdir=$srcdir
31609     ac_abs_top_srcdir=$srcdir ;;
31610   *) # Relative name.
31611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31612     ac_top_srcdir=$ac_top_build_prefix$srcdir
31613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31614 esac
31615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31616
31617
31618   case $ac_mode in
31619   :F)
31620   #
31621   # CONFIG_FILE
31622   #
31623
31624   case $INSTALL in
31625   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31626   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31627   esac
31628 _ACEOF
31629
31630 cat >>$CONFIG_STATUS <<\_ACEOF
31631 # If the template does not know about datarootdir, expand it.
31632 # FIXME: This hack should be removed a few years after 2.60.
31633 ac_datarootdir_hack=; ac_datarootdir_seen=
31634
31635 case `sed -n '/datarootdir/ {
31636   p
31637   q
31638 }
31639 /@datadir@/p
31640 /@docdir@/p
31641 /@infodir@/p
31642 /@localedir@/p
31643 /@mandir@/p
31644 ' $ac_file_inputs` in
31645 *datarootdir*) ac_datarootdir_seen=yes;;
31646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31647   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31648 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31649 _ACEOF
31650 cat >>$CONFIG_STATUS <<_ACEOF
31651   ac_datarootdir_hack='
31652   s&@datadir@&$datadir&g
31653   s&@docdir@&$docdir&g
31654   s&@infodir@&$infodir&g
31655   s&@localedir@&$localedir&g
31656   s&@mandir@&$mandir&g
31657     s&\\\${datarootdir}&$datarootdir&g' ;;
31658 esac
31659 _ACEOF
31660
31661 # Neutralize VPATH when `$srcdir' = `.'.
31662 # Shell code in configure.ac might set extrasub.
31663 # FIXME: do we really want to maintain this feature?
31664 cat >>$CONFIG_STATUS <<_ACEOF
31665   sed "$ac_vpsub
31666 $extrasub
31667 _ACEOF
31668 cat >>$CONFIG_STATUS <<\_ACEOF
31669 :t
31670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31671 s&@configure_input@&$configure_input&;t t
31672 s&@top_builddir@&$ac_top_builddir_sub&;t t
31673 s&@srcdir@&$ac_srcdir&;t t
31674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31675 s&@top_srcdir@&$ac_top_srcdir&;t t
31676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31677 s&@builddir@&$ac_builddir&;t t
31678 s&@abs_builddir@&$ac_abs_builddir&;t t
31679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31680 s&@INSTALL@&$ac_INSTALL&;t t
31681 $ac_datarootdir_hack
31682 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31683
31684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31685   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31686   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31687   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31688 which seems to be undefined.  Please make sure it is defined." >&5
31689 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31690 which seems to be undefined.  Please make sure it is defined." >&2;}
31691
31692   rm -f "$tmp/stdin"
31693   case $ac_file in
31694   -) cat "$tmp/out"; rm -f "$tmp/out";;
31695   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31696   esac
31697  ;;
31698   :H)
31699   #
31700   # CONFIG_HEADER
31701   #
31702 _ACEOF
31703
31704 # Transform confdefs.h into a sed script `conftest.defines', that
31705 # substitutes the proper values into config.h.in to produce config.h.
31706 rm -f conftest.defines conftest.tail
31707 # First, append a space to every undef/define line, to ease matching.
31708 echo 's/$/ /' >conftest.defines
31709 # Then, protect against being on the right side of a sed subst, or in
31710 # an unquoted here document, in config.status.  If some macros were
31711 # called several times there might be several #defines for the same
31712 # symbol, which is useless.  But do not sort them, since the last
31713 # AC_DEFINE must be honored.
31714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31715 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31716 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31717 # PARAMS is the parameter list in the macro definition--in most cases, it's
31718 # just an empty string.
31719 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31720 ac_dB='\\)[      (].*,\\1define\\2'
31721 ac_dC=' '
31722 ac_dD=' ,'
31723
31724 uniq confdefs.h |
31725   sed -n '
31726         t rset
31727         :rset
31728         s/^[     ]*#[    ]*define[       ][      ]*//
31729         t ok
31730         d
31731         :ok
31732         s/[\\&,]/\\&/g
31733         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31734         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31735   ' >>conftest.defines
31736
31737 # Remove the space that was appended to ease matching.
31738 # Then replace #undef with comments.  This is necessary, for
31739 # example, in the case of _POSIX_SOURCE, which is predefined and required
31740 # on some systems where configure will not decide to define it.
31741 # (The regexp can be short, since the line contains either #define or #undef.)
31742 echo 's/ $//
31743 s,^[     #]*u.*,/* & */,' >>conftest.defines
31744
31745 # Break up conftest.defines:
31746 ac_max_sed_lines=50
31747
31748 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31749 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31750 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31751 # et cetera.
31752 ac_in='$ac_file_inputs'
31753 ac_out='"$tmp/out1"'
31754 ac_nxt='"$tmp/out2"'
31755
31756 while :
31757 do
31758   # Write a here document:
31759     cat >>$CONFIG_STATUS <<_ACEOF
31760     # First, check the format of the line:
31761     cat >"\$tmp/defines.sed" <<\\CEOF
31762 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31763 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31764 b
31765 :def
31766 _ACEOF
31767   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31768   echo 'CEOF
31769     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31770   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31771   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31772   grep . conftest.tail >/dev/null || break
31773   rm -f conftest.defines
31774   mv conftest.tail conftest.defines
31775 done
31776 rm -f conftest.defines conftest.tail
31777
31778 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31779 cat >>$CONFIG_STATUS <<\_ACEOF
31780   if test x"$ac_file" != x-; then
31781     echo "/* $configure_input  */" >"$tmp/config.h"
31782     cat "$ac_result" >>"$tmp/config.h"
31783     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31784       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31785 echo "$as_me: $ac_file is unchanged" >&6;}
31786     else
31787       rm -f $ac_file
31788       mv "$tmp/config.h" $ac_file
31789     fi
31790   else
31791     echo "/* $configure_input  */"
31792     cat "$ac_result"
31793   fi
31794   rm -f "$tmp/out12"
31795  ;;
31796
31797   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31798 echo "$as_me: executing $ac_file commands" >&6;}
31799  ;;
31800   esac
31801
31802
31803   case $ac_file$ac_mode in
31804     "default-1":C)
31805     for ac_file in $CONFIG_FILES; do
31806       # Support "outfile[:infile[:infile...]]"
31807       case "$ac_file" in
31808         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31809       esac
31810       # PO directories have a Makefile.in generated from Makefile.in.in.
31811       case "$ac_file" in */Makefile.in)
31812         # Adjust a relative srcdir.
31813         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31814         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31815         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31816         # In autoconf-2.13 it is called $ac_given_srcdir.
31817         # In autoconf-2.50 it is called $srcdir.
31818         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31819         case "$ac_given_srcdir" in
31820           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31821           /*) top_srcdir="$ac_given_srcdir" ;;
31822           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31823         esac
31824         # Treat a directory as a PO directory if and only if it has a
31825         # POTFILES.in file. This allows packages to have multiple PO
31826         # directories under different names or in different locations.
31827         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31828           rm -f "$ac_dir/POTFILES"
31829           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31830           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31831           POMAKEFILEDEPS="POTFILES.in"
31832           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31833           # on $ac_dir but don't depend on user-specified configuration
31834           # parameters.
31835           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31836             # The LINGUAS file contains the set of available languages.
31837             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31838               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31839             fi
31840             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31841             # Hide the ALL_LINGUAS assigment from automake.
31842             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31843             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31844           else
31845             # The set of available languages was given in configure.in.
31846             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31847           fi
31848           # Compute POFILES
31849           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31850           # Compute UPDATEPOFILES
31851           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31852           # Compute DUMMYPOFILES
31853           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31854           # Compute GMOFILES
31855           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31856           case "$ac_given_srcdir" in
31857             .) srcdirpre= ;;
31858             *) srcdirpre='$(srcdir)/' ;;
31859           esac
31860           POFILES=
31861           UPDATEPOFILES=
31862           DUMMYPOFILES=
31863           GMOFILES=
31864           for lang in $ALL_LINGUAS; do
31865             POFILES="$POFILES $srcdirpre$lang.po"
31866             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31867             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31868             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31869           done
31870           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31871           # environment variable.
31872           INST_LINGUAS=
31873           if test -n "$ALL_LINGUAS"; then
31874             for presentlang in $ALL_LINGUAS; do
31875               useit=no
31876               if test "%UNSET%" != "$LINGUAS"; then
31877                 desiredlanguages="$LINGUAS"
31878               else
31879                 desiredlanguages="$ALL_LINGUAS"
31880               fi
31881               for desiredlang in $desiredlanguages; do
31882                 # Use the presentlang catalog if desiredlang is
31883                 #   a. equal to presentlang, or
31884                 #   b. a variant of presentlang (because in this case,
31885                 #      presentlang can be used as a fallback for messages
31886                 #      which are not translated in the desiredlang catalog).
31887                 case "$desiredlang" in
31888                   "$presentlang"*) useit=yes;;
31889                 esac
31890               done
31891               if test $useit = yes; then
31892                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31893               fi
31894             done
31895           fi
31896           CATALOGS=
31897           if test -n "$INST_LINGUAS"; then
31898             for lang in $INST_LINGUAS; do
31899               CATALOGS="$CATALOGS $lang.gmo"
31900             done
31901           fi
31902           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31903           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"
31904           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31905             if test -f "$f"; then
31906               case "$f" in
31907                 *.orig | *.bak | *~) ;;
31908                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31909               esac
31910             fi
31911           done
31912         fi
31913         ;;
31914       esac
31915     done ;;
31916     "default":C)
31917  ;;
31918
31919   esac
31920 done # for ac_tag
31921
31922
31923 { (exit 0); exit 0; }
31924 _ACEOF
31925 chmod +x $CONFIG_STATUS
31926 ac_clean_files=$ac_clean_files_save
31927
31928
31929 # configure is writing to config.log, and then calls config.status.
31930 # config.status does its own redirection, appending to config.log.
31931 # Unfortunately, on DOS this fails, as config.log is still kept open
31932 # by configure, so config.status won't be able to write to it; its
31933 # output is simply discarded.  So we exec the FD to /dev/null,
31934 # effectively closing config.log, so it can be properly (re)opened and
31935 # appended to by config.status.  When coming back to configure, we
31936 # need to make the FD available again.
31937 if test "$no_create" != yes; then
31938   ac_cs_success=:
31939   ac_config_status_args=
31940   test "$silent" = yes &&
31941     ac_config_status_args="$ac_config_status_args --quiet"
31942   exec 5>/dev/null
31943   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31944   exec 5>>config.log
31945   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31946   # would make configure fail if this is the last instruction.
31947   $ac_cs_success || { (exit 1); exit 1; }
31948 fi
31949
31950
31951 if test "${support_bat}" = "yes" ; then
31952   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31953   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31954   exit 1
31955   fi
31956
31957   QMAKEBIN="qmake"
31958
31959   if test "x$QMAKEQT4" != "xnone"; then
31960     QMAKEBIN=qmake-qt4
31961   fi
31962
31963
31964
31965   cd src/qt-console
31966   chmod 755 install_conf_file build-depkgs-qt-console
31967   echo "Creating bat Makefile"
31968   $QMAKEBIN
31969   cd ${BUILD_DIR}
31970 fi
31971
31972 echo "Doing make of dependencies"
31973 ${MAKE:-make} depend
31974
31975 cd scripts
31976 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31977 chmod 755 dvd-handler dvd-simulator
31978 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31979 cd ..
31980
31981 c=src/cats
31982
31983 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31984 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31985
31986 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31987 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31988
31989 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31990 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31991
31992 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31993 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31994
31995 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31996 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31997
31998 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31999 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32000
32001 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32002 chmod 755 $c/sqlite
32003 chmod 755 $c/mysql
32004
32005 chmod 755 src/win32/build-depkgs-mingw32
32006
32007
32008
32009 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32010    largefile_support="yes"
32011 fi
32012
32013 #
32014 # A whole lot of hand springs to get the compiler version.
32015 #  This is because gcc changed the output in version 3.0
32016 #
32017 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32018 if test "x${CCVERSION}" = "x" ; then
32019   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32020 fi
32021 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32022 if test x"${CXXVERSION}" = x ; then
32023   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32024 fi
32025
32026 if test "x${subsysdir}" = "x${sbindir}" ; then
32027    echo " "
32028    echo " "
32029    echo "You have set --sbindir and --with-subsys-dir"
32030    echo "  both equal to: ${subsysdir} "
32031    echo "  This is not permitted. Please reconfigure."
32032    echo " "
32033    echo "Aborting configuration ..."
32034    echo " "
32035    echo " "
32036    exit 1
32037 fi
32038
32039 if test "x${db_type}" = "xInternal" ; then
32040    echo " "
32041    echo " "
32042    echo "You have not specified either --enable-client-only or one of the"
32043    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32044    echo "  This is not permitted. Please reconfigure."
32045    echo " "
32046    echo "Aborting the configuration ..."
32047    echo " "
32048    echo " "
32049    exit 1
32050 fi
32051
32052 echo "
32053 Configuration on `date`:
32054
32055   Host:                       $host -- ${DISTNAME} ${DISTVER}
32056   Bacula version:             ${VERSION} (${DATE})
32057   Source code location:       ${srcdir}
32058   Install binaries:           ${sbindir}
32059   Install config files:       ${sysconfdir}
32060   Scripts directory:          ${scriptdir}
32061   Archive directory:          ${archivedir}
32062   Working directory:          ${working_dir}
32063   PID directory:              ${piddir}
32064   Subsys directory:           ${subsysdir}
32065   Man directory:              ${mandir}
32066   Data directory:             ${datadir}
32067   C Compiler:                 ${CC} ${CCVERSION}
32068   C++ Compiler:               ${CXX} ${CXXVERSION}
32069   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32070   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32071   Libraries:                  ${LIBS}
32072   Statically Linked Tools:    ${support_static_tools}
32073   Statically Linked FD:       ${support_static_fd}
32074   Statically Linked SD:       ${support_static_sd}
32075   Statically Linked DIR:      ${support_static_dir}
32076   Statically Linked CONS:     ${support_static_cons}
32077   Database type:              ${db_type}
32078   Database lib:               ${DB_LIBS}
32079   Database name:              ${db_name}
32080   Database user:              ${db_user}
32081
32082   Job Output Email:           ${job_email}
32083   Traceback Email:            ${dump_email}
32084   SMTP Host Address:          ${smtp_host}
32085
32086   Director Port:              ${dir_port}
32087   File daemon Port:           ${fd_port}
32088   Storage daemon Port:        ${sd_port}
32089
32090   Director User:              ${dir_user}
32091   Director Group:             ${dir_group}
32092   Storage Daemon User:        ${sd_user}
32093   Storage DaemonGroup:        ${sd_group}
32094   File Daemon User:           ${fd_user}
32095   File Daemon Group:          ${fd_group}
32096
32097   SQL binaries Directory      ${SQL_BINDIR}
32098
32099   Large file support:         $largefile_support
32100   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32101   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32102   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32103   TLS support:                ${support_tls}
32104   Encryption support:         ${support_crypto}
32105   ZLIB support:               ${have_zlib}
32106   enable-smartalloc:          ${support_smartalloc}
32107   bat support:                ${support_bat} ${QWT_LDFLAGS}
32108   enable-gnome:               ${support_gnome} ${gnome_version}
32109   enable-bwx-console:         ${support_wx_console} ${wx_version}
32110   enable-tray-monitor:        ${support_tray_monitor}
32111   client-only:                ${build_client_only}
32112   build-dird:                 ${build_dird}
32113   build-stored:               ${build_stored}
32114   ACL support:                ${have_acl}
32115   Python support:             ${support_python} ${PYTHON_LIBS}
32116   Batch insert enabled:       ${support_batch_insert}
32117
32118   " > config.out
32119
32120 cat config.out